From 040a30a1b4d4ee3dc290d1106496f51b47aa7777 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:04:01 +0000 Subject: [PATCH 1/3] feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 --- .../securitycenter/v1/SecurityCenterGrpc.java | 4634 ----------------- .../v1beta1/SecurityCenterGrpc.java | 2437 --------- .../v1p1beta1/SecurityCenterGrpc.java | 3087 ----------- .../v1/SecurityCenterClient.java | 179 +- .../v1/SecurityCenterSettings.java | 39 +- .../securitycenter/v1/gapic_metadata.json | 0 .../cloud/securitycenter/v1/package-info.java | 0 .../GrpcSecurityCenterCallableFactory.java | 0 .../v1/stub/GrpcSecurityCenterStub.java | 1 + ...HttpJsonSecurityCenterCallableFactory.java | 105 + .../v1/stub/HttpJsonSecurityCenterStub.java | 2341 +++++++++ .../v1/stub/SecurityCenterStub.java | 6 +- .../v1/stub/SecurityCenterStubSettings.java | 98 +- .../securitycenter/v1/MockSecurityCenter.java | 0 .../v1/MockSecurityCenterImpl.java | 0 .../v1/SecurityCenterClientHttpJsonTest.java | 4395 ++++++++++++++++ .../v1/SecurityCenterClientTest.java | 0 .../securitycenter/v1/SecurityCenterGrpc.java | 3397 ++++++++++++ .../cloud/securitycenter/v1/Access.java | 717 ++- .../securitycenter/v1/AccessOrBuilder.java | 71 +- .../cloud/securitycenter/v1/AccessProto.java | 70 + .../google/cloud/securitycenter/v1/Asset.java | 2659 ++++------ .../cloud/securitycenter/v1/AssetName.java | 0 .../securitycenter/v1/AssetOrBuilder.java | 122 +- .../securitycenter/v1/AssetOuterClass.java | 133 + .../securitycenter/v1/BigQueryExport.java | 986 ++-- .../securitycenter/v1/BigQueryExportName.java | 0 .../v1/BigQueryExportOrBuilder.java | 106 +- .../v1/BigQueryExportProto.java | 79 + .../v1/BulkMuteFindingsRequest.java | 543 +- .../v1/BulkMuteFindingsRequestOrBuilder.java | 65 +- .../v1/BulkMuteFindingsResponse.java | 238 +- .../v1/BulkMuteFindingsResponseOrBuilder.java | 9 + .../cloud/securitycenter/v1/Compliance.java | 488 +- .../v1/ComplianceOrBuilder.java | 54 +- .../securitycenter/v1/ComplianceProto.java | 55 + .../cloud/securitycenter/v1/Connection.java | 605 +-- .../v1/ConnectionOrBuilder.java | 48 +- .../securitycenter/v1/ConnectionProto.java | 60 + .../v1/CreateBigQueryExportRequest.java | 586 +-- .../CreateBigQueryExportRequestOrBuilder.java | 64 +- .../v1/CreateFindingRequest.java | 570 +- .../v1/CreateFindingRequestOrBuilder.java | 64 +- .../v1/CreateMuteConfigRequest.java | 567 +- .../v1/CreateMuteConfigRequestOrBuilder.java | 64 +- .../v1/CreateNotificationConfigRequest.java | 619 +-- ...ateNotificationConfigRequestOrBuilder.java | 64 +- .../v1/CreateSourceRequest.java | 491 +- .../v1/CreateSourceRequestOrBuilder.java | 55 +- .../google/cloud/securitycenter/v1/Cve.java | 582 +-- .../cloud/securitycenter/v1/CveOrBuilder.java | 56 +- .../cloud/securitycenter/v1/Cvssv3.java | 1236 ++--- .../securitycenter/v1/Cvssv3OrBuilder.java | 69 +- .../v1/DeleteBigQueryExportRequest.java | 360 +- .../DeleteBigQueryExportRequestOrBuilder.java | 35 + .../v1/DeleteMuteConfigRequest.java | 342 +- .../v1/DeleteMuteConfigRequestOrBuilder.java | 35 + .../v1/DeleteNotificationConfigRequest.java | 378 +- ...eteNotificationConfigRequestOrBuilder.java | 31 + .../v1/EnvironmentVariable.java | 393 +- .../v1/EnvironmentVariableOrBuilder.java | 36 +- .../securitycenter/v1/ExfilResource.java | 419 +- .../v1/ExfilResourceOrBuilder.java | 45 +- .../cloud/securitycenter/v1/Exfiltration.java | 521 +- .../v1/ExfiltrationOrBuilder.java | 54 +- .../securitycenter/v1/ExfiltrationProto.java | 70 + .../securitycenter/v1/ExternalSystem.java | 679 +-- .../v1/ExternalSystemOrBuilder.java | 71 +- .../v1/ExternalSystemProto.java | 76 + .../google/cloud/securitycenter/v1/File.java | 567 +- .../securitycenter/v1/FileOrBuilder.java | 54 +- .../cloud/securitycenter/v1/FileProto.java | 56 + .../cloud/securitycenter/v1/Finding.java | 3589 +++++-------- .../cloud/securitycenter/v1/FindingName.java | 0 .../securitycenter/v1/FindingOrBuilder.java | 371 +- .../securitycenter/v1/FindingOuterClass.java | 183 + .../cloud/securitycenter/v1/Folder.java | 383 +- .../cloud/securitycenter/v1/FolderName.java | 0 .../securitycenter/v1/FolderOrBuilder.java | 36 +- .../cloud/securitycenter/v1/FolderProto.java | 55 + .../cloud/securitycenter/v1/Geolocation.java | 301 +- .../v1/GeolocationOrBuilder.java | 29 + .../v1/GetBigQueryExportRequest.java | 342 +- .../v1/GetBigQueryExportRequestOrBuilder.java | 35 + .../v1/GetMuteConfigRequest.java | 342 +- .../v1/GetMuteConfigRequestOrBuilder.java | 35 + .../v1/GetNotificationConfigRequest.java | 363 +- ...GetNotificationConfigRequestOrBuilder.java | 31 + .../v1/GetOrganizationSettingsRequest.java | 374 +- ...tOrganizationSettingsRequestOrBuilder.java | 31 + .../securitycenter/v1/GetSourceRequest.java | 339 +- .../v1/GetSourceRequestOrBuilder.java | 31 + .../securitycenter/v1/GroupAssetsRequest.java | 801 ++- .../v1/GroupAssetsRequestOrBuilder.java | 81 +- .../v1/GroupAssetsResponse.java | 566 +- .../v1/GroupAssetsResponseOrBuilder.java | 56 +- .../v1/GroupFindingsRequest.java | 801 ++- .../v1/GroupFindingsRequestOrBuilder.java | 81 +- .../v1/GroupFindingsResponse.java | 566 +- .../v1/GroupFindingsResponseOrBuilder.java | 56 +- .../cloud/securitycenter/v1/GroupResult.java | 509 +- .../v1/GroupResultOrBuilder.java | 52 +- .../cloud/securitycenter/v1/IamBinding.java | 514 +- .../v1/IamBindingOrBuilder.java | 42 +- .../securitycenter/v1/IamBindingProto.java | 58 + .../cloud/securitycenter/v1/Indicator.java | 443 +- .../securitycenter/v1/IndicatorOrBuilder.java | 54 +- .../securitycenter/v1/IndicatorProto.java | 55 + .../securitycenter/v1/ListAssetsRequest.java | 886 ++-- .../v1/ListAssetsRequestOrBuilder.java | 89 +- .../securitycenter/v1/ListAssetsResponse.java | 1310 ++--- .../v1/ListAssetsResponseOrBuilder.java | 80 +- .../v1/ListBigQueryExportsRequest.java | 463 +- .../ListBigQueryExportsRequestOrBuilder.java | 47 +- .../v1/ListBigQueryExportsResponse.java | 468 +- .../ListBigQueryExportsResponseOrBuilder.java | 45 +- .../v1/ListFindingsRequest.java | 889 ++-- .../v1/ListFindingsRequestOrBuilder.java | 89 +- .../v1/ListFindingsResponse.java | 2739 ++++------ .../v1/ListFindingsResponseOrBuilder.java | 81 +- .../v1/ListMuteConfigsRequest.java | 455 +- .../v1/ListMuteConfigsRequestOrBuilder.java | 47 +- .../v1/ListMuteConfigsResponse.java | 461 +- .../v1/ListMuteConfigsResponseOrBuilder.java | 45 +- .../v1/ListNotificationConfigsRequest.java | 487 +- ...stNotificationConfigsRequestOrBuilder.java | 47 +- .../v1/ListNotificationConfigsResponse.java | 587 +-- ...tNotificationConfigsResponseOrBuilder.java | 56 +- .../securitycenter/v1/ListSourcesRequest.java | 455 +- .../v1/ListSourcesRequestOrBuilder.java | 47 +- .../v1/ListSourcesResponse.java | 463 +- .../v1/ListSourcesResponseOrBuilder.java | 45 +- .../cloud/securitycenter/v1/MitreAttack.java | 1391 ++--- .../v1/MitreAttackOrBuilder.java | 138 +- .../securitycenter/v1/MitreAttackProto.java | 92 + .../cloud/securitycenter/v1/MuteConfig.java | 938 ++-- .../securitycenter/v1/MuteConfigName.java | 0 .../v1/MuteConfigOrBuilder.java | 109 +- .../securitycenter/v1/MuteConfigProto.java | 79 + .../securitycenter/v1/NotificationConfig.java | 1154 ++-- .../v1/NotificationConfigName.java | 0 .../v1/NotificationConfigOrBuilder.java | 77 +- .../v1/NotificationConfigProto.java | 91 + .../v1/NotificationMessage.java | 559 +- .../v1/NotificationMessageOrBuilder.java | 43 +- .../v1/NotificationMessageProto.java | 65 + .../securitycenter/v1/OrganizationName.java | 0 .../v1/OrganizationSettings.java | 1316 ++--- .../v1/OrganizationSettingsName.java | 0 .../v1/OrganizationSettingsOrBuilder.java | 56 +- .../v1/OrganizationSettingsOuterClass.java | 86 + .../cloud/securitycenter/v1/Process.java | 970 ++-- .../securitycenter/v1/ProcessOrBuilder.java | 97 +- .../cloud/securitycenter/v1/ProcessProto.java | 78 + .../cloud/securitycenter/v1/ProjectName.java | 0 .../cloud/securitycenter/v1/Reference.java | 380 +- .../securitycenter/v1/ReferenceOrBuilder.java | 36 +- .../cloud/securitycenter/v1/Resource.java | 1018 ++-- .../securitycenter/v1/ResourceOrBuilder.java | 119 +- .../securitycenter/v1/ResourceProto.java | 70 + .../v1/RunAssetDiscoveryRequest.java | 342 +- .../v1/RunAssetDiscoveryRequestOrBuilder.java | 31 + .../v1/RunAssetDiscoveryResponse.java | 480 +- .../RunAssetDiscoveryResponseOrBuilder.java | 32 +- .../RunAssetDiscoveryResponseOuterClass.java | 62 + .../securitycenter/v1/SecurityMarks.java | 650 ++- .../v1/SecurityMarksOrBuilder.java | 67 +- .../v1/SecurityMarksOuterClass.java | 87 + .../v1/SecuritycenterService.java | 1085 ++++ .../v1/SetFindingStateRequest.java | 554 +- .../v1/SetFindingStateRequestOrBuilder.java | 66 +- .../securitycenter/v1/SetMuteRequest.java | 423 +- .../v1/SetMuteRequestOrBuilder.java | 49 +- .../cloud/securitycenter/v1/Source.java | 540 +- .../cloud/securitycenter/v1/SourceName.java | 0 .../securitycenter/v1/SourceOrBuilder.java | 54 +- .../securitycenter/v1/SourceOuterClass.java | 67 + .../v1/UpdateBigQueryExportRequest.java | 499 +- .../UpdateBigQueryExportRequestOrBuilder.java | 46 +- .../v1/UpdateExternalSystemRequest.java | 499 +- .../UpdateExternalSystemRequestOrBuilder.java | 46 +- .../v1/UpdateFindingRequest.java | 483 +- .../v1/UpdateFindingRequestOrBuilder.java | 46 +- .../v1/UpdateMuteConfigRequest.java | 480 +- .../v1/UpdateMuteConfigRequestOrBuilder.java | 46 +- .../v1/UpdateNotificationConfigRequest.java | 532 +- ...ateNotificationConfigRequestOrBuilder.java | 46 +- .../v1/UpdateOrganizationSettingsRequest.java | 534 +- ...eOrganizationSettingsRequestOrBuilder.java | 49 +- .../v1/UpdateSecurityMarksRequest.java | 576 +- .../UpdateSecurityMarksRequestOrBuilder.java | 54 +- .../v1/UpdateSourceRequest.java | 483 +- .../v1/UpdateSourceRequestOrBuilder.java | 46 +- .../securitycenter/v1/Vulnerability.java | 325 +- .../v1/VulnerabilityOrBuilder.java | 26 +- .../securitycenter/v1/VulnerabilityProto.java | 127 + .../cloud/securitycenter/v1/access.proto | 0 .../cloud/securitycenter/v1/asset.proto | 0 .../securitycenter/v1/bigquery_export.proto | 0 .../cloud/securitycenter/v1/compliance.proto | 0 .../cloud/securitycenter/v1/connection.proto | 0 .../securitycenter/v1/exfiltration.proto | 0 .../securitycenter/v1/external_system.proto | 0 .../google/cloud/securitycenter/v1/file.proto | 0 .../cloud/securitycenter/v1/finding.proto | 0 .../cloud/securitycenter/v1/folder.proto | 0 .../cloud/securitycenter/v1/iam_binding.proto | 0 .../cloud/securitycenter/v1/indicator.proto | 0 .../securitycenter/v1/mitre_attack.proto | 0 .../cloud/securitycenter/v1/mute_config.proto | 0 .../v1/notification_config.proto | 0 .../v1/notification_message.proto | 0 .../v1/organization_settings.proto | 0 .../cloud/securitycenter/v1/process.proto | 0 .../cloud/securitycenter/v1/resource.proto | 0 .../v1/run_asset_discovery_response.proto | 0 .../securitycenter/v1/security_marks.proto | 0 .../v1/securitycenter_service.proto | 0 .../cloud/securitycenter/v1/source.proto | 0 .../securitycenter/v1/vulnerability.proto | 0 .../AsyncBulkMuteFindings.java | 49 + .../AsyncBulkMuteFindingsLRO.java | 50 + .../SyncBulkMuteFindings.java | 45 + .../SyncBulkMuteFindingsResourcename.java | 40 + .../SyncBulkMuteFindingsString.java | 39 + .../SyncCreateSetCredentialsProvider.java | 41 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 38 + .../AsyncCreateBigQueryExport.java | 49 + .../SyncCreateBigQueryExport.java | 45 + ...yExportFoldernameBigqueryexportString.java | 42 + ...tOrganizationnameBigqueryexportString.java | 43 + ...ExportProjectnameBigqueryexportString.java | 42 + ...QueryExportStringBigqueryexportString.java | 42 + .../createfinding/AsyncCreateFinding.java | 49 + .../createfinding/SyncCreateFinding.java | 46 + ...cCreateFindingSourcenameStringFinding.java | 41 + .../SyncCreateFindingStringStringFinding.java | 41 + .../AsyncCreateMuteConfig.java | 49 + .../SyncCreateMuteConfig.java | 45 + ...cCreateMuteConfigFoldernameMuteconfig.java | 40 + ...eMuteConfigFoldernameMuteconfigString.java | 41 + ...eMuteConfigOrganizationnameMuteconfig.java | 40 + ...onfigOrganizationnameMuteconfigString.java | 41 + ...CreateMuteConfigProjectnameMuteconfig.java | 40 + ...MuteConfigProjectnameMuteconfigString.java | 41 + .../SyncCreateMuteConfigStringMuteconfig.java | 40 + ...reateMuteConfigStringMuteconfigString.java | 41 + .../AsyncCreateNotificationConfig.java | 49 + .../SyncCreateNotificationConfig.java | 45 + ...figOrganizationnameNotificationconfig.java | 42 + ...anizationnameStringNotificationconfig.java | 43 + ...icationConfigStringNotificationconfig.java | 41 + ...nConfigStringStringNotificationconfig.java | 42 + .../createsource/AsyncCreateSource.java | 47 + .../createsource/SyncCreateSource.java | 44 + ...yncCreateSourceOrganizationnameSource.java | 40 + .../SyncCreateSourceStringSource.java | 40 + .../AsyncDeleteBigQueryExport.java | 49 + .../SyncDeleteBigQueryExport.java | 45 + ...eleteBigQueryExportBigqueryexportname.java | 40 + .../SyncDeleteBigQueryExportString.java | 40 + .../AsyncDeleteMuteConfig.java | 48 + .../SyncDeleteMuteConfig.java | 45 + .../SyncDeleteMuteConfigMuteconfigname.java | 40 + .../SyncDeleteMuteConfigString.java | 40 + .../AsyncDeleteNotificationConfig.java | 48 + .../SyncDeleteNotificationConfig.java | 44 + ...ificationConfigNotificationconfigname.java | 40 + .../SyncDeleteNotificationConfigString.java | 39 + .../AsyncGetBigQueryExport.java | 49 + .../SyncGetBigQueryExport.java | 45 + ...ncGetBigQueryExportBigqueryexportname.java | 40 + .../SyncGetBigQueryExportString.java | 40 + .../getiampolicy/AsyncGetIamPolicy.java | 49 + .../getiampolicy/SyncGetIamPolicy.java | 46 + .../SyncGetIamPolicyResourcename.java | 40 + .../getiampolicy/SyncGetIamPolicyString.java | 39 + .../getmuteconfig/AsyncGetMuteConfig.java | 49 + .../getmuteconfig/SyncGetMuteConfig.java | 45 + .../SyncGetMuteConfigMuteconfigname.java | 40 + .../SyncGetMuteConfigString.java | 40 + .../AsyncGetNotificationConfig.java | 48 + .../SyncGetNotificationConfig.java | 44 + ...ificationConfigNotificationconfigname.java | 40 + .../SyncGetNotificationConfigString.java | 39 + .../AsyncGetOrganizationSettings.java | 47 + .../SyncGetOrganizationSettings.java | 43 + ...ationSettingsOrganizationsettingsname.java | 39 + .../SyncGetOrganizationSettingsString.java | 39 + .../getsource/AsyncGetSource.java | 46 + .../getsource/SyncGetSource.java | 43 + .../getsource/SyncGetSourceSourcename.java | 39 + .../getsource/SyncGetSourceString.java | 39 + .../groupassets/AsyncGroupAssets.java | 57 + .../groupassets/AsyncGroupAssetsPaged.java | 64 + .../groupassets/SyncGroupAssets.java | 53 + .../groupfindings/AsyncGroupFindings.java | 58 + .../AsyncGroupFindingsPaged.java | 65 + .../groupfindings/SyncGroupFindings.java | 54 + .../SyncGroupFindingsSourcenameString.java | 42 + .../SyncGroupFindingsStringString.java | 42 + .../listassets/AsyncListAssets.java | 59 + .../listassets/AsyncListAssetsPaged.java | 65 + .../listassets/SyncListAssets.java | 56 + .../AsyncListBigQueryExports.java | 51 + .../AsyncListBigQueryExportsPaged.java | 59 + .../SyncListBigQueryExports.java | 48 + .../SyncListBigQueryExportsFoldername.java | 41 + ...ncListBigQueryExportsOrganizationname.java | 41 + .../SyncListBigQueryExportsProjectname.java | 41 + .../SyncListBigQueryExportsString.java | 41 + .../listfindings/AsyncListFindings.java | 60 + .../listfindings/AsyncListFindingsPaged.java | 67 + .../listfindings/SyncListFindings.java | 57 + .../listmuteconfigs/AsyncListMuteConfigs.java | 51 + .../AsyncListMuteConfigsPaged.java | 59 + .../listmuteconfigs/SyncListMuteConfigs.java | 47 + .../SyncListMuteConfigsFoldername.java | 41 + .../SyncListMuteConfigsOrganizationname.java | 41 + .../SyncListMuteConfigsProjectname.java | 41 + .../SyncListMuteConfigsString.java | 41 + .../AsyncListNotificationConfigs.java | 51 + .../AsyncListNotificationConfigsPaged.java | 59 + .../SyncListNotificationConfigs.java | 48 + ...stNotificationConfigsOrganizationname.java | 42 + .../SyncListNotificationConfigsString.java | 42 + .../listsources/AsyncListSources.java | 51 + .../listsources/AsyncListSourcesPaged.java | 58 + .../listsources/SyncListSources.java | 47 + .../SyncListSourcesFoldername.java | 41 + .../SyncListSourcesOrganizationname.java | 41 + .../SyncListSourcesProjectname.java | 41 + .../listsources/SyncListSourcesString.java | 41 + .../AsyncRunAssetDiscovery.java | 47 + .../AsyncRunAssetDiscoveryLRO.java | 48 + .../SyncRunAssetDiscovery.java | 44 + ...SyncRunAssetDiscoveryOrganizationname.java | 40 + .../SyncRunAssetDiscoveryString.java | 40 + .../setfindingstate/AsyncSetFindingState.java | 52 + .../setfindingstate/SyncSetFindingState.java | 48 + ...StateFindingnameFindingstateTimestamp.java | 43 + ...ndingStateStringFindingstateTimestamp.java | 44 + .../setiampolicy/AsyncSetIamPolicy.java | 50 + .../setiampolicy/SyncSetIamPolicy.java | 47 + .../SyncSetIamPolicyResourcenamePolicy.java | 41 + .../SyncSetIamPolicyStringPolicy.java | 40 + .../setmute/AsyncSetMute.java | 49 + .../setmute/SyncSetMute.java | 46 + .../SyncSetMuteFindingnameFindingmute.java | 41 + .../setmute/SyncSetMuteStringFindingmute.java | 42 + .../AsyncTestIamPermissions.java | 50 + .../SyncTestIamPermissions.java | 46 + ...tIamPermissionsResourcenameListstring.java | 44 + ...yncTestIamPermissionsStringListstring.java | 43 + .../AsyncUpdateBigQueryExport.java | 48 + .../SyncUpdateBigQueryExport.java | 44 + ...BigQueryExportBigqueryexportFieldmask.java | 41 + .../AsyncUpdateExternalSystem.java | 48 + .../SyncUpdateExternalSystem.java | 44 + ...ExternalSystemExternalsystemFieldmask.java | 41 + .../updatefinding/AsyncUpdateFinding.java | 47 + .../updatefinding/SyncUpdateFinding.java | 44 + .../SyncUpdateFindingFinding.java | 38 + .../AsyncUpdateMuteConfig.java | 48 + .../SyncUpdateMuteConfig.java | 44 + ...ncUpdateMuteConfigMuteconfigFieldmask.java | 40 + .../AsyncUpdateNotificationConfig.java | 48 + .../SyncUpdateNotificationConfig.java | 44 + ...eNotificationConfigNotificationconfig.java | 39 + ...tionConfigNotificationconfigFieldmask.java | 41 + .../AsyncUpdateOrganizationSettings.java | 48 + .../SyncUpdateOrganizationSettings.java | 44 + ...anizationSettingsOrganizationsettings.java | 39 + .../AsyncUpdateSecurityMarks.java | 50 + .../SyncUpdateSecurityMarks.java | 46 + .../SyncUpdateSecurityMarksSecuritymarks.java | 38 + .../updatesource/AsyncUpdateSource.java | 47 + .../updatesource/SyncUpdateSource.java | 44 + .../updatesource/SyncUpdateSourceSource.java | 38 + .../createsource/SyncCreateSource.java | 46 + .../createsource/SyncCreateSource.java | 46 + .../v1beta1/SecurityCenterClient.java | 117 +- .../v1beta1/SecurityCenterSettings.java | 30 +- .../v1beta1/gapic_metadata.json | 0 .../securitycenter/v1beta1/package-info.java | 0 .../GrpcSecurityCenterCallableFactory.java | 0 .../v1beta1/stub/GrpcSecurityCenterStub.java | 1 + ...HttpJsonSecurityCenterCallableFactory.java | 105 + .../stub/HttpJsonSecurityCenterStub.java | 1215 +++++ .../v1beta1/stub/SecurityCenterStub.java | 6 +- .../stub/SecurityCenterStubSettings.java | 59 +- .../v1beta1/MockSecurityCenter.java | 0 .../v1beta1/MockSecurityCenterImpl.java | 0 .../SecurityCenterClientHttpJsonTest.java | 1623 ++++++ .../v1beta1/SecurityCenterClientTest.java | 0 .../v1beta1/SecurityCenterGrpc.java | 1813 +++++++ .../cloud/securitycenter/v1beta1/Asset.java | 1766 +++---- .../v1beta1/AssetOrBuilder.java | 108 +- .../v1beta1/AssetOuterClass.java | 114 + .../v1beta1/CreateFindingRequest.java | 574 +- .../CreateFindingRequestOrBuilder.java | 64 +- .../v1beta1/CreateSourceRequest.java | 488 +- .../v1beta1/CreateSourceRequestOrBuilder.java | 55 +- .../cloud/securitycenter/v1beta1/Finding.java | 1342 ++--- .../securitycenter/v1beta1/FindingName.java | 0 .../v1beta1/FindingOrBuilder.java | 136 +- .../v1beta1/FindingOuterClass.java | 103 + .../GetOrganizationSettingsRequest.java | 381 +- ...tOrganizationSettingsRequestOrBuilder.java | 31 + .../v1beta1/GetSourceRequest.java | 342 +- .../v1beta1/GetSourceRequestOrBuilder.java | 31 + .../v1beta1/GroupAssetsRequest.java | 801 ++- .../v1beta1/GroupAssetsRequestOrBuilder.java | 81 +- .../v1beta1/GroupAssetsResponse.java | 540 +- .../v1beta1/GroupAssetsResponseOrBuilder.java | 50 +- .../v1beta1/GroupFindingsRequest.java | 708 +-- .../GroupFindingsRequestOrBuilder.java | 73 +- .../v1beta1/GroupFindingsResponse.java | 548 +- .../GroupFindingsResponseOrBuilder.java | 50 +- .../securitycenter/v1beta1/GroupResult.java | 519 +- .../v1beta1/GroupResultOrBuilder.java | 52 +- .../v1beta1/ListAssetsRequest.java | 925 ++-- .../v1beta1/ListAssetsRequestOrBuilder.java | 98 +- .../v1beta1/ListAssetsResponse.java | 1375 ++--- .../v1beta1/ListAssetsResponseOrBuilder.java | 81 +- .../v1beta1/ListFindingsRequest.java | 825 ++- .../v1beta1/ListFindingsRequestOrBuilder.java | 90 +- .../v1beta1/ListFindingsResponse.java | 592 +-- .../ListFindingsResponseOrBuilder.java | 56 +- .../v1beta1/ListSourcesRequest.java | 455 +- .../v1beta1/ListSourcesRequestOrBuilder.java | 47 +- .../v1beta1/ListSourcesResponse.java | 464 +- .../v1beta1/ListSourcesResponseOrBuilder.java | 45 +- .../v1beta1/OrganizationName.java | 0 .../v1beta1/OrganizationSettings.java | 1215 ++--- .../v1beta1/OrganizationSettingsName.java | 0 .../OrganizationSettingsOrBuilder.java | 56 +- .../OrganizationSettingsOuterClass.java | 86 + .../v1beta1/RunAssetDiscoveryRequest.java | 363 +- .../RunAssetDiscoveryRequestOrBuilder.java | 31 + .../v1beta1/RunAssetDiscoveryResponse.java | 502 +- .../RunAssetDiscoveryResponseOrBuilder.java | 32 +- .../RunAssetDiscoveryResponseOuterClass.java | 63 + .../securitycenter/v1beta1/SecurityMarks.java | 577 +- .../v1beta1/SecurityMarksOrBuilder.java | 58 +- .../v1beta1/SecurityMarksOuterClass.java | 81 + .../v1beta1/SecuritycenterService.java | 554 ++ .../v1beta1/SetFindingStateRequest.java | 582 +-- .../SetFindingStateRequestOrBuilder.java | 66 +- .../cloud/securitycenter/v1beta1/Source.java | 459 +- .../securitycenter/v1beta1/SourceName.java | 0 .../v1beta1/SourceOrBuilder.java | 45 +- .../v1beta1/SourceOuterClass.java | 65 + .../v1beta1/UpdateFindingRequest.java | 487 +- .../UpdateFindingRequestOrBuilder.java | 46 +- .../UpdateOrganizationSettingsRequest.java | 555 +- ...eOrganizationSettingsRequestOrBuilder.java | 49 +- .../v1beta1/UpdateSecurityMarksRequest.java | 608 +-- .../UpdateSecurityMarksRequestOrBuilder.java | 54 +- .../v1beta1/UpdateSourceRequest.java | 480 +- .../v1beta1/UpdateSourceRequestOrBuilder.java | 46 +- .../cloud/securitycenter/v1beta1/asset.proto | 0 .../securitycenter/v1beta1/finding.proto | 0 .../v1beta1/organization_settings.proto | 0 .../run_asset_discovery_response.proto | 0 .../v1beta1/security_marks.proto | 0 .../v1beta1/securitycenter_service.proto | 0 .../cloud/securitycenter/v1beta1/source.proto | 0 .../SyncCreateSetCredentialsProvider.java | 41 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 38 + .../createfinding/AsyncCreateFinding.java | 48 + .../createfinding/SyncCreateFinding.java | 45 + ...cCreateFindingSourcenameStringFinding.java | 41 + .../SyncCreateFindingStringStringFinding.java | 41 + .../createsource/AsyncCreateSource.java | 47 + .../createsource/SyncCreateSource.java | 44 + ...yncCreateSourceOrganizationnameSource.java | 40 + .../SyncCreateSourceStringSource.java | 40 + .../getiampolicy/AsyncGetIamPolicy.java | 48 + .../getiampolicy/SyncGetIamPolicy.java | 45 + .../SyncGetIamPolicyResourcename.java | 40 + .../getiampolicy/SyncGetIamPolicyString.java | 39 + .../AsyncGetOrganizationSettings.java | 47 + .../SyncGetOrganizationSettings.java | 43 + ...ationSettingsOrganizationsettingsname.java | 39 + .../SyncGetOrganizationSettingsString.java | 39 + .../getsource/AsyncGetSource.java | 46 + .../getsource/SyncGetSource.java | 43 + .../getsource/SyncGetSourceSourcename.java | 39 + .../getsource/SyncGetSourceString.java | 39 + .../groupassets/AsyncGroupAssets.java | 57 + .../groupassets/AsyncGroupAssetsPaged.java | 64 + .../groupassets/SyncGroupAssets.java | 53 + .../groupfindings/AsyncGroupFindings.java | 55 + .../AsyncGroupFindingsPaged.java | 62 + .../groupfindings/SyncGroupFindings.java | 51 + .../SyncGroupFindingsSourcenameString.java | 42 + .../SyncGroupFindingsStringString.java | 42 + .../listassets/AsyncListAssets.java | 59 + .../listassets/AsyncListAssetsPaged.java | 65 + .../listassets/SyncListAssets.java | 56 + .../listfindings/AsyncListFindings.java | 57 + .../listfindings/AsyncListFindingsPaged.java | 64 + .../listfindings/SyncListFindings.java | 53 + .../listsources/AsyncListSources.java | 51 + .../listsources/AsyncListSourcesPaged.java | 58 + .../listsources/SyncListSources.java | 47 + .../SyncListSourcesOrganizationname.java | 41 + .../listsources/SyncListSourcesString.java | 41 + .../AsyncRunAssetDiscovery.java | 47 + .../AsyncRunAssetDiscoveryLRO.java | 47 + .../SyncRunAssetDiscovery.java | 43 + ...SyncRunAssetDiscoveryOrganizationname.java | 39 + .../SyncRunAssetDiscoveryString.java | 39 + .../setfindingstate/AsyncSetFindingState.java | 49 + .../setfindingstate/SyncSetFindingState.java | 45 + ...StateFindingnameFindingstateTimestamp.java | 42 + ...ndingStateStringFindingstateTimestamp.java | 42 + .../setiampolicy/AsyncSetIamPolicy.java | 49 + .../setiampolicy/SyncSetIamPolicy.java | 46 + .../SyncSetIamPolicyResourcenamePolicy.java | 41 + .../SyncSetIamPolicyStringPolicy.java | 40 + .../AsyncTestIamPermissions.java | 49 + .../SyncTestIamPermissions.java | 45 + ...tIamPermissionsResourcenameListstring.java | 44 + ...yncTestIamPermissionsStringListstring.java | 43 + .../updatefinding/AsyncUpdateFinding.java | 47 + .../updatefinding/SyncUpdateFinding.java | 44 + .../SyncUpdateFindingFinding.java | 38 + .../AsyncUpdateOrganizationSettings.java | 48 + .../SyncUpdateOrganizationSettings.java | 44 + ...anizationSettingsOrganizationsettings.java | 39 + .../AsyncUpdateSecurityMarks.java | 50 + .../SyncUpdateSecurityMarks.java | 46 + .../SyncUpdateSecurityMarksSecuritymarks.java | 38 + .../updatesource/AsyncUpdateSource.java | 47 + .../updatesource/SyncUpdateSource.java | 44 + .../updatesource/SyncUpdateSourceSource.java | 38 + .../createsource/SyncCreateSource.java | 46 + .../createsource/SyncCreateSource.java | 46 + .../v1p1beta1/SecurityCenterClient.java | 151 +- .../v1p1beta1/SecurityCenterSettings.java | 36 +- .../v1p1beta1/gapic_metadata.json | 0 .../v1p1beta1/package-info.java | 0 .../GrpcSecurityCenterCallableFactory.java | 0 .../stub/GrpcSecurityCenterStub.java | 1 + ...HttpJsonSecurityCenterCallableFactory.java | 105 + .../stub/HttpJsonSecurityCenterStub.java | 1560 ++++++ .../v1p1beta1/stub/SecurityCenterStub.java | 6 +- .../stub/SecurityCenterStubSettings.java | 89 +- .../v1p1beta1/MockSecurityCenter.java | 0 .../v1p1beta1/MockSecurityCenterImpl.java | 0 .../SecurityCenterClientHttpJsonTest.java | 2880 ++++++++++ .../v1p1beta1/SecurityCenterClientTest.java | 0 .../v1p1beta1/SecurityCenterGrpc.java | 2255 ++++++++ .../cloud/securitycenter/v1p1beta1/Asset.java | 2752 ++++------ .../securitycenter/v1p1beta1/AssetName.java | 0 .../v1p1beta1/AssetOrBuilder.java | 125 +- .../v1p1beta1/AssetOuterClass.java | 138 + .../v1p1beta1/CreateFindingRequest.java | 586 +-- .../CreateFindingRequestOrBuilder.java | 64 +- .../CreateNotificationConfigRequest.java | 641 +-- ...ateNotificationConfigRequestOrBuilder.java | 67 +- .../v1p1beta1/CreateSourceRequest.java | 496 +- .../CreateSourceRequestOrBuilder.java | 55 +- .../DeleteNotificationConfigRequest.java | 398 +- ...eteNotificationConfigRequestOrBuilder.java | 31 + .../securitycenter/v1p1beta1/Finding.java | 1590 +++--- .../securitycenter/v1p1beta1/FindingName.java | 0 .../v1p1beta1/FindingOrBuilder.java | 151 +- .../v1p1beta1/FindingOuterClass.java | 114 + .../securitycenter/v1p1beta1/Folder.java | 390 +- .../securitycenter/v1p1beta1/FolderName.java | 0 .../v1p1beta1/FolderOrBuilder.java | 36 +- .../securitycenter/v1p1beta1/FolderProto.java | 59 + .../GetNotificationConfigRequest.java | 378 +- ...GetNotificationConfigRequestOrBuilder.java | 31 + .../GetOrganizationSettingsRequest.java | 391 +- ...tOrganizationSettingsRequestOrBuilder.java | 31 + .../v1p1beta1/GetSourceRequest.java | 342 +- .../v1p1beta1/GetSourceRequestOrBuilder.java | 31 + .../v1p1beta1/GroupAssetsRequest.java | 808 ++- .../GroupAssetsRequestOrBuilder.java | 81 +- .../v1p1beta1/GroupAssetsResponse.java | 647 +-- .../GroupAssetsResponseOrBuilder.java | 53 +- .../v1p1beta1/GroupFindingsRequest.java | 819 ++- .../GroupFindingsRequestOrBuilder.java | 81 +- .../v1p1beta1/GroupFindingsResponse.java | 660 +-- .../GroupFindingsResponseOrBuilder.java | 53 +- .../securitycenter/v1p1beta1/GroupResult.java | 522 +- .../v1p1beta1/GroupResultOrBuilder.java | 52 +- .../v1p1beta1/ListAssetsRequest.java | 889 ++-- .../v1p1beta1/ListAssetsRequestOrBuilder.java | 89 +- .../v1p1beta1/ListAssetsResponse.java | 1392 ++--- .../ListAssetsResponseOrBuilder.java | 82 +- .../v1p1beta1/ListFindingsRequest.java | 897 ++-- .../ListFindingsRequestOrBuilder.java | 89 +- .../v1p1beta1/ListFindingsResponse.java | 2619 ++++------ .../ListFindingsResponseOrBuilder.java | 82 +- .../ListNotificationConfigsRequest.java | 504 +- ...stNotificationConfigsRequestOrBuilder.java | 47 +- .../ListNotificationConfigsResponse.java | 646 +-- ...tNotificationConfigsResponseOrBuilder.java | 65 +- .../v1p1beta1/ListSourcesRequest.java | 462 +- .../ListSourcesRequestOrBuilder.java | 47 +- .../v1p1beta1/ListSourcesResponse.java | 470 +- .../ListSourcesResponseOrBuilder.java | 45 +- .../v1p1beta1/NotificationConfig.java | 1390 ++--- .../v1p1beta1/NotificationConfigName.java | 0 .../NotificationConfigOrBuilder.java | 92 +- .../NotificationConfigOuterClass.java | 98 + .../v1p1beta1/NotificationMessage.java | 567 +- .../NotificationMessageOrBuilder.java | 43 +- .../NotificationMessageOuterClass.java | 69 + .../v1p1beta1/OrganizationName.java | 0 .../v1p1beta1/OrganizationSettings.java | 1374 ++--- .../v1p1beta1/OrganizationSettingsName.java | 0 .../OrganizationSettingsOrBuilder.java | 56 +- .../OrganizationSettingsOuterClass.java | 90 + .../securitycenter/v1p1beta1/ProjectName.java | 0 .../securitycenter/v1p1beta1/Resource.java | 869 ++-- .../v1p1beta1/ResourceOrBuilder.java | 101 +- .../v1p1beta1/ResourceProto.java | 73 + .../v1p1beta1/RunAssetDiscoveryRequest.java | 375 +- .../RunAssetDiscoveryRequestOrBuilder.java | 31 + .../v1p1beta1/RunAssetDiscoveryResponse.java | 523 +- .../RunAssetDiscoveryResponseOrBuilder.java | 32 +- .../RunAssetDiscoveryResponseOuterClass.java | 66 + .../v1p1beta1/SecurityMarks.java | 656 ++- .../v1p1beta1/SecurityMarksOrBuilder.java | 67 +- .../v1p1beta1/SecurityMarksOuterClass.java | 91 + .../v1p1beta1/SecuritycenterService.java | 769 +++ .../v1p1beta1/SetFindingStateRequest.java | 585 +-- .../SetFindingStateRequestOrBuilder.java | 66 +- .../securitycenter/v1p1beta1/Source.java | 547 +- .../securitycenter/v1p1beta1/SourceName.java | 0 .../v1p1beta1/SourceOrBuilder.java | 54 +- .../v1p1beta1/SourceOuterClass.java | 71 + .../v1p1beta1/UpdateFindingRequest.java | 499 +- .../UpdateFindingRequestOrBuilder.java | 46 +- .../UpdateNotificationConfigRequest.java | 554 +- ...ateNotificationConfigRequestOrBuilder.java | 49 +- .../UpdateOrganizationSettingsRequest.java | 601 +-- ...eOrganizationSettingsRequestOrBuilder.java | 49 +- .../v1p1beta1/UpdateSecurityMarksRequest.java | 614 +-- .../UpdateSecurityMarksRequestOrBuilder.java | 54 +- .../v1p1beta1/UpdateSourceRequest.java | 488 +- .../UpdateSourceRequestOrBuilder.java | 46 +- .../securitycenter/v1p1beta1/asset.proto | 0 .../securitycenter/v1p1beta1/finding.proto | 0 .../securitycenter/v1p1beta1/folder.proto | 0 .../v1p1beta1/notification_config.proto | 0 .../v1p1beta1/notification_message.proto | 0 .../v1p1beta1/organization_settings.proto | 0 .../securitycenter/v1p1beta1/resource.proto | 0 .../run_asset_discovery_response.proto | 0 .../v1p1beta1/security_marks.proto | 0 .../v1p1beta1/securitycenter_service.proto | 0 .../securitycenter/v1p1beta1/source.proto | 0 .../SyncCreateSetCredentialsProvider.java | 41 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 38 + .../createfinding/AsyncCreateFinding.java | 49 + .../createfinding/SyncCreateFinding.java | 46 + ...cCreateFindingSourcenameFindingString.java | 41 + ...cCreateFindingSourcenameStringFinding.java | 41 + .../SyncCreateFindingStringFindingString.java | 41 + .../SyncCreateFindingStringStringFinding.java | 41 + .../AsyncCreateNotificationConfig.java | 49 + .../SyncCreateNotificationConfig.java | 45 + ...figOrganizationnameNotificationconfig.java | 42 + ...anizationnameStringNotificationconfig.java | 43 + ...icationConfigStringNotificationconfig.java | 41 + ...nConfigStringStringNotificationconfig.java | 42 + .../createsource/AsyncCreateSource.java | 47 + .../createsource/SyncCreateSource.java | 44 + ...yncCreateSourceOrganizationnameSource.java | 40 + .../SyncCreateSourceStringSource.java | 40 + .../AsyncDeleteNotificationConfig.java | 48 + .../SyncDeleteNotificationConfig.java | 44 + ...ificationConfigNotificationconfigname.java | 40 + .../SyncDeleteNotificationConfigString.java | 39 + .../getiampolicy/AsyncGetIamPolicy.java | 49 + .../getiampolicy/SyncGetIamPolicy.java | 46 + .../SyncGetIamPolicyResourcename.java | 40 + .../getiampolicy/SyncGetIamPolicyString.java | 39 + .../AsyncGetNotificationConfig.java | 48 + .../SyncGetNotificationConfig.java | 44 + ...ificationConfigNotificationconfigname.java | 40 + .../SyncGetNotificationConfigString.java | 39 + .../AsyncGetOrganizationSettings.java | 47 + .../SyncGetOrganizationSettings.java | 43 + ...ationSettingsOrganizationsettingsname.java | 39 + .../SyncGetOrganizationSettingsString.java | 39 + .../getsource/AsyncGetSource.java | 46 + .../getsource/SyncGetSource.java | 43 + .../getsource/SyncGetSourceSourcename.java | 39 + .../getsource/SyncGetSourceString.java | 39 + .../groupassets/AsyncGroupAssets.java | 57 + .../groupassets/AsyncGroupAssetsPaged.java | 64 + .../groupassets/SyncGroupAssets.java | 53 + .../groupfindings/AsyncGroupFindings.java | 58 + .../AsyncGroupFindingsPaged.java | 65 + .../groupfindings/SyncGroupFindings.java | 54 + .../SyncGroupFindingsSourcenameString.java | 42 + .../SyncGroupFindingsStringString.java | 42 + .../listassets/AsyncListAssets.java | 59 + .../listassets/AsyncListAssetsPaged.java | 65 + .../listassets/SyncListAssets.java | 56 + .../listassets/SyncListAssetsFoldername.java | 42 + .../SyncListAssetsOrganizationname.java | 42 + .../listassets/SyncListAssetsProjectname.java | 42 + .../listassets/SyncListAssetsString.java | 42 + .../listfindings/AsyncListFindings.java | 60 + .../listfindings/AsyncListFindingsPaged.java | 67 + .../listfindings/SyncListFindings.java | 57 + .../SyncListFindingsSourcename.java | 42 + .../listfindings/SyncListFindingsString.java | 42 + .../AsyncListNotificationConfigs.java | 51 + .../AsyncListNotificationConfigsPaged.java | 59 + .../SyncListNotificationConfigs.java | 48 + ...stNotificationConfigsOrganizationname.java | 42 + .../SyncListNotificationConfigsString.java | 42 + .../listsources/AsyncListSources.java | 51 + .../listsources/AsyncListSourcesPaged.java | 58 + .../listsources/SyncListSources.java | 47 + .../SyncListSourcesFoldername.java | 41 + .../SyncListSourcesOrganizationname.java | 41 + .../SyncListSourcesProjectname.java | 41 + .../listsources/SyncListSourcesString.java | 41 + .../AsyncRunAssetDiscovery.java | 47 + .../AsyncRunAssetDiscoveryLRO.java | 48 + .../SyncRunAssetDiscovery.java | 44 + ...SyncRunAssetDiscoveryOrganizationname.java | 40 + .../SyncRunAssetDiscoveryString.java | 40 + .../setfindingstate/AsyncSetFindingState.java | 52 + .../setfindingstate/SyncSetFindingState.java | 48 + ...StateFindingnameFindingstateTimestamp.java | 43 + ...ndingStateStringFindingstateTimestamp.java | 44 + .../setiampolicy/AsyncSetIamPolicy.java | 50 + .../setiampolicy/SyncSetIamPolicy.java | 47 + .../SyncSetIamPolicyResourcenamePolicy.java | 41 + .../SyncSetIamPolicyStringPolicy.java | 40 + .../AsyncTestIamPermissions.java | 50 + .../SyncTestIamPermissions.java | 46 + ...tIamPermissionsResourcenameListstring.java | 44 + ...yncTestIamPermissionsStringListstring.java | 43 + .../updatefinding/AsyncUpdateFinding.java | 47 + .../updatefinding/SyncUpdateFinding.java | 44 + .../SyncUpdateFindingFinding.java | 38 + .../SyncUpdateFindingFindingFieldmask.java | 40 + .../AsyncUpdateNotificationConfig.java | 48 + .../SyncUpdateNotificationConfig.java | 44 + ...eNotificationConfigNotificationconfig.java | 39 + ...tionConfigNotificationconfigFieldmask.java | 41 + .../AsyncUpdateOrganizationSettings.java | 48 + .../SyncUpdateOrganizationSettings.java | 44 + ...anizationSettingsOrganizationsettings.java | 39 + .../AsyncUpdateSecurityMarks.java | 50 + .../SyncUpdateSecurityMarks.java | 46 + .../SyncUpdateSecurityMarksSecuritymarks.java | 38 + ...teSecurityMarksSecuritymarksFieldmask.java | 40 + .../updatesource/AsyncUpdateSource.java | 47 + .../updatesource/SyncUpdateSource.java | 44 + .../updatesource/SyncUpdateSourceSource.java | 38 + .../SyncUpdateSourceSourceFieldmask.java | 40 + .../createsource/SyncCreateSource.java | 46 + .../createsource/SyncCreateSource.java | 46 + .../cloud/securitycenter/v1/AccessProto.java | 89 - .../securitycenter/v1/AssetOuterClass.java | 166 - .../v1/BigQueryExportProto.java | 101 - .../v1/BulkMuteFindingsResponseOrBuilder.java | 24 - .../securitycenter/v1/ComplianceProto.java | 68 - .../securitycenter/v1/ConnectionProto.java | 73 - .../DeleteBigQueryExportRequestOrBuilder.java | 60 - .../v1/DeleteMuteConfigRequestOrBuilder.java | 60 - ...eteNotificationConfigRequestOrBuilder.java | 56 - .../securitycenter/v1/ExfiltrationProto.java | 84 - .../v1/ExternalSystemProto.java | 91 - .../cloud/securitycenter/v1/FileProto.java | 69 - .../securitycenter/v1/FindingOuterClass.java | 227 - .../cloud/securitycenter/v1/FolderProto.java | 68 - .../v1/GeolocationOrBuilder.java | 50 - .../v1/GetBigQueryExportRequestOrBuilder.java | 60 - .../v1/GetMuteConfigRequestOrBuilder.java | 60 - ...GetNotificationConfigRequestOrBuilder.java | 56 - ...tOrganizationSettingsRequestOrBuilder.java | 56 - .../v1/GetSourceRequestOrBuilder.java | 56 - .../securitycenter/v1/IamBindingProto.java | 71 - .../securitycenter/v1/IndicatorProto.java | 68 - .../securitycenter/v1/MitreAttackProto.java | 109 - .../securitycenter/v1/MuteConfigProto.java | 100 - .../v1/NotificationConfigProto.java | 114 - .../v1/NotificationMessageProto.java | 80 - .../v1/OrganizationSettingsOuterClass.java | 104 - .../cloud/securitycenter/v1/ProcessProto.java | 102 - .../securitycenter/v1/ResourceProto.java | 92 - .../v1/RunAssetDiscoveryRequestOrBuilder.java | 56 - .../RunAssetDiscoveryResponseOuterClass.java | 77 - .../v1/SecurityMarksOuterClass.java | 105 - .../v1/SecuritycenterService.java | 1174 ----- .../securitycenter/v1/SourceOuterClass.java | 82 - .../securitycenter/v1/VulnerabilityProto.java | 151 - .../v1beta1/AssetOuterClass.java | 140 - .../v1beta1/FindingOuterClass.java | 130 - ...tOrganizationSettingsRequestOrBuilder.java | 56 - .../v1beta1/GetSourceRequestOrBuilder.java | 56 - .../OrganizationSettingsOuterClass.java | 104 - .../RunAssetDiscoveryRequestOrBuilder.java | 56 - .../RunAssetDiscoveryResponseOuterClass.java | 78 - .../v1beta1/SecurityMarksOuterClass.java | 99 - .../v1beta1/SecuritycenterService.java | 603 --- .../v1beta1/SourceOuterClass.java | 80 - .../v1p1beta1/AssetOuterClass.java | 177 - ...eteNotificationConfigRequestOrBuilder.java | 56 - .../v1p1beta1/FindingOuterClass.java | 143 - .../securitycenter/v1p1beta1/FolderProto.java | 74 - ...GetNotificationConfigRequestOrBuilder.java | 56 - ...tOrganizationSettingsRequestOrBuilder.java | 56 - .../v1p1beta1/GetSourceRequestOrBuilder.java | 56 - .../NotificationConfigOuterClass.java | 122 - .../NotificationMessageOuterClass.java | 84 - .../OrganizationSettingsOuterClass.java | 108 - .../v1p1beta1/ResourceProto.java | 88 - .../RunAssetDiscoveryRequestOrBuilder.java | 56 - .../RunAssetDiscoveryResponseOuterClass.java | 81 - .../v1p1beta1/SecurityMarksOuterClass.java | 109 - .../v1p1beta1/SecuritycenterService.java | 845 --- .../v1p1beta1/SourceOuterClass.java | 86 - 831 files changed, 82240 insertions(+), 84726 deletions(-) delete mode 100644 grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java delete mode 100644 grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java delete mode 100644 grpc-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterGrpc.java rename {google-cloud-securitycenter => owl-bot-staging/v1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java (98%) rename {google-cloud-securitycenter => owl-bot-staging/v1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java (95%) rename {google-cloud-securitycenter => owl-bot-staging/v1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1/gapic_metadata.json (100%) rename {google-cloud-securitycenter => owl-bot-staging/v1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1/package-info.java (100%) rename {google-cloud-securitycenter => owl-bot-staging/v1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java (100%) rename {google-cloud-securitycenter => owl-bot-staging/v1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java (99%) create mode 100644 owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterCallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java rename {google-cloud-securitycenter => owl-bot-staging/v1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java (99%) rename {google-cloud-securitycenter => owl-bot-staging/v1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java (96%) rename {google-cloud-securitycenter => owl-bot-staging/v1/google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenter.java (100%) rename {google-cloud-securitycenter => owl-bot-staging/v1/google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenterImpl.java (100%) create mode 100644 owl-bot-staging/v1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java rename {google-cloud-securitycenter => owl-bot-staging/v1/google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Access.java (72%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/AccessOrBuilder.java (74%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessProto.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Asset.java (75%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/AssetName.java (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java (80%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java (75%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportName.java (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java (83%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportProto.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequest.java (72%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequestOrBuilder.java (69%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponse.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponseOrBuilder.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Compliance.java (72%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ComplianceOrBuilder.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceProto.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Connection.java (72%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ConnectionOrBuilder.java (69%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionProto.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequest.java (66%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequestOrBuilder.java (59%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java (67%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java (60%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequest.java (67%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequestOrBuilder.java (59%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java (64%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequestOrBuilder.java (60%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java (64%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java (51%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Cve.java (75%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CveOrBuilder.java (77%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3.java (75%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3OrBuilder.java (88%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequestOrBuilder.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequest.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequestOrBuilder.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java (62%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequestOrBuilder.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariable.java (69%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariableOrBuilder.java (55%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ExfilResource.java (74%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ExfilResourceOrBuilder.java (73%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Exfiltration.java (78%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationOrBuilder.java (80%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationProto.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystem.java (74%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemOrBuilder.java (78%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemProto.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/File.java (73%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/FileOrBuilder.java (72%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileProto.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Finding.java (75%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java (84%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Folder.java (70%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/FolderName.java (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/FolderOrBuilder.java (60%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderProto.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Geolocation.java (68%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GeolocationOrBuilder.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequest.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequestOrBuilder.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequest.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequestOrBuilder.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequest.java (64%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequestOrBuilder.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java (63%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java (84%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java (91%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java (77%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java (79%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java (84%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java (91%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java (77%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java (79%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java (65%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java (56%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/IamBinding.java (71%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/IamBindingOrBuilder.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingProto.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Indicator.java (72%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/IndicatorOrBuilder.java (68%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorProto.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java (84%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java (92%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java (66%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java (57%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequest.java (70%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequestOrBuilder.java (64%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponse.java (74%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponseOrBuilder.java (71%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java (84%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java (92%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java (67%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java (56%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequest.java (71%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequestOrBuilder.java (64%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponse.java (74%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponseOrBuilder.java (70%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java (67%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequestOrBuilder.java (60%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java (69%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponseOrBuilder.java (66%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java (70%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java (61%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java (74%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java (67%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/MitreAttack.java (75%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackOrBuilder.java (80%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackProto.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/MuteConfig.java (73%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigName.java (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigOrBuilder.java (79%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigProto.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java (72%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigName.java (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigOrBuilder.java (73%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigProto.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java (71%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java (74%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java (67%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java (60%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Process.java (76%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ProcessOrBuilder.java (83%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessProto.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ProjectName.java (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Reference.java (70%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ReferenceOrBuilder.java (57%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Resource.java (71%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java (68%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java (70%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOrBuilder.java (68%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java (72%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java (81%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java (67%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java (58%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequest.java (67%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequestOrBuilder.java (55%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Source.java (76%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java (79%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequest.java (65%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequestOrBuilder.java (59%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequest.java (65%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequestOrBuilder.java (60%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java (72%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java (74%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequest.java (66%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequestOrBuilder.java (59%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java (63%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequestOrBuilder.java (60%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java (63%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java (58%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java (70%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java (74%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java (66%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java (60%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Vulnerability.java (70%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityOrBuilder.java (61%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityProto.java rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/access.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/asset.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/bigquery_export.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/compliance.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/connection.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/exfiltration.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/external_system.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/file.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/finding.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/folder.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/iam_binding.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/indicator.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/mitre_attack.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/mute_config.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/notification_config.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/process.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/resource.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/source.proto (100%) rename {proto-google-cloud-securitycenter-v1 => owl-bot-staging/v1/proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/vulnerability.proto (100%) create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/AsyncBulkMuteFindings.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/AsyncBulkMuteFindingsLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindings.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindingsResourcename.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindingsString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/AsyncCreateBigQueryExport.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExport.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportFoldernameBigqueryexportString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportOrganizationnameBigqueryexportString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportProjectnameBigqueryexportString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportStringBigqueryexportString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/AsyncCreateFinding.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFinding.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/AsyncCreateMuteConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfigString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfigString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfigString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigStringMuteconfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigStringMuteconfigString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/AsyncCreateNotificationConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/AsyncCreateSource.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSource.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSourceStringSource.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/AsyncDeleteBigQueryExport.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExport.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportBigqueryexportname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/AsyncDeleteMuteConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigMuteconfigname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/AsyncDeleteNotificationConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/AsyncGetBigQueryExport.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExport.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExportBigqueryexportname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExportString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/AsyncGetMuteConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfigMuteconfigname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfigString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/AsyncGetNotificationConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/AsyncGetSource.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSource.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSourceSourcename.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSourceString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/AsyncGroupAssets.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/SyncGroupAssets.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/AsyncGroupFindings.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindings.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/AsyncListAssets.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/AsyncListAssetsPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/SyncListAssets.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/AsyncListBigQueryExports.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/AsyncListBigQueryExportsPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExports.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsFoldername.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsOrganizationname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsProjectname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/AsyncListFindings.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/AsyncListFindingsPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/SyncListFindings.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/AsyncListMuteConfigs.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/AsyncListMuteConfigsPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigs.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsFoldername.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsOrganizationname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsProjectname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigs.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigsPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigs.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/AsyncListSources.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/AsyncListSourcesPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSources.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesFoldername.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesProjectname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/AsyncSetFindingState.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingState.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/AsyncSetMute.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMute.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMuteFindingnameFindingmute.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMuteStringFindingmute.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/AsyncUpdateBigQueryExport.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/SyncUpdateBigQueryExport.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/SyncUpdateBigQueryExportBigqueryexportFieldmask.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/AsyncUpdateExternalSystem.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/SyncUpdateExternalSystem.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/SyncUpdateExternalSystemExternalsystemFieldmask.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/AsyncUpdateFinding.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/SyncUpdateFinding.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/AsyncUpdateMuteConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/SyncUpdateMuteConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/SyncUpdateMuteConfigMuteconfigFieldmask.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/AsyncUpdateNotificationConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/AsyncUpdateSource.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/SyncUpdateSource.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/SyncUpdateSourceSource.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycentersettings/createsource/SyncCreateSource.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java rename {google-cloud-securitycenter => owl-bot-staging/v1beta1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java (97%) rename {google-cloud-securitycenter => owl-bot-staging/v1beta1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterSettings.java (93%) rename {google-cloud-securitycenter => owl-bot-staging/v1beta1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1beta1/gapic_metadata.json (100%) rename {google-cloud-securitycenter => owl-bot-staging/v1beta1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1beta1/package-info.java (100%) rename {google-cloud-securitycenter => owl-bot-staging/v1beta1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterCallableFactory.java (100%) rename {google-cloud-securitycenter => owl-bot-staging/v1beta1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterStub.java (99%) create mode 100644 owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/HttpJsonSecurityCenterCallableFactory.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/HttpJsonSecurityCenterStub.java rename {google-cloud-securitycenter => owl-bot-staging/v1beta1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStub.java (98%) rename {google-cloud-securitycenter => owl-bot-staging/v1beta1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java (95%) rename {google-cloud-securitycenter => owl-bot-staging/v1beta1/google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenter.java (100%) rename {google-cloud-securitycenter => owl-bot-staging/v1beta1/google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenterImpl.java (100%) create mode 100644 owl-bot-staging/v1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientHttpJsonTest.java rename {google-cloud-securitycenter => owl-bot-staging/v1beta1/google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientTest.java (100%) create mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java (72%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOrBuilder.java (75%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java (67%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequestOrBuilder.java (60%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java (65%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequestOrBuilder.java (51%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java (74%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingName.java (100%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOrBuilder.java (82%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java (63%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java (67%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java (81%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequestOrBuilder.java (88%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java (77%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponseOrBuilder.java (80%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java (77%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequestOrBuilder.java (82%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java (77%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponseOrBuilder.java (80%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java (64%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResultOrBuilder.java (56%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java (80%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequestOrBuilder.java (88%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java (65%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponseOrBuilder.java (56%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java (77%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequestOrBuilder.java (83%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java (74%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponseOrBuilder.java (75%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java (70%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequestOrBuilder.java (60%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java (74%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponseOrBuilder.java (69%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationName.java (100%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java (64%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsName.java (100%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOrBuilder.java (59%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java (65%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java (68%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOrBuilder.java (68%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOuterClass.java rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java (69%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOrBuilder.java (77%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequest.java (65%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequestOrBuilder.java (58%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java (76%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceName.java (100%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java (76%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOuterClass.java rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java (69%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequestOrBuilder.java (69%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java (61%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequestOrBuilder.java (56%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java (66%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequestOrBuilder.java (66%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java (66%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequestOrBuilder.java (58%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/proto/google/cloud/securitycenter/v1beta1/asset.proto (100%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/proto/google/cloud/securitycenter/v1beta1/finding.proto (100%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/proto/google/cloud/securitycenter/v1beta1/organization_settings.proto (100%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/proto/google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto (100%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/proto/google/cloud/securitycenter/v1beta1/security_marks.proto (100%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/proto/google/cloud/securitycenter/v1beta1/securitycenter_service.proto (100%) rename {proto-google-cloud-securitycenter-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1}/src/main/proto/google/cloud/securitycenter/v1beta1/source.proto (100%) create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/AsyncCreateFinding.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFinding.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/AsyncCreateSource.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSource.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSourceStringSource.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/AsyncGetSource.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSource.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSourceSourcename.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSourceString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/AsyncGroupAssets.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/SyncGroupAssets.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/AsyncGroupFindings.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindings.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/AsyncListAssets.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/AsyncListAssetsPaged.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/SyncListAssets.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/AsyncListFindings.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/AsyncListFindingsPaged.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/SyncListFindings.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/AsyncListSources.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/AsyncListSourcesPaged.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSources.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSourcesString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/AsyncSetFindingState.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingState.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/AsyncUpdateFinding.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/SyncUpdateFinding.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/AsyncUpdateSource.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/SyncUpdateSource.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/SyncUpdateSourceSource.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycentersettings/createsource/SyncCreateSource.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java rename {google-cloud-securitycenter => owl-bot-staging/v1p1beta1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClient.java (97%) rename {google-cloud-securitycenter => owl-bot-staging/v1p1beta1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterSettings.java (94%) rename {google-cloud-securitycenter => owl-bot-staging/v1p1beta1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/gapic_metadata.json (100%) rename {google-cloud-securitycenter => owl-bot-staging/v1p1beta1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/package-info.java (100%) rename {google-cloud-securitycenter => owl-bot-staging/v1p1beta1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterCallableFactory.java (100%) rename {google-cloud-securitycenter => owl-bot-staging/v1p1beta1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java (99%) create mode 100644 owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/HttpJsonSecurityCenterCallableFactory.java create mode 100644 owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/HttpJsonSecurityCenterStub.java rename {google-cloud-securitycenter => owl-bot-staging/v1p1beta1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java (98%) rename {google-cloud-securitycenter => owl-bot-staging/v1p1beta1/google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java (94%) rename {google-cloud-securitycenter => owl-bot-staging/v1p1beta1/google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1p1beta1/MockSecurityCenter.java (100%) rename {google-cloud-securitycenter => owl-bot-staging/v1p1beta1/google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1p1beta1/MockSecurityCenterImpl.java (100%) create mode 100644 owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientHttpJsonTest.java rename {google-cloud-securitycenter => owl-bot-staging/v1p1beta1/google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientTest.java (100%) create mode 100644 owl-bot-staging/v1p1beta1/grpc-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterGrpc.java rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Asset.java (74%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetName.java (100%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java (79%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOuterClass.java rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java (65%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequestOrBuilder.java (58%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java (63%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequestOrBuilder.java (59%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java (64%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequestOrBuilder.java (51%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java (60%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequestOrBuilder.java rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java (74%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingName.java (100%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java (84%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOuterClass.java rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Folder.java (71%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderName.java (100%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderOrBuilder.java (61%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderProto.java rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java (63%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequestOrBuilder.java rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java (61%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequestOrBuilder.java rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java (67%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequestOrBuilder.java rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java (84%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java (91%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java (75%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponseOrBuilder.java (80%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java (83%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java (91%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java (74%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponseOrBuilder.java (80%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java (64%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResultOrBuilder.java (56%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java (84%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java (92%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java (63%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponseOrBuilder.java (55%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java (83%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java (91%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java (66%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponseOrBuilder.java (55%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java (65%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequestOrBuilder.java (60%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java (62%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponseOrBuilder.java (53%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequest.java (70%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequestOrBuilder.java (61%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponse.java (73%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponseOrBuilder.java (70%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java (69%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigName.java (100%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java (70%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOuterClass.java rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java (71%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java (75%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationName.java (100%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java (65%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsName.java (100%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOrBuilder.java (59%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOuterClass.java rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ProjectName.java (100%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Resource.java (71%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceOrBuilder.java (67%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java (63%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequestOrBuilder.java rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java (67%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOrBuilder.java (68%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOuterClass.java rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java (72%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOrBuilder.java (81%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOuterClass.java create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecuritycenterService.java rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequest.java (65%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequestOrBuilder.java (58%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java (76%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceName.java (100%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java (79%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOuterClass.java rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java (71%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequestOrBuilder.java (74%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java (62%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequestOrBuilder.java (58%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java (59%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequestOrBuilder.java (58%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java (68%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequestOrBuilder.java (73%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java (66%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequestOrBuilder.java (60%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/asset.proto (100%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/finding.proto (100%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/folder.proto (100%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_config.proto (100%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_message.proto (100%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/organization_settings.proto (100%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/resource.proto (100%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto (100%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/security_marks.proto (100%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto (100%) rename {proto-google-cloud-securitycenter-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/source.proto (100%) create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/AsyncCreateFinding.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFinding.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameFindingString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringFindingString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/AsyncCreateNotificationConfig.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfig.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/AsyncCreateSource.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSource.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSourceStringSource.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/AsyncDeleteNotificationConfig.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/AsyncGetNotificationConfig.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfig.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/AsyncGetSource.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSource.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSourceSourcename.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSourceString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/AsyncGroupAssets.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/SyncGroupAssets.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/AsyncGroupFindings.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindings.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/AsyncListAssets.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/AsyncListAssetsPaged.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssets.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsFoldername.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsOrganizationname.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsProjectname.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/AsyncListFindings.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/AsyncListFindingsPaged.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindings.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindingsSourcename.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindingsString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigs.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigsPaged.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigs.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/AsyncListSources.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/AsyncListSourcesPaged.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSources.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesFoldername.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesProjectname.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/AsyncSetFindingState.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingState.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/AsyncUpdateFinding.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFinding.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFindingFieldmask.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/AsyncUpdateNotificationConfig.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfig.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarksFieldmask.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/AsyncUpdateSource.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSource.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSourceSource.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSourceSourceFieldmask.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycentersettings/createsource/SyncCreateSource.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessProto.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportProto.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponseOrBuilder.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceProto.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionProto.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequestOrBuilder.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationProto.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemProto.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileProto.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderProto.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GeolocationOrBuilder.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequestOrBuilder.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingProto.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorProto.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackProto.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigProto.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigProto.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessProto.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java delete mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityProto.java delete mode 100644 proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java delete mode 100644 proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java delete mode 100644 proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java delete mode 100644 proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java delete mode 100644 proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java delete mode 100644 proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java delete mode 100644 proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOuterClass.java delete mode 100644 proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java delete mode 100644 proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java delete mode 100644 proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOuterClass.java delete mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOuterClass.java delete mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOuterClass.java delete mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderProto.java delete mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequestOrBuilder.java delete mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequestOrBuilder.java delete mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOuterClass.java delete mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java delete mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOuterClass.java delete mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java delete mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequestOrBuilder.java delete mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOuterClass.java delete mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOuterClass.java delete mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecuritycenterService.java delete mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOuterClass.java diff --git a/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java b/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java deleted file mode 100644 index 20f14b85f..000000000 --- a/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java +++ /dev/null @@ -1,4634 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.securitycenter.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * V1 APIs for Security Center service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/securitycenter/v1/securitycenter_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SecurityCenterGrpc { - - private SecurityCenterGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.securitycenter.v1.SecurityCenter"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest, - com.google.longrunning.Operation> - getBulkMuteFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BulkMuteFindings", - requestType = com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest, - com.google.longrunning.Operation> - getBulkMuteFindingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest, - com.google.longrunning.Operation> - getBulkMuteFindingsMethod; - if ((getBulkMuteFindingsMethod = SecurityCenterGrpc.getBulkMuteFindingsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getBulkMuteFindingsMethod = SecurityCenterGrpc.getBulkMuteFindingsMethod) == null) { - SecurityCenterGrpc.getBulkMuteFindingsMethod = - getBulkMuteFindingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BulkMuteFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("BulkMuteFindings")) - .build(); - } - } - } - return getBulkMuteFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.CreateSourceRequest, - com.google.cloud.securitycenter.v1.Source> - getCreateSourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSource", - requestType = com.google.cloud.securitycenter.v1.CreateSourceRequest.class, - responseType = com.google.cloud.securitycenter.v1.Source.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.CreateSourceRequest, - com.google.cloud.securitycenter.v1.Source> - getCreateSourceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.CreateSourceRequest, - com.google.cloud.securitycenter.v1.Source> - getCreateSourceMethod; - if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { - SecurityCenterGrpc.getCreateSourceMethod = - getCreateSourceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.CreateSourceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.Source.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("CreateSource")) - .build(); - } - } - } - return getCreateSourceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.CreateFindingRequest, - com.google.cloud.securitycenter.v1.Finding> - getCreateFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFinding", - requestType = com.google.cloud.securitycenter.v1.CreateFindingRequest.class, - responseType = com.google.cloud.securitycenter.v1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.CreateFindingRequest, - com.google.cloud.securitycenter.v1.Finding> - getCreateFindingMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.CreateFindingRequest, - com.google.cloud.securitycenter.v1.Finding> - getCreateFindingMethod; - if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { - SecurityCenterGrpc.getCreateFindingMethod = - getCreateFindingMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.CreateFindingRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.Finding.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("CreateFinding")) - .build(); - } - } - } - return getCreateFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest, - com.google.cloud.securitycenter.v1.MuteConfig> - getCreateMuteConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateMuteConfig", - requestType = com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.class, - responseType = com.google.cloud.securitycenter.v1.MuteConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest, - com.google.cloud.securitycenter.v1.MuteConfig> - getCreateMuteConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest, - com.google.cloud.securitycenter.v1.MuteConfig> - getCreateMuteConfigMethod; - if ((getCreateMuteConfigMethod = SecurityCenterGrpc.getCreateMuteConfigMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getCreateMuteConfigMethod = SecurityCenterGrpc.getCreateMuteConfigMethod) == null) { - SecurityCenterGrpc.getCreateMuteConfigMethod = - getCreateMuteConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMuteConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("CreateMuteConfig")) - .build(); - } - } - } - return getCreateMuteConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest, - com.google.cloud.securitycenter.v1.NotificationConfig> - getCreateNotificationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateNotificationConfig", - requestType = com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.class, - responseType = com.google.cloud.securitycenter.v1.NotificationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest, - com.google.cloud.securitycenter.v1.NotificationConfig> - getCreateNotificationConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest, - com.google.cloud.securitycenter.v1.NotificationConfig> - getCreateNotificationConfigMethod; - if ((getCreateNotificationConfigMethod = SecurityCenterGrpc.getCreateNotificationConfigMethod) - == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getCreateNotificationConfigMethod = - SecurityCenterGrpc.getCreateNotificationConfigMethod) - == null) { - SecurityCenterGrpc.getCreateNotificationConfigMethod = - getCreateNotificationConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateNotificationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.NotificationConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("CreateNotificationConfig")) - .build(); - } - } - } - return getCreateNotificationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest, com.google.protobuf.Empty> - getDeleteMuteConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteMuteConfig", - requestType = com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest, com.google.protobuf.Empty> - getDeleteMuteConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest, com.google.protobuf.Empty> - getDeleteMuteConfigMethod; - if ((getDeleteMuteConfigMethod = SecurityCenterGrpc.getDeleteMuteConfigMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getDeleteMuteConfigMethod = SecurityCenterGrpc.getDeleteMuteConfigMethod) == null) { - SecurityCenterGrpc.getDeleteMuteConfigMethod = - getDeleteMuteConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMuteConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("DeleteMuteConfig")) - .build(); - } - } - } - return getDeleteMuteConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest, - com.google.protobuf.Empty> - getDeleteNotificationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteNotificationConfig", - requestType = com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest, - com.google.protobuf.Empty> - getDeleteNotificationConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest, - com.google.protobuf.Empty> - getDeleteNotificationConfigMethod; - if ((getDeleteNotificationConfigMethod = SecurityCenterGrpc.getDeleteNotificationConfigMethod) - == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getDeleteNotificationConfigMethod = - SecurityCenterGrpc.getDeleteNotificationConfigMethod) - == null) { - SecurityCenterGrpc.getDeleteNotificationConfigMethod = - getDeleteNotificationConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteNotificationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("DeleteNotificationConfig")) - .build(); - } - } - } - return getDeleteNotificationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest, - com.google.cloud.securitycenter.v1.BigQueryExport> - getGetBigQueryExportMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBigQueryExport", - requestType = com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.class, - responseType = com.google.cloud.securitycenter.v1.BigQueryExport.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest, - com.google.cloud.securitycenter.v1.BigQueryExport> - getGetBigQueryExportMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest, - com.google.cloud.securitycenter.v1.BigQueryExport> - getGetBigQueryExportMethod; - if ((getGetBigQueryExportMethod = SecurityCenterGrpc.getGetBigQueryExportMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetBigQueryExportMethod = SecurityCenterGrpc.getGetBigQueryExportMethod) == null) { - SecurityCenterGrpc.getGetBigQueryExportMethod = - getGetBigQueryExportMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBigQueryExport")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.BigQueryExport - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("GetBigQueryExport")) - .build(); - } - } - } - return getGetBigQueryExportMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor - getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { - SecurityCenterGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GetMuteConfigRequest, - com.google.cloud.securitycenter.v1.MuteConfig> - getGetMuteConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMuteConfig", - requestType = com.google.cloud.securitycenter.v1.GetMuteConfigRequest.class, - responseType = com.google.cloud.securitycenter.v1.MuteConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GetMuteConfigRequest, - com.google.cloud.securitycenter.v1.MuteConfig> - getGetMuteConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GetMuteConfigRequest, - com.google.cloud.securitycenter.v1.MuteConfig> - getGetMuteConfigMethod; - if ((getGetMuteConfigMethod = SecurityCenterGrpc.getGetMuteConfigMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetMuteConfigMethod = SecurityCenterGrpc.getGetMuteConfigMethod) == null) { - SecurityCenterGrpc.getGetMuteConfigMethod = - getGetMuteConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMuteConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.GetMuteConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("GetMuteConfig")) - .build(); - } - } - } - return getGetMuteConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest, - com.google.cloud.securitycenter.v1.NotificationConfig> - getGetNotificationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNotificationConfig", - requestType = com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.class, - responseType = com.google.cloud.securitycenter.v1.NotificationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest, - com.google.cloud.securitycenter.v1.NotificationConfig> - getGetNotificationConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest, - com.google.cloud.securitycenter.v1.NotificationConfig> - getGetNotificationConfigMethod; - if ((getGetNotificationConfigMethod = SecurityCenterGrpc.getGetNotificationConfigMethod) - == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetNotificationConfigMethod = SecurityCenterGrpc.getGetNotificationConfigMethod) - == null) { - SecurityCenterGrpc.getGetNotificationConfigMethod = - getGetNotificationConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetNotificationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.NotificationConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("GetNotificationConfig")) - .build(); - } - } - } - return getGetNotificationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1.OrganizationSettings> - getGetOrganizationSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetOrganizationSettings", - requestType = com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.class, - responseType = com.google.cloud.securitycenter.v1.OrganizationSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1.OrganizationSettings> - getGetOrganizationSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1.OrganizationSettings> - getGetOrganizationSettingsMethod; - if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) - == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) - == null) { - SecurityCenterGrpc.getGetOrganizationSettingsMethod = - getGetOrganizationSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetOrganizationSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.OrganizationSettings - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("GetOrganizationSettings")) - .build(); - } - } - } - return getGetOrganizationSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GetSourceRequest, - com.google.cloud.securitycenter.v1.Source> - getGetSourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSource", - requestType = com.google.cloud.securitycenter.v1.GetSourceRequest.class, - responseType = com.google.cloud.securitycenter.v1.Source.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GetSourceRequest, - com.google.cloud.securitycenter.v1.Source> - getGetSourceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GetSourceRequest, - com.google.cloud.securitycenter.v1.Source> - getGetSourceMethod; - if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { - SecurityCenterGrpc.getGetSourceMethod = - getGetSourceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.GetSourceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.Source.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetSource")) - .build(); - } - } - } - return getGetSourceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GroupAssetsRequest, - com.google.cloud.securitycenter.v1.GroupAssetsResponse> - getGroupAssetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GroupAssets", - requestType = com.google.cloud.securitycenter.v1.GroupAssetsRequest.class, - responseType = com.google.cloud.securitycenter.v1.GroupAssetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GroupAssetsRequest, - com.google.cloud.securitycenter.v1.GroupAssetsResponse> - getGroupAssetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GroupAssetsRequest, - com.google.cloud.securitycenter.v1.GroupAssetsResponse> - getGroupAssetsMethod; - if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { - SecurityCenterGrpc.getGroupAssetsMethod = - getGroupAssetsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.GroupAssetsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.GroupAssetsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("GroupAssets")) - .build(); - } - } - } - return getGroupAssetsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GroupFindingsRequest, - com.google.cloud.securitycenter.v1.GroupFindingsResponse> - getGroupFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GroupFindings", - requestType = com.google.cloud.securitycenter.v1.GroupFindingsRequest.class, - responseType = com.google.cloud.securitycenter.v1.GroupFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GroupFindingsRequest, - com.google.cloud.securitycenter.v1.GroupFindingsResponse> - getGroupFindingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.GroupFindingsRequest, - com.google.cloud.securitycenter.v1.GroupFindingsResponse> - getGroupFindingsMethod; - if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { - SecurityCenterGrpc.getGroupFindingsMethod = - getGroupFindingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.GroupFindingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.GroupFindingsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("GroupFindings")) - .build(); - } - } - } - return getGroupFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.ListAssetsRequest, - com.google.cloud.securitycenter.v1.ListAssetsResponse> - getListAssetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAssets", - requestType = com.google.cloud.securitycenter.v1.ListAssetsRequest.class, - responseType = com.google.cloud.securitycenter.v1.ListAssetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.ListAssetsRequest, - com.google.cloud.securitycenter.v1.ListAssetsResponse> - getListAssetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.ListAssetsRequest, - com.google.cloud.securitycenter.v1.ListAssetsResponse> - getListAssetsMethod; - if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { - SecurityCenterGrpc.getListAssetsMethod = - getListAssetsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListAssetsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListAssetsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListAssets")) - .build(); - } - } - } - return getListAssetsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.ListFindingsRequest, - com.google.cloud.securitycenter.v1.ListFindingsResponse> - getListFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindings", - requestType = com.google.cloud.securitycenter.v1.ListFindingsRequest.class, - responseType = com.google.cloud.securitycenter.v1.ListFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.ListFindingsRequest, - com.google.cloud.securitycenter.v1.ListFindingsResponse> - getListFindingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.ListFindingsRequest, - com.google.cloud.securitycenter.v1.ListFindingsResponse> - getListFindingsMethod; - if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { - SecurityCenterGrpc.getListFindingsMethod = - getListFindingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListFindingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListFindingsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("ListFindings")) - .build(); - } - } - } - return getListFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.ListMuteConfigsRequest, - com.google.cloud.securitycenter.v1.ListMuteConfigsResponse> - getListMuteConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMuteConfigs", - requestType = com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.class, - responseType = com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.ListMuteConfigsRequest, - com.google.cloud.securitycenter.v1.ListMuteConfigsResponse> - getListMuteConfigsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.ListMuteConfigsRequest, - com.google.cloud.securitycenter.v1.ListMuteConfigsResponse> - getListMuteConfigsMethod; - if ((getListMuteConfigsMethod = SecurityCenterGrpc.getListMuteConfigsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListMuteConfigsMethod = SecurityCenterGrpc.getListMuteConfigsMethod) == null) { - SecurityCenterGrpc.getListMuteConfigsMethod = - getListMuteConfigsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMuteConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListMuteConfigsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListMuteConfigsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("ListMuteConfigs")) - .build(); - } - } - } - return getListMuteConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest, - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse> - getListNotificationConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNotificationConfigs", - requestType = com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.class, - responseType = com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest, - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse> - getListNotificationConfigsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest, - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse> - getListNotificationConfigsMethod; - if ((getListNotificationConfigsMethod = SecurityCenterGrpc.getListNotificationConfigsMethod) - == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListNotificationConfigsMethod = SecurityCenterGrpc.getListNotificationConfigsMethod) - == null) { - SecurityCenterGrpc.getListNotificationConfigsMethod = - getListNotificationConfigsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListNotificationConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("ListNotificationConfigs")) - .build(); - } - } - } - return getListNotificationConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.ListSourcesRequest, - com.google.cloud.securitycenter.v1.ListSourcesResponse> - getListSourcesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSources", - requestType = com.google.cloud.securitycenter.v1.ListSourcesRequest.class, - responseType = com.google.cloud.securitycenter.v1.ListSourcesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.ListSourcesRequest, - com.google.cloud.securitycenter.v1.ListSourcesResponse> - getListSourcesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.ListSourcesRequest, - com.google.cloud.securitycenter.v1.ListSourcesResponse> - getListSourcesMethod; - if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { - SecurityCenterGrpc.getListSourcesMethod = - getListSourcesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSources")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListSourcesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListSourcesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("ListSources")) - .build(); - } - } - } - return getListSourcesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest, - com.google.longrunning.Operation> - getRunAssetDiscoveryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RunAssetDiscovery", - requestType = com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest, - com.google.longrunning.Operation> - getRunAssetDiscoveryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest, - com.google.longrunning.Operation> - getRunAssetDiscoveryMethod; - if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { - SecurityCenterGrpc.getRunAssetDiscoveryMethod = - getRunAssetDiscoveryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunAssetDiscovery")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("RunAssetDiscovery")) - .build(); - } - } - } - return getRunAssetDiscoveryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.SetFindingStateRequest, - com.google.cloud.securitycenter.v1.Finding> - getSetFindingStateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetFindingState", - requestType = com.google.cloud.securitycenter.v1.SetFindingStateRequest.class, - responseType = com.google.cloud.securitycenter.v1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.SetFindingStateRequest, - com.google.cloud.securitycenter.v1.Finding> - getSetFindingStateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.SetFindingStateRequest, - com.google.cloud.securitycenter.v1.Finding> - getSetFindingStateMethod; - if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { - SecurityCenterGrpc.getSetFindingStateMethod = - getSetFindingStateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetFindingState")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.SetFindingStateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.Finding.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("SetFindingState")) - .build(); - } - } - } - return getSetFindingStateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.SetMuteRequest, - com.google.cloud.securitycenter.v1.Finding> - getSetMuteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetMute", - requestType = com.google.cloud.securitycenter.v1.SetMuteRequest.class, - responseType = com.google.cloud.securitycenter.v1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.SetMuteRequest, - com.google.cloud.securitycenter.v1.Finding> - getSetMuteMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.SetMuteRequest, - com.google.cloud.securitycenter.v1.Finding> - getSetMuteMethod; - if ((getSetMuteMethod = SecurityCenterGrpc.getSetMuteMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getSetMuteMethod = SecurityCenterGrpc.getSetMuteMethod) == null) { - SecurityCenterGrpc.getSetMuteMethod = - getSetMuteMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetMute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.SetMuteRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.Finding.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("SetMute")) - .build(); - } - } - } - return getSetMuteMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor - getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { - SecurityCenterGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) - == null) { - SecurityCenterGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest, - com.google.cloud.securitycenter.v1.ExternalSystem> - getUpdateExternalSystemMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateExternalSystem", - requestType = com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.class, - responseType = com.google.cloud.securitycenter.v1.ExternalSystem.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest, - com.google.cloud.securitycenter.v1.ExternalSystem> - getUpdateExternalSystemMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest, - com.google.cloud.securitycenter.v1.ExternalSystem> - getUpdateExternalSystemMethod; - if ((getUpdateExternalSystemMethod = SecurityCenterGrpc.getUpdateExternalSystemMethod) - == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateExternalSystemMethod = SecurityCenterGrpc.getUpdateExternalSystemMethod) - == null) { - SecurityCenterGrpc.getUpdateExternalSystemMethod = - getUpdateExternalSystemMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateExternalSystem")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ExternalSystem - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("UpdateExternalSystem")) - .build(); - } - } - } - return getUpdateExternalSystemMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateFindingRequest, - com.google.cloud.securitycenter.v1.Finding> - getUpdateFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFinding", - requestType = com.google.cloud.securitycenter.v1.UpdateFindingRequest.class, - responseType = com.google.cloud.securitycenter.v1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateFindingRequest, - com.google.cloud.securitycenter.v1.Finding> - getUpdateFindingMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateFindingRequest, - com.google.cloud.securitycenter.v1.Finding> - getUpdateFindingMethod; - if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { - SecurityCenterGrpc.getUpdateFindingMethod = - getUpdateFindingMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.UpdateFindingRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.Finding.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("UpdateFinding")) - .build(); - } - } - } - return getUpdateFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest, - com.google.cloud.securitycenter.v1.MuteConfig> - getUpdateMuteConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateMuteConfig", - requestType = com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.class, - responseType = com.google.cloud.securitycenter.v1.MuteConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest, - com.google.cloud.securitycenter.v1.MuteConfig> - getUpdateMuteConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest, - com.google.cloud.securitycenter.v1.MuteConfig> - getUpdateMuteConfigMethod; - if ((getUpdateMuteConfigMethod = SecurityCenterGrpc.getUpdateMuteConfigMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateMuteConfigMethod = SecurityCenterGrpc.getUpdateMuteConfigMethod) == null) { - SecurityCenterGrpc.getUpdateMuteConfigMethod = - getUpdateMuteConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMuteConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("UpdateMuteConfig")) - .build(); - } - } - } - return getUpdateMuteConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest, - com.google.cloud.securitycenter.v1.NotificationConfig> - getUpdateNotificationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNotificationConfig", - requestType = com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.class, - responseType = com.google.cloud.securitycenter.v1.NotificationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest, - com.google.cloud.securitycenter.v1.NotificationConfig> - getUpdateNotificationConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest, - com.google.cloud.securitycenter.v1.NotificationConfig> - getUpdateNotificationConfigMethod; - if ((getUpdateNotificationConfigMethod = SecurityCenterGrpc.getUpdateNotificationConfigMethod) - == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateNotificationConfigMethod = - SecurityCenterGrpc.getUpdateNotificationConfigMethod) - == null) { - SecurityCenterGrpc.getUpdateNotificationConfigMethod = - getUpdateNotificationConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateNotificationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.NotificationConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("UpdateNotificationConfig")) - .build(); - } - } - } - return getUpdateNotificationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1.OrganizationSettings> - getUpdateOrganizationSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateOrganizationSettings", - requestType = com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.class, - responseType = com.google.cloud.securitycenter.v1.OrganizationSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1.OrganizationSettings> - getUpdateOrganizationSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1.OrganizationSettings> - getUpdateOrganizationSettingsMethod; - if ((getUpdateOrganizationSettingsMethod = - SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) - == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateOrganizationSettingsMethod = - SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) - == null) { - SecurityCenterGrpc.getUpdateOrganizationSettingsMethod = - getUpdateOrganizationSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateOrganizationSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.OrganizationSettings - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("UpdateOrganizationSettings")) - .build(); - } - } - } - return getUpdateOrganizationSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateSourceRequest, - com.google.cloud.securitycenter.v1.Source> - getUpdateSourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSource", - requestType = com.google.cloud.securitycenter.v1.UpdateSourceRequest.class, - responseType = com.google.cloud.securitycenter.v1.Source.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateSourceRequest, - com.google.cloud.securitycenter.v1.Source> - getUpdateSourceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateSourceRequest, - com.google.cloud.securitycenter.v1.Source> - getUpdateSourceMethod; - if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { - SecurityCenterGrpc.getUpdateSourceMethod = - getUpdateSourceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.UpdateSourceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.Source.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("UpdateSource")) - .build(); - } - } - } - return getUpdateSourceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest, - com.google.cloud.securitycenter.v1.SecurityMarks> - getUpdateSecurityMarksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSecurityMarks", - requestType = com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.class, - responseType = com.google.cloud.securitycenter.v1.SecurityMarks.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest, - com.google.cloud.securitycenter.v1.SecurityMarks> - getUpdateSecurityMarksMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest, - com.google.cloud.securitycenter.v1.SecurityMarks> - getUpdateSecurityMarksMethod; - if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) - == null) { - SecurityCenterGrpc.getUpdateSecurityMarksMethod = - getUpdateSecurityMarksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateSecurityMarks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.SecurityMarks - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("UpdateSecurityMarks")) - .build(); - } - } - } - return getUpdateSecurityMarksMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest, - com.google.cloud.securitycenter.v1.BigQueryExport> - getCreateBigQueryExportMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateBigQueryExport", - requestType = com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.class, - responseType = com.google.cloud.securitycenter.v1.BigQueryExport.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest, - com.google.cloud.securitycenter.v1.BigQueryExport> - getCreateBigQueryExportMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest, - com.google.cloud.securitycenter.v1.BigQueryExport> - getCreateBigQueryExportMethod; - if ((getCreateBigQueryExportMethod = SecurityCenterGrpc.getCreateBigQueryExportMethod) - == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getCreateBigQueryExportMethod = SecurityCenterGrpc.getCreateBigQueryExportMethod) - == null) { - SecurityCenterGrpc.getCreateBigQueryExportMethod = - getCreateBigQueryExportMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateBigQueryExport")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.BigQueryExport - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("CreateBigQueryExport")) - .build(); - } - } - } - return getCreateBigQueryExportMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest, com.google.protobuf.Empty> - getDeleteBigQueryExportMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteBigQueryExport", - requestType = com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest, com.google.protobuf.Empty> - getDeleteBigQueryExportMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest, - com.google.protobuf.Empty> - getDeleteBigQueryExportMethod; - if ((getDeleteBigQueryExportMethod = SecurityCenterGrpc.getDeleteBigQueryExportMethod) - == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getDeleteBigQueryExportMethod = SecurityCenterGrpc.getDeleteBigQueryExportMethod) - == null) { - SecurityCenterGrpc.getDeleteBigQueryExportMethod = - getDeleteBigQueryExportMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteBigQueryExport")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("DeleteBigQueryExport")) - .build(); - } - } - } - return getDeleteBigQueryExportMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest, - com.google.cloud.securitycenter.v1.BigQueryExport> - getUpdateBigQueryExportMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateBigQueryExport", - requestType = com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.class, - responseType = com.google.cloud.securitycenter.v1.BigQueryExport.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest, - com.google.cloud.securitycenter.v1.BigQueryExport> - getUpdateBigQueryExportMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest, - com.google.cloud.securitycenter.v1.BigQueryExport> - getUpdateBigQueryExportMethod; - if ((getUpdateBigQueryExportMethod = SecurityCenterGrpc.getUpdateBigQueryExportMethod) - == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateBigQueryExportMethod = SecurityCenterGrpc.getUpdateBigQueryExportMethod) - == null) { - SecurityCenterGrpc.getUpdateBigQueryExportMethod = - getUpdateBigQueryExportMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateBigQueryExport")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.BigQueryExport - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("UpdateBigQueryExport")) - .build(); - } - } - } - return getUpdateBigQueryExportMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest, - com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse> - getListBigQueryExportsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListBigQueryExports", - requestType = com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.class, - responseType = com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest, - com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse> - getListBigQueryExportsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest, - com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse> - getListBigQueryExportsMethod; - if ((getListBigQueryExportsMethod = SecurityCenterGrpc.getListBigQueryExportsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListBigQueryExportsMethod = SecurityCenterGrpc.getListBigQueryExportsMethod) - == null) { - SecurityCenterGrpc.getListBigQueryExportsMethod = - getListBigQueryExportsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListBigQueryExports")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("ListBigQueryExports")) - .build(); - } - } - } - return getListBigQueryExportsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static SecurityCenterStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterStub(channel, callOptions); - } - }; - return SecurityCenterStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SecurityCenterBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterBlockingStub(channel, callOptions); - } - }; - return SecurityCenterBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SecurityCenterFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterFutureStub(channel, callOptions); - } - }; - return SecurityCenterFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * V1 APIs for Security Center service.
-   * 
- */ - public abstract static class SecurityCenterImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Kicks off an LRO to bulk mute findings for a parent based on a filter. The
-     * parent can be either an organization, folder or project. The findings
-     * matched by the filter will be muted after the LRO is done.
-     * 
- */ - public void bulkMuteFindings( - com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBulkMuteFindingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a source.
-     * 
- */ - public void createSource( - com.google.cloud.securitycenter.v1.CreateSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSourceMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a finding. The corresponding source must exist for finding creation
-     * to succeed.
-     * 
- */ - public void createFinding( - com.google.cloud.securitycenter.v1.CreateFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateFindingMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a mute config.
-     * 
- */ - public void createMuteConfig( - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateMuteConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a notification config.
-     * 
- */ - public void createNotificationConfig( - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateNotificationConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an existing mute config.
-     * 
- */ - public void deleteMuteConfig( - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteMuteConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a notification config.
-     * 
- */ - public void deleteNotificationConfig( - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteNotificationConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a big query export.
-     * 
- */ - public void getBigQueryExport( - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetBigQueryExportMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a mute config.
-     * 
- */ - public void getMuteConfig( - com.google.cloud.securitycenter.v1.GetMuteConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetMuteConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a notification config.
-     * 
- */ - public void getNotificationConfig( - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetNotificationConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the settings for an organization.
-     * 
- */ - public void getOrganizationSettings( - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetOrganizationSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a source.
-     * 
- */ - public void getSource( - com.google.cloud.securitycenter.v1.GetSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSourceMethod(), responseObserver); - } - - /** - * - * - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public void groupAssets( - com.google.cloud.securitycenter.v1.GroupAssetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGroupAssetsMethod(), responseObserver); - } - - /** - * - * - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings,
-     * /v1/folders/{folder_id}/sources/-/findings,
-     * /v1/projects/{project_id}/sources/-/findings
-     * 
- */ - public void groupFindings( - com.google.cloud.securitycenter.v1.GroupFindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGroupFindingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists an organization's assets.
-     * 
- */ - public void listAssets( - com.google.cloud.securitycenter.v1.ListAssetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public void listFindings( - com.google.cloud.securitycenter.v1.ListFindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFindingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists mute configs.
-     * 
- */ - public void listMuteConfigs( - com.google.cloud.securitycenter.v1.ListMuteConfigsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListMuteConfigsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists notification configs.
-     * 
- */ - public void listNotificationConfigs( - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListNotificationConfigsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public void listSources( - com.google.cloud.securitycenter.v1.ListSourcesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSourcesMethod(), responseObserver); - } - - /** - * - * - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public void runAssetDiscovery( - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRunAssetDiscoveryMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the state of a finding.
-     * 
- */ - public void setFindingState( - com.google.cloud.securitycenter.v1.SetFindingStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetFindingStateMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the mute state of a finding.
-     * 
- */ - public void setMute( - com.google.cloud.securitycenter.v1.SetMuteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetMuteMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates external system. This is for a given finding.
-     * 
- */ - public void updateExternalSystem( - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateExternalSystemMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public void updateFinding( - com.google.cloud.securitycenter.v1.UpdateFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateFindingMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a mute config.
-     * 
- */ - public void updateMuteConfig( - com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateMuteConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a notification config. The following update
-     * fields are allowed: description, pubsub_topic, streaming_config.filter
-     * 
- */ - public void updateNotificationConfig( - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateNotificationConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an organization's settings.
-     * 
- */ - public void updateOrganizationSettings( - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateOrganizationSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a source.
-     * 
- */ - public void updateSource( - com.google.cloud.securitycenter.v1.UpdateSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSourceMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates security marks.
-     * 
- */ - public void updateSecurityMarks( - com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSecurityMarksMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a big query export.
-     * 
- */ - public void createBigQueryExport( - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBigQueryExportMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an existing big query export.
-     * 
- */ - public void deleteBigQueryExport( - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteBigQueryExportMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a BigQuery export.
-     * 
- */ - public void updateBigQueryExport( - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBigQueryExportMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists BigQuery exports. Note that when requesting BigQuery exports at a
-     * given level all exports under that level are also returned e.g. if
-     * requesting BigQuery exports under a folder, then all BigQuery exports
-     * immediately under the folder plus the ones created under the projects
-     * within the folder are returned.
-     * 
- */ - public void listBigQueryExports( - com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBigQueryExportsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getBulkMuteFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest, - com.google.longrunning.Operation>(this, METHODID_BULK_MUTE_FINDINGS))) - .addMethod( - getCreateSourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.CreateSourceRequest, - com.google.cloud.securitycenter.v1.Source>(this, METHODID_CREATE_SOURCE))) - .addMethod( - getCreateFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.CreateFindingRequest, - com.google.cloud.securitycenter.v1.Finding>(this, METHODID_CREATE_FINDING))) - .addMethod( - getCreateMuteConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest, - com.google.cloud.securitycenter.v1.MuteConfig>( - this, METHODID_CREATE_MUTE_CONFIG))) - .addMethod( - getCreateNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest, - com.google.cloud.securitycenter.v1.NotificationConfig>( - this, METHODID_CREATE_NOTIFICATION_CONFIG))) - .addMethod( - getDeleteMuteConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_MUTE_CONFIG))) - .addMethod( - getDeleteNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_NOTIFICATION_CONFIG))) - .addMethod( - getGetBigQueryExportMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest, - com.google.cloud.securitycenter.v1.BigQueryExport>( - this, METHODID_GET_BIG_QUERY_EXPORT))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getGetMuteConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.GetMuteConfigRequest, - com.google.cloud.securitycenter.v1.MuteConfig>( - this, METHODID_GET_MUTE_CONFIG))) - .addMethod( - getGetNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest, - com.google.cloud.securitycenter.v1.NotificationConfig>( - this, METHODID_GET_NOTIFICATION_CONFIG))) - .addMethod( - getGetOrganizationSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1.OrganizationSettings>( - this, METHODID_GET_ORGANIZATION_SETTINGS))) - .addMethod( - getGetSourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.GetSourceRequest, - com.google.cloud.securitycenter.v1.Source>(this, METHODID_GET_SOURCE))) - .addMethod( - getGroupAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.GroupAssetsRequest, - com.google.cloud.securitycenter.v1.GroupAssetsResponse>( - this, METHODID_GROUP_ASSETS))) - .addMethod( - getGroupFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.GroupFindingsRequest, - com.google.cloud.securitycenter.v1.GroupFindingsResponse>( - this, METHODID_GROUP_FINDINGS))) - .addMethod( - getListAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.ListAssetsRequest, - com.google.cloud.securitycenter.v1.ListAssetsResponse>( - this, METHODID_LIST_ASSETS))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.ListFindingsRequest, - com.google.cloud.securitycenter.v1.ListFindingsResponse>( - this, METHODID_LIST_FINDINGS))) - .addMethod( - getListMuteConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.ListMuteConfigsRequest, - com.google.cloud.securitycenter.v1.ListMuteConfigsResponse>( - this, METHODID_LIST_MUTE_CONFIGS))) - .addMethod( - getListNotificationConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest, - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse>( - this, METHODID_LIST_NOTIFICATION_CONFIGS))) - .addMethod( - getListSourcesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.ListSourcesRequest, - com.google.cloud.securitycenter.v1.ListSourcesResponse>( - this, METHODID_LIST_SOURCES))) - .addMethod( - getRunAssetDiscoveryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest, - com.google.longrunning.Operation>(this, METHODID_RUN_ASSET_DISCOVERY))) - .addMethod( - getSetFindingStateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.SetFindingStateRequest, - com.google.cloud.securitycenter.v1.Finding>( - this, METHODID_SET_FINDING_STATE))) - .addMethod( - getSetMuteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.SetMuteRequest, - com.google.cloud.securitycenter.v1.Finding>(this, METHODID_SET_MUTE))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .addMethod( - getUpdateExternalSystemMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest, - com.google.cloud.securitycenter.v1.ExternalSystem>( - this, METHODID_UPDATE_EXTERNAL_SYSTEM))) - .addMethod( - getUpdateFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.UpdateFindingRequest, - com.google.cloud.securitycenter.v1.Finding>(this, METHODID_UPDATE_FINDING))) - .addMethod( - getUpdateMuteConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest, - com.google.cloud.securitycenter.v1.MuteConfig>( - this, METHODID_UPDATE_MUTE_CONFIG))) - .addMethod( - getUpdateNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest, - com.google.cloud.securitycenter.v1.NotificationConfig>( - this, METHODID_UPDATE_NOTIFICATION_CONFIG))) - .addMethod( - getUpdateOrganizationSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1.OrganizationSettings>( - this, METHODID_UPDATE_ORGANIZATION_SETTINGS))) - .addMethod( - getUpdateSourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.UpdateSourceRequest, - com.google.cloud.securitycenter.v1.Source>(this, METHODID_UPDATE_SOURCE))) - .addMethod( - getUpdateSecurityMarksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest, - com.google.cloud.securitycenter.v1.SecurityMarks>( - this, METHODID_UPDATE_SECURITY_MARKS))) - .addMethod( - getCreateBigQueryExportMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest, - com.google.cloud.securitycenter.v1.BigQueryExport>( - this, METHODID_CREATE_BIG_QUERY_EXPORT))) - .addMethod( - getDeleteBigQueryExportMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_BIG_QUERY_EXPORT))) - .addMethod( - getUpdateBigQueryExportMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest, - com.google.cloud.securitycenter.v1.BigQueryExport>( - this, METHODID_UPDATE_BIG_QUERY_EXPORT))) - .addMethod( - getListBigQueryExportsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest, - com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse>( - this, METHODID_LIST_BIG_QUERY_EXPORTS))) - .build(); - } - } - - /** - * - * - *
-   * V1 APIs for Security Center service.
-   * 
- */ - public static final class SecurityCenterStub - extends io.grpc.stub.AbstractAsyncStub { - private SecurityCenterStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterStub(channel, callOptions); - } - - /** - * - * - *
-     * Kicks off an LRO to bulk mute findings for a parent based on a filter. The
-     * parent can be either an organization, folder or project. The findings
-     * matched by the filter will be muted after the LRO is done.
-     * 
- */ - public void bulkMuteFindings( - com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBulkMuteFindingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a source.
-     * 
- */ - public void createSource( - com.google.cloud.securitycenter.v1.CreateSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSourceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a finding. The corresponding source must exist for finding creation
-     * to succeed.
-     * 
- */ - public void createFinding( - com.google.cloud.securitycenter.v1.CreateFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFindingMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a mute config.
-     * 
- */ - public void createMuteConfig( - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateMuteConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a notification config.
-     * 
- */ - public void createNotificationConfig( - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an existing mute config.
-     * 
- */ - public void deleteMuteConfig( - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteMuteConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a notification config.
-     * 
- */ - public void deleteNotificationConfig( - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a big query export.
-     * 
- */ - public void getBigQueryExport( - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetBigQueryExportMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a mute config.
-     * 
- */ - public void getMuteConfig( - com.google.cloud.securitycenter.v1.GetMuteConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMuteConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a notification config.
-     * 
- */ - public void getNotificationConfig( - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the settings for an organization.
-     * 
- */ - public void getOrganizationSettings( - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a source.
-     * 
- */ - public void getSource( - com.google.cloud.securitycenter.v1.GetSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSourceMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public void groupAssets( - com.google.cloud.securitycenter.v1.GroupAssetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings,
-     * /v1/folders/{folder_id}/sources/-/findings,
-     * /v1/projects/{project_id}/sources/-/findings
-     * 
- */ - public void groupFindings( - com.google.cloud.securitycenter.v1.GroupFindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists an organization's assets.
-     * 
- */ - public void listAssets( - com.google.cloud.securitycenter.v1.ListAssetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public void listFindings( - com.google.cloud.securitycenter.v1.ListFindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists mute configs.
-     * 
- */ - public void listMuteConfigs( - com.google.cloud.securitycenter.v1.ListMuteConfigsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMuteConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists notification configs.
-     * 
- */ - public void listNotificationConfigs( - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public void listSources( - com.google.cloud.securitycenter.v1.ListSourcesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSourcesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public void runAssetDiscovery( - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the state of a finding.
-     * 
- */ - public void setFindingState( - com.google.cloud.securitycenter.v1.SetFindingStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the mute state of a finding.
-     * 
- */ - public void setMute( - com.google.cloud.securitycenter.v1.SetMuteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetMuteMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates external system. This is for a given finding.
-     * 
- */ - public void updateExternalSystem( - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateExternalSystemMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public void updateFinding( - com.google.cloud.securitycenter.v1.UpdateFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a mute config.
-     * 
- */ - public void updateMuteConfig( - com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateMuteConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a notification config. The following update
-     * fields are allowed: description, pubsub_topic, streaming_config.filter
-     * 
- */ - public void updateNotificationConfig( - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNotificationConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an organization's settings.
-     * 
- */ - public void updateOrganizationSettings( - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a source.
-     * 
- */ - public void updateSource( - com.google.cloud.securitycenter.v1.UpdateSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates security marks.
-     * 
- */ - public void updateSecurityMarks( - com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a big query export.
-     * 
- */ - public void createBigQueryExport( - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBigQueryExportMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an existing big query export.
-     * 
- */ - public void deleteBigQueryExport( - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBigQueryExportMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a BigQuery export.
-     * 
- */ - public void updateBigQueryExport( - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBigQueryExportMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists BigQuery exports. Note that when requesting BigQuery exports at a
-     * given level all exports under that level are also returned e.g. if
-     * requesting BigQuery exports under a folder, then all BigQuery exports
-     * immediately under the folder plus the ones created under the projects
-     * within the folder are returned.
-     * 
- */ - public void listBigQueryExports( - com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBigQueryExportsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * V1 APIs for Security Center service.
-   * 
- */ - public static final class SecurityCenterBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SecurityCenterBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Kicks off an LRO to bulk mute findings for a parent based on a filter. The
-     * parent can be either an organization, folder or project. The findings
-     * matched by the filter will be muted after the LRO is done.
-     * 
- */ - public com.google.longrunning.Operation bulkMuteFindings( - com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBulkMuteFindingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a source.
-     * 
- */ - public com.google.cloud.securitycenter.v1.Source createSource( - com.google.cloud.securitycenter.v1.CreateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSourceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a finding. The corresponding source must exist for finding creation
-     * to succeed.
-     * 
- */ - public com.google.cloud.securitycenter.v1.Finding createFinding( - com.google.cloud.securitycenter.v1.CreateFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFindingMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a mute config.
-     * 
- */ - public com.google.cloud.securitycenter.v1.MuteConfig createMuteConfig( - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMuteConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a notification config.
-     * 
- */ - public com.google.cloud.securitycenter.v1.NotificationConfig createNotificationConfig( - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateNotificationConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an existing mute config.
-     * 
- */ - public com.google.protobuf.Empty deleteMuteConfig( - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteMuteConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a notification config.
-     * 
- */ - public com.google.protobuf.Empty deleteNotificationConfig( - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteNotificationConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a big query export.
-     * 
- */ - public com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExport( - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetBigQueryExportMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a mute config.
-     * 
- */ - public com.google.cloud.securitycenter.v1.MuteConfig getMuteConfig( - com.google.cloud.securitycenter.v1.GetMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMuteConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a notification config.
-     * 
- */ - public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig( - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNotificationConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the settings for an organization.
-     * 
- */ - public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSettings( - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetOrganizationSettingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a source.
-     * 
- */ - public com.google.cloud.securitycenter.v1.Source getSource( - com.google.cloud.securitycenter.v1.GetSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSourceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public com.google.cloud.securitycenter.v1.GroupAssetsResponse groupAssets( - com.google.cloud.securitycenter.v1.GroupAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGroupAssetsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings,
-     * /v1/folders/{folder_id}/sources/-/findings,
-     * /v1/projects/{project_id}/sources/-/findings
-     * 
- */ - public com.google.cloud.securitycenter.v1.GroupFindingsResponse groupFindings( - com.google.cloud.securitycenter.v1.GroupFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGroupFindingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists an organization's assets.
-     * 
- */ - public com.google.cloud.securitycenter.v1.ListAssetsResponse listAssets( - com.google.cloud.securitycenter.v1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAssetsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public com.google.cloud.securitycenter.v1.ListFindingsResponse listFindings( - com.google.cloud.securitycenter.v1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists mute configs.
-     * 
- */ - public com.google.cloud.securitycenter.v1.ListMuteConfigsResponse listMuteConfigs( - com.google.cloud.securitycenter.v1.ListMuteConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMuteConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists notification configs.
-     * 
- */ - public com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse - listNotificationConfigs( - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNotificationConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public com.google.cloud.securitycenter.v1.ListSourcesResponse listSources( - com.google.cloud.securitycenter.v1.ListSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSourcesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public com.google.longrunning.Operation runAssetDiscovery( - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRunAssetDiscoveryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the state of a finding.
-     * 
- */ - public com.google.cloud.securitycenter.v1.Finding setFindingState( - com.google.cloud.securitycenter.v1.SetFindingStateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetFindingStateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the mute state of a finding.
-     * 
- */ - public com.google.cloud.securitycenter.v1.Finding setMute( - com.google.cloud.securitycenter.v1.SetMuteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetMuteMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates external system. This is for a given finding.
-     * 
- */ - public com.google.cloud.securitycenter.v1.ExternalSystem updateExternalSystem( - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateExternalSystemMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public com.google.cloud.securitycenter.v1.Finding updateFinding( - com.google.cloud.securitycenter.v1.UpdateFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFindingMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a mute config.
-     * 
- */ - public com.google.cloud.securitycenter.v1.MuteConfig updateMuteConfig( - com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMuteConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a notification config. The following update
-     * fields are allowed: description, pubsub_topic, streaming_config.filter
-     * 
- */ - public com.google.cloud.securitycenter.v1.NotificationConfig updateNotificationConfig( - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNotificationConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an organization's settings.
-     * 
- */ - public com.google.cloud.securitycenter.v1.OrganizationSettings updateOrganizationSettings( - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateOrganizationSettingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a source.
-     * 
- */ - public com.google.cloud.securitycenter.v1.Source updateSource( - com.google.cloud.securitycenter.v1.UpdateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSourceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates security marks.
-     * 
- */ - public com.google.cloud.securitycenter.v1.SecurityMarks updateSecurityMarks( - com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSecurityMarksMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a big query export.
-     * 
- */ - public com.google.cloud.securitycenter.v1.BigQueryExport createBigQueryExport( - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateBigQueryExportMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an existing big query export.
-     * 
- */ - public com.google.protobuf.Empty deleteBigQueryExport( - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBigQueryExportMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a BigQuery export.
-     * 
- */ - public com.google.cloud.securitycenter.v1.BigQueryExport updateBigQueryExport( - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateBigQueryExportMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists BigQuery exports. Note that when requesting BigQuery exports at a
-     * given level all exports under that level are also returned e.g. if
-     * requesting BigQuery exports under a folder, then all BigQuery exports
-     * immediately under the folder plus the ones created under the projects
-     * within the folder are returned.
-     * 
- */ - public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse listBigQueryExports( - com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBigQueryExportsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * V1 APIs for Security Center service.
-   * 
- */ - public static final class SecurityCenterFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SecurityCenterFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Kicks off an LRO to bulk mute findings for a parent based on a filter. The
-     * parent can be either an organization, folder or project. The findings
-     * matched by the filter will be muted after the LRO is done.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - bulkMuteFindings(com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBulkMuteFindingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.Source> - createSource(com.google.cloud.securitycenter.v1.CreateSourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSourceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a finding. The corresponding source must exist for finding creation
-     * to succeed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.Finding> - createFinding(com.google.cloud.securitycenter.v1.CreateFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFindingMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a mute config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.MuteConfig> - createMuteConfig(com.google.cloud.securitycenter.v1.CreateMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateMuteConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a notification config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.NotificationConfig> - createNotificationConfig( - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an existing mute config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteMuteConfig(com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteMuteConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a notification config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteNotificationConfig( - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a big query export.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.BigQueryExport> - getBigQueryExport(com.google.cloud.securitycenter.v1.GetBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetBigQueryExportMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a mute config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.MuteConfig> - getMuteConfig(com.google.cloud.securitycenter.v1.GetMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMuteConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a notification config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.NotificationConfig> - getNotificationConfig( - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the settings for an organization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.OrganizationSettings> - getOrganizationSettings( - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.Source> - getSource(com.google.cloud.securitycenter.v1.GetSourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSourceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.GroupAssetsResponse> - groupAssets(com.google.cloud.securitycenter.v1.GroupAssetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings,
-     * /v1/folders/{folder_id}/sources/-/findings,
-     * /v1/projects/{project_id}/sources/-/findings
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.GroupFindingsResponse> - groupFindings(com.google.cloud.securitycenter.v1.GroupFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists an organization's assets.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.ListAssetsResponse> - listAssets(com.google.cloud.securitycenter.v1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAssetsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.ListFindingsResponse> - listFindings(com.google.cloud.securitycenter.v1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists mute configs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.ListMuteConfigsResponse> - listMuteConfigs(com.google.cloud.securitycenter.v1.ListMuteConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMuteConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists notification configs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse> - listNotificationConfigs( - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.ListSourcesResponse> - listSources(com.google.cloud.securitycenter.v1.ListSourcesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSourcesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - runAssetDiscovery(com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the state of a finding.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.Finding> - setFindingState(com.google.cloud.securitycenter.v1.SetFindingStateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the mute state of a finding.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.Finding> - setMute(com.google.cloud.securitycenter.v1.SetMuteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetMuteMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates external system. This is for a given finding.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.ExternalSystem> - updateExternalSystem( - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateExternalSystemMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.Finding> - updateFinding(com.google.cloud.securitycenter.v1.UpdateFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a mute config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.MuteConfig> - updateMuteConfig(com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateMuteConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a notification config. The following update
-     * fields are allowed: description, pubsub_topic, streaming_config.filter
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.NotificationConfig> - updateNotificationConfig( - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNotificationConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an organization's settings.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.OrganizationSettings> - updateOrganizationSettings( - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.Source> - updateSource(com.google.cloud.securitycenter.v1.UpdateSourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates security marks.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.SecurityMarks> - updateSecurityMarks(com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a big query export.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.BigQueryExport> - createBigQueryExport( - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateBigQueryExportMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an existing big query export.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteBigQueryExport( - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteBigQueryExportMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a BigQuery export.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.BigQueryExport> - updateBigQueryExport( - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateBigQueryExportMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists BigQuery exports. Note that when requesting BigQuery exports at a
-     * given level all exports under that level are also returned e.g. if
-     * requesting BigQuery exports under a folder, then all BigQuery exports
-     * immediately under the folder plus the ones created under the projects
-     * within the folder are returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse> - listBigQueryExports(com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListBigQueryExportsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_BULK_MUTE_FINDINGS = 0; - private static final int METHODID_CREATE_SOURCE = 1; - private static final int METHODID_CREATE_FINDING = 2; - private static final int METHODID_CREATE_MUTE_CONFIG = 3; - private static final int METHODID_CREATE_NOTIFICATION_CONFIG = 4; - private static final int METHODID_DELETE_MUTE_CONFIG = 5; - private static final int METHODID_DELETE_NOTIFICATION_CONFIG = 6; - private static final int METHODID_GET_BIG_QUERY_EXPORT = 7; - private static final int METHODID_GET_IAM_POLICY = 8; - private static final int METHODID_GET_MUTE_CONFIG = 9; - private static final int METHODID_GET_NOTIFICATION_CONFIG = 10; - private static final int METHODID_GET_ORGANIZATION_SETTINGS = 11; - private static final int METHODID_GET_SOURCE = 12; - private static final int METHODID_GROUP_ASSETS = 13; - private static final int METHODID_GROUP_FINDINGS = 14; - private static final int METHODID_LIST_ASSETS = 15; - private static final int METHODID_LIST_FINDINGS = 16; - private static final int METHODID_LIST_MUTE_CONFIGS = 17; - private static final int METHODID_LIST_NOTIFICATION_CONFIGS = 18; - private static final int METHODID_LIST_SOURCES = 19; - private static final int METHODID_RUN_ASSET_DISCOVERY = 20; - private static final int METHODID_SET_FINDING_STATE = 21; - private static final int METHODID_SET_MUTE = 22; - private static final int METHODID_SET_IAM_POLICY = 23; - private static final int METHODID_TEST_IAM_PERMISSIONS = 24; - private static final int METHODID_UPDATE_EXTERNAL_SYSTEM = 25; - private static final int METHODID_UPDATE_FINDING = 26; - private static final int METHODID_UPDATE_MUTE_CONFIG = 27; - private static final int METHODID_UPDATE_NOTIFICATION_CONFIG = 28; - private static final int METHODID_UPDATE_ORGANIZATION_SETTINGS = 29; - private static final int METHODID_UPDATE_SOURCE = 30; - private static final int METHODID_UPDATE_SECURITY_MARKS = 31; - private static final int METHODID_CREATE_BIG_QUERY_EXPORT = 32; - private static final int METHODID_DELETE_BIG_QUERY_EXPORT = 33; - private static final int METHODID_UPDATE_BIG_QUERY_EXPORT = 34; - private static final int METHODID_LIST_BIG_QUERY_EXPORTS = 35; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SecurityCenterImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SecurityCenterImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_BULK_MUTE_FINDINGS: - serviceImpl.bulkMuteFindings( - (com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SOURCE: - serviceImpl.createSource( - (com.google.cloud.securitycenter.v1.CreateSourceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_FINDING: - serviceImpl.createFinding( - (com.google.cloud.securitycenter.v1.CreateFindingRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_MUTE_CONFIG: - serviceImpl.createMuteConfig( - (com.google.cloud.securitycenter.v1.CreateMuteConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_NOTIFICATION_CONFIG: - serviceImpl.createNotificationConfig( - (com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_MUTE_CONFIG: - serviceImpl.deleteMuteConfig( - (com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_NOTIFICATION_CONFIG: - serviceImpl.deleteNotificationConfig( - (com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_BIG_QUERY_EXPORT: - serviceImpl.getBigQueryExport( - (com.google.cloud.securitycenter.v1.GetBigQueryExportRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MUTE_CONFIG: - serviceImpl.getMuteConfig( - (com.google.cloud.securitycenter.v1.GetMuteConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_NOTIFICATION_CONFIG: - serviceImpl.getNotificationConfig( - (com.google.cloud.securitycenter.v1.GetNotificationConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_ORGANIZATION_SETTINGS: - serviceImpl.getOrganizationSettings( - (com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_SOURCE: - serviceImpl.getSource( - (com.google.cloud.securitycenter.v1.GetSourceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GROUP_ASSETS: - serviceImpl.groupAssets( - (com.google.cloud.securitycenter.v1.GroupAssetsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GROUP_FINDINGS: - serviceImpl.groupFindings( - (com.google.cloud.securitycenter.v1.GroupFindingsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1.GroupFindingsResponse>) - responseObserver); - break; - case METHODID_LIST_ASSETS: - serviceImpl.listAssets( - (com.google.cloud.securitycenter.v1.ListAssetsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_FINDINGS: - serviceImpl.listFindings( - (com.google.cloud.securitycenter.v1.ListFindingsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_MUTE_CONFIGS: - serviceImpl.listMuteConfigs( - (com.google.cloud.securitycenter.v1.ListMuteConfigsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1.ListMuteConfigsResponse>) - responseObserver); - break; - case METHODID_LIST_NOTIFICATION_CONFIGS: - serviceImpl.listNotificationConfigs( - (com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse>) - responseObserver); - break; - case METHODID_LIST_SOURCES: - serviceImpl.listSources( - (com.google.cloud.securitycenter.v1.ListSourcesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RUN_ASSET_DISCOVERY: - serviceImpl.runAssetDiscovery( - (com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_FINDING_STATE: - serviceImpl.setFindingState( - (com.google.cloud.securitycenter.v1.SetFindingStateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_SET_MUTE: - serviceImpl.setMute( - (com.google.cloud.securitycenter.v1.SetMuteRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_EXTERNAL_SYSTEM: - serviceImpl.updateExternalSystem( - (com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_FINDING: - serviceImpl.updateFinding( - (com.google.cloud.securitycenter.v1.UpdateFindingRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_MUTE_CONFIG: - serviceImpl.updateMuteConfig( - (com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_NOTIFICATION_CONFIG: - serviceImpl.updateNotificationConfig( - (com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_ORGANIZATION_SETTINGS: - serviceImpl.updateOrganizationSettings( - (com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_SOURCE: - serviceImpl.updateSource( - (com.google.cloud.securitycenter.v1.UpdateSourceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_SECURITY_MARKS: - serviceImpl.updateSecurityMarks( - (com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_BIG_QUERY_EXPORT: - serviceImpl.createBigQueryExport( - (com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_BIG_QUERY_EXPORT: - serviceImpl.deleteBigQueryExport( - (com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_BIG_QUERY_EXPORT: - serviceImpl.updateBigQueryExport( - (com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_BIG_QUERY_EXPORTS: - serviceImpl.listBigQueryExports( - (com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class SecurityCenterBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SecurityCenterBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SecurityCenter"); - } - } - - private static final class SecurityCenterFileDescriptorSupplier - extends SecurityCenterBaseDescriptorSupplier { - SecurityCenterFileDescriptorSupplier() {} - } - - private static final class SecurityCenterMethodDescriptorSupplier - extends SecurityCenterBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SecurityCenterMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SecurityCenterGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SecurityCenterFileDescriptorSupplier()) - .addMethod(getBulkMuteFindingsMethod()) - .addMethod(getCreateSourceMethod()) - .addMethod(getCreateFindingMethod()) - .addMethod(getCreateMuteConfigMethod()) - .addMethod(getCreateNotificationConfigMethod()) - .addMethod(getDeleteMuteConfigMethod()) - .addMethod(getDeleteNotificationConfigMethod()) - .addMethod(getGetBigQueryExportMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getGetMuteConfigMethod()) - .addMethod(getGetNotificationConfigMethod()) - .addMethod(getGetOrganizationSettingsMethod()) - .addMethod(getGetSourceMethod()) - .addMethod(getGroupAssetsMethod()) - .addMethod(getGroupFindingsMethod()) - .addMethod(getListAssetsMethod()) - .addMethod(getListFindingsMethod()) - .addMethod(getListMuteConfigsMethod()) - .addMethod(getListNotificationConfigsMethod()) - .addMethod(getListSourcesMethod()) - .addMethod(getRunAssetDiscoveryMethod()) - .addMethod(getSetFindingStateMethod()) - .addMethod(getSetMuteMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .addMethod(getUpdateExternalSystemMethod()) - .addMethod(getUpdateFindingMethod()) - .addMethod(getUpdateMuteConfigMethod()) - .addMethod(getUpdateNotificationConfigMethod()) - .addMethod(getUpdateOrganizationSettingsMethod()) - .addMethod(getUpdateSourceMethod()) - .addMethod(getUpdateSecurityMarksMethod()) - .addMethod(getCreateBigQueryExportMethod()) - .addMethod(getDeleteBigQueryExportMethod()) - .addMethod(getUpdateBigQueryExportMethod()) - .addMethod(getListBigQueryExportsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java b/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java deleted file mode 100644 index ebae1dfda..000000000 --- a/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java +++ /dev/null @@ -1,2437 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.securitycenter.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * V1 Beta APIs for Security Center service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SecurityCenterGrpc { - - private SecurityCenterGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.securitycenter.v1beta1.SecurityCenter"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest, - com.google.cloud.securitycenter.v1beta1.Source> - getCreateSourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSource", - requestType = com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.Source.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest, - com.google.cloud.securitycenter.v1beta1.Source> - getCreateSourceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest, - com.google.cloud.securitycenter.v1beta1.Source> - getCreateSourceMethod; - if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { - SecurityCenterGrpc.getCreateSourceMethod = - getCreateSourceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("CreateSource")) - .build(); - } - } - } - return getCreateSourceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest, - com.google.cloud.securitycenter.v1beta1.Finding> - getCreateFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFinding", - requestType = com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest, - com.google.cloud.securitycenter.v1beta1.Finding> - getCreateFindingMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest, - com.google.cloud.securitycenter.v1beta1.Finding> - getCreateFindingMethod; - if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { - SecurityCenterGrpc.getCreateFindingMethod = - getCreateFindingMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("CreateFinding")) - .build(); - } - } - } - return getCreateFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor - getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { - SecurityCenterGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings> - getGetOrganizationSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetOrganizationSettings", - requestType = com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.OrganizationSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings> - getGetOrganizationSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings> - getGetOrganizationSettingsMethod; - if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) - == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) - == null) { - SecurityCenterGrpc.getGetOrganizationSettingsMethod = - getGetOrganizationSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetOrganizationSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.OrganizationSettings - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("GetOrganizationSettings")) - .build(); - } - } - } - return getGetOrganizationSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.GetSourceRequest, - com.google.cloud.securitycenter.v1beta1.Source> - getGetSourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSource", - requestType = com.google.cloud.securitycenter.v1beta1.GetSourceRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.Source.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.GetSourceRequest, - com.google.cloud.securitycenter.v1beta1.Source> - getGetSourceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.GetSourceRequest, - com.google.cloud.securitycenter.v1beta1.Source> - getGetSourceMethod; - if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { - SecurityCenterGrpc.getGetSourceMethod = - getGetSourceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.GetSourceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetSource")) - .build(); - } - } - } - return getGetSourceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest, - com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse> - getGroupAssetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GroupAssets", - requestType = com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest, - com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse> - getGroupAssetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest, - com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse> - getGroupAssetsMethod; - if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { - SecurityCenterGrpc.getGroupAssetsMethod = - getGroupAssetsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("GroupAssets")) - .build(); - } - } - } - return getGroupAssetsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest, - com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse> - getGroupFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GroupFindings", - requestType = com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest, - com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse> - getGroupFindingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest, - com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse> - getGroupFindingsMethod; - if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { - SecurityCenterGrpc.getGroupFindingsMethod = - getGroupFindingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("GroupFindings")) - .build(); - } - } - } - return getGroupFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest, - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse> - getListAssetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAssets", - requestType = com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest, - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse> - getListAssetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest, - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse> - getListAssetsMethod; - if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { - SecurityCenterGrpc.getListAssetsMethod = - getListAssetsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListAssets")) - .build(); - } - } - } - return getListAssetsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest, - com.google.cloud.securitycenter.v1beta1.ListFindingsResponse> - getListFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindings", - requestType = com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest, - com.google.cloud.securitycenter.v1beta1.ListFindingsResponse> - getListFindingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest, - com.google.cloud.securitycenter.v1beta1.ListFindingsResponse> - getListFindingsMethod; - if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { - SecurityCenterGrpc.getListFindingsMethod = - getListFindingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.ListFindingsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("ListFindings")) - .build(); - } - } - } - return getListFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest, - com.google.cloud.securitycenter.v1beta1.ListSourcesResponse> - getListSourcesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSources", - requestType = com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest, - com.google.cloud.securitycenter.v1beta1.ListSourcesResponse> - getListSourcesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest, - com.google.cloud.securitycenter.v1beta1.ListSourcesResponse> - getListSourcesMethod; - if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { - SecurityCenterGrpc.getListSourcesMethod = - getListSourcesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSources")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.ListSourcesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("ListSources")) - .build(); - } - } - } - return getListSourcesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest, - com.google.longrunning.Operation> - getRunAssetDiscoveryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RunAssetDiscovery", - requestType = com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest, - com.google.longrunning.Operation> - getRunAssetDiscoveryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest, - com.google.longrunning.Operation> - getRunAssetDiscoveryMethod; - if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { - SecurityCenterGrpc.getRunAssetDiscoveryMethod = - getRunAssetDiscoveryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunAssetDiscovery")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("RunAssetDiscovery")) - .build(); - } - } - } - return getRunAssetDiscoveryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest, - com.google.cloud.securitycenter.v1beta1.Finding> - getSetFindingStateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetFindingState", - requestType = com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest, - com.google.cloud.securitycenter.v1beta1.Finding> - getSetFindingStateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest, - com.google.cloud.securitycenter.v1beta1.Finding> - getSetFindingStateMethod; - if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { - SecurityCenterGrpc.getSetFindingStateMethod = - getSetFindingStateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetFindingState")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("SetFindingState")) - .build(); - } - } - } - return getSetFindingStateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor - getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { - SecurityCenterGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) - == null) { - SecurityCenterGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest, - com.google.cloud.securitycenter.v1beta1.Finding> - getUpdateFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFinding", - requestType = com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest, - com.google.cloud.securitycenter.v1beta1.Finding> - getUpdateFindingMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest, - com.google.cloud.securitycenter.v1beta1.Finding> - getUpdateFindingMethod; - if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { - SecurityCenterGrpc.getUpdateFindingMethod = - getUpdateFindingMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("UpdateFinding")) - .build(); - } - } - } - return getUpdateFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings> - getUpdateOrganizationSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateOrganizationSettings", - requestType = com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.OrganizationSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings> - getUpdateOrganizationSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings> - getUpdateOrganizationSettingsMethod; - if ((getUpdateOrganizationSettingsMethod = - SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) - == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateOrganizationSettingsMethod = - SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) - == null) { - SecurityCenterGrpc.getUpdateOrganizationSettingsMethod = - getUpdateOrganizationSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateOrganizationSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1 - .UpdateOrganizationSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.OrganizationSettings - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("UpdateOrganizationSettings")) - .build(); - } - } - } - return getUpdateOrganizationSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest, - com.google.cloud.securitycenter.v1beta1.Source> - getUpdateSourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSource", - requestType = com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.Source.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest, - com.google.cloud.securitycenter.v1beta1.Source> - getUpdateSourceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest, - com.google.cloud.securitycenter.v1beta1.Source> - getUpdateSourceMethod; - if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { - SecurityCenterGrpc.getUpdateSourceMethod = - getUpdateSourceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("UpdateSource")) - .build(); - } - } - } - return getUpdateSourceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest, - com.google.cloud.securitycenter.v1beta1.SecurityMarks> - getUpdateSecurityMarksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSecurityMarks", - requestType = com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.SecurityMarks.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest, - com.google.cloud.securitycenter.v1beta1.SecurityMarks> - getUpdateSecurityMarksMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest, - com.google.cloud.securitycenter.v1beta1.SecurityMarks> - getUpdateSecurityMarksMethod; - if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) - == null) { - SecurityCenterGrpc.getUpdateSecurityMarksMethod = - getUpdateSecurityMarksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateSecurityMarks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.SecurityMarks - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("UpdateSecurityMarks")) - .build(); - } - } - } - return getUpdateSecurityMarksMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static SecurityCenterStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterStub(channel, callOptions); - } - }; - return SecurityCenterStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SecurityCenterBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterBlockingStub(channel, callOptions); - } - }; - return SecurityCenterBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SecurityCenterFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterFutureStub(channel, callOptions); - } - }; - return SecurityCenterFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * V1 Beta APIs for Security Center service.
-   * 
- */ - public abstract static class SecurityCenterImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a source.
-     * 
- */ - public void createSource( - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSourceMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a finding. The corresponding source must exist for finding creation
-     * to succeed.
-     * 
- */ - public void createFinding( - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateFindingMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the settings for an organization.
-     * 
- */ - public void getOrganizationSettings( - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetOrganizationSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a source.
-     * 
- */ - public void getSource( - com.google.cloud.securitycenter.v1beta1.GetSourceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSourceMethod(), responseObserver); - } - - /** - * - * - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public void groupAssets( - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGroupAssetsMethod(), responseObserver); - } - - /** - * - * - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public void groupFindings( - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGroupFindingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists an organization's assets.
-     * 
- */ - public void listAssets( - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public void listFindings( - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFindingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public void listSources( - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSourcesMethod(), responseObserver); - } - - /** - * - * - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public void runAssetDiscovery( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRunAssetDiscoveryMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the state of a finding.
-     * 
- */ - public void setFindingState( - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetFindingStateMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public void updateFinding( - com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateFindingMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an organization's settings.
-     * 
- */ - public void updateOrganizationSettings( - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateOrganizationSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a source.
-     * 
- */ - public void updateSource( - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSourceMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates security marks.
-     * 
- */ - public void updateSecurityMarks( - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSecurityMarksMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateSourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest, - com.google.cloud.securitycenter.v1beta1.Source>( - this, METHODID_CREATE_SOURCE))) - .addMethod( - getCreateFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest, - com.google.cloud.securitycenter.v1beta1.Finding>( - this, METHODID_CREATE_FINDING))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getGetOrganizationSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings>( - this, METHODID_GET_ORGANIZATION_SETTINGS))) - .addMethod( - getGetSourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.GetSourceRequest, - com.google.cloud.securitycenter.v1beta1.Source>(this, METHODID_GET_SOURCE))) - .addMethod( - getGroupAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest, - com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse>( - this, METHODID_GROUP_ASSETS))) - .addMethod( - getGroupFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest, - com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse>( - this, METHODID_GROUP_FINDINGS))) - .addMethod( - getListAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest, - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse>( - this, METHODID_LIST_ASSETS))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest, - com.google.cloud.securitycenter.v1beta1.ListFindingsResponse>( - this, METHODID_LIST_FINDINGS))) - .addMethod( - getListSourcesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest, - com.google.cloud.securitycenter.v1beta1.ListSourcesResponse>( - this, METHODID_LIST_SOURCES))) - .addMethod( - getRunAssetDiscoveryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest, - com.google.longrunning.Operation>(this, METHODID_RUN_ASSET_DISCOVERY))) - .addMethod( - getSetFindingStateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest, - com.google.cloud.securitycenter.v1beta1.Finding>( - this, METHODID_SET_FINDING_STATE))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .addMethod( - getUpdateFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest, - com.google.cloud.securitycenter.v1beta1.Finding>( - this, METHODID_UPDATE_FINDING))) - .addMethod( - getUpdateOrganizationSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings>( - this, METHODID_UPDATE_ORGANIZATION_SETTINGS))) - .addMethod( - getUpdateSourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest, - com.google.cloud.securitycenter.v1beta1.Source>( - this, METHODID_UPDATE_SOURCE))) - .addMethod( - getUpdateSecurityMarksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest, - com.google.cloud.securitycenter.v1beta1.SecurityMarks>( - this, METHODID_UPDATE_SECURITY_MARKS))) - .build(); - } - } - - /** - * - * - *
-   * V1 Beta APIs for Security Center service.
-   * 
- */ - public static final class SecurityCenterStub - extends io.grpc.stub.AbstractAsyncStub { - private SecurityCenterStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a source.
-     * 
- */ - public void createSource( - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSourceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a finding. The corresponding source must exist for finding creation
-     * to succeed.
-     * 
- */ - public void createFinding( - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFindingMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the settings for an organization.
-     * 
- */ - public void getOrganizationSettings( - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a source.
-     * 
- */ - public void getSource( - com.google.cloud.securitycenter.v1beta1.GetSourceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSourceMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public void groupAssets( - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public void groupFindings( - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists an organization's assets.
-     * 
- */ - public void listAssets( - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public void listFindings( - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public void listSources( - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSourcesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public void runAssetDiscovery( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the state of a finding.
-     * 
- */ - public void setFindingState( - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public void updateFinding( - com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an organization's settings.
-     * 
- */ - public void updateOrganizationSettings( - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a source.
-     * 
- */ - public void updateSource( - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates security marks.
-     * 
- */ - public void updateSecurityMarks( - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * V1 Beta APIs for Security Center service.
-   * 
- */ - public static final class SecurityCenterBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SecurityCenterBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a source.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.Source createSource( - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSourceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a finding. The corresponding source must exist for finding creation
-     * to succeed.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.Finding createFinding( - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFindingMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the settings for an organization.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizationSettings( - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetOrganizationSettingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a source.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.Source getSource( - com.google.cloud.securitycenter.v1beta1.GetSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSourceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse groupAssets( - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGroupAssetsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse groupFindings( - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGroupFindingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists an organization's assets.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse listAssets( - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAssetsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse listFindings( - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.ListSourcesResponse listSources( - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSourcesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public com.google.longrunning.Operation runAssetDiscovery( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRunAssetDiscoveryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the state of a finding.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.Finding setFindingState( - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetFindingStateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.Finding updateFinding( - com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFindingMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an organization's settings.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings updateOrganizationSettings( - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateOrganizationSettingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a source.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.Source updateSource( - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSourceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates security marks.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.SecurityMarks updateSecurityMarks( - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSecurityMarksMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * V1 Beta APIs for Security Center service.
-   * 
- */ - public static final class SecurityCenterFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SecurityCenterFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1beta1.Source> - createSource(com.google.cloud.securitycenter.v1beta1.CreateSourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSourceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a finding. The corresponding source must exist for finding creation
-     * to succeed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1beta1.Finding> - createFinding(com.google.cloud.securitycenter.v1beta1.CreateFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFindingMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the settings for an organization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1beta1.OrganizationSettings> - getOrganizationSettings( - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1beta1.Source> - getSource(com.google.cloud.securitycenter.v1beta1.GetSourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSourceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse> - groupAssets(com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse> - groupFindings(com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists an organization's assets.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse> - listAssets(com.google.cloud.securitycenter.v1beta1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAssetsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1beta1.ListFindingsResponse> - listFindings(com.google.cloud.securitycenter.v1beta1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1beta1.ListSourcesResponse> - listSources(com.google.cloud.securitycenter.v1beta1.ListSourcesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSourcesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - runAssetDiscovery( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the state of a finding.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1beta1.Finding> - setFindingState(com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1beta1.Finding> - updateFinding(com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an organization's settings.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1beta1.OrganizationSettings> - updateOrganizationSettings( - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1beta1.Source> - updateSource(com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates security marks.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1beta1.SecurityMarks> - updateSecurityMarks( - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SOURCE = 0; - private static final int METHODID_CREATE_FINDING = 1; - private static final int METHODID_GET_IAM_POLICY = 2; - private static final int METHODID_GET_ORGANIZATION_SETTINGS = 3; - private static final int METHODID_GET_SOURCE = 4; - private static final int METHODID_GROUP_ASSETS = 5; - private static final int METHODID_GROUP_FINDINGS = 6; - private static final int METHODID_LIST_ASSETS = 7; - private static final int METHODID_LIST_FINDINGS = 8; - private static final int METHODID_LIST_SOURCES = 9; - private static final int METHODID_RUN_ASSET_DISCOVERY = 10; - private static final int METHODID_SET_FINDING_STATE = 11; - private static final int METHODID_SET_IAM_POLICY = 12; - private static final int METHODID_TEST_IAM_PERMISSIONS = 13; - private static final int METHODID_UPDATE_FINDING = 14; - private static final int METHODID_UPDATE_ORGANIZATION_SETTINGS = 15; - private static final int METHODID_UPDATE_SOURCE = 16; - private static final int METHODID_UPDATE_SECURITY_MARKS = 17; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SecurityCenterImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SecurityCenterImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_SOURCE: - serviceImpl.createSource( - (com.google.cloud.securitycenter.v1beta1.CreateSourceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_FINDING: - serviceImpl.createFinding( - (com.google.cloud.securitycenter.v1beta1.CreateFindingRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ORGANIZATION_SETTINGS: - serviceImpl.getOrganizationSettings( - (com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1beta1.OrganizationSettings>) - responseObserver); - break; - case METHODID_GET_SOURCE: - serviceImpl.getSource( - (com.google.cloud.securitycenter.v1beta1.GetSourceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GROUP_ASSETS: - serviceImpl.groupAssets( - (com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse>) - responseObserver); - break; - case METHODID_GROUP_FINDINGS: - serviceImpl.groupFindings( - (com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse>) - responseObserver); - break; - case METHODID_LIST_ASSETS: - serviceImpl.listAssets( - (com.google.cloud.securitycenter.v1beta1.ListAssetsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse>) - responseObserver); - break; - case METHODID_LIST_FINDINGS: - serviceImpl.listFindings( - (com.google.cloud.securitycenter.v1beta1.ListFindingsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1beta1.ListFindingsResponse>) - responseObserver); - break; - case METHODID_LIST_SOURCES: - serviceImpl.listSources( - (com.google.cloud.securitycenter.v1beta1.ListSourcesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1beta1.ListSourcesResponse>) - responseObserver); - break; - case METHODID_RUN_ASSET_DISCOVERY: - serviceImpl.runAssetDiscovery( - (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_FINDING_STATE: - serviceImpl.setFindingState( - (com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_FINDING: - serviceImpl.updateFinding( - (com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_ORGANIZATION_SETTINGS: - serviceImpl.updateOrganizationSettings( - (com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1beta1.OrganizationSettings>) - responseObserver); - break; - case METHODID_UPDATE_SOURCE: - serviceImpl.updateSource( - (com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_SECURITY_MARKS: - serviceImpl.updateSecurityMarks( - (com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class SecurityCenterBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SecurityCenterBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SecurityCenter"); - } - } - - private static final class SecurityCenterFileDescriptorSupplier - extends SecurityCenterBaseDescriptorSupplier { - SecurityCenterFileDescriptorSupplier() {} - } - - private static final class SecurityCenterMethodDescriptorSupplier - extends SecurityCenterBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SecurityCenterMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SecurityCenterGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SecurityCenterFileDescriptorSupplier()) - .addMethod(getCreateSourceMethod()) - .addMethod(getCreateFindingMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getGetOrganizationSettingsMethod()) - .addMethod(getGetSourceMethod()) - .addMethod(getGroupAssetsMethod()) - .addMethod(getGroupFindingsMethod()) - .addMethod(getListAssetsMethod()) - .addMethod(getListFindingsMethod()) - .addMethod(getListSourcesMethod()) - .addMethod(getRunAssetDiscoveryMethod()) - .addMethod(getSetFindingStateMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .addMethod(getUpdateFindingMethod()) - .addMethod(getUpdateOrganizationSettingsMethod()) - .addMethod(getUpdateSourceMethod()) - .addMethod(getUpdateSecurityMarksMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterGrpc.java b/grpc-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterGrpc.java deleted file mode 100644 index 593cee670..000000000 --- a/grpc-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterGrpc.java +++ /dev/null @@ -1,3087 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.securitycenter.v1p1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * V1p1Beta1 APIs for Security Center service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SecurityCenterGrpc { - - private SecurityCenterGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.securitycenter.v1p1beta1.SecurityCenter"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest, - com.google.cloud.securitycenter.v1p1beta1.Source> - getCreateSourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSource", - requestType = com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.Source.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest, - com.google.cloud.securitycenter.v1p1beta1.Source> - getCreateSourceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest, - com.google.cloud.securitycenter.v1p1beta1.Source> - getCreateSourceMethod; - if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { - SecurityCenterGrpc.getCreateSourceMethod = - getCreateSourceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.Source - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("CreateSource")) - .build(); - } - } - } - return getCreateSourceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest, - com.google.cloud.securitycenter.v1p1beta1.Finding> - getCreateFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFinding", - requestType = com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest, - com.google.cloud.securitycenter.v1p1beta1.Finding> - getCreateFindingMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest, - com.google.cloud.securitycenter.v1p1beta1.Finding> - getCreateFindingMethod; - if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { - SecurityCenterGrpc.getCreateFindingMethod = - getCreateFindingMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.Finding - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("CreateFinding")) - .build(); - } - } - } - return getCreateFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> - getCreateNotificationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateNotificationConfig", - requestType = com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> - getCreateNotificationConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> - getCreateNotificationConfigMethod; - if ((getCreateNotificationConfigMethod = SecurityCenterGrpc.getCreateNotificationConfigMethod) - == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getCreateNotificationConfigMethod = - SecurityCenterGrpc.getCreateNotificationConfigMethod) - == null) { - SecurityCenterGrpc.getCreateNotificationConfigMethod = - getCreateNotificationConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateNotificationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1 - .CreateNotificationConfigRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("CreateNotificationConfig")) - .build(); - } - } - } - return getCreateNotificationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest, - com.google.protobuf.Empty> - getDeleteNotificationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteNotificationConfig", - requestType = com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest, - com.google.protobuf.Empty> - getDeleteNotificationConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest, - com.google.protobuf.Empty> - getDeleteNotificationConfigMethod; - if ((getDeleteNotificationConfigMethod = SecurityCenterGrpc.getDeleteNotificationConfigMethod) - == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getDeleteNotificationConfigMethod = - SecurityCenterGrpc.getDeleteNotificationConfigMethod) - == null) { - SecurityCenterGrpc.getDeleteNotificationConfigMethod = - getDeleteNotificationConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteNotificationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1 - .DeleteNotificationConfigRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("DeleteNotificationConfig")) - .build(); - } - } - } - return getDeleteNotificationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor - getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { - SecurityCenterGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> - getGetNotificationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNotificationConfig", - requestType = com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> - getGetNotificationConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> - getGetNotificationConfigMethod; - if ((getGetNotificationConfigMethod = SecurityCenterGrpc.getGetNotificationConfigMethod) - == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetNotificationConfigMethod = SecurityCenterGrpc.getGetNotificationConfigMethod) - == null) { - SecurityCenterGrpc.getGetNotificationConfigMethod = - getGetNotificationConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetNotificationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("GetNotificationConfig")) - .build(); - } - } - } - return getGetNotificationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings> - getGetOrganizationSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetOrganizationSettings", - requestType = com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings> - getGetOrganizationSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings> - getGetOrganizationSettingsMethod; - if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) - == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) - == null) { - SecurityCenterGrpc.getGetOrganizationSettingsMethod = - getGetOrganizationSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetOrganizationSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1 - .GetOrganizationSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("GetOrganizationSettings")) - .build(); - } - } - } - return getGetOrganizationSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest, - com.google.cloud.securitycenter.v1p1beta1.Source> - getGetSourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSource", - requestType = com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.Source.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest, - com.google.cloud.securitycenter.v1p1beta1.Source> - getGetSourceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest, - com.google.cloud.securitycenter.v1p1beta1.Source> - getGetSourceMethod; - if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { - SecurityCenterGrpc.getGetSourceMethod = - getGetSourceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.Source - .getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetSource")) - .build(); - } - } - } - return getGetSourceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest, - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse> - getGroupAssetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GroupAssets", - requestType = com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest, - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse> - getGroupAssetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest, - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse> - getGroupAssetsMethod; - if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { - SecurityCenterGrpc.getGroupAssetsMethod = - getGroupAssetsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("GroupAssets")) - .build(); - } - } - } - return getGroupAssetsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest, - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse> - getGroupFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GroupFindings", - requestType = com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest, - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse> - getGroupFindingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest, - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse> - getGroupFindingsMethod; - if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { - SecurityCenterGrpc.getGroupFindingsMethod = - getGroupFindingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("GroupFindings")) - .build(); - } - } - } - return getGroupFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse> - getListAssetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAssets", - requestType = com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse> - getListAssetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse> - getListAssetsMethod; - if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { - SecurityCenterGrpc.getListAssetsMethod = - getListAssetsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListAssets")) - .build(); - } - } - } - return getListAssetsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse> - getListFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindings", - requestType = com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse> - getListFindingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse> - getListFindingsMethod; - if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { - SecurityCenterGrpc.getListFindingsMethod = - getListFindingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("ListFindings")) - .build(); - } - } - } - return getListFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest, - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse> - getListNotificationConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNotificationConfigs", - requestType = com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.class, - responseType = - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest, - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse> - getListNotificationConfigsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest, - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse> - getListNotificationConfigsMethod; - if ((getListNotificationConfigsMethod = SecurityCenterGrpc.getListNotificationConfigsMethod) - == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListNotificationConfigsMethod = SecurityCenterGrpc.getListNotificationConfigsMethod) - == null) { - SecurityCenterGrpc.getListNotificationConfigsMethod = - getListNotificationConfigsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListNotificationConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1 - .ListNotificationConfigsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1 - .ListNotificationConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("ListNotificationConfigs")) - .build(); - } - } - } - return getListNotificationConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest, - com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse> - getListSourcesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSources", - requestType = com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest, - com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse> - getListSourcesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest, - com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse> - getListSourcesMethod; - if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { - SecurityCenterGrpc.getListSourcesMethod = - getListSourcesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSources")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("ListSources")) - .build(); - } - } - } - return getListSourcesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest, - com.google.longrunning.Operation> - getRunAssetDiscoveryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RunAssetDiscovery", - requestType = com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest, - com.google.longrunning.Operation> - getRunAssetDiscoveryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest, - com.google.longrunning.Operation> - getRunAssetDiscoveryMethod; - if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { - SecurityCenterGrpc.getRunAssetDiscoveryMethod = - getRunAssetDiscoveryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunAssetDiscovery")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("RunAssetDiscovery")) - .build(); - } - } - } - return getRunAssetDiscoveryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest, - com.google.cloud.securitycenter.v1p1beta1.Finding> - getSetFindingStateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetFindingState", - requestType = com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest, - com.google.cloud.securitycenter.v1p1beta1.Finding> - getSetFindingStateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest, - com.google.cloud.securitycenter.v1p1beta1.Finding> - getSetFindingStateMethod; - if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { - SecurityCenterGrpc.getSetFindingStateMethod = - getSetFindingStateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetFindingState")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.Finding - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("SetFindingState")) - .build(); - } - } - } - return getSetFindingStateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor - getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { - SecurityCenterGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) - == null) { - SecurityCenterGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest, - com.google.cloud.securitycenter.v1p1beta1.Finding> - getUpdateFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFinding", - requestType = com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest, - com.google.cloud.securitycenter.v1p1beta1.Finding> - getUpdateFindingMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest, - com.google.cloud.securitycenter.v1p1beta1.Finding> - getUpdateFindingMethod; - if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { - SecurityCenterGrpc.getUpdateFindingMethod = - getUpdateFindingMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.Finding - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("UpdateFinding")) - .build(); - } - } - } - return getUpdateFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> - getUpdateNotificationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNotificationConfig", - requestType = com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> - getUpdateNotificationConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> - getUpdateNotificationConfigMethod; - if ((getUpdateNotificationConfigMethod = SecurityCenterGrpc.getUpdateNotificationConfigMethod) - == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateNotificationConfigMethod = - SecurityCenterGrpc.getUpdateNotificationConfigMethod) - == null) { - SecurityCenterGrpc.getUpdateNotificationConfigMethod = - getUpdateNotificationConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateNotificationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1 - .UpdateNotificationConfigRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("UpdateNotificationConfig")) - .build(); - } - } - } - return getUpdateNotificationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings> - getUpdateOrganizationSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateOrganizationSettings", - requestType = - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings> - getUpdateOrganizationSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings> - getUpdateOrganizationSettingsMethod; - if ((getUpdateOrganizationSettingsMethod = - SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) - == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateOrganizationSettingsMethod = - SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) - == null) { - SecurityCenterGrpc.getUpdateOrganizationSettingsMethod = - getUpdateOrganizationSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateOrganizationSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1 - .UpdateOrganizationSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("UpdateOrganizationSettings")) - .build(); - } - } - } - return getUpdateOrganizationSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest, - com.google.cloud.securitycenter.v1p1beta1.Source> - getUpdateSourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSource", - requestType = com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.Source.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest, - com.google.cloud.securitycenter.v1p1beta1.Source> - getUpdateSourceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest, - com.google.cloud.securitycenter.v1p1beta1.Source> - getUpdateSourceMethod; - if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { - SecurityCenterGrpc.getUpdateSourceMethod = - getUpdateSourceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.Source - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("UpdateSource")) - .build(); - } - } - } - return getUpdateSourceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest, - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks> - getUpdateSecurityMarksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSecurityMarks", - requestType = com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest, - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks> - getUpdateSecurityMarksMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest, - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks> - getUpdateSecurityMarksMethod; - if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) - == null) { - SecurityCenterGrpc.getUpdateSecurityMarksMethod = - getUpdateSecurityMarksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateSecurityMarks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks - .getDefaultInstance())) - .setSchemaDescriptor( - new SecurityCenterMethodDescriptorSupplier("UpdateSecurityMarks")) - .build(); - } - } - } - return getUpdateSecurityMarksMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static SecurityCenterStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterStub(channel, callOptions); - } - }; - return SecurityCenterStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SecurityCenterBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterBlockingStub(channel, callOptions); - } - }; - return SecurityCenterBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SecurityCenterFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterFutureStub(channel, callOptions); - } - }; - return SecurityCenterFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * V1p1Beta1 APIs for Security Center service.
-   * 
- */ - public abstract static class SecurityCenterImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a source.
-     * 
- */ - public void createSource( - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSourceMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a finding. The corresponding source must exist for finding
-     * creation to succeed.
-     * 
- */ - public void createFinding( - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateFindingMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a notification config.
-     * 
- */ - public void createNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateNotificationConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a notification config.
-     * 
- */ - public void deleteNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteNotificationConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a notification config.
-     * 
- */ - public void getNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetNotificationConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the settings for an organization.
-     * 
- */ - public void getOrganizationSettings( - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetOrganizationSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a source.
-     * 
- */ - public void getSource( - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSourceMethod(), responseObserver); - } - - /** - * - * - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public void groupAssets( - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGroupAssetsMethod(), responseObserver); - } - - /** - * - * - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings,
-     * /v1/folders/{folder_id}/sources/-/findings,
-     * /v1/projects/{project_id}/sources/-/findings
-     * 
- */ - public void groupFindings( - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGroupFindingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists an organization's assets.
-     * 
- */ - public void listAssets( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public void listFindings( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFindingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists notification configs.
-     * 
- */ - public void listNotificationConfigs( - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListNotificationConfigsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public void listSources( - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSourcesMethod(), responseObserver); - } - - /** - * - * - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public void runAssetDiscovery( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRunAssetDiscoveryMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the state of a finding.
-     * 
- */ - public void setFindingState( - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetFindingStateMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public void updateFinding( - com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateFindingMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a notification config. The following update
-     * fields are allowed: description, pubsub_topic, streaming_config.filter
-     * 
- */ - public void updateNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateNotificationConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an organization's settings.
-     * 
- */ - public void updateOrganizationSettings( - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateOrganizationSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a source.
-     * 
- */ - public void updateSource( - com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSourceMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates security marks.
-     * 
- */ - public void updateSecurityMarks( - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSecurityMarksMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateSourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest, - com.google.cloud.securitycenter.v1p1beta1.Source>( - this, METHODID_CREATE_SOURCE))) - .addMethod( - getCreateFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest, - com.google.cloud.securitycenter.v1p1beta1.Finding>( - this, METHODID_CREATE_FINDING))) - .addMethod( - getCreateNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig>( - this, METHODID_CREATE_NOTIFICATION_CONFIG))) - .addMethod( - getDeleteNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_NOTIFICATION_CONFIG))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getGetNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig>( - this, METHODID_GET_NOTIFICATION_CONFIG))) - .addMethod( - getGetOrganizationSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings>( - this, METHODID_GET_ORGANIZATION_SETTINGS))) - .addMethod( - getGetSourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest, - com.google.cloud.securitycenter.v1p1beta1.Source>(this, METHODID_GET_SOURCE))) - .addMethod( - getGroupAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest, - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse>( - this, METHODID_GROUP_ASSETS))) - .addMethod( - getGroupFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest, - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse>( - this, METHODID_GROUP_FINDINGS))) - .addMethod( - getListAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse>( - this, METHODID_LIST_ASSETS))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse>( - this, METHODID_LIST_FINDINGS))) - .addMethod( - getListNotificationConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest, - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse>( - this, METHODID_LIST_NOTIFICATION_CONFIGS))) - .addMethod( - getListSourcesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest, - com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse>( - this, METHODID_LIST_SOURCES))) - .addMethod( - getRunAssetDiscoveryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest, - com.google.longrunning.Operation>(this, METHODID_RUN_ASSET_DISCOVERY))) - .addMethod( - getSetFindingStateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest, - com.google.cloud.securitycenter.v1p1beta1.Finding>( - this, METHODID_SET_FINDING_STATE))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .addMethod( - getUpdateFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest, - com.google.cloud.securitycenter.v1p1beta1.Finding>( - this, METHODID_UPDATE_FINDING))) - .addMethod( - getUpdateNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig>( - this, METHODID_UPDATE_NOTIFICATION_CONFIG))) - .addMethod( - getUpdateOrganizationSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings>( - this, METHODID_UPDATE_ORGANIZATION_SETTINGS))) - .addMethod( - getUpdateSourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest, - com.google.cloud.securitycenter.v1p1beta1.Source>( - this, METHODID_UPDATE_SOURCE))) - .addMethod( - getUpdateSecurityMarksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest, - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks>( - this, METHODID_UPDATE_SECURITY_MARKS))) - .build(); - } - } - - /** - * - * - *
-   * V1p1Beta1 APIs for Security Center service.
-   * 
- */ - public static final class SecurityCenterStub - extends io.grpc.stub.AbstractAsyncStub { - private SecurityCenterStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a source.
-     * 
- */ - public void createSource( - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSourceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a finding. The corresponding source must exist for finding
-     * creation to succeed.
-     * 
- */ - public void createFinding( - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFindingMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a notification config.
-     * 
- */ - public void createNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a notification config.
-     * 
- */ - public void deleteNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a notification config.
-     * 
- */ - public void getNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the settings for an organization.
-     * 
- */ - public void getOrganizationSettings( - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a source.
-     * 
- */ - public void getSource( - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSourceMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public void groupAssets( - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings,
-     * /v1/folders/{folder_id}/sources/-/findings,
-     * /v1/projects/{project_id}/sources/-/findings
-     * 
- */ - public void groupFindings( - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists an organization's assets.
-     * 
- */ - public void listAssets( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public void listFindings( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists notification configs.
-     * 
- */ - public void listNotificationConfigs( - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public void listSources( - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSourcesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public void runAssetDiscovery( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the state of a finding.
-     * 
- */ - public void setFindingState( - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public void updateFinding( - com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a notification config. The following update
-     * fields are allowed: description, pubsub_topic, streaming_config.filter
-     * 
- */ - public void updateNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNotificationConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an organization's settings.
-     * 
- */ - public void updateOrganizationSettings( - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a source.
-     * 
- */ - public void updateSource( - com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates security marks.
-     * 
- */ - public void updateSecurityMarks( - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * V1p1Beta1 APIs for Security Center service.
-   * 
- */ - public static final class SecurityCenterBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SecurityCenterBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a source.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.Source createSource( - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSourceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a finding. The corresponding source must exist for finding
-     * creation to succeed.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.Finding createFinding( - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFindingMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a notification config.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig createNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateNotificationConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a notification config.
-     * 
- */ - public com.google.protobuf.Empty deleteNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteNotificationConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a notification config.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNotificationConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the settings for an organization.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getOrganizationSettings( - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetOrganizationSettingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a source.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.Source getSource( - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSourceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse groupAssets( - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGroupAssetsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings,
-     * /v1/folders/{folder_id}/sources/-/findings,
-     * /v1/projects/{project_id}/sources/-/findings
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse groupFindings( - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGroupFindingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists an organization's assets.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse listAssets( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAssetsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse listFindings( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists notification configs.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse - listNotificationConfigs( - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNotificationConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse listSources( - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSourcesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public com.google.longrunning.Operation runAssetDiscovery( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRunAssetDiscoveryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the state of a finding.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.Finding setFindingState( - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetFindingStateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.Finding updateFinding( - com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFindingMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a notification config. The following update
-     * fields are allowed: description, pubsub_topic, streaming_config.filter
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig updateNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNotificationConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an organization's settings.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - updateOrganizationSettings( - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateOrganizationSettingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a source.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.Source updateSource( - com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSourceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates security marks.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks updateSecurityMarks( - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSecurityMarksMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * V1p1Beta1 APIs for Security Center service.
-   * 
- */ - public static final class SecurityCenterFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SecurityCenterFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1p1beta1.Source> - createSource(com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSourceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a finding. The corresponding source must exist for finding
-     * creation to succeed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1p1beta1.Finding> - createFinding(com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFindingMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a notification config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> - createNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a notification config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a notification config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> - getNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the settings for an organization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings> - getOrganizationSettings( - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1p1beta1.Source> - getSource(com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSourceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse> - groupAssets(com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings,
-     * /v1/folders/{folder_id}/sources/-/findings,
-     * /v1/projects/{project_id}/sources/-/findings
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse> - groupFindings(com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists an organization's assets.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse> - listAssets(com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAssetsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse> - listFindings(com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists notification configs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse> - listNotificationConfigs( - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse> - listSources(com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSourcesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - runAssetDiscovery( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the state of a finding.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1p1beta1.Finding> - setFindingState(com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1p1beta1.Finding> - updateFinding(com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a notification config. The following update
-     * fields are allowed: description, pubsub_topic, streaming_config.filter
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> - updateNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNotificationConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an organization's settings.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings> - updateOrganizationSettings( - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1p1beta1.Source> - updateSource(com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates security marks.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks> - updateSecurityMarks( - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SOURCE = 0; - private static final int METHODID_CREATE_FINDING = 1; - private static final int METHODID_CREATE_NOTIFICATION_CONFIG = 2; - private static final int METHODID_DELETE_NOTIFICATION_CONFIG = 3; - private static final int METHODID_GET_IAM_POLICY = 4; - private static final int METHODID_GET_NOTIFICATION_CONFIG = 5; - private static final int METHODID_GET_ORGANIZATION_SETTINGS = 6; - private static final int METHODID_GET_SOURCE = 7; - private static final int METHODID_GROUP_ASSETS = 8; - private static final int METHODID_GROUP_FINDINGS = 9; - private static final int METHODID_LIST_ASSETS = 10; - private static final int METHODID_LIST_FINDINGS = 11; - private static final int METHODID_LIST_NOTIFICATION_CONFIGS = 12; - private static final int METHODID_LIST_SOURCES = 13; - private static final int METHODID_RUN_ASSET_DISCOVERY = 14; - private static final int METHODID_SET_FINDING_STATE = 15; - private static final int METHODID_SET_IAM_POLICY = 16; - private static final int METHODID_TEST_IAM_PERMISSIONS = 17; - private static final int METHODID_UPDATE_FINDING = 18; - private static final int METHODID_UPDATE_NOTIFICATION_CONFIG = 19; - private static final int METHODID_UPDATE_ORGANIZATION_SETTINGS = 20; - private static final int METHODID_UPDATE_SOURCE = 21; - private static final int METHODID_UPDATE_SECURITY_MARKS = 22; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SecurityCenterImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SecurityCenterImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_SOURCE: - serviceImpl.createSource( - (com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_FINDING: - serviceImpl.createFinding( - (com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_NOTIFICATION_CONFIG: - serviceImpl.createNotificationConfig( - (com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig>) - responseObserver); - break; - case METHODID_DELETE_NOTIFICATION_CONFIG: - serviceImpl.deleteNotificationConfig( - (com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NOTIFICATION_CONFIG: - serviceImpl.getNotificationConfig( - (com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig>) - responseObserver); - break; - case METHODID_GET_ORGANIZATION_SETTINGS: - serviceImpl.getOrganizationSettings( - (com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings>) - responseObserver); - break; - case METHODID_GET_SOURCE: - serviceImpl.getSource( - (com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GROUP_ASSETS: - serviceImpl.groupAssets( - (com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse>) - responseObserver); - break; - case METHODID_GROUP_FINDINGS: - serviceImpl.groupFindings( - (com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse>) - responseObserver); - break; - case METHODID_LIST_ASSETS: - serviceImpl.listAssets( - (com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse>) - responseObserver); - break; - case METHODID_LIST_FINDINGS: - serviceImpl.listFindings( - (com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse>) - responseObserver); - break; - case METHODID_LIST_NOTIFICATION_CONFIGS: - serviceImpl.listNotificationConfigs( - (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse>) - responseObserver); - break; - case METHODID_LIST_SOURCES: - serviceImpl.listSources( - (com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse>) - responseObserver); - break; - case METHODID_RUN_ASSET_DISCOVERY: - serviceImpl.runAssetDiscovery( - (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_FINDING_STATE: - serviceImpl.setFindingState( - (com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_FINDING: - serviceImpl.updateFinding( - (com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_NOTIFICATION_CONFIG: - serviceImpl.updateNotificationConfig( - (com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig>) - responseObserver); - break; - case METHODID_UPDATE_ORGANIZATION_SETTINGS: - serviceImpl.updateOrganizationSettings( - (com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings>) - responseObserver); - break; - case METHODID_UPDATE_SOURCE: - serviceImpl.updateSource( - (com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_SECURITY_MARKS: - serviceImpl.updateSecurityMarks( - (com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class SecurityCenterBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SecurityCenterBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SecurityCenter"); - } - } - - private static final class SecurityCenterFileDescriptorSupplier - extends SecurityCenterBaseDescriptorSupplier { - SecurityCenterFileDescriptorSupplier() {} - } - - private static final class SecurityCenterMethodDescriptorSupplier - extends SecurityCenterBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SecurityCenterMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SecurityCenterGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SecurityCenterFileDescriptorSupplier()) - .addMethod(getCreateSourceMethod()) - .addMethod(getCreateFindingMethod()) - .addMethod(getCreateNotificationConfigMethod()) - .addMethod(getDeleteNotificationConfigMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getGetNotificationConfigMethod()) - .addMethod(getGetOrganizationSettingsMethod()) - .addMethod(getGetSourceMethod()) - .addMethod(getGroupAssetsMethod()) - .addMethod(getGroupFindingsMethod()) - .addMethod(getListAssetsMethod()) - .addMethod(getListFindingsMethod()) - .addMethod(getListNotificationConfigsMethod()) - .addMethod(getListSourcesMethod()) - .addMethod(getRunAssetDiscoveryMethod()) - .addMethod(getSetFindingStateMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .addMethod(getUpdateFindingMethod()) - .addMethod(getUpdateNotificationConfigMethod()) - .addMethod(getUpdateOrganizationSettingsMethod()) - .addMethod(getUpdateSourceMethod()) - .addMethod(getUpdateSecurityMarksMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java b/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java similarity index 98% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java rename to owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java index d2f815c19..55c41f95e 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java +++ b/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java @@ -19,6 +19,7 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; @@ -36,7 +37,6 @@ import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; @@ -69,13 +69,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -110,13 +110,28 @@ * SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * SecurityCenterSettings securityCenterSettings =
+ *     SecurityCenterSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             SecurityCenterSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") public class SecurityCenterClient implements BackgroundResource { private final SecurityCenterSettings settings; private final SecurityCenterStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of SecurityCenterClient with default settings. */ public static final SecurityCenterClient create() throws IOException { @@ -148,13 +163,17 @@ public static final SecurityCenterClient create(SecurityCenterStub stub) { protected SecurityCenterClient(SecurityCenterSettings settings) throws IOException { this.settings = settings; this.stub = ((SecurityCenterStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected SecurityCenterClient(SecurityCenterStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final SecurityCenterSettings getSettings() { @@ -169,10 +188,18 @@ public SecurityCenterStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either @@ -2051,15 +2078,15 @@ public final UnaryCallable groupAssetsC * of fields. For example: "parent,resource_name". *

The following fields are supported: *

    - *
  • resource_name - *
  • category - *
  • state - *
  • parent - *
  • severity + *
  • resource_name + *
  • category + *
  • state + *
  • parent + *
  • severity *
*

The following fields are supported when compare_duration is set: *

    - *
  • state_change + *
  • state_change *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -2106,15 +2133,15 @@ public final GroupFindingsPagedResponse groupFindings(SourceName parent, String * of fields. For example: "parent,resource_name". *

The following fields are supported: *

    - *
  • resource_name - *
  • category - *
  • state - *
  • parent - *
  • severity + *
  • resource_name + *
  • category + *
  • state + *
  • parent + *
  • severity *
*

The following fields are supported when compare_duration is set: *

    - *
  • state_change + *
  • state_change *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -4952,10 +4979,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class GroupAssetsPagedResponse extends AbstractPagedListResponse< - GroupAssetsRequest, - GroupAssetsResponse, - GroupResult, - GroupAssetsPage, + GroupAssetsRequest, GroupAssetsResponse, GroupResult, GroupAssetsPage, GroupAssetsFixedSizeCollection> { public static ApiFuture createAsync( @@ -5002,10 +5026,7 @@ public ApiFuture createPageAsync( public static class GroupAssetsFixedSizeCollection extends AbstractFixedSizeCollection< - GroupAssetsRequest, - GroupAssetsResponse, - GroupResult, - GroupAssetsPage, + GroupAssetsRequest, GroupAssetsResponse, GroupResult, GroupAssetsPage, GroupAssetsFixedSizeCollection> { private GroupAssetsFixedSizeCollection(List pages, int collectionSize) { @@ -5025,10 +5046,7 @@ protected GroupAssetsFixedSizeCollection createCollection( public static class GroupFindingsPagedResponse extends AbstractPagedListResponse< - GroupFindingsRequest, - GroupFindingsResponse, - GroupResult, - GroupFindingsPage, + GroupFindingsRequest, GroupFindingsResponse, GroupResult, GroupFindingsPage, GroupFindingsFixedSizeCollection> { public static ApiFuture createAsync( @@ -5078,10 +5096,7 @@ public ApiFuture createPageAsync( public static class GroupFindingsFixedSizeCollection extends AbstractFixedSizeCollection< - GroupFindingsRequest, - GroupFindingsResponse, - GroupResult, - GroupFindingsPage, + GroupFindingsRequest, GroupFindingsResponse, GroupResult, GroupFindingsPage, GroupFindingsFixedSizeCollection> { private GroupFindingsFixedSizeCollection(List pages, int collectionSize) { @@ -5101,11 +5116,8 @@ protected GroupFindingsFixedSizeCollection createCollection( public static class ListAssetsPagedResponse extends AbstractPagedListResponse< - ListAssetsRequest, - ListAssetsResponse, - ListAssetsResponse.ListAssetsResult, - ListAssetsPage, - ListAssetsFixedSizeCollection> { + ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult, + ListAssetsPage, ListAssetsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -5124,9 +5136,7 @@ private ListAssetsPagedResponse(ListAssetsPage page) { public static class ListAssetsPage extends AbstractPage< - ListAssetsRequest, - ListAssetsResponse, - ListAssetsResponse.ListAssetsResult, + ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult, ListAssetsPage> { private ListAssetsPage( @@ -5159,11 +5169,8 @@ public ApiFuture createPageAsync( public static class ListAssetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListAssetsRequest, - ListAssetsResponse, - ListAssetsResponse.ListAssetsResult, - ListAssetsPage, - ListAssetsFixedSizeCollection> { + ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult, + ListAssetsPage, ListAssetsFixedSizeCollection> { private ListAssetsFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); @@ -5182,11 +5189,8 @@ protected ListAssetsFixedSizeCollection createCollection( public static class ListFindingsPagedResponse extends AbstractPagedListResponse< - ListFindingsRequest, - ListFindingsResponse, - ListFindingsResponse.ListFindingsResult, - ListFindingsPage, - ListFindingsFixedSizeCollection> { + ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult, + ListFindingsPage, ListFindingsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< @@ -5208,9 +5212,7 @@ private ListFindingsPagedResponse(ListFindingsPage page) { public static class ListFindingsPage extends AbstractPage< - ListFindingsRequest, - ListFindingsResponse, - ListFindingsResponse.ListFindingsResult, + ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult, ListFindingsPage> { private ListFindingsPage( @@ -5246,11 +5248,8 @@ public ApiFuture createPageAsync( public static class ListFindingsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFindingsRequest, - ListFindingsResponse, - ListFindingsResponse.ListFindingsResult, - ListFindingsPage, - ListFindingsFixedSizeCollection> { + ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult, + ListFindingsPage, ListFindingsFixedSizeCollection> { private ListFindingsFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); @@ -5269,10 +5268,7 @@ protected ListFindingsFixedSizeCollection createCollection( public static class ListMuteConfigsPagedResponse extends AbstractPagedListResponse< - ListMuteConfigsRequest, - ListMuteConfigsResponse, - MuteConfig, - ListMuteConfigsPage, + ListMuteConfigsRequest, ListMuteConfigsResponse, MuteConfig, ListMuteConfigsPage, ListMuteConfigsFixedSizeCollection> { public static ApiFuture createAsync( @@ -5322,10 +5318,7 @@ public ApiFuture createPageAsync( public static class ListMuteConfigsFixedSizeCollection extends AbstractFixedSizeCollection< - ListMuteConfigsRequest, - ListMuteConfigsResponse, - MuteConfig, - ListMuteConfigsPage, + ListMuteConfigsRequest, ListMuteConfigsResponse, MuteConfig, ListMuteConfigsPage, ListMuteConfigsFixedSizeCollection> { private ListMuteConfigsFixedSizeCollection( @@ -5346,11 +5339,8 @@ protected ListMuteConfigsFixedSizeCollection createCollection( public static class ListNotificationConfigsPagedResponse extends AbstractPagedListResponse< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, - NotificationConfig, - ListNotificationConfigsPage, - ListNotificationConfigsFixedSizeCollection> { + ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig, + ListNotificationConfigsPage, ListNotificationConfigsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< @@ -5372,9 +5362,7 @@ private ListNotificationConfigsPagedResponse(ListNotificationConfigsPage page) { public static class ListNotificationConfigsPage extends AbstractPage< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, - NotificationConfig, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig, ListNotificationConfigsPage> { private ListNotificationConfigsPage( @@ -5410,11 +5398,8 @@ public ApiFuture createPageAsync( public static class ListNotificationConfigsFixedSizeCollection extends AbstractFixedSizeCollection< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, - NotificationConfig, - ListNotificationConfigsPage, - ListNotificationConfigsFixedSizeCollection> { + ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig, + ListNotificationConfigsPage, ListNotificationConfigsFixedSizeCollection> { private ListNotificationConfigsFixedSizeCollection( List pages, int collectionSize) { @@ -5434,10 +5419,7 @@ protected ListNotificationConfigsFixedSizeCollection createCollection( public static class ListSourcesPagedResponse extends AbstractPagedListResponse< - ListSourcesRequest, - ListSourcesResponse, - Source, - ListSourcesPage, + ListSourcesRequest, ListSourcesResponse, Source, ListSourcesPage, ListSourcesFixedSizeCollection> { public static ApiFuture createAsync( @@ -5484,10 +5466,7 @@ public ApiFuture createPageAsync( public static class ListSourcesFixedSizeCollection extends AbstractFixedSizeCollection< - ListSourcesRequest, - ListSourcesResponse, - Source, - ListSourcesPage, + ListSourcesRequest, ListSourcesResponse, Source, ListSourcesPage, ListSourcesFixedSizeCollection> { private ListSourcesFixedSizeCollection(List pages, int collectionSize) { @@ -5507,11 +5486,8 @@ protected ListSourcesFixedSizeCollection createCollection( public static class ListBigQueryExportsPagedResponse extends AbstractPagedListResponse< - ListBigQueryExportsRequest, - ListBigQueryExportsResponse, - BigQueryExport, - ListBigQueryExportsPage, - ListBigQueryExportsFixedSizeCollection> { + ListBigQueryExportsRequest, ListBigQueryExportsResponse, BigQueryExport, + ListBigQueryExportsPage, ListBigQueryExportsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -5532,9 +5508,7 @@ private ListBigQueryExportsPagedResponse(ListBigQueryExportsPage page) { public static class ListBigQueryExportsPage extends AbstractPage< - ListBigQueryExportsRequest, - ListBigQueryExportsResponse, - BigQueryExport, + ListBigQueryExportsRequest, ListBigQueryExportsResponse, BigQueryExport, ListBigQueryExportsPage> { private ListBigQueryExportsPage( @@ -5567,11 +5541,8 @@ public ApiFuture createPageAsync( public static class ListBigQueryExportsFixedSizeCollection extends AbstractFixedSizeCollection< - ListBigQueryExportsRequest, - ListBigQueryExportsResponse, - BigQueryExport, - ListBigQueryExportsPage, - ListBigQueryExportsFixedSizeCollection> { + ListBigQueryExportsRequest, ListBigQueryExportsResponse, BigQueryExport, + ListBigQueryExportsPage, ListBigQueryExportsFixedSizeCollection> { private ListBigQueryExportsFixedSizeCollection( List pages, int collectionSize) { diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java b/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java similarity index 95% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java rename to owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java index ace062fcf..3a52e7740 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java +++ b/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java @@ -30,11 +30,13 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.securitycenter.v1.stub.SecurityCenterStubSettings; @@ -56,10 +58,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (securitycenter.googleapis.com) and default port (443) are + *
  • The default service address (securitycenter.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -195,8 +197,7 @@ public UnaryCallSettings getSourceSettings() { /** Returns the object with the settings used for calls to listNotificationConfigs. */ public PagedCallSettings< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings() { return ((SecurityCenterStubSettings) getStubSettings()).listNotificationConfigsSettings(); @@ -328,11 +329,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return SecurityCenterStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return SecurityCenterStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SecurityCenterStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return SecurityCenterStubSettings.defaultTransportChannelProvider(); } @@ -342,11 +350,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return SecurityCenterStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -384,6 +398,11 @@ private static Builder createDefault() { return new Builder(SecurityCenterStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(SecurityCenterStubSettings.newHttpJsonBuilder()); + } + public SecurityCenterStubSettings.Builder getStubSettingsBuilder() { return ((SecurityCenterStubSettings.Builder) getStubSettings()); } @@ -514,8 +533,7 @@ public UnaryCallSettings.Builder getSourceSettings() { /** Returns the builder for the settings used for calls to listNotificationConfigs. */ public PagedCallSettings.Builder< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings() { return getStubSettingsBuilder().listNotificationConfigsSettings(); @@ -621,8 +639,7 @@ public UnaryCallSettings.Builder updateSourceSettin /** Returns the builder for the settings used for calls to listBigQueryExports. */ public PagedCallSettings.Builder< - ListBigQueryExportsRequest, - ListBigQueryExportsResponse, + ListBigQueryExportsRequest, ListBigQueryExportsResponse, ListBigQueryExportsPagedResponse> listBigQueryExportsSettings() { return getStubSettingsBuilder().listBigQueryExportsSettings(); diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/gapic_metadata.json similarity index 100% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/gapic_metadata.json diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java b/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java similarity index 100% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java b/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java similarity index 100% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java rename to owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java b/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java similarity index 99% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java rename to owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java index cd09071d4..4943b19d6 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java +++ b/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java @@ -95,6 +95,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterCallableFactory.java b/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterCallableFactory.java new file mode 100644 index 000000000..022ee1219 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the SecurityCenter service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonSecurityCenterCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java b/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java new file mode 100644 index 000000000..21f87a39e --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java @@ -0,0 +1,2341 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1.stub; + +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupAssetsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListAssetsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListBigQueryExportsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListMuteConfigsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListNotificationConfigsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSourcesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.securitycenter.v1.BigQueryExport; +import com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest; +import com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse; +import com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest; +import com.google.cloud.securitycenter.v1.CreateFindingRequest; +import com.google.cloud.securitycenter.v1.CreateMuteConfigRequest; +import com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest; +import com.google.cloud.securitycenter.v1.CreateSourceRequest; +import com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest; +import com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest; +import com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest; +import com.google.cloud.securitycenter.v1.ExternalSystem; +import com.google.cloud.securitycenter.v1.Finding; +import com.google.cloud.securitycenter.v1.GetBigQueryExportRequest; +import com.google.cloud.securitycenter.v1.GetMuteConfigRequest; +import com.google.cloud.securitycenter.v1.GetNotificationConfigRequest; +import com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1.GetSourceRequest; +import com.google.cloud.securitycenter.v1.GroupAssetsRequest; +import com.google.cloud.securitycenter.v1.GroupAssetsResponse; +import com.google.cloud.securitycenter.v1.GroupFindingsRequest; +import com.google.cloud.securitycenter.v1.GroupFindingsResponse; +import com.google.cloud.securitycenter.v1.ListAssetsRequest; +import com.google.cloud.securitycenter.v1.ListAssetsResponse; +import com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest; +import com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse; +import com.google.cloud.securitycenter.v1.ListFindingsRequest; +import com.google.cloud.securitycenter.v1.ListFindingsResponse; +import com.google.cloud.securitycenter.v1.ListMuteConfigsRequest; +import com.google.cloud.securitycenter.v1.ListMuteConfigsResponse; +import com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest; +import com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse; +import com.google.cloud.securitycenter.v1.ListSourcesRequest; +import com.google.cloud.securitycenter.v1.ListSourcesResponse; +import com.google.cloud.securitycenter.v1.MuteConfig; +import com.google.cloud.securitycenter.v1.NotificationConfig; +import com.google.cloud.securitycenter.v1.OrganizationSettings; +import com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest; +import com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse; +import com.google.cloud.securitycenter.v1.SecurityMarks; +import com.google.cloud.securitycenter.v1.SetFindingStateRequest; +import com.google.cloud.securitycenter.v1.SetMuteRequest; +import com.google.cloud.securitycenter.v1.Source; +import com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest; +import com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest; +import com.google.cloud.securitycenter.v1.UpdateFindingRequest; +import com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest; +import com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest; +import com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest; +import com.google.cloud.securitycenter.v1.UpdateSourceRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the SecurityCenter service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonSecurityCenterStub extends SecurityCenterStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(RunAssetDiscoveryResponse.getDescriptor()) + .add(BulkMuteFindingsResponse.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + bulkMuteFindingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/BulkMuteFindings") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*}/findings:bulkMute", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*}/findings:bulkMute", + "/v1/{parent=projects/*}/findings:bulkMute") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (BulkMuteFindingsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + createSourceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/CreateSource") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*}/sources", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("source", request.getSource())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Source.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createFindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/CreateFinding") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*/sources/*}/findings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "findingId", request.getFindingId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("finding", request.getFinding())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Finding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createMuteConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/CreateMuteConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*}/muteConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*}/muteConfigs", + "/v1/{parent=projects/*}/muteConfigs") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "muteConfigId", request.getMuteConfigId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("muteConfig", request.getMuteConfig())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(MuteConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createNotificationConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/CreateNotificationConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*}/notificationConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "configId", request.getConfigId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("notificationConfig", request.getNotificationConfig())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(NotificationConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteMuteConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/DeleteMuteConfig") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/muteConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/muteConfigs/*}", + "/v1/{name=projects/*/muteConfigs/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteNotificationConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/DeleteNotificationConfig") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/notificationConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getBigQueryExportMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/GetBigQueryExport") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/bigQueryExports/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/bigQueryExports/*}", + "/v1/{name=projects/*/bigQueryExports/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BigQueryExport.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/GetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=organizations/*/sources/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getMuteConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/GetMuteConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/muteConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/muteConfigs/*}", + "/v1/{name=projects/*/muteConfigs/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(MuteConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getNotificationConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/GetNotificationConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/notificationConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(NotificationConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getOrganizationSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/GetOrganizationSettings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/organizationSettings}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(OrganizationSettings.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getSourceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/GetSource") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/sources/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Source.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + groupAssetsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/GroupAssets") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*}/assets:group", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*}/assets:group", + "/v1/{parent=projects/*}/assets:group") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(GroupAssetsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + groupFindingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/GroupFindings") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*/sources/*}/findings:group", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*/sources/*}/findings:group", + "/v1/{parent=projects/*/sources/*}/findings:group") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(GroupFindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listAssetsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/ListAssets") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*}/assets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*}/assets", "/v1/{parent=projects/*}/assets") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "compareDuration", request.getCompareDuration()); + serializer.putQueryParam(fields, "fieldMask", request.getFieldMask()); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "readTime", request.getReadTime()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAssetsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listFindingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/ListFindings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*/sources/*}/findings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*/sources/*}/findings", + "/v1/{parent=projects/*/sources/*}/findings") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "compareDuration", request.getCompareDuration()); + serializer.putQueryParam(fields, "fieldMask", request.getFieldMask()); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "readTime", request.getReadTime()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListFindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listMuteConfigsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/ListMuteConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*}/muteConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*}/muteConfigs", + "/v1/{parent=projects/*}/muteConfigs") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListMuteConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListNotificationConfigsRequest, ListNotificationConfigsResponse> + listNotificationConfigsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/ListNotificationConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*}/notificationConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListNotificationConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listSourcesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/ListSources") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*}/sources", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*}/sources", "/v1/{parent=projects/*}/sources") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSourcesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + runAssetDiscoveryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/RunAssetDiscovery") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*}/assets:runDiscovery", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (RunAssetDiscoveryRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + setFindingStateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/SetFindingState") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/sources/*/findings/*}:setState", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/sources/*/findings/*}:setState", + "/v1/{name=projects/*/sources/*/findings/*}:setState") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Finding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor setMuteMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/SetMute") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/sources/*/findings/*}:setMute", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/sources/*/findings/*}:setMute", + "/v1/{name=projects/*/sources/*/findings/*}:setMute") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Finding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=organizations/*/sources/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=organizations/*/sources/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateExternalSystemMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/UpdateExternalSystem") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{externalSystem.name=organizations/*/sources/*/findings/*/externalSystems/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "externalSystem.name", + request.getExternalSystem().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{externalSystem.name=folders/*/sources/*/findings/*/externalSystems/*}", + "/v1/{externalSystem.name=projects/*/sources/*/findings/*/externalSystems/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("externalSystem", request.getExternalSystem())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ExternalSystem.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateFindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/UpdateFinding") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{finding.name=organizations/*/sources/*/findings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "finding.name", request.getFinding().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{finding.name=folders/*/sources/*/findings/*}", + "/v1/{finding.name=projects/*/sources/*/findings/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("finding", request.getFinding())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Finding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateMuteConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/UpdateMuteConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{muteConfig.name=organizations/*/muteConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "muteConfig.name", request.getMuteConfig().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{muteConfig.name=folders/*/muteConfigs/*}", + "/v1/{muteConfig.name=projects/*/muteConfigs/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("muteConfig", request.getMuteConfig())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(MuteConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateNotificationConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/UpdateNotificationConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{notificationConfig.name=organizations/*/notificationConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "notificationConfig.name", + request.getNotificationConfig().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("notificationConfig", request.getNotificationConfig())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(NotificationConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateOrganizationSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/UpdateOrganizationSettings") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{organizationSettings.name=organizations/*/organizationSettings}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "organizationSettings.name", + request.getOrganizationSettings().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "organizationSettings", request.getOrganizationSettings())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(OrganizationSettings.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateSourceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/UpdateSource") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{source.name=organizations/*/sources/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "source.name", request.getSource().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("source", request.getSource())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Source.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateSecurityMarksMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/UpdateSecurityMarks") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{securityMarks.name=organizations/*/assets/*/securityMarks}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "securityMarks.name", request.getSecurityMarks().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{securityMarks.name=folders/*/assets/*/securityMarks}", + "/v1/{securityMarks.name=projects/*/assets/*/securityMarks}", + "/v1/{securityMarks.name=organizations/*/sources/*/findings/*/securityMarks}", + "/v1/{securityMarks.name=folders/*/sources/*/findings/*/securityMarks}", + "/v1/{securityMarks.name=projects/*/sources/*/findings/*/securityMarks}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "startTime", request.getStartTime()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("securityMarks", request.getSecurityMarks())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SecurityMarks.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createBigQueryExportMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/CreateBigQueryExport") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*}/bigQueryExports", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*}/bigQueryExports", + "/v1/{parent=projects/*}/bigQueryExports") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "bigQueryExportId", request.getBigQueryExportId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("bigQueryExport", request.getBigQueryExport())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BigQueryExport.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteBigQueryExportMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/DeleteBigQueryExport") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=organizations/*/bigQueryExports/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/bigQueryExports/*}", + "/v1/{name=projects/*/bigQueryExports/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateBigQueryExportMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/UpdateBigQueryExport") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{bigQueryExport.name=organizations/*/bigQueryExports/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "bigQueryExport.name", + request.getBigQueryExport().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{bigQueryExport.name=folders/*/bigQueryExports/*}", + "/v1/{bigQueryExport.name=projects/*/bigQueryExports/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("bigQueryExport", request.getBigQueryExport())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BigQueryExport.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listBigQueryExportsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/ListBigQueryExports") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=organizations/*}/bigQueryExports", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*}/bigQueryExports", + "/v1/{parent=projects/*}/bigQueryExports") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListBigQueryExportsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable bulkMuteFindingsCallable; + private final OperationCallable + bulkMuteFindingsOperationCallable; + private final UnaryCallable createSourceCallable; + private final UnaryCallable createFindingCallable; + private final UnaryCallable createMuteConfigCallable; + private final UnaryCallable + createNotificationConfigCallable; + private final UnaryCallable deleteMuteConfigCallable; + private final UnaryCallable + deleteNotificationConfigCallable; + private final UnaryCallable getBigQueryExportCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable getMuteConfigCallable; + private final UnaryCallable + getNotificationConfigCallable; + private final UnaryCallable + getOrganizationSettingsCallable; + private final UnaryCallable getSourceCallable; + private final UnaryCallable groupAssetsCallable; + private final UnaryCallable + groupAssetsPagedCallable; + private final UnaryCallable groupFindingsCallable; + private final UnaryCallable + groupFindingsPagedCallable; + private final UnaryCallable listAssetsCallable; + private final UnaryCallable listAssetsPagedCallable; + private final UnaryCallable listFindingsCallable; + private final UnaryCallable + listFindingsPagedCallable; + private final UnaryCallable + listMuteConfigsCallable; + private final UnaryCallable + listMuteConfigsPagedCallable; + private final UnaryCallable + listNotificationConfigsCallable; + private final UnaryCallable + listNotificationConfigsPagedCallable; + private final UnaryCallable listSourcesCallable; + private final UnaryCallable + listSourcesPagedCallable; + private final UnaryCallable runAssetDiscoveryCallable; + private final OperationCallable + runAssetDiscoveryOperationCallable; + private final UnaryCallable setFindingStateCallable; + private final UnaryCallable setMuteCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + private final UnaryCallable + updateExternalSystemCallable; + private final UnaryCallable updateFindingCallable; + private final UnaryCallable updateMuteConfigCallable; + private final UnaryCallable + updateNotificationConfigCallable; + private final UnaryCallable + updateOrganizationSettingsCallable; + private final UnaryCallable updateSourceCallable; + private final UnaryCallable + updateSecurityMarksCallable; + private final UnaryCallable + createBigQueryExportCallable; + private final UnaryCallable deleteBigQueryExportCallable; + private final UnaryCallable + updateBigQueryExportCallable; + private final UnaryCallable + listBigQueryExportsCallable; + private final UnaryCallable + listBigQueryExportsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSecurityCenterStub create(SecurityCenterStubSettings settings) + throws IOException { + return new HttpJsonSecurityCenterStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSecurityCenterStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSecurityCenterStub( + SecurityCenterStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSecurityCenterStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSecurityCenterStub( + SecurityCenterStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonSecurityCenterStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSecurityCenterStub( + SecurityCenterStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonSecurityCenterCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSecurityCenterStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSecurityCenterStub( + SecurityCenterStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings bulkMuteFindingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(bulkMuteFindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createSourceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSourceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createFindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createFindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createMuteConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createMuteConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createNotificationConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createNotificationConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteMuteConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteMuteConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteNotificationConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteNotificationConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getBigQueryExportTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getBigQueryExportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getMuteConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getMuteConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getNotificationConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getNotificationConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getOrganizationSettingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getOrganizationSettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getSourceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSourceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings groupAssetsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(groupAssetsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + groupFindingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(groupFindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listAssetsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAssetsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listFindingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listFindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listMuteConfigsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listMuteConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listNotificationConfigsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listNotificationConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listSourcesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSourcesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings runAssetDiscoveryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(runAssetDiscoveryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setFindingStateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setFindingStateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setMuteTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setMuteMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateExternalSystemTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateExternalSystemMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateFindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateFindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateMuteConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateMuteConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateNotificationConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateNotificationConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateOrganizationSettingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(updateOrganizationSettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateSourceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSourceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateSecurityMarksTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSecurityMarksMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createBigQueryExportTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createBigQueryExportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteBigQueryExportTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteBigQueryExportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateBigQueryExportTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateBigQueryExportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listBigQueryExportsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listBigQueryExportsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.bulkMuteFindingsCallable = + callableFactory.createUnaryCallable( + bulkMuteFindingsTransportSettings, settings.bulkMuteFindingsSettings(), clientContext); + this.bulkMuteFindingsOperationCallable = + callableFactory.createOperationCallable( + bulkMuteFindingsTransportSettings, + settings.bulkMuteFindingsOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.createSourceCallable = + callableFactory.createUnaryCallable( + createSourceTransportSettings, settings.createSourceSettings(), clientContext); + this.createFindingCallable = + callableFactory.createUnaryCallable( + createFindingTransportSettings, settings.createFindingSettings(), clientContext); + this.createMuteConfigCallable = + callableFactory.createUnaryCallable( + createMuteConfigTransportSettings, settings.createMuteConfigSettings(), clientContext); + this.createNotificationConfigCallable = + callableFactory.createUnaryCallable( + createNotificationConfigTransportSettings, + settings.createNotificationConfigSettings(), + clientContext); + this.deleteMuteConfigCallable = + callableFactory.createUnaryCallable( + deleteMuteConfigTransportSettings, settings.deleteMuteConfigSettings(), clientContext); + this.deleteNotificationConfigCallable = + callableFactory.createUnaryCallable( + deleteNotificationConfigTransportSettings, + settings.deleteNotificationConfigSettings(), + clientContext); + this.getBigQueryExportCallable = + callableFactory.createUnaryCallable( + getBigQueryExportTransportSettings, + settings.getBigQueryExportSettings(), + clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.getMuteConfigCallable = + callableFactory.createUnaryCallable( + getMuteConfigTransportSettings, settings.getMuteConfigSettings(), clientContext); + this.getNotificationConfigCallable = + callableFactory.createUnaryCallable( + getNotificationConfigTransportSettings, + settings.getNotificationConfigSettings(), + clientContext); + this.getOrganizationSettingsCallable = + callableFactory.createUnaryCallable( + getOrganizationSettingsTransportSettings, + settings.getOrganizationSettingsSettings(), + clientContext); + this.getSourceCallable = + callableFactory.createUnaryCallable( + getSourceTransportSettings, settings.getSourceSettings(), clientContext); + this.groupAssetsCallable = + callableFactory.createUnaryCallable( + groupAssetsTransportSettings, settings.groupAssetsSettings(), clientContext); + this.groupAssetsPagedCallable = + callableFactory.createPagedCallable( + groupAssetsTransportSettings, settings.groupAssetsSettings(), clientContext); + this.groupFindingsCallable = + callableFactory.createUnaryCallable( + groupFindingsTransportSettings, settings.groupFindingsSettings(), clientContext); + this.groupFindingsPagedCallable = + callableFactory.createPagedCallable( + groupFindingsTransportSettings, settings.groupFindingsSettings(), clientContext); + this.listAssetsCallable = + callableFactory.createUnaryCallable( + listAssetsTransportSettings, settings.listAssetsSettings(), clientContext); + this.listAssetsPagedCallable = + callableFactory.createPagedCallable( + listAssetsTransportSettings, settings.listAssetsSettings(), clientContext); + this.listFindingsCallable = + callableFactory.createUnaryCallable( + listFindingsTransportSettings, settings.listFindingsSettings(), clientContext); + this.listFindingsPagedCallable = + callableFactory.createPagedCallable( + listFindingsTransportSettings, settings.listFindingsSettings(), clientContext); + this.listMuteConfigsCallable = + callableFactory.createUnaryCallable( + listMuteConfigsTransportSettings, settings.listMuteConfigsSettings(), clientContext); + this.listMuteConfigsPagedCallable = + callableFactory.createPagedCallable( + listMuteConfigsTransportSettings, settings.listMuteConfigsSettings(), clientContext); + this.listNotificationConfigsCallable = + callableFactory.createUnaryCallable( + listNotificationConfigsTransportSettings, + settings.listNotificationConfigsSettings(), + clientContext); + this.listNotificationConfigsPagedCallable = + callableFactory.createPagedCallable( + listNotificationConfigsTransportSettings, + settings.listNotificationConfigsSettings(), + clientContext); + this.listSourcesCallable = + callableFactory.createUnaryCallable( + listSourcesTransportSettings, settings.listSourcesSettings(), clientContext); + this.listSourcesPagedCallable = + callableFactory.createPagedCallable( + listSourcesTransportSettings, settings.listSourcesSettings(), clientContext); + this.runAssetDiscoveryCallable = + callableFactory.createUnaryCallable( + runAssetDiscoveryTransportSettings, + settings.runAssetDiscoverySettings(), + clientContext); + this.runAssetDiscoveryOperationCallable = + callableFactory.createOperationCallable( + runAssetDiscoveryTransportSettings, + settings.runAssetDiscoveryOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.setFindingStateCallable = + callableFactory.createUnaryCallable( + setFindingStateTransportSettings, settings.setFindingStateSettings(), clientContext); + this.setMuteCallable = + callableFactory.createUnaryCallable( + setMuteTransportSettings, settings.setMuteSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + this.updateExternalSystemCallable = + callableFactory.createUnaryCallable( + updateExternalSystemTransportSettings, + settings.updateExternalSystemSettings(), + clientContext); + this.updateFindingCallable = + callableFactory.createUnaryCallable( + updateFindingTransportSettings, settings.updateFindingSettings(), clientContext); + this.updateMuteConfigCallable = + callableFactory.createUnaryCallable( + updateMuteConfigTransportSettings, settings.updateMuteConfigSettings(), clientContext); + this.updateNotificationConfigCallable = + callableFactory.createUnaryCallable( + updateNotificationConfigTransportSettings, + settings.updateNotificationConfigSettings(), + clientContext); + this.updateOrganizationSettingsCallable = + callableFactory.createUnaryCallable( + updateOrganizationSettingsTransportSettings, + settings.updateOrganizationSettingsSettings(), + clientContext); + this.updateSourceCallable = + callableFactory.createUnaryCallable( + updateSourceTransportSettings, settings.updateSourceSettings(), clientContext); + this.updateSecurityMarksCallable = + callableFactory.createUnaryCallable( + updateSecurityMarksTransportSettings, + settings.updateSecurityMarksSettings(), + clientContext); + this.createBigQueryExportCallable = + callableFactory.createUnaryCallable( + createBigQueryExportTransportSettings, + settings.createBigQueryExportSettings(), + clientContext); + this.deleteBigQueryExportCallable = + callableFactory.createUnaryCallable( + deleteBigQueryExportTransportSettings, + settings.deleteBigQueryExportSettings(), + clientContext); + this.updateBigQueryExportCallable = + callableFactory.createUnaryCallable( + updateBigQueryExportTransportSettings, + settings.updateBigQueryExportSettings(), + clientContext); + this.listBigQueryExportsCallable = + callableFactory.createUnaryCallable( + listBigQueryExportsTransportSettings, + settings.listBigQueryExportsSettings(), + clientContext); + this.listBigQueryExportsPagedCallable = + callableFactory.createPagedCallable( + listBigQueryExportsTransportSettings, + settings.listBigQueryExportsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(bulkMuteFindingsMethodDescriptor); + methodDescriptors.add(createSourceMethodDescriptor); + methodDescriptors.add(createFindingMethodDescriptor); + methodDescriptors.add(createMuteConfigMethodDescriptor); + methodDescriptors.add(createNotificationConfigMethodDescriptor); + methodDescriptors.add(deleteMuteConfigMethodDescriptor); + methodDescriptors.add(deleteNotificationConfigMethodDescriptor); + methodDescriptors.add(getBigQueryExportMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(getMuteConfigMethodDescriptor); + methodDescriptors.add(getNotificationConfigMethodDescriptor); + methodDescriptors.add(getOrganizationSettingsMethodDescriptor); + methodDescriptors.add(getSourceMethodDescriptor); + methodDescriptors.add(groupAssetsMethodDescriptor); + methodDescriptors.add(groupFindingsMethodDescriptor); + methodDescriptors.add(listAssetsMethodDescriptor); + methodDescriptors.add(listFindingsMethodDescriptor); + methodDescriptors.add(listMuteConfigsMethodDescriptor); + methodDescriptors.add(listNotificationConfigsMethodDescriptor); + methodDescriptors.add(listSourcesMethodDescriptor); + methodDescriptors.add(runAssetDiscoveryMethodDescriptor); + methodDescriptors.add(setFindingStateMethodDescriptor); + methodDescriptors.add(setMuteMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + methodDescriptors.add(updateExternalSystemMethodDescriptor); + methodDescriptors.add(updateFindingMethodDescriptor); + methodDescriptors.add(updateMuteConfigMethodDescriptor); + methodDescriptors.add(updateNotificationConfigMethodDescriptor); + methodDescriptors.add(updateOrganizationSettingsMethodDescriptor); + methodDescriptors.add(updateSourceMethodDescriptor); + methodDescriptors.add(updateSecurityMarksMethodDescriptor); + methodDescriptors.add(createBigQueryExportMethodDescriptor); + methodDescriptors.add(deleteBigQueryExportMethodDescriptor); + methodDescriptors.add(updateBigQueryExportMethodDescriptor); + methodDescriptors.add(listBigQueryExportsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable bulkMuteFindingsCallable() { + return bulkMuteFindingsCallable; + } + + @Override + public OperationCallable + bulkMuteFindingsOperationCallable() { + return bulkMuteFindingsOperationCallable; + } + + @Override + public UnaryCallable createSourceCallable() { + return createSourceCallable; + } + + @Override + public UnaryCallable createFindingCallable() { + return createFindingCallable; + } + + @Override + public UnaryCallable createMuteConfigCallable() { + return createMuteConfigCallable; + } + + @Override + public UnaryCallable + createNotificationConfigCallable() { + return createNotificationConfigCallable; + } + + @Override + public UnaryCallable deleteMuteConfigCallable() { + return deleteMuteConfigCallable; + } + + @Override + public UnaryCallable deleteNotificationConfigCallable() { + return deleteNotificationConfigCallable; + } + + @Override + public UnaryCallable getBigQueryExportCallable() { + return getBigQueryExportCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable getMuteConfigCallable() { + return getMuteConfigCallable; + } + + @Override + public UnaryCallable + getNotificationConfigCallable() { + return getNotificationConfigCallable; + } + + @Override + public UnaryCallable + getOrganizationSettingsCallable() { + return getOrganizationSettingsCallable; + } + + @Override + public UnaryCallable getSourceCallable() { + return getSourceCallable; + } + + @Override + public UnaryCallable groupAssetsCallable() { + return groupAssetsCallable; + } + + @Override + public UnaryCallable groupAssetsPagedCallable() { + return groupAssetsPagedCallable; + } + + @Override + public UnaryCallable groupFindingsCallable() { + return groupFindingsCallable; + } + + @Override + public UnaryCallable + groupFindingsPagedCallable() { + return groupFindingsPagedCallable; + } + + @Override + public UnaryCallable listAssetsCallable() { + return listAssetsCallable; + } + + @Override + public UnaryCallable listAssetsPagedCallable() { + return listAssetsPagedCallable; + } + + @Override + public UnaryCallable listFindingsCallable() { + return listFindingsCallable; + } + + @Override + public UnaryCallable listFindingsPagedCallable() { + return listFindingsPagedCallable; + } + + @Override + public UnaryCallable listMuteConfigsCallable() { + return listMuteConfigsCallable; + } + + @Override + public UnaryCallable + listMuteConfigsPagedCallable() { + return listMuteConfigsPagedCallable; + } + + @Override + public UnaryCallable + listNotificationConfigsCallable() { + return listNotificationConfigsCallable; + } + + @Override + public UnaryCallable + listNotificationConfigsPagedCallable() { + return listNotificationConfigsPagedCallable; + } + + @Override + public UnaryCallable listSourcesCallable() { + return listSourcesCallable; + } + + @Override + public UnaryCallable listSourcesPagedCallable() { + return listSourcesPagedCallable; + } + + @Override + public UnaryCallable runAssetDiscoveryCallable() { + return runAssetDiscoveryCallable; + } + + @Override + public OperationCallable + runAssetDiscoveryOperationCallable() { + return runAssetDiscoveryOperationCallable; + } + + @Override + public UnaryCallable setFindingStateCallable() { + return setFindingStateCallable; + } + + @Override + public UnaryCallable setMuteCallable() { + return setMuteCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public UnaryCallable updateExternalSystemCallable() { + return updateExternalSystemCallable; + } + + @Override + public UnaryCallable updateFindingCallable() { + return updateFindingCallable; + } + + @Override + public UnaryCallable updateMuteConfigCallable() { + return updateMuteConfigCallable; + } + + @Override + public UnaryCallable + updateNotificationConfigCallable() { + return updateNotificationConfigCallable; + } + + @Override + public UnaryCallable + updateOrganizationSettingsCallable() { + return updateOrganizationSettingsCallable; + } + + @Override + public UnaryCallable updateSourceCallable() { + return updateSourceCallable; + } + + @Override + public UnaryCallable updateSecurityMarksCallable() { + return updateSecurityMarksCallable; + } + + @Override + public UnaryCallable createBigQueryExportCallable() { + return createBigQueryExportCallable; + } + + @Override + public UnaryCallable deleteBigQueryExportCallable() { + return deleteBigQueryExportCallable; + } + + @Override + public UnaryCallable updateBigQueryExportCallable() { + return updateBigQueryExportCallable; + } + + @Override + public UnaryCallable + listBigQueryExportsCallable() { + return listBigQueryExportsCallable; + } + + @Override + public UnaryCallable + listBigQueryExportsPagedCallable() { + return listBigQueryExportsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java b/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java similarity index 99% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java rename to owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java index 52740ed22..4207bbc3a 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java +++ b/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java @@ -99,7 +99,11 @@ public abstract class SecurityCenterStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public OperationCallable diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java b/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java similarity index 96% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java rename to owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java index 3d7fb0322..a8b423162 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java @@ -35,6 +35,9 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; @@ -126,10 +129,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (securitycenter.googleapis.com) and default port (443) are + *
  • The default service address (securitycenter.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -194,8 +197,7 @@ public class SecurityCenterStubSettings extends StubSettings listMuteConfigsSettings; private final PagedCallSettings< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings; private final PagedCallSettings @@ -343,8 +345,7 @@ public Iterable extractResources( ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult> LIST_FINDINGS_PAGE_STR_DESC = new PagedListDescriptor< - ListFindingsRequest, - ListFindingsResponse, + ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult>() { @Override public String emptyToken() { @@ -423,8 +424,7 @@ public Iterable extractResources(ListMuteConfigsResponse payload) { ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig> LIST_NOTIFICATION_CONFIGS_PAGE_STR_DESC = new PagedListDescriptor< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig>() { @Override public String emptyToken() { @@ -605,8 +605,7 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListFindingsRequest, - ListFindingsResponse, + ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult> pageContext = PageContext.create(callable, LIST_FINDINGS_PAGE_STR_DESC, request, context); @@ -632,13 +631,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> LIST_NOTIFICATION_CONFIGS_PAGE_STR_FACT = new PagedListResponseFactory< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -648,8 +645,7 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig> pageContext = PageContext.create( @@ -679,8 +675,7 @@ public ApiFuture getFuturePagedResponse( ListBigQueryExportsRequest, ListBigQueryExportsResponse, ListBigQueryExportsPagedResponse> LIST_BIG_QUERY_EXPORTS_PAGE_STR_FACT = new PagedListResponseFactory< - ListBigQueryExportsRequest, - ListBigQueryExportsResponse, + ListBigQueryExportsRequest, ListBigQueryExportsResponse, ListBigQueryExportsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -804,8 +799,7 @@ public UnaryCallSettings getSourceSettings() { /** Returns the object with the settings used for calls to listNotificationConfigs. */ public PagedCallSettings< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings() { return listNotificationConfigsSettings; @@ -918,6 +912,11 @@ public SecurityCenterStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcSecurityCenterStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSecurityCenterStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -950,18 +949,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(SecurityCenterStubSettings.class)) @@ -969,11 +975,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SecurityCenterStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SecurityCenterStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -1072,8 +1097,7 @@ public static class Builder extends StubSettings.Builder listMuteConfigsSettings; private final PagedCallSettings.Builder< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings; private final PagedCallSettings.Builder< @@ -1109,8 +1133,7 @@ public static class Builder extends StubSettings.Builder updateBigQueryExportSettings; private final PagedCallSettings.Builder< - ListBigQueryExportsRequest, - ListBigQueryExportsResponse, + ListBigQueryExportsRequest, ListBigQueryExportsResponse, ListBigQueryExportsPagedResponse> listBigQueryExportsSettings; private static final ImmutableMap> @@ -1369,6 +1392,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .bulkMuteFindingsSettings() @@ -1733,8 +1769,7 @@ public UnaryCallSettings.Builder getSourceSettings() { /** Returns the builder for the settings used for calls to listNotificationConfigs. */ public PagedCallSettings.Builder< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings() { return listNotificationConfigsSettings; @@ -1842,8 +1877,7 @@ public UnaryCallSettings.Builder updateSourceSettin /** Returns the builder for the settings used for calls to listBigQueryExports. */ public PagedCallSettings.Builder< - ListBigQueryExportsRequest, - ListBigQueryExportsResponse, + ListBigQueryExportsRequest, ListBigQueryExportsResponse, ListBigQueryExportsPagedResponse> listBigQueryExportsSettings() { return listBigQueryExportsSettings; diff --git a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenter.java b/owl-bot-staging/v1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenter.java similarity index 100% rename from google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenter.java rename to owl-bot-staging/v1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenter.java diff --git a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenterImpl.java b/owl-bot-staging/v1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenterImpl.java similarity index 100% rename from google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenterImpl.java rename to owl-bot-staging/v1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenterImpl.java diff --git a/owl-bot-staging/v1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java new file mode 100644 index 000000000..3195ac5e1 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java @@ -0,0 +1,4395 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1; + +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupAssetsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListAssetsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListBigQueryExportsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListMuteConfigsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListNotificationConfigsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSourcesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.securitycenter.v1.stub.HttpJsonSecurityCenterStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.Policy; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Duration; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.protobuf.Value; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SecurityCenterClientHttpJsonTest { + private static MockHttpService mockService; + private static SecurityCenterClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSecurityCenterStub.getMethodDescriptors(), + SecurityCenterSettings.getDefaultEndpoint()); + SecurityCenterSettings settings = + SecurityCenterSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SecurityCenterSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SecurityCenterClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void bulkMuteFindingsTest() throws Exception { + BulkMuteFindingsResponse expectedResponse = BulkMuteFindingsResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("bulkMuteFindingsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ResourceName parent = FolderName.of("[FOLDER]"); + + BulkMuteFindingsResponse actualResponse = client.bulkMuteFindingsAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void bulkMuteFindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName parent = FolderName.of("[FOLDER]"); + client.bulkMuteFindingsAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void bulkMuteFindingsTest2() throws Exception { + BulkMuteFindingsResponse expectedResponse = BulkMuteFindingsResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("bulkMuteFindingsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "organizations/organization-8287"; + + BulkMuteFindingsResponse actualResponse = client.bulkMuteFindingsAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void bulkMuteFindingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + client.bulkMuteFindingsAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createSourceTest() throws Exception { + Source expectedResponse = + Source.newBuilder() + .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + Source source = Source.newBuilder().build(); + + Source actualResponse = client.createSource(parent, source); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSourceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + Source source = Source.newBuilder().build(); + client.createSource(parent, source); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSourceTest2() throws Exception { + Source expectedResponse = + Source.newBuilder() + .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8287"; + Source source = Source.newBuilder().build(); + + Source actualResponse = client.createSource(parent, source); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSourceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + Source source = Source.newBuilder().build(); + client.createSource(parent, source); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFindingTest() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .setIndicator(Indicator.newBuilder().build()) + .setVulnerability(Vulnerability.newBuilder().build()) + .setMuteUpdateTime(Timestamp.newBuilder().build()) + .putAllExternalSystems(new HashMap()) + .setMitreAttack(MitreAttack.newBuilder().build()) + .setAccess(Access.newBuilder().build()) + .addAllConnections(new ArrayList()) + .setMuteInitiator("muteInitiator1395645462") + .addAllProcesses(new ArrayList()) + .addAllCompliances(new ArrayList()) + .setDescription("description-1724546052") + .setExfiltration(Exfiltration.newBuilder().build()) + .addAllIamBindings(new ArrayList()) + .setNextSteps("nextSteps1206138868") + .build(); + mockService.addResponse(expectedResponse); + + SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + String findingId = "findingId439150212"; + Finding finding = Finding.newBuilder().build(); + + Finding actualResponse = client.createFinding(parent, findingId, finding); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createFindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + String findingId = "findingId439150212"; + Finding finding = Finding.newBuilder().build(); + client.createFinding(parent, findingId, finding); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFindingTest2() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .setIndicator(Indicator.newBuilder().build()) + .setVulnerability(Vulnerability.newBuilder().build()) + .setMuteUpdateTime(Timestamp.newBuilder().build()) + .putAllExternalSystems(new HashMap()) + .setMitreAttack(MitreAttack.newBuilder().build()) + .setAccess(Access.newBuilder().build()) + .addAllConnections(new ArrayList()) + .setMuteInitiator("muteInitiator1395645462") + .addAllProcesses(new ArrayList()) + .addAllCompliances(new ArrayList()) + .setDescription("description-1724546052") + .setExfiltration(Exfiltration.newBuilder().build()) + .addAllIamBindings(new ArrayList()) + .setNextSteps("nextSteps1206138868") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8741/sources/source-8741"; + String findingId = "findingId439150212"; + Finding finding = Finding.newBuilder().build(); + + Finding actualResponse = client.createFinding(parent, findingId, finding); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createFindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8741/sources/source-8741"; + String findingId = "findingId439150212"; + Finding finding = Finding.newBuilder().build(); + client.createFinding(parent, findingId, finding); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMuteConfigTest() throws Exception { + MuteConfig expectedResponse = + MuteConfig.newBuilder() + .setName( + MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .build(); + mockService.addResponse(expectedResponse); + + FolderName parent = FolderName.of("[FOLDER]"); + MuteConfig muteConfig = MuteConfig.newBuilder().build(); + + MuteConfig actualResponse = client.createMuteConfig(parent, muteConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createMuteConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName parent = FolderName.of("[FOLDER]"); + MuteConfig muteConfig = MuteConfig.newBuilder().build(); + client.createMuteConfig(parent, muteConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMuteConfigTest2() throws Exception { + MuteConfig expectedResponse = + MuteConfig.newBuilder() + .setName( + MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + MuteConfig muteConfig = MuteConfig.newBuilder().build(); + + MuteConfig actualResponse = client.createMuteConfig(parent, muteConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createMuteConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + MuteConfig muteConfig = MuteConfig.newBuilder().build(); + client.createMuteConfig(parent, muteConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMuteConfigTest3() throws Exception { + MuteConfig expectedResponse = + MuteConfig.newBuilder() + .setName( + MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + MuteConfig muteConfig = MuteConfig.newBuilder().build(); + + MuteConfig actualResponse = client.createMuteConfig(parent, muteConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createMuteConfigExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + MuteConfig muteConfig = MuteConfig.newBuilder().build(); + client.createMuteConfig(parent, muteConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMuteConfigTest4() throws Exception { + MuteConfig expectedResponse = + MuteConfig.newBuilder() + .setName( + MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8287"; + MuteConfig muteConfig = MuteConfig.newBuilder().build(); + + MuteConfig actualResponse = client.createMuteConfig(parent, muteConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createMuteConfigExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + MuteConfig muteConfig = MuteConfig.newBuilder().build(); + client.createMuteConfig(parent, muteConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMuteConfigTest5() throws Exception { + MuteConfig expectedResponse = + MuteConfig.newBuilder() + .setName( + MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .build(); + mockService.addResponse(expectedResponse); + + FolderName parent = FolderName.of("[FOLDER]"); + MuteConfig muteConfig = MuteConfig.newBuilder().build(); + String muteConfigId = "muteConfigId1689669942"; + + MuteConfig actualResponse = client.createMuteConfig(parent, muteConfig, muteConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createMuteConfigExceptionTest5() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName parent = FolderName.of("[FOLDER]"); + MuteConfig muteConfig = MuteConfig.newBuilder().build(); + String muteConfigId = "muteConfigId1689669942"; + client.createMuteConfig(parent, muteConfig, muteConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMuteConfigTest6() throws Exception { + MuteConfig expectedResponse = + MuteConfig.newBuilder() + .setName( + MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + MuteConfig muteConfig = MuteConfig.newBuilder().build(); + String muteConfigId = "muteConfigId1689669942"; + + MuteConfig actualResponse = client.createMuteConfig(parent, muteConfig, muteConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createMuteConfigExceptionTest6() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + MuteConfig muteConfig = MuteConfig.newBuilder().build(); + String muteConfigId = "muteConfigId1689669942"; + client.createMuteConfig(parent, muteConfig, muteConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMuteConfigTest7() throws Exception { + MuteConfig expectedResponse = + MuteConfig.newBuilder() + .setName( + MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + MuteConfig muteConfig = MuteConfig.newBuilder().build(); + String muteConfigId = "muteConfigId1689669942"; + + MuteConfig actualResponse = client.createMuteConfig(parent, muteConfig, muteConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createMuteConfigExceptionTest7() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + MuteConfig muteConfig = MuteConfig.newBuilder().build(); + String muteConfigId = "muteConfigId1689669942"; + client.createMuteConfig(parent, muteConfig, muteConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMuteConfigTest8() throws Exception { + MuteConfig expectedResponse = + MuteConfig.newBuilder() + .setName( + MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8287"; + MuteConfig muteConfig = MuteConfig.newBuilder().build(); + String muteConfigId = "muteConfigId1689669942"; + + MuteConfig actualResponse = client.createMuteConfig(parent, muteConfig, muteConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createMuteConfigExceptionTest8() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + MuteConfig muteConfig = MuteConfig.newBuilder().build(); + String muteConfigId = "muteConfigId1689669942"; + client.createMuteConfig(parent, muteConfig, muteConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createNotificationConfigTest() throws Exception { + NotificationConfig expectedResponse = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + NotificationConfig notificationConfig = NotificationConfig.newBuilder().build(); + + NotificationConfig actualResponse = client.createNotificationConfig(parent, notificationConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createNotificationConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + NotificationConfig notificationConfig = NotificationConfig.newBuilder().build(); + client.createNotificationConfig(parent, notificationConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createNotificationConfigTest2() throws Exception { + NotificationConfig expectedResponse = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8287"; + NotificationConfig notificationConfig = NotificationConfig.newBuilder().build(); + + NotificationConfig actualResponse = client.createNotificationConfig(parent, notificationConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createNotificationConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + NotificationConfig notificationConfig = NotificationConfig.newBuilder().build(); + client.createNotificationConfig(parent, notificationConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createNotificationConfigTest3() throws Exception { + NotificationConfig expectedResponse = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + String configId = "configId-580140035"; + NotificationConfig notificationConfig = NotificationConfig.newBuilder().build(); + + NotificationConfig actualResponse = + client.createNotificationConfig(parent, configId, notificationConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createNotificationConfigExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + String configId = "configId-580140035"; + NotificationConfig notificationConfig = NotificationConfig.newBuilder().build(); + client.createNotificationConfig(parent, configId, notificationConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createNotificationConfigTest4() throws Exception { + NotificationConfig expectedResponse = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8287"; + String configId = "configId-580140035"; + NotificationConfig notificationConfig = NotificationConfig.newBuilder().build(); + + NotificationConfig actualResponse = + client.createNotificationConfig(parent, configId, notificationConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createNotificationConfigExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + String configId = "configId-580140035"; + NotificationConfig notificationConfig = NotificationConfig.newBuilder().build(); + client.createNotificationConfig(parent, configId, notificationConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteMuteConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + MuteConfigName name = + MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]"); + + client.deleteMuteConfig(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteMuteConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MuteConfigName name = + MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]"); + client.deleteMuteConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteMuteConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-3180/muteConfigs/muteConfig-3180"; + + client.deleteMuteConfig(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteMuteConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "organizations/organization-3180/muteConfigs/muteConfig-3180"; + client.deleteMuteConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteNotificationConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + NotificationConfigName name = + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"); + + client.deleteNotificationConfig(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteNotificationConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NotificationConfigName name = + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"); + client.deleteNotificationConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteNotificationConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-7374/notificationConfigs/notificationConfig-7374"; + + client.deleteNotificationConfig(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteNotificationConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "organizations/organization-7374/notificationConfigs/notificationConfig-7374"; + client.deleteNotificationConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBigQueryExportTest() throws Exception { + BigQueryExport expectedResponse = + BigQueryExport.newBuilder() + .setName( + BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]") + .toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setDataset("dataset1443214456") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .setPrincipal("principal-1812041682") + .build(); + mockService.addResponse(expectedResponse); + + BigQueryExportName name = + BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]"); + + BigQueryExport actualResponse = client.getBigQueryExport(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBigQueryExportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BigQueryExportName name = + BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]"); + client.getBigQueryExport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBigQueryExportTest2() throws Exception { + BigQueryExport expectedResponse = + BigQueryExport.newBuilder() + .setName( + BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]") + .toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setDataset("dataset1443214456") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .setPrincipal("principal-1812041682") + .build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-3683/bigQueryExports/bigQueryExport-3683"; + + BigQueryExport actualResponse = client.getBigQueryExport(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBigQueryExportExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "organizations/organization-3683/bigQueryExports/bigQueryExport-3683"; + client.getBigQueryExport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "organizations/organization-3393/sources/source-3393"; + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "organizations/organization-3393/sources/source-3393"; + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMuteConfigTest() throws Exception { + MuteConfig expectedResponse = + MuteConfig.newBuilder() + .setName( + MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .build(); + mockService.addResponse(expectedResponse); + + MuteConfigName name = + MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]"); + + MuteConfig actualResponse = client.getMuteConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getMuteConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MuteConfigName name = + MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]"); + client.getMuteConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMuteConfigTest2() throws Exception { + MuteConfig expectedResponse = + MuteConfig.newBuilder() + .setName( + MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-3180/muteConfigs/muteConfig-3180"; + + MuteConfig actualResponse = client.getMuteConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getMuteConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "organizations/organization-3180/muteConfigs/muteConfig-3180"; + client.getMuteConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNotificationConfigTest() throws Exception { + NotificationConfig expectedResponse = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + mockService.addResponse(expectedResponse); + + NotificationConfigName name = + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"); + + NotificationConfig actualResponse = client.getNotificationConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getNotificationConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NotificationConfigName name = + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"); + client.getNotificationConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNotificationConfigTest2() throws Exception { + NotificationConfig expectedResponse = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-7374/notificationConfigs/notificationConfig-7374"; + + NotificationConfig actualResponse = client.getNotificationConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getNotificationConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "organizations/organization-7374/notificationConfigs/notificationConfig-7374"; + client.getNotificationConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOrganizationSettingsTest() throws Exception { + OrganizationSettings expectedResponse = + OrganizationSettings.newBuilder() + .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString()) + .setEnableAssetDiscovery(true) + .setAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationSettingsName name = OrganizationSettingsName.of("[ORGANIZATION]"); + + OrganizationSettings actualResponse = client.getOrganizationSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getOrganizationSettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationSettingsName name = OrganizationSettingsName.of("[ORGANIZATION]"); + client.getOrganizationSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOrganizationSettingsTest2() throws Exception { + OrganizationSettings expectedResponse = + OrganizationSettings.newBuilder() + .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString()) + .setEnableAssetDiscovery(true) + .setAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-9995/organizationSettings"; + + OrganizationSettings actualResponse = client.getOrganizationSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getOrganizationSettingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "organizations/organization-9995/organizationSettings"; + client.getOrganizationSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSourceTest() throws Exception { + Source expectedResponse = + Source.newBuilder() + .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + SourceName name = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + + Source actualResponse = client.getSource(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSourceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SourceName name = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + client.getSource(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSourceTest2() throws Exception { + Source expectedResponse = + Source.newBuilder() + .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-7292/sources/source-7292"; + + Source actualResponse = client.getSource(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSourceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "organizations/organization-7292/sources/source-7292"; + client.getSource(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void groupAssetsTest() throws Exception { + GroupResult responsesElement = GroupResult.newBuilder().build(); + GroupAssetsResponse expectedResponse = + GroupAssetsResponse.newBuilder() + .setNextPageToken("") + .addAllGroupByResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + GroupAssetsRequest request = + GroupAssetsRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setFilter("filter-1274492040") + .setGroupBy("groupBy293428022") + .setCompareDuration(Duration.newBuilder().build()) + .setReadTime(Timestamp.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + + GroupAssetsPagedResponse pagedListResponse = client.groupAssets(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGroupByResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void groupAssetsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GroupAssetsRequest request = + GroupAssetsRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setFilter("filter-1274492040") + .setGroupBy("groupBy293428022") + .setCompareDuration(Duration.newBuilder().build()) + .setReadTime(Timestamp.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + client.groupAssets(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void groupFindingsTest() throws Exception { + GroupResult responsesElement = GroupResult.newBuilder().build(); + GroupFindingsResponse expectedResponse = + GroupFindingsResponse.newBuilder() + .setNextPageToken("") + .addAllGroupByResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + String groupBy = "groupBy293428022"; + + GroupFindingsPagedResponse pagedListResponse = client.groupFindings(parent, groupBy); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGroupByResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void groupFindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + String groupBy = "groupBy293428022"; + client.groupFindings(parent, groupBy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void groupFindingsTest2() throws Exception { + GroupResult responsesElement = GroupResult.newBuilder().build(); + GroupFindingsResponse expectedResponse = + GroupFindingsResponse.newBuilder() + .setNextPageToken("") + .addAllGroupByResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8741/sources/source-8741"; + String groupBy = "groupBy293428022"; + + GroupFindingsPagedResponse pagedListResponse = client.groupFindings(parent, groupBy); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGroupByResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void groupFindingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8741/sources/source-8741"; + String groupBy = "groupBy293428022"; + client.groupFindings(parent, groupBy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAssetsTest() throws Exception { + ListAssetsResponse.ListAssetsResult responsesElement = + ListAssetsResponse.ListAssetsResult.newBuilder().build(); + ListAssetsResponse expectedResponse = + ListAssetsResponse.newBuilder() + .setNextPageToken("") + .addAllListAssetsResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListAssetsRequest request = + ListAssetsRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReadTime(Timestamp.newBuilder().build()) + .setCompareDuration(Duration.newBuilder().build()) + .setFieldMask(FieldMask.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + + ListAssetsPagedResponse pagedListResponse = client.listAssets(request); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getListAssetsResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAssetsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListAssetsRequest request = + ListAssetsRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReadTime(Timestamp.newBuilder().build()) + .setCompareDuration(Duration.newBuilder().build()) + .setFieldMask(FieldMask.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + client.listAssets(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFindingsTest() throws Exception { + ListFindingsResponse.ListFindingsResult responsesElement = + ListFindingsResponse.ListFindingsResult.newBuilder().build(); + ListFindingsResponse expectedResponse = + ListFindingsResponse.newBuilder() + .setNextPageToken("") + .addAllListFindingsResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListFindingsRequest request = + ListFindingsRequest.newBuilder() + .setParent(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReadTime(Timestamp.newBuilder().build()) + .setCompareDuration(Duration.newBuilder().build()) + .setFieldMask(FieldMask.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + + ListFindingsPagedResponse pagedListResponse = client.listFindings(request); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getListFindingsResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listFindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListFindingsRequest request = + ListFindingsRequest.newBuilder() + .setParent( + SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReadTime(Timestamp.newBuilder().build()) + .setCompareDuration(Duration.newBuilder().build()) + .setFieldMask(FieldMask.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + client.listFindings(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMuteConfigsTest() throws Exception { + MuteConfig responsesElement = MuteConfig.newBuilder().build(); + ListMuteConfigsResponse expectedResponse = + ListMuteConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllMuteConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + FolderName parent = FolderName.of("[FOLDER]"); + + ListMuteConfigsPagedResponse pagedListResponse = client.listMuteConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMuteConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listMuteConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName parent = FolderName.of("[FOLDER]"); + client.listMuteConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMuteConfigsTest2() throws Exception { + MuteConfig responsesElement = MuteConfig.newBuilder().build(); + ListMuteConfigsResponse expectedResponse = + ListMuteConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllMuteConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + + ListMuteConfigsPagedResponse pagedListResponse = client.listMuteConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMuteConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listMuteConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + client.listMuteConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMuteConfigsTest3() throws Exception { + MuteConfig responsesElement = MuteConfig.newBuilder().build(); + ListMuteConfigsResponse expectedResponse = + ListMuteConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllMuteConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListMuteConfigsPagedResponse pagedListResponse = client.listMuteConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMuteConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listMuteConfigsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listMuteConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMuteConfigsTest4() throws Exception { + MuteConfig responsesElement = MuteConfig.newBuilder().build(); + ListMuteConfigsResponse expectedResponse = + ListMuteConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllMuteConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8287"; + + ListMuteConfigsPagedResponse pagedListResponse = client.listMuteConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMuteConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listMuteConfigsExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + client.listMuteConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNotificationConfigsTest() throws Exception { + NotificationConfig responsesElement = NotificationConfig.newBuilder().build(); + ListNotificationConfigsResponse expectedResponse = + ListNotificationConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllNotificationConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + + ListNotificationConfigsPagedResponse pagedListResponse = client.listNotificationConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNotificationConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listNotificationConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + client.listNotificationConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNotificationConfigsTest2() throws Exception { + NotificationConfig responsesElement = NotificationConfig.newBuilder().build(); + ListNotificationConfigsResponse expectedResponse = + ListNotificationConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllNotificationConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8287"; + + ListNotificationConfigsPagedResponse pagedListResponse = client.listNotificationConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNotificationConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listNotificationConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + client.listNotificationConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSourcesTest() throws Exception { + Source responsesElement = Source.newBuilder().build(); + ListSourcesResponse expectedResponse = + ListSourcesResponse.newBuilder() + .setNextPageToken("") + .addAllSources(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + FolderName parent = FolderName.of("[FOLDER]"); + + ListSourcesPagedResponse pagedListResponse = client.listSources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSourcesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSourcesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName parent = FolderName.of("[FOLDER]"); + client.listSources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSourcesTest2() throws Exception { + Source responsesElement = Source.newBuilder().build(); + ListSourcesResponse expectedResponse = + ListSourcesResponse.newBuilder() + .setNextPageToken("") + .addAllSources(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + + ListSourcesPagedResponse pagedListResponse = client.listSources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSourcesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSourcesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + client.listSources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSourcesTest3() throws Exception { + Source responsesElement = Source.newBuilder().build(); + ListSourcesResponse expectedResponse = + ListSourcesResponse.newBuilder() + .setNextPageToken("") + .addAllSources(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListSourcesPagedResponse pagedListResponse = client.listSources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSourcesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSourcesExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listSources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSourcesTest4() throws Exception { + Source responsesElement = Source.newBuilder().build(); + ListSourcesResponse expectedResponse = + ListSourcesResponse.newBuilder() + .setNextPageToken("") + .addAllSources(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8287"; + + ListSourcesPagedResponse pagedListResponse = client.listSources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSourcesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSourcesExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + client.listSources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void runAssetDiscoveryTest() throws Exception { + RunAssetDiscoveryResponse expectedResponse = + RunAssetDiscoveryResponse.newBuilder().setDuration(Duration.newBuilder().build()).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("runAssetDiscoveryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + + RunAssetDiscoveryResponse actualResponse = client.runAssetDiscoveryAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runAssetDiscoveryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + client.runAssetDiscoveryAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void runAssetDiscoveryTest2() throws Exception { + RunAssetDiscoveryResponse expectedResponse = + RunAssetDiscoveryResponse.newBuilder().setDuration(Duration.newBuilder().build()).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("runAssetDiscoveryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "organizations/organization-8287"; + + RunAssetDiscoveryResponse actualResponse = client.runAssetDiscoveryAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runAssetDiscoveryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + client.runAssetDiscoveryAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void setFindingStateTest() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .setIndicator(Indicator.newBuilder().build()) + .setVulnerability(Vulnerability.newBuilder().build()) + .setMuteUpdateTime(Timestamp.newBuilder().build()) + .putAllExternalSystems(new HashMap()) + .setMitreAttack(MitreAttack.newBuilder().build()) + .setAccess(Access.newBuilder().build()) + .addAllConnections(new ArrayList()) + .setMuteInitiator("muteInitiator1395645462") + .addAllProcesses(new ArrayList()) + .addAllCompliances(new ArrayList()) + .setDescription("description-1724546052") + .setExfiltration(Exfiltration.newBuilder().build()) + .addAllIamBindings(new ArrayList()) + .setNextSteps("nextSteps1206138868") + .build(); + mockService.addResponse(expectedResponse); + + FindingName name = + FindingName.ofOrganizationSourceFindingName("[ORGANIZATION]", "[SOURCE]", "[FINDING]"); + Finding.State state = Finding.State.forNumber(0); + Timestamp startTime = Timestamp.newBuilder().build(); + + Finding actualResponse = client.setFindingState(name, state, startTime); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setFindingStateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FindingName name = + FindingName.ofOrganizationSourceFindingName("[ORGANIZATION]", "[SOURCE]", "[FINDING]"); + Finding.State state = Finding.State.forNumber(0); + Timestamp startTime = Timestamp.newBuilder().build(); + client.setFindingState(name, state, startTime); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setFindingStateTest2() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .setIndicator(Indicator.newBuilder().build()) + .setVulnerability(Vulnerability.newBuilder().build()) + .setMuteUpdateTime(Timestamp.newBuilder().build()) + .putAllExternalSystems(new HashMap()) + .setMitreAttack(MitreAttack.newBuilder().build()) + .setAccess(Access.newBuilder().build()) + .addAllConnections(new ArrayList()) + .setMuteInitiator("muteInitiator1395645462") + .addAllProcesses(new ArrayList()) + .addAllCompliances(new ArrayList()) + .setDescription("description-1724546052") + .setExfiltration(Exfiltration.newBuilder().build()) + .addAllIamBindings(new ArrayList()) + .setNextSteps("nextSteps1206138868") + .build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-9392/sources/source-9392/findings/finding-9392"; + Finding.State state = Finding.State.forNumber(0); + Timestamp startTime = Timestamp.newBuilder().build(); + + Finding actualResponse = client.setFindingState(name, state, startTime); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setFindingStateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "organizations/organization-9392/sources/source-9392/findings/finding-9392"; + Finding.State state = Finding.State.forNumber(0); + Timestamp startTime = Timestamp.newBuilder().build(); + client.setFindingState(name, state, startTime); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setMuteTest() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .setIndicator(Indicator.newBuilder().build()) + .setVulnerability(Vulnerability.newBuilder().build()) + .setMuteUpdateTime(Timestamp.newBuilder().build()) + .putAllExternalSystems(new HashMap()) + .setMitreAttack(MitreAttack.newBuilder().build()) + .setAccess(Access.newBuilder().build()) + .addAllConnections(new ArrayList()) + .setMuteInitiator("muteInitiator1395645462") + .addAllProcesses(new ArrayList()) + .addAllCompliances(new ArrayList()) + .setDescription("description-1724546052") + .setExfiltration(Exfiltration.newBuilder().build()) + .addAllIamBindings(new ArrayList()) + .setNextSteps("nextSteps1206138868") + .build(); + mockService.addResponse(expectedResponse); + + FindingName name = + FindingName.ofOrganizationSourceFindingName("[ORGANIZATION]", "[SOURCE]", "[FINDING]"); + Finding.Mute mute = Finding.Mute.forNumber(0); + + Finding actualResponse = client.setMute(name, mute); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setMuteExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FindingName name = + FindingName.ofOrganizationSourceFindingName("[ORGANIZATION]", "[SOURCE]", "[FINDING]"); + Finding.Mute mute = Finding.Mute.forNumber(0); + client.setMute(name, mute); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setMuteTest2() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .setIndicator(Indicator.newBuilder().build()) + .setVulnerability(Vulnerability.newBuilder().build()) + .setMuteUpdateTime(Timestamp.newBuilder().build()) + .putAllExternalSystems(new HashMap()) + .setMitreAttack(MitreAttack.newBuilder().build()) + .setAccess(Access.newBuilder().build()) + .addAllConnections(new ArrayList()) + .setMuteInitiator("muteInitiator1395645462") + .addAllProcesses(new ArrayList()) + .addAllCompliances(new ArrayList()) + .setDescription("description-1724546052") + .setExfiltration(Exfiltration.newBuilder().build()) + .addAllIamBindings(new ArrayList()) + .setNextSteps("nextSteps1206138868") + .build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-9392/sources/source-9392/findings/finding-9392"; + Finding.Mute mute = Finding.Mute.forNumber(0); + + Finding actualResponse = client.setMute(name, mute); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setMuteExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "organizations/organization-9392/sources/source-9392/findings/finding-9392"; + Finding.Mute mute = Finding.Mute.forNumber(0); + client.setMute(name, mute); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "organizations/organization-3393/sources/source-3393"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "organizations/organization-3393/sources/source-3393"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest2() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String resource = "organizations/organization-3393/sources/source-3393"; + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "organizations/organization-3393/sources/source-3393"; + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateExternalSystemTest() throws Exception { + ExternalSystem expectedResponse = + ExternalSystem.newBuilder() + .setName("name3373707") + .addAllAssignees(new ArrayList()) + .setExternalUid("externalUid-1153085307") + .setStatus("status-892481550") + .setExternalSystemUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ExternalSystem externalSystem = + ExternalSystem.newBuilder() + .setName( + "organizations/organization-5115/sources/source-5115/findings/finding-5115/externalSystems/externalSystem-5115") + .addAllAssignees(new ArrayList()) + .setExternalUid("externalUid-1153085307") + .setStatus("status-892481550") + .setExternalSystemUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ExternalSystem actualResponse = client.updateExternalSystem(externalSystem, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateExternalSystemExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExternalSystem externalSystem = + ExternalSystem.newBuilder() + .setName( + "organizations/organization-5115/sources/source-5115/findings/finding-5115/externalSystems/externalSystem-5115") + .addAllAssignees(new ArrayList()) + .setExternalUid("externalUid-1153085307") + .setStatus("status-892481550") + .setExternalSystemUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateExternalSystem(externalSystem, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateFindingTest() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .setIndicator(Indicator.newBuilder().build()) + .setVulnerability(Vulnerability.newBuilder().build()) + .setMuteUpdateTime(Timestamp.newBuilder().build()) + .putAllExternalSystems(new HashMap()) + .setMitreAttack(MitreAttack.newBuilder().build()) + .setAccess(Access.newBuilder().build()) + .addAllConnections(new ArrayList()) + .setMuteInitiator("muteInitiator1395645462") + .addAllProcesses(new ArrayList()) + .addAllCompliances(new ArrayList()) + .setDescription("description-1724546052") + .setExfiltration(Exfiltration.newBuilder().build()) + .addAllIamBindings(new ArrayList()) + .setNextSteps("nextSteps1206138868") + .build(); + mockService.addResponse(expectedResponse); + + Finding finding = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .setIndicator(Indicator.newBuilder().build()) + .setVulnerability(Vulnerability.newBuilder().build()) + .setMuteUpdateTime(Timestamp.newBuilder().build()) + .putAllExternalSystems(new HashMap()) + .setMitreAttack(MitreAttack.newBuilder().build()) + .setAccess(Access.newBuilder().build()) + .addAllConnections(new ArrayList()) + .setMuteInitiator("muteInitiator1395645462") + .addAllProcesses(new ArrayList()) + .addAllCompliances(new ArrayList()) + .setDescription("description-1724546052") + .setExfiltration(Exfiltration.newBuilder().build()) + .addAllIamBindings(new ArrayList()) + .setNextSteps("nextSteps1206138868") + .build(); + + Finding actualResponse = client.updateFinding(finding); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateFindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Finding finding = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .setIndicator(Indicator.newBuilder().build()) + .setVulnerability(Vulnerability.newBuilder().build()) + .setMuteUpdateTime(Timestamp.newBuilder().build()) + .putAllExternalSystems(new HashMap()) + .setMitreAttack(MitreAttack.newBuilder().build()) + .setAccess(Access.newBuilder().build()) + .addAllConnections(new ArrayList()) + .setMuteInitiator("muteInitiator1395645462") + .addAllProcesses(new ArrayList()) + .addAllCompliances(new ArrayList()) + .setDescription("description-1724546052") + .setExfiltration(Exfiltration.newBuilder().build()) + .addAllIamBindings(new ArrayList()) + .setNextSteps("nextSteps1206138868") + .build(); + client.updateFinding(finding); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateMuteConfigTest() throws Exception { + MuteConfig expectedResponse = + MuteConfig.newBuilder() + .setName( + MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .build(); + mockService.addResponse(expectedResponse); + + MuteConfig muteConfig = + MuteConfig.newBuilder() + .setName( + MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + MuteConfig actualResponse = client.updateMuteConfig(muteConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateMuteConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MuteConfig muteConfig = + MuteConfig.newBuilder() + .setName( + MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMuteConfig(muteConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateNotificationConfigTest() throws Exception { + NotificationConfig expectedResponse = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + mockService.addResponse(expectedResponse); + + NotificationConfig notificationConfig = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + + NotificationConfig actualResponse = client.updateNotificationConfig(notificationConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateNotificationConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NotificationConfig notificationConfig = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + client.updateNotificationConfig(notificationConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateNotificationConfigTest2() throws Exception { + NotificationConfig expectedResponse = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + mockService.addResponse(expectedResponse); + + NotificationConfig notificationConfig = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + NotificationConfig actualResponse = + client.updateNotificationConfig(notificationConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateNotificationConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NotificationConfig notificationConfig = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateNotificationConfig(notificationConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateOrganizationSettingsTest() throws Exception { + OrganizationSettings expectedResponse = + OrganizationSettings.newBuilder() + .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString()) + .setEnableAssetDiscovery(true) + .setAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationSettings organizationSettings = + OrganizationSettings.newBuilder() + .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString()) + .setEnableAssetDiscovery(true) + .setAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig.newBuilder().build()) + .build(); + + OrganizationSettings actualResponse = client.updateOrganizationSettings(organizationSettings); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateOrganizationSettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationSettings organizationSettings = + OrganizationSettings.newBuilder() + .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString()) + .setEnableAssetDiscovery(true) + .setAssetDiscoveryConfig( + OrganizationSettings.AssetDiscoveryConfig.newBuilder().build()) + .build(); + client.updateOrganizationSettings(organizationSettings); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSourceTest() throws Exception { + Source expectedResponse = + Source.newBuilder() + .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + Source source = + Source.newBuilder() + .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCanonicalName("canonicalName2122381727") + .build(); + + Source actualResponse = client.updateSource(source); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateSourceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Source source = + Source.newBuilder() + .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCanonicalName("canonicalName2122381727") + .build(); + client.updateSource(source); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSecurityMarksTest() throws Exception { + SecurityMarks expectedResponse = + SecurityMarks.newBuilder() + .setName("name3373707") + .putAllMarks(new HashMap()) + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + SecurityMarks securityMarks = + SecurityMarks.newBuilder() + .setName("organizations/organization-5924/assets/asset-5924/securityMarks") + .putAllMarks(new HashMap()) + .setCanonicalName("canonicalName2122381727") + .build(); + + SecurityMarks actualResponse = client.updateSecurityMarks(securityMarks); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateSecurityMarksExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SecurityMarks securityMarks = + SecurityMarks.newBuilder() + .setName("organizations/organization-5924/assets/asset-5924/securityMarks") + .putAllMarks(new HashMap()) + .setCanonicalName("canonicalName2122381727") + .build(); + client.updateSecurityMarks(securityMarks); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBigQueryExportTest() throws Exception { + BigQueryExport expectedResponse = + BigQueryExport.newBuilder() + .setName( + BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]") + .toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setDataset("dataset1443214456") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .setPrincipal("principal-1812041682") + .build(); + mockService.addResponse(expectedResponse); + + FolderName parent = FolderName.of("[FOLDER]"); + BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build(); + String bigQueryExportId = "bigQueryExportId1024198583"; + + BigQueryExport actualResponse = + client.createBigQueryExport(parent, bigQueryExport, bigQueryExportId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createBigQueryExportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName parent = FolderName.of("[FOLDER]"); + BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build(); + String bigQueryExportId = "bigQueryExportId1024198583"; + client.createBigQueryExport(parent, bigQueryExport, bigQueryExportId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBigQueryExportTest2() throws Exception { + BigQueryExport expectedResponse = + BigQueryExport.newBuilder() + .setName( + BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]") + .toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setDataset("dataset1443214456") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .setPrincipal("principal-1812041682") + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build(); + String bigQueryExportId = "bigQueryExportId1024198583"; + + BigQueryExport actualResponse = + client.createBigQueryExport(parent, bigQueryExport, bigQueryExportId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createBigQueryExportExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build(); + String bigQueryExportId = "bigQueryExportId1024198583"; + client.createBigQueryExport(parent, bigQueryExport, bigQueryExportId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBigQueryExportTest3() throws Exception { + BigQueryExport expectedResponse = + BigQueryExport.newBuilder() + .setName( + BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]") + .toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setDataset("dataset1443214456") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .setPrincipal("principal-1812041682") + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build(); + String bigQueryExportId = "bigQueryExportId1024198583"; + + BigQueryExport actualResponse = + client.createBigQueryExport(parent, bigQueryExport, bigQueryExportId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createBigQueryExportExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build(); + String bigQueryExportId = "bigQueryExportId1024198583"; + client.createBigQueryExport(parent, bigQueryExport, bigQueryExportId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBigQueryExportTest4() throws Exception { + BigQueryExport expectedResponse = + BigQueryExport.newBuilder() + .setName( + BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]") + .toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setDataset("dataset1443214456") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .setPrincipal("principal-1812041682") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8287"; + BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build(); + String bigQueryExportId = "bigQueryExportId1024198583"; + + BigQueryExport actualResponse = + client.createBigQueryExport(parent, bigQueryExport, bigQueryExportId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createBigQueryExportExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build(); + String bigQueryExportId = "bigQueryExportId1024198583"; + client.createBigQueryExport(parent, bigQueryExport, bigQueryExportId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBigQueryExportTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + BigQueryExportName name = + BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]"); + + client.deleteBigQueryExport(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteBigQueryExportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BigQueryExportName name = + BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]"); + client.deleteBigQueryExport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBigQueryExportTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-3683/bigQueryExports/bigQueryExport-3683"; + + client.deleteBigQueryExport(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteBigQueryExportExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "organizations/organization-3683/bigQueryExports/bigQueryExport-3683"; + client.deleteBigQueryExport(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateBigQueryExportTest() throws Exception { + BigQueryExport expectedResponse = + BigQueryExport.newBuilder() + .setName( + BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]") + .toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setDataset("dataset1443214456") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .setPrincipal("principal-1812041682") + .build(); + mockService.addResponse(expectedResponse); + + BigQueryExport bigQueryExport = + BigQueryExport.newBuilder() + .setName( + BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]") + .toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setDataset("dataset1443214456") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .setPrincipal("principal-1812041682") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + BigQueryExport actualResponse = client.updateBigQueryExport(bigQueryExport, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateBigQueryExportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BigQueryExport bigQueryExport = + BigQueryExport.newBuilder() + .setName( + BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]") + .toString()) + .setDescription("description-1724546052") + .setFilter("filter-1274492040") + .setDataset("dataset1443214456") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setMostRecentEditor("mostRecentEditor-833861941") + .setPrincipal("principal-1812041682") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBigQueryExport(bigQueryExport, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBigQueryExportsTest() throws Exception { + BigQueryExport responsesElement = BigQueryExport.newBuilder().build(); + ListBigQueryExportsResponse expectedResponse = + ListBigQueryExportsResponse.newBuilder() + .setNextPageToken("") + .addAllBigQueryExports(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + FolderName parent = FolderName.of("[FOLDER]"); + + ListBigQueryExportsPagedResponse pagedListResponse = client.listBigQueryExports(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBigQueryExportsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBigQueryExportsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName parent = FolderName.of("[FOLDER]"); + client.listBigQueryExports(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBigQueryExportsTest2() throws Exception { + BigQueryExport responsesElement = BigQueryExport.newBuilder().build(); + ListBigQueryExportsResponse expectedResponse = + ListBigQueryExportsResponse.newBuilder() + .setNextPageToken("") + .addAllBigQueryExports(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + + ListBigQueryExportsPagedResponse pagedListResponse = client.listBigQueryExports(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBigQueryExportsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBigQueryExportsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + client.listBigQueryExports(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBigQueryExportsTest3() throws Exception { + BigQueryExport responsesElement = BigQueryExport.newBuilder().build(); + ListBigQueryExportsResponse expectedResponse = + ListBigQueryExportsResponse.newBuilder() + .setNextPageToken("") + .addAllBigQueryExports(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListBigQueryExportsPagedResponse pagedListResponse = client.listBigQueryExports(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBigQueryExportsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBigQueryExportsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listBigQueryExports(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBigQueryExportsTest4() throws Exception { + BigQueryExport responsesElement = BigQueryExport.newBuilder().build(); + ListBigQueryExportsResponse expectedResponse = + ListBigQueryExportsResponse.newBuilder() + .setNextPageToken("") + .addAllBigQueryExports(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8287"; + + ListBigQueryExportsPagedResponse pagedListResponse = client.listBigQueryExports(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBigQueryExportsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBigQueryExportsExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + client.listBigQueryExports(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java b/owl-bot-staging/v1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java similarity index 100% rename from google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java rename to owl-bot-staging/v1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java new file mode 100644 index 000000000..be404ce37 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java @@ -0,0 +1,3397 @@ +package com.google.cloud.securitycenter.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * V1 APIs for Security Center service.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/securitycenter/v1/securitycenter_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SecurityCenterGrpc { + + private SecurityCenterGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.securitycenter.v1.SecurityCenter"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getBulkMuteFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BulkMuteFindings", + requestType = com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBulkMuteFindingsMethod() { + io.grpc.MethodDescriptor getBulkMuteFindingsMethod; + if ((getBulkMuteFindingsMethod = SecurityCenterGrpc.getBulkMuteFindingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getBulkMuteFindingsMethod = SecurityCenterGrpc.getBulkMuteFindingsMethod) == null) { + SecurityCenterGrpc.getBulkMuteFindingsMethod = getBulkMuteFindingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BulkMuteFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("BulkMuteFindings")) + .build(); + } + } + } + return getBulkMuteFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateSourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSource", + requestType = com.google.cloud.securitycenter.v1.CreateSourceRequest.class, + responseType = com.google.cloud.securitycenter.v1.Source.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSourceMethod() { + io.grpc.MethodDescriptor getCreateSourceMethod; + if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { + SecurityCenterGrpc.getCreateSourceMethod = getCreateSourceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.CreateSourceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.Source.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("CreateSource")) + .build(); + } + } + } + return getCreateSourceMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFinding", + requestType = com.google.cloud.securitycenter.v1.CreateFindingRequest.class, + responseType = com.google.cloud.securitycenter.v1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateFindingMethod() { + io.grpc.MethodDescriptor getCreateFindingMethod; + if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { + SecurityCenterGrpc.getCreateFindingMethod = getCreateFindingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.CreateFindingRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.Finding.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("CreateFinding")) + .build(); + } + } + } + return getCreateFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateMuteConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMuteConfig", + requestType = com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.class, + responseType = com.google.cloud.securitycenter.v1.MuteConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateMuteConfigMethod() { + io.grpc.MethodDescriptor getCreateMuteConfigMethod; + if ((getCreateMuteConfigMethod = SecurityCenterGrpc.getCreateMuteConfigMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateMuteConfigMethod = SecurityCenterGrpc.getCreateMuteConfigMethod) == null) { + SecurityCenterGrpc.getCreateMuteConfigMethod = getCreateMuteConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMuteConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("CreateMuteConfig")) + .build(); + } + } + } + return getCreateMuteConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateNotificationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateNotificationConfig", + requestType = com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.class, + responseType = com.google.cloud.securitycenter.v1.NotificationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateNotificationConfigMethod() { + io.grpc.MethodDescriptor getCreateNotificationConfigMethod; + if ((getCreateNotificationConfigMethod = SecurityCenterGrpc.getCreateNotificationConfigMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateNotificationConfigMethod = SecurityCenterGrpc.getCreateNotificationConfigMethod) == null) { + SecurityCenterGrpc.getCreateNotificationConfigMethod = getCreateNotificationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNotificationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("CreateNotificationConfig")) + .build(); + } + } + } + return getCreateNotificationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteMuteConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMuteConfig", + requestType = com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteMuteConfigMethod() { + io.grpc.MethodDescriptor getDeleteMuteConfigMethod; + if ((getDeleteMuteConfigMethod = SecurityCenterGrpc.getDeleteMuteConfigMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getDeleteMuteConfigMethod = SecurityCenterGrpc.getDeleteMuteConfigMethod) == null) { + SecurityCenterGrpc.getDeleteMuteConfigMethod = getDeleteMuteConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMuteConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("DeleteMuteConfig")) + .build(); + } + } + } + return getDeleteMuteConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteNotificationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteNotificationConfig", + requestType = com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteNotificationConfigMethod() { + io.grpc.MethodDescriptor getDeleteNotificationConfigMethod; + if ((getDeleteNotificationConfigMethod = SecurityCenterGrpc.getDeleteNotificationConfigMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getDeleteNotificationConfigMethod = SecurityCenterGrpc.getDeleteNotificationConfigMethod) == null) { + SecurityCenterGrpc.getDeleteNotificationConfigMethod = getDeleteNotificationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNotificationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("DeleteNotificationConfig")) + .build(); + } + } + } + return getDeleteNotificationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetBigQueryExportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBigQueryExport", + requestType = com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.class, + responseType = com.google.cloud.securitycenter.v1.BigQueryExport.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetBigQueryExportMethod() { + io.grpc.MethodDescriptor getGetBigQueryExportMethod; + if ((getGetBigQueryExportMethod = SecurityCenterGrpc.getGetBigQueryExportMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetBigQueryExportMethod = SecurityCenterGrpc.getGetBigQueryExportMethod) == null) { + SecurityCenterGrpc.getGetBigQueryExportMethod = getGetBigQueryExportMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBigQueryExport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetBigQueryExport")) + .build(); + } + } + } + return getGetBigQueryExportMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { + io.grpc.MethodDescriptor getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { + SecurityCenterGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetMuteConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMuteConfig", + requestType = com.google.cloud.securitycenter.v1.GetMuteConfigRequest.class, + responseType = com.google.cloud.securitycenter.v1.MuteConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetMuteConfigMethod() { + io.grpc.MethodDescriptor getGetMuteConfigMethod; + if ((getGetMuteConfigMethod = SecurityCenterGrpc.getGetMuteConfigMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetMuteConfigMethod = SecurityCenterGrpc.getGetMuteConfigMethod) == null) { + SecurityCenterGrpc.getGetMuteConfigMethod = getGetMuteConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMuteConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GetMuteConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetMuteConfig")) + .build(); + } + } + } + return getGetMuteConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetNotificationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNotificationConfig", + requestType = com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.class, + responseType = com.google.cloud.securitycenter.v1.NotificationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetNotificationConfigMethod() { + io.grpc.MethodDescriptor getGetNotificationConfigMethod; + if ((getGetNotificationConfigMethod = SecurityCenterGrpc.getGetNotificationConfigMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetNotificationConfigMethod = SecurityCenterGrpc.getGetNotificationConfigMethod) == null) { + SecurityCenterGrpc.getGetNotificationConfigMethod = getGetNotificationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNotificationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetNotificationConfig")) + .build(); + } + } + } + return getGetNotificationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetOrganizationSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOrganizationSettings", + requestType = com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.class, + responseType = com.google.cloud.securitycenter.v1.OrganizationSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetOrganizationSettingsMethod() { + io.grpc.MethodDescriptor getGetOrganizationSettingsMethod; + if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) == null) { + SecurityCenterGrpc.getGetOrganizationSettingsMethod = getGetOrganizationSettingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOrganizationSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetOrganizationSettings")) + .build(); + } + } + } + return getGetOrganizationSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSource", + requestType = com.google.cloud.securitycenter.v1.GetSourceRequest.class, + responseType = com.google.cloud.securitycenter.v1.Source.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSourceMethod() { + io.grpc.MethodDescriptor getGetSourceMethod; + if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { + SecurityCenterGrpc.getGetSourceMethod = getGetSourceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GetSourceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.Source.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetSource")) + .build(); + } + } + } + return getGetSourceMethod; + } + + private static volatile io.grpc.MethodDescriptor getGroupAssetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GroupAssets", + requestType = com.google.cloud.securitycenter.v1.GroupAssetsRequest.class, + responseType = com.google.cloud.securitycenter.v1.GroupAssetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGroupAssetsMethod() { + io.grpc.MethodDescriptor getGroupAssetsMethod; + if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { + SecurityCenterGrpc.getGroupAssetsMethod = getGroupAssetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GroupAssetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GroupAssetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GroupAssets")) + .build(); + } + } + } + return getGroupAssetsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGroupFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GroupFindings", + requestType = com.google.cloud.securitycenter.v1.GroupFindingsRequest.class, + responseType = com.google.cloud.securitycenter.v1.GroupFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGroupFindingsMethod() { + io.grpc.MethodDescriptor getGroupFindingsMethod; + if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { + SecurityCenterGrpc.getGroupFindingsMethod = getGroupFindingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GroupFindingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GroupFindingsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GroupFindings")) + .build(); + } + } + } + return getGroupFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListAssetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAssets", + requestType = com.google.cloud.securitycenter.v1.ListAssetsRequest.class, + responseType = com.google.cloud.securitycenter.v1.ListAssetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListAssetsMethod() { + io.grpc.MethodDescriptor getListAssetsMethod; + if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { + SecurityCenterGrpc.getListAssetsMethod = getListAssetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListAssetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListAssetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListAssets")) + .build(); + } + } + } + return getListAssetsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindings", + requestType = com.google.cloud.securitycenter.v1.ListFindingsRequest.class, + responseType = com.google.cloud.securitycenter.v1.ListFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFindingsMethod() { + io.grpc.MethodDescriptor getListFindingsMethod; + if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { + SecurityCenterGrpc.getListFindingsMethod = getListFindingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListFindingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListFindingsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListFindings")) + .build(); + } + } + } + return getListFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListMuteConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMuteConfigs", + requestType = com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.class, + responseType = com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListMuteConfigsMethod() { + io.grpc.MethodDescriptor getListMuteConfigsMethod; + if ((getListMuteConfigsMethod = SecurityCenterGrpc.getListMuteConfigsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListMuteConfigsMethod = SecurityCenterGrpc.getListMuteConfigsMethod) == null) { + SecurityCenterGrpc.getListMuteConfigsMethod = getListMuteConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMuteConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListMuteConfigs")) + .build(); + } + } + } + return getListMuteConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListNotificationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNotificationConfigs", + requestType = com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.class, + responseType = com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListNotificationConfigsMethod() { + io.grpc.MethodDescriptor getListNotificationConfigsMethod; + if ((getListNotificationConfigsMethod = SecurityCenterGrpc.getListNotificationConfigsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListNotificationConfigsMethod = SecurityCenterGrpc.getListNotificationConfigsMethod) == null) { + SecurityCenterGrpc.getListNotificationConfigsMethod = getListNotificationConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNotificationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListNotificationConfigs")) + .build(); + } + } + } + return getListNotificationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSources", + requestType = com.google.cloud.securitycenter.v1.ListSourcesRequest.class, + responseType = com.google.cloud.securitycenter.v1.ListSourcesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSourcesMethod() { + io.grpc.MethodDescriptor getListSourcesMethod; + if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { + SecurityCenterGrpc.getListSourcesMethod = getListSourcesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListSourcesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListSourcesResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListSources")) + .build(); + } + } + } + return getListSourcesMethod; + } + + private static volatile io.grpc.MethodDescriptor getRunAssetDiscoveryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RunAssetDiscovery", + requestType = com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRunAssetDiscoveryMethod() { + io.grpc.MethodDescriptor getRunAssetDiscoveryMethod; + if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { + SecurityCenterGrpc.getRunAssetDiscoveryMethod = getRunAssetDiscoveryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunAssetDiscovery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("RunAssetDiscovery")) + .build(); + } + } + } + return getRunAssetDiscoveryMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetFindingStateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetFindingState", + requestType = com.google.cloud.securitycenter.v1.SetFindingStateRequest.class, + responseType = com.google.cloud.securitycenter.v1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetFindingStateMethod() { + io.grpc.MethodDescriptor getSetFindingStateMethod; + if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { + SecurityCenterGrpc.getSetFindingStateMethod = getSetFindingStateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetFindingState")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.SetFindingStateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.Finding.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("SetFindingState")) + .build(); + } + } + } + return getSetFindingStateMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetMuteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetMute", + requestType = com.google.cloud.securitycenter.v1.SetMuteRequest.class, + responseType = com.google.cloud.securitycenter.v1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetMuteMethod() { + io.grpc.MethodDescriptor getSetMuteMethod; + if ((getSetMuteMethod = SecurityCenterGrpc.getSetMuteMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getSetMuteMethod = SecurityCenterGrpc.getSetMuteMethod) == null) { + SecurityCenterGrpc.getSetMuteMethod = getSetMuteMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetMute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.SetMuteRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.Finding.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("SetMute")) + .build(); + } + } + } + return getSetMuteMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { + io.grpc.MethodDescriptor getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { + SecurityCenterGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) == null) { + SecurityCenterGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateExternalSystemMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateExternalSystem", + requestType = com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.class, + responseType = com.google.cloud.securitycenter.v1.ExternalSystem.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateExternalSystemMethod() { + io.grpc.MethodDescriptor getUpdateExternalSystemMethod; + if ((getUpdateExternalSystemMethod = SecurityCenterGrpc.getUpdateExternalSystemMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateExternalSystemMethod = SecurityCenterGrpc.getUpdateExternalSystemMethod) == null) { + SecurityCenterGrpc.getUpdateExternalSystemMethod = getUpdateExternalSystemMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateExternalSystem")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateExternalSystem")) + .build(); + } + } + } + return getUpdateExternalSystemMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFinding", + requestType = com.google.cloud.securitycenter.v1.UpdateFindingRequest.class, + responseType = com.google.cloud.securitycenter.v1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateFindingMethod() { + io.grpc.MethodDescriptor getUpdateFindingMethod; + if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { + SecurityCenterGrpc.getUpdateFindingMethod = getUpdateFindingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.UpdateFindingRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.Finding.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateFinding")) + .build(); + } + } + } + return getUpdateFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateMuteConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMuteConfig", + requestType = com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.class, + responseType = com.google.cloud.securitycenter.v1.MuteConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateMuteConfigMethod() { + io.grpc.MethodDescriptor getUpdateMuteConfigMethod; + if ((getUpdateMuteConfigMethod = SecurityCenterGrpc.getUpdateMuteConfigMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateMuteConfigMethod = SecurityCenterGrpc.getUpdateMuteConfigMethod) == null) { + SecurityCenterGrpc.getUpdateMuteConfigMethod = getUpdateMuteConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMuteConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateMuteConfig")) + .build(); + } + } + } + return getUpdateMuteConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateNotificationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNotificationConfig", + requestType = com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.class, + responseType = com.google.cloud.securitycenter.v1.NotificationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateNotificationConfigMethod() { + io.grpc.MethodDescriptor getUpdateNotificationConfigMethod; + if ((getUpdateNotificationConfigMethod = SecurityCenterGrpc.getUpdateNotificationConfigMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateNotificationConfigMethod = SecurityCenterGrpc.getUpdateNotificationConfigMethod) == null) { + SecurityCenterGrpc.getUpdateNotificationConfigMethod = getUpdateNotificationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNotificationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateNotificationConfig")) + .build(); + } + } + } + return getUpdateNotificationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateOrganizationSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateOrganizationSettings", + requestType = com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.class, + responseType = com.google.cloud.securitycenter.v1.OrganizationSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateOrganizationSettingsMethod() { + io.grpc.MethodDescriptor getUpdateOrganizationSettingsMethod; + if ((getUpdateOrganizationSettingsMethod = SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateOrganizationSettingsMethod = SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) == null) { + SecurityCenterGrpc.getUpdateOrganizationSettingsMethod = getUpdateOrganizationSettingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateOrganizationSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateOrganizationSettings")) + .build(); + } + } + } + return getUpdateOrganizationSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSource", + requestType = com.google.cloud.securitycenter.v1.UpdateSourceRequest.class, + responseType = com.google.cloud.securitycenter.v1.Source.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSourceMethod() { + io.grpc.MethodDescriptor getUpdateSourceMethod; + if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { + SecurityCenterGrpc.getUpdateSourceMethod = getUpdateSourceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.UpdateSourceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.Source.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateSource")) + .build(); + } + } + } + return getUpdateSourceMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSecurityMarksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSecurityMarks", + requestType = com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.class, + responseType = com.google.cloud.securitycenter.v1.SecurityMarks.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSecurityMarksMethod() { + io.grpc.MethodDescriptor getUpdateSecurityMarksMethod; + if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) == null) { + SecurityCenterGrpc.getUpdateSecurityMarksMethod = getUpdateSecurityMarksMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSecurityMarks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateSecurityMarks")) + .build(); + } + } + } + return getUpdateSecurityMarksMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateBigQueryExportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBigQueryExport", + requestType = com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.class, + responseType = com.google.cloud.securitycenter.v1.BigQueryExport.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateBigQueryExportMethod() { + io.grpc.MethodDescriptor getCreateBigQueryExportMethod; + if ((getCreateBigQueryExportMethod = SecurityCenterGrpc.getCreateBigQueryExportMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateBigQueryExportMethod = SecurityCenterGrpc.getCreateBigQueryExportMethod) == null) { + SecurityCenterGrpc.getCreateBigQueryExportMethod = getCreateBigQueryExportMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBigQueryExport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("CreateBigQueryExport")) + .build(); + } + } + } + return getCreateBigQueryExportMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteBigQueryExportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBigQueryExport", + requestType = com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteBigQueryExportMethod() { + io.grpc.MethodDescriptor getDeleteBigQueryExportMethod; + if ((getDeleteBigQueryExportMethod = SecurityCenterGrpc.getDeleteBigQueryExportMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getDeleteBigQueryExportMethod = SecurityCenterGrpc.getDeleteBigQueryExportMethod) == null) { + SecurityCenterGrpc.getDeleteBigQueryExportMethod = getDeleteBigQueryExportMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBigQueryExport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("DeleteBigQueryExport")) + .build(); + } + } + } + return getDeleteBigQueryExportMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateBigQueryExportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBigQueryExport", + requestType = com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.class, + responseType = com.google.cloud.securitycenter.v1.BigQueryExport.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateBigQueryExportMethod() { + io.grpc.MethodDescriptor getUpdateBigQueryExportMethod; + if ((getUpdateBigQueryExportMethod = SecurityCenterGrpc.getUpdateBigQueryExportMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateBigQueryExportMethod = SecurityCenterGrpc.getUpdateBigQueryExportMethod) == null) { + SecurityCenterGrpc.getUpdateBigQueryExportMethod = getUpdateBigQueryExportMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBigQueryExport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateBigQueryExport")) + .build(); + } + } + } + return getUpdateBigQueryExportMethod; + } + + private static volatile io.grpc.MethodDescriptor getListBigQueryExportsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBigQueryExports", + requestType = com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.class, + responseType = com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListBigQueryExportsMethod() { + io.grpc.MethodDescriptor getListBigQueryExportsMethod; + if ((getListBigQueryExportsMethod = SecurityCenterGrpc.getListBigQueryExportsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListBigQueryExportsMethod = SecurityCenterGrpc.getListBigQueryExportsMethod) == null) { + SecurityCenterGrpc.getListBigQueryExportsMethod = getListBigQueryExportsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBigQueryExports")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListBigQueryExports")) + .build(); + } + } + } + return getListBigQueryExportsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SecurityCenterStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterStub(channel, callOptions); + } + }; + return SecurityCenterStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SecurityCenterBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterBlockingStub(channel, callOptions); + } + }; + return SecurityCenterBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SecurityCenterFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterFutureStub(channel, callOptions); + } + }; + return SecurityCenterFutureStub.newStub(factory, channel); + } + + /** + *
+   * V1 APIs for Security Center service.
+   * 
+ */ + public static abstract class SecurityCenterImplBase implements io.grpc.BindableService { + + /** + *
+     * Kicks off an LRO to bulk mute findings for a parent based on a filter. The
+     * parent can be either an organization, folder or project. The findings
+     * matched by the filter will be muted after the LRO is done.
+     * 
+ */ + public void bulkMuteFindings(com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBulkMuteFindingsMethod(), responseObserver); + } + + /** + *
+     * Creates a source.
+     * 
+ */ + public void createSource(com.google.cloud.securitycenter.v1.CreateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSourceMethod(), responseObserver); + } + + /** + *
+     * Creates a finding. The corresponding source must exist for finding creation
+     * to succeed.
+     * 
+ */ + public void createFinding(com.google.cloud.securitycenter.v1.CreateFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFindingMethod(), responseObserver); + } + + /** + *
+     * Creates a mute config.
+     * 
+ */ + public void createMuteConfig(com.google.cloud.securitycenter.v1.CreateMuteConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMuteConfigMethod(), responseObserver); + } + + /** + *
+     * Creates a notification config.
+     * 
+ */ + public void createNotificationConfig(com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNotificationConfigMethod(), responseObserver); + } + + /** + *
+     * Deletes an existing mute config.
+     * 
+ */ + public void deleteMuteConfig(com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMuteConfigMethod(), responseObserver); + } + + /** + *
+     * Deletes a notification config.
+     * 
+ */ + public void deleteNotificationConfig(com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNotificationConfigMethod(), responseObserver); + } + + /** + *
+     * Gets a big query export.
+     * 
+ */ + public void getBigQueryExport(com.google.cloud.securitycenter.v1.GetBigQueryExportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBigQueryExportMethod(), responseObserver); + } + + /** + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Gets a mute config.
+     * 
+ */ + public void getMuteConfig(com.google.cloud.securitycenter.v1.GetMuteConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMuteConfigMethod(), responseObserver); + } + + /** + *
+     * Gets a notification config.
+     * 
+ */ + public void getNotificationConfig(com.google.cloud.securitycenter.v1.GetNotificationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNotificationConfigMethod(), responseObserver); + } + + /** + *
+     * Gets the settings for an organization.
+     * 
+ */ + public void getOrganizationSettings(com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOrganizationSettingsMethod(), responseObserver); + } + + /** + *
+     * Gets a source.
+     * 
+ */ + public void getSource(com.google.cloud.securitycenter.v1.GetSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSourceMethod(), responseObserver); + } + + /** + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public void groupAssets(com.google.cloud.securitycenter.v1.GroupAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGroupAssetsMethod(), responseObserver); + } + + /** + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings,
+     * /v1/folders/{folder_id}/sources/-/findings,
+     * /v1/projects/{project_id}/sources/-/findings
+     * 
+ */ + public void groupFindings(com.google.cloud.securitycenter.v1.GroupFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGroupFindingsMethod(), responseObserver); + } + + /** + *
+     * Lists an organization's assets.
+     * 
+ */ + public void listAssets(com.google.cloud.securitycenter.v1.ListAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver); + } + + /** + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public void listFindings(com.google.cloud.securitycenter.v1.ListFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingsMethod(), responseObserver); + } + + /** + *
+     * Lists mute configs.
+     * 
+ */ + public void listMuteConfigs(com.google.cloud.securitycenter.v1.ListMuteConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMuteConfigsMethod(), responseObserver); + } + + /** + *
+     * Lists notification configs.
+     * 
+ */ + public void listNotificationConfigs(com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNotificationConfigsMethod(), responseObserver); + } + + /** + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public void listSources(com.google.cloud.securitycenter.v1.ListSourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSourcesMethod(), responseObserver); + } + + /** + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public void runAssetDiscovery(com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunAssetDiscoveryMethod(), responseObserver); + } + + /** + *
+     * Updates the state of a finding.
+     * 
+ */ + public void setFindingState(com.google.cloud.securitycenter.v1.SetFindingStateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetFindingStateMethod(), responseObserver); + } + + /** + *
+     * Updates the mute state of a finding.
+     * 
+ */ + public void setMute(com.google.cloud.securitycenter.v1.SetMuteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetMuteMethod(), responseObserver); + } + + /** + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); + } + + /** + *
+     * Updates external system. This is for a given finding.
+     * 
+ */ + public void updateExternalSystem(com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateExternalSystemMethod(), responseObserver); + } + + /** + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public void updateFinding(com.google.cloud.securitycenter.v1.UpdateFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFindingMethod(), responseObserver); + } + + /** + *
+     * Updates a mute config.
+     * 
+ */ + public void updateMuteConfig(com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMuteConfigMethod(), responseObserver); + } + + /** + *
+     * Updates a notification config. The following update
+     * fields are allowed: description, pubsub_topic, streaming_config.filter
+     * 
+ */ + public void updateNotificationConfig(com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNotificationConfigMethod(), responseObserver); + } + + /** + *
+     * Updates an organization's settings.
+     * 
+ */ + public void updateOrganizationSettings(com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateOrganizationSettingsMethod(), responseObserver); + } + + /** + *
+     * Updates a source.
+     * 
+ */ + public void updateSource(com.google.cloud.securitycenter.v1.UpdateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSourceMethod(), responseObserver); + } + + /** + *
+     * Updates security marks.
+     * 
+ */ + public void updateSecurityMarks(com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSecurityMarksMethod(), responseObserver); + } + + /** + *
+     * Creates a big query export.
+     * 
+ */ + public void createBigQueryExport(com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBigQueryExportMethod(), responseObserver); + } + + /** + *
+     * Deletes an existing big query export.
+     * 
+ */ + public void deleteBigQueryExport(com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBigQueryExportMethod(), responseObserver); + } + + /** + *
+     * Updates a BigQuery export.
+     * 
+ */ + public void updateBigQueryExport(com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBigQueryExportMethod(), responseObserver); + } + + /** + *
+     * Lists BigQuery exports. Note that when requesting BigQuery exports at a
+     * given level all exports under that level are also returned e.g. if
+     * requesting BigQuery exports under a folder, then all BigQuery exports
+     * immediately under the folder plus the ones created under the projects
+     * within the folder are returned.
+     * 
+ */ + public void listBigQueryExports(com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBigQueryExportsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getBulkMuteFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest, + com.google.longrunning.Operation>( + this, METHODID_BULK_MUTE_FINDINGS))) + .addMethod( + getCreateSourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.CreateSourceRequest, + com.google.cloud.securitycenter.v1.Source>( + this, METHODID_CREATE_SOURCE))) + .addMethod( + getCreateFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.CreateFindingRequest, + com.google.cloud.securitycenter.v1.Finding>( + this, METHODID_CREATE_FINDING))) + .addMethod( + getCreateMuteConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest, + com.google.cloud.securitycenter.v1.MuteConfig>( + this, METHODID_CREATE_MUTE_CONFIG))) + .addMethod( + getCreateNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest, + com.google.cloud.securitycenter.v1.NotificationConfig>( + this, METHODID_CREATE_NOTIFICATION_CONFIG))) + .addMethod( + getDeleteMuteConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_MUTE_CONFIG))) + .addMethod( + getDeleteNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_NOTIFICATION_CONFIG))) + .addMethod( + getGetBigQueryExportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest, + com.google.cloud.securitycenter.v1.BigQueryExport>( + this, METHODID_GET_BIG_QUERY_EXPORT))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getGetMuteConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.GetMuteConfigRequest, + com.google.cloud.securitycenter.v1.MuteConfig>( + this, METHODID_GET_MUTE_CONFIG))) + .addMethod( + getGetNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest, + com.google.cloud.securitycenter.v1.NotificationConfig>( + this, METHODID_GET_NOTIFICATION_CONFIG))) + .addMethod( + getGetOrganizationSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings>( + this, METHODID_GET_ORGANIZATION_SETTINGS))) + .addMethod( + getGetSourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.GetSourceRequest, + com.google.cloud.securitycenter.v1.Source>( + this, METHODID_GET_SOURCE))) + .addMethod( + getGroupAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1.GroupAssetsResponse>( + this, METHODID_GROUP_ASSETS))) + .addMethod( + getGroupFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1.GroupFindingsResponse>( + this, METHODID_GROUP_FINDINGS))) + .addMethod( + getListAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.ListAssetsRequest, + com.google.cloud.securitycenter.v1.ListAssetsResponse>( + this, METHODID_LIST_ASSETS))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.ListFindingsRequest, + com.google.cloud.securitycenter.v1.ListFindingsResponse>( + this, METHODID_LIST_FINDINGS))) + .addMethod( + getListMuteConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.ListMuteConfigsRequest, + com.google.cloud.securitycenter.v1.ListMuteConfigsResponse>( + this, METHODID_LIST_MUTE_CONFIGS))) + .addMethod( + getListNotificationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest, + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse>( + this, METHODID_LIST_NOTIFICATION_CONFIGS))) + .addMethod( + getListSourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.ListSourcesRequest, + com.google.cloud.securitycenter.v1.ListSourcesResponse>( + this, METHODID_LIST_SOURCES))) + .addMethod( + getRunAssetDiscoveryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation>( + this, METHODID_RUN_ASSET_DISCOVERY))) + .addMethod( + getSetFindingStateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1.Finding>( + this, METHODID_SET_FINDING_STATE))) + .addMethod( + getSetMuteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.SetMuteRequest, + com.google.cloud.securitycenter.v1.Finding>( + this, METHODID_SET_MUTE))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) + .addMethod( + getUpdateExternalSystemMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest, + com.google.cloud.securitycenter.v1.ExternalSystem>( + this, METHODID_UPDATE_EXTERNAL_SYSTEM))) + .addMethod( + getUpdateFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1.Finding>( + this, METHODID_UPDATE_FINDING))) + .addMethod( + getUpdateMuteConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest, + com.google.cloud.securitycenter.v1.MuteConfig>( + this, METHODID_UPDATE_MUTE_CONFIG))) + .addMethod( + getUpdateNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest, + com.google.cloud.securitycenter.v1.NotificationConfig>( + this, METHODID_UPDATE_NOTIFICATION_CONFIG))) + .addMethod( + getUpdateOrganizationSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings>( + this, METHODID_UPDATE_ORGANIZATION_SETTINGS))) + .addMethod( + getUpdateSourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1.Source>( + this, METHODID_UPDATE_SOURCE))) + .addMethod( + getUpdateSecurityMarksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1.SecurityMarks>( + this, METHODID_UPDATE_SECURITY_MARKS))) + .addMethod( + getCreateBigQueryExportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest, + com.google.cloud.securitycenter.v1.BigQueryExport>( + this, METHODID_CREATE_BIG_QUERY_EXPORT))) + .addMethod( + getDeleteBigQueryExportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_BIG_QUERY_EXPORT))) + .addMethod( + getUpdateBigQueryExportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest, + com.google.cloud.securitycenter.v1.BigQueryExport>( + this, METHODID_UPDATE_BIG_QUERY_EXPORT))) + .addMethod( + getListBigQueryExportsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest, + com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse>( + this, METHODID_LIST_BIG_QUERY_EXPORTS))) + .build(); + } + } + + /** + *
+   * V1 APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterStub extends io.grpc.stub.AbstractAsyncStub { + private SecurityCenterStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterStub(channel, callOptions); + } + + /** + *
+     * Kicks off an LRO to bulk mute findings for a parent based on a filter. The
+     * parent can be either an organization, folder or project. The findings
+     * matched by the filter will be muted after the LRO is done.
+     * 
+ */ + public void bulkMuteFindings(com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBulkMuteFindingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a source.
+     * 
+ */ + public void createSource(com.google.cloud.securitycenter.v1.CreateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSourceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a finding. The corresponding source must exist for finding creation
+     * to succeed.
+     * 
+ */ + public void createFinding(com.google.cloud.securitycenter.v1.CreateFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFindingMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a mute config.
+     * 
+ */ + public void createMuteConfig(com.google.cloud.securitycenter.v1.CreateMuteConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMuteConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a notification config.
+     * 
+ */ + public void createNotificationConfig(com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an existing mute config.
+     * 
+ */ + public void deleteMuteConfig(com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMuteConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a notification config.
+     * 
+ */ + public void deleteNotificationConfig(com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a big query export.
+     * 
+ */ + public void getBigQueryExport(com.google.cloud.securitycenter.v1.GetBigQueryExportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBigQueryExportMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a mute config.
+     * 
+ */ + public void getMuteConfig(com.google.cloud.securitycenter.v1.GetMuteConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMuteConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a notification config.
+     * 
+ */ + public void getNotificationConfig(com.google.cloud.securitycenter.v1.GetNotificationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the settings for an organization.
+     * 
+ */ + public void getOrganizationSettings(com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a source.
+     * 
+ */ + public void getSource(com.google.cloud.securitycenter.v1.GetSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSourceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public void groupAssets(com.google.cloud.securitycenter.v1.GroupAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings,
+     * /v1/folders/{folder_id}/sources/-/findings,
+     * /v1/projects/{project_id}/sources/-/findings
+     * 
+ */ + public void groupFindings(com.google.cloud.securitycenter.v1.GroupFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists an organization's assets.
+     * 
+ */ + public void listAssets(com.google.cloud.securitycenter.v1.ListAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public void listFindings(com.google.cloud.securitycenter.v1.ListFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists mute configs.
+     * 
+ */ + public void listMuteConfigs(com.google.cloud.securitycenter.v1.ListMuteConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMuteConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists notification configs.
+     * 
+ */ + public void listNotificationConfigs(com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public void listSources(com.google.cloud.securitycenter.v1.ListSourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSourcesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public void runAssetDiscovery(com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the state of a finding.
+     * 
+ */ + public void setFindingState(com.google.cloud.securitycenter.v1.SetFindingStateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the mute state of a finding.
+     * 
+ */ + public void setMute(com.google.cloud.securitycenter.v1.SetMuteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetMuteMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates external system. This is for a given finding.
+     * 
+ */ + public void updateExternalSystem(com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateExternalSystemMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public void updateFinding(com.google.cloud.securitycenter.v1.UpdateFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a mute config.
+     * 
+ */ + public void updateMuteConfig(com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMuteConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a notification config. The following update
+     * fields are allowed: description, pubsub_topic, streaming_config.filter
+     * 
+ */ + public void updateNotificationConfig(com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNotificationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an organization's settings.
+     * 
+ */ + public void updateOrganizationSettings(com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a source.
+     * 
+ */ + public void updateSource(com.google.cloud.securitycenter.v1.UpdateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates security marks.
+     * 
+ */ + public void updateSecurityMarks(com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a big query export.
+     * 
+ */ + public void createBigQueryExport(com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBigQueryExportMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an existing big query export.
+     * 
+ */ + public void deleteBigQueryExport(com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBigQueryExportMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a BigQuery export.
+     * 
+ */ + public void updateBigQueryExport(com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBigQueryExportMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists BigQuery exports. Note that when requesting BigQuery exports at a
+     * given level all exports under that level are also returned e.g. if
+     * requesting BigQuery exports under a folder, then all BigQuery exports
+     * immediately under the folder plus the ones created under the projects
+     * within the folder are returned.
+     * 
+ */ + public void listBigQueryExports(com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBigQueryExportsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * V1 APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private SecurityCenterBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterBlockingStub(channel, callOptions); + } + + /** + *
+     * Kicks off an LRO to bulk mute findings for a parent based on a filter. The
+     * parent can be either an organization, folder or project. The findings
+     * matched by the filter will be muted after the LRO is done.
+     * 
+ */ + public com.google.longrunning.Operation bulkMuteFindings(com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBulkMuteFindingsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.Source createSource(com.google.cloud.securitycenter.v1.CreateSourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSourceMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a finding. The corresponding source must exist for finding creation
+     * to succeed.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.Finding createFinding(com.google.cloud.securitycenter.v1.CreateFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFindingMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a mute config.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.MuteConfig createMuteConfig(com.google.cloud.securitycenter.v1.CreateMuteConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMuteConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a notification config.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.NotificationConfig createNotificationConfig(com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNotificationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an existing mute config.
+     * 
+ */ + public com.google.protobuf.Empty deleteMuteConfig(com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMuteConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a notification config.
+     * 
+ */ + public com.google.protobuf.Empty deleteNotificationConfig(com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteNotificationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a big query export.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExport(com.google.cloud.securitycenter.v1.GetBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBigQueryExportMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a mute config.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.MuteConfig getMuteConfig(com.google.cloud.securitycenter.v1.GetMuteConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMuteConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a notification config.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig(com.google.cloud.securitycenter.v1.GetNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNotificationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the settings for an organization.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSettings(com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetOrganizationSettingsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.Source getSource(com.google.cloud.securitycenter.v1.GetSourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSourceMethod(), getCallOptions(), request); + } + + /** + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.GroupAssetsResponse groupAssets(com.google.cloud.securitycenter.v1.GroupAssetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGroupAssetsMethod(), getCallOptions(), request); + } + + /** + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings,
+     * /v1/folders/{folder_id}/sources/-/findings,
+     * /v1/projects/{project_id}/sources/-/findings
+     * 
+ */ + public com.google.cloud.securitycenter.v1.GroupFindingsResponse groupFindings(com.google.cloud.securitycenter.v1.GroupFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGroupFindingsMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists an organization's assets.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.ListAssetsResponse listAssets(com.google.cloud.securitycenter.v1.ListAssetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAssetsMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public com.google.cloud.securitycenter.v1.ListFindingsResponse listFindings(com.google.cloud.securitycenter.v1.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingsMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists mute configs.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.ListMuteConfigsResponse listMuteConfigs(com.google.cloud.securitycenter.v1.ListMuteConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMuteConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists notification configs.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse listNotificationConfigs(com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNotificationConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.ListSourcesResponse listSources(com.google.cloud.securitycenter.v1.ListSourcesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSourcesMethod(), getCallOptions(), request); + } + + /** + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public com.google.longrunning.Operation runAssetDiscovery(com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunAssetDiscoveryMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the state of a finding.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.Finding setFindingState(com.google.cloud.securitycenter.v1.SetFindingStateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetFindingStateMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the mute state of a finding.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.Finding setMute(com.google.cloud.securitycenter.v1.SetMuteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetMuteMethod(), getCallOptions(), request); + } + + /** + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates external system. This is for a given finding.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.ExternalSystem updateExternalSystem(com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateExternalSystemMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.Finding updateFinding(com.google.cloud.securitycenter.v1.UpdateFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFindingMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a mute config.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.MuteConfig updateMuteConfig(com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMuteConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a notification config. The following update
+     * fields are allowed: description, pubsub_topic, streaming_config.filter
+     * 
+ */ + public com.google.cloud.securitycenter.v1.NotificationConfig updateNotificationConfig(com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNotificationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an organization's settings.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.OrganizationSettings updateOrganizationSettings(com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateOrganizationSettingsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.Source updateSource(com.google.cloud.securitycenter.v1.UpdateSourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSourceMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates security marks.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.SecurityMarks updateSecurityMarks(com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSecurityMarksMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a big query export.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.BigQueryExport createBigQueryExport(com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBigQueryExportMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an existing big query export.
+     * 
+ */ + public com.google.protobuf.Empty deleteBigQueryExport(com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBigQueryExportMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a BigQuery export.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.BigQueryExport updateBigQueryExport(com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBigQueryExportMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists BigQuery exports. Note that when requesting BigQuery exports at a
+     * given level all exports under that level are also returned e.g. if
+     * requesting BigQuery exports under a folder, then all BigQuery exports
+     * immediately under the folder plus the ones created under the projects
+     * within the folder are returned.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse listBigQueryExports(com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBigQueryExportsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * V1 APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterFutureStub extends io.grpc.stub.AbstractFutureStub { + private SecurityCenterFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterFutureStub(channel, callOptions); + } + + /** + *
+     * Kicks off an LRO to bulk mute findings for a parent based on a filter. The
+     * parent can be either an organization, folder or project. The findings
+     * matched by the filter will be muted after the LRO is done.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture bulkMuteFindings( + com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBulkMuteFindingsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSource( + com.google.cloud.securitycenter.v1.CreateSourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSourceMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a finding. The corresponding source must exist for finding creation
+     * to succeed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createFinding( + com.google.cloud.securitycenter.v1.CreateFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFindingMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a mute config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createMuteConfig( + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMuteConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a notification config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createNotificationConfig( + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an existing mute config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteMuteConfig( + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMuteConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a notification config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteNotificationConfig( + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a big query export.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getBigQueryExport( + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBigQueryExportMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a mute config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getMuteConfig( + com.google.cloud.securitycenter.v1.GetMuteConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMuteConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a notification config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getNotificationConfig( + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the settings for an organization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getOrganizationSettings( + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSource( + com.google.cloud.securitycenter.v1.GetSourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSourceMethod(), getCallOptions()), request); + } + + /** + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture groupAssets( + com.google.cloud.securitycenter.v1.GroupAssetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), request); + } + + /** + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings,
+     * /v1/folders/{folder_id}/sources/-/findings,
+     * /v1/projects/{project_id}/sources/-/findings
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture groupFindings( + com.google.cloud.securitycenter.v1.GroupFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists an organization's assets.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listAssets( + com.google.cloud.securitycenter.v1.ListAssetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAssetsMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listFindings( + com.google.cloud.securitycenter.v1.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists mute configs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listMuteConfigs( + com.google.cloud.securitycenter.v1.ListMuteConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMuteConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists notification configs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listNotificationConfigs( + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSources( + com.google.cloud.securitycenter.v1.ListSourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSourcesMethod(), getCallOptions()), request); + } + + /** + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture runAssetDiscovery( + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the state of a finding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setFindingState( + com.google.cloud.securitycenter.v1.SetFindingStateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the mute state of a finding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setMute( + com.google.cloud.securitycenter.v1.SetMuteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetMuteMethod(), getCallOptions()), request); + } + + /** + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates external system. This is for a given finding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateExternalSystem( + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateExternalSystemMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateFinding( + com.google.cloud.securitycenter.v1.UpdateFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a mute config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateMuteConfig( + com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMuteConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a notification config. The following update
+     * fields are allowed: description, pubsub_topic, streaming_config.filter
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateNotificationConfig( + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNotificationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an organization's settings.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateOrganizationSettings( + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSource( + com.google.cloud.securitycenter.v1.UpdateSourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates security marks.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSecurityMarks( + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a big query export.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createBigQueryExport( + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBigQueryExportMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an existing big query export.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteBigQueryExport( + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBigQueryExportMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a BigQuery export.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateBigQueryExport( + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBigQueryExportMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists BigQuery exports. Note that when requesting BigQuery exports at a
+     * given level all exports under that level are also returned e.g. if
+     * requesting BigQuery exports under a folder, then all BigQuery exports
+     * immediately under the folder plus the ones created under the projects
+     * within the folder are returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listBigQueryExports( + com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBigQueryExportsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_BULK_MUTE_FINDINGS = 0; + private static final int METHODID_CREATE_SOURCE = 1; + private static final int METHODID_CREATE_FINDING = 2; + private static final int METHODID_CREATE_MUTE_CONFIG = 3; + private static final int METHODID_CREATE_NOTIFICATION_CONFIG = 4; + private static final int METHODID_DELETE_MUTE_CONFIG = 5; + private static final int METHODID_DELETE_NOTIFICATION_CONFIG = 6; + private static final int METHODID_GET_BIG_QUERY_EXPORT = 7; + private static final int METHODID_GET_IAM_POLICY = 8; + private static final int METHODID_GET_MUTE_CONFIG = 9; + private static final int METHODID_GET_NOTIFICATION_CONFIG = 10; + private static final int METHODID_GET_ORGANIZATION_SETTINGS = 11; + private static final int METHODID_GET_SOURCE = 12; + private static final int METHODID_GROUP_ASSETS = 13; + private static final int METHODID_GROUP_FINDINGS = 14; + private static final int METHODID_LIST_ASSETS = 15; + private static final int METHODID_LIST_FINDINGS = 16; + private static final int METHODID_LIST_MUTE_CONFIGS = 17; + private static final int METHODID_LIST_NOTIFICATION_CONFIGS = 18; + private static final int METHODID_LIST_SOURCES = 19; + private static final int METHODID_RUN_ASSET_DISCOVERY = 20; + private static final int METHODID_SET_FINDING_STATE = 21; + private static final int METHODID_SET_MUTE = 22; + private static final int METHODID_SET_IAM_POLICY = 23; + private static final int METHODID_TEST_IAM_PERMISSIONS = 24; + private static final int METHODID_UPDATE_EXTERNAL_SYSTEM = 25; + private static final int METHODID_UPDATE_FINDING = 26; + private static final int METHODID_UPDATE_MUTE_CONFIG = 27; + private static final int METHODID_UPDATE_NOTIFICATION_CONFIG = 28; + private static final int METHODID_UPDATE_ORGANIZATION_SETTINGS = 29; + private static final int METHODID_UPDATE_SOURCE = 30; + private static final int METHODID_UPDATE_SECURITY_MARKS = 31; + private static final int METHODID_CREATE_BIG_QUERY_EXPORT = 32; + private static final int METHODID_DELETE_BIG_QUERY_EXPORT = 33; + private static final int METHODID_UPDATE_BIG_QUERY_EXPORT = 34; + private static final int METHODID_LIST_BIG_QUERY_EXPORTS = 35; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SecurityCenterImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SecurityCenterImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_BULK_MUTE_FINDINGS: + serviceImpl.bulkMuteFindings((com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SOURCE: + serviceImpl.createSource((com.google.cloud.securitycenter.v1.CreateSourceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_FINDING: + serviceImpl.createFinding((com.google.cloud.securitycenter.v1.CreateFindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_MUTE_CONFIG: + serviceImpl.createMuteConfig((com.google.cloud.securitycenter.v1.CreateMuteConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_NOTIFICATION_CONFIG: + serviceImpl.createNotificationConfig((com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MUTE_CONFIG: + serviceImpl.deleteMuteConfig((com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_NOTIFICATION_CONFIG: + serviceImpl.deleteNotificationConfig((com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_BIG_QUERY_EXPORT: + serviceImpl.getBigQueryExport((com.google.cloud.securitycenter.v1.GetBigQueryExportRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MUTE_CONFIG: + serviceImpl.getMuteConfig((com.google.cloud.securitycenter.v1.GetMuteConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_NOTIFICATION_CONFIG: + serviceImpl.getNotificationConfig((com.google.cloud.securitycenter.v1.GetNotificationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ORGANIZATION_SETTINGS: + serviceImpl.getOrganizationSettings((com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SOURCE: + serviceImpl.getSource((com.google.cloud.securitycenter.v1.GetSourceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GROUP_ASSETS: + serviceImpl.groupAssets((com.google.cloud.securitycenter.v1.GroupAssetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GROUP_FINDINGS: + serviceImpl.groupFindings((com.google.cloud.securitycenter.v1.GroupFindingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ASSETS: + serviceImpl.listAssets((com.google.cloud.securitycenter.v1.ListAssetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FINDINGS: + serviceImpl.listFindings((com.google.cloud.securitycenter.v1.ListFindingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_MUTE_CONFIGS: + serviceImpl.listMuteConfigs((com.google.cloud.securitycenter.v1.ListMuteConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_NOTIFICATION_CONFIGS: + serviceImpl.listNotificationConfigs((com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SOURCES: + serviceImpl.listSources((com.google.cloud.securitycenter.v1.ListSourcesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RUN_ASSET_DISCOVERY: + serviceImpl.runAssetDiscovery((com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_FINDING_STATE: + serviceImpl.setFindingState((com.google.cloud.securitycenter.v1.SetFindingStateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_MUTE: + serviceImpl.setMute((com.google.cloud.securitycenter.v1.SetMuteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_EXTERNAL_SYSTEM: + serviceImpl.updateExternalSystem((com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FINDING: + serviceImpl.updateFinding((com.google.cloud.securitycenter.v1.UpdateFindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MUTE_CONFIG: + serviceImpl.updateMuteConfig((com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_NOTIFICATION_CONFIG: + serviceImpl.updateNotificationConfig((com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ORGANIZATION_SETTINGS: + serviceImpl.updateOrganizationSettings((com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SOURCE: + serviceImpl.updateSource((com.google.cloud.securitycenter.v1.UpdateSourceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SECURITY_MARKS: + serviceImpl.updateSecurityMarks((com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_BIG_QUERY_EXPORT: + serviceImpl.createBigQueryExport((com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BIG_QUERY_EXPORT: + serviceImpl.deleteBigQueryExport((com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_BIG_QUERY_EXPORT: + serviceImpl.updateBigQueryExport((com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BIG_QUERY_EXPORTS: + serviceImpl.listBigQueryExports((com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class SecurityCenterBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SecurityCenterBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SecurityCenter"); + } + } + + private static final class SecurityCenterFileDescriptorSupplier + extends SecurityCenterBaseDescriptorSupplier { + SecurityCenterFileDescriptorSupplier() {} + } + + private static final class SecurityCenterMethodDescriptorSupplier + extends SecurityCenterBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SecurityCenterMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SecurityCenterGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SecurityCenterFileDescriptorSupplier()) + .addMethod(getBulkMuteFindingsMethod()) + .addMethod(getCreateSourceMethod()) + .addMethod(getCreateFindingMethod()) + .addMethod(getCreateMuteConfigMethod()) + .addMethod(getCreateNotificationConfigMethod()) + .addMethod(getDeleteMuteConfigMethod()) + .addMethod(getDeleteNotificationConfigMethod()) + .addMethod(getGetBigQueryExportMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getGetMuteConfigMethod()) + .addMethod(getGetNotificationConfigMethod()) + .addMethod(getGetOrganizationSettingsMethod()) + .addMethod(getGetSourceMethod()) + .addMethod(getGroupAssetsMethod()) + .addMethod(getGroupFindingsMethod()) + .addMethod(getListAssetsMethod()) + .addMethod(getListFindingsMethod()) + .addMethod(getListMuteConfigsMethod()) + .addMethod(getListNotificationConfigsMethod()) + .addMethod(getListSourcesMethod()) + .addMethod(getRunAssetDiscoveryMethod()) + .addMethod(getSetFindingStateMethod()) + .addMethod(getSetMuteMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .addMethod(getUpdateExternalSystemMethod()) + .addMethod(getUpdateFindingMethod()) + .addMethod(getUpdateMuteConfigMethod()) + .addMethod(getUpdateNotificationConfigMethod()) + .addMethod(getUpdateOrganizationSettingsMethod()) + .addMethod(getUpdateSourceMethod()) + .addMethod(getUpdateSecurityMarksMethod()) + .addMethod(getCreateBigQueryExportMethod()) + .addMethod(getDeleteBigQueryExportMethod()) + .addMethod(getUpdateBigQueryExportMethod()) + .addMethod(getListBigQueryExportsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Access.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Access.java similarity index 72% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Access.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Access.java index 0dcdbcfcf..0ff8db423 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Access.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Access.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/access.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Represents an access event.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Access} */ -public final class Access extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Access extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Access) AccessOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Access.newBuilder() to construct. private Access(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Access() { principalEmail_ = ""; callerIp_ = ""; @@ -47,15 +29,16 @@ private Access() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Access(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Access( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,64 +57,56 @@ private Access( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - principalEmail_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + principalEmail_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - callerIp_ = s; - break; + callerIp_ = s; + break; + } + case 26: { + com.google.cloud.securitycenter.v1.Geolocation.Builder subBuilder = null; + if (callerIpGeo_ != null) { + subBuilder = callerIpGeo_.toBuilder(); } - case 26: - { - com.google.cloud.securitycenter.v1.Geolocation.Builder subBuilder = null; - if (callerIpGeo_ != null) { - subBuilder = callerIpGeo_.toBuilder(); - } - callerIpGeo_ = - input.readMessage( - com.google.cloud.securitycenter.v1.Geolocation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(callerIpGeo_); - callerIpGeo_ = subBuilder.buildPartial(); - } - - break; + callerIpGeo_ = input.readMessage(com.google.cloud.securitycenter.v1.Geolocation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(callerIpGeo_); + callerIpGeo_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - userAgentFamily_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - serviceName_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + userAgentFamily_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - methodName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + serviceName_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + methodName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -139,39 +114,34 @@ private Access( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.AccessProto - .internal_static_google_cloud_securitycenter_v1_Access_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.AccessProto.internal_static_google_cloud_securitycenter_v1_Access_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.AccessProto - .internal_static_google_cloud_securitycenter_v1_Access_fieldAccessorTable + return com.google.cloud.securitycenter.v1.AccessProto.internal_static_google_cloud_securitycenter_v1_Access_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Access.class, - com.google.cloud.securitycenter.v1.Access.Builder.class); + com.google.cloud.securitycenter.v1.Access.class, com.google.cloud.securitycenter.v1.Access.Builder.class); } public static final int PRINCIPAL_EMAIL_FIELD_NUMBER = 1; private volatile java.lang.Object principalEmail_; /** - * - * *
    * Associated email, such as "foo@google.com".
    * 
* * string principal_email = 1; - * * @return The principalEmail. */ @java.lang.Override @@ -180,29 +150,29 @@ public java.lang.String getPrincipalEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principalEmail_ = s; return s; } } /** - * - * *
    * Associated email, such as "foo@google.com".
    * 
* * string principal_email = 1; - * * @return The bytes for principalEmail. */ @java.lang.Override - public com.google.protobuf.ByteString getPrincipalEmailBytes() { + public com.google.protobuf.ByteString + getPrincipalEmailBytes() { java.lang.Object ref = principalEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); principalEmail_ = b; return b; } else { @@ -213,14 +183,11 @@ public com.google.protobuf.ByteString getPrincipalEmailBytes() { public static final int CALLER_IP_FIELD_NUMBER = 2; private volatile java.lang.Object callerIp_; /** - * - * *
    * Caller's IP address, such as "1.1.1.1".
    * 
* * string caller_ip = 2; - * * @return The callerIp. */ @java.lang.Override @@ -229,29 +196,29 @@ public java.lang.String getCallerIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); callerIp_ = s; return s; } } /** - * - * *
    * Caller's IP address, such as "1.1.1.1".
    * 
* * string caller_ip = 2; - * * @return The bytes for callerIp. */ @java.lang.Override - public com.google.protobuf.ByteString getCallerIpBytes() { + public com.google.protobuf.ByteString + getCallerIpBytes() { java.lang.Object ref = callerIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); callerIp_ = b; return b; } else { @@ -262,14 +229,11 @@ public com.google.protobuf.ByteString getCallerIpBytes() { public static final int CALLER_IP_GEO_FIELD_NUMBER = 3; private com.google.cloud.securitycenter.v1.Geolocation callerIpGeo_; /** - * - * *
    * The caller IP's geolocation, which identifies where the call came from.
    * 
* * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; - * * @return Whether the callerIpGeo field is set. */ @java.lang.Override @@ -277,25 +241,18 @@ public boolean hasCallerIpGeo() { return callerIpGeo_ != null; } /** - * - * *
    * The caller IP's geolocation, which identifies where the call came from.
    * 
* * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; - * * @return The callerIpGeo. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Geolocation getCallerIpGeo() { - return callerIpGeo_ == null - ? com.google.cloud.securitycenter.v1.Geolocation.getDefaultInstance() - : callerIpGeo_; + return callerIpGeo_ == null ? com.google.cloud.securitycenter.v1.Geolocation.getDefaultInstance() : callerIpGeo_; } /** - * - * *
    * The caller IP's geolocation, which identifies where the call came from.
    * 
@@ -310,15 +267,12 @@ public com.google.cloud.securitycenter.v1.GeolocationOrBuilder getCallerIpGeoOrB public static final int USER_AGENT_FAMILY_FIELD_NUMBER = 4; private volatile java.lang.Object userAgentFamily_; /** - * - * *
    * What kind of user agent is associated, e.g. operating system shells,
    * embedded or stand-alone applications, etc.
    * 
* * string user_agent_family = 4; - * * @return The userAgentFamily. */ @java.lang.Override @@ -327,30 +281,30 @@ public java.lang.String getUserAgentFamily() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userAgentFamily_ = s; return s; } } /** - * - * *
    * What kind of user agent is associated, e.g. operating system shells,
    * embedded or stand-alone applications, etc.
    * 
* * string user_agent_family = 4; - * * @return The bytes for userAgentFamily. */ @java.lang.Override - public com.google.protobuf.ByteString getUserAgentFamilyBytes() { + public com.google.protobuf.ByteString + getUserAgentFamilyBytes() { java.lang.Object ref = userAgentFamily_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userAgentFamily_ = b; return b; } else { @@ -361,15 +315,12 @@ public com.google.protobuf.ByteString getUserAgentFamilyBytes() { public static final int SERVICE_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object serviceName_; /** - * - * *
    * This is the API service that the service account made a call to, e.g.
    * "iam.googleapis.com"
    * 
* * string service_name = 5; - * * @return The serviceName. */ @java.lang.Override @@ -378,30 +329,30 @@ public java.lang.String getServiceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceName_ = s; return s; } } /** - * - * *
    * This is the API service that the service account made a call to, e.g.
    * "iam.googleapis.com"
    * 
* * string service_name = 5; - * * @return The bytes for serviceName. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceNameBytes() { + public com.google.protobuf.ByteString + getServiceNameBytes() { java.lang.Object ref = serviceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceName_ = b; return b; } else { @@ -412,14 +363,11 @@ public com.google.protobuf.ByteString getServiceNameBytes() { public static final int METHOD_NAME_FIELD_NUMBER = 6; private volatile java.lang.Object methodName_; /** - * - * *
    * The method that the service account called, e.g. "SetIamPolicy".
    * 
* * string method_name = 6; - * * @return The methodName. */ @java.lang.Override @@ -428,29 +376,29 @@ public java.lang.String getMethodName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); methodName_ = s; return s; } } /** - * - * *
    * The method that the service account called, e.g. "SetIamPolicy".
    * 
* * string method_name = 6; - * * @return The bytes for methodName. */ @java.lang.Override - public com.google.protobuf.ByteString getMethodNameBytes() { + public com.google.protobuf.ByteString + getMethodNameBytes() { java.lang.Object ref = methodName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); methodName_ = b; return b; } else { @@ -459,7 +407,6 @@ public com.google.protobuf.ByteString getMethodNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -471,7 +418,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(principalEmail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, principalEmail_); } @@ -506,7 +454,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, callerIp_); } if (callerIpGeo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCallerIpGeo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCallerIpGeo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userAgentFamily_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userAgentFamily_); @@ -525,23 +474,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Access)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Access other = - (com.google.cloud.securitycenter.v1.Access) obj; + com.google.cloud.securitycenter.v1.Access other = (com.google.cloud.securitycenter.v1.Access) obj; - if (!getPrincipalEmail().equals(other.getPrincipalEmail())) return false; - if (!getCallerIp().equals(other.getCallerIp())) return false; + if (!getPrincipalEmail() + .equals(other.getPrincipalEmail())) return false; + if (!getCallerIp() + .equals(other.getCallerIp())) return false; if (hasCallerIpGeo() != other.hasCallerIpGeo()) return false; if (hasCallerIpGeo()) { - if (!getCallerIpGeo().equals(other.getCallerIpGeo())) return false; - } - if (!getUserAgentFamily().equals(other.getUserAgentFamily())) return false; - if (!getServiceName().equals(other.getServiceName())) return false; - if (!getMethodName().equals(other.getMethodName())) return false; + if (!getCallerIpGeo() + .equals(other.getCallerIpGeo())) return false; + } + if (!getUserAgentFamily() + .equals(other.getUserAgentFamily())) return false; + if (!getServiceName() + .equals(other.getServiceName())) return false; + if (!getMethodName() + .equals(other.getMethodName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -572,127 +526,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Access parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Access parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Access parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Access parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Access parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Access parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Access parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Access parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Access parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.Access parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.Access parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Access parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Access parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Access parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.Access prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents an access event.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Access} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Access) com.google.cloud.securitycenter.v1.AccessOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.AccessProto - .internal_static_google_cloud_securitycenter_v1_Access_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.AccessProto.internal_static_google_cloud_securitycenter_v1_Access_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.AccessProto - .internal_static_google_cloud_securitycenter_v1_Access_fieldAccessorTable + return com.google.cloud.securitycenter.v1.AccessProto.internal_static_google_cloud_securitycenter_v1_Access_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Access.class, - com.google.cloud.securitycenter.v1.Access.Builder.class); + com.google.cloud.securitycenter.v1.Access.class, com.google.cloud.securitycenter.v1.Access.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.Access.newBuilder() @@ -700,15 +645,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -732,9 +678,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.AccessProto - .internal_static_google_cloud_securitycenter_v1_Access_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.AccessProto.internal_static_google_cloud_securitycenter_v1_Access_descriptor; } @java.lang.Override @@ -753,8 +699,7 @@ public com.google.cloud.securitycenter.v1.Access build() { @java.lang.Override public com.google.cloud.securitycenter.v1.Access buildPartial() { - com.google.cloud.securitycenter.v1.Access result = - new com.google.cloud.securitycenter.v1.Access(this); + com.google.cloud.securitycenter.v1.Access result = new com.google.cloud.securitycenter.v1.Access(this); result.principalEmail_ = principalEmail_; result.callerIp_ = callerIp_; if (callerIpGeoBuilder_ == null) { @@ -773,39 +718,38 @@ public com.google.cloud.securitycenter.v1.Access buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.Access) { - return mergeFrom((com.google.cloud.securitycenter.v1.Access) other); + return mergeFrom((com.google.cloud.securitycenter.v1.Access)other); } else { super.mergeFrom(other); return this; @@ -868,20 +812,18 @@ public Builder mergeFrom( private java.lang.Object principalEmail_ = ""; /** - * - * *
      * Associated email, such as "foo@google.com".
      * 
* * string principal_email = 1; - * * @return The principalEmail. */ public java.lang.String getPrincipalEmail() { java.lang.Object ref = principalEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principalEmail_ = s; return s; @@ -890,21 +832,20 @@ public java.lang.String getPrincipalEmail() { } } /** - * - * *
      * Associated email, such as "foo@google.com".
      * 
* * string principal_email = 1; - * * @return The bytes for principalEmail. */ - public com.google.protobuf.ByteString getPrincipalEmailBytes() { + public com.google.protobuf.ByteString + getPrincipalEmailBytes() { java.lang.Object ref = principalEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); principalEmail_ = b; return b; } else { @@ -912,61 +853,54 @@ public com.google.protobuf.ByteString getPrincipalEmailBytes() { } } /** - * - * *
      * Associated email, such as "foo@google.com".
      * 
* * string principal_email = 1; - * * @param value The principalEmail to set. * @return This builder for chaining. */ - public Builder setPrincipalEmail(java.lang.String value) { + public Builder setPrincipalEmail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + principalEmail_ = value; onChanged(); return this; } /** - * - * *
      * Associated email, such as "foo@google.com".
      * 
* * string principal_email = 1; - * * @return This builder for chaining. */ public Builder clearPrincipalEmail() { - + principalEmail_ = getDefaultInstance().getPrincipalEmail(); onChanged(); return this; } /** - * - * *
      * Associated email, such as "foo@google.com".
      * 
* * string principal_email = 1; - * * @param value The bytes for principalEmail to set. * @return This builder for chaining. */ - public Builder setPrincipalEmailBytes(com.google.protobuf.ByteString value) { + public Builder setPrincipalEmailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principalEmail_ = value; onChanged(); return this; @@ -974,20 +908,18 @@ public Builder setPrincipalEmailBytes(com.google.protobuf.ByteString value) { private java.lang.Object callerIp_ = ""; /** - * - * *
      * Caller's IP address, such as "1.1.1.1".
      * 
* * string caller_ip = 2; - * * @return The callerIp. */ public java.lang.String getCallerIp() { java.lang.Object ref = callerIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); callerIp_ = s; return s; @@ -996,21 +928,20 @@ public java.lang.String getCallerIp() { } } /** - * - * *
      * Caller's IP address, such as "1.1.1.1".
      * 
* * string caller_ip = 2; - * * @return The bytes for callerIp. */ - public com.google.protobuf.ByteString getCallerIpBytes() { + public com.google.protobuf.ByteString + getCallerIpBytes() { java.lang.Object ref = callerIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); callerIp_ = b; return b; } else { @@ -1018,61 +949,54 @@ public com.google.protobuf.ByteString getCallerIpBytes() { } } /** - * - * *
      * Caller's IP address, such as "1.1.1.1".
      * 
* * string caller_ip = 2; - * * @param value The callerIp to set. * @return This builder for chaining. */ - public Builder setCallerIp(java.lang.String value) { + public Builder setCallerIp( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + callerIp_ = value; onChanged(); return this; } /** - * - * *
      * Caller's IP address, such as "1.1.1.1".
      * 
* * string caller_ip = 2; - * * @return This builder for chaining. */ public Builder clearCallerIp() { - + callerIp_ = getDefaultInstance().getCallerIp(); onChanged(); return this; } /** - * - * *
      * Caller's IP address, such as "1.1.1.1".
      * 
* * string caller_ip = 2; - * * @param value The bytes for callerIp to set. * @return This builder for chaining. */ - public Builder setCallerIpBytes(com.google.protobuf.ByteString value) { + public Builder setCallerIpBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + callerIp_ = value; onChanged(); return this; @@ -1080,47 +1004,34 @@ public Builder setCallerIpBytes(com.google.protobuf.ByteString value) { private com.google.cloud.securitycenter.v1.Geolocation callerIpGeo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Geolocation, - com.google.cloud.securitycenter.v1.Geolocation.Builder, - com.google.cloud.securitycenter.v1.GeolocationOrBuilder> - callerIpGeoBuilder_; + com.google.cloud.securitycenter.v1.Geolocation, com.google.cloud.securitycenter.v1.Geolocation.Builder, com.google.cloud.securitycenter.v1.GeolocationOrBuilder> callerIpGeoBuilder_; /** - * - * *
      * The caller IP's geolocation, which identifies where the call came from.
      * 
* * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; - * * @return Whether the callerIpGeo field is set. */ public boolean hasCallerIpGeo() { return callerIpGeoBuilder_ != null || callerIpGeo_ != null; } /** - * - * *
      * The caller IP's geolocation, which identifies where the call came from.
      * 
* * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; - * * @return The callerIpGeo. */ public com.google.cloud.securitycenter.v1.Geolocation getCallerIpGeo() { if (callerIpGeoBuilder_ == null) { - return callerIpGeo_ == null - ? com.google.cloud.securitycenter.v1.Geolocation.getDefaultInstance() - : callerIpGeo_; + return callerIpGeo_ == null ? com.google.cloud.securitycenter.v1.Geolocation.getDefaultInstance() : callerIpGeo_; } else { return callerIpGeoBuilder_.getMessage(); } } /** - * - * *
      * The caller IP's geolocation, which identifies where the call came from.
      * 
@@ -1141,8 +1052,6 @@ public Builder setCallerIpGeo(com.google.cloud.securitycenter.v1.Geolocation val return this; } /** - * - * *
      * The caller IP's geolocation, which identifies where the call came from.
      * 
@@ -1161,8 +1070,6 @@ public Builder setCallerIpGeo( return this; } /** - * - * *
      * The caller IP's geolocation, which identifies where the call came from.
      * 
@@ -1173,9 +1080,7 @@ public Builder mergeCallerIpGeo(com.google.cloud.securitycenter.v1.Geolocation v if (callerIpGeoBuilder_ == null) { if (callerIpGeo_ != null) { callerIpGeo_ = - com.google.cloud.securitycenter.v1.Geolocation.newBuilder(callerIpGeo_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.Geolocation.newBuilder(callerIpGeo_).mergeFrom(value).buildPartial(); } else { callerIpGeo_ = value; } @@ -1187,8 +1092,6 @@ public Builder mergeCallerIpGeo(com.google.cloud.securitycenter.v1.Geolocation v return this; } /** - * - * *
      * The caller IP's geolocation, which identifies where the call came from.
      * 
@@ -1207,8 +1110,6 @@ public Builder clearCallerIpGeo() { return this; } /** - * - * *
      * The caller IP's geolocation, which identifies where the call came from.
      * 
@@ -1216,13 +1117,11 @@ public Builder clearCallerIpGeo() { * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; */ public com.google.cloud.securitycenter.v1.Geolocation.Builder getCallerIpGeoBuilder() { - + onChanged(); return getCallerIpGeoFieldBuilder().getBuilder(); } /** - * - * *
      * The caller IP's geolocation, which identifies where the call came from.
      * 
@@ -1233,14 +1132,11 @@ public com.google.cloud.securitycenter.v1.GeolocationOrBuilder getCallerIpGeoOrB if (callerIpGeoBuilder_ != null) { return callerIpGeoBuilder_.getMessageOrBuilder(); } else { - return callerIpGeo_ == null - ? com.google.cloud.securitycenter.v1.Geolocation.getDefaultInstance() - : callerIpGeo_; + return callerIpGeo_ == null ? + com.google.cloud.securitycenter.v1.Geolocation.getDefaultInstance() : callerIpGeo_; } } /** - * - * *
      * The caller IP's geolocation, which identifies where the call came from.
      * 
@@ -1248,17 +1144,14 @@ public com.google.cloud.securitycenter.v1.GeolocationOrBuilder getCallerIpGeoOrB * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Geolocation, - com.google.cloud.securitycenter.v1.Geolocation.Builder, - com.google.cloud.securitycenter.v1.GeolocationOrBuilder> + com.google.cloud.securitycenter.v1.Geolocation, com.google.cloud.securitycenter.v1.Geolocation.Builder, com.google.cloud.securitycenter.v1.GeolocationOrBuilder> getCallerIpGeoFieldBuilder() { if (callerIpGeoBuilder_ == null) { - callerIpGeoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Geolocation, - com.google.cloud.securitycenter.v1.Geolocation.Builder, - com.google.cloud.securitycenter.v1.GeolocationOrBuilder>( - getCallerIpGeo(), getParentForChildren(), isClean()); + callerIpGeoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Geolocation, com.google.cloud.securitycenter.v1.Geolocation.Builder, com.google.cloud.securitycenter.v1.GeolocationOrBuilder>( + getCallerIpGeo(), + getParentForChildren(), + isClean()); callerIpGeo_ = null; } return callerIpGeoBuilder_; @@ -1266,21 +1159,19 @@ public com.google.cloud.securitycenter.v1.GeolocationOrBuilder getCallerIpGeoOrB private java.lang.Object userAgentFamily_ = ""; /** - * - * *
      * What kind of user agent is associated, e.g. operating system shells,
      * embedded or stand-alone applications, etc.
      * 
* * string user_agent_family = 4; - * * @return The userAgentFamily. */ public java.lang.String getUserAgentFamily() { java.lang.Object ref = userAgentFamily_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userAgentFamily_ = s; return s; @@ -1289,22 +1180,21 @@ public java.lang.String getUserAgentFamily() { } } /** - * - * *
      * What kind of user agent is associated, e.g. operating system shells,
      * embedded or stand-alone applications, etc.
      * 
* * string user_agent_family = 4; - * * @return The bytes for userAgentFamily. */ - public com.google.protobuf.ByteString getUserAgentFamilyBytes() { + public com.google.protobuf.ByteString + getUserAgentFamilyBytes() { java.lang.Object ref = userAgentFamily_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userAgentFamily_ = b; return b; } else { @@ -1312,64 +1202,57 @@ public com.google.protobuf.ByteString getUserAgentFamilyBytes() { } } /** - * - * *
      * What kind of user agent is associated, e.g. operating system shells,
      * embedded or stand-alone applications, etc.
      * 
* * string user_agent_family = 4; - * * @param value The userAgentFamily to set. * @return This builder for chaining. */ - public Builder setUserAgentFamily(java.lang.String value) { + public Builder setUserAgentFamily( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + userAgentFamily_ = value; onChanged(); return this; } /** - * - * *
      * What kind of user agent is associated, e.g. operating system shells,
      * embedded or stand-alone applications, etc.
      * 
* * string user_agent_family = 4; - * * @return This builder for chaining. */ public Builder clearUserAgentFamily() { - + userAgentFamily_ = getDefaultInstance().getUserAgentFamily(); onChanged(); return this; } /** - * - * *
      * What kind of user agent is associated, e.g. operating system shells,
      * embedded or stand-alone applications, etc.
      * 
* * string user_agent_family = 4; - * * @param value The bytes for userAgentFamily to set. * @return This builder for chaining. */ - public Builder setUserAgentFamilyBytes(com.google.protobuf.ByteString value) { + public Builder setUserAgentFamilyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userAgentFamily_ = value; onChanged(); return this; @@ -1377,21 +1260,19 @@ public Builder setUserAgentFamilyBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceName_ = ""; /** - * - * *
      * This is the API service that the service account made a call to, e.g.
      * "iam.googleapis.com"
      * 
* * string service_name = 5; - * * @return The serviceName. */ public java.lang.String getServiceName() { java.lang.Object ref = serviceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceName_ = s; return s; @@ -1400,22 +1281,21 @@ public java.lang.String getServiceName() { } } /** - * - * *
      * This is the API service that the service account made a call to, e.g.
      * "iam.googleapis.com"
      * 
* * string service_name = 5; - * * @return The bytes for serviceName. */ - public com.google.protobuf.ByteString getServiceNameBytes() { + public com.google.protobuf.ByteString + getServiceNameBytes() { java.lang.Object ref = serviceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceName_ = b; return b; } else { @@ -1423,64 +1303,57 @@ public com.google.protobuf.ByteString getServiceNameBytes() { } } /** - * - * *
      * This is the API service that the service account made a call to, e.g.
      * "iam.googleapis.com"
      * 
* * string service_name = 5; - * * @param value The serviceName to set. * @return This builder for chaining. */ - public Builder setServiceName(java.lang.String value) { + public Builder setServiceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceName_ = value; onChanged(); return this; } /** - * - * *
      * This is the API service that the service account made a call to, e.g.
      * "iam.googleapis.com"
      * 
* * string service_name = 5; - * * @return This builder for chaining. */ public Builder clearServiceName() { - + serviceName_ = getDefaultInstance().getServiceName(); onChanged(); return this; } /** - * - * *
      * This is the API service that the service account made a call to, e.g.
      * "iam.googleapis.com"
      * 
* * string service_name = 5; - * * @param value The bytes for serviceName to set. * @return This builder for chaining. */ - public Builder setServiceNameBytes(com.google.protobuf.ByteString value) { + public Builder setServiceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceName_ = value; onChanged(); return this; @@ -1488,20 +1361,18 @@ public Builder setServiceNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object methodName_ = ""; /** - * - * *
      * The method that the service account called, e.g. "SetIamPolicy".
      * 
* * string method_name = 6; - * * @return The methodName. */ public java.lang.String getMethodName() { java.lang.Object ref = methodName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); methodName_ = s; return s; @@ -1510,21 +1381,20 @@ public java.lang.String getMethodName() { } } /** - * - * *
      * The method that the service account called, e.g. "SetIamPolicy".
      * 
* * string method_name = 6; - * * @return The bytes for methodName. */ - public com.google.protobuf.ByteString getMethodNameBytes() { + public com.google.protobuf.ByteString + getMethodNameBytes() { java.lang.Object ref = methodName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); methodName_ = b; return b; } else { @@ -1532,68 +1402,61 @@ public com.google.protobuf.ByteString getMethodNameBytes() { } } /** - * - * *
      * The method that the service account called, e.g. "SetIamPolicy".
      * 
* * string method_name = 6; - * * @param value The methodName to set. * @return This builder for chaining. */ - public Builder setMethodName(java.lang.String value) { + public Builder setMethodName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + methodName_ = value; onChanged(); return this; } /** - * - * *
      * The method that the service account called, e.g. "SetIamPolicy".
      * 
* * string method_name = 6; - * * @return This builder for chaining. */ public Builder clearMethodName() { - + methodName_ = getDefaultInstance().getMethodName(); onChanged(); return this; } /** - * - * *
      * The method that the service account called, e.g. "SetIamPolicy".
      * 
* * string method_name = 6; - * * @param value The bytes for methodName to set. * @return This builder for chaining. */ - public Builder setMethodNameBytes(com.google.protobuf.ByteString value) { + public Builder setMethodNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + methodName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1603,12 +1466,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Access) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Access) private static final com.google.cloud.securitycenter.v1.Access DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Access(); } @@ -1617,16 +1480,16 @@ public static com.google.cloud.securitycenter.v1.Access getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Access parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Access(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Access parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Access(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1641,4 +1504,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Access getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessOrBuilder.java similarity index 74% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessOrBuilder.java index d30c7599c..e377e2fac 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessOrBuilder.java @@ -1,105 +1,71 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/access.proto package com.google.cloud.securitycenter.v1; -public interface AccessOrBuilder - extends +public interface AccessOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Access) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Associated email, such as "foo@google.com".
    * 
* * string principal_email = 1; - * * @return The principalEmail. */ java.lang.String getPrincipalEmail(); /** - * - * *
    * Associated email, such as "foo@google.com".
    * 
* * string principal_email = 1; - * * @return The bytes for principalEmail. */ - com.google.protobuf.ByteString getPrincipalEmailBytes(); + com.google.protobuf.ByteString + getPrincipalEmailBytes(); /** - * - * *
    * Caller's IP address, such as "1.1.1.1".
    * 
* * string caller_ip = 2; - * * @return The callerIp. */ java.lang.String getCallerIp(); /** - * - * *
    * Caller's IP address, such as "1.1.1.1".
    * 
* * string caller_ip = 2; - * * @return The bytes for callerIp. */ - com.google.protobuf.ByteString getCallerIpBytes(); + com.google.protobuf.ByteString + getCallerIpBytes(); /** - * - * *
    * The caller IP's geolocation, which identifies where the call came from.
    * 
* * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; - * * @return Whether the callerIpGeo field is set. */ boolean hasCallerIpGeo(); /** - * - * *
    * The caller IP's geolocation, which identifies where the call came from.
    * 
* * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; - * * @return The callerIpGeo. */ com.google.cloud.securitycenter.v1.Geolocation getCallerIpGeo(); /** - * - * *
    * The caller IP's geolocation, which identifies where the call came from.
    * 
@@ -109,81 +75,66 @@ public interface AccessOrBuilder com.google.cloud.securitycenter.v1.GeolocationOrBuilder getCallerIpGeoOrBuilder(); /** - * - * *
    * What kind of user agent is associated, e.g. operating system shells,
    * embedded or stand-alone applications, etc.
    * 
* * string user_agent_family = 4; - * * @return The userAgentFamily. */ java.lang.String getUserAgentFamily(); /** - * - * *
    * What kind of user agent is associated, e.g. operating system shells,
    * embedded or stand-alone applications, etc.
    * 
* * string user_agent_family = 4; - * * @return The bytes for userAgentFamily. */ - com.google.protobuf.ByteString getUserAgentFamilyBytes(); + com.google.protobuf.ByteString + getUserAgentFamilyBytes(); /** - * - * *
    * This is the API service that the service account made a call to, e.g.
    * "iam.googleapis.com"
    * 
* * string service_name = 5; - * * @return The serviceName. */ java.lang.String getServiceName(); /** - * - * *
    * This is the API service that the service account made a call to, e.g.
    * "iam.googleapis.com"
    * 
* * string service_name = 5; - * * @return The bytes for serviceName. */ - com.google.protobuf.ByteString getServiceNameBytes(); + com.google.protobuf.ByteString + getServiceNameBytes(); /** - * - * *
    * The method that the service account called, e.g. "SetIamPolicy".
    * 
* * string method_name = 6; - * * @return The methodName. */ java.lang.String getMethodName(); /** - * - * *
    * The method that the service account called, e.g. "SetIamPolicy".
    * 
* * string method_name = 6; - * * @return The bytes for methodName. */ - com.google.protobuf.ByteString getMethodNameBytes(); + com.google.protobuf.ByteString + getMethodNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessProto.java new file mode 100644 index 000000000..8ac0c9a42 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessProto.java @@ -0,0 +1,70 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/access.proto + +package com.google.cloud.securitycenter.v1; + +public final class AccessProto { + private AccessProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Access_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Access_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Geolocation_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/securitycenter/v1/access." + + "proto\022\036google.cloud.securitycenter.v1\"\276\001" + + "\n\006Access\022\027\n\017principal_email\030\001 \001(\t\022\021\n\tcal" + + "ler_ip\030\002 \001(\t\022B\n\rcaller_ip_geo\030\003 \001(\0132+.go" + + "ogle.cloud.securitycenter.v1.Geolocation" + + "\022\031\n\021user_agent_family\030\004 \001(\t\022\024\n\014service_n" + + "ame\030\005 \001(\t\022\023\n\013method_name\030\006 \001(\t\"\"\n\013Geoloc" + + "ation\022\023\n\013region_code\030\001 \001(\tB\347\001\n\"com.googl" + + "e.cloud.securitycenter.v1B\013AccessProtoP\001" + + "ZLgoogle.golang.org/genproto/googleapis/" + + "cloud/securitycenter/v1;securitycenter\252\002" + + "\036Google.Cloud.SecurityCenter.V1\312\002\036Google" + + "\\Cloud\\SecurityCenter\\V1\352\002!Google::Cloud" + + "::SecurityCenter::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_securitycenter_v1_Access_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Access_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Access_descriptor, + new java.lang.String[] { "PrincipalEmail", "CallerIp", "CallerIpGeo", "UserAgentFamily", "ServiceName", "MethodName", }); + internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_securitycenter_v1_Geolocation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor, + new java.lang.String[] { "RegionCode", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java similarity index 75% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java index 7dded4b14..fefa03084 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/asset.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Security Command Center representation of a Google Cloud
  * resource.
@@ -32,16 +15,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.Asset}
  */
-public final class Asset extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Asset extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Asset)
     AssetOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Asset.newBuilder() to construct.
   private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Asset() {
     name_ = "";
     canonicalName_ = "";
@@ -49,15 +31,16 @@ private Asset() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Asset();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Asset(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,126 +60,103 @@ private Asset(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder subBuilder = null;
+            if (securityCenterProperties_ != null) {
+              subBuilder = securityCenterProperties_.toBuilder();
+            }
+            securityCenterProperties_ = input.readMessage(com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(securityCenterProperties_);
+              securityCenterProperties_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder subBuilder =
-                  null;
-              if (securityCenterProperties_ != null) {
-                subBuilder = securityCenterProperties_.toBuilder();
-              }
-              securityCenterProperties_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(securityCenterProperties_);
-                securityCenterProperties_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 58: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              resourceProperties_ = com.google.protobuf.MapField.newMapField(
+                  ResourcePropertiesDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 58:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                resourceProperties_ =
-                    com.google.protobuf.MapField.newMapField(
-                        ResourcePropertiesDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry
-                  resourceProperties__ =
-                      input.readMessage(
-                          ResourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
-                          extensionRegistry);
-              resourceProperties_
-                  .getMutableMap()
-                  .put(resourceProperties__.getKey(), resourceProperties__.getValue());
-              break;
+            com.google.protobuf.MapEntry
+            resourceProperties__ = input.readMessage(
+                ResourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            resourceProperties_.getMutableMap().put(
+                resourceProperties__.getKey(), resourceProperties__.getValue());
+            break;
+          }
+          case 66: {
+            com.google.cloud.securitycenter.v1.SecurityMarks.Builder subBuilder = null;
+            if (securityMarks_ != null) {
+              subBuilder = securityMarks_.toBuilder();
             }
-          case 66:
-            {
-              com.google.cloud.securitycenter.v1.SecurityMarks.Builder subBuilder = null;
-              if (securityMarks_ != null) {
-                subBuilder = securityMarks_.toBuilder();
-              }
-              securityMarks_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1.SecurityMarks.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(securityMarks_);
-                securityMarks_ = subBuilder.buildPartial();
-              }
-
-              break;
+            securityMarks_ = input.readMessage(com.google.cloud.securitycenter.v1.SecurityMarks.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(securityMarks_);
+              securityMarks_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 74: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 82:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 90:
-            {
-              com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder subBuilder = null;
-              if (iamPolicy_ != null) {
-                subBuilder = iamPolicy_.toBuilder();
-              }
-              iamPolicy_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1.Asset.IamPolicy.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(iamPolicy_);
-                iamPolicy_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 82: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
+            }
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 106:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              canonicalName_ = s;
-              break;
+            break;
+          }
+          case 90: {
+            com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder subBuilder = null;
+            if (iamPolicy_ != null) {
+              subBuilder = iamPolicy_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            iamPolicy_ = input.readMessage(com.google.cloud.securitycenter.v1.Asset.IamPolicy.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(iamPolicy_);
+              iamPolicy_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          case 106: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            canonicalName_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -204,47 +164,43 @@ private Asset(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1.AssetOuterClass
-        .internal_static_google_cloud_securitycenter_v1_Asset_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 7:
         return internalGetResourceProperties();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.AssetOuterClass
-        .internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.Asset.class,
-            com.google.cloud.securitycenter.v1.Asset.Builder.class);
+            com.google.cloud.securitycenter.v1.Asset.class, com.google.cloud.securitycenter.v1.Asset.Builder.class);
   }
 
-  public interface SecurityCenterPropertiesOrBuilder
-      extends
+  public interface SecurityCenterPropertiesOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Asset.SecurityCenterProperties)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -252,13 +208,10 @@ public interface SecurityCenterPropertiesOrBuilder
      * 
* * string resource_name = 1; - * * @return The resourceName. */ java.lang.String getResourceName(); /** - * - * *
      * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -266,14 +219,12 @@ public interface SecurityCenterPropertiesOrBuilder
      * 
* * string resource_name = 1; - * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString getResourceNameBytes(); + com.google.protobuf.ByteString + getResourceNameBytes(); /** - * - * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -282,13 +233,10 @@ public interface SecurityCenterPropertiesOrBuilder
      * 
* * string resource_type = 2; - * * @return The resourceType. */ java.lang.String getResourceType(); /** - * - * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -297,194 +245,157 @@ public interface SecurityCenterPropertiesOrBuilder
      * 
* * string resource_type = 2; - * * @return The bytes for resourceType. */ - com.google.protobuf.ByteString getResourceTypeBytes(); + com.google.protobuf.ByteString + getResourceTypeBytes(); /** - * - * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; - * * @return The resourceParent. */ java.lang.String getResourceParent(); /** - * - * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; - * * @return The bytes for resourceParent. */ - com.google.protobuf.ByteString getResourceParentBytes(); + com.google.protobuf.ByteString + getResourceParentBytes(); /** - * - * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; - * * @return The resourceProject. */ java.lang.String getResourceProject(); /** - * - * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; - * * @return The bytes for resourceProject. */ - com.google.protobuf.ByteString getResourceProjectBytes(); + com.google.protobuf.ByteString + getResourceProjectBytes(); /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @return A list containing the resourceOwners. */ - java.util.List getResourceOwnersList(); + java.util.List + getResourceOwnersList(); /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @return The count of resourceOwners. */ int getResourceOwnersCount(); /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ java.lang.String getResourceOwners(int index); /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ - com.google.protobuf.ByteString getResourceOwnersBytes(int index); + com.google.protobuf.ByteString + getResourceOwnersBytes(int index); /** - * - * *
      * The user defined display name for this resource.
      * 
* * string resource_display_name = 6; - * * @return The resourceDisplayName. */ java.lang.String getResourceDisplayName(); /** - * - * *
      * The user defined display name for this resource.
      * 
* * string resource_display_name = 6; - * * @return The bytes for resourceDisplayName. */ - com.google.protobuf.ByteString getResourceDisplayNameBytes(); + com.google.protobuf.ByteString + getResourceDisplayNameBytes(); /** - * - * *
      * The user defined display name for the parent of this resource.
      * 
* * string resource_parent_display_name = 7; - * * @return The resourceParentDisplayName. */ java.lang.String getResourceParentDisplayName(); /** - * - * *
      * The user defined display name for the parent of this resource.
      * 
* * string resource_parent_display_name = 7; - * * @return The bytes for resourceParentDisplayName. */ - com.google.protobuf.ByteString getResourceParentDisplayNameBytes(); + com.google.protobuf.ByteString + getResourceParentDisplayNameBytes(); /** - * - * *
      * The user defined display name for the project of this resource.
      * 
* * string resource_project_display_name = 8; - * * @return The resourceProjectDisplayName. */ java.lang.String getResourceProjectDisplayName(); /** - * - * *
      * The user defined display name for the project of this resource.
      * 
* * string resource_project_display_name = 8; - * * @return The bytes for resourceProjectDisplayName. */ - com.google.protobuf.ByteString getResourceProjectDisplayNameBytes(); + com.google.protobuf.ByteString + getResourceProjectDisplayNameBytes(); /** - * - * *
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -493,10 +404,9 @@ public interface SecurityCenterPropertiesOrBuilder
      *
      * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
      */
-    java.util.List getFoldersList();
+    java.util.List 
+        getFoldersList();
     /**
-     *
-     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -507,8 +417,6 @@ public interface SecurityCenterPropertiesOrBuilder
      */
     com.google.cloud.securitycenter.v1.Folder getFolders(int index);
     /**
-     *
-     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -519,8 +427,6 @@ public interface SecurityCenterPropertiesOrBuilder
      */
     int getFoldersCount();
     /**
-     *
-     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -529,11 +435,9 @@ public interface SecurityCenterPropertiesOrBuilder
      *
      * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
      */
-    java.util.List
+    java.util.List 
         getFoldersOrBuilderList();
     /**
-     *
-     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -542,11 +446,10 @@ public interface SecurityCenterPropertiesOrBuilder
      *
      * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
      */
-    com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index);
+    com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(
+        int index);
   }
   /**
-   *
-   *
    * 
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
@@ -554,16 +457,15 @@ public interface SecurityCenterPropertiesOrBuilder
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.Asset.SecurityCenterProperties}
    */
-  public static final class SecurityCenterProperties extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class SecurityCenterProperties extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Asset.SecurityCenterProperties)
       SecurityCenterPropertiesOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use SecurityCenterProperties.newBuilder() to construct.
     private SecurityCenterProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private SecurityCenterProperties() {
       resourceName_ = "";
       resourceType_ = "";
@@ -578,15 +480,16 @@ private SecurityCenterProperties() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new SecurityCenterProperties();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private SecurityCenterProperties(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -606,83 +509,73 @@ private SecurityCenterProperties(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                resourceName_ = s;
-                break;
-              }
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              resourceName_ = s;
+              break;
+            }
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                resourceType_ = s;
-                break;
-              }
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              resourceType_ = s;
+              break;
+            }
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                resourceParent_ = s;
-                break;
-              }
-            case 34:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              resourceParent_ = s;
+              break;
+            }
+            case 34: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                resourceProject_ = s;
-                break;
-              }
-            case 42:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  resourceOwners_ = new com.google.protobuf.LazyStringArrayList();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                resourceOwners_.add(s);
-                break;
+              resourceProject_ = s;
+              break;
+            }
+            case 42: {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                resourceOwners_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
               }
-            case 50:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              resourceOwners_.add(s);
+              break;
+            }
+            case 50: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                resourceDisplayName_ = s;
-                break;
-              }
-            case 58:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              resourceDisplayName_ = s;
+              break;
+            }
+            case 58: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                resourceParentDisplayName_ = s;
-                break;
-              }
-            case 66:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              resourceParentDisplayName_ = s;
+              break;
+            }
+            case 66: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                resourceProjectDisplayName_ = s;
-                break;
-              }
-            case 82:
-              {
-                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                  folders_ = new java.util.ArrayList();
-                  mutable_bitField0_ |= 0x00000002;
-                }
-                folders_.add(
-                    input.readMessage(
-                        com.google.cloud.securitycenter.v1.Folder.parser(), extensionRegistry));
-                break;
+              resourceProjectDisplayName_ = s;
+              break;
+            }
+            case 82: {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                folders_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              folders_.add(
+                  input.readMessage(com.google.cloud.securitycenter.v1.Folder.parser(), extensionRegistry));
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -690,7 +583,8 @@ private SecurityCenterProperties(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           resourceOwners_ = resourceOwners_.getUnmodifiableView();
@@ -702,27 +596,22 @@ private SecurityCenterProperties(
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.AssetOuterClass
-          .internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.AssetOuterClass
-          .internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.class,
-              com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder.class);
+              com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.class, com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder.class);
     }
 
     public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
     private volatile java.lang.Object resourceName_;
     /**
-     *
-     *
      * 
      * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -730,7 +619,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string resource_name = 1; - * * @return The resourceName. */ @java.lang.Override @@ -739,15 +627,14 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** - * - * *
      * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -755,15 +642,16 @@ public java.lang.String getResourceName() {
      * 
* * string resource_name = 1; - * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -774,8 +662,6 @@ public com.google.protobuf.ByteString getResourceNameBytes() { public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object resourceType_; /** - * - * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -784,7 +670,6 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
      * 
* * string resource_type = 2; - * * @return The resourceType. */ @java.lang.Override @@ -793,15 +678,14 @@ public java.lang.String getResourceType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; } } /** - * - * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -810,15 +694,16 @@ public java.lang.String getResourceType() {
      * 
* * string resource_type = 2; - * * @return The bytes for resourceType. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceTypeBytes() { + public com.google.protobuf.ByteString + getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceType_ = b; return b; } else { @@ -829,15 +714,12 @@ public com.google.protobuf.ByteString getResourceTypeBytes() { public static final int RESOURCE_PARENT_FIELD_NUMBER = 3; private volatile java.lang.Object resourceParent_; /** - * - * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; - * * @return The resourceParent. */ @java.lang.Override @@ -846,30 +728,30 @@ public java.lang.String getResourceParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParent_ = s; return s; } } /** - * - * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; - * * @return The bytes for resourceParent. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceParentBytes() { + public com.google.protobuf.ByteString + getResourceParentBytes() { java.lang.Object ref = resourceParent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceParent_ = b; return b; } else { @@ -880,15 +762,12 @@ public com.google.protobuf.ByteString getResourceParentBytes() { public static final int RESOURCE_PROJECT_FIELD_NUMBER = 4; private volatile java.lang.Object resourceProject_; /** - * - * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; - * * @return The resourceProject. */ @java.lang.Override @@ -897,30 +776,30 @@ public java.lang.String getResourceProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProject_ = s; return s; } } /** - * - * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; - * * @return The bytes for resourceProject. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceProjectBytes() { + public com.google.protobuf.ByteString + getResourceProjectBytes() { java.lang.Object ref = resourceProject_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceProject_ = b; return b; } else { @@ -931,42 +810,34 @@ public com.google.protobuf.ByteString getResourceProjectBytes() { public static final int RESOURCE_OWNERS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList resourceOwners_; /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @return A list containing the resourceOwners. */ - public com.google.protobuf.ProtocolStringList getResourceOwnersList() { + public com.google.protobuf.ProtocolStringList + getResourceOwnersList() { return resourceOwners_; } /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @return The count of resourceOwners. */ public int getResourceOwnersCount() { return resourceOwners_.size(); } /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ @@ -974,32 +845,27 @@ public java.lang.String getResourceOwners(int index) { return resourceOwners_.get(index); } /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ - public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { + public com.google.protobuf.ByteString + getResourceOwnersBytes(int index) { return resourceOwners_.getByteString(index); } public static final int RESOURCE_DISPLAY_NAME_FIELD_NUMBER = 6; private volatile java.lang.Object resourceDisplayName_; /** - * - * *
      * The user defined display name for this resource.
      * 
* * string resource_display_name = 6; - * * @return The resourceDisplayName. */ @java.lang.Override @@ -1008,29 +874,29 @@ public java.lang.String getResourceDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceDisplayName_ = s; return s; } } /** - * - * *
      * The user defined display name for this resource.
      * 
* * string resource_display_name = 6; - * * @return The bytes for resourceDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceDisplayNameBytes() { + public com.google.protobuf.ByteString + getResourceDisplayNameBytes() { java.lang.Object ref = resourceDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceDisplayName_ = b; return b; } else { @@ -1041,14 +907,11 @@ public com.google.protobuf.ByteString getResourceDisplayNameBytes() { public static final int RESOURCE_PARENT_DISPLAY_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object resourceParentDisplayName_; /** - * - * *
      * The user defined display name for the parent of this resource.
      * 
* * string resource_parent_display_name = 7; - * * @return The resourceParentDisplayName. */ @java.lang.Override @@ -1057,29 +920,29 @@ public java.lang.String getResourceParentDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParentDisplayName_ = s; return s; } } /** - * - * *
      * The user defined display name for the parent of this resource.
      * 
* * string resource_parent_display_name = 7; - * * @return The bytes for resourceParentDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() { + public com.google.protobuf.ByteString + getResourceParentDisplayNameBytes() { java.lang.Object ref = resourceParentDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceParentDisplayName_ = b; return b; } else { @@ -1090,14 +953,11 @@ public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() { public static final int RESOURCE_PROJECT_DISPLAY_NAME_FIELD_NUMBER = 8; private volatile java.lang.Object resourceProjectDisplayName_; /** - * - * *
      * The user defined display name for the project of this resource.
      * 
* * string resource_project_display_name = 8; - * * @return The resourceProjectDisplayName. */ @java.lang.Override @@ -1106,29 +966,29 @@ public java.lang.String getResourceProjectDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProjectDisplayName_ = s; return s; } } /** - * - * *
      * The user defined display name for the project of this resource.
      * 
* * string resource_project_display_name = 8; - * * @return The bytes for resourceProjectDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceProjectDisplayNameBytes() { + public com.google.protobuf.ByteString + getResourceProjectDisplayNameBytes() { java.lang.Object ref = resourceProjectDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceProjectDisplayName_ = b; return b; } else { @@ -1139,8 +999,6 @@ public com.google.protobuf.ByteString getResourceProjectDisplayNameBytes() { public static final int FOLDERS_FIELD_NUMBER = 10; private java.util.List folders_; /** - * - * *
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -1154,8 +1012,6 @@ public java.util.List getFoldersList(
       return folders_;
     }
     /**
-     *
-     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -1165,13 +1021,11 @@ public java.util.List getFoldersList(
      * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
      */
     @java.lang.Override
-    public java.util.List
+    public java.util.List 
         getFoldersOrBuilderList() {
       return folders_;
     }
     /**
-     *
-     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -1185,8 +1039,6 @@ public int getFoldersCount() {
       return folders_.size();
     }
     /**
-     *
-     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -1200,8 +1052,6 @@ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) {
       return folders_.get(index);
     }
     /**
-     *
-     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -1211,12 +1061,12 @@ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) {
      * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
      */
     @java.lang.Override
-    public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index) {
+    public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(
+        int index) {
       return folders_.get(index);
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -1228,7 +1078,8 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
       }
@@ -1289,16 +1140,14 @@ public int getSerializedSize() {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, resourceDisplayName_);
       }
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceParentDisplayName_)) {
-        size +=
-            com.google.protobuf.GeneratedMessageV3.computeStringSize(7, resourceParentDisplayName_);
+        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, resourceParentDisplayName_);
       }
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceProjectDisplayName_)) {
-        size +=
-            com.google.protobuf.GeneratedMessageV3.computeStringSize(
-                8, resourceProjectDisplayName_);
+        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, resourceProjectDisplayName_);
       }
       for (int i = 0; i < folders_.size(); i++) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, folders_.get(i));
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(10, folders_.get(i));
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -1308,25 +1157,31 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-        return true;
+       return true;
       }
       if (!(obj instanceof com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties)) {
         return super.equals(obj);
       }
-      com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties other =
-          (com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties) obj;
-
-      if (!getResourceName().equals(other.getResourceName())) return false;
-      if (!getResourceType().equals(other.getResourceType())) return false;
-      if (!getResourceParent().equals(other.getResourceParent())) return false;
-      if (!getResourceProject().equals(other.getResourceProject())) return false;
-      if (!getResourceOwnersList().equals(other.getResourceOwnersList())) return false;
-      if (!getResourceDisplayName().equals(other.getResourceDisplayName())) return false;
-      if (!getResourceParentDisplayName().equals(other.getResourceParentDisplayName()))
-        return false;
-      if (!getResourceProjectDisplayName().equals(other.getResourceProjectDisplayName()))
-        return false;
-      if (!getFoldersList().equals(other.getFoldersList())) return false;
+      com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties other = (com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties) obj;
+
+      if (!getResourceName()
+          .equals(other.getResourceName())) return false;
+      if (!getResourceType()
+          .equals(other.getResourceType())) return false;
+      if (!getResourceParent()
+          .equals(other.getResourceParent())) return false;
+      if (!getResourceProject()
+          .equals(other.getResourceProject())) return false;
+      if (!getResourceOwnersList()
+          .equals(other.getResourceOwnersList())) return false;
+      if (!getResourceDisplayName()
+          .equals(other.getResourceDisplayName())) return false;
+      if (!getResourceParentDisplayName()
+          .equals(other.getResourceParentDisplayName())) return false;
+      if (!getResourceProjectDisplayName()
+          .equals(other.getResourceProjectDisplayName())) return false;
+      if (!getFoldersList()
+          .equals(other.getFoldersList())) return false;
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
     }
@@ -1366,95 +1221,87 @@ public int hashCode() {
     }
 
     public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(
-        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(
-        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(
-        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(
-        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
-
-    public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties
-        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties
-        parseDelimitedFrom(
-            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseDelimitedFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
     public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(
-        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
-    public static Builder newBuilder(
-        com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties prototype) {
+    public static Builder newBuilder(com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -1464,8 +1311,6 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
@@ -1473,43 +1318,39 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.securitycenter.v1.Asset.SecurityCenterProperties}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Asset.SecurityCenterProperties)
         com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.securitycenter.v1.AssetOuterClass
-            .internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.securitycenter.v1.AssetOuterClass
-            .internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_fieldAccessorTable
+        return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.class,
-                com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder.class);
+                com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.class, com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.newBuilder()
+      // Construct using com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
           getFoldersFieldBuilder();
         }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1539,16 +1380,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.securitycenter.v1.AssetOuterClass
-            .internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties
-          getDefaultInstanceForType() {
-        return com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties
-            .getDefaultInstance();
+      public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties getDefaultInstanceForType() {
+        return com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.getDefaultInstance();
       }
 
       @java.lang.Override
@@ -1562,8 +1401,7 @@ public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties build()
 
       @java.lang.Override
       public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties buildPartial() {
-        com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties result =
-            new com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties(this);
+        com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties result = new com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties(this);
         int from_bitField0_ = bitField0_;
         result.resourceName_ = resourceName_;
         result.resourceType_ = resourceType_;
@@ -1594,53 +1432,46 @@ public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties buildPa
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties) {
-          return mergeFrom(
-              (com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties) other);
+          return mergeFrom((com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties other) {
-        if (other
-            == com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties other) {
+        if (other == com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.getDefaultInstance()) return this;
         if (!other.getResourceName().isEmpty()) {
           resourceName_ = other.resourceName_;
           onChanged();
@@ -1697,10 +1528,9 @@ public Builder mergeFrom(
               foldersBuilder_ = null;
               folders_ = other.folders_;
               bitField0_ = (bitField0_ & ~0x00000002);
-              foldersBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getFoldersFieldBuilder()
-                      : null;
+              foldersBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getFoldersFieldBuilder() : null;
             } else {
               foldersBuilder_.addAllMessages(other.folders_);
             }
@@ -1725,9 +1555,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1736,13 +1564,10 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int bitField0_;
 
       private java.lang.Object resourceName_ = "";
       /**
-       *
-       *
        * 
        * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1750,13 +1575,13 @@ public Builder mergeFrom(
        * 
* * string resource_name = 1; - * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -1765,8 +1590,6 @@ public java.lang.String getResourceName() { } } /** - * - * *
        * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1774,14 +1597,15 @@ public java.lang.String getResourceName() {
        * 
* * string resource_name = 1; - * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -1789,8 +1613,6 @@ public com.google.protobuf.ByteString getResourceNameBytes() { } } /** - * - * *
        * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1798,22 +1620,20 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
        * 
* * string resource_name = 1; - * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName(java.lang.String value) { + public Builder setResourceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceName_ = value; onChanged(); return this; } /** - * - * *
        * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1821,18 +1641,15 @@ public Builder setResourceName(java.lang.String value) {
        * 
* * string resource_name = 1; - * * @return This builder for chaining. */ public Builder clearResourceName() { - + resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** - * - * *
        * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1840,16 +1657,16 @@ public Builder clearResourceName() {
        * 
* * string resource_name = 1; - * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; onChanged(); return this; @@ -1857,8 +1674,6 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceType_ = ""; /** - * - * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1867,13 +1682,13 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) {
        * 
* * string resource_type = 2; - * * @return The resourceType. */ public java.lang.String getResourceType() { java.lang.Object ref = resourceType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; @@ -1882,8 +1697,6 @@ public java.lang.String getResourceType() { } } /** - * - * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1892,14 +1705,15 @@ public java.lang.String getResourceType() {
        * 
* * string resource_type = 2; - * * @return The bytes for resourceType. */ - public com.google.protobuf.ByteString getResourceTypeBytes() { + public com.google.protobuf.ByteString + getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceType_ = b; return b; } else { @@ -1907,8 +1721,6 @@ public com.google.protobuf.ByteString getResourceTypeBytes() { } } /** - * - * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1917,22 +1729,20 @@ public com.google.protobuf.ByteString getResourceTypeBytes() {
        * 
* * string resource_type = 2; - * * @param value The resourceType to set. * @return This builder for chaining. */ - public Builder setResourceType(java.lang.String value) { + public Builder setResourceType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceType_ = value; onChanged(); return this; } /** - * - * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1941,18 +1751,15 @@ public Builder setResourceType(java.lang.String value) {
        * 
* * string resource_type = 2; - * * @return This builder for chaining. */ public Builder clearResourceType() { - + resourceType_ = getDefaultInstance().getResourceType(); onChanged(); return this; } /** - * - * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1961,16 +1768,16 @@ public Builder clearResourceType() {
        * 
* * string resource_type = 2; - * * @param value The bytes for resourceType to set. * @return This builder for chaining. */ - public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { + public Builder setResourceTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceType_ = value; onChanged(); return this; @@ -1978,21 +1785,19 @@ public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceParent_ = ""; /** - * - * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; - * * @return The resourceParent. */ public java.lang.String getResourceParent() { java.lang.Object ref = resourceParent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParent_ = s; return s; @@ -2001,22 +1806,21 @@ public java.lang.String getResourceParent() { } } /** - * - * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; - * * @return The bytes for resourceParent. */ - public com.google.protobuf.ByteString getResourceParentBytes() { + public com.google.protobuf.ByteString + getResourceParentBytes() { java.lang.Object ref = resourceParent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceParent_ = b; return b; } else { @@ -2024,64 +1828,57 @@ public com.google.protobuf.ByteString getResourceParentBytes() { } } /** - * - * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; - * * @param value The resourceParent to set. * @return This builder for chaining. */ - public Builder setResourceParent(java.lang.String value) { + public Builder setResourceParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceParent_ = value; onChanged(); return this; } /** - * - * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; - * * @return This builder for chaining. */ public Builder clearResourceParent() { - + resourceParent_ = getDefaultInstance().getResourceParent(); onChanged(); return this; } /** - * - * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; - * * @param value The bytes for resourceParent to set. * @return This builder for chaining. */ - public Builder setResourceParentBytes(com.google.protobuf.ByteString value) { + public Builder setResourceParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceParent_ = value; onChanged(); return this; @@ -2089,21 +1886,19 @@ public Builder setResourceParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceProject_ = ""; /** - * - * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; - * * @return The resourceProject. */ public java.lang.String getResourceProject() { java.lang.Object ref = resourceProject_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProject_ = s; return s; @@ -2112,22 +1907,21 @@ public java.lang.String getResourceProject() { } } /** - * - * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; - * * @return The bytes for resourceProject. */ - public com.google.protobuf.ByteString getResourceProjectBytes() { + public com.google.protobuf.ByteString + getResourceProjectBytes() { java.lang.Object ref = resourceProject_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceProject_ = b; return b; } else { @@ -2135,115 +1929,98 @@ public com.google.protobuf.ByteString getResourceProjectBytes() { } } /** - * - * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; - * * @param value The resourceProject to set. * @return This builder for chaining. */ - public Builder setResourceProject(java.lang.String value) { + public Builder setResourceProject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceProject_ = value; onChanged(); return this; } /** - * - * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; - * * @return This builder for chaining. */ public Builder clearResourceProject() { - + resourceProject_ = getDefaultInstance().getResourceProject(); onChanged(); return this; } /** - * - * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; - * * @param value The bytes for resourceProject to set. * @return This builder for chaining. */ - public Builder setResourceProjectBytes(com.google.protobuf.ByteString value) { + public Builder setResourceProjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceProject_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList resourceOwners_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList resourceOwners_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureResourceOwnersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resourceOwners_ = new com.google.protobuf.LazyStringArrayList(resourceOwners_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @return A list containing the resourceOwners. */ - public com.google.protobuf.ProtocolStringList getResourceOwnersList() { + public com.google.protobuf.ProtocolStringList + getResourceOwnersList() { return resourceOwners_.getUnmodifiableView(); } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @return The count of resourceOwners. */ public int getResourceOwnersCount() { return resourceOwners_.size(); } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ @@ -2251,90 +2028,80 @@ public java.lang.String getResourceOwners(int index) { return resourceOwners_.get(index); } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ - public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { + public com.google.protobuf.ByteString + getResourceOwnersBytes(int index) { return resourceOwners_.getByteString(index); } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @param index The index to set the value at. * @param value The resourceOwners to set. * @return This builder for chaining. */ - public Builder setResourceOwners(int index, java.lang.String value) { + public Builder setResourceOwners( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceOwnersIsMutable(); + throw new NullPointerException(); + } + ensureResourceOwnersIsMutable(); resourceOwners_.set(index, value); onChanged(); return this; } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @param value The resourceOwners to add. * @return This builder for chaining. */ - public Builder addResourceOwners(java.lang.String value) { + public Builder addResourceOwners( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceOwnersIsMutable(); + throw new NullPointerException(); + } + ensureResourceOwnersIsMutable(); resourceOwners_.add(value); onChanged(); return this; } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @param values The resourceOwners to add. * @return This builder for chaining. */ - public Builder addAllResourceOwners(java.lang.Iterable values) { + public Builder addAllResourceOwners( + java.lang.Iterable values) { ensureResourceOwnersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceOwners_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceOwners_); onChanged(); return this; } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @return This builder for chaining. */ public Builder clearResourceOwners() { @@ -2344,22 +2111,20 @@ public Builder clearResourceOwners() { return this; } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @param value The bytes of the resourceOwners to add. * @return This builder for chaining. */ - public Builder addResourceOwnersBytes(com.google.protobuf.ByteString value) { + public Builder addResourceOwnersBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureResourceOwnersIsMutable(); resourceOwners_.add(value); onChanged(); @@ -2368,20 +2133,18 @@ public Builder addResourceOwnersBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceDisplayName_ = ""; /** - * - * *
        * The user defined display name for this resource.
        * 
* * string resource_display_name = 6; - * * @return The resourceDisplayName. */ public java.lang.String getResourceDisplayName() { java.lang.Object ref = resourceDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceDisplayName_ = s; return s; @@ -2390,21 +2153,20 @@ public java.lang.String getResourceDisplayName() { } } /** - * - * *
        * The user defined display name for this resource.
        * 
* * string resource_display_name = 6; - * * @return The bytes for resourceDisplayName. */ - public com.google.protobuf.ByteString getResourceDisplayNameBytes() { + public com.google.protobuf.ByteString + getResourceDisplayNameBytes() { java.lang.Object ref = resourceDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceDisplayName_ = b; return b; } else { @@ -2412,61 +2174,54 @@ public com.google.protobuf.ByteString getResourceDisplayNameBytes() { } } /** - * - * *
        * The user defined display name for this resource.
        * 
* * string resource_display_name = 6; - * * @param value The resourceDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceDisplayName(java.lang.String value) { + public Builder setResourceDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceDisplayName_ = value; onChanged(); return this; } /** - * - * *
        * The user defined display name for this resource.
        * 
* * string resource_display_name = 6; - * * @return This builder for chaining. */ public Builder clearResourceDisplayName() { - + resourceDisplayName_ = getDefaultInstance().getResourceDisplayName(); onChanged(); return this; } /** - * - * *
        * The user defined display name for this resource.
        * 
* * string resource_display_name = 6; - * * @param value The bytes for resourceDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setResourceDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceDisplayName_ = value; onChanged(); return this; @@ -2474,20 +2229,18 @@ public Builder setResourceDisplayNameBytes(com.google.protobuf.ByteString value) private java.lang.Object resourceParentDisplayName_ = ""; /** - * - * *
        * The user defined display name for the parent of this resource.
        * 
* * string resource_parent_display_name = 7; - * * @return The resourceParentDisplayName. */ public java.lang.String getResourceParentDisplayName() { java.lang.Object ref = resourceParentDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParentDisplayName_ = s; return s; @@ -2495,22 +2248,21 @@ public java.lang.String getResourceParentDisplayName() { return (java.lang.String) ref; } } - /** - * - * + /** *
        * The user defined display name for the parent of this resource.
        * 
* * string resource_parent_display_name = 7; - * * @return The bytes for resourceParentDisplayName. */ - public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() { + public com.google.protobuf.ByteString + getResourceParentDisplayNameBytes() { java.lang.Object ref = resourceParentDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceParentDisplayName_ = b; return b; } else { @@ -2518,61 +2270,54 @@ public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() { } } /** - * - * *
        * The user defined display name for the parent of this resource.
        * 
* * string resource_parent_display_name = 7; - * * @param value The resourceParentDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceParentDisplayName(java.lang.String value) { + public Builder setResourceParentDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceParentDisplayName_ = value; onChanged(); return this; } /** - * - * *
        * The user defined display name for the parent of this resource.
        * 
* * string resource_parent_display_name = 7; - * * @return This builder for chaining. */ public Builder clearResourceParentDisplayName() { - + resourceParentDisplayName_ = getDefaultInstance().getResourceParentDisplayName(); onChanged(); return this; } /** - * - * *
        * The user defined display name for the parent of this resource.
        * 
* * string resource_parent_display_name = 7; - * * @param value The bytes for resourceParentDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceParentDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setResourceParentDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceParentDisplayName_ = value; onChanged(); return this; @@ -2580,20 +2325,18 @@ public Builder setResourceParentDisplayNameBytes(com.google.protobuf.ByteString private java.lang.Object resourceProjectDisplayName_ = ""; /** - * - * *
        * The user defined display name for the project of this resource.
        * 
* * string resource_project_display_name = 8; - * * @return The resourceProjectDisplayName. */ public java.lang.String getResourceProjectDisplayName() { java.lang.Object ref = resourceProjectDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProjectDisplayName_ = s; return s; @@ -2602,21 +2345,20 @@ public java.lang.String getResourceProjectDisplayName() { } } /** - * - * *
        * The user defined display name for the project of this resource.
        * 
* * string resource_project_display_name = 8; - * * @return The bytes for resourceProjectDisplayName. */ - public com.google.protobuf.ByteString getResourceProjectDisplayNameBytes() { + public com.google.protobuf.ByteString + getResourceProjectDisplayNameBytes() { java.lang.Object ref = resourceProjectDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceProjectDisplayName_ = b; return b; } else { @@ -2624,85 +2366,72 @@ public com.google.protobuf.ByteString getResourceProjectDisplayNameBytes() { } } /** - * - * *
        * The user defined display name for the project of this resource.
        * 
* * string resource_project_display_name = 8; - * * @param value The resourceProjectDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceProjectDisplayName(java.lang.String value) { + public Builder setResourceProjectDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceProjectDisplayName_ = value; onChanged(); return this; } /** - * - * *
        * The user defined display name for the project of this resource.
        * 
* * string resource_project_display_name = 8; - * * @return This builder for chaining. */ public Builder clearResourceProjectDisplayName() { - + resourceProjectDisplayName_ = getDefaultInstance().getResourceProjectDisplayName(); onChanged(); return this; } /** - * - * *
        * The user defined display name for the project of this resource.
        * 
* * string resource_project_display_name = 8; - * * @param value The bytes for resourceProjectDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceProjectDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setResourceProjectDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceProjectDisplayName_ = value; onChanged(); return this; } private java.util.List folders_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { folders_ = new java.util.ArrayList(folders_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Folder, - com.google.cloud.securitycenter.v1.Folder.Builder, - com.google.cloud.securitycenter.v1.FolderOrBuilder> - foldersBuilder_; + com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder> foldersBuilder_; /** - * - * *
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2719,8 +2448,6 @@ public java.util.List getFoldersList(
         }
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2737,8 +2464,6 @@ public int getFoldersCount() {
         }
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2755,8 +2480,6 @@ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) {
         }
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2765,7 +2488,8 @@ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) {
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
        */
-      public Builder setFolders(int index, com.google.cloud.securitycenter.v1.Folder value) {
+      public Builder setFolders(
+          int index, com.google.cloud.securitycenter.v1.Folder value) {
         if (foldersBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -2779,8 +2503,6 @@ public Builder setFolders(int index, com.google.cloud.securitycenter.v1.Folder v
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2801,8 +2523,6 @@ public Builder setFolders(
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2825,8 +2545,6 @@ public Builder addFolders(com.google.cloud.securitycenter.v1.Folder value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2835,7 +2553,8 @@ public Builder addFolders(com.google.cloud.securitycenter.v1.Folder value) {
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
        */
-      public Builder addFolders(int index, com.google.cloud.securitycenter.v1.Folder value) {
+      public Builder addFolders(
+          int index, com.google.cloud.securitycenter.v1.Folder value) {
         if (foldersBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -2849,8 +2568,6 @@ public Builder addFolders(int index, com.google.cloud.securitycenter.v1.Folder v
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2859,7 +2576,8 @@ public Builder addFolders(int index, com.google.cloud.securitycenter.v1.Folder v
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
        */
-      public Builder addFolders(com.google.cloud.securitycenter.v1.Folder.Builder builderForValue) {
+      public Builder addFolders(
+          com.google.cloud.securitycenter.v1.Folder.Builder builderForValue) {
         if (foldersBuilder_ == null) {
           ensureFoldersIsMutable();
           folders_.add(builderForValue.build());
@@ -2870,8 +2588,6 @@ public Builder addFolders(com.google.cloud.securitycenter.v1.Folder.Builder buil
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2892,8 +2608,6 @@ public Builder addFolders(
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2906,7 +2620,8 @@ public Builder addAllFolders(
           java.lang.Iterable values) {
         if (foldersBuilder_ == null) {
           ensureFoldersIsMutable();
-          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_);
+          com.google.protobuf.AbstractMessageLite.Builder.addAll(
+              values, folders_);
           onChanged();
         } else {
           foldersBuilder_.addAllMessages(values);
@@ -2914,8 +2629,6 @@ public Builder addAllFolders(
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2935,8 +2648,6 @@ public Builder clearFolders() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2956,8 +2667,6 @@ public Builder removeFolders(int index) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2966,12 +2675,11 @@ public Builder removeFolders(int index) {
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
        */
-      public com.google.cloud.securitycenter.v1.Folder.Builder getFoldersBuilder(int index) {
+      public com.google.cloud.securitycenter.v1.Folder.Builder getFoldersBuilder(
+          int index) {
         return getFoldersFieldBuilder().getBuilder(index);
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2980,16 +2688,14 @@ public com.google.cloud.securitycenter.v1.Folder.Builder getFoldersBuilder(int i
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
        */
-      public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index) {
+      public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(
+          int index) {
         if (foldersBuilder_ == null) {
-          return folders_.get(index);
-        } else {
+          return folders_.get(index);  } else {
           return foldersBuilder_.getMessageOrBuilder(index);
         }
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2998,8 +2704,8 @@ public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(in
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
        */
-      public java.util.List
-          getFoldersOrBuilderList() {
+      public java.util.List 
+           getFoldersOrBuilderList() {
         if (foldersBuilder_ != null) {
           return foldersBuilder_.getMessageOrBuilderList();
         } else {
@@ -3007,8 +2713,6 @@ public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(in
         }
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -3018,12 +2722,10 @@ public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(in
        * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
        */
       public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder() {
-        return getFoldersFieldBuilder()
-            .addBuilder(com.google.cloud.securitycenter.v1.Folder.getDefaultInstance());
+        return getFoldersFieldBuilder().addBuilder(
+            com.google.cloud.securitycenter.v1.Folder.getDefaultInstance());
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -3032,13 +2734,12 @@ public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder() {
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
        */
-      public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder(int index) {
-        return getFoldersFieldBuilder()
-            .addBuilder(index, com.google.cloud.securitycenter.v1.Folder.getDefaultInstance());
+      public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder(
+          int index) {
+        return getFoldersFieldBuilder().addBuilder(
+            index, com.google.cloud.securitycenter.v1.Folder.getDefaultInstance());
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -3047,28 +2748,24 @@ public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder(int i
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
        */
-      public java.util.List
-          getFoldersBuilderList() {
+      public java.util.List 
+           getFoldersBuilderList() {
         return getFoldersFieldBuilder().getBuilderList();
       }
-
       private com.google.protobuf.RepeatedFieldBuilderV3<
-              com.google.cloud.securitycenter.v1.Folder,
-              com.google.cloud.securitycenter.v1.Folder.Builder,
-              com.google.cloud.securitycenter.v1.FolderOrBuilder>
+          com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder> 
           getFoldersFieldBuilder() {
         if (foldersBuilder_ == null) {
-          foldersBuilder_ =
-              new com.google.protobuf.RepeatedFieldBuilderV3<
-                  com.google.cloud.securitycenter.v1.Folder,
-                  com.google.cloud.securitycenter.v1.Folder.Builder,
-                  com.google.cloud.securitycenter.v1.FolderOrBuilder>(
-                  folders_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+          foldersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+              com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder>(
+                  folders_,
+                  ((bitField0_ & 0x00000002) != 0),
+                  getParentForChildren(),
+                  isClean());
           folders_ = null;
         }
         return foldersBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -3081,32 +2778,30 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Asset.SecurityCenterProperties)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Asset.SecurityCenterProperties)
-    private static final com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties
-        DEFAULT_INSTANCE;
-
+    private static final com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties DEFAULT_INSTANCE;
     static {
       DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties();
     }
 
-    public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties
-        getDefaultInstance() {
+    public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public SecurityCenterProperties parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            return new SecurityCenterProperties(input, extensionRegistry);
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public SecurityCenterProperties parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        return new SecurityCenterProperties(input, extensionRegistry);
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -3118,20 +2813,17 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties
-        getDefaultInstanceForType() {
+    public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
-  public interface IamPolicyOrBuilder
-      extends
+  public interface IamPolicyOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Asset.IamPolicy)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The JSON representation of the Policy associated with the asset.
      * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
@@ -3139,13 +2831,10 @@ public interface IamPolicyOrBuilder
      * 
* * string policy_blob = 1; - * * @return The policyBlob. */ java.lang.String getPolicyBlob(); /** - * - * *
      * The JSON representation of the Policy associated with the asset.
      * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
@@ -3153,14 +2842,12 @@ public interface IamPolicyOrBuilder
      * 
* * string policy_blob = 1; - * * @return The bytes for policyBlob. */ - com.google.protobuf.ByteString getPolicyBlobBytes(); + com.google.protobuf.ByteString + getPolicyBlobBytes(); } /** - * - * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -3170,31 +2857,31 @@ public interface IamPolicyOrBuilder
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.Asset.IamPolicy}
    */
-  public static final class IamPolicy extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class IamPolicy extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Asset.IamPolicy)
       IamPolicyOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use IamPolicy.newBuilder() to construct.
     private IamPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private IamPolicy() {
       policyBlob_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new IamPolicy();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private IamPolicy(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -3213,20 +2900,19 @@ private IamPolicy(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                policyBlob_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              policyBlob_ = s;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3234,33 +2920,29 @@ private IamPolicy(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.AssetOuterClass
-          .internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.AssetOuterClass
-          .internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.Asset.IamPolicy.class,
-              com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder.class);
+              com.google.cloud.securitycenter.v1.Asset.IamPolicy.class, com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder.class);
     }
 
     public static final int POLICY_BLOB_FIELD_NUMBER = 1;
     private volatile java.lang.Object policyBlob_;
     /**
-     *
-     *
      * 
      * The JSON representation of the Policy associated with the asset.
      * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
@@ -3268,7 +2950,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string policy_blob = 1; - * * @return The policyBlob. */ @java.lang.Override @@ -3277,15 +2958,14 @@ public java.lang.String getPolicyBlob() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyBlob_ = s; return s; } } /** - * - * *
      * The JSON representation of the Policy associated with the asset.
      * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
@@ -3293,15 +2973,16 @@ public java.lang.String getPolicyBlob() {
      * 
* * string policy_blob = 1; - * * @return The bytes for policyBlob. */ @java.lang.Override - public com.google.protobuf.ByteString getPolicyBlobBytes() { + public com.google.protobuf.ByteString + getPolicyBlobBytes() { java.lang.Object ref = policyBlob_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); policyBlob_ = b; return b; } else { @@ -3310,7 +2991,6 @@ public com.google.protobuf.ByteString getPolicyBlobBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3322,7 +3002,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyBlob_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyBlob_); } @@ -3346,15 +3027,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Asset.IamPolicy)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Asset.IamPolicy other = - (com.google.cloud.securitycenter.v1.Asset.IamPolicy) obj; + com.google.cloud.securitycenter.v1.Asset.IamPolicy other = (com.google.cloud.securitycenter.v1.Asset.IamPolicy) obj; - if (!getPolicyBlob().equals(other.getPolicyBlob())) return false; + if (!getPolicyBlob() + .equals(other.getPolicyBlob())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3374,93 +3055,87 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.Asset.IamPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3470,8 +3145,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -3481,24 +3154,21 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.securitycenter.v1.Asset.IamPolicy}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Asset.IamPolicy)
         com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.securitycenter.v1.AssetOuterClass
-            .internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.securitycenter.v1.AssetOuterClass
-            .internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_fieldAccessorTable
+        return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.securitycenter.v1.Asset.IamPolicy.class,
-                com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder.class);
+                com.google.cloud.securitycenter.v1.Asset.IamPolicy.class, com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder.class);
       }
 
       // Construct using com.google.cloud.securitycenter.v1.Asset.IamPolicy.newBuilder()
@@ -3506,15 +3176,16 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -3524,9 +3195,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.securitycenter.v1.AssetOuterClass
-            .internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor;
       }
 
       @java.lang.Override
@@ -3545,8 +3216,7 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicy build() {
 
       @java.lang.Override
       public com.google.cloud.securitycenter.v1.Asset.IamPolicy buildPartial() {
-        com.google.cloud.securitycenter.v1.Asset.IamPolicy result =
-            new com.google.cloud.securitycenter.v1.Asset.IamPolicy(this);
+        com.google.cloud.securitycenter.v1.Asset.IamPolicy result = new com.google.cloud.securitycenter.v1.Asset.IamPolicy(this);
         result.policyBlob_ = policyBlob_;
         onBuilt();
         return result;
@@ -3556,41 +3226,38 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicy buildPartial() {
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.securitycenter.v1.Asset.IamPolicy) {
-          return mergeFrom((com.google.cloud.securitycenter.v1.Asset.IamPolicy) other);
+          return mergeFrom((com.google.cloud.securitycenter.v1.Asset.IamPolicy)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -3598,8 +3265,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.securitycenter.v1.Asset.IamPolicy other) {
-        if (other == com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance()) return this;
         if (!other.getPolicyBlob().isEmpty()) {
           policyBlob_ = other.policyBlob_;
           onChanged();
@@ -3623,8 +3289,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.securitycenter.v1.Asset.IamPolicy) e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.securitycenter.v1.Asset.IamPolicy) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -3636,8 +3301,6 @@ public Builder mergeFrom(
 
       private java.lang.Object policyBlob_ = "";
       /**
-       *
-       *
        * 
        * The JSON representation of the Policy associated with the asset.
        * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
@@ -3645,13 +3308,13 @@ public Builder mergeFrom(
        * 
* * string policy_blob = 1; - * * @return The policyBlob. */ public java.lang.String getPolicyBlob() { java.lang.Object ref = policyBlob_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyBlob_ = s; return s; @@ -3660,8 +3323,6 @@ public java.lang.String getPolicyBlob() { } } /** - * - * *
        * The JSON representation of the Policy associated with the asset.
        * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
@@ -3669,14 +3330,15 @@ public java.lang.String getPolicyBlob() {
        * 
* * string policy_blob = 1; - * * @return The bytes for policyBlob. */ - public com.google.protobuf.ByteString getPolicyBlobBytes() { + public com.google.protobuf.ByteString + getPolicyBlobBytes() { java.lang.Object ref = policyBlob_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); policyBlob_ = b; return b; } else { @@ -3684,8 +3346,6 @@ public com.google.protobuf.ByteString getPolicyBlobBytes() { } } /** - * - * *
        * The JSON representation of the Policy associated with the asset.
        * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
@@ -3693,22 +3353,20 @@ public com.google.protobuf.ByteString getPolicyBlobBytes() {
        * 
* * string policy_blob = 1; - * * @param value The policyBlob to set. * @return This builder for chaining. */ - public Builder setPolicyBlob(java.lang.String value) { + public Builder setPolicyBlob( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + policyBlob_ = value; onChanged(); return this; } /** - * - * *
        * The JSON representation of the Policy associated with the asset.
        * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
@@ -3716,18 +3374,15 @@ public Builder setPolicyBlob(java.lang.String value) {
        * 
* * string policy_blob = 1; - * * @return This builder for chaining. */ public Builder clearPolicyBlob() { - + policyBlob_ = getDefaultInstance().getPolicyBlob(); onChanged(); return this; } /** - * - * *
        * The JSON representation of the Policy associated with the asset.
        * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
@@ -3735,21 +3390,20 @@ public Builder clearPolicyBlob() {
        * 
* * string policy_blob = 1; - * * @param value The bytes for policyBlob to set. * @return This builder for chaining. */ - public Builder setPolicyBlobBytes(com.google.protobuf.ByteString value) { + public Builder setPolicyBlobBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policyBlob_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3762,12 +3416,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Asset.IamPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Asset.IamPolicy) private static final com.google.cloud.securitycenter.v1.Asset.IamPolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Asset.IamPolicy(); } @@ -3776,16 +3430,16 @@ public static com.google.cloud.securitycenter.v1.Asset.IamPolicy getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IamPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IamPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IamPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IamPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3800,13 +3454,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Asset.IamPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -3815,7 +3468,6 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicy getDefaultInstanceForT
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -3824,15 +3476,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -3841,15 +3492,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3858,20 +3510,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int SECURITY_CENTER_PROPERTIES_FIELD_NUMBER = 2; - private com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties - securityCenterProperties_; + private com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties securityCenterProperties_; /** - * - * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; - * - * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; * @return Whether the securityCenterProperties field is set. */ @java.lang.Override @@ -3879,64 +3525,47 @@ public boolean hasSecurityCenterProperties() { return securityCenterProperties_ != null; } /** - * - * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; - * - * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; * @return The securityCenterProperties. */ @java.lang.Override - public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties - getSecurityCenterProperties() { - return securityCenterProperties_ == null - ? com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.getDefaultInstance() - : securityCenterProperties_; + public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties getSecurityCenterProperties() { + return securityCenterProperties_ == null ? com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.getDefaultInstance() : securityCenterProperties_; } /** - * - * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder - getSecurityCenterPropertiesOrBuilder() { + public com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder() { return getSecurityCenterProperties(); } public static final int RESOURCE_PROPERTIES_FIELD_NUMBER = 7; - private static final class ResourcePropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.Value> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1.AssetOuterClass - .internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); } - - private com.google.protobuf.MapField - resourceProperties_; - + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> resourceProperties_; private com.google.protobuf.MapField - internalGetResourceProperties() { + internalGetResourceProperties() { if (resourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( ResourcePropertiesDefaultEntryHolder.defaultEntry); @@ -3948,8 +3577,6 @@ public int getResourcePropertiesCount() { return internalGetResourceProperties().getMap().size(); } /** - * - * *
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -3957,22 +3584,22 @@ public int getResourcePropertiesCount() {
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
+
   @java.lang.Override
-  public boolean containsResourceProperties(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsResourceProperties(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetResourceProperties().getMap().containsKey(key);
   }
-  /** Use {@link #getResourcePropertiesMap()} instead. */
+  /**
+   * Use {@link #getResourcePropertiesMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getResourceProperties() {
     return getResourcePropertiesMap();
   }
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -3981,12 +3608,11 @@ public java.util.Map getResourcePro
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
   @java.lang.Override
+
   public java.util.Map getResourcePropertiesMap() {
     return internalGetResourceProperties().getMap();
   }
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -3995,18 +3621,16 @@ public java.util.Map getResourcePro
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
   @java.lang.Override
+
   public com.google.protobuf.Value getResourcePropertiesOrDefault(
-      java.lang.String key, com.google.protobuf.Value defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+      java.lang.String key,
+      com.google.protobuf.Value defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetResourceProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -4015,10 +3639,10 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
   @java.lang.Override
-  public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+
+  public com.google.protobuf.Value getResourcePropertiesOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetResourceProperties().getMap();
     if (!map.containsKey(key)) {
@@ -4030,15 +3654,12 @@ public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String k
   public static final int SECURITY_MARKS_FIELD_NUMBER = 8;
   private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_;
   /**
-   *
-   *
    * 
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; - * * @return Whether the securityMarks field is set. */ @java.lang.Override @@ -4046,26 +3667,19 @@ public boolean hasSecurityMarks() { return securityMarks_ != null; } /** - * - * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; - * * @return The securityMarks. */ @java.lang.Override public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() : securityMarks_; } /** - * - * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
@@ -4081,14 +3695,11 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
   public static final int CREATE_TIME_FIELD_NUMBER = 9;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -4096,14 +3707,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; - * * @return The createTime. */ @java.lang.Override @@ -4111,8 +3719,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time at which the asset was created in Security Command Center.
    * 
@@ -4127,29 +3733,23 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
* * .google.protobuf.Timestamp update_time = 10; - * * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { return updateTime_ != null; } - /** - * - * + /** *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
* * .google.protobuf.Timestamp update_time = 10; - * * @return The updateTime. */ @java.lang.Override @@ -4157,8 +3757,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
@@ -4173,8 +3771,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int IAM_POLICY_FIELD_NUMBER = 11; private com.google.cloud.securitycenter.v1.Asset.IamPolicy iamPolicy_; /** - * - * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -4183,7 +3779,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; - * * @return Whether the iamPolicy field is set. */ @java.lang.Override @@ -4191,8 +3786,6 @@ public boolean hasIamPolicy() { return iamPolicy_ != null; } /** - * - * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -4201,18 +3794,13 @@ public boolean hasIamPolicy() {
    * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; - * * @return The iamPolicy. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Asset.IamPolicy getIamPolicy() { - return iamPolicy_ == null - ? com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance() - : iamPolicy_; + return iamPolicy_ == null ? com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance() : iamPolicy_; } /** - * - * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -4230,8 +3818,6 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyO
   public static final int CANONICAL_NAME_FIELD_NUMBER = 13;
   private volatile java.lang.Object canonicalName_;
   /**
-   *
-   *
    * 
    * The canonical name of the resource. It's either
    * "organizations/{organization_id}/assets/{asset_id}",
@@ -4241,7 +3827,6 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyO
    * 
* * string canonical_name = 13; - * * @return The canonicalName. */ @java.lang.Override @@ -4250,15 +3835,14 @@ public java.lang.String getCanonicalName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; } } /** - * - * *
    * The canonical name of the resource. It's either
    * "organizations/{organization_id}/assets/{asset_id}",
@@ -4268,15 +3852,16 @@ public java.lang.String getCanonicalName() {
    * 
* * string canonical_name = 13; - * * @return The bytes for canonicalName. */ @java.lang.Override - public com.google.protobuf.ByteString getCanonicalNameBytes() { + public com.google.protobuf.ByteString + getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -4285,7 +3870,6 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4297,14 +3881,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (securityCenterProperties_ != null) { output.writeMessage(2, getSecurityCenterProperties()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetResourceProperties(), ResourcePropertiesDefaultEntryHolder.defaultEntry, @@ -4337,32 +3923,34 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (securityCenterProperties_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getSecurityCenterProperties()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSecurityCenterProperties()); } - for (java.util.Map.Entry entry : - internalGetResourceProperties().getMap().entrySet()) { + for (java.util.Map.Entry entry + : internalGetResourceProperties().getMap().entrySet()) { com.google.protobuf.MapEntry - resourceProperties__ = - ResourcePropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, resourceProperties__); + resourceProperties__ = ResourcePropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, resourceProperties__); } if (securityMarks_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSecurityMarks()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSecurityMarks()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getUpdateTime()); } if (iamPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getIamPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getIamPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, canonicalName_); @@ -4375,37 +3963,44 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Asset)) { return super.equals(obj); } com.google.cloud.securitycenter.v1.Asset other = (com.google.cloud.securitycenter.v1.Asset) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasSecurityCenterProperties() != other.hasSecurityCenterProperties()) return false; if (hasSecurityCenterProperties()) { - if (!getSecurityCenterProperties().equals(other.getSecurityCenterProperties())) return false; + if (!getSecurityCenterProperties() + .equals(other.getSecurityCenterProperties())) return false; } - if (!internalGetResourceProperties().equals(other.internalGetResourceProperties())) - return false; + if (!internalGetResourceProperties().equals( + other.internalGetResourceProperties())) return false; if (hasSecurityMarks() != other.hasSecurityMarks()) return false; if (hasSecurityMarks()) { - if (!getSecurityMarks().equals(other.getSecurityMarks())) return false; + if (!getSecurityMarks() + .equals(other.getSecurityMarks())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasIamPolicy() != other.hasIamPolicy()) return false; if (hasIamPolicy()) { - if (!getIamPolicy().equals(other.getIamPolicy())) return false; + if (!getIamPolicy() + .equals(other.getIamPolicy())) return false; } - if (!getCanonicalName().equals(other.getCanonicalName())) return false; + if (!getCanonicalName() + .equals(other.getCanonicalName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4450,104 +4045,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Asset parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Asset parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Asset parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Asset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Asset parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Asset parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Asset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Asset parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.Asset parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.Asset parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Asset parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Asset parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Asset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.Asset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Security Command Center representation of a Google Cloud
    * resource.
@@ -4559,43 +4147,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.Asset}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Asset)
       com.google.cloud.securitycenter.v1.AssetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.AssetOuterClass
-          .internal_static_google_cloud_securitycenter_v1_Asset_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 7:
           return internalGetResourceProperties();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 7:
           return internalGetMutableResourceProperties();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.AssetOuterClass
-          .internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.Asset.class,
-              com.google.cloud.securitycenter.v1.Asset.Builder.class);
+              com.google.cloud.securitycenter.v1.Asset.class, com.google.cloud.securitycenter.v1.Asset.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.Asset.newBuilder()
@@ -4603,15 +4191,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -4654,9 +4243,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.AssetOuterClass
-          .internal_static_google_cloud_securitycenter_v1_Asset_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_descriptor;
     }
 
     @java.lang.Override
@@ -4675,8 +4264,7 @@ public com.google.cloud.securitycenter.v1.Asset build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.Asset buildPartial() {
-      com.google.cloud.securitycenter.v1.Asset result =
-          new com.google.cloud.securitycenter.v1.Asset(this);
+      com.google.cloud.securitycenter.v1.Asset result = new com.google.cloud.securitycenter.v1.Asset(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (securityCenterPropertiesBuilder_ == null) {
@@ -4715,39 +4303,38 @@ public com.google.cloud.securitycenter.v1.Asset buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.Asset) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.Asset) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.Asset)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -4763,7 +4350,8 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Asset other) {
       if (other.hasSecurityCenterProperties()) {
         mergeSecurityCenterProperties(other.getSecurityCenterProperties());
       }
-      internalGetMutableResourceProperties().mergeFrom(other.internalGetResourceProperties());
+      internalGetMutableResourceProperties().mergeFrom(
+          other.internalGetResourceProperties());
       if (other.hasSecurityMarks()) {
         mergeSecurityMarks(other.getSecurityMarks());
       }
@@ -4808,13 +4396,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4823,13 +4408,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -4838,8 +4423,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4848,14 +4431,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -4863,8 +4447,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4873,22 +4455,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4897,18 +4477,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4917,83 +4494,61 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties - securityCenterProperties_; + private com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties securityCenterProperties_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties, - com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder, - com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder> - securityCenterPropertiesBuilder_; + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder> securityCenterPropertiesBuilder_; /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; - * - * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; * @return Whether the securityCenterProperties field is set. */ public boolean hasSecurityCenterProperties() { return securityCenterPropertiesBuilder_ != null || securityCenterProperties_ != null; } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; - * - * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; * @return The securityCenterProperties. */ - public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties - getSecurityCenterProperties() { + public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties getSecurityCenterProperties() { if (securityCenterPropertiesBuilder_ == null) { - return securityCenterProperties_ == null - ? com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.getDefaultInstance() - : securityCenterProperties_; + return securityCenterProperties_ == null ? com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.getDefaultInstance() : securityCenterProperties_; } else { return securityCenterPropertiesBuilder_.getMessage(); } } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; */ - public Builder setSecurityCenterProperties( - com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties value) { + public Builder setSecurityCenterProperties(com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties value) { if (securityCenterPropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5007,16 +4562,12 @@ public Builder setSecurityCenterProperties( return this; } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; */ public Builder setSecurityCenterProperties( com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder builderForValue) { @@ -5030,26 +4581,18 @@ public Builder setSecurityCenterProperties( return this; } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; */ - public Builder mergeSecurityCenterProperties( - com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties value) { + public Builder mergeSecurityCenterProperties(com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties value) { if (securityCenterPropertiesBuilder_ == null) { if (securityCenterProperties_ != null) { securityCenterProperties_ = - com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.newBuilder( - securityCenterProperties_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.newBuilder(securityCenterProperties_).mergeFrom(value).buildPartial(); } else { securityCenterProperties_ = value; } @@ -5061,16 +4604,12 @@ public Builder mergeSecurityCenterProperties( return this; } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; */ public Builder clearSecurityCenterProperties() { if (securityCenterPropertiesBuilder_ == null) { @@ -5084,94 +4623,72 @@ public Builder clearSecurityCenterProperties() { return this; } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; */ - public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder - getSecurityCenterPropertiesBuilder() { - + public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder getSecurityCenterPropertiesBuilder() { + onChanged(); return getSecurityCenterPropertiesFieldBuilder().getBuilder(); } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; */ - public com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder - getSecurityCenterPropertiesOrBuilder() { + public com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder() { if (securityCenterPropertiesBuilder_ != null) { return securityCenterPropertiesBuilder_.getMessageOrBuilder(); } else { - return securityCenterProperties_ == null - ? com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.getDefaultInstance() - : securityCenterProperties_; + return securityCenterProperties_ == null ? + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.getDefaultInstance() : securityCenterProperties_; } } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties, - com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder, - com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder> + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder> getSecurityCenterPropertiesFieldBuilder() { if (securityCenterPropertiesBuilder_ == null) { - securityCenterPropertiesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties, - com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder, - com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder>( - getSecurityCenterProperties(), getParentForChildren(), isClean()); + securityCenterPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder>( + getSecurityCenterProperties(), + getParentForChildren(), + isClean()); securityCenterProperties_ = null; } return securityCenterPropertiesBuilder_; } + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> resourceProperties_; private com.google.protobuf.MapField - resourceProperties_; - - private com.google.protobuf.MapField - internalGetResourceProperties() { + internalGetResourceProperties() { if (resourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( ResourcePropertiesDefaultEntryHolder.defaultEntry); } return resourceProperties_; } - private com.google.protobuf.MapField - internalGetMutableResourceProperties() { - onChanged(); - ; + internalGetMutableResourceProperties() { + onChanged();; if (resourceProperties_ == null) { - resourceProperties_ = - com.google.protobuf.MapField.newMapField( - ResourcePropertiesDefaultEntryHolder.defaultEntry); + resourceProperties_ = com.google.protobuf.MapField.newMapField( + ResourcePropertiesDefaultEntryHolder.defaultEntry); } if (!resourceProperties_.isMutable()) { resourceProperties_ = resourceProperties_.copy(); @@ -5183,8 +4700,6 @@ public int getResourcePropertiesCount() { return internalGetResourceProperties().getMap().size(); } /** - * - * *
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -5192,22 +4707,22 @@ public int getResourcePropertiesCount() {
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
+
     @java.lang.Override
-    public boolean containsResourceProperties(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsResourceProperties(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetResourceProperties().getMap().containsKey(key);
     }
-    /** Use {@link #getResourcePropertiesMap()} instead. */
+    /**
+     * Use {@link #getResourcePropertiesMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getResourceProperties() {
       return getResourcePropertiesMap();
     }
     /**
-     *
-     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -5216,12 +4731,11 @@ public java.util.Map getResourcePro
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
     @java.lang.Override
+
     public java.util.Map getResourcePropertiesMap() {
       return internalGetResourceProperties().getMap();
     }
     /**
-     *
-     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -5230,18 +4744,16 @@ public java.util.Map getResourcePro
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
     @java.lang.Override
+
     public com.google.protobuf.Value getResourcePropertiesOrDefault(
-        java.lang.String key, com.google.protobuf.Value defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+        java.lang.String key,
+        com.google.protobuf.Value defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetResourceProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -5250,10 +4762,10 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
     @java.lang.Override
-    public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+
+    public com.google.protobuf.Value getResourcePropertiesOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetResourceProperties().getMap();
       if (!map.containsKey(key)) {
@@ -5263,12 +4775,11 @@ public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String k
     }
 
     public Builder clearResourceProperties() {
-      internalGetMutableResourceProperties().getMutableMap().clear();
+      internalGetMutableResourceProperties().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -5276,22 +4787,23 @@ public Builder clearResourceProperties() {
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
-    public Builder removeResourceProperties(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableResourceProperties().getMutableMap().remove(key);
+
+    public Builder removeResourceProperties(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableResourceProperties().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
     public java.util.Map
-        getMutableResourceProperties() {
+    getMutableResourceProperties() {
       return internalGetMutableResourceProperties().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -5299,20 +4811,19 @@ public Builder removeResourceProperties(java.lang.String key) {
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
-    public Builder putResourceProperties(java.lang.String key, com.google.protobuf.Value value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putResourceProperties(
+        java.lang.String key,
+        com.google.protobuf.Value value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableResourceProperties().getMutableMap().put(key, value);
+      internalGetMutableResourceProperties().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -5320,57 +4831,46 @@ public Builder putResourceProperties(java.lang.String key, com.google.protobuf.V
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
+
     public Builder putAllResourceProperties(
         java.util.Map values) {
-      internalGetMutableResourceProperties().getMutableMap().putAll(values);
+      internalGetMutableResourceProperties().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.SecurityMarks,
-            com.google.cloud.securitycenter.v1.SecurityMarks.Builder,
-            com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>
-        securityMarksBuilder_;
+        com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> securityMarksBuilder_;
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
      * 
* * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; - * * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; } /** - * - * *
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
      * 
* * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; - * * @return The securityMarks. */ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() : securityMarks_; } else { return securityMarksBuilder_.getMessage(); } } /** - * - * *
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -5392,8 +4892,6 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks
       return this;
     }
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -5413,8 +4911,6 @@ public Builder setSecurityMarks(
       return this;
     }
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -5426,9 +4922,7 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMar
       if (securityMarksBuilder_ == null) {
         if (securityMarks_ != null) {
           securityMarks_ =
-              com.google.cloud.securitycenter.v1.SecurityMarks.newBuilder(securityMarks_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.securitycenter.v1.SecurityMarks.newBuilder(securityMarks_).mergeFrom(value).buildPartial();
         } else {
           securityMarks_ = value;
         }
@@ -5440,8 +4934,6 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMar
       return this;
     }
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -5461,8 +4953,6 @@ public Builder clearSecurityMarks() {
       return this;
     }
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -5471,13 +4961,11 @@ public Builder clearSecurityMarks() {
      * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8;
      */
     public com.google.cloud.securitycenter.v1.SecurityMarks.Builder getSecurityMarksBuilder() {
-
+      
       onChanged();
       return getSecurityMarksFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -5489,14 +4977,11 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
       if (securityMarksBuilder_ != null) {
         return securityMarksBuilder_.getMessageOrBuilder();
       } else {
-        return securityMarks_ == null
-            ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance()
-            : securityMarks_;
+        return securityMarks_ == null ?
+            com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() : securityMarks_;
       }
     }
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -5505,17 +4990,14 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
      * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.SecurityMarks,
-            com.google.cloud.securitycenter.v1.SecurityMarks.Builder,
-            com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>
+        com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> 
         getSecurityMarksFieldBuilder() {
       if (securityMarksBuilder_ == null) {
-        securityMarksBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.securitycenter.v1.SecurityMarks,
-                com.google.cloud.securitycenter.v1.SecurityMarks.Builder,
-                com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>(
-                getSecurityMarks(), getParentForChildren(), isClean());
+        securityMarksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>(
+                getSecurityMarks(),
+                getParentForChildren(),
+                isClean());
         securityMarks_ = null;
       }
       return securityMarksBuilder_;
@@ -5523,47 +5005,34 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5584,15 +5053,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -5603,8 +5071,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5615,7 +5081,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -5627,8 +5093,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5647,8 +5111,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5656,13 +5118,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 9; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5673,14 +5133,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5688,17 +5145,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -5706,47 +5160,34 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
* * .google.protobuf.Timestamp update_time = 10; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
* * .google.protobuf.Timestamp update_time = 10; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5767,15 +5208,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
* * .google.protobuf.Timestamp update_time = 10; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -5786,8 +5226,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5798,7 +5236,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -5810,8 +5248,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5830,8 +5266,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5839,13 +5273,11 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 10; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5856,14 +5288,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5871,17 +5300,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -5889,13 +5315,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.cloud.securitycenter.v1.Asset.IamPolicy iamPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Asset.IamPolicy, - com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder, - com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder> - iamPolicyBuilder_; + com.google.cloud.securitycenter.v1.Asset.IamPolicy, com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder, com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder> iamPolicyBuilder_; /** - * - * *
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5904,15 +5325,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; - * * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return iamPolicyBuilder_ != null || iamPolicy_ != null; } /** - * - * *
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5921,21 +5339,16 @@ public boolean hasIamPolicy() {
      * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; - * * @return The iamPolicy. */ public com.google.cloud.securitycenter.v1.Asset.IamPolicy getIamPolicy() { if (iamPolicyBuilder_ == null) { - return iamPolicy_ == null - ? com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance() - : iamPolicy_; + return iamPolicy_ == null ? com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance() : iamPolicy_; } else { return iamPolicyBuilder_.getMessage(); } } /** - * - * *
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5959,8 +5372,6 @@ public Builder setIamPolicy(com.google.cloud.securitycenter.v1.Asset.IamPolicy v
       return this;
     }
     /**
-     *
-     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5982,8 +5393,6 @@ public Builder setIamPolicy(
       return this;
     }
     /**
-     *
-     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5997,9 +5406,7 @@ public Builder mergeIamPolicy(com.google.cloud.securitycenter.v1.Asset.IamPolicy
       if (iamPolicyBuilder_ == null) {
         if (iamPolicy_ != null) {
           iamPolicy_ =
-              com.google.cloud.securitycenter.v1.Asset.IamPolicy.newBuilder(iamPolicy_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.securitycenter.v1.Asset.IamPolicy.newBuilder(iamPolicy_).mergeFrom(value).buildPartial();
         } else {
           iamPolicy_ = value;
         }
@@ -6011,8 +5418,6 @@ public Builder mergeIamPolicy(com.google.cloud.securitycenter.v1.Asset.IamPolicy
       return this;
     }
     /**
-     *
-     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -6034,8 +5439,6 @@ public Builder clearIamPolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -6046,13 +5449,11 @@ public Builder clearIamPolicy() {
      * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;
      */
     public com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder getIamPolicyBuilder() {
-
+      
       onChanged();
       return getIamPolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -6066,14 +5467,11 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyO
       if (iamPolicyBuilder_ != null) {
         return iamPolicyBuilder_.getMessageOrBuilder();
       } else {
-        return iamPolicy_ == null
-            ? com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance()
-            : iamPolicy_;
+        return iamPolicy_ == null ?
+            com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance() : iamPolicy_;
       }
     }
     /**
-     *
-     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -6084,17 +5482,14 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyO
      * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Asset.IamPolicy,
-            com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder,
-            com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder>
+        com.google.cloud.securitycenter.v1.Asset.IamPolicy, com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder, com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder> 
         getIamPolicyFieldBuilder() {
       if (iamPolicyBuilder_ == null) {
-        iamPolicyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.securitycenter.v1.Asset.IamPolicy,
-                com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder,
-                com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder>(
-                getIamPolicy(), getParentForChildren(), isClean());
+        iamPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.securitycenter.v1.Asset.IamPolicy, com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder, com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder>(
+                getIamPolicy(),
+                getParentForChildren(),
+                isClean());
         iamPolicy_ = null;
       }
       return iamPolicyBuilder_;
@@ -6102,8 +5497,6 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyO
 
     private java.lang.Object canonicalName_ = "";
     /**
-     *
-     *
      * 
      * The canonical name of the resource. It's either
      * "organizations/{organization_id}/assets/{asset_id}",
@@ -6113,13 +5506,13 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyO
      * 
* * string canonical_name = 13; - * * @return The canonicalName. */ public java.lang.String getCanonicalName() { java.lang.Object ref = canonicalName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; @@ -6128,8 +5521,6 @@ public java.lang.String getCanonicalName() { } } /** - * - * *
      * The canonical name of the resource. It's either
      * "organizations/{organization_id}/assets/{asset_id}",
@@ -6139,14 +5530,15 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 13; - * * @return The bytes for canonicalName. */ - public com.google.protobuf.ByteString getCanonicalNameBytes() { + public com.google.protobuf.ByteString + getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -6154,8 +5546,6 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() { } } /** - * - * *
      * The canonical name of the resource. It's either
      * "organizations/{organization_id}/assets/{asset_id}",
@@ -6165,22 +5555,20 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() {
      * 
* * string canonical_name = 13; - * * @param value The canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalName(java.lang.String value) { + public Builder setCanonicalName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + canonicalName_ = value; onChanged(); return this; } /** - * - * *
      * The canonical name of the resource. It's either
      * "organizations/{organization_id}/assets/{asset_id}",
@@ -6190,18 +5578,15 @@ public Builder setCanonicalName(java.lang.String value) {
      * 
* * string canonical_name = 13; - * * @return This builder for chaining. */ public Builder clearCanonicalName() { - + canonicalName_ = getDefaultInstance().getCanonicalName(); onChanged(); return this; } /** - * - * *
      * The canonical name of the resource. It's either
      * "organizations/{organization_id}/assets/{asset_id}",
@@ -6211,23 +5596,23 @@ public Builder clearCanonicalName() {
      * 
* * string canonical_name = 13; - * * @param value The bytes for canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalNameBytes(com.google.protobuf.ByteString value) { + public Builder setCanonicalNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6237,12 +5622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Asset) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Asset) private static final com.google.cloud.securitycenter.v1.Asset DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Asset(); } @@ -6251,16 +5636,16 @@ public static com.google.cloud.securitycenter.v1.Asset getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Asset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Asset(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Asset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Asset(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6275,4 +5660,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Asset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetName.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetName.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetName.java diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java similarity index 80% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java index 87023bd82..44eb8b021 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/asset.proto package com.google.cloud.securitycenter.v1; -public interface AssetOrBuilder - extends +public interface AssetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Asset) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -34,13 +16,10 @@ public interface AssetOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -49,59 +28,42 @@ public interface AssetOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; - * - * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; * @return Whether the securityCenterProperties field is set. */ boolean hasSecurityCenterProperties(); /** - * - * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; - * - * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; * @return The securityCenterProperties. */ com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties getSecurityCenterProperties(); /** - * - * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; */ - com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder - getSecurityCenterPropertiesOrBuilder(); + com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder(); /** - * - * *
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -111,8 +73,6 @@ public interface AssetOrBuilder
    */
   int getResourcePropertiesCount();
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -120,13 +80,15 @@ public interface AssetOrBuilder
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-  boolean containsResourceProperties(java.lang.String key);
-  /** Use {@link #getResourcePropertiesMap()} instead. */
+  boolean containsResourceProperties(
+      java.lang.String key);
+  /**
+   * Use {@link #getResourcePropertiesMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getResourceProperties();
+  java.util.Map
+  getResourceProperties();
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -134,10 +96,9 @@ public interface AssetOrBuilder
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-  java.util.Map getResourcePropertiesMap();
+  java.util.Map
+  getResourcePropertiesMap();
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -147,13 +108,11 @@ public interface AssetOrBuilder
    */
 
   /* nullable */
-  com.google.protobuf.Value getResourcePropertiesOrDefault(
+com.google.protobuf.Value getResourcePropertiesOrDefault(
       java.lang.String key,
       /* nullable */
-      com.google.protobuf.Value defaultValue);
+com.google.protobuf.Value defaultValue);
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -161,37 +120,31 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-  com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key);
+
+  com.google.protobuf.Value getResourcePropertiesOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; - * * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** - * - * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; - * * @return The securityMarks. */ com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks(); /** - * - * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
@@ -202,32 +155,24 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
   com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder();
 
   /**
-   *
-   *
    * 
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time at which the asset was created in Security Command Center.
    * 
@@ -237,32 +182,24 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
* * .google.protobuf.Timestamp update_time = 10; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
* * .google.protobuf.Timestamp update_time = 10; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
@@ -272,8 +209,6 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -282,13 +217,10 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
    * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; - * * @return Whether the iamPolicy field is set. */ boolean hasIamPolicy(); /** - * - * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -297,13 +229,10 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
    * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; - * * @return The iamPolicy. */ com.google.cloud.securitycenter.v1.Asset.IamPolicy getIamPolicy(); /** - * - * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -316,8 +245,6 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
   com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The canonical name of the resource. It's either
    * "organizations/{organization_id}/assets/{asset_id}",
@@ -327,13 +254,10 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
    * 
* * string canonical_name = 13; - * * @return The canonicalName. */ java.lang.String getCanonicalName(); /** - * - * *
    * The canonical name of the resource. It's either
    * "organizations/{organization_id}/assets/{asset_id}",
@@ -343,8 +267,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
    * 
* * string canonical_name = 13; - * * @return The bytes for canonicalName. */ - com.google.protobuf.ByteString getCanonicalNameBytes(); + com.google.protobuf.ByteString + getCanonicalNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java new file mode 100644 index 000000000..8a04ca03c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java @@ -0,0 +1,133 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/asset.proto + +package com.google.cloud.securitycenter.v1; + +public final class AssetOuterClass { + private AssetOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Asset_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n*google/cloud/securitycenter/v1/asset.p" + + "roto\022\036google.cloud.securitycenter.v1\032\031go" + + "ogle/api/resource.proto\032+google/cloud/se" + + "curitycenter/v1/folder.proto\0323google/clo" + + "ud/securitycenter/v1/security_marks.prot" + + "o\032\034google/protobuf/struct.proto\032\037google/" + + "protobuf/timestamp.proto\"\251\010\n\005Asset\022\014\n\004na" + + "me\030\001 \001(\t\022b\n\032security_center_properties\030\002" + + " \001(\0132>.google.cloud.securitycenter.v1.As" + + "set.SecurityCenterProperties\022Z\n\023resource" + + "_properties\030\007 \003(\0132=.google.cloud.securit" + + "ycenter.v1.Asset.ResourcePropertiesEntry" + + "\022E\n\016security_marks\030\010 \001(\0132-.google.cloud." + + "securitycenter.v1.SecurityMarks\022/\n\013creat" + + "e_time\030\t \001(\0132\032.google.protobuf.Timestamp" + + "\022/\n\013update_time\030\n \001(\0132\032.google.protobuf." + + "Timestamp\022C\n\niam_policy\030\013 \001(\0132/.google.c" + + "loud.securitycenter.v1.Asset.IamPolicy\022\026" + + "\n\016canonical_name\030\r \001(\t\032\271\002\n\030SecurityCente" + + "rProperties\022\025\n\rresource_name\030\001 \001(\t\022\025\n\rre" + + "source_type\030\002 \001(\t\022\027\n\017resource_parent\030\003 \001" + + "(\t\022\030\n\020resource_project\030\004 \001(\t\022\027\n\017resource" + + "_owners\030\005 \003(\t\022\035\n\025resource_display_name\030\006" + + " \001(\t\022$\n\034resource_parent_display_name\030\007 \001" + + "(\t\022%\n\035resource_project_display_name\030\010 \001(" + + "\t\0227\n\007folders\030\n \003(\0132&.google.cloud.securi" + + "tycenter.v1.Folder\032 \n\tIamPolicy\022\023\n\013polic" + + "y_blob\030\001 \001(\t\032Q\n\027ResourcePropertiesEntry\022" + + "\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pro" + + "tobuf.Value:\0028\001:\232\001\352A\226\001\n#securitycenter.g" + + "oogleapis.com/Asset\022+organizations/{orga" + + "nization}/assets/{asset}\022\037folders/{folde" + + "r}/assets/{asset}\022!projects/{project}/as" + + "sets/{asset}B\332\001\n\"com.google.cloud.securi" + + "tycenter.v1P\001ZLgoogle.golang.org/genprot" + + "o/googleapis/cloud/securitycenter/v1;sec" + + "uritycenter\252\002\036Google.Cloud.SecurityCente" + + "r.V1\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!" + + "Google::Cloud::SecurityCenter::V1b\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(), + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_Asset_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Asset_descriptor, + new java.lang.String[] { "Name", "SecurityCenterProperties", "ResourceProperties", "SecurityMarks", "CreateTime", "UpdateTime", "IamPolicy", "CanonicalName", }); + internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor = + internal_static_google_cloud_securitycenter_v1_Asset_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor, + new java.lang.String[] { "ResourceName", "ResourceType", "ResourceParent", "ResourceProject", "ResourceOwners", "ResourceDisplayName", "ResourceParentDisplayName", "ResourceProjectDisplayName", "Folders", }); + internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor = + internal_static_google_cloud_securitycenter_v1_Asset_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor, + new java.lang.String[] { "PolicyBlob", }); + internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_descriptor = + internal_static_google_cloud_securitycenter_v1_Asset_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(); + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java similarity index 75% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java index 8603b33f4..5c12c3805 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/bigquery_export.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Configures how to deliver Findings to BigQuery Instance.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.BigQueryExport} */ -public final class BigQueryExport extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BigQueryExport extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.BigQueryExport) BigQueryExportOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BigQueryExport.newBuilder() to construct. private BigQueryExport(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BigQueryExport() { name_ = ""; description_ = ""; @@ -48,15 +30,16 @@ private BigQueryExport() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BigQueryExport(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BigQueryExport( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,85 +58,75 @@ private BigQueryExport( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + description_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - dataset_ = s; - break; - } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + dataset_ = s; + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 50: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - mostRecentEditor_ = s; - break; + break; + } + case 50: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - principal_ = s; - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + mostRecentEditor_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + principal_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -161,33 +134,29 @@ private BigQueryExport( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.BigQueryExportProto - .internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.BigQueryExportProto.internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.BigQueryExportProto - .internal_static_google_cloud_securitycenter_v1_BigQueryExport_fieldAccessorTable + return com.google.cloud.securitycenter.v1.BigQueryExportProto.internal_static_google_cloud_securitycenter_v1_BigQueryExport_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.BigQueryExport.class, - com.google.cloud.securitycenter.v1.BigQueryExport.Builder.class); + com.google.cloud.securitycenter.v1.BigQueryExport.class, com.google.cloud.securitycenter.v1.BigQueryExport.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The relative resource name of this export. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name.
@@ -200,7 +169,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -209,15 +177,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The relative resource name of this export. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name.
@@ -230,15 +197,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -249,14 +217,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * The description of the export (max of 1024 characters).
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -265,29 +230,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * The description of the export (max of 1024 characters).
    * 
* * string description = 2; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -298,8 +263,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** - * - * *
    * Expression that defines the filter to apply across create/update events
    * of findings. The expression is a list of zero or more restrictions combined
@@ -319,7 +282,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * 
* * string filter = 3; - * * @return The filter. */ @java.lang.Override @@ -328,15 +290,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Expression that defines the filter to apply across create/update events
    * of findings. The expression is a list of zero or more restrictions combined
@@ -356,15 +317,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 3; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -375,8 +337,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int DATASET_FIELD_NUMBER = 4; private volatile java.lang.Object dataset_; /** - * - * *
    * The dataset to write findings' updates to. Its format is
    * "projects/[project_id]/datasets/[bigquery_dataset_id]".
@@ -385,7 +345,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string dataset = 4; - * * @return The dataset. */ @java.lang.Override @@ -394,15 +353,14 @@ public java.lang.String getDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; } } /** - * - * *
    * The dataset to write findings' updates to. Its format is
    * "projects/[project_id]/datasets/[bigquery_dataset_id]".
@@ -411,15 +369,16 @@ public java.lang.String getDataset() {
    * 
* * string dataset = 4; - * * @return The bytes for dataset. */ @java.lang.Override - public com.google.protobuf.ByteString getDatasetBytes() { + public com.google.protobuf.ByteString + getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataset_ = b; return b; } else { @@ -430,17 +389,13 @@ public com.google.protobuf.ByteString getDatasetBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time at which the big query export was created.
    * This field is set by the server and will be ignored if provided on export
    * on creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -448,17 +403,13 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time at which the big query export was created.
    * This field is set by the server and will be ignored if provided on export
    * on creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -466,16 +417,13 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time at which the big query export was created.
    * This field is set by the server and will be ignored if provided on export
    * on creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -485,17 +433,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The most recent time at which the big export was updated.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -503,17 +447,13 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The most recent time at which the big export was updated.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -521,16 +461,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The most recent time at which the big export was updated.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -540,8 +477,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int MOST_RECENT_EDITOR_FIELD_NUMBER = 7; private volatile java.lang.Object mostRecentEditor_; /** - * - * *
    * Output only. Email address of the user who last edited the big query export.
    * This field is set by the server and will be ignored if provided on export
@@ -549,7 +484,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The mostRecentEditor. */ @java.lang.Override @@ -558,15 +492,14 @@ public java.lang.String getMostRecentEditor() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mostRecentEditor_ = s; return s; } } /** - * - * *
    * Output only. Email address of the user who last edited the big query export.
    * This field is set by the server and will be ignored if provided on export
@@ -574,15 +507,16 @@ public java.lang.String getMostRecentEditor() {
    * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for mostRecentEditor. */ @java.lang.Override - public com.google.protobuf.ByteString getMostRecentEditorBytes() { + public com.google.protobuf.ByteString + getMostRecentEditorBytes() { java.lang.Object ref = mostRecentEditor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mostRecentEditor_ = b; return b; } else { @@ -593,15 +527,12 @@ public com.google.protobuf.ByteString getMostRecentEditorBytes() { public static final int PRINCIPAL_FIELD_NUMBER = 8; private volatile java.lang.Object principal_; /** - * - * *
    * Output only. The service account that needs permission to create table, upload data to
    * the big query dataset.
    * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The principal. */ @java.lang.Override @@ -610,30 +541,30 @@ public java.lang.String getPrincipal() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principal_ = s; return s; } } /** - * - * *
    * Output only. The service account that needs permission to create table, upload data to
    * the big query dataset.
    * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for principal. */ @java.lang.Override - public com.google.protobuf.ByteString getPrincipalBytes() { + public com.google.protobuf.ByteString + getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); principal_ = b; return b; } else { @@ -642,7 +573,6 @@ public com.google.protobuf.ByteString getPrincipalBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -654,7 +584,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -701,10 +632,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, dataset_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mostRecentEditor_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, mostRecentEditor_); @@ -720,28 +653,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.BigQueryExport)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.BigQueryExport other = - (com.google.cloud.securitycenter.v1.BigQueryExport) obj; + com.google.cloud.securitycenter.v1.BigQueryExport other = (com.google.cloud.securitycenter.v1.BigQueryExport) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getDataset().equals(other.getDataset())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getDataset() + .equals(other.getDataset())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!getMostRecentEditor().equals(other.getMostRecentEditor())) return false; - if (!getPrincipal().equals(other.getPrincipal())) return false; + if (!getMostRecentEditor() + .equals(other.getMostRecentEditor())) return false; + if (!getPrincipal() + .equals(other.getPrincipal())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -779,126 +719,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.BigQueryExport parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.BigQueryExport parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.BigQueryExport parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.BigQueryExport prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configures how to deliver Findings to BigQuery Instance.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.BigQueryExport} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.BigQueryExport) com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.BigQueryExportProto - .internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.BigQueryExportProto.internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.BigQueryExportProto - .internal_static_google_cloud_securitycenter_v1_BigQueryExport_fieldAccessorTable + return com.google.cloud.securitycenter.v1.BigQueryExportProto.internal_static_google_cloud_securitycenter_v1_BigQueryExport_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.BigQueryExport.class, - com.google.cloud.securitycenter.v1.BigQueryExport.Builder.class); + com.google.cloud.securitycenter.v1.BigQueryExport.class, com.google.cloud.securitycenter.v1.BigQueryExport.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.BigQueryExport.newBuilder() @@ -906,15 +837,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -946,9 +878,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.BigQueryExportProto - .internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.BigQueryExportProto.internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor; } @java.lang.Override @@ -967,8 +899,7 @@ public com.google.cloud.securitycenter.v1.BigQueryExport build() { @java.lang.Override public com.google.cloud.securitycenter.v1.BigQueryExport buildPartial() { - com.google.cloud.securitycenter.v1.BigQueryExport result = - new com.google.cloud.securitycenter.v1.BigQueryExport(this); + com.google.cloud.securitycenter.v1.BigQueryExport result = new com.google.cloud.securitycenter.v1.BigQueryExport(this); result.name_ = name_; result.description_ = description_; result.filter_ = filter_; @@ -993,39 +924,38 @@ public com.google.cloud.securitycenter.v1.BigQueryExport buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.BigQueryExport) { - return mergeFrom((com.google.cloud.securitycenter.v1.BigQueryExport) other); + return mergeFrom((com.google.cloud.securitycenter.v1.BigQueryExport)other); } else { super.mergeFrom(other); return this; @@ -1033,8 +963,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.BigQueryExport other) { - if (other == com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1084,8 +1013,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.BigQueryExport) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.BigQueryExport) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1097,8 +1025,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The relative resource name of this export. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name.
@@ -1111,13 +1037,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1126,8 +1052,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The relative resource name of this export. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name.
@@ -1140,14 +1064,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1155,8 +1080,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The relative resource name of this export. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name.
@@ -1169,22 +1092,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The relative resource name of this export. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name.
@@ -1197,18 +1118,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The relative resource name of this export. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name.
@@ -1221,16 +1139,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1238,20 +1156,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * The description of the export (max of 1024 characters).
      * 
* * string description = 2; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1260,21 +1176,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * The description of the export (max of 1024 characters).
      * 
* * string description = 2; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1282,61 +1197,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * The description of the export (max of 1024 characters).
      * 
* * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * The description of the export (max of 1024 characters).
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * The description of the export (max of 1024 characters).
      * 
* * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1344,8 +1252,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Expression that defines the filter to apply across create/update events
      * of findings. The expression is a list of zero or more restrictions combined
@@ -1365,13 +1271,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 3; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1380,8 +1286,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Expression that defines the filter to apply across create/update events
      * of findings. The expression is a list of zero or more restrictions combined
@@ -1401,14 +1305,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1416,8 +1321,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Expression that defines the filter to apply across create/update events
      * of findings. The expression is a list of zero or more restrictions combined
@@ -1437,22 +1340,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 3; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across create/update events
      * of findings. The expression is a list of zero or more restrictions combined
@@ -1472,18 +1373,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 3; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across create/update events
      * of findings. The expression is a list of zero or more restrictions combined
@@ -1503,16 +1401,16 @@ public Builder clearFilter() {
      * 
* * string filter = 3; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1520,8 +1418,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object dataset_ = ""; /** - * - * *
      * The dataset to write findings' updates to. Its format is
      * "projects/[project_id]/datasets/[bigquery_dataset_id]".
@@ -1530,13 +1426,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string dataset = 4; - * * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; @@ -1545,8 +1441,6 @@ public java.lang.String getDataset() { } } /** - * - * *
      * The dataset to write findings' updates to. Its format is
      * "projects/[project_id]/datasets/[bigquery_dataset_id]".
@@ -1555,14 +1449,15 @@ public java.lang.String getDataset() {
      * 
* * string dataset = 4; - * * @return The bytes for dataset. */ - public com.google.protobuf.ByteString getDatasetBytes() { + public com.google.protobuf.ByteString + getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataset_ = b; return b; } else { @@ -1570,8 +1465,6 @@ public com.google.protobuf.ByteString getDatasetBytes() { } } /** - * - * *
      * The dataset to write findings' updates to. Its format is
      * "projects/[project_id]/datasets/[bigquery_dataset_id]".
@@ -1580,22 +1473,20 @@ public com.google.protobuf.ByteString getDatasetBytes() {
      * 
* * string dataset = 4; - * * @param value The dataset to set. * @return This builder for chaining. */ - public Builder setDataset(java.lang.String value) { + public Builder setDataset( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataset_ = value; onChanged(); return this; } /** - * - * *
      * The dataset to write findings' updates to. Its format is
      * "projects/[project_id]/datasets/[bigquery_dataset_id]".
@@ -1604,18 +1495,15 @@ public Builder setDataset(java.lang.String value) {
      * 
* * string dataset = 4; - * * @return This builder for chaining. */ public Builder clearDataset() { - + dataset_ = getDefaultInstance().getDataset(); onChanged(); return this; } /** - * - * *
      * The dataset to write findings' updates to. Its format is
      * "projects/[project_id]/datasets/[bigquery_dataset_id]".
@@ -1624,16 +1512,16 @@ public Builder clearDataset() {
      * 
* * string dataset = 4; - * * @param value The bytes for dataset to set. * @return This builder for chaining. */ - public Builder setDatasetBytes(com.google.protobuf.ByteString value) { + public Builder setDatasetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; onChanged(); return this; @@ -1641,64 +1529,45 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time at which the big query export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time at which the big query export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which the big query export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1714,19 +1583,16 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which the big query export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1737,23 +1603,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which the big query export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1765,17 +1627,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which the big query export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1789,70 +1647,54 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time at which the big query export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which the big query export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time at which the big query export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1860,64 +1702,45 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The most recent time at which the big export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The most recent time at which the big export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The most recent time at which the big export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1933,19 +1756,16 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time at which the big export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1956,23 +1776,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The most recent time at which the big export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1984,17 +1800,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time at which the big export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2008,70 +1820,54 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The most recent time at which the big export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The most recent time at which the big export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The most recent time at which the big export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2079,8 +1875,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object mostRecentEditor_ = ""; /** - * - * *
      * Output only. Email address of the user who last edited the big query export.
      * This field is set by the server and will be ignored if provided on export
@@ -2088,13 +1882,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The mostRecentEditor. */ public java.lang.String getMostRecentEditor() { java.lang.Object ref = mostRecentEditor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mostRecentEditor_ = s; return s; @@ -2103,8 +1897,6 @@ public java.lang.String getMostRecentEditor() { } } /** - * - * *
      * Output only. Email address of the user who last edited the big query export.
      * This field is set by the server and will be ignored if provided on export
@@ -2112,14 +1904,15 @@ public java.lang.String getMostRecentEditor() {
      * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for mostRecentEditor. */ - public com.google.protobuf.ByteString getMostRecentEditorBytes() { + public com.google.protobuf.ByteString + getMostRecentEditorBytes() { java.lang.Object ref = mostRecentEditor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mostRecentEditor_ = b; return b; } else { @@ -2127,8 +1920,6 @@ public com.google.protobuf.ByteString getMostRecentEditorBytes() { } } /** - * - * *
      * Output only. Email address of the user who last edited the big query export.
      * This field is set by the server and will be ignored if provided on export
@@ -2136,22 +1927,20 @@ public com.google.protobuf.ByteString getMostRecentEditorBytes() {
      * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The mostRecentEditor to set. * @return This builder for chaining. */ - public Builder setMostRecentEditor(java.lang.String value) { + public Builder setMostRecentEditor( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mostRecentEditor_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Email address of the user who last edited the big query export.
      * This field is set by the server and will be ignored if provided on export
@@ -2159,18 +1948,15 @@ public Builder setMostRecentEditor(java.lang.String value) {
      * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMostRecentEditor() { - + mostRecentEditor_ = getDefaultInstance().getMostRecentEditor(); onChanged(); return this; } /** - * - * *
      * Output only. Email address of the user who last edited the big query export.
      * This field is set by the server and will be ignored if provided on export
@@ -2178,16 +1964,16 @@ public Builder clearMostRecentEditor() {
      * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for mostRecentEditor to set. * @return This builder for chaining. */ - public Builder setMostRecentEditorBytes(com.google.protobuf.ByteString value) { + public Builder setMostRecentEditorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mostRecentEditor_ = value; onChanged(); return this; @@ -2195,21 +1981,19 @@ public Builder setMostRecentEditorBytes(com.google.protobuf.ByteString value) { private java.lang.Object principal_ = ""; /** - * - * *
      * Output only. The service account that needs permission to create table, upload data to
      * the big query dataset.
      * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The principal. */ public java.lang.String getPrincipal() { java.lang.Object ref = principal_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principal_ = s; return s; @@ -2218,22 +2002,21 @@ public java.lang.String getPrincipal() { } } /** - * - * *
      * Output only. The service account that needs permission to create table, upload data to
      * the big query dataset.
      * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for principal. */ - public com.google.protobuf.ByteString getPrincipalBytes() { + public com.google.protobuf.ByteString + getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); principal_ = b; return b; } else { @@ -2241,71 +2024,64 @@ public com.google.protobuf.ByteString getPrincipalBytes() { } } /** - * - * *
      * Output only. The service account that needs permission to create table, upload data to
      * the big query dataset.
      * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The principal to set. * @return This builder for chaining. */ - public Builder setPrincipal(java.lang.String value) { + public Builder setPrincipal( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + principal_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The service account that needs permission to create table, upload data to
      * the big query dataset.
      * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPrincipal() { - + principal_ = getDefaultInstance().getPrincipal(); onChanged(); return this; } /** - * - * *
      * Output only. The service account that needs permission to create table, upload data to
      * the big query dataset.
      * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for principal to set. * @return This builder for chaining. */ - public Builder setPrincipalBytes(com.google.protobuf.ByteString value) { + public Builder setPrincipalBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principal_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2315,12 +2091,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.BigQueryExport) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.BigQueryExport) private static final com.google.cloud.securitycenter.v1.BigQueryExport DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.BigQueryExport(); } @@ -2329,16 +2105,16 @@ public static com.google.cloud.securitycenter.v1.BigQueryExport getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryExport parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BigQueryExport(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryExport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BigQueryExport(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2353,4 +2129,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.BigQueryExport getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportName.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportName.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportName.java diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java similarity index 83% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java index 913eaddea..e24d90ab0 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/bigquery_export.proto package com.google.cloud.securitycenter.v1; -public interface BigQueryExportOrBuilder - extends +public interface BigQueryExportOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.BigQueryExport) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The relative resource name of this export. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name.
@@ -38,13 +20,10 @@ public interface BigQueryExportOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The relative resource name of this export. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name.
@@ -57,39 +36,32 @@ public interface BigQueryExportOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The description of the export (max of 1024 characters).
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * The description of the export (max of 1024 characters).
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Expression that defines the filter to apply across create/update events
    * of findings. The expression is a list of zero or more restrictions combined
@@ -109,13 +81,10 @@ public interface BigQueryExportOrBuilder
    * 
* * string filter = 3; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Expression that defines the filter to apply across create/update events
    * of findings. The expression is a list of zero or more restrictions combined
@@ -135,14 +104,12 @@ public interface BigQueryExportOrBuilder
    * 
* * string filter = 3; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * The dataset to write findings' updates to. Its format is
    * "projects/[project_id]/datasets/[bigquery_dataset_id]".
@@ -151,13 +118,10 @@ public interface BigQueryExportOrBuilder
    * 
* * string dataset = 4; - * * @return The dataset. */ java.lang.String getDataset(); /** - * - * *
    * The dataset to write findings' updates to. Its format is
    * "projects/[project_id]/datasets/[bigquery_dataset_id]".
@@ -166,102 +130,78 @@ public interface BigQueryExportOrBuilder
    * 
* * string dataset = 4; - * * @return The bytes for dataset. */ - com.google.protobuf.ByteString getDatasetBytes(); + com.google.protobuf.ByteString + getDatasetBytes(); /** - * - * *
    * Output only. The time at which the big query export was created.
    * This field is set by the server and will be ignored if provided on export
    * on creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time at which the big query export was created.
    * This field is set by the server and will be ignored if provided on export
    * on creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time at which the big query export was created.
    * This field is set by the server and will be ignored if provided on export
    * on creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The most recent time at which the big export was updated.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The most recent time at which the big export was updated.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The most recent time at which the big export was updated.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. Email address of the user who last edited the big query export.
    * This field is set by the server and will be ignored if provided on export
@@ -269,13 +209,10 @@ public interface BigQueryExportOrBuilder
    * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The mostRecentEditor. */ java.lang.String getMostRecentEditor(); /** - * - * *
    * Output only. Email address of the user who last edited the big query export.
    * This field is set by the server and will be ignored if provided on export
@@ -283,35 +220,30 @@ public interface BigQueryExportOrBuilder
    * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for mostRecentEditor. */ - com.google.protobuf.ByteString getMostRecentEditorBytes(); + com.google.protobuf.ByteString + getMostRecentEditorBytes(); /** - * - * *
    * Output only. The service account that needs permission to create table, upload data to
    * the big query dataset.
    * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The principal. */ java.lang.String getPrincipal(); /** - * - * *
    * Output only. The service account that needs permission to create table, upload data to
    * the big query dataset.
    * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for principal. */ - com.google.protobuf.ByteString getPrincipalBytes(); + com.google.protobuf.ByteString + getPrincipalBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportProto.java new file mode 100644 index 000000000..59f6d78ac --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportProto.java @@ -0,0 +1,79 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/bigquery_export.proto + +package com.google.cloud.securitycenter.v1; + +public final class BigQueryExportProto { + private BigQueryExportProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_BigQueryExport_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/securitycenter/v1/bigquer" + + "y_export.proto\022\036google.cloud.securitycen" + + "ter.v1\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032\037google/proto" + + "buf/timestamp.proto\"\275\003\n\016BigQueryExport\022\014" + + "\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\016\n\006fil" + + "ter\030\003 \001(\t\022\017\n\007dataset\030\004 \001(\t\0224\n\013create_tim" + + "e\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013update_time\030\006 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022\037\n\022most_recent_editor\030\007 \001" + + "(\tB\003\340A\003\022\026\n\tprincipal\030\010 \001(\tB\003\340A\003:\301\001\352A\275\001\n," + + "securitycenter.googleapis.com/BigQueryEx" + + "port\0225organizations/{organization}/bigQu" + + "eryExports/{export}\022)folders/{folder}/bi" + + "gQueryExports/{export}\022+projects/{projec" + + "t}/bigQueryExports/{export}B\357\001\n\"com.goog" + + "le.cloud.securitycenter.v1B\023BigQueryExpo" + + "rtProtoP\001ZLgoogle.golang.org/genproto/go" + + "ogleapis/cloud/securitycenter/v1;securit" + + "ycenter\252\002\036Google.Cloud.SecurityCenter.V1" + + "\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!Goog" + + "le::Cloud::SecurityCenter::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_BigQueryExport_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor, + new java.lang.String[] { "Name", "Description", "Filter", "Dataset", "CreateTime", "UpdateTime", "MostRecentEditor", "Principal", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequest.java similarity index 72% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequest.java index dd8dd5634..64585cedb 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for bulk findings update.
  * Note:
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.BulkMuteFindingsRequest}
  */
-public final class BulkMuteFindingsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BulkMuteFindingsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.BulkMuteFindingsRequest)
     BulkMuteFindingsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BulkMuteFindingsRequest.newBuilder() to construct.
   private BulkMuteFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private BulkMuteFindingsRequest() {
     parent_ = "";
     filter_ = "";
@@ -49,15 +31,16 @@ private BulkMuteFindingsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BulkMuteFindingsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private BulkMuteFindingsRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,34 +59,31 @@ private BulkMuteFindingsRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            parent_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              filter_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            filter_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              muteAnnotation_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            muteAnnotation_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -111,43 +91,36 @@ private BulkMuteFindingsRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1.SecuritycenterService
-        .internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.SecuritycenterService
-        .internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.class,
-            com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.Builder.class);
+            com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.class, com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Required. The parent, at which bulk action needs to be applied. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -156,33 +129,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent, at which bulk action needs to be applied. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -193,8 +164,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Expression that identifies findings that should be updated.
    * The expression is a list of zero or more restrictions combined
@@ -214,7 +183,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -223,15 +191,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Expression that identifies findings that should be updated.
    * The expression is a list of zero or more restrictions combined
@@ -251,15 +218,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -270,53 +238,48 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int MUTE_ANNOTATION_FIELD_NUMBER = 3; private volatile java.lang.Object muteAnnotation_; /** - * - * *
    * This can be a mute configuration name or any identifier for mute/unmute
    * of findings based on the filter.
    * 
* * string mute_annotation = 3 [deprecated = true]; - * - * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is - * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 + * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. + * See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 * @return The muteAnnotation. */ @java.lang.Override - @java.lang.Deprecated - public java.lang.String getMuteAnnotation() { + @java.lang.Deprecated public java.lang.String getMuteAnnotation() { java.lang.Object ref = muteAnnotation_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); muteAnnotation_ = s; return s; } } /** - * - * *
    * This can be a mute configuration name or any identifier for mute/unmute
    * of findings based on the filter.
    * 
* * string mute_annotation = 3 [deprecated = true]; - * - * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is - * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 + * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. + * See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 * @return The bytes for muteAnnotation. */ @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getMuteAnnotationBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getMuteAnnotationBytes() { java.lang.Object ref = muteAnnotation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); muteAnnotation_ = b; return b; } else { @@ -325,7 +288,6 @@ public com.google.protobuf.ByteString getMuteAnnotationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -337,7 +299,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -373,17 +336,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest other = - (com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getMuteAnnotation().equals(other.getMuteAnnotation())) return false; + com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest other = (com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getMuteAnnotation() + .equals(other.getMuteAnnotation())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -407,104 +372,96 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for bulk findings update.
    * Note:
@@ -515,23 +472,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.BulkMuteFindingsRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.BulkMuteFindingsRequest)
       com.google.cloud.securitycenter.v1.BulkMuteFindingsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.SecuritycenterService
-          .internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.SecuritycenterService
-          .internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.class,
-              com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.Builder.class);
+              com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.class, com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.newBuilder()
@@ -539,15 +494,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -561,9 +517,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.SecuritycenterService
-          .internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -582,8 +538,7 @@ public com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest buildPartial() {
-      com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest result =
-          new com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest(this);
+      com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest result = new com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest(this);
       result.parent_ = parent_;
       result.filter_ = filter_;
       result.muteAnnotation_ = muteAnnotation_;
@@ -595,39 +550,38 @@ public com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -635,8 +589,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest other) {
-      if (other == com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -668,8 +621,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -681,24 +633,20 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent, at which bulk action needs to be applied. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -707,25 +655,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, at which bulk action needs to be applied. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -733,73 +678,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, at which bulk action needs to be applied. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent, at which bulk action needs to be applied. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent, at which bulk action needs to be applied. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -807,8 +739,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Expression that identifies findings that should be updated.
      * The expression is a list of zero or more restrictions combined
@@ -828,13 +758,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -843,8 +773,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Expression that identifies findings that should be updated.
      * The expression is a list of zero or more restrictions combined
@@ -864,14 +792,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -879,8 +808,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Expression that identifies findings that should be updated.
      * The expression is a list of zero or more restrictions combined
@@ -900,22 +827,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Expression that identifies findings that should be updated.
      * The expression is a list of zero or more restrictions combined
@@ -935,18 +860,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Expression that identifies findings that should be updated.
      * The expression is a list of zero or more restrictions combined
@@ -966,16 +888,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -983,24 +905,21 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object muteAnnotation_ = ""; /** - * - * *
      * This can be a mute configuration name or any identifier for mute/unmute
      * of findings based on the filter.
      * 
* * string mute_annotation = 3 [deprecated = true]; - * - * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is - * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 + * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. + * See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 * @return The muteAnnotation. */ - @java.lang.Deprecated - public java.lang.String getMuteAnnotation() { + @java.lang.Deprecated public java.lang.String getMuteAnnotation() { java.lang.Object ref = muteAnnotation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); muteAnnotation_ = s; return s; @@ -1009,25 +928,23 @@ public java.lang.String getMuteAnnotation() { } } /** - * - * *
      * This can be a mute configuration name or any identifier for mute/unmute
      * of findings based on the filter.
      * 
* * string mute_annotation = 3 [deprecated = true]; - * - * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is - * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 + * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. + * See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 * @return The bytes for muteAnnotation. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getMuteAnnotationBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getMuteAnnotationBytes() { java.lang.Object ref = muteAnnotation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); muteAnnotation_ = b; return b; } else { @@ -1035,80 +952,70 @@ public com.google.protobuf.ByteString getMuteAnnotationBytes() { } } /** - * - * *
      * This can be a mute configuration name or any identifier for mute/unmute
      * of findings based on the filter.
      * 
* * string mute_annotation = 3 [deprecated = true]; - * - * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is - * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 + * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. + * See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 * @param value The muteAnnotation to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setMuteAnnotation(java.lang.String value) { + @java.lang.Deprecated public Builder setMuteAnnotation( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + muteAnnotation_ = value; onChanged(); return this; } /** - * - * *
      * This can be a mute configuration name or any identifier for mute/unmute
      * of findings based on the filter.
      * 
* * string mute_annotation = 3 [deprecated = true]; - * - * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is - * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 + * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. + * See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearMuteAnnotation() { - + @java.lang.Deprecated public Builder clearMuteAnnotation() { + muteAnnotation_ = getDefaultInstance().getMuteAnnotation(); onChanged(); return this; } /** - * - * *
      * This can be a mute configuration name or any identifier for mute/unmute
      * of findings based on the filter.
      * 
* * string mute_annotation = 3 [deprecated = true]; - * - * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is - * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 + * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. + * See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 * @param value The bytes for muteAnnotation to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setMuteAnnotationBytes(com.google.protobuf.ByteString value) { + @java.lang.Deprecated public Builder setMuteAnnotationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + muteAnnotation_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1118,12 +1025,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.BulkMuteFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.BulkMuteFindingsRequest) private static final com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest(); } @@ -1132,16 +1039,16 @@ public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BulkMuteFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BulkMuteFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BulkMuteFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BulkMuteFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1156,4 +1063,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequestOrBuilder.java index 911496824..b42e89fd7 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface BulkMuteFindingsRequestOrBuilder - extends +public interface BulkMuteFindingsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.BulkMuteFindingsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent, at which bulk action needs to be applied. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent, at which bulk action needs to be applied. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Expression that identifies findings that should be updated.
    * The expression is a list of zero or more restrictions combined
@@ -78,13 +51,10 @@ public interface BulkMuteFindingsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Expression that identifies findings that should be updated.
    * The expression is a list of zero or more restrictions combined
@@ -104,41 +74,34 @@ public interface BulkMuteFindingsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * This can be a mute configuration name or any identifier for mute/unmute
    * of findings based on the filter.
    * 
* * string mute_annotation = 3 [deprecated = true]; - * - * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is - * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 + * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. + * See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 * @return The muteAnnotation. */ - @java.lang.Deprecated - java.lang.String getMuteAnnotation(); + @java.lang.Deprecated java.lang.String getMuteAnnotation(); /** - * - * *
    * This can be a mute configuration name or any identifier for mute/unmute
    * of findings based on the filter.
    * 
* * string mute_annotation = 3 [deprecated = true]; - * - * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is - * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 + * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. + * See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 * @return The bytes for muteAnnotation. */ - @java.lang.Deprecated - com.google.protobuf.ByteString getMuteAnnotationBytes(); + @java.lang.Deprecated com.google.protobuf.ByteString + getMuteAnnotationBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponse.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponse.java similarity index 67% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponse.java index 12d621360..3355fbffc 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponse.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * The response to a BulkMute request. Contains the LRO information.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.BulkMuteFindingsResponse} */ -public final class BulkMuteFindingsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BulkMuteFindingsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.BulkMuteFindingsResponse) BulkMuteFindingsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BulkMuteFindingsResponse.newBuilder() to construct. private BulkMuteFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BulkMuteFindingsResponse() {} + private BulkMuteFindingsResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BulkMuteFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BulkMuteFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,13 +52,13 @@ private BulkMuteFindingsResponse( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -82,30 +66,27 @@ private BulkMuteFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.class, - com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.class, com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -117,7 +98,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -135,13 +117,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse other = - (com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse) obj; + com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse other = (com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -160,127 +141,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response to a BulkMute request. Contains the LRO information.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.BulkMuteFindingsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.BulkMuteFindingsResponse) com.google.cloud.securitycenter.v1.BulkMuteFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.class, - com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.class, com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.newBuilder() @@ -288,15 +259,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -304,9 +276,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor; } @java.lang.Override @@ -325,8 +297,7 @@ public com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse buildPartial() { - com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse result = - new com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse(this); + com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse result = new com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse(this); onBuilt(); return result; } @@ -335,39 +306,38 @@ public com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse)other); } else { super.mergeFrom(other); return this; @@ -375,8 +345,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse other) { - if (other == com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -396,8 +365,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -406,9 +374,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -418,12 +386,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.BulkMuteFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.BulkMuteFindingsResponse) private static final com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse(); } @@ -432,16 +400,16 @@ public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BulkMuteFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BulkMuteFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BulkMuteFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BulkMuteFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -456,4 +424,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponseOrBuilder.java new file mode 100644 index 000000000..28f111609 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface BulkMuteFindingsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.BulkMuteFindingsResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Compliance.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Compliance.java similarity index 72% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Compliance.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Compliance.java index 0ab2a44ae..e38f24f55 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Compliance.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Compliance.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/compliance.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Contains compliance information about a security standard indicating unmet
  * recommendations.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.Compliance}
  */
-public final class Compliance extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Compliance extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Compliance)
     ComplianceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Compliance.newBuilder() to construct.
   private Compliance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Compliance() {
     standard_ = "";
     version_ = "";
@@ -46,15 +28,16 @@ private Compliance() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Compliance();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Compliance(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,37 +57,34 @@ private Compliance(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              standard_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            standard_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              version_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                ids_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              ids_.add(s);
-              break;
+            version_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              ids_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            ids_.add(s);
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -112,7 +92,8 @@ private Compliance(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         ids_ = ids_.getUnmodifiableView();
@@ -121,34 +102,28 @@ private Compliance(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1.ComplianceProto
-        .internal_static_google_cloud_securitycenter_v1_Compliance_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1.ComplianceProto.internal_static_google_cloud_securitycenter_v1_Compliance_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.ComplianceProto
-        .internal_static_google_cloud_securitycenter_v1_Compliance_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.ComplianceProto.internal_static_google_cloud_securitycenter_v1_Compliance_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.Compliance.class,
-            com.google.cloud.securitycenter.v1.Compliance.Builder.class);
+            com.google.cloud.securitycenter.v1.Compliance.class, com.google.cloud.securitycenter.v1.Compliance.Builder.class);
   }
 
   public static final int STANDARD_FIELD_NUMBER = 1;
   private volatile java.lang.Object standard_;
   /**
-   *
-   *
    * 
    * Refers to industry wide standards or benchmarks e.g. "cis", "pci", "owasp",
    * etc.
    * 
* * string standard = 1; - * * @return The standard. */ @java.lang.Override @@ -157,30 +132,30 @@ public java.lang.String getStandard() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); standard_ = s; return s; } } /** - * - * *
    * Refers to industry wide standards or benchmarks e.g. "cis", "pci", "owasp",
    * etc.
    * 
* * string standard = 1; - * * @return The bytes for standard. */ @java.lang.Override - public com.google.protobuf.ByteString getStandardBytes() { + public com.google.protobuf.ByteString + getStandardBytes() { java.lang.Object ref = standard_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); standard_ = b; return b; } else { @@ -191,14 +166,11 @@ public com.google.protobuf.ByteString getStandardBytes() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** - * - * *
    * Version of the standard/benchmark e.g. 1.1
    * 
* * string version = 2; - * * @return The version. */ @java.lang.Override @@ -207,29 +179,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * Version of the standard/benchmark e.g. 1.1
    * 
* * string version = 2; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -240,42 +212,34 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int IDS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList ids_; /** - * - * *
    * Policies within the standard/benchmark e.g. A.12.4.1
    * 
* * repeated string ids = 3; - * * @return A list containing the ids. */ - public com.google.protobuf.ProtocolStringList getIdsList() { + public com.google.protobuf.ProtocolStringList + getIdsList() { return ids_; } /** - * - * *
    * Policies within the standard/benchmark e.g. A.12.4.1
    * 
* * repeated string ids = 3; - * * @return The count of ids. */ public int getIdsCount() { return ids_.size(); } /** - * - * *
    * Policies within the standard/benchmark e.g. A.12.4.1
    * 
* * repeated string ids = 3; - * * @param index The index of the element to return. * @return The ids at the given index. */ @@ -283,23 +247,20 @@ public java.lang.String getIds(int index) { return ids_.get(index); } /** - * - * *
    * Policies within the standard/benchmark e.g. A.12.4.1
    * 
* * repeated string ids = 3; - * * @param index The index of the value to return. * @return The bytes of the ids at the given index. */ - public com.google.protobuf.ByteString getIdsBytes(int index) { + public com.google.protobuf.ByteString + getIdsBytes(int index) { return ids_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,7 +272,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(standard_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, standard_); } @@ -352,17 +314,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Compliance)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Compliance other = - (com.google.cloud.securitycenter.v1.Compliance) obj; + com.google.cloud.securitycenter.v1.Compliance other = (com.google.cloud.securitycenter.v1.Compliance) obj; - if (!getStandard().equals(other.getStandard())) return false; - if (!getVersion().equals(other.getVersion())) return false; - if (!getIdsList().equals(other.getIdsList())) return false; + if (!getStandard() + .equals(other.getStandard())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getIdsList() + .equals(other.getIdsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -387,104 +351,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Compliance parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Compliance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Compliance parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Compliance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Compliance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Compliance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Compliance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Compliance parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Compliance parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.Compliance parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.Compliance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Compliance parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Compliance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Compliance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.Compliance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Contains compliance information about a security standard indicating unmet
    * recommendations.
@@ -492,23 +449,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.Compliance}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Compliance)
       com.google.cloud.securitycenter.v1.ComplianceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.ComplianceProto
-          .internal_static_google_cloud_securitycenter_v1_Compliance_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.ComplianceProto.internal_static_google_cloud_securitycenter_v1_Compliance_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.ComplianceProto
-          .internal_static_google_cloud_securitycenter_v1_Compliance_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.ComplianceProto.internal_static_google_cloud_securitycenter_v1_Compliance_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.Compliance.class,
-              com.google.cloud.securitycenter.v1.Compliance.Builder.class);
+              com.google.cloud.securitycenter.v1.Compliance.class, com.google.cloud.securitycenter.v1.Compliance.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.Compliance.newBuilder()
@@ -516,15 +471,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -538,9 +494,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.ComplianceProto
-          .internal_static_google_cloud_securitycenter_v1_Compliance_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.ComplianceProto.internal_static_google_cloud_securitycenter_v1_Compliance_descriptor;
     }
 
     @java.lang.Override
@@ -559,8 +515,7 @@ public com.google.cloud.securitycenter.v1.Compliance build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.Compliance buildPartial() {
-      com.google.cloud.securitycenter.v1.Compliance result =
-          new com.google.cloud.securitycenter.v1.Compliance(this);
+      com.google.cloud.securitycenter.v1.Compliance result = new com.google.cloud.securitycenter.v1.Compliance(this);
       int from_bitField0_ = bitField0_;
       result.standard_ = standard_;
       result.version_ = version_;
@@ -577,39 +532,38 @@ public com.google.cloud.securitycenter.v1.Compliance buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.Compliance) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.Compliance) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.Compliance)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -664,26 +618,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object standard_ = "";
     /**
-     *
-     *
      * 
      * Refers to industry wide standards or benchmarks e.g. "cis", "pci", "owasp",
      * etc.
      * 
* * string standard = 1; - * * @return The standard. */ public java.lang.String getStandard() { java.lang.Object ref = standard_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); standard_ = s; return s; @@ -692,22 +643,21 @@ public java.lang.String getStandard() { } } /** - * - * *
      * Refers to industry wide standards or benchmarks e.g. "cis", "pci", "owasp",
      * etc.
      * 
* * string standard = 1; - * * @return The bytes for standard. */ - public com.google.protobuf.ByteString getStandardBytes() { + public com.google.protobuf.ByteString + getStandardBytes() { java.lang.Object ref = standard_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); standard_ = b; return b; } else { @@ -715,64 +665,57 @@ public com.google.protobuf.ByteString getStandardBytes() { } } /** - * - * *
      * Refers to industry wide standards or benchmarks e.g. "cis", "pci", "owasp",
      * etc.
      * 
* * string standard = 1; - * * @param value The standard to set. * @return This builder for chaining. */ - public Builder setStandard(java.lang.String value) { + public Builder setStandard( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + standard_ = value; onChanged(); return this; } /** - * - * *
      * Refers to industry wide standards or benchmarks e.g. "cis", "pci", "owasp",
      * etc.
      * 
* * string standard = 1; - * * @return This builder for chaining. */ public Builder clearStandard() { - + standard_ = getDefaultInstance().getStandard(); onChanged(); return this; } /** - * - * *
      * Refers to industry wide standards or benchmarks e.g. "cis", "pci", "owasp",
      * etc.
      * 
* * string standard = 1; - * * @param value The bytes for standard to set. * @return This builder for chaining. */ - public Builder setStandardBytes(com.google.protobuf.ByteString value) { + public Builder setStandardBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + standard_ = value; onChanged(); return this; @@ -780,20 +723,18 @@ public Builder setStandardBytes(com.google.protobuf.ByteString value) { private java.lang.Object version_ = ""; /** - * - * *
      * Version of the standard/benchmark e.g. 1.1
      * 
* * string version = 2; - * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -802,21 +743,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * Version of the standard/benchmark e.g. 1.1
      * 
* * string version = 2; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -824,111 +764,95 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * Version of the standard/benchmark e.g. 1.1
      * 
* * string version = 2; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * Version of the standard/benchmark e.g. 1.1
      * 
* * string version = 2; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * Version of the standard/benchmark e.g. 1.1
      * 
* * string version = 2; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ids_ = new com.google.protobuf.LazyStringArrayList(ids_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Policies within the standard/benchmark e.g. A.12.4.1
      * 
* * repeated string ids = 3; - * * @return A list containing the ids. */ - public com.google.protobuf.ProtocolStringList getIdsList() { + public com.google.protobuf.ProtocolStringList + getIdsList() { return ids_.getUnmodifiableView(); } /** - * - * *
      * Policies within the standard/benchmark e.g. A.12.4.1
      * 
* * repeated string ids = 3; - * * @return The count of ids. */ public int getIdsCount() { return ids_.size(); } /** - * - * *
      * Policies within the standard/benchmark e.g. A.12.4.1
      * 
* * repeated string ids = 3; - * * @param index The index of the element to return. * @return The ids at the given index. */ @@ -936,90 +860,80 @@ public java.lang.String getIds(int index) { return ids_.get(index); } /** - * - * *
      * Policies within the standard/benchmark e.g. A.12.4.1
      * 
* * repeated string ids = 3; - * * @param index The index of the value to return. * @return The bytes of the ids at the given index. */ - public com.google.protobuf.ByteString getIdsBytes(int index) { + public com.google.protobuf.ByteString + getIdsBytes(int index) { return ids_.getByteString(index); } /** - * - * *
      * Policies within the standard/benchmark e.g. A.12.4.1
      * 
* * repeated string ids = 3; - * * @param index The index to set the value at. * @param value The ids to set. * @return This builder for chaining. */ - public Builder setIds(int index, java.lang.String value) { + public Builder setIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIdsIsMutable(); + throw new NullPointerException(); + } + ensureIdsIsMutable(); ids_.set(index, value); onChanged(); return this; } /** - * - * *
      * Policies within the standard/benchmark e.g. A.12.4.1
      * 
* * repeated string ids = 3; - * * @param value The ids to add. * @return This builder for chaining. */ - public Builder addIds(java.lang.String value) { + public Builder addIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIdsIsMutable(); + throw new NullPointerException(); + } + ensureIdsIsMutable(); ids_.add(value); onChanged(); return this; } /** - * - * *
      * Policies within the standard/benchmark e.g. A.12.4.1
      * 
* * repeated string ids = 3; - * * @param values The ids to add. * @return This builder for chaining. */ - public Builder addAllIds(java.lang.Iterable values) { + public Builder addAllIds( + java.lang.Iterable values) { ensureIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ids_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ids_); onChanged(); return this; } /** - * - * *
      * Policies within the standard/benchmark e.g. A.12.4.1
      * 
* * repeated string ids = 3; - * * @return This builder for chaining. */ public Builder clearIds() { @@ -1029,30 +943,28 @@ public Builder clearIds() { return this; } /** - * - * *
      * Policies within the standard/benchmark e.g. A.12.4.1
      * 
* * repeated string ids = 3; - * * @param value The bytes of the ids to add. * @return This builder for chaining. */ - public Builder addIdsBytes(com.google.protobuf.ByteString value) { + public Builder addIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIdsIsMutable(); ids_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1062,12 +974,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Compliance) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Compliance) private static final com.google.cloud.securitycenter.v1.Compliance DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Compliance(); } @@ -1076,16 +988,16 @@ public static com.google.cloud.securitycenter.v1.Compliance getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Compliance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Compliance(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Compliance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Compliance(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1100,4 +1012,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Compliance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceOrBuilder.java similarity index 67% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceOrBuilder.java index 5c95e93b5..f4fca6aff 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceOrBuilder.java @@ -1,128 +1,92 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/compliance.proto package com.google.cloud.securitycenter.v1; -public interface ComplianceOrBuilder - extends +public interface ComplianceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Compliance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Refers to industry wide standards or benchmarks e.g. "cis", "pci", "owasp",
    * etc.
    * 
* * string standard = 1; - * * @return The standard. */ java.lang.String getStandard(); /** - * - * *
    * Refers to industry wide standards or benchmarks e.g. "cis", "pci", "owasp",
    * etc.
    * 
* * string standard = 1; - * * @return The bytes for standard. */ - com.google.protobuf.ByteString getStandardBytes(); + com.google.protobuf.ByteString + getStandardBytes(); /** - * - * *
    * Version of the standard/benchmark e.g. 1.1
    * 
* * string version = 2; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * Version of the standard/benchmark e.g. 1.1
    * 
* * string version = 2; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
    * Policies within the standard/benchmark e.g. A.12.4.1
    * 
* * repeated string ids = 3; - * * @return A list containing the ids. */ - java.util.List getIdsList(); + java.util.List + getIdsList(); /** - * - * *
    * Policies within the standard/benchmark e.g. A.12.4.1
    * 
* * repeated string ids = 3; - * * @return The count of ids. */ int getIdsCount(); /** - * - * *
    * Policies within the standard/benchmark e.g. A.12.4.1
    * 
* * repeated string ids = 3; - * * @param index The index of the element to return. * @return The ids at the given index. */ java.lang.String getIds(int index); /** - * - * *
    * Policies within the standard/benchmark e.g. A.12.4.1
    * 
* * repeated string ids = 3; - * * @param index The index of the value to return. * @return The bytes of the ids at the given index. */ - com.google.protobuf.ByteString getIdsBytes(int index); + com.google.protobuf.ByteString + getIdsBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceProto.java new file mode 100644 index 000000000..009724a6c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceProto.java @@ -0,0 +1,55 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/compliance.proto + +package com.google.cloud.securitycenter.v1; + +public final class ComplianceProto { + private ComplianceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Compliance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Compliance_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n/google/cloud/securitycenter/v1/complia" + + "nce.proto\022\036google.cloud.securitycenter.v" + + "1\"<\n\nCompliance\022\020\n\010standard\030\001 \001(\t\022\017\n\007ver" + + "sion\030\002 \001(\t\022\013\n\003ids\030\003 \003(\tB\353\001\n\"com.google.c" + + "loud.securitycenter.v1B\017ComplianceProtoP" + + "\001ZLgoogle.golang.org/genproto/googleapis" + + "/cloud/securitycenter/v1;securitycenter\252" + + "\002\036Google.Cloud.SecurityCenter.V1\312\002\036Googl" + + "e\\Cloud\\SecurityCenter\\V1\352\002!Google::Clou" + + "d::SecurityCenter::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_securitycenter_v1_Compliance_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Compliance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Compliance_descriptor, + new java.lang.String[] { "Standard", "Version", "Ids", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Connection.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Connection.java similarity index 72% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Connection.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Connection.java index 075bd8f1f..6faa9b69b 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Connection.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Connection.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/connection.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Contains information about the IP connection associated with the finding.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Connection} */ -public final class Connection extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Connection extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Connection) ConnectionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Connection.newBuilder() to construct. private Connection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Connection() { destinationIp_ = ""; sourceIp_ = ""; @@ -45,15 +27,16 @@ private Connection() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Connection(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Connection( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,44 +55,41 @@ private Connection( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - destinationIp_ = s; - break; - } - case 16: - { - destinationPort_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + destinationIp_ = s; + break; + } + case 16: { - sourceIp_ = s; - break; - } - case 32: - { - sourcePort_ = input.readInt32(); - break; - } - case 40: - { - int rawValue = input.readEnum(); + destinationPort_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - protocol_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + sourceIp_ = s; + break; + } + case 32: { + + sourcePort_ = input.readInt32(); + break; + } + case 40: { + int rawValue = input.readEnum(); + + protocol_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -117,41 +97,36 @@ private Connection( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.ConnectionProto - .internal_static_google_cloud_securitycenter_v1_Connection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.ConnectionProto.internal_static_google_cloud_securitycenter_v1_Connection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ConnectionProto - .internal_static_google_cloud_securitycenter_v1_Connection_fieldAccessorTable + return com.google.cloud.securitycenter.v1.ConnectionProto.internal_static_google_cloud_securitycenter_v1_Connection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Connection.class, - com.google.cloud.securitycenter.v1.Connection.Builder.class); + com.google.cloud.securitycenter.v1.Connection.class, com.google.cloud.securitycenter.v1.Connection.Builder.class); } /** - * - * *
    * IANA Internet Protocol Number such as TCP(6) and UDP(17).
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1.Connection.Protocol} */ - public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { + public enum Protocol + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified protocol (not HOPOPT).
      * 
@@ -160,8 +135,6 @@ public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { */ PROTOCOL_UNSPECIFIED(0), /** - * - * *
      * Internet Control Message Protocol.
      * 
@@ -170,8 +143,6 @@ public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { */ ICMP(1), /** - * - * *
      * Transmission Control Protocol.
      * 
@@ -180,8 +151,6 @@ public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { */ TCP(6), /** - * - * *
      * User Datagram Protocol.
      * 
@@ -190,8 +159,6 @@ public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { */ UDP(17), /** - * - * *
      * Generic Routing Encapsulation.
      * 
@@ -200,8 +167,6 @@ public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { */ GRE(47), /** - * - * *
      * Encap Security Payload.
      * 
@@ -213,8 +178,6 @@ public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified protocol (not HOPOPT).
      * 
@@ -223,8 +186,6 @@ public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROTOCOL_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Internet Control Message Protocol.
      * 
@@ -233,8 +194,6 @@ public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ICMP_VALUE = 1; /** - * - * *
      * Transmission Control Protocol.
      * 
@@ -243,8 +202,6 @@ public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TCP_VALUE = 6; /** - * - * *
      * User Datagram Protocol.
      * 
@@ -253,8 +210,6 @@ public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UDP_VALUE = 17; /** - * - * *
      * Generic Routing Encapsulation.
      * 
@@ -263,8 +218,6 @@ public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GRE_VALUE = 47; /** - * - * *
      * Encap Security Payload.
      * 
@@ -273,6 +226,7 @@ public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ESP_VALUE = 50; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -297,55 +251,52 @@ public static Protocol valueOf(int value) { */ public static Protocol forNumber(int value) { switch (value) { - case 0: - return PROTOCOL_UNSPECIFIED; - case 1: - return ICMP; - case 6: - return TCP; - case 17: - return UDP; - case 47: - return GRE; - case 50: - return ESP; - default: - return null; + case 0: return PROTOCOL_UNSPECIFIED; + case 1: return ICMP; + case 6: return TCP; + case 17: return UDP; + case 47: return GRE; + case 50: return ESP; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Protocol> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Protocol findValueByNumber(int number) { + return Protocol.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Protocol findValueByNumber(int number) { - return Protocol.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.securitycenter.v1.Connection.getDescriptor().getEnumTypes().get(0); } private static final Protocol[] VALUES = values(); - public static Protocol valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Protocol valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -365,15 +316,12 @@ private Protocol(int value) { public static final int DESTINATION_IP_FIELD_NUMBER = 1; private volatile java.lang.Object destinationIp_; /** - * - * *
    * Destination IP address. Not present for sockets that are listening and not
    * connected.
    * 
* * string destination_ip = 1; - * * @return The destinationIp. */ @java.lang.Override @@ -382,30 +330,30 @@ public java.lang.String getDestinationIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationIp_ = s; return s; } } /** - * - * *
    * Destination IP address. Not present for sockets that are listening and not
    * connected.
    * 
* * string destination_ip = 1; - * * @return The bytes for destinationIp. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationIpBytes() { + public com.google.protobuf.ByteString + getDestinationIpBytes() { java.lang.Object ref = destinationIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationIp_ = b; return b; } else { @@ -416,15 +364,12 @@ public com.google.protobuf.ByteString getDestinationIpBytes() { public static final int DESTINATION_PORT_FIELD_NUMBER = 2; private int destinationPort_; /** - * - * *
    * Destination port. Not present for sockets that are listening and not
    * connected.
    * 
* * int32 destination_port = 2; - * * @return The destinationPort. */ @java.lang.Override @@ -435,14 +380,11 @@ public int getDestinationPort() { public static final int SOURCE_IP_FIELD_NUMBER = 3; private volatile java.lang.Object sourceIp_; /** - * - * *
    * Source IP address.
    * 
* * string source_ip = 3; - * * @return The sourceIp. */ @java.lang.Override @@ -451,29 +393,29 @@ public java.lang.String getSourceIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceIp_ = s; return s; } } /** - * - * *
    * Source IP address.
    * 
* * string source_ip = 3; - * * @return The bytes for sourceIp. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceIpBytes() { + public com.google.protobuf.ByteString + getSourceIpBytes() { java.lang.Object ref = sourceIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceIp_ = b; return b; } else { @@ -484,14 +426,11 @@ public com.google.protobuf.ByteString getSourceIpBytes() { public static final int SOURCE_PORT_FIELD_NUMBER = 4; private int sourcePort_; /** - * - * *
    * Source port.
    * 
* * int32 source_port = 4; - * * @return The sourcePort. */ @java.lang.Override @@ -502,43 +441,31 @@ public int getSourcePort() { public static final int PROTOCOL_FIELD_NUMBER = 5; private int protocol_; /** - * - * *
    * IANA Internet Protocol Number such as TCP(6) and UDP(17).
    * 
* * .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5; - * * @return The enum numeric value on the wire for protocol. */ - @java.lang.Override - public int getProtocolValue() { + @java.lang.Override public int getProtocolValue() { return protocol_; } /** - * - * *
    * IANA Internet Protocol Number such as TCP(6) and UDP(17).
    * 
* * .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5; - * * @return The protocol. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.Connection.Protocol getProtocol() { + @java.lang.Override public com.google.cloud.securitycenter.v1.Connection.Protocol getProtocol() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Connection.Protocol result = - com.google.cloud.securitycenter.v1.Connection.Protocol.valueOf(protocol_); - return result == null - ? com.google.cloud.securitycenter.v1.Connection.Protocol.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.Connection.Protocol result = com.google.cloud.securitycenter.v1.Connection.Protocol.valueOf(protocol_); + return result == null ? com.google.cloud.securitycenter.v1.Connection.Protocol.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -550,7 +477,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationIp_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destinationIp_); } @@ -563,9 +491,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sourcePort_ != 0) { output.writeInt32(4, sourcePort_); } - if (protocol_ - != com.google.cloud.securitycenter.v1.Connection.Protocol.PROTOCOL_UNSPECIFIED - .getNumber()) { + if (protocol_ != com.google.cloud.securitycenter.v1.Connection.Protocol.PROTOCOL_UNSPECIFIED.getNumber()) { output.writeEnum(5, protocol_); } unknownFields.writeTo(output); @@ -581,18 +507,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, destinationIp_); } if (destinationPort_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, destinationPort_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, destinationPort_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceIp_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceIp_); } if (sourcePort_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, sourcePort_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, sourcePort_); } - if (protocol_ - != com.google.cloud.securitycenter.v1.Connection.Protocol.PROTOCOL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, protocol_); + if (protocol_ != com.google.cloud.securitycenter.v1.Connection.Protocol.PROTOCOL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, protocol_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -602,18 +529,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Connection)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Connection other = - (com.google.cloud.securitycenter.v1.Connection) obj; + com.google.cloud.securitycenter.v1.Connection other = (com.google.cloud.securitycenter.v1.Connection) obj; - if (!getDestinationIp().equals(other.getDestinationIp())) return false; - if (getDestinationPort() != other.getDestinationPort()) return false; - if (!getSourceIp().equals(other.getSourceIp())) return false; - if (getSourcePort() != other.getSourcePort()) return false; + if (!getDestinationIp() + .equals(other.getDestinationIp())) return false; + if (getDestinationPort() + != other.getDestinationPort()) return false; + if (!getSourceIp() + .equals(other.getSourceIp())) return false; + if (getSourcePort() + != other.getSourcePort()) return false; if (protocol_ != other.protocol_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -641,127 +571,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Connection parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Connection parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Connection parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Connection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Connection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Connection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Connection parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Connection parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Connection parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.Connection parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.Connection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Connection parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Connection parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Connection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.Connection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Contains information about the IP connection associated with the finding.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Connection} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Connection) com.google.cloud.securitycenter.v1.ConnectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.ConnectionProto - .internal_static_google_cloud_securitycenter_v1_Connection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.ConnectionProto.internal_static_google_cloud_securitycenter_v1_Connection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ConnectionProto - .internal_static_google_cloud_securitycenter_v1_Connection_fieldAccessorTable + return com.google.cloud.securitycenter.v1.ConnectionProto.internal_static_google_cloud_securitycenter_v1_Connection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Connection.class, - com.google.cloud.securitycenter.v1.Connection.Builder.class); + com.google.cloud.securitycenter.v1.Connection.class, com.google.cloud.securitycenter.v1.Connection.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.Connection.newBuilder() @@ -769,15 +690,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -795,9 +717,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.ConnectionProto - .internal_static_google_cloud_securitycenter_v1_Connection_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.ConnectionProto.internal_static_google_cloud_securitycenter_v1_Connection_descriptor; } @java.lang.Override @@ -816,8 +738,7 @@ public com.google.cloud.securitycenter.v1.Connection build() { @java.lang.Override public com.google.cloud.securitycenter.v1.Connection buildPartial() { - com.google.cloud.securitycenter.v1.Connection result = - new com.google.cloud.securitycenter.v1.Connection(this); + com.google.cloud.securitycenter.v1.Connection result = new com.google.cloud.securitycenter.v1.Connection(this); result.destinationIp_ = destinationIp_; result.destinationPort_ = destinationPort_; result.sourceIp_ = sourceIp_; @@ -831,39 +752,38 @@ public com.google.cloud.securitycenter.v1.Connection buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.Connection) { - return mergeFrom((com.google.cloud.securitycenter.v1.Connection) other); + return mergeFrom((com.google.cloud.securitycenter.v1.Connection)other); } else { super.mergeFrom(other); return this; @@ -920,21 +840,19 @@ public Builder mergeFrom( private java.lang.Object destinationIp_ = ""; /** - * - * *
      * Destination IP address. Not present for sockets that are listening and not
      * connected.
      * 
* * string destination_ip = 1; - * * @return The destinationIp. */ public java.lang.String getDestinationIp() { java.lang.Object ref = destinationIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationIp_ = s; return s; @@ -943,22 +861,21 @@ public java.lang.String getDestinationIp() { } } /** - * - * *
      * Destination IP address. Not present for sockets that are listening and not
      * connected.
      * 
* * string destination_ip = 1; - * * @return The bytes for destinationIp. */ - public com.google.protobuf.ByteString getDestinationIpBytes() { + public com.google.protobuf.ByteString + getDestinationIpBytes() { java.lang.Object ref = destinationIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationIp_ = b; return b; } else { @@ -966,80 +883,70 @@ public com.google.protobuf.ByteString getDestinationIpBytes() { } } /** - * - * *
      * Destination IP address. Not present for sockets that are listening and not
      * connected.
      * 
* * string destination_ip = 1; - * * @param value The destinationIp to set. * @return This builder for chaining. */ - public Builder setDestinationIp(java.lang.String value) { + public Builder setDestinationIp( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + destinationIp_ = value; onChanged(); return this; } /** - * - * *
      * Destination IP address. Not present for sockets that are listening and not
      * connected.
      * 
* * string destination_ip = 1; - * * @return This builder for chaining. */ public Builder clearDestinationIp() { - + destinationIp_ = getDefaultInstance().getDestinationIp(); onChanged(); return this; } /** - * - * *
      * Destination IP address. Not present for sockets that are listening and not
      * connected.
      * 
* * string destination_ip = 1; - * * @param value The bytes for destinationIp to set. * @return This builder for chaining. */ - public Builder setDestinationIpBytes(com.google.protobuf.ByteString value) { + public Builder setDestinationIpBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationIp_ = value; onChanged(); return this; } - private int destinationPort_; + private int destinationPort_ ; /** - * - * *
      * Destination port. Not present for sockets that are listening and not
      * connected.
      * 
* * int32 destination_port = 2; - * * @return The destinationPort. */ @java.lang.Override @@ -1047,38 +954,32 @@ public int getDestinationPort() { return destinationPort_; } /** - * - * *
      * Destination port. Not present for sockets that are listening and not
      * connected.
      * 
* * int32 destination_port = 2; - * * @param value The destinationPort to set. * @return This builder for chaining. */ public Builder setDestinationPort(int value) { - + destinationPort_ = value; onChanged(); return this; } /** - * - * *
      * Destination port. Not present for sockets that are listening and not
      * connected.
      * 
* * int32 destination_port = 2; - * * @return This builder for chaining. */ public Builder clearDestinationPort() { - + destinationPort_ = 0; onChanged(); return this; @@ -1086,20 +987,18 @@ public Builder clearDestinationPort() { private java.lang.Object sourceIp_ = ""; /** - * - * *
      * Source IP address.
      * 
* * string source_ip = 3; - * * @return The sourceIp. */ public java.lang.String getSourceIp() { java.lang.Object ref = sourceIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceIp_ = s; return s; @@ -1108,21 +1007,20 @@ public java.lang.String getSourceIp() { } } /** - * - * *
      * Source IP address.
      * 
* * string source_ip = 3; - * * @return The bytes for sourceIp. */ - public com.google.protobuf.ByteString getSourceIpBytes() { + public com.google.protobuf.ByteString + getSourceIpBytes() { java.lang.Object ref = sourceIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceIp_ = b; return b; } else { @@ -1130,76 +1028,66 @@ public com.google.protobuf.ByteString getSourceIpBytes() { } } /** - * - * *
      * Source IP address.
      * 
* * string source_ip = 3; - * * @param value The sourceIp to set. * @return This builder for chaining. */ - public Builder setSourceIp(java.lang.String value) { + public Builder setSourceIp( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceIp_ = value; onChanged(); return this; } /** - * - * *
      * Source IP address.
      * 
* * string source_ip = 3; - * * @return This builder for chaining. */ public Builder clearSourceIp() { - + sourceIp_ = getDefaultInstance().getSourceIp(); onChanged(); return this; } /** - * - * *
      * Source IP address.
      * 
* * string source_ip = 3; - * * @param value The bytes for sourceIp to set. * @return This builder for chaining. */ - public Builder setSourceIpBytes(com.google.protobuf.ByteString value) { + public Builder setSourceIpBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceIp_ = value; onChanged(); return this; } - private int sourcePort_; + private int sourcePort_ ; /** - * - * *
      * Source port.
      * 
* * int32 source_port = 4; - * * @return The sourcePort. */ @java.lang.Override @@ -1207,36 +1095,30 @@ public int getSourcePort() { return sourcePort_; } /** - * - * *
      * Source port.
      * 
* * int32 source_port = 4; - * * @param value The sourcePort to set. * @return This builder for chaining. */ public Builder setSourcePort(int value) { - + sourcePort_ = value; onChanged(); return this; } /** - * - * *
      * Source port.
      * 
* * int32 source_port = 4; - * * @return This builder for chaining. */ public Builder clearSourcePort() { - + sourcePort_ = 0; onChanged(); return this; @@ -1244,67 +1126,51 @@ public Builder clearSourcePort() { private int protocol_ = 0; /** - * - * *
      * IANA Internet Protocol Number such as TCP(6) and UDP(17).
      * 
* * .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5; - * * @return The enum numeric value on the wire for protocol. */ - @java.lang.Override - public int getProtocolValue() { + @java.lang.Override public int getProtocolValue() { return protocol_; } /** - * - * *
      * IANA Internet Protocol Number such as TCP(6) and UDP(17).
      * 
* * .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5; - * * @param value The enum numeric value on the wire for protocol to set. * @return This builder for chaining. */ public Builder setProtocolValue(int value) { - + protocol_ = value; onChanged(); return this; } /** - * - * *
      * IANA Internet Protocol Number such as TCP(6) and UDP(17).
      * 
* * .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5; - * * @return The protocol. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Connection.Protocol getProtocol() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Connection.Protocol result = - com.google.cloud.securitycenter.v1.Connection.Protocol.valueOf(protocol_); - return result == null - ? com.google.cloud.securitycenter.v1.Connection.Protocol.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.Connection.Protocol result = com.google.cloud.securitycenter.v1.Connection.Protocol.valueOf(protocol_); + return result == null ? com.google.cloud.securitycenter.v1.Connection.Protocol.UNRECOGNIZED : result; } /** - * - * *
      * IANA Internet Protocol Number such as TCP(6) and UDP(17).
      * 
* * .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5; - * * @param value The protocol to set. * @return This builder for chaining. */ @@ -1312,31 +1178,28 @@ public Builder setProtocol(com.google.cloud.securitycenter.v1.Connection.Protoco if (value == null) { throw new NullPointerException(); } - + protocol_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * IANA Internet Protocol Number such as TCP(6) and UDP(17).
      * 
* * .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5; - * * @return This builder for chaining. */ public Builder clearProtocol() { - + protocol_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1346,12 +1209,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Connection) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Connection) private static final com.google.cloud.securitycenter.v1.Connection DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Connection(); } @@ -1360,16 +1223,16 @@ public static com.google.cloud.securitycenter.v1.Connection getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Connection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Connection(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Connection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Connection(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1384,4 +1247,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Connection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionOrBuilder.java similarity index 69% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionOrBuilder.java index 0122fb2f9..b4767499b 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionOrBuilder.java @@ -1,128 +1,90 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/connection.proto package com.google.cloud.securitycenter.v1; -public interface ConnectionOrBuilder - extends +public interface ConnectionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Connection) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Destination IP address. Not present for sockets that are listening and not
    * connected.
    * 
* * string destination_ip = 1; - * * @return The destinationIp. */ java.lang.String getDestinationIp(); /** - * - * *
    * Destination IP address. Not present for sockets that are listening and not
    * connected.
    * 
* * string destination_ip = 1; - * * @return The bytes for destinationIp. */ - com.google.protobuf.ByteString getDestinationIpBytes(); + com.google.protobuf.ByteString + getDestinationIpBytes(); /** - * - * *
    * Destination port. Not present for sockets that are listening and not
    * connected.
    * 
* * int32 destination_port = 2; - * * @return The destinationPort. */ int getDestinationPort(); /** - * - * *
    * Source IP address.
    * 
* * string source_ip = 3; - * * @return The sourceIp. */ java.lang.String getSourceIp(); /** - * - * *
    * Source IP address.
    * 
* * string source_ip = 3; - * * @return The bytes for sourceIp. */ - com.google.protobuf.ByteString getSourceIpBytes(); + com.google.protobuf.ByteString + getSourceIpBytes(); /** - * - * *
    * Source port.
    * 
* * int32 source_port = 4; - * * @return The sourcePort. */ int getSourcePort(); /** - * - * *
    * IANA Internet Protocol Number such as TCP(6) and UDP(17).
    * 
* * .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5; - * * @return The enum numeric value on the wire for protocol. */ int getProtocolValue(); /** - * - * *
    * IANA Internet Protocol Number such as TCP(6) and UDP(17).
    * 
* * .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5; - * * @return The protocol. */ com.google.cloud.securitycenter.v1.Connection.Protocol getProtocol(); diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionProto.java new file mode 100644 index 000000000..5e2059a76 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionProto.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/connection.proto + +package com.google.cloud.securitycenter.v1; + +public final class ConnectionProto { + private ConnectionProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Connection_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Connection_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n/google/cloud/securitycenter/v1/connect" + + "ion.proto\022\036google.cloud.securitycenter.v" + + "1\"\201\002\n\nConnection\022\026\n\016destination_ip\030\001 \001(\t" + + "\022\030\n\020destination_port\030\002 \001(\005\022\021\n\tsource_ip\030" + + "\003 \001(\t\022\023\n\013source_port\030\004 \001(\005\022E\n\010protocol\030\005" + + " \001(\01623.google.cloud.securitycenter.v1.Co" + + "nnection.Protocol\"R\n\010Protocol\022\030\n\024PROTOCO" + + "L_UNSPECIFIED\020\000\022\010\n\004ICMP\020\001\022\007\n\003TCP\020\006\022\007\n\003UD" + + "P\020\021\022\007\n\003GRE\020/\022\007\n\003ESP\0202B\353\001\n\"com.google.clo" + + "ud.securitycenter.v1B\017ConnectionProtoP\001Z" + + "Lgoogle.golang.org/genproto/googleapis/c" + + "loud/securitycenter/v1;securitycenter\252\002\036" + + "Google.Cloud.SecurityCenter.V1\312\002\036Google\\" + + "Cloud\\SecurityCenter\\V1\352\002!Google::Cloud:" + + ":SecurityCenter::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_securitycenter_v1_Connection_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Connection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Connection_descriptor, + new java.lang.String[] { "DestinationIp", "DestinationPort", "SourceIp", "SourcePort", "Protocol", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequest.java similarity index 66% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequest.java index 2a8ae9919..50d3a1894 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for creating a big query export.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CreateBigQueryExportRequest} */ -public final class CreateBigQueryExportRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateBigQueryExportRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.CreateBigQueryExportRequest) CreateBigQueryExportRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateBigQueryExportRequest.newBuilder() to construct. private CreateBigQueryExportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateBigQueryExportRequest() { parent_ = ""; bigQueryExportId_ = ""; @@ -44,15 +26,16 @@ private CreateBigQueryExportRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateBigQueryExportRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateBigQueryExportRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,44 +54,38 @@ private CreateBigQueryExportRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.securitycenter.v1.BigQueryExport.Builder subBuilder = null; + if (bigQueryExport_ != null) { + subBuilder = bigQueryExport_.toBuilder(); } - case 18: - { - com.google.cloud.securitycenter.v1.BigQueryExport.Builder subBuilder = null; - if (bigQueryExport_ != null) { - subBuilder = bigQueryExport_.toBuilder(); - } - bigQueryExport_ = - input.readMessage( - com.google.cloud.securitycenter.v1.BigQueryExport.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bigQueryExport_); - bigQueryExport_ = subBuilder.buildPartial(); - } - - break; + bigQueryExport_ = input.readMessage(com.google.cloud.securitycenter.v1.BigQueryExport.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bigQueryExport_); + bigQueryExport_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - bigQueryExportId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + bigQueryExportId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,43 +93,36 @@ private CreateBigQueryExportRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.class, - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.Builder.class); + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.class, com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the new big query export's parent. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]", or
    * "projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -161,33 +131,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the new big query export's parent. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]", or
    * "projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -198,16 +166,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int BIG_QUERY_EXPORT_FIELD_NUMBER = 2; private com.google.cloud.securitycenter.v1.BigQueryExport bigQueryExport_; /** - * - * *
    * Required. The big query export being created.
    * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the bigQueryExport field is set. */ @java.lang.Override @@ -215,34 +178,23 @@ public boolean hasBigQueryExport() { return bigQueryExport_ != null; } /** - * - * *
    * Required. The big query export being created.
    * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The bigQueryExport. */ @java.lang.Override public com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExport() { - return bigQueryExport_ == null - ? com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() - : bigQueryExport_; + return bigQueryExport_ == null ? com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() : bigQueryExport_; } /** - * - * *
    * Required. The big query export being created.
    * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExportOrBuilder() { @@ -252,8 +204,6 @@ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExp public static final int BIG_QUERY_EXPORT_ID_FIELD_NUMBER = 3; private volatile java.lang.Object bigQueryExportId_; /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -262,7 +212,6 @@ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExp
    * 
* * string big_query_export_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bigQueryExportId. */ @java.lang.Override @@ -271,15 +220,14 @@ public java.lang.String getBigQueryExportId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bigQueryExportId_ = s; return s; } } /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -288,15 +236,16 @@ public java.lang.String getBigQueryExportId() {
    * 
* * string big_query_export_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for bigQueryExportId. */ @java.lang.Override - public com.google.protobuf.ByteString getBigQueryExportIdBytes() { + public com.google.protobuf.ByteString + getBigQueryExportIdBytes() { java.lang.Object ref = bigQueryExportId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bigQueryExportId_ = b; return b; } else { @@ -305,7 +254,6 @@ public com.google.protobuf.ByteString getBigQueryExportIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,7 +265,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -340,7 +289,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (bigQueryExport_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBigQueryExport()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBigQueryExport()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bigQueryExportId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bigQueryExportId_); @@ -353,20 +303,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest other = - (com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest) obj; + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest other = (com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasBigQueryExport() != other.hasBigQueryExport()) return false; if (hasBigQueryExport()) { - if (!getBigQueryExport().equals(other.getBigQueryExport())) return false; + if (!getBigQueryExport() + .equals(other.getBigQueryExport())) return false; } - if (!getBigQueryExportId().equals(other.getBigQueryExportId())) return false; + if (!getBigQueryExportId() + .equals(other.getBigQueryExportId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -392,127 +344,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for creating a big query export.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CreateBigQueryExportRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.CreateBigQueryExportRequest) com.google.cloud.securitycenter.v1.CreateBigQueryExportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.class, - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.Builder.class); + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.class, com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.newBuilder() @@ -520,15 +462,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -546,14 +489,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.getDefaultInstance(); } @@ -568,8 +510,7 @@ public com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest buildPartial() { - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest result = - new com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest(this); + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest result = new com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest(this); result.parent_ = parent_; if (bigQueryExportBuilder_ == null) { result.bigQueryExport_ = bigQueryExport_; @@ -585,39 +526,38 @@ public com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest)other); } else { super.mergeFrom(other); return this; @@ -625,9 +565,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest other) { - if (other - == com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -658,9 +596,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,24 +608,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the new big query export's parent. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]", or
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -698,25 +630,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the new big query export's parent. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]", or
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -724,73 +653,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the new big query export's parent. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]", or
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the new big query export's parent. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]", or
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the new big query export's parent. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]", or
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -798,58 +714,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.securitycenter.v1.BigQueryExport bigQueryExport_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.BigQueryExport, - com.google.cloud.securitycenter.v1.BigQueryExport.Builder, - com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> - bigQueryExportBuilder_; + com.google.cloud.securitycenter.v1.BigQueryExport, com.google.cloud.securitycenter.v1.BigQueryExport.Builder, com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> bigQueryExportBuilder_; /** - * - * *
      * Required. The big query export being created.
      * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the bigQueryExport field is set. */ public boolean hasBigQueryExport() { return bigQueryExportBuilder_ != null || bigQueryExport_ != null; } /** - * - * *
      * Required. The big query export being created.
      * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The bigQueryExport. */ public com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExport() { if (bigQueryExportBuilder_ == null) { - return bigQueryExport_ == null - ? com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() - : bigQueryExport_; + return bigQueryExport_ == null ? com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() : bigQueryExport_; } else { return bigQueryExportBuilder_.getMessage(); } } /** - * - * *
      * Required. The big query export being created.
      * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBigQueryExport(com.google.cloud.securitycenter.v1.BigQueryExport value) { if (bigQueryExportBuilder_ == null) { @@ -865,15 +762,11 @@ public Builder setBigQueryExport(com.google.cloud.securitycenter.v1.BigQueryExpo return this; } /** - * - * *
      * Required. The big query export being created.
      * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBigQueryExport( com.google.cloud.securitycenter.v1.BigQueryExport.Builder builderForValue) { @@ -887,23 +780,17 @@ public Builder setBigQueryExport( return this; } /** - * - * *
      * Required. The big query export being created.
      * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBigQueryExport(com.google.cloud.securitycenter.v1.BigQueryExport value) { if (bigQueryExportBuilder_ == null) { if (bigQueryExport_ != null) { bigQueryExport_ = - com.google.cloud.securitycenter.v1.BigQueryExport.newBuilder(bigQueryExport_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.BigQueryExport.newBuilder(bigQueryExport_).mergeFrom(value).buildPartial(); } else { bigQueryExport_ = value; } @@ -915,15 +802,11 @@ public Builder mergeBigQueryExport(com.google.cloud.securitycenter.v1.BigQueryEx return this; } /** - * - * *
      * Required. The big query export being created.
      * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBigQueryExport() { if (bigQueryExportBuilder_ == null) { @@ -937,64 +820,48 @@ public Builder clearBigQueryExport() { return this; } /** - * - * *
      * Required. The big query export being created.
      * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1.BigQueryExport.Builder getBigQueryExportBuilder() { - + onChanged(); return getBigQueryExportFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The big query export being created.
      * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExportOrBuilder() { if (bigQueryExportBuilder_ != null) { return bigQueryExportBuilder_.getMessageOrBuilder(); } else { - return bigQueryExport_ == null - ? com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() - : bigQueryExport_; + return bigQueryExport_ == null ? + com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() : bigQueryExport_; } } /** - * - * *
      * Required. The big query export being created.
      * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.BigQueryExport, - com.google.cloud.securitycenter.v1.BigQueryExport.Builder, - com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> + com.google.cloud.securitycenter.v1.BigQueryExport, com.google.cloud.securitycenter.v1.BigQueryExport.Builder, com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> getBigQueryExportFieldBuilder() { if (bigQueryExportBuilder_ == null) { - bigQueryExportBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.BigQueryExport, - com.google.cloud.securitycenter.v1.BigQueryExport.Builder, - com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder>( - getBigQueryExport(), getParentForChildren(), isClean()); + bigQueryExportBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.BigQueryExport, com.google.cloud.securitycenter.v1.BigQueryExport.Builder, com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder>( + getBigQueryExport(), + getParentForChildren(), + isClean()); bigQueryExport_ = null; } return bigQueryExportBuilder_; @@ -1002,8 +869,6 @@ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExp private java.lang.Object bigQueryExportId_ = ""; /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -1012,13 +877,13 @@ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExp
      * 
* * string big_query_export_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bigQueryExportId. */ public java.lang.String getBigQueryExportId() { java.lang.Object ref = bigQueryExportId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bigQueryExportId_ = s; return s; @@ -1027,8 +892,6 @@ public java.lang.String getBigQueryExportId() { } } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -1037,14 +900,15 @@ public java.lang.String getBigQueryExportId() {
      * 
* * string big_query_export_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for bigQueryExportId. */ - public com.google.protobuf.ByteString getBigQueryExportIdBytes() { + public com.google.protobuf.ByteString + getBigQueryExportIdBytes() { java.lang.Object ref = bigQueryExportId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bigQueryExportId_ = b; return b; } else { @@ -1052,8 +916,6 @@ public com.google.protobuf.ByteString getBigQueryExportIdBytes() { } } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -1062,22 +924,20 @@ public com.google.protobuf.ByteString getBigQueryExportIdBytes() {
      * 
* * string big_query_export_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bigQueryExportId to set. * @return This builder for chaining. */ - public Builder setBigQueryExportId(java.lang.String value) { + public Builder setBigQueryExportId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + bigQueryExportId_ = value; onChanged(); return this; } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -1086,18 +946,15 @@ public Builder setBigQueryExportId(java.lang.String value) {
      * 
* * string big_query_export_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearBigQueryExportId() { - + bigQueryExportId_ = getDefaultInstance().getBigQueryExportId(); onChanged(); return this; } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -1106,23 +963,23 @@ public Builder clearBigQueryExportId() {
      * 
* * string big_query_export_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for bigQueryExportId to set. * @return This builder for chaining. */ - public Builder setBigQueryExportIdBytes(com.google.protobuf.ByteString value) { + public Builder setBigQueryExportIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bigQueryExportId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1132,32 +989,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.CreateBigQueryExportRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.CreateBigQueryExportRequest) - private static final com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest(); } - public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBigQueryExportRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateBigQueryExportRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBigQueryExportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateBigQueryExportRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1169,8 +1024,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequestOrBuilder.java index 353f15853..3f272247c 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequestOrBuilder.java @@ -1,105 +1,64 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface CreateBigQueryExportRequestOrBuilder - extends +public interface CreateBigQueryExportRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.CreateBigQueryExportRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the new big query export's parent. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]", or
    * "projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the new big query export's parent. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]", or
    * "projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The big query export being created.
    * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the bigQueryExport field is set. */ boolean hasBigQueryExport(); /** - * - * *
    * Required. The big query export being created.
    * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The bigQueryExport. */ com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExport(); /** - * - * *
    * Required. The big query export being created.
    * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExportOrBuilder(); /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -108,13 +67,10 @@ public interface CreateBigQueryExportRequestOrBuilder
    * 
* * string big_query_export_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bigQueryExportId. */ java.lang.String getBigQueryExportId(); /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -123,8 +79,8 @@ public interface CreateBigQueryExportRequestOrBuilder
    * 
* * string big_query_export_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for bigQueryExportId. */ - com.google.protobuf.ByteString getBigQueryExportIdBytes(); + com.google.protobuf.ByteString + getBigQueryExportIdBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java similarity index 67% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java index e009964c2..ec857615f 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for creating a finding.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CreateFindingRequest} */ -public final class CreateFindingRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateFindingRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.CreateFindingRequest) CreateFindingRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateFindingRequest.newBuilder() to construct. private CreateFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateFindingRequest() { parent_ = ""; findingId_ = ""; @@ -44,15 +26,16 @@ private CreateFindingRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateFindingRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - findingId_ = s; - break; + findingId_ = s; + break; + } + case 26: { + com.google.cloud.securitycenter.v1.Finding.Builder subBuilder = null; + if (finding_ != null) { + subBuilder = finding_.toBuilder(); } - case 26: - { - com.google.cloud.securitycenter.v1.Finding.Builder subBuilder = null; - if (finding_ != null) { - subBuilder = finding_.toBuilder(); - } - finding_ = - input.readMessage( - com.google.cloud.securitycenter.v1.Finding.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(finding_); - finding_ = subBuilder.buildPartial(); - } - - break; + finding_ = input.readMessage(com.google.cloud.securitycenter.v1.Finding.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finding_); + finding_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,42 +93,35 @@ private CreateFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.CreateFindingRequest.class, - com.google.cloud.securitycenter.v1.CreateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1.CreateFindingRequest.class, com.google.cloud.securitycenter.v1.CreateFindingRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -159,32 +130,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -195,8 +164,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FINDING_ID_FIELD_NUMBER = 2; private volatile java.lang.Object findingId_; /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
@@ -204,7 +171,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The findingId. */ @java.lang.Override @@ -213,15 +179,14 @@ public java.lang.String getFindingId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingId_ = s; return s; } } /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
@@ -229,15 +194,16 @@ public java.lang.String getFindingId() {
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for findingId. */ @java.lang.Override - public com.google.protobuf.ByteString getFindingIdBytes() { + public com.google.protobuf.ByteString + getFindingIdBytes() { java.lang.Object ref = findingId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingId_ = b; return b; } else { @@ -248,17 +214,12 @@ public com.google.protobuf.ByteString getFindingIdBytes() { public static final int FINDING_FIELD_NUMBER = 3; private com.google.cloud.securitycenter.v1.Finding finding_; /** - * - * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the finding field is set. */ @java.lang.Override @@ -266,36 +227,25 @@ public boolean hasFinding() { return finding_ != null; } /** - * - * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding getFinding() { - return finding_ == null - ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; } /** - * - * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { @@ -303,7 +253,6 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,7 +264,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -341,7 +291,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, findingId_); } if (finding_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFinding()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getFinding()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -351,19 +302,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.CreateFindingRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.CreateFindingRequest other = - (com.google.cloud.securitycenter.v1.CreateFindingRequest) obj; + com.google.cloud.securitycenter.v1.CreateFindingRequest other = (com.google.cloud.securitycenter.v1.CreateFindingRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFindingId().equals(other.getFindingId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFindingId() + .equals(other.getFindingId())) return false; if (hasFinding() != other.hasFinding()) return false; if (hasFinding()) { - if (!getFinding().equals(other.getFinding())) return false; + if (!getFinding() + .equals(other.getFinding())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -390,127 +343,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.CreateFindingRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.CreateFindingRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for creating a finding.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CreateFindingRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.CreateFindingRequest) com.google.cloud.securitycenter.v1.CreateFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.CreateFindingRequest.class, - com.google.cloud.securitycenter.v1.CreateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1.CreateFindingRequest.class, com.google.cloud.securitycenter.v1.CreateFindingRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.CreateFindingRequest.newBuilder() @@ -518,15 +461,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -544,9 +488,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor; } @java.lang.Override @@ -565,8 +509,7 @@ public com.google.cloud.securitycenter.v1.CreateFindingRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.CreateFindingRequest buildPartial() { - com.google.cloud.securitycenter.v1.CreateFindingRequest result = - new com.google.cloud.securitycenter.v1.CreateFindingRequest(this); + com.google.cloud.securitycenter.v1.CreateFindingRequest result = new com.google.cloud.securitycenter.v1.CreateFindingRequest(this); result.parent_ = parent_; result.findingId_ = findingId_; if (findingBuilder_ == null) { @@ -582,39 +525,38 @@ public com.google.cloud.securitycenter.v1.CreateFindingRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.CreateFindingRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.CreateFindingRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.CreateFindingRequest)other); } else { super.mergeFrom(other); return this; @@ -622,8 +564,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.CreateFindingRequest other) { - if (other == com.google.cloud.securitycenter.v1.CreateFindingRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.CreateFindingRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -654,8 +595,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.CreateFindingRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.CreateFindingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -667,23 +607,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -692,24 +628,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -717,70 +650,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -788,8 +708,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object findingId_ = ""; /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
@@ -797,13 +715,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The findingId. */ public java.lang.String getFindingId() { java.lang.Object ref = findingId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingId_ = s; return s; @@ -812,8 +730,6 @@ public java.lang.String getFindingId() { } } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
@@ -821,14 +737,15 @@ public java.lang.String getFindingId() {
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for findingId. */ - public com.google.protobuf.ByteString getFindingIdBytes() { + public com.google.protobuf.ByteString + getFindingIdBytes() { java.lang.Object ref = findingId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingId_ = b; return b; } else { @@ -836,8 +753,6 @@ public com.google.protobuf.ByteString getFindingIdBytes() { } } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
@@ -845,22 +760,20 @@ public com.google.protobuf.ByteString getFindingIdBytes() {
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The findingId to set. * @return This builder for chaining. */ - public Builder setFindingId(java.lang.String value) { + public Builder setFindingId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + findingId_ = value; onChanged(); return this; } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
@@ -868,18 +781,15 @@ public Builder setFindingId(java.lang.String value) {
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFindingId() { - + findingId_ = getDefaultInstance().getFindingId(); onChanged(); return this; } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
@@ -887,16 +797,16 @@ public Builder clearFindingId() {
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for findingId to set. * @return This builder for chaining. */ - public Builder setFindingIdBytes(com.google.protobuf.ByteString value) { + public Builder setFindingIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingId_ = value; onChanged(); return this; @@ -904,61 +814,42 @@ public Builder setFindingIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.securitycenter.v1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Finding, - com.google.cloud.securitycenter.v1.Finding.Builder, - com.google.cloud.securitycenter.v1.FindingOrBuilder> - findingBuilder_; + com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder> findingBuilder_; /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The finding. */ public com.google.cloud.securitycenter.v1.Finding getFinding() { if (findingBuilder_ == null) { - return finding_ == null - ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; } else { return findingBuilder_.getMessage(); } } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) { if (findingBuilder_ == null) { @@ -974,18 +865,15 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) { return this; } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setFinding(com.google.cloud.securitycenter.v1.Finding.Builder builderForValue) { + public Builder setFinding( + com.google.cloud.securitycenter.v1.Finding.Builder builderForValue) { if (findingBuilder_ == null) { finding_ = builderForValue.build(); onChanged(); @@ -996,24 +884,18 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding.Builder bui return this; } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) { if (findingBuilder_ == null) { if (finding_ != null) { finding_ = - com.google.cloud.securitycenter.v1.Finding.newBuilder(finding_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.Finding.newBuilder(finding_).mergeFrom(value).buildPartial(); } else { finding_ = value; } @@ -1025,16 +907,12 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) { return this; } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFinding() { if (findingBuilder_ == null) { @@ -1048,74 +926,58 @@ public Builder clearFinding() { return this; } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() { - + onChanged(); return getFindingFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { if (findingBuilder_ != null) { return findingBuilder_.getMessageOrBuilder(); } else { - return finding_ == null - ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? + com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; } } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Finding, - com.google.cloud.securitycenter.v1.Finding.Builder, - com.google.cloud.securitycenter.v1.FindingOrBuilder> + com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder> getFindingFieldBuilder() { if (findingBuilder_ == null) { - findingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Finding, - com.google.cloud.securitycenter.v1.Finding.Builder, - com.google.cloud.securitycenter.v1.FindingOrBuilder>( - getFinding(), getParentForChildren(), isClean()); + findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder>( + getFinding(), + getParentForChildren(), + isClean()); finding_ = null; } return findingBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1125,12 +987,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.CreateFindingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.CreateFindingRequest) private static final com.google.cloud.securitycenter.v1.CreateFindingRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.CreateFindingRequest(); } @@ -1139,16 +1001,16 @@ public static com.google.cloud.securitycenter.v1.CreateFindingRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFindingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFindingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFindingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1163,4 +1025,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.CreateFindingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java index 7b2a8f61d..3d6ecd597 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface CreateFindingRequestOrBuilder - extends +public interface CreateFindingRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.CreateFindingRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
@@ -64,13 +37,10 @@ public interface CreateFindingRequestOrBuilder
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The findingId. */ java.lang.String getFindingId(); /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
@@ -78,52 +48,38 @@ public interface CreateFindingRequestOrBuilder
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for findingId. */ - com.google.protobuf.ByteString getFindingIdBytes(); + com.google.protobuf.ByteString + getFindingIdBytes(); /** - * - * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the finding field is set. */ boolean hasFinding(); /** - * - * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The finding. */ com.google.cloud.securitycenter.v1.Finding getFinding(); /** - * - * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequest.java similarity index 67% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequest.java index 6a7526d0b..0a4746c96 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for creating a mute config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CreateMuteConfigRequest} */ -public final class CreateMuteConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateMuteConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.CreateMuteConfigRequest) CreateMuteConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateMuteConfigRequest.newBuilder() to construct. private CreateMuteConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateMuteConfigRequest() { parent_ = ""; muteConfigId_ = ""; @@ -44,15 +26,16 @@ private CreateMuteConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateMuteConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateMuteConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateMuteConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.securitycenter.v1.MuteConfig.Builder subBuilder = null; + if (muteConfig_ != null) { + subBuilder = muteConfig_.toBuilder(); } - case 18: - { - com.google.cloud.securitycenter.v1.MuteConfig.Builder subBuilder = null; - if (muteConfig_ != null) { - subBuilder = muteConfig_.toBuilder(); - } - muteConfig_ = - input.readMessage( - com.google.cloud.securitycenter.v1.MuteConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(muteConfig_); - muteConfig_ = subBuilder.buildPartial(); - } - - break; + muteConfig_ = input.readMessage(com.google.cloud.securitycenter.v1.MuteConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(muteConfig_); + muteConfig_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - muteConfigId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + muteConfigId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,43 +93,36 @@ private CreateMuteConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.class, - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.class, com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the new mute configs's parent. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]", or
    * "projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -160,33 +131,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the new mute configs's parent. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]", or
    * "projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -197,16 +166,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int MUTE_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.securitycenter.v1.MuteConfig muteConfig_; /** - * - * *
    * Required. The mute config being created.
    * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the muteConfig field is set. */ @java.lang.Override @@ -214,34 +178,23 @@ public boolean hasMuteConfig() { return muteConfig_ != null; } /** - * - * *
    * Required. The mute config being created.
    * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The muteConfig. */ @java.lang.Override public com.google.cloud.securitycenter.v1.MuteConfig getMuteConfig() { - return muteConfig_ == null - ? com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() - : muteConfig_; + return muteConfig_ == null ? com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() : muteConfig_; } /** - * - * *
    * Required. The mute config being created.
    * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBuilder() { @@ -251,8 +204,6 @@ public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBui public static final int MUTE_CONFIG_ID_FIELD_NUMBER = 3; private volatile java.lang.Object muteConfigId_; /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -261,7 +212,6 @@ public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBui
    * 
* * string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The muteConfigId. */ @java.lang.Override @@ -270,15 +220,14 @@ public java.lang.String getMuteConfigId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); muteConfigId_ = s; return s; } } /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -287,15 +236,16 @@ public java.lang.String getMuteConfigId() {
    * 
* * string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for muteConfigId. */ @java.lang.Override - public com.google.protobuf.ByteString getMuteConfigIdBytes() { + public com.google.protobuf.ByteString + getMuteConfigIdBytes() { java.lang.Object ref = muteConfigId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); muteConfigId_ = b; return b; } else { @@ -304,7 +254,6 @@ public com.google.protobuf.ByteString getMuteConfigIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -316,7 +265,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -339,7 +289,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (muteConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMuteConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMuteConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(muteConfigId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, muteConfigId_); @@ -352,20 +303,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.CreateMuteConfigRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest other = - (com.google.cloud.securitycenter.v1.CreateMuteConfigRequest) obj; + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest other = (com.google.cloud.securitycenter.v1.CreateMuteConfigRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasMuteConfig() != other.hasMuteConfig()) return false; if (hasMuteConfig()) { - if (!getMuteConfig().equals(other.getMuteConfig())) return false; + if (!getMuteConfig() + .equals(other.getMuteConfig())) return false; } - if (!getMuteConfigId().equals(other.getMuteConfigId())) return false; + if (!getMuteConfigId() + .equals(other.getMuteConfigId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -391,127 +344,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.CreateMuteConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for creating a mute config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CreateMuteConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.CreateMuteConfigRequest) com.google.cloud.securitycenter.v1.CreateMuteConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.class, - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.class, com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.newBuilder() @@ -519,15 +462,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -545,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor; } @java.lang.Override @@ -566,8 +510,7 @@ public com.google.cloud.securitycenter.v1.CreateMuteConfigRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.CreateMuteConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest result = - new com.google.cloud.securitycenter.v1.CreateMuteConfigRequest(this); + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest result = new com.google.cloud.securitycenter.v1.CreateMuteConfigRequest(this); result.parent_ = parent_; if (muteConfigBuilder_ == null) { result.muteConfig_ = muteConfig_; @@ -583,39 +526,38 @@ public com.google.cloud.securitycenter.v1.CreateMuteConfigRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.CreateMuteConfigRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.CreateMuteConfigRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.CreateMuteConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -623,8 +565,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.CreateMuteConfigRequest other) { - if (other == com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -655,8 +596,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.CreateMuteConfigRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.CreateMuteConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -668,24 +608,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the new mute configs's parent. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]", or
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -694,25 +630,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the new mute configs's parent. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]", or
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -720,73 +653,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the new mute configs's parent. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]", or
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the new mute configs's parent. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]", or
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the new mute configs's parent. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]", or
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -794,58 +714,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.securitycenter.v1.MuteConfig muteConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.MuteConfig, - com.google.cloud.securitycenter.v1.MuteConfig.Builder, - com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> - muteConfigBuilder_; + com.google.cloud.securitycenter.v1.MuteConfig, com.google.cloud.securitycenter.v1.MuteConfig.Builder, com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> muteConfigBuilder_; /** - * - * *
      * Required. The mute config being created.
      * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the muteConfig field is set. */ public boolean hasMuteConfig() { return muteConfigBuilder_ != null || muteConfig_ != null; } /** - * - * *
      * Required. The mute config being created.
      * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The muteConfig. */ public com.google.cloud.securitycenter.v1.MuteConfig getMuteConfig() { if (muteConfigBuilder_ == null) { - return muteConfig_ == null - ? com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() - : muteConfig_; + return muteConfig_ == null ? com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() : muteConfig_; } else { return muteConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The mute config being created.
      * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMuteConfig(com.google.cloud.securitycenter.v1.MuteConfig value) { if (muteConfigBuilder_ == null) { @@ -861,15 +762,11 @@ public Builder setMuteConfig(com.google.cloud.securitycenter.v1.MuteConfig value return this; } /** - * - * *
      * Required. The mute config being created.
      * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMuteConfig( com.google.cloud.securitycenter.v1.MuteConfig.Builder builderForValue) { @@ -883,23 +780,17 @@ public Builder setMuteConfig( return this; } /** - * - * *
      * Required. The mute config being created.
      * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeMuteConfig(com.google.cloud.securitycenter.v1.MuteConfig value) { if (muteConfigBuilder_ == null) { if (muteConfig_ != null) { muteConfig_ = - com.google.cloud.securitycenter.v1.MuteConfig.newBuilder(muteConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.MuteConfig.newBuilder(muteConfig_).mergeFrom(value).buildPartial(); } else { muteConfig_ = value; } @@ -911,15 +802,11 @@ public Builder mergeMuteConfig(com.google.cloud.securitycenter.v1.MuteConfig val return this; } /** - * - * *
      * Required. The mute config being created.
      * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearMuteConfig() { if (muteConfigBuilder_ == null) { @@ -933,64 +820,48 @@ public Builder clearMuteConfig() { return this; } /** - * - * *
      * Required. The mute config being created.
      * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1.MuteConfig.Builder getMuteConfigBuilder() { - + onChanged(); return getMuteConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The mute config being created.
      * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBuilder() { if (muteConfigBuilder_ != null) { return muteConfigBuilder_.getMessageOrBuilder(); } else { - return muteConfig_ == null - ? com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() - : muteConfig_; + return muteConfig_ == null ? + com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() : muteConfig_; } } /** - * - * *
      * Required. The mute config being created.
      * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.MuteConfig, - com.google.cloud.securitycenter.v1.MuteConfig.Builder, - com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> + com.google.cloud.securitycenter.v1.MuteConfig, com.google.cloud.securitycenter.v1.MuteConfig.Builder, com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> getMuteConfigFieldBuilder() { if (muteConfigBuilder_ == null) { - muteConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.MuteConfig, - com.google.cloud.securitycenter.v1.MuteConfig.Builder, - com.google.cloud.securitycenter.v1.MuteConfigOrBuilder>( - getMuteConfig(), getParentForChildren(), isClean()); + muteConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.MuteConfig, com.google.cloud.securitycenter.v1.MuteConfig.Builder, com.google.cloud.securitycenter.v1.MuteConfigOrBuilder>( + getMuteConfig(), + getParentForChildren(), + isClean()); muteConfig_ = null; } return muteConfigBuilder_; @@ -998,8 +869,6 @@ public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBui private java.lang.Object muteConfigId_ = ""; /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -1008,13 +877,13 @@ public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBui
      * 
* * string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The muteConfigId. */ public java.lang.String getMuteConfigId() { java.lang.Object ref = muteConfigId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); muteConfigId_ = s; return s; @@ -1023,8 +892,6 @@ public java.lang.String getMuteConfigId() { } } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -1033,14 +900,15 @@ public java.lang.String getMuteConfigId() {
      * 
* * string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for muteConfigId. */ - public com.google.protobuf.ByteString getMuteConfigIdBytes() { + public com.google.protobuf.ByteString + getMuteConfigIdBytes() { java.lang.Object ref = muteConfigId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); muteConfigId_ = b; return b; } else { @@ -1048,8 +916,6 @@ public com.google.protobuf.ByteString getMuteConfigIdBytes() { } } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -1058,22 +924,20 @@ public com.google.protobuf.ByteString getMuteConfigIdBytes() {
      * 
* * string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The muteConfigId to set. * @return This builder for chaining. */ - public Builder setMuteConfigId(java.lang.String value) { + public Builder setMuteConfigId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + muteConfigId_ = value; onChanged(); return this; } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -1082,18 +946,15 @@ public Builder setMuteConfigId(java.lang.String value) {
      * 
* * string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMuteConfigId() { - + muteConfigId_ = getDefaultInstance().getMuteConfigId(); onChanged(); return this; } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -1102,23 +963,23 @@ public Builder clearMuteConfigId() {
      * 
* * string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for muteConfigId to set. * @return This builder for chaining. */ - public Builder setMuteConfigIdBytes(com.google.protobuf.ByteString value) { + public Builder setMuteConfigIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + muteConfigId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1128,12 +989,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.CreateMuteConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.CreateMuteConfigRequest) private static final com.google.cloud.securitycenter.v1.CreateMuteConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.CreateMuteConfigRequest(); } @@ -1142,16 +1003,16 @@ public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateMuteConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateMuteConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMuteConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateMuteConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1166,4 +1027,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.CreateMuteConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequestOrBuilder.java index 07965be0e..2aadf4ad7 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequestOrBuilder.java @@ -1,105 +1,64 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface CreateMuteConfigRequestOrBuilder - extends +public interface CreateMuteConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.CreateMuteConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the new mute configs's parent. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]", or
    * "projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the new mute configs's parent. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]", or
    * "projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The mute config being created.
    * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the muteConfig field is set. */ boolean hasMuteConfig(); /** - * - * *
    * Required. The mute config being created.
    * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The muteConfig. */ com.google.cloud.securitycenter.v1.MuteConfig getMuteConfig(); /** - * - * *
    * Required. The mute config being created.
    * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBuilder(); /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -108,13 +67,10 @@ public interface CreateMuteConfigRequestOrBuilder
    * 
* * string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The muteConfigId. */ java.lang.String getMuteConfigId(); /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -123,8 +79,8 @@ public interface CreateMuteConfigRequestOrBuilder
    * 
* * string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for muteConfigId. */ - com.google.protobuf.ByteString getMuteConfigIdBytes(); + com.google.protobuf.ByteString + getMuteConfigIdBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java similarity index 64% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java index 1889b0e70..afb05529c 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for creating a notification config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CreateNotificationConfigRequest} */ -public final class CreateNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateNotificationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.CreateNotificationConfigRequest) CreateNotificationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateNotificationConfigRequest.newBuilder() to construct. - private CreateNotificationConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateNotificationConfigRequest() { parent_ = ""; configId_ = ""; @@ -45,15 +26,16 @@ private CreateNotificationConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateNotificationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateNotificationConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,44 +54,38 @@ private CreateNotificationConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - configId_ = s; - break; + configId_ = s; + break; + } + case 26: { + com.google.cloud.securitycenter.v1.NotificationConfig.Builder subBuilder = null; + if (notificationConfig_ != null) { + subBuilder = notificationConfig_.toBuilder(); } - case 26: - { - com.google.cloud.securitycenter.v1.NotificationConfig.Builder subBuilder = null; - if (notificationConfig_ != null) { - subBuilder = notificationConfig_.toBuilder(); - } - notificationConfig_ = - input.readMessage( - com.google.cloud.securitycenter.v1.NotificationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(notificationConfig_); - notificationConfig_ = subBuilder.buildPartial(); - } - - break; + notificationConfig_ = input.readMessage(com.google.cloud.securitycenter.v1.NotificationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(notificationConfig_); + notificationConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -117,42 +93,35 @@ private CreateNotificationConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.class, - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.class, com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the new notification config's parent. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -161,32 +130,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the new notification config's parent. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -197,8 +164,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CONFIG_ID_FIELD_NUMBER = 2; private volatile java.lang.Object configId_; /** - * - * *
    * Required.
    * Unique identifier provided by the client within the parent scope.
@@ -207,7 +172,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The configId. */ @java.lang.Override @@ -216,15 +180,14 @@ public java.lang.String getConfigId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configId_ = s; return s; } } /** - * - * *
    * Required.
    * Unique identifier provided by the client within the parent scope.
@@ -233,15 +196,16 @@ public java.lang.String getConfigId() {
    * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for configId. */ @java.lang.Override - public com.google.protobuf.ByteString getConfigIdBytes() { + public com.google.protobuf.ByteString + getConfigIdBytes() { java.lang.Object ref = configId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); configId_ = b; return b; } else { @@ -252,17 +216,12 @@ public com.google.protobuf.ByteString getConfigIdBytes() { public static final int NOTIFICATION_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.securitycenter.v1.NotificationConfig notificationConfig_; /** - * - * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationConfig field is set. */ @java.lang.Override @@ -270,45 +229,32 @@ public boolean hasNotificationConfig() { return notificationConfig_ != null; } /** - * - * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationConfig. */ @java.lang.Override public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig() { - return notificationConfig_ == null - ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() : notificationConfig_; } /** - * - * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder - getNotificationConfigOrBuilder() { + public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { return getNotificationConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -320,7 +266,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -346,7 +293,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, configId_); } if (notificationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNotificationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getNotificationConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -356,19 +304,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest other = - (com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest) obj; + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest other = (com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getConfigId().equals(other.getConfigId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getConfigId() + .equals(other.getConfigId())) return false; if (hasNotificationConfig() != other.hasNotificationConfig()) return false; if (hasNotificationConfig()) { - if (!getNotificationConfig().equals(other.getNotificationConfig())) return false; + if (!getNotificationConfig() + .equals(other.getNotificationConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -395,145 +345,134 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for creating a notification config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CreateNotificationConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.CreateNotificationConfigRequest) com.google.cloud.securitycenter.v1.CreateNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.class, - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.class, com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.newBuilder() + // Construct using com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -551,16 +490,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -574,8 +511,7 @@ public com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest build( @java.lang.Override public com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest result = - new com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest(this); + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest result = new com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest(this); result.parent_ = parent_; result.configId_ = configId_; if (notificationConfigBuilder_ == null) { @@ -591,51 +527,46 @@ public com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest) { - return mergeFrom( - (com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest other) { - if (other - == com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest other) { + if (other == com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -666,9 +597,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -680,23 +609,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the new notification config's parent. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -705,24 +630,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the new notification config's parent. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -730,70 +652,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the new notification config's parent. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the new notification config's parent. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the new notification config's parent. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -801,8 +710,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object configId_ = ""; /** - * - * *
      * Required.
      * Unique identifier provided by the client within the parent scope.
@@ -811,13 +718,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The configId. */ public java.lang.String getConfigId() { java.lang.Object ref = configId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configId_ = s; return s; @@ -826,8 +733,6 @@ public java.lang.String getConfigId() { } } /** - * - * *
      * Required.
      * Unique identifier provided by the client within the parent scope.
@@ -836,14 +741,15 @@ public java.lang.String getConfigId() {
      * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for configId. */ - public com.google.protobuf.ByteString getConfigIdBytes() { + public com.google.protobuf.ByteString + getConfigIdBytes() { java.lang.Object ref = configId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); configId_ = b; return b; } else { @@ -851,8 +757,6 @@ public com.google.protobuf.ByteString getConfigIdBytes() { } } /** - * - * *
      * Required.
      * Unique identifier provided by the client within the parent scope.
@@ -861,22 +765,20 @@ public com.google.protobuf.ByteString getConfigIdBytes() {
      * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The configId to set. * @return This builder for chaining. */ - public Builder setConfigId(java.lang.String value) { + public Builder setConfigId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + configId_ = value; onChanged(); return this; } /** - * - * *
      * Required.
      * Unique identifier provided by the client within the parent scope.
@@ -885,18 +787,15 @@ public Builder setConfigId(java.lang.String value) {
      * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearConfigId() { - + configId_ = getDefaultInstance().getConfigId(); onChanged(); return this; } /** - * - * *
      * Required.
      * Unique identifier provided by the client within the parent scope.
@@ -905,16 +804,16 @@ public Builder clearConfigId() {
      * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for configId to set. * @return This builder for chaining. */ - public Builder setConfigIdBytes(com.google.protobuf.ByteString value) { + public Builder setConfigIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + configId_ = value; onChanged(); return this; @@ -922,64 +821,44 @@ public Builder setConfigIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.securitycenter.v1.NotificationConfig notificationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig, - com.google.cloud.securitycenter.v1.NotificationConfig.Builder, - com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> - notificationConfigBuilder_; + com.google.cloud.securitycenter.v1.NotificationConfig, com.google.cloud.securitycenter.v1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> notificationConfigBuilder_; /** - * - * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationConfig field is set. */ public boolean hasNotificationConfig() { return notificationConfigBuilder_ != null || notificationConfig_ != null; } /** - * - * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationConfig. */ public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig() { if (notificationConfigBuilder_ == null) { - return notificationConfig_ == null - ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() : notificationConfig_; } else { return notificationConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setNotificationConfig( - com.google.cloud.securitycenter.v1.NotificationConfig value) { + public Builder setNotificationConfig(com.google.cloud.securitycenter.v1.NotificationConfig value) { if (notificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -993,16 +872,12 @@ public Builder setNotificationConfig( return this; } /** - * - * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNotificationConfig( com.google.cloud.securitycenter.v1.NotificationConfig.Builder builderForValue) { @@ -1016,25 +891,18 @@ public Builder setNotificationConfig( return this; } /** - * - * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeNotificationConfig( - com.google.cloud.securitycenter.v1.NotificationConfig value) { + public Builder mergeNotificationConfig(com.google.cloud.securitycenter.v1.NotificationConfig value) { if (notificationConfigBuilder_ == null) { if (notificationConfig_ != null) { notificationConfig_ = - com.google.cloud.securitycenter.v1.NotificationConfig.newBuilder(notificationConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.NotificationConfig.newBuilder(notificationConfig_).mergeFrom(value).buildPartial(); } else { notificationConfig_ = value; } @@ -1046,16 +914,12 @@ public Builder mergeNotificationConfig( return this; } /** - * - * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearNotificationConfig() { if (notificationConfigBuilder_ == null) { @@ -1069,76 +933,58 @@ public Builder clearNotificationConfig() { return this; } /** - * - * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycenter.v1.NotificationConfig.Builder - getNotificationConfigBuilder() { - + public com.google.cloud.securitycenter.v1.NotificationConfig.Builder getNotificationConfigBuilder() { + onChanged(); return getNotificationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder - getNotificationConfigOrBuilder() { + public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { if (notificationConfigBuilder_ != null) { return notificationConfigBuilder_.getMessageOrBuilder(); } else { - return notificationConfig_ == null - ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? + com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() : notificationConfig_; } } /** - * - * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig, - com.google.cloud.securitycenter.v1.NotificationConfig.Builder, - com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> + com.google.cloud.securitycenter.v1.NotificationConfig, com.google.cloud.securitycenter.v1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> getNotificationConfigFieldBuilder() { if (notificationConfigBuilder_ == null) { - notificationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig, - com.google.cloud.securitycenter.v1.NotificationConfig.Builder, - com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder>( - getNotificationConfig(), getParentForChildren(), isClean()); + notificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.NotificationConfig, com.google.cloud.securitycenter.v1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder>( + getNotificationConfig(), + getParentForChildren(), + isClean()); notificationConfig_ = null; } return notificationConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1148,32 +994,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.CreateNotificationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.CreateNotificationConfigRequest) - private static final com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest(); } - public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateNotificationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateNotificationConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateNotificationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateNotificationConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1185,8 +1029,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequestOrBuilder.java index e133d3953..553e974e8 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface CreateNotificationConfigRequestOrBuilder - extends +public interface CreateNotificationConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.CreateNotificationConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the new notification config's parent. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the new notification config's parent. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required.
    * Unique identifier provided by the client within the parent scope.
@@ -65,13 +38,10 @@ public interface CreateNotificationConfigRequestOrBuilder
    * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The configId. */ java.lang.String getConfigId(); /** - * - * *
    * Required.
    * Unique identifier provided by the client within the parent scope.
@@ -80,52 +50,38 @@ public interface CreateNotificationConfigRequestOrBuilder
    * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for configId. */ - com.google.protobuf.ByteString getConfigIdBytes(); + com.google.protobuf.ByteString + getConfigIdBytes(); /** - * - * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationConfig field is set. */ boolean hasNotificationConfig(); /** - * - * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationConfig. */ com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig(); /** - * - * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java similarity index 64% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java index 0e9e44836..b9138b600 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for creating a source.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CreateSourceRequest} */ -public final class CreateSourceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSourceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.CreateSourceRequest) CreateSourceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSourceRequest.newBuilder() to construct. private CreateSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSourceRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateSourceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,36 +53,32 @@ private CreateSourceRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.securitycenter.v1.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); } - case 18: - { - com.google.cloud.securitycenter.v1.Source.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.securitycenter.v1.Source.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); - } - - break; + source_ = input.readMessage(com.google.cloud.securitycenter.v1.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,42 +86,35 @@ private CreateSourceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.CreateSourceRequest.class, - com.google.cloud.securitycenter.v1.CreateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1.CreateSourceRequest.class, com.google.cloud.securitycenter.v1.CreateSourceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -151,32 +123,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -187,17 +157,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SOURCE_FIELD_NUMBER = 2; private com.google.cloud.securitycenter.v1.Source source_; /** - * - * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the source field is set. */ @java.lang.Override @@ -205,36 +170,25 @@ public boolean hasSource() { return source_ != null; } /** - * - * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The source. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Source getSource() { - return source_ == null - ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() : source_; } /** - * - * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { @@ -242,7 +196,6 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -254,7 +207,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -274,7 +228,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (source_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -284,18 +239,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.CreateSourceRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.CreateSourceRequest other = - (com.google.cloud.securitycenter.v1.CreateSourceRequest) obj; + com.google.cloud.securitycenter.v1.CreateSourceRequest other = (com.google.cloud.securitycenter.v1.CreateSourceRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasSource() != other.hasSource()) return false; if (hasSource()) { - if (!getSource().equals(other.getSource())) return false; + if (!getSource() + .equals(other.getSource())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -320,127 +276,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.CreateSourceRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.CreateSourceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for creating a source.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CreateSourceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.CreateSourceRequest) com.google.cloud.securitycenter.v1.CreateSourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.CreateSourceRequest.class, - com.google.cloud.securitycenter.v1.CreateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1.CreateSourceRequest.class, com.google.cloud.securitycenter.v1.CreateSourceRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.CreateSourceRequest.newBuilder() @@ -448,15 +394,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -472,9 +419,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; } @java.lang.Override @@ -493,8 +440,7 @@ public com.google.cloud.securitycenter.v1.CreateSourceRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.CreateSourceRequest buildPartial() { - com.google.cloud.securitycenter.v1.CreateSourceRequest result = - new com.google.cloud.securitycenter.v1.CreateSourceRequest(this); + com.google.cloud.securitycenter.v1.CreateSourceRequest result = new com.google.cloud.securitycenter.v1.CreateSourceRequest(this); result.parent_ = parent_; if (sourceBuilder_ == null) { result.source_ = source_; @@ -509,39 +455,38 @@ public com.google.cloud.securitycenter.v1.CreateSourceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.CreateSourceRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.CreateSourceRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.CreateSourceRequest)other); } else { super.mergeFrom(other); return this; @@ -549,8 +494,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.CreateSourceRequest other) { - if (other == com.google.cloud.securitycenter.v1.CreateSourceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.CreateSourceRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -577,8 +521,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.CreateSourceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.CreateSourceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -590,23 +533,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -615,24 +554,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -640,70 +576,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -711,61 +634,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.securitycenter.v1.Source source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Source, - com.google.cloud.securitycenter.v1.Source.Builder, - com.google.cloud.securitycenter.v1.SourceOrBuilder> - sourceBuilder_; + com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, com.google.cloud.securitycenter.v1.SourceOrBuilder> sourceBuilder_; /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The source. */ public com.google.cloud.securitycenter.v1.Source getSource() { if (sourceBuilder_ == null) { - return source_ == null - ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSource(com.google.cloud.securitycenter.v1.Source value) { if (sourceBuilder_ == null) { @@ -781,18 +685,15 @@ public Builder setSource(com.google.cloud.securitycenter.v1.Source value) { return this; } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSource(com.google.cloud.securitycenter.v1.Source.Builder builderForValue) { + public Builder setSource( + com.google.cloud.securitycenter.v1.Source.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -803,24 +704,18 @@ public Builder setSource(com.google.cloud.securitycenter.v1.Source.Builder build return this; } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSource(com.google.cloud.securitycenter.v1.Source value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = - com.google.cloud.securitycenter.v1.Source.newBuilder(source_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.Source.newBuilder(source_).mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -832,16 +727,12 @@ public Builder mergeSource(com.google.cloud.securitycenter.v1.Source value) { return this; } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSource() { if (sourceBuilder_ == null) { @@ -855,74 +746,58 @@ public Builder clearSource() { return this; } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1.Source.Builder getSourceBuilder() { - + onChanged(); return getSourceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { - return source_ == null - ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() - : source_; + return source_ == null ? + com.google.cloud.securitycenter.v1.Source.getDefaultInstance() : source_; } } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Source, - com.google.cloud.securitycenter.v1.Source.Builder, - com.google.cloud.securitycenter.v1.SourceOrBuilder> + com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, com.google.cloud.securitycenter.v1.SourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { - sourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Source, - com.google.cloud.securitycenter.v1.Source.Builder, - com.google.cloud.securitycenter.v1.SourceOrBuilder>( - getSource(), getParentForChildren(), isClean()); + sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, com.google.cloud.securitycenter.v1.SourceOrBuilder>( + getSource(), + getParentForChildren(), + isClean()); source_ = null; } return sourceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -932,12 +807,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.CreateSourceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.CreateSourceRequest) private static final com.google.cloud.securitycenter.v1.CreateSourceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.CreateSourceRequest(); } @@ -946,16 +821,16 @@ public static com.google.cloud.securitycenter.v1.CreateSourceRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSourceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateSourceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateSourceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -970,4 +845,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.CreateSourceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java similarity index 51% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java index 66a408e83..8552a2d04 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java @@ -1,100 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface CreateSourceRequestOrBuilder - extends +public interface CreateSourceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.CreateSourceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the source field is set. */ boolean hasSource(); /** - * - * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The source. */ com.google.cloud.securitycenter.v1.Source getSource(); /** - * - * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cve.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cve.java similarity index 75% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cve.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cve.java index b7498fde1..1e0e50bc5 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cve.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cve.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/vulnerability.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * CVE stands for Common Vulnerabilities and Exposures.
  * More information: https://cve.mitre.org
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.Cve}
  */
-public final class Cve extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Cve extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Cve)
     CveOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Cve.newBuilder() to construct.
   private Cve(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Cve() {
     id_ = "";
     references_ = java.util.Collections.emptyList();
@@ -45,15 +27,16 @@ private Cve() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Cve();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Cve(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,53 +56,46 @@ private Cve(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              id_ = s;
-              break;
-            }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                references_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              references_.add(
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1.Reference.parser(), extensionRegistry));
-              break;
+            id_ = s;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              references_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              com.google.cloud.securitycenter.v1.Cvssv3.Builder subBuilder = null;
-              if (cvssv3_ != null) {
-                subBuilder = cvssv3_.toBuilder();
-              }
-              cvssv3_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1.Cvssv3.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(cvssv3_);
-                cvssv3_ = subBuilder.buildPartial();
-              }
-
-              break;
+            references_.add(
+                input.readMessage(com.google.cloud.securitycenter.v1.Reference.parser(), extensionRegistry));
+            break;
+          }
+          case 26: {
+            com.google.cloud.securitycenter.v1.Cvssv3.Builder subBuilder = null;
+            if (cvssv3_ != null) {
+              subBuilder = cvssv3_.toBuilder();
             }
-          case 32:
-            {
-              upstreamFixAvailable_ = input.readBool();
-              break;
+            cvssv3_ = input.readMessage(com.google.cloud.securitycenter.v1.Cvssv3.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(cvssv3_);
+              cvssv3_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 32: {
+
+            upstreamFixAvailable_ = input.readBool();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -127,7 +103,8 @@ private Cve(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         references_ = java.util.Collections.unmodifiableList(references_);
@@ -136,33 +113,27 @@ private Cve(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1.VulnerabilityProto
-        .internal_static_google_cloud_securitycenter_v1_Cve_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Cve_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.VulnerabilityProto
-        .internal_static_google_cloud_securitycenter_v1_Cve_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Cve_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.Cve.class,
-            com.google.cloud.securitycenter.v1.Cve.Builder.class);
+            com.google.cloud.securitycenter.v1.Cve.class, com.google.cloud.securitycenter.v1.Cve.Builder.class);
   }
 
   public static final int ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object id_;
   /**
-   *
-   *
    * 
    * The unique identifier for the vulnerability. e.g. CVE-2021-34527
    * 
* * string id = 1; - * * @return The id. */ @java.lang.Override @@ -171,29 +142,29 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** - * - * *
    * The unique identifier for the vulnerability. e.g. CVE-2021-34527
    * 
* * string id = 1; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -204,8 +175,6 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int REFERENCES_FIELD_NUMBER = 2; private java.util.List references_; /** - * - * *
    * Additional information about the CVE.
    * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -218,8 +187,6 @@ public java.util.List getReference
     return references_;
   }
   /**
-   *
-   *
    * 
    * Additional information about the CVE.
    * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -228,13 +195,11 @@ public java.util.List getReference
    * repeated .google.cloud.securitycenter.v1.Reference references = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getReferencesOrBuilderList() {
     return references_;
   }
   /**
-   *
-   *
    * 
    * Additional information about the CVE.
    * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -247,8 +212,6 @@ public int getReferencesCount() {
     return references_.size();
   }
   /**
-   *
-   *
    * 
    * Additional information about the CVE.
    * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -261,8 +224,6 @@ public com.google.cloud.securitycenter.v1.Reference getReferences(int index) {
     return references_.get(index);
   }
   /**
-   *
-   *
    * 
    * Additional information about the CVE.
    * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -271,22 +232,20 @@ public com.google.cloud.securitycenter.v1.Reference getReferences(int index) {
    * repeated .google.cloud.securitycenter.v1.Reference references = 2;
    */
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1.ReferenceOrBuilder getReferencesOrBuilder(int index) {
+  public com.google.cloud.securitycenter.v1.ReferenceOrBuilder getReferencesOrBuilder(
+      int index) {
     return references_.get(index);
   }
 
   public static final int CVSSV3_FIELD_NUMBER = 3;
   private com.google.cloud.securitycenter.v1.Cvssv3 cvssv3_;
   /**
-   *
-   *
    * 
    * Describe Common Vulnerability Scoring System specified at
    * https://www.first.org/cvss/v3.1/specification-document
    * 
* * .google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3; - * * @return Whether the cvssv3 field is set. */ @java.lang.Override @@ -294,26 +253,19 @@ public boolean hasCvssv3() { return cvssv3_ != null; } /** - * - * *
    * Describe Common Vulnerability Scoring System specified at
    * https://www.first.org/cvss/v3.1/specification-document
    * 
* * .google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3; - * * @return The cvssv3. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3 getCvssv3() { - return cvssv3_ == null - ? com.google.cloud.securitycenter.v1.Cvssv3.getDefaultInstance() - : cvssv3_; + return cvssv3_ == null ? com.google.cloud.securitycenter.v1.Cvssv3.getDefaultInstance() : cvssv3_; } /** - * - * *
    * Describe Common Vulnerability Scoring System specified at
    * https://www.first.org/cvss/v3.1/specification-document
@@ -329,14 +281,11 @@ public com.google.cloud.securitycenter.v1.Cvssv3OrBuilder getCvssv3OrBuilder() {
   public static final int UPSTREAM_FIX_AVAILABLE_FIELD_NUMBER = 4;
   private boolean upstreamFixAvailable_;
   /**
-   *
-   *
    * 
    * Whether upstream fix is available for the CVE.
    * 
* * bool upstream_fix_available = 4; - * * @return The upstreamFixAvailable. */ @java.lang.Override @@ -345,7 +294,6 @@ public boolean getUpstreamFixAvailable() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -357,7 +305,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -383,13 +332,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } for (int i = 0; i < references_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, references_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, references_.get(i)); } if (cvssv3_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCvssv3()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCvssv3()); } if (upstreamFixAvailable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, upstreamFixAvailable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, upstreamFixAvailable_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -399,20 +351,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Cve)) { return super.equals(obj); } com.google.cloud.securitycenter.v1.Cve other = (com.google.cloud.securitycenter.v1.Cve) obj; - if (!getId().equals(other.getId())) return false; - if (!getReferencesList().equals(other.getReferencesList())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getReferencesList() + .equals(other.getReferencesList())) return false; if (hasCvssv3() != other.hasCvssv3()) return false; if (hasCvssv3()) { - if (!getCvssv3().equals(other.getCvssv3())) return false; + if (!getCvssv3() + .equals(other.getCvssv3())) return false; } - if (getUpstreamFixAvailable() != other.getUpstreamFixAvailable()) return false; + if (getUpstreamFixAvailable() + != other.getUpstreamFixAvailable()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -435,110 +391,104 @@ public int hashCode() { hash = (53 * hash) + getCvssv3().hashCode(); } hash = (37 * hash) + UPSTREAM_FIX_AVAILABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUpstreamFixAvailable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUpstreamFixAvailable()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.securitycenter.v1.Cve parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Cve parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Cve parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Cve parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Cve parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Cve parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Cve parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Cve parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Cve parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Cve parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Cve parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Cve parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Cve parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.Cve prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * CVE stands for Common Vulnerabilities and Exposures.
    * More information: https://cve.mitre.org
@@ -546,23 +496,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.Cve}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Cve)
       com.google.cloud.securitycenter.v1.CveOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.VulnerabilityProto
-          .internal_static_google_cloud_securitycenter_v1_Cve_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Cve_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.VulnerabilityProto
-          .internal_static_google_cloud_securitycenter_v1_Cve_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Cve_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.Cve.class,
-              com.google.cloud.securitycenter.v1.Cve.Builder.class);
+              com.google.cloud.securitycenter.v1.Cve.class, com.google.cloud.securitycenter.v1.Cve.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.Cve.newBuilder()
@@ -570,17 +518,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getReferencesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -604,9 +552,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.VulnerabilityProto
-          .internal_static_google_cloud_securitycenter_v1_Cve_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Cve_descriptor;
     }
 
     @java.lang.Override
@@ -625,8 +573,7 @@ public com.google.cloud.securitycenter.v1.Cve build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.Cve buildPartial() {
-      com.google.cloud.securitycenter.v1.Cve result =
-          new com.google.cloud.securitycenter.v1.Cve(this);
+      com.google.cloud.securitycenter.v1.Cve result = new com.google.cloud.securitycenter.v1.Cve(this);
       int from_bitField0_ = bitField0_;
       result.id_ = id_;
       if (referencesBuilder_ == null) {
@@ -652,39 +599,38 @@ public com.google.cloud.securitycenter.v1.Cve buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.Cve) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.Cve) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.Cve)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -715,10 +661,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Cve other) {
             referencesBuilder_ = null;
             references_ = other.references_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            referencesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getReferencesFieldBuilder()
-                    : null;
+            referencesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getReferencesFieldBuilder() : null;
           } else {
             referencesBuilder_.addAllMessages(other.references_);
           }
@@ -758,25 +703,22 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object id_ = "";
     /**
-     *
-     *
      * 
      * The unique identifier for the vulnerability. e.g. CVE-2021-34527
      * 
* * string id = 1; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -785,21 +727,20 @@ public java.lang.String getId() { } } /** - * - * *
      * The unique identifier for the vulnerability. e.g. CVE-2021-34527
      * 
* * string id = 1; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -807,86 +748,72 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * The unique identifier for the vulnerability. e.g. CVE-2021-34527
      * 
* * string id = 1; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { + public Builder setId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** - * - * *
      * The unique identifier for the vulnerability. e.g. CVE-2021-34527
      * 
* * string id = 1; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * The unique identifier for the vulnerability. e.g. CVE-2021-34527
      * 
* * string id = 1; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; } private java.util.List references_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureReferencesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - references_ = - new java.util.ArrayList(references_); + references_ = new java.util.ArrayList(references_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Reference, - com.google.cloud.securitycenter.v1.Reference.Builder, - com.google.cloud.securitycenter.v1.ReferenceOrBuilder> - referencesBuilder_; + com.google.cloud.securitycenter.v1.Reference, com.google.cloud.securitycenter.v1.Reference.Builder, com.google.cloud.securitycenter.v1.ReferenceOrBuilder> referencesBuilder_; /** - * - * *
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -902,8 +829,6 @@ public java.util.List getReference
       }
     }
     /**
-     *
-     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -919,8 +844,6 @@ public int getReferencesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -936,8 +859,6 @@ public com.google.cloud.securitycenter.v1.Reference getReferences(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -945,7 +866,8 @@ public com.google.cloud.securitycenter.v1.Reference getReferences(int index) {
      *
      * repeated .google.cloud.securitycenter.v1.Reference references = 2;
      */
-    public Builder setReferences(int index, com.google.cloud.securitycenter.v1.Reference value) {
+    public Builder setReferences(
+        int index, com.google.cloud.securitycenter.v1.Reference value) {
       if (referencesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -959,8 +881,6 @@ public Builder setReferences(int index, com.google.cloud.securitycenter.v1.Refer
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -980,8 +900,6 @@ public Builder setReferences(
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1003,8 +921,6 @@ public Builder addReferences(com.google.cloud.securitycenter.v1.Reference value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1012,7 +928,8 @@ public Builder addReferences(com.google.cloud.securitycenter.v1.Reference value)
      *
      * repeated .google.cloud.securitycenter.v1.Reference references = 2;
      */
-    public Builder addReferences(int index, com.google.cloud.securitycenter.v1.Reference value) {
+    public Builder addReferences(
+        int index, com.google.cloud.securitycenter.v1.Reference value) {
       if (referencesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1026,8 +943,6 @@ public Builder addReferences(int index, com.google.cloud.securitycenter.v1.Refer
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1047,8 +962,6 @@ public Builder addReferences(
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1068,8 +981,6 @@ public Builder addReferences(
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1081,7 +992,8 @@ public Builder addAllReferences(
         java.lang.Iterable values) {
       if (referencesBuilder_ == null) {
         ensureReferencesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, references_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, references_);
         onChanged();
       } else {
         referencesBuilder_.addAllMessages(values);
@@ -1089,8 +1001,6 @@ public Builder addAllReferences(
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1109,8 +1019,6 @@ public Builder clearReferences() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1129,8 +1037,6 @@ public Builder removeReferences(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1138,12 +1044,11 @@ public Builder removeReferences(int index) {
      *
      * repeated .google.cloud.securitycenter.v1.Reference references = 2;
      */
-    public com.google.cloud.securitycenter.v1.Reference.Builder getReferencesBuilder(int index) {
+    public com.google.cloud.securitycenter.v1.Reference.Builder getReferencesBuilder(
+        int index) {
       return getReferencesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1151,16 +1056,14 @@ public com.google.cloud.securitycenter.v1.Reference.Builder getReferencesBuilder
      *
      * repeated .google.cloud.securitycenter.v1.Reference references = 2;
      */
-    public com.google.cloud.securitycenter.v1.ReferenceOrBuilder getReferencesOrBuilder(int index) {
+    public com.google.cloud.securitycenter.v1.ReferenceOrBuilder getReferencesOrBuilder(
+        int index) {
       if (referencesBuilder_ == null) {
-        return references_.get(index);
-      } else {
+        return references_.get(index);  } else {
         return referencesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1168,8 +1071,8 @@ public com.google.cloud.securitycenter.v1.ReferenceOrBuilder getReferencesOrBuil
      *
      * repeated .google.cloud.securitycenter.v1.Reference references = 2;
      */
-    public java.util.List
-        getReferencesOrBuilderList() {
+    public java.util.List 
+         getReferencesOrBuilderList() {
       if (referencesBuilder_ != null) {
         return referencesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1177,8 +1080,6 @@ public com.google.cloud.securitycenter.v1.ReferenceOrBuilder getReferencesOrBuil
       }
     }
     /**
-     *
-     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1187,12 +1088,10 @@ public com.google.cloud.securitycenter.v1.ReferenceOrBuilder getReferencesOrBuil
      * repeated .google.cloud.securitycenter.v1.Reference references = 2;
      */
     public com.google.cloud.securitycenter.v1.Reference.Builder addReferencesBuilder() {
-      return getReferencesFieldBuilder()
-          .addBuilder(com.google.cloud.securitycenter.v1.Reference.getDefaultInstance());
+      return getReferencesFieldBuilder().addBuilder(
+          com.google.cloud.securitycenter.v1.Reference.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1200,13 +1099,12 @@ public com.google.cloud.securitycenter.v1.Reference.Builder addReferencesBuilder
      *
      * repeated .google.cloud.securitycenter.v1.Reference references = 2;
      */
-    public com.google.cloud.securitycenter.v1.Reference.Builder addReferencesBuilder(int index) {
-      return getReferencesFieldBuilder()
-          .addBuilder(index, com.google.cloud.securitycenter.v1.Reference.getDefaultInstance());
+    public com.google.cloud.securitycenter.v1.Reference.Builder addReferencesBuilder(
+        int index) {
+      return getReferencesFieldBuilder().addBuilder(
+          index, com.google.cloud.securitycenter.v1.Reference.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1214,23 +1112,20 @@ public com.google.cloud.securitycenter.v1.Reference.Builder addReferencesBuilder
      *
      * repeated .google.cloud.securitycenter.v1.Reference references = 2;
      */
-    public java.util.List
-        getReferencesBuilderList() {
+    public java.util.List 
+         getReferencesBuilderList() {
       return getReferencesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Reference,
-            com.google.cloud.securitycenter.v1.Reference.Builder,
-            com.google.cloud.securitycenter.v1.ReferenceOrBuilder>
+        com.google.cloud.securitycenter.v1.Reference, com.google.cloud.securitycenter.v1.Reference.Builder, com.google.cloud.securitycenter.v1.ReferenceOrBuilder> 
         getReferencesFieldBuilder() {
       if (referencesBuilder_ == null) {
-        referencesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.securitycenter.v1.Reference,
-                com.google.cloud.securitycenter.v1.Reference.Builder,
-                com.google.cloud.securitycenter.v1.ReferenceOrBuilder>(
-                references_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        referencesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.securitycenter.v1.Reference, com.google.cloud.securitycenter.v1.Reference.Builder, com.google.cloud.securitycenter.v1.ReferenceOrBuilder>(
+                references_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         references_ = null;
       }
       return referencesBuilder_;
@@ -1238,49 +1133,36 @@ public com.google.cloud.securitycenter.v1.Reference.Builder addReferencesBuilder
 
     private com.google.cloud.securitycenter.v1.Cvssv3 cvssv3_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Cvssv3,
-            com.google.cloud.securitycenter.v1.Cvssv3.Builder,
-            com.google.cloud.securitycenter.v1.Cvssv3OrBuilder>
-        cvssv3Builder_;
+        com.google.cloud.securitycenter.v1.Cvssv3, com.google.cloud.securitycenter.v1.Cvssv3.Builder, com.google.cloud.securitycenter.v1.Cvssv3OrBuilder> cvssv3Builder_;
     /**
-     *
-     *
      * 
      * Describe Common Vulnerability Scoring System specified at
      * https://www.first.org/cvss/v3.1/specification-document
      * 
* * .google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3; - * * @return Whether the cvssv3 field is set. */ public boolean hasCvssv3() { return cvssv3Builder_ != null || cvssv3_ != null; } /** - * - * *
      * Describe Common Vulnerability Scoring System specified at
      * https://www.first.org/cvss/v3.1/specification-document
      * 
* * .google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3; - * * @return The cvssv3. */ public com.google.cloud.securitycenter.v1.Cvssv3 getCvssv3() { if (cvssv3Builder_ == null) { - return cvssv3_ == null - ? com.google.cloud.securitycenter.v1.Cvssv3.getDefaultInstance() - : cvssv3_; + return cvssv3_ == null ? com.google.cloud.securitycenter.v1.Cvssv3.getDefaultInstance() : cvssv3_; } else { return cvssv3Builder_.getMessage(); } } /** - * - * *
      * Describe Common Vulnerability Scoring System specified at
      * https://www.first.org/cvss/v3.1/specification-document
@@ -1302,8 +1184,6 @@ public Builder setCvssv3(com.google.cloud.securitycenter.v1.Cvssv3 value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Describe Common Vulnerability Scoring System specified at
      * https://www.first.org/cvss/v3.1/specification-document
@@ -1311,7 +1191,8 @@ public Builder setCvssv3(com.google.cloud.securitycenter.v1.Cvssv3 value) {
      *
      * .google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3;
      */
-    public Builder setCvssv3(com.google.cloud.securitycenter.v1.Cvssv3.Builder builderForValue) {
+    public Builder setCvssv3(
+        com.google.cloud.securitycenter.v1.Cvssv3.Builder builderForValue) {
       if (cvssv3Builder_ == null) {
         cvssv3_ = builderForValue.build();
         onChanged();
@@ -1322,8 +1203,6 @@ public Builder setCvssv3(com.google.cloud.securitycenter.v1.Cvssv3.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * Describe Common Vulnerability Scoring System specified at
      * https://www.first.org/cvss/v3.1/specification-document
@@ -1335,9 +1214,7 @@ public Builder mergeCvssv3(com.google.cloud.securitycenter.v1.Cvssv3 value) {
       if (cvssv3Builder_ == null) {
         if (cvssv3_ != null) {
           cvssv3_ =
-              com.google.cloud.securitycenter.v1.Cvssv3.newBuilder(cvssv3_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.securitycenter.v1.Cvssv3.newBuilder(cvssv3_).mergeFrom(value).buildPartial();
         } else {
           cvssv3_ = value;
         }
@@ -1349,8 +1226,6 @@ public Builder mergeCvssv3(com.google.cloud.securitycenter.v1.Cvssv3 value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Describe Common Vulnerability Scoring System specified at
      * https://www.first.org/cvss/v3.1/specification-document
@@ -1370,8 +1245,6 @@ public Builder clearCvssv3() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Describe Common Vulnerability Scoring System specified at
      * https://www.first.org/cvss/v3.1/specification-document
@@ -1380,13 +1253,11 @@ public Builder clearCvssv3() {
      * .google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3;
      */
     public com.google.cloud.securitycenter.v1.Cvssv3.Builder getCvssv3Builder() {
-
+      
       onChanged();
       return getCvssv3FieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Describe Common Vulnerability Scoring System specified at
      * https://www.first.org/cvss/v3.1/specification-document
@@ -1398,14 +1269,11 @@ public com.google.cloud.securitycenter.v1.Cvssv3OrBuilder getCvssv3OrBuilder() {
       if (cvssv3Builder_ != null) {
         return cvssv3Builder_.getMessageOrBuilder();
       } else {
-        return cvssv3_ == null
-            ? com.google.cloud.securitycenter.v1.Cvssv3.getDefaultInstance()
-            : cvssv3_;
+        return cvssv3_ == null ?
+            com.google.cloud.securitycenter.v1.Cvssv3.getDefaultInstance() : cvssv3_;
       }
     }
     /**
-     *
-     *
      * 
      * Describe Common Vulnerability Scoring System specified at
      * https://www.first.org/cvss/v3.1/specification-document
@@ -1414,32 +1282,26 @@ public com.google.cloud.securitycenter.v1.Cvssv3OrBuilder getCvssv3OrBuilder() {
      * .google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Cvssv3,
-            com.google.cloud.securitycenter.v1.Cvssv3.Builder,
-            com.google.cloud.securitycenter.v1.Cvssv3OrBuilder>
+        com.google.cloud.securitycenter.v1.Cvssv3, com.google.cloud.securitycenter.v1.Cvssv3.Builder, com.google.cloud.securitycenter.v1.Cvssv3OrBuilder> 
         getCvssv3FieldBuilder() {
       if (cvssv3Builder_ == null) {
-        cvssv3Builder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.securitycenter.v1.Cvssv3,
-                com.google.cloud.securitycenter.v1.Cvssv3.Builder,
-                com.google.cloud.securitycenter.v1.Cvssv3OrBuilder>(
-                getCvssv3(), getParentForChildren(), isClean());
+        cvssv3Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.securitycenter.v1.Cvssv3, com.google.cloud.securitycenter.v1.Cvssv3.Builder, com.google.cloud.securitycenter.v1.Cvssv3OrBuilder>(
+                getCvssv3(),
+                getParentForChildren(),
+                isClean());
         cvssv3_ = null;
       }
       return cvssv3Builder_;
     }
 
-    private boolean upstreamFixAvailable_;
+    private boolean upstreamFixAvailable_ ;
     /**
-     *
-     *
      * 
      * Whether upstream fix is available for the CVE.
      * 
* * bool upstream_fix_available = 4; - * * @return The upstreamFixAvailable. */ @java.lang.Override @@ -1447,43 +1309,37 @@ public boolean getUpstreamFixAvailable() { return upstreamFixAvailable_; } /** - * - * *
      * Whether upstream fix is available for the CVE.
      * 
* * bool upstream_fix_available = 4; - * * @param value The upstreamFixAvailable to set. * @return This builder for chaining. */ public Builder setUpstreamFixAvailable(boolean value) { - + upstreamFixAvailable_ = value; onChanged(); return this; } /** - * - * *
      * Whether upstream fix is available for the CVE.
      * 
* * bool upstream_fix_available = 4; - * * @return This builder for chaining. */ public Builder clearUpstreamFixAvailable() { - + upstreamFixAvailable_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1493,12 +1349,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Cve) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Cve) private static final com.google.cloud.securitycenter.v1.Cve DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Cve(); } @@ -1507,16 +1363,16 @@ public static com.google.cloud.securitycenter.v1.Cve getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Cve parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Cve(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Cve parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Cve(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1531,4 +1387,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Cve getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CveOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CveOrBuilder.java similarity index 77% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CveOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CveOrBuilder.java index e0c6b64ba..049698d86 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CveOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CveOrBuilder.java @@ -1,56 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/vulnerability.proto package com.google.cloud.securitycenter.v1; -public interface CveOrBuilder - extends +public interface CveOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Cve) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The unique identifier for the vulnerability. e.g. CVE-2021-34527
    * 
* * string id = 1; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * The unique identifier for the vulnerability. e.g. CVE-2021-34527
    * 
* * string id = 1; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * Additional information about the CVE.
    * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -58,10 +35,9 @@ public interface CveOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1.Reference references = 2;
    */
-  java.util.List getReferencesList();
+  java.util.List 
+      getReferencesList();
   /**
-   *
-   *
    * 
    * Additional information about the CVE.
    * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -71,8 +47,6 @@ public interface CveOrBuilder
    */
   com.google.cloud.securitycenter.v1.Reference getReferences(int index);
   /**
-   *
-   *
    * 
    * Additional information about the CVE.
    * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -82,8 +56,6 @@ public interface CveOrBuilder
    */
   int getReferencesCount();
   /**
-   *
-   *
    * 
    * Additional information about the CVE.
    * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -91,11 +63,9 @@ public interface CveOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1.Reference references = 2;
    */
-  java.util.List
+  java.util.List 
       getReferencesOrBuilderList();
   /**
-   *
-   *
    * 
    * Additional information about the CVE.
    * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -103,37 +73,30 @@ public interface CveOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1.Reference references = 2;
    */
-  com.google.cloud.securitycenter.v1.ReferenceOrBuilder getReferencesOrBuilder(int index);
+  com.google.cloud.securitycenter.v1.ReferenceOrBuilder getReferencesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Describe Common Vulnerability Scoring System specified at
    * https://www.first.org/cvss/v3.1/specification-document
    * 
* * .google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3; - * * @return Whether the cvssv3 field is set. */ boolean hasCvssv3(); /** - * - * *
    * Describe Common Vulnerability Scoring System specified at
    * https://www.first.org/cvss/v3.1/specification-document
    * 
* * .google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3; - * * @return The cvssv3. */ com.google.cloud.securitycenter.v1.Cvssv3 getCvssv3(); /** - * - * *
    * Describe Common Vulnerability Scoring System specified at
    * https://www.first.org/cvss/v3.1/specification-document
@@ -144,14 +107,11 @@ public interface CveOrBuilder
   com.google.cloud.securitycenter.v1.Cvssv3OrBuilder getCvssv3OrBuilder();
 
   /**
-   *
-   *
    * 
    * Whether upstream fix is available for the CVE.
    * 
* * bool upstream_fix_available = 4; - * * @return The upstreamFixAvailable. */ boolean getUpstreamFixAvailable(); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3.java similarity index 75% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3.java index 56684fba4..6e6bc286e 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/vulnerability.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Common Vulnerability Scoring System version 3.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Cvssv3} */ -public final class Cvssv3 extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Cvssv3 extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Cvssv3) Cvssv3OrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Cvssv3.newBuilder() to construct. private Cvssv3(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Cvssv3() { attackVector_ = 0; attackComplexity_ = 0; @@ -50,15 +32,16 @@ private Cvssv3() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Cvssv3(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Cvssv3( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -77,74 +60,66 @@ private Cvssv3( case 0: done = true; break; - case 9: - { - baseScore_ = input.readDouble(); - break; - } - case 40: - { - int rawValue = input.readEnum(); + case 9: { - attackVector_ = rawValue; - break; - } - case 48: - { - int rawValue = input.readEnum(); + baseScore_ = input.readDouble(); + break; + } + case 40: { + int rawValue = input.readEnum(); - attackComplexity_ = rawValue; - break; - } - case 56: - { - int rawValue = input.readEnum(); + attackVector_ = rawValue; + break; + } + case 48: { + int rawValue = input.readEnum(); - privilegesRequired_ = rawValue; - break; - } - case 64: - { - int rawValue = input.readEnum(); + attackComplexity_ = rawValue; + break; + } + case 56: { + int rawValue = input.readEnum(); - userInteraction_ = rawValue; - break; - } - case 72: - { - int rawValue = input.readEnum(); + privilegesRequired_ = rawValue; + break; + } + case 64: { + int rawValue = input.readEnum(); - scope_ = rawValue; - break; - } - case 80: - { - int rawValue = input.readEnum(); + userInteraction_ = rawValue; + break; + } + case 72: { + int rawValue = input.readEnum(); - confidentialityImpact_ = rawValue; - break; - } - case 88: - { - int rawValue = input.readEnum(); + scope_ = rawValue; + break; + } + case 80: { + int rawValue = input.readEnum(); - integrityImpact_ = rawValue; - break; - } - case 96: - { - int rawValue = input.readEnum(); + confidentialityImpact_ = rawValue; + break; + } + case 88: { + int rawValue = input.readEnum(); - availabilityImpact_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + integrityImpact_ = rawValue; + break; + } + case 96: { + int rawValue = input.readEnum(); + + availabilityImpact_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -152,31 +127,27 @@ private Cvssv3( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto - .internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto - .internal_static_google_cloud_securitycenter_v1_Cvssv3_fieldAccessorTable + return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Cvssv3_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Cvssv3.class, - com.google.cloud.securitycenter.v1.Cvssv3.Builder.class); + com.google.cloud.securitycenter.v1.Cvssv3.class, com.google.cloud.securitycenter.v1.Cvssv3.Builder.class); } /** - * - * *
    * This metric reflects the context by which vulnerability exploitation is
    * possible.
@@ -184,10 +155,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.securitycenter.v1.Cvssv3.AttackVector}
    */
-  public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum {
+  public enum AttackVector
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Invalid value.
      * 
@@ -196,8 +166,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ ATTACK_VECTOR_UNSPECIFIED(0), /** - * - * *
      * The vulnerable component is bound to the network stack and the set of
      * possible attackers extends beyond the other options listed below, up to
@@ -208,8 +176,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum {
      */
     ATTACK_VECTOR_NETWORK(1),
     /**
-     *
-     *
      * 
      * The vulnerable component is bound to the network stack, but the attack is
      * limited at the protocol level to a logically adjacent topology.
@@ -219,8 +185,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum {
      */
     ATTACK_VECTOR_ADJACENT(2),
     /**
-     *
-     *
      * 
      * The vulnerable component is not bound to the network stack and the
      * attacker's path is via read/write/execute capabilities.
@@ -230,8 +194,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum {
      */
     ATTACK_VECTOR_LOCAL(3),
     /**
-     *
-     *
      * 
      * The attack requires the attacker to physically touch or manipulate the
      * vulnerable component.
@@ -244,8 +206,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Invalid value.
      * 
@@ -254,8 +214,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ATTACK_VECTOR_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The vulnerable component is bound to the network stack and the set of
      * possible attackers extends beyond the other options listed below, up to
@@ -266,8 +224,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ATTACK_VECTOR_NETWORK_VALUE = 1;
     /**
-     *
-     *
      * 
      * The vulnerable component is bound to the network stack, but the attack is
      * limited at the protocol level to a logically adjacent topology.
@@ -277,8 +233,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ATTACK_VECTOR_ADJACENT_VALUE = 2;
     /**
-     *
-     *
      * 
      * The vulnerable component is not bound to the network stack and the
      * attacker's path is via read/write/execute capabilities.
@@ -288,8 +242,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ATTACK_VECTOR_LOCAL_VALUE = 3;
     /**
-     *
-     *
      * 
      * The attack requires the attacker to physically touch or manipulate the
      * vulnerable component.
@@ -299,6 +251,7 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ATTACK_VECTOR_PHYSICAL_VALUE = 4;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -323,53 +276,51 @@ public static AttackVector valueOf(int value) {
      */
     public static AttackVector forNumber(int value) {
       switch (value) {
-        case 0:
-          return ATTACK_VECTOR_UNSPECIFIED;
-        case 1:
-          return ATTACK_VECTOR_NETWORK;
-        case 2:
-          return ATTACK_VECTOR_ADJACENT;
-        case 3:
-          return ATTACK_VECTOR_LOCAL;
-        case 4:
-          return ATTACK_VECTOR_PHYSICAL;
-        default:
-          return null;
+        case 0: return ATTACK_VECTOR_UNSPECIFIED;
+        case 1: return ATTACK_VECTOR_NETWORK;
+        case 2: return ATTACK_VECTOR_ADJACENT;
+        case 3: return ATTACK_VECTOR_LOCAL;
+        case 4: return ATTACK_VECTOR_PHYSICAL;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        AttackVector> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public AttackVector findValueByNumber(int number) {
+              return AttackVector.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public AttackVector findValueByNumber(int number) {
-            return AttackVector.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.securitycenter.v1.Cvssv3.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final AttackVector[] VALUES = values();
 
-    public static AttackVector valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static AttackVector valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -387,8 +338,6 @@ private AttackVector(int value) {
   }
 
   /**
-   *
-   *
    * 
    * This metric describes the conditions beyond the attacker's control that
    * must exist in order to exploit the vulnerability.
@@ -396,10 +345,9 @@ private AttackVector(int value) {
    *
    * Protobuf enum {@code google.cloud.securitycenter.v1.Cvssv3.AttackComplexity}
    */
-  public enum AttackComplexity implements com.google.protobuf.ProtocolMessageEnum {
+  public enum AttackComplexity
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Invalid value.
      * 
@@ -408,8 +356,6 @@ public enum AttackComplexity implements com.google.protobuf.ProtocolMessageEnum */ ATTACK_COMPLEXITY_UNSPECIFIED(0), /** - * - * *
      * Specialized access conditions or extenuating circumstances do not exist.
      * An attacker can expect repeatable success when attacking the vulnerable
@@ -420,8 +366,6 @@ public enum AttackComplexity implements com.google.protobuf.ProtocolMessageEnum
      */
     ATTACK_COMPLEXITY_LOW(1),
     /**
-     *
-     *
      * 
      * A successful attack depends on conditions beyond the attacker's control.
      * That is, a successful attack cannot be accomplished at will, but requires
@@ -437,8 +381,6 @@ public enum AttackComplexity implements com.google.protobuf.ProtocolMessageEnum
     ;
 
     /**
-     *
-     *
      * 
      * Invalid value.
      * 
@@ -447,8 +389,6 @@ public enum AttackComplexity implements com.google.protobuf.ProtocolMessageEnum */ public static final int ATTACK_COMPLEXITY_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Specialized access conditions or extenuating circumstances do not exist.
      * An attacker can expect repeatable success when attacking the vulnerable
@@ -459,8 +399,6 @@ public enum AttackComplexity implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int ATTACK_COMPLEXITY_LOW_VALUE = 1;
     /**
-     *
-     *
      * 
      * A successful attack depends on conditions beyond the attacker's control.
      * That is, a successful attack cannot be accomplished at will, but requires
@@ -473,6 +411,7 @@ public enum AttackComplexity implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int ATTACK_COMPLEXITY_HIGH_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -497,42 +436,39 @@ public static AttackComplexity valueOf(int value) {
      */
     public static AttackComplexity forNumber(int value) {
       switch (value) {
-        case 0:
-          return ATTACK_COMPLEXITY_UNSPECIFIED;
-        case 1:
-          return ATTACK_COMPLEXITY_LOW;
-        case 2:
-          return ATTACK_COMPLEXITY_HIGH;
-        default:
-          return null;
+        case 0: return ATTACK_COMPLEXITY_UNSPECIFIED;
+        case 1: return ATTACK_COMPLEXITY_LOW;
+        case 2: return ATTACK_COMPLEXITY_HIGH;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        AttackComplexity> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public AttackComplexity findValueByNumber(int number) {
+              return AttackComplexity.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public AttackComplexity findValueByNumber(int number) {
-                return AttackComplexity.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.securitycenter.v1.Cvssv3.getDescriptor().getEnumTypes().get(1);
     }
 
@@ -541,7 +477,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static AttackComplexity valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -559,8 +496,6 @@ private AttackComplexity(int value) {
   }
 
   /**
-   *
-   *
    * 
    * This metric describes the level of privileges an attacker must possess
    * before successfully exploiting the vulnerability.
@@ -568,10 +503,9 @@ private AttackComplexity(int value) {
    *
    * Protobuf enum {@code google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired}
    */
-  public enum PrivilegesRequired implements com.google.protobuf.ProtocolMessageEnum {
+  public enum PrivilegesRequired
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Invalid value.
      * 
@@ -580,8 +514,6 @@ public enum PrivilegesRequired implements com.google.protobuf.ProtocolMessageEnu */ PRIVILEGES_REQUIRED_UNSPECIFIED(0), /** - * - * *
      * The attacker is unauthorized prior to attack, and therefore does not
      * require any access to settings or files of the vulnerable system to
@@ -592,8 +524,6 @@ public enum PrivilegesRequired implements com.google.protobuf.ProtocolMessageEnu
      */
     PRIVILEGES_REQUIRED_NONE(1),
     /**
-     *
-     *
      * 
      * The attacker requires privileges that provide basic user capabilities
      * that could normally affect only settings and files owned by a user.
@@ -605,8 +535,6 @@ public enum PrivilegesRequired implements com.google.protobuf.ProtocolMessageEnu
      */
     PRIVILEGES_REQUIRED_LOW(2),
     /**
-     *
-     *
      * 
      * The attacker requires privileges that provide significant (e.g.,
      * administrative) control over the vulnerable component allowing access to
@@ -620,8 +548,6 @@ public enum PrivilegesRequired implements com.google.protobuf.ProtocolMessageEnu
     ;
 
     /**
-     *
-     *
      * 
      * Invalid value.
      * 
@@ -630,8 +556,6 @@ public enum PrivilegesRequired implements com.google.protobuf.ProtocolMessageEnu */ public static final int PRIVILEGES_REQUIRED_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The attacker is unauthorized prior to attack, and therefore does not
      * require any access to settings or files of the vulnerable system to
@@ -642,8 +566,6 @@ public enum PrivilegesRequired implements com.google.protobuf.ProtocolMessageEnu
      */
     public static final int PRIVILEGES_REQUIRED_NONE_VALUE = 1;
     /**
-     *
-     *
      * 
      * The attacker requires privileges that provide basic user capabilities
      * that could normally affect only settings and files owned by a user.
@@ -655,8 +577,6 @@ public enum PrivilegesRequired implements com.google.protobuf.ProtocolMessageEnu
      */
     public static final int PRIVILEGES_REQUIRED_LOW_VALUE = 2;
     /**
-     *
-     *
      * 
      * The attacker requires privileges that provide significant (e.g.,
      * administrative) control over the vulnerable component allowing access to
@@ -667,6 +587,7 @@ public enum PrivilegesRequired implements com.google.protobuf.ProtocolMessageEnu
      */
     public static final int PRIVILEGES_REQUIRED_HIGH_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -691,16 +612,11 @@ public static PrivilegesRequired valueOf(int value) {
      */
     public static PrivilegesRequired forNumber(int value) {
       switch (value) {
-        case 0:
-          return PRIVILEGES_REQUIRED_UNSPECIFIED;
-        case 1:
-          return PRIVILEGES_REQUIRED_NONE;
-        case 2:
-          return PRIVILEGES_REQUIRED_LOW;
-        case 3:
-          return PRIVILEGES_REQUIRED_HIGH;
-        default:
-          return null;
+        case 0: return PRIVILEGES_REQUIRED_UNSPECIFIED;
+        case 1: return PRIVILEGES_REQUIRED_NONE;
+        case 2: return PRIVILEGES_REQUIRED_LOW;
+        case 3: return PRIVILEGES_REQUIRED_HIGH;
+        default: return null;
       }
     }
 
@@ -708,28 +624,28 @@ public static PrivilegesRequired forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        PrivilegesRequired> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public PrivilegesRequired findValueByNumber(int number) {
+              return PrivilegesRequired.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public PrivilegesRequired findValueByNumber(int number) {
-                return PrivilegesRequired.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.securitycenter.v1.Cvssv3.getDescriptor().getEnumTypes().get(2);
     }
 
@@ -738,7 +654,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static PrivilegesRequired valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -756,8 +673,6 @@ private PrivilegesRequired(int value) {
   }
 
   /**
-   *
-   *
    * 
    * This metric captures the requirement for a human user, other than the
    * attacker, to participate in the successful compromise of the vulnerable
@@ -766,10 +681,9 @@ private PrivilegesRequired(int value) {
    *
    * Protobuf enum {@code google.cloud.securitycenter.v1.Cvssv3.UserInteraction}
    */
-  public enum UserInteraction implements com.google.protobuf.ProtocolMessageEnum {
+  public enum UserInteraction
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Invalid value.
      * 
@@ -778,8 +692,6 @@ public enum UserInteraction implements com.google.protobuf.ProtocolMessageEnum { */ USER_INTERACTION_UNSPECIFIED(0), /** - * - * *
      * The vulnerable system can be exploited without interaction from any user.
      * 
@@ -788,8 +700,6 @@ public enum UserInteraction implements com.google.protobuf.ProtocolMessageEnum { */ USER_INTERACTION_NONE(1), /** - * - * *
      * Successful exploitation of this vulnerability requires a user to take
      * some action before the vulnerability can be exploited.
@@ -802,8 +712,6 @@ public enum UserInteraction implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Invalid value.
      * 
@@ -812,8 +720,6 @@ public enum UserInteraction implements com.google.protobuf.ProtocolMessageEnum { */ public static final int USER_INTERACTION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The vulnerable system can be exploited without interaction from any user.
      * 
@@ -822,8 +728,6 @@ public enum UserInteraction implements com.google.protobuf.ProtocolMessageEnum { */ public static final int USER_INTERACTION_NONE_VALUE = 1; /** - * - * *
      * Successful exploitation of this vulnerability requires a user to take
      * some action before the vulnerability can be exploited.
@@ -833,6 +737,7 @@ public enum UserInteraction implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int USER_INTERACTION_REQUIRED_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -857,42 +762,39 @@ public static UserInteraction valueOf(int value) {
      */
     public static UserInteraction forNumber(int value) {
       switch (value) {
-        case 0:
-          return USER_INTERACTION_UNSPECIFIED;
-        case 1:
-          return USER_INTERACTION_NONE;
-        case 2:
-          return USER_INTERACTION_REQUIRED;
-        default:
-          return null;
+        case 0: return USER_INTERACTION_UNSPECIFIED;
+        case 1: return USER_INTERACTION_NONE;
+        case 2: return USER_INTERACTION_REQUIRED;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        UserInteraction> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public UserInteraction findValueByNumber(int number) {
+              return UserInteraction.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public UserInteraction findValueByNumber(int number) {
-                return UserInteraction.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.securitycenter.v1.Cvssv3.getDescriptor().getEnumTypes().get(3);
     }
 
@@ -901,7 +803,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static UserInteraction valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -919,8 +822,6 @@ private UserInteraction(int value) {
   }
 
   /**
-   *
-   *
    * 
    * The Scope metric captures whether a vulnerability in one vulnerable
    * component impacts resources in components beyond its security scope.
@@ -928,10 +829,9 @@ private UserInteraction(int value) {
    *
    * Protobuf enum {@code google.cloud.securitycenter.v1.Cvssv3.Scope}
    */
-  public enum Scope implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Scope
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Invalid value.
      * 
@@ -940,8 +840,6 @@ public enum Scope implements com.google.protobuf.ProtocolMessageEnum { */ SCOPE_UNSPECIFIED(0), /** - * - * *
      * An exploited vulnerability can only affect resources managed by the same
      * security authority.
@@ -951,8 +849,6 @@ public enum Scope implements com.google.protobuf.ProtocolMessageEnum {
      */
     SCOPE_UNCHANGED(1),
     /**
-     *
-     *
      * 
      * An exploited vulnerability can affect resources beyond the security scope
      * managed by the security authority of the vulnerable component.
@@ -965,8 +861,6 @@ public enum Scope implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Invalid value.
      * 
@@ -975,8 +869,6 @@ public enum Scope implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCOPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * An exploited vulnerability can only affect resources managed by the same
      * security authority.
@@ -986,8 +878,6 @@ public enum Scope implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SCOPE_UNCHANGED_VALUE = 1;
     /**
-     *
-     *
      * 
      * An exploited vulnerability can affect resources beyond the security scope
      * managed by the security authority of the vulnerable component.
@@ -997,6 +887,7 @@ public enum Scope implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SCOPE_CHANGED_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -1021,49 +912,49 @@ public static Scope valueOf(int value) {
      */
     public static Scope forNumber(int value) {
       switch (value) {
-        case 0:
-          return SCOPE_UNSPECIFIED;
-        case 1:
-          return SCOPE_UNCHANGED;
-        case 2:
-          return SCOPE_CHANGED;
-        default:
-          return null;
+        case 0: return SCOPE_UNSPECIFIED;
+        case 1: return SCOPE_UNCHANGED;
+        case 2: return SCOPE_CHANGED;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        Scope> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Scope findValueByNumber(int number) {
+              return Scope.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Scope findValueByNumber(int number) {
-            return Scope.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.securitycenter.v1.Cvssv3.getDescriptor().getEnumTypes().get(4);
     }
 
     private static final Scope[] VALUES = values();
 
-    public static Scope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Scope valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -1081,8 +972,6 @@ private Scope(int value) {
   }
 
   /**
-   *
-   *
    * 
    * The Impact metrics capture the effects of a successfully exploited
    * vulnerability on the component that suffers the worst outcome that is most
@@ -1091,10 +980,9 @@ private Scope(int value) {
    *
    * Protobuf enum {@code google.cloud.securitycenter.v1.Cvssv3.Impact}
    */
-  public enum Impact implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Impact
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Invalid value.
      * 
@@ -1103,8 +991,6 @@ public enum Impact implements com.google.protobuf.ProtocolMessageEnum { */ IMPACT_UNSPECIFIED(0), /** - * - * *
      * High impact.
      * 
@@ -1113,8 +999,6 @@ public enum Impact implements com.google.protobuf.ProtocolMessageEnum { */ IMPACT_HIGH(1), /** - * - * *
      * Low impact.
      * 
@@ -1123,8 +1007,6 @@ public enum Impact implements com.google.protobuf.ProtocolMessageEnum { */ IMPACT_LOW(2), /** - * - * *
      * No impact.
      * 
@@ -1136,8 +1018,6 @@ public enum Impact implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid value.
      * 
@@ -1146,8 +1026,6 @@ public enum Impact implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMPACT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * High impact.
      * 
@@ -1156,8 +1034,6 @@ public enum Impact implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMPACT_HIGH_VALUE = 1; /** - * - * *
      * Low impact.
      * 
@@ -1166,8 +1042,6 @@ public enum Impact implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMPACT_LOW_VALUE = 2; /** - * - * *
      * No impact.
      * 
@@ -1176,6 +1050,7 @@ public enum Impact implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMPACT_NONE_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1200,51 +1075,50 @@ public static Impact valueOf(int value) { */ public static Impact forNumber(int value) { switch (value) { - case 0: - return IMPACT_UNSPECIFIED; - case 1: - return IMPACT_HIGH; - case 2: - return IMPACT_LOW; - case 3: - return IMPACT_NONE; - default: - return null; + case 0: return IMPACT_UNSPECIFIED; + case 1: return IMPACT_HIGH; + case 2: return IMPACT_LOW; + case 3: return IMPACT_NONE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Impact> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Impact findValueByNumber(int number) { + return Impact.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Impact findValueByNumber(int number) { - return Impact.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.securitycenter.v1.Cvssv3.getDescriptor().getEnumTypes().get(5); } private static final Impact[] VALUES = values(); - public static Impact valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Impact valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1264,14 +1138,11 @@ private Impact(int value) { public static final int BASE_SCORE_FIELD_NUMBER = 1; private double baseScore_; /** - * - * *
    * The base score is a function of the base metric scores.
    * 
* * double base_score = 1; - * * @return The baseScore. */ @java.lang.Override @@ -1282,8 +1153,6 @@ public double getBaseScore() { public static final int ATTACK_VECTOR_FIELD_NUMBER = 5; private int attackVector_; /** - * - * *
    * Base Metrics
    * Represents the intrinsic characteristics of a vulnerability that are
@@ -1293,16 +1162,12 @@ public double getBaseScore() {
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5; - * * @return The enum numeric value on the wire for attackVector. */ - @java.lang.Override - public int getAttackVectorValue() { + @java.lang.Override public int getAttackVectorValue() { return attackVector_; } /** - * - * *
    * Base Metrics
    * Represents the intrinsic characteristics of a vulnerability that are
@@ -1312,104 +1177,75 @@ public int getAttackVectorValue() {
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5; - * * @return The attackVector. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.Cvssv3.AttackVector getAttackVector() { + @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.AttackVector getAttackVector() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.AttackVector result = - com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.valueOf(attackVector_); - return result == null - ? com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.Cvssv3.AttackVector result = com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.valueOf(attackVector_); + return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.UNRECOGNIZED : result; } public static final int ATTACK_COMPLEXITY_FIELD_NUMBER = 6; private int attackComplexity_; /** - * - * *
    * This metric describes the conditions beyond the attacker's control that
    * must exist in order to exploit the vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6; - * * @return The enum numeric value on the wire for attackComplexity. */ - @java.lang.Override - public int getAttackComplexityValue() { + @java.lang.Override public int getAttackComplexityValue() { return attackComplexity_; } /** - * - * *
    * This metric describes the conditions beyond the attacker's control that
    * must exist in order to exploit the vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6; - * * @return The attackComplexity. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity getAttackComplexity() { + @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity getAttackComplexity() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity result = - com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.valueOf(attackComplexity_); - return result == null - ? com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity result = com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.valueOf(attackComplexity_); + return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.UNRECOGNIZED : result; } public static final int PRIVILEGES_REQUIRED_FIELD_NUMBER = 7; private int privilegesRequired_; /** - * - * *
    * This metric describes the level of privileges an attacker must possess
    * before successfully exploiting the vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; - * * @return The enum numeric value on the wire for privilegesRequired. */ - @java.lang.Override - public int getPrivilegesRequiredValue() { + @java.lang.Override public int getPrivilegesRequiredValue() { return privilegesRequired_; } /** - * - * *
    * This metric describes the level of privileges an attacker must possess
    * before successfully exploiting the vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; - * * @return The privilegesRequired. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired getPrivilegesRequired() { + @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired getPrivilegesRequired() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired result = - com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired.valueOf(privilegesRequired_); - return result == null - ? com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired result = com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired.valueOf(privilegesRequired_); + return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired.UNRECOGNIZED : result; } public static final int USER_INTERACTION_FIELD_NUMBER = 8; private int userInteraction_; /** - * - * *
    * This metric captures the requirement for a human user, other than the
    * attacker, to participate in the successful compromise of the vulnerable
@@ -1417,16 +1253,12 @@ public com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired getPrivilege
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8; - * * @return The enum numeric value on the wire for userInteraction. */ - @java.lang.Override - public int getUserInteractionValue() { + @java.lang.Override public int getUserInteractionValue() { return userInteraction_; } /** - * - * *
    * This metric captures the requirement for a human user, other than the
    * attacker, to participate in the successful compromise of the vulnerable
@@ -1434,62 +1266,46 @@ public int getUserInteractionValue() {
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8; - * * @return The userInteraction. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction getUserInteraction() { + @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction getUserInteraction() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction result = - com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.valueOf(userInteraction_); - return result == null - ? com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction result = com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.valueOf(userInteraction_); + return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.UNRECOGNIZED : result; } public static final int SCOPE_FIELD_NUMBER = 9; private int scope_; /** - * - * *
    * The Scope metric captures whether a vulnerability in one vulnerable
    * component impacts resources in components beyond its security scope.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9; - * * @return The enum numeric value on the wire for scope. */ - @java.lang.Override - public int getScopeValue() { + @java.lang.Override public int getScopeValue() { return scope_; } /** - * - * *
    * The Scope metric captures whether a vulnerability in one vulnerable
    * component impacts resources in components beyond its security scope.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9; - * * @return The scope. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.Cvssv3.Scope getScope() { + @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.Scope getScope() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.Scope result = - com.google.cloud.securitycenter.v1.Cvssv3.Scope.valueOf(scope_); + com.google.cloud.securitycenter.v1.Cvssv3.Scope result = com.google.cloud.securitycenter.v1.Cvssv3.Scope.valueOf(scope_); return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.Scope.UNRECOGNIZED : result; } public static final int CONFIDENTIALITY_IMPACT_FIELD_NUMBER = 10; private int confidentialityImpact_; /** - * - * *
    * This metric measures the impact to the confidentiality of the information
    * resources managed by a software component due to a successfully exploited
@@ -1497,16 +1313,12 @@ public com.google.cloud.securitycenter.v1.Cvssv3.Scope getScope() {
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10; - * * @return The enum numeric value on the wire for confidentialityImpact. */ - @java.lang.Override - public int getConfidentialityImpactValue() { + @java.lang.Override public int getConfidentialityImpactValue() { return confidentialityImpact_; } /** - * - * *
    * This metric measures the impact to the confidentiality of the information
    * resources managed by a software component due to a successfully exploited
@@ -1514,95 +1326,73 @@ public int getConfidentialityImpactValue() {
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10; - * * @return The confidentialityImpact. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.Cvssv3.Impact getConfidentialityImpact() { + @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.Impact getConfidentialityImpact() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.Impact result = - com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(confidentialityImpact_); + com.google.cloud.securitycenter.v1.Cvssv3.Impact result = com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(confidentialityImpact_); return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.Impact.UNRECOGNIZED : result; } public static final int INTEGRITY_IMPACT_FIELD_NUMBER = 11; private int integrityImpact_; /** - * - * *
    * This metric measures the impact to integrity of a successfully exploited
    * vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11; - * * @return The enum numeric value on the wire for integrityImpact. */ - @java.lang.Override - public int getIntegrityImpactValue() { + @java.lang.Override public int getIntegrityImpactValue() { return integrityImpact_; } /** - * - * *
    * This metric measures the impact to integrity of a successfully exploited
    * vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11; - * * @return The integrityImpact. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.Cvssv3.Impact getIntegrityImpact() { + @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.Impact getIntegrityImpact() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.Impact result = - com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(integrityImpact_); + com.google.cloud.securitycenter.v1.Cvssv3.Impact result = com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(integrityImpact_); return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.Impact.UNRECOGNIZED : result; } public static final int AVAILABILITY_IMPACT_FIELD_NUMBER = 12; private int availabilityImpact_; /** - * - * *
    * This metric measures the impact to the availability of the impacted
    * component resulting from a successfully exploited vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact availability_impact = 12; - * * @return The enum numeric value on the wire for availabilityImpact. */ - @java.lang.Override - public int getAvailabilityImpactValue() { + @java.lang.Override public int getAvailabilityImpactValue() { return availabilityImpact_; } /** - * - * *
    * This metric measures the impact to the availability of the impacted
    * component resulting from a successfully exploited vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact availability_impact = 12; - * * @return The availabilityImpact. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.Cvssv3.Impact getAvailabilityImpact() { + @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.Impact getAvailabilityImpact() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.Impact result = - com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(availabilityImpact_); + com.google.cloud.securitycenter.v1.Cvssv3.Impact result = com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(availabilityImpact_); return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.Impact.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1614,44 +1404,33 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Double.doubleToRawLongBits(baseScore_) != 0) { output.writeDouble(1, baseScore_); } - if (attackVector_ - != com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.ATTACK_VECTOR_UNSPECIFIED - .getNumber()) { + if (attackVector_ != com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.ATTACK_VECTOR_UNSPECIFIED.getNumber()) { output.writeEnum(5, attackVector_); } - if (attackComplexity_ - != com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.ATTACK_COMPLEXITY_UNSPECIFIED - .getNumber()) { + if (attackComplexity_ != com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.ATTACK_COMPLEXITY_UNSPECIFIED.getNumber()) { output.writeEnum(6, attackComplexity_); } - if (privilegesRequired_ - != com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired - .PRIVILEGES_REQUIRED_UNSPECIFIED - .getNumber()) { + if (privilegesRequired_ != com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired.PRIVILEGES_REQUIRED_UNSPECIFIED.getNumber()) { output.writeEnum(7, privilegesRequired_); } - if (userInteraction_ - != com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.USER_INTERACTION_UNSPECIFIED - .getNumber()) { + if (userInteraction_ != com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.USER_INTERACTION_UNSPECIFIED.getNumber()) { output.writeEnum(8, userInteraction_); } if (scope_ != com.google.cloud.securitycenter.v1.Cvssv3.Scope.SCOPE_UNSPECIFIED.getNumber()) { output.writeEnum(9, scope_); } - if (confidentialityImpact_ - != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { + if (confidentialityImpact_ != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { output.writeEnum(10, confidentialityImpact_); } - if (integrityImpact_ - != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { + if (integrityImpact_ != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { output.writeEnum(11, integrityImpact_); } - if (availabilityImpact_ - != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { + if (availabilityImpact_ != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { output.writeEnum(12, availabilityImpact_); } unknownFields.writeTo(output); @@ -1664,43 +1443,40 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(baseScore_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, baseScore_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, baseScore_); } - if (attackVector_ - != com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.ATTACK_VECTOR_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, attackVector_); + if (attackVector_ != com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.ATTACK_VECTOR_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, attackVector_); } - if (attackComplexity_ - != com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.ATTACK_COMPLEXITY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, attackComplexity_); + if (attackComplexity_ != com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.ATTACK_COMPLEXITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, attackComplexity_); } - if (privilegesRequired_ - != com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired - .PRIVILEGES_REQUIRED_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, privilegesRequired_); + if (privilegesRequired_ != com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired.PRIVILEGES_REQUIRED_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, privilegesRequired_); } - if (userInteraction_ - != com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.USER_INTERACTION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, userInteraction_); + if (userInteraction_ != com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.USER_INTERACTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, userInteraction_); } if (scope_ != com.google.cloud.securitycenter.v1.Cvssv3.Scope.SCOPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, scope_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, scope_); } - if (confidentialityImpact_ - != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, confidentialityImpact_); + if (confidentialityImpact_ != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, confidentialityImpact_); } - if (integrityImpact_ - != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, integrityImpact_); + if (integrityImpact_ != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, integrityImpact_); } - if (availabilityImpact_ - != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, availabilityImpact_); + if (availabilityImpact_ != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, availabilityImpact_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1710,16 +1486,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Cvssv3)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Cvssv3 other = - (com.google.cloud.securitycenter.v1.Cvssv3) obj; + com.google.cloud.securitycenter.v1.Cvssv3 other = (com.google.cloud.securitycenter.v1.Cvssv3) obj; if (java.lang.Double.doubleToLongBits(getBaseScore()) - != java.lang.Double.doubleToLongBits(other.getBaseScore())) return false; + != java.lang.Double.doubleToLongBits( + other.getBaseScore())) return false; if (attackVector_ != other.attackVector_) return false; if (attackComplexity_ != other.attackComplexity_) return false; if (privilegesRequired_ != other.privilegesRequired_) return false; @@ -1740,10 +1516,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BASE_SCORE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getBaseScore())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getBaseScore())); hash = (37 * hash) + ATTACK_VECTOR_FIELD_NUMBER; hash = (53 * hash) + attackVector_; hash = (37 * hash) + ATTACK_COMPLEXITY_FIELD_NUMBER; @@ -1765,127 +1539,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.Cvssv3 parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.Cvssv3 parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Cvssv3 parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.Cvssv3 prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Common Vulnerability Scoring System version 3.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Cvssv3} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Cvssv3) com.google.cloud.securitycenter.v1.Cvssv3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto - .internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto - .internal_static_google_cloud_securitycenter_v1_Cvssv3_fieldAccessorTable + return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Cvssv3_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Cvssv3.class, - com.google.cloud.securitycenter.v1.Cvssv3.Builder.class); + com.google.cloud.securitycenter.v1.Cvssv3.class, com.google.cloud.securitycenter.v1.Cvssv3.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.Cvssv3.newBuilder() @@ -1893,15 +1658,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1927,9 +1693,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto - .internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor; } @java.lang.Override @@ -1948,8 +1714,7 @@ public com.google.cloud.securitycenter.v1.Cvssv3 build() { @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3 buildPartial() { - com.google.cloud.securitycenter.v1.Cvssv3 result = - new com.google.cloud.securitycenter.v1.Cvssv3(this); + com.google.cloud.securitycenter.v1.Cvssv3 result = new com.google.cloud.securitycenter.v1.Cvssv3(this); result.baseScore_ = baseScore_; result.attackVector_ = attackVector_; result.attackComplexity_ = attackComplexity_; @@ -1967,39 +1732,38 @@ public com.google.cloud.securitycenter.v1.Cvssv3 buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.Cvssv3) { - return mergeFrom((com.google.cloud.securitycenter.v1.Cvssv3) other); + return mergeFrom((com.google.cloud.securitycenter.v1.Cvssv3)other); } else { super.mergeFrom(other); return this; @@ -2064,16 +1828,13 @@ public Builder mergeFrom( return this; } - private double baseScore_; + private double baseScore_ ; /** - * - * *
      * The base score is a function of the base metric scores.
      * 
* * double base_score = 1; - * * @return The baseScore. */ @java.lang.Override @@ -2081,36 +1842,30 @@ public double getBaseScore() { return baseScore_; } /** - * - * *
      * The base score is a function of the base metric scores.
      * 
* * double base_score = 1; - * * @param value The baseScore to set. * @return This builder for chaining. */ public Builder setBaseScore(double value) { - + baseScore_ = value; onChanged(); return this; } /** - * - * *
      * The base score is a function of the base metric scores.
      * 
* * double base_score = 1; - * * @return This builder for chaining. */ public Builder clearBaseScore() { - + baseScore_ = 0D; onChanged(); return this; @@ -2118,8 +1873,6 @@ public Builder clearBaseScore() { private int attackVector_ = 0; /** - * - * *
      * Base Metrics
      * Represents the intrinsic characteristics of a vulnerability that are
@@ -2129,16 +1882,12 @@ public Builder clearBaseScore() {
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5; - * * @return The enum numeric value on the wire for attackVector. */ - @java.lang.Override - public int getAttackVectorValue() { + @java.lang.Override public int getAttackVectorValue() { return attackVector_; } /** - * - * *
      * Base Metrics
      * Represents the intrinsic characteristics of a vulnerability that are
@@ -2148,19 +1897,16 @@ public int getAttackVectorValue() {
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5; - * * @param value The enum numeric value on the wire for attackVector to set. * @return This builder for chaining. */ public Builder setAttackVectorValue(int value) { - + attackVector_ = value; onChanged(); return this; } /** - * - * *
      * Base Metrics
      * Represents the intrinsic characteristics of a vulnerability that are
@@ -2170,21 +1916,15 @@ public Builder setAttackVectorValue(int value) {
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5; - * * @return The attackVector. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.AttackVector getAttackVector() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.AttackVector result = - com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.valueOf(attackVector_); - return result == null - ? com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.Cvssv3.AttackVector result = com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.valueOf(attackVector_); + return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.UNRECOGNIZED : result; } /** - * - * *
      * Base Metrics
      * Represents the intrinsic characteristics of a vulnerability that are
@@ -2194,7 +1934,6 @@ public com.google.cloud.securitycenter.v1.Cvssv3.AttackVector getAttackVector()
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5; - * * @param value The attackVector to set. * @return This builder for chaining. */ @@ -2202,14 +1941,12 @@ public Builder setAttackVector(com.google.cloud.securitycenter.v1.Cvssv3.AttackV if (value == null) { throw new NullPointerException(); } - + attackVector_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Base Metrics
      * Represents the intrinsic characteristics of a vulnerability that are
@@ -2219,11 +1956,10 @@ public Builder setAttackVector(com.google.cloud.securitycenter.v1.Cvssv3.AttackV
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5; - * * @return This builder for chaining. */ public Builder clearAttackVector() { - + attackVector_ = 0; onChanged(); return this; @@ -2231,98 +1967,78 @@ public Builder clearAttackVector() { private int attackComplexity_ = 0; /** - * - * *
      * This metric describes the conditions beyond the attacker's control that
      * must exist in order to exploit the vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6; - * * @return The enum numeric value on the wire for attackComplexity. */ - @java.lang.Override - public int getAttackComplexityValue() { + @java.lang.Override public int getAttackComplexityValue() { return attackComplexity_; } /** - * - * *
      * This metric describes the conditions beyond the attacker's control that
      * must exist in order to exploit the vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6; - * * @param value The enum numeric value on the wire for attackComplexity to set. * @return This builder for chaining. */ public Builder setAttackComplexityValue(int value) { - + attackComplexity_ = value; onChanged(); return this; } /** - * - * *
      * This metric describes the conditions beyond the attacker's control that
      * must exist in order to exploit the vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6; - * * @return The attackComplexity. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity getAttackComplexity() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity result = - com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.valueOf(attackComplexity_); - return result == null - ? com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity result = com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.valueOf(attackComplexity_); + return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.UNRECOGNIZED : result; } /** - * - * *
      * This metric describes the conditions beyond the attacker's control that
      * must exist in order to exploit the vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6; - * * @param value The attackComplexity to set. * @return This builder for chaining. */ - public Builder setAttackComplexity( - com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity value) { + public Builder setAttackComplexity(com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity value) { if (value == null) { throw new NullPointerException(); } - + attackComplexity_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * This metric describes the conditions beyond the attacker's control that
      * must exist in order to exploit the vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6; - * * @return This builder for chaining. */ public Builder clearAttackComplexity() { - + attackComplexity_ = 0; onChanged(); return this; @@ -2330,103 +2046,78 @@ public Builder clearAttackComplexity() { private int privilegesRequired_ = 0; /** - * - * *
      * This metric describes the level of privileges an attacker must possess
      * before successfully exploiting the vulnerability.
      * 
* - * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; - * - * + * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; * @return The enum numeric value on the wire for privilegesRequired. */ - @java.lang.Override - public int getPrivilegesRequiredValue() { + @java.lang.Override public int getPrivilegesRequiredValue() { return privilegesRequired_; } /** - * - * *
      * This metric describes the level of privileges an attacker must possess
      * before successfully exploiting the vulnerability.
      * 
* - * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; - * - * + * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; * @param value The enum numeric value on the wire for privilegesRequired to set. * @return This builder for chaining. */ public Builder setPrivilegesRequiredValue(int value) { - + privilegesRequired_ = value; onChanged(); return this; } /** - * - * *
      * This metric describes the level of privileges an attacker must possess
      * before successfully exploiting the vulnerability.
      * 
* - * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; - * - * + * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; * @return The privilegesRequired. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired getPrivilegesRequired() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired result = - com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired.valueOf(privilegesRequired_); - return result == null - ? com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired result = com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired.valueOf(privilegesRequired_); + return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired.UNRECOGNIZED : result; } /** - * - * *
      * This metric describes the level of privileges an attacker must possess
      * before successfully exploiting the vulnerability.
      * 
* - * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; - * - * + * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; * @param value The privilegesRequired to set. * @return This builder for chaining. */ - public Builder setPrivilegesRequired( - com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired value) { + public Builder setPrivilegesRequired(com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired value) { if (value == null) { throw new NullPointerException(); } - + privilegesRequired_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * This metric describes the level of privileges an attacker must possess
      * before successfully exploiting the vulnerability.
      * 
* - * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; - * - * + * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; * @return This builder for chaining. */ public Builder clearPrivilegesRequired() { - + privilegesRequired_ = 0; onChanged(); return this; @@ -2434,8 +2125,6 @@ public Builder clearPrivilegesRequired() { private int userInteraction_ = 0; /** - * - * *
      * This metric captures the requirement for a human user, other than the
      * attacker, to participate in the successful compromise of the vulnerable
@@ -2443,16 +2132,12 @@ public Builder clearPrivilegesRequired() {
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8; - * * @return The enum numeric value on the wire for userInteraction. */ - @java.lang.Override - public int getUserInteractionValue() { + @java.lang.Override public int getUserInteractionValue() { return userInteraction_; } /** - * - * *
      * This metric captures the requirement for a human user, other than the
      * attacker, to participate in the successful compromise of the vulnerable
@@ -2460,19 +2145,16 @@ public int getUserInteractionValue() {
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8; - * * @param value The enum numeric value on the wire for userInteraction to set. * @return This builder for chaining. */ public Builder setUserInteractionValue(int value) { - + userInteraction_ = value; onChanged(); return this; } /** - * - * *
      * This metric captures the requirement for a human user, other than the
      * attacker, to participate in the successful compromise of the vulnerable
@@ -2480,21 +2162,15 @@ public Builder setUserInteractionValue(int value) {
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8; - * * @return The userInteraction. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction getUserInteraction() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction result = - com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.valueOf(userInteraction_); - return result == null - ? com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction result = com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.valueOf(userInteraction_); + return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.UNRECOGNIZED : result; } /** - * - * *
      * This metric captures the requirement for a human user, other than the
      * attacker, to participate in the successful compromise of the vulnerable
@@ -2502,23 +2178,19 @@ public com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction getUserInteract
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8; - * * @param value The userInteraction to set. * @return This builder for chaining. */ - public Builder setUserInteraction( - com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction value) { + public Builder setUserInteraction(com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction value) { if (value == null) { throw new NullPointerException(); } - + userInteraction_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * This metric captures the requirement for a human user, other than the
      * attacker, to participate in the successful compromise of the vulnerable
@@ -2526,11 +2198,10 @@ public Builder setUserInteraction(
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8; - * * @return This builder for chaining. */ public Builder clearUserInteraction() { - + userInteraction_ = 0; onChanged(); return this; @@ -2538,69 +2209,55 @@ public Builder clearUserInteraction() { private int scope_ = 0; /** - * - * *
      * The Scope metric captures whether a vulnerability in one vulnerable
      * component impacts resources in components beyond its security scope.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9; - * * @return The enum numeric value on the wire for scope. */ - @java.lang.Override - public int getScopeValue() { + @java.lang.Override public int getScopeValue() { return scope_; } /** - * - * *
      * The Scope metric captures whether a vulnerability in one vulnerable
      * component impacts resources in components beyond its security scope.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9; - * * @param value The enum numeric value on the wire for scope to set. * @return This builder for chaining. */ public Builder setScopeValue(int value) { - + scope_ = value; onChanged(); return this; } /** - * - * *
      * The Scope metric captures whether a vulnerability in one vulnerable
      * component impacts resources in components beyond its security scope.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9; - * * @return The scope. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.Scope getScope() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.Scope result = - com.google.cloud.securitycenter.v1.Cvssv3.Scope.valueOf(scope_); + com.google.cloud.securitycenter.v1.Cvssv3.Scope result = com.google.cloud.securitycenter.v1.Cvssv3.Scope.valueOf(scope_); return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.Scope.UNRECOGNIZED : result; } /** - * - * *
      * The Scope metric captures whether a vulnerability in one vulnerable
      * component impacts resources in components beyond its security scope.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9; - * * @param value The scope to set. * @return This builder for chaining. */ @@ -2608,25 +2265,22 @@ public Builder setScope(com.google.cloud.securitycenter.v1.Cvssv3.Scope value) { if (value == null) { throw new NullPointerException(); } - + scope_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The Scope metric captures whether a vulnerability in one vulnerable
      * component impacts resources in components beyond its security scope.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9; - * * @return This builder for chaining. */ public Builder clearScope() { - + scope_ = 0; onChanged(); return this; @@ -2634,8 +2288,6 @@ public Builder clearScope() { private int confidentialityImpact_ = 0; /** - * - * *
      * This metric measures the impact to the confidentiality of the information
      * resources managed by a software component due to a successfully exploited
@@ -2643,16 +2295,12 @@ public Builder clearScope() {
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10; - * * @return The enum numeric value on the wire for confidentialityImpact. */ - @java.lang.Override - public int getConfidentialityImpactValue() { + @java.lang.Override public int getConfidentialityImpactValue() { return confidentialityImpact_; } /** - * - * *
      * This metric measures the impact to the confidentiality of the information
      * resources managed by a software component due to a successfully exploited
@@ -2660,19 +2308,16 @@ public int getConfidentialityImpactValue() {
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10; - * * @param value The enum numeric value on the wire for confidentialityImpact to set. * @return This builder for chaining. */ public Builder setConfidentialityImpactValue(int value) { - + confidentialityImpact_ = value; onChanged(); return this; } /** - * - * *
      * This metric measures the impact to the confidentiality of the information
      * resources managed by a software component due to a successfully exploited
@@ -2680,21 +2325,15 @@ public Builder setConfidentialityImpactValue(int value) {
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10; - * * @return The confidentialityImpact. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.Impact getConfidentialityImpact() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.Impact result = - com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(confidentialityImpact_); - return result == null - ? com.google.cloud.securitycenter.v1.Cvssv3.Impact.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.Cvssv3.Impact result = com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(confidentialityImpact_); + return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.Impact.UNRECOGNIZED : result; } /** - * - * *
      * This metric measures the impact to the confidentiality of the information
      * resources managed by a software component due to a successfully exploited
@@ -2702,23 +2341,19 @@ public com.google.cloud.securitycenter.v1.Cvssv3.Impact getConfidentialityImpact
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10; - * * @param value The confidentialityImpact to set. * @return This builder for chaining. */ - public Builder setConfidentialityImpact( - com.google.cloud.securitycenter.v1.Cvssv3.Impact value) { + public Builder setConfidentialityImpact(com.google.cloud.securitycenter.v1.Cvssv3.Impact value) { if (value == null) { throw new NullPointerException(); } - + confidentialityImpact_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * This metric measures the impact to the confidentiality of the information
      * resources managed by a software component due to a successfully exploited
@@ -2726,11 +2361,10 @@ public Builder setConfidentialityImpact(
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10; - * * @return This builder for chaining. */ public Builder clearConfidentialityImpact() { - + confidentialityImpact_ = 0; onChanged(); return this; @@ -2738,71 +2372,55 @@ public Builder clearConfidentialityImpact() { private int integrityImpact_ = 0; /** - * - * *
      * This metric measures the impact to integrity of a successfully exploited
      * vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11; - * * @return The enum numeric value on the wire for integrityImpact. */ - @java.lang.Override - public int getIntegrityImpactValue() { + @java.lang.Override public int getIntegrityImpactValue() { return integrityImpact_; } /** - * - * *
      * This metric measures the impact to integrity of a successfully exploited
      * vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11; - * * @param value The enum numeric value on the wire for integrityImpact to set. * @return This builder for chaining. */ public Builder setIntegrityImpactValue(int value) { - + integrityImpact_ = value; onChanged(); return this; } /** - * - * *
      * This metric measures the impact to integrity of a successfully exploited
      * vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11; - * * @return The integrityImpact. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.Impact getIntegrityImpact() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.Impact result = - com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(integrityImpact_); - return result == null - ? com.google.cloud.securitycenter.v1.Cvssv3.Impact.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.Cvssv3.Impact result = com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(integrityImpact_); + return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.Impact.UNRECOGNIZED : result; } /** - * - * *
      * This metric measures the impact to integrity of a successfully exploited
      * vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11; - * * @param value The integrityImpact to set. * @return This builder for chaining. */ @@ -2810,25 +2428,22 @@ public Builder setIntegrityImpact(com.google.cloud.securitycenter.v1.Cvssv3.Impa if (value == null) { throw new NullPointerException(); } - + integrityImpact_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * This metric measures the impact to integrity of a successfully exploited
      * vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11; - * * @return This builder for chaining. */ public Builder clearIntegrityImpact() { - + integrityImpact_ = 0; onChanged(); return this; @@ -2836,71 +2451,55 @@ public Builder clearIntegrityImpact() { private int availabilityImpact_ = 0; /** - * - * *
      * This metric measures the impact to the availability of the impacted
      * component resulting from a successfully exploited vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact availability_impact = 12; - * * @return The enum numeric value on the wire for availabilityImpact. */ - @java.lang.Override - public int getAvailabilityImpactValue() { + @java.lang.Override public int getAvailabilityImpactValue() { return availabilityImpact_; } /** - * - * *
      * This metric measures the impact to the availability of the impacted
      * component resulting from a successfully exploited vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact availability_impact = 12; - * * @param value The enum numeric value on the wire for availabilityImpact to set. * @return This builder for chaining. */ public Builder setAvailabilityImpactValue(int value) { - + availabilityImpact_ = value; onChanged(); return this; } /** - * - * *
      * This metric measures the impact to the availability of the impacted
      * component resulting from a successfully exploited vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact availability_impact = 12; - * * @return The availabilityImpact. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.Impact getAvailabilityImpact() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.Impact result = - com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(availabilityImpact_); - return result == null - ? com.google.cloud.securitycenter.v1.Cvssv3.Impact.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.Cvssv3.Impact result = com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(availabilityImpact_); + return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.Impact.UNRECOGNIZED : result; } /** - * - * *
      * This metric measures the impact to the availability of the impacted
      * component resulting from a successfully exploited vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact availability_impact = 12; - * * @param value The availabilityImpact to set. * @return This builder for chaining. */ @@ -2908,32 +2507,29 @@ public Builder setAvailabilityImpact(com.google.cloud.securitycenter.v1.Cvssv3.I if (value == null) { throw new NullPointerException(); } - + availabilityImpact_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * This metric measures the impact to the availability of the impacted
      * component resulting from a successfully exploited vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact availability_impact = 12; - * * @return This builder for chaining. */ public Builder clearAvailabilityImpact() { - + availabilityImpact_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2943,12 +2539,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Cvssv3) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Cvssv3) private static final com.google.cloud.securitycenter.v1.Cvssv3 DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Cvssv3(); } @@ -2957,16 +2553,16 @@ public static com.google.cloud.securitycenter.v1.Cvssv3 getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Cvssv3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Cvssv3(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Cvssv3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Cvssv3(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2981,4 +2577,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Cvssv3 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3OrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3OrBuilder.java similarity index 88% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3OrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3OrBuilder.java index 057b0e685..2f70ec964 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3OrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3OrBuilder.java @@ -1,44 +1,23 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/vulnerability.proto package com.google.cloud.securitycenter.v1; -public interface Cvssv3OrBuilder - extends +public interface Cvssv3OrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Cvssv3) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The base score is a function of the base metric scores.
    * 
* * double base_score = 1; - * * @return The baseScore. */ double getBaseScore(); /** - * - * *
    * Base Metrics
    * Represents the intrinsic characteristics of a vulnerability that are
@@ -48,13 +27,10 @@ public interface Cvssv3OrBuilder
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5; - * * @return The enum numeric value on the wire for attackVector. */ int getAttackVectorValue(); /** - * - * *
    * Base Metrics
    * Represents the intrinsic characteristics of a vulnerability that are
@@ -64,68 +40,53 @@ public interface Cvssv3OrBuilder
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5; - * * @return The attackVector. */ com.google.cloud.securitycenter.v1.Cvssv3.AttackVector getAttackVector(); /** - * - * *
    * This metric describes the conditions beyond the attacker's control that
    * must exist in order to exploit the vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6; - * * @return The enum numeric value on the wire for attackComplexity. */ int getAttackComplexityValue(); /** - * - * *
    * This metric describes the conditions beyond the attacker's control that
    * must exist in order to exploit the vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6; - * * @return The attackComplexity. */ com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity getAttackComplexity(); /** - * - * *
    * This metric describes the level of privileges an attacker must possess
    * before successfully exploiting the vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; - * * @return The enum numeric value on the wire for privilegesRequired. */ int getPrivilegesRequiredValue(); /** - * - * *
    * This metric describes the level of privileges an attacker must possess
    * before successfully exploiting the vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; - * * @return The privilegesRequired. */ com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired getPrivilegesRequired(); /** - * - * *
    * This metric captures the requirement for a human user, other than the
    * attacker, to participate in the successful compromise of the vulnerable
@@ -133,13 +94,10 @@ public interface Cvssv3OrBuilder
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8; - * * @return The enum numeric value on the wire for userInteraction. */ int getUserInteractionValue(); /** - * - * *
    * This metric captures the requirement for a human user, other than the
    * attacker, to participate in the successful compromise of the vulnerable
@@ -147,41 +105,32 @@ public interface Cvssv3OrBuilder
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8; - * * @return The userInteraction. */ com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction getUserInteraction(); /** - * - * *
    * The Scope metric captures whether a vulnerability in one vulnerable
    * component impacts resources in components beyond its security scope.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9; - * * @return The enum numeric value on the wire for scope. */ int getScopeValue(); /** - * - * *
    * The Scope metric captures whether a vulnerability in one vulnerable
    * component impacts resources in components beyond its security scope.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9; - * * @return The scope. */ com.google.cloud.securitycenter.v1.Cvssv3.Scope getScope(); /** - * - * *
    * This metric measures the impact to the confidentiality of the information
    * resources managed by a software component due to a successfully exploited
@@ -189,13 +138,10 @@ public interface Cvssv3OrBuilder
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10; - * * @return The enum numeric value on the wire for confidentialityImpact. */ int getConfidentialityImpactValue(); /** - * - * *
    * This metric measures the impact to the confidentiality of the information
    * resources managed by a software component due to a successfully exploited
@@ -203,61 +149,48 @@ public interface Cvssv3OrBuilder
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10; - * * @return The confidentialityImpact. */ com.google.cloud.securitycenter.v1.Cvssv3.Impact getConfidentialityImpact(); /** - * - * *
    * This metric measures the impact to integrity of a successfully exploited
    * vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11; - * * @return The enum numeric value on the wire for integrityImpact. */ int getIntegrityImpactValue(); /** - * - * *
    * This metric measures the impact to integrity of a successfully exploited
    * vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11; - * * @return The integrityImpact. */ com.google.cloud.securitycenter.v1.Cvssv3.Impact getIntegrityImpact(); /** - * - * *
    * This metric measures the impact to the availability of the impacted
    * component resulting from a successfully exploited vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact availability_impact = 12; - * * @return The enum numeric value on the wire for availabilityImpact. */ int getAvailabilityImpactValue(); /** - * - * *
    * This metric measures the impact to the availability of the impacted
    * component resulting from a successfully exploited vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact availability_impact = 12; - * * @return The availabilityImpact. */ com.google.cloud.securitycenter.v1.Cvssv3.Impact getAvailabilityImpact(); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequest.java similarity index 66% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequest.java index e2d85ccf1..3f16b9ad4 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for deleting a big query export.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.DeleteBigQueryExportRequest} */ -public final class DeleteBigQueryExportRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteBigQueryExportRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) DeleteBigQueryExportRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteBigQueryExportRequest.newBuilder() to construct. private DeleteBigQueryExportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteBigQueryExportRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteBigQueryExportRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteBigQueryExportRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteBigQueryExportRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private DeleteBigQueryExportRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.class, - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.Builder.class); + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.class, com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the big query export to delete. Its format is
    * organizations/{organization}/bigQueryExports/{export_id},
@@ -125,10 +103,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * projects/{project}/bigQueryExports/{export_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -137,15 +112,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the big query export to delete. Its format is
    * organizations/{organization}/bigQueryExports/{export_id},
@@ -153,18 +127,17 @@ public java.lang.String getName() {
    * projects/{project}/bigQueryExports/{export_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -173,7 +146,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +157,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -209,15 +182,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest other = - (com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) obj; + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest other = (com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -237,127 +210,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for deleting a big query export.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.DeleteBigQueryExportRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.class, - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.Builder.class); + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.class, com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.newBuilder() @@ -365,15 +328,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -383,14 +347,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.getDefaultInstance(); } @@ -405,8 +368,7 @@ public com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest buildPartial() { - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest result = - new com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest(this); + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest result = new com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest(this); result.name_ = name_; onBuilt(); return result; @@ -416,39 +378,38 @@ public com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest)other); } else { super.mergeFrom(other); return this; @@ -456,9 +417,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest other) { - if (other - == com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -482,9 +441,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -496,8 +453,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the big query export to delete. Its format is
      * organizations/{organization}/bigQueryExports/{export_id},
@@ -505,16 +460,14 @@ public Builder mergeFrom(
      * projects/{project}/bigQueryExports/{export_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -523,8 +476,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the big query export to delete. Its format is
      * organizations/{organization}/bigQueryExports/{export_id},
@@ -532,17 +483,16 @@ public java.lang.String getName() {
      * projects/{project}/bigQueryExports/{export_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -550,8 +500,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the big query export to delete. Its format is
      * organizations/{organization}/bigQueryExports/{export_id},
@@ -559,25 +507,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * projects/{project}/bigQueryExports/{export_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the big query export to delete. Its format is
      * organizations/{organization}/bigQueryExports/{export_id},
@@ -585,21 +529,16 @@ public Builder setName(java.lang.String value) {
      * projects/{project}/bigQueryExports/{export_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the big query export to delete. Its format is
      * organizations/{organization}/bigQueryExports/{export_id},
@@ -607,26 +546,24 @@ public Builder clearName() {
      * projects/{project}/bigQueryExports/{export_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -636,32 +573,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) - private static final com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest(); } - public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBigQueryExportRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteBigQueryExportRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBigQueryExportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteBigQueryExportRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -673,8 +608,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequestOrBuilder.java new file mode 100644 index 000000000..e462d0529 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequestOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface DeleteBigQueryExportRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the big query export to delete. Its format is
+   * organizations/{organization}/bigQueryExports/{export_id},
+   * folders/{folder}/bigQueryExports/{export_id}, or
+   * projects/{project}/bigQueryExports/{export_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the big query export to delete. Its format is
+   * organizations/{organization}/bigQueryExports/{export_id},
+   * folders/{folder}/bigQueryExports/{export_id}, or
+   * projects/{project}/bigQueryExports/{export_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequest.java similarity index 67% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequest.java index 710e89a2b..29b3c12f0 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for deleting a mute config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.DeleteMuteConfigRequest} */ -public final class DeleteMuteConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteMuteConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.DeleteMuteConfigRequest) DeleteMuteConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteMuteConfigRequest.newBuilder() to construct. private DeleteMuteConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteMuteConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteMuteConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteMuteConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteMuteConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private DeleteMuteConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.class, - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.class, com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the mute config to delete. Its format is
    * organizations/{organization}/muteConfigs/{config_id},
@@ -125,10 +103,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * projects/{project}/muteConfigs/{config_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -137,15 +112,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the mute config to delete. Its format is
    * organizations/{organization}/muteConfigs/{config_id},
@@ -153,18 +127,17 @@ public java.lang.String getName() {
    * projects/{project}/muteConfigs/{config_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -173,7 +146,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +157,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -209,15 +182,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest other = - (com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest) obj; + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest other = (com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -237,127 +210,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for deleting a mute config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.DeleteMuteConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.DeleteMuteConfigRequest) com.google.cloud.securitycenter.v1.DeleteMuteConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.class, - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.class, com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.newBuilder() @@ -365,15 +328,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -383,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor; } @java.lang.Override @@ -404,8 +368,7 @@ public com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest result = - new com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest(this); + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest result = new com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,39 +378,38 @@ public com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -455,8 +417,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest other) { - if (other == com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,8 +441,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,8 +453,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the mute config to delete. Its format is
      * organizations/{organization}/muteConfigs/{config_id},
@@ -502,16 +460,14 @@ public Builder mergeFrom(
      * projects/{project}/muteConfigs/{config_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -520,8 +476,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the mute config to delete. Its format is
      * organizations/{organization}/muteConfigs/{config_id},
@@ -529,17 +483,16 @@ public java.lang.String getName() {
      * projects/{project}/muteConfigs/{config_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -547,8 +500,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the mute config to delete. Its format is
      * organizations/{organization}/muteConfigs/{config_id},
@@ -556,25 +507,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * projects/{project}/muteConfigs/{config_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the mute config to delete. Its format is
      * organizations/{organization}/muteConfigs/{config_id},
@@ -582,21 +529,16 @@ public Builder setName(java.lang.String value) {
      * projects/{project}/muteConfigs/{config_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the mute config to delete. Its format is
      * organizations/{organization}/muteConfigs/{config_id},
@@ -604,26 +546,24 @@ public Builder clearName() {
      * projects/{project}/muteConfigs/{config_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -633,12 +573,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.DeleteMuteConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.DeleteMuteConfigRequest) private static final com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest(); } @@ -647,16 +587,16 @@ public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteMuteConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteMuteConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMuteConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteMuteConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -671,4 +611,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequestOrBuilder.java new file mode 100644 index 000000000..aa3ea7330 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequestOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface DeleteMuteConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.DeleteMuteConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the mute config to delete. Its format is
+   * organizations/{organization}/muteConfigs/{config_id},
+   * folders/{folder}/muteConfigs/{config_id}, or
+   * projects/{project}/muteConfigs/{config_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the mute config to delete. Its format is
+   * organizations/{organization}/muteConfigs/{config_id},
+   * folders/{folder}/muteConfigs/{config_id}, or
+   * projects/{project}/muteConfigs/{config_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java similarity index 62% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java index a660730d1..7e2dda533 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for deleting a notification config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.DeleteNotificationConfigRequest} */ -public final class DeleteNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteNotificationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) DeleteNotificationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteNotificationConfigRequest.newBuilder() to construct. - private DeleteNotificationConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteNotificationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteNotificationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteNotificationConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,20 +53,19 @@ private DeleteNotificationConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,42 +73,35 @@ private DeleteNotificationConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.class, - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.class, com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the notification config to delete. Its format is
    * "organizations/[organization_id]/notificationConfigs/[config_id]".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the notification config to delete. Its format is
    * "organizations/[organization_id]/notificationConfigs/[config_id]".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -170,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -206,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest other = - (com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) obj; + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest other = (com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for deleting a notification config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.DeleteNotificationConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.class, - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.class, com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.newBuilder() + // Construct using com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -382,16 +343,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -405,8 +364,7 @@ public com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest build( @java.lang.Override public com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest result = - new com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest(this); + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest result = new com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -416,51 +374,46 @@ public com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) { - return mergeFrom( - (com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest other) { - if (other - == com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest other) { + if (other == com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -484,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -498,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the notification config to delete. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -523,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the notification config to delete. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -548,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the notification config to delete. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the notification config to delete. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the notification config to delete. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -628,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) - private static final com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest(); } - public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteNotificationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteNotificationConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteNotificationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteNotificationConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -665,8 +594,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequestOrBuilder.java new file mode 100644 index 000000000..e75642df2 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface DeleteNotificationConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the notification config to delete. Its format is
+   * "organizations/[organization_id]/notificationConfigs/[config_id]".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the notification config to delete. Its format is
+   * "organizations/[organization_id]/notificationConfigs/[config_id]".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariable.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariable.java similarity index 69% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariable.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariable.java index b9509f210..dc2e89732 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariable.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariable.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/process.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * EnvironmentVariable is a name-value pair to store environment variables for
  * Process.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.EnvironmentVariable}
  */
-public final class EnvironmentVariable extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class EnvironmentVariable extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.EnvironmentVariable)
     EnvironmentVariableOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use EnvironmentVariable.newBuilder() to construct.
   private EnvironmentVariable(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private EnvironmentVariable() {
     name_ = "";
     val_ = "";
@@ -45,15 +27,16 @@ private EnvironmentVariable() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new EnvironmentVariable();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private EnvironmentVariable(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,27 +55,25 @@ private EnvironmentVariable(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              val_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            val_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,39 +81,34 @@ private EnvironmentVariable(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1.ProcessProto
-        .internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1.ProcessProto.internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.ProcessProto
-        .internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.ProcessProto.internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.EnvironmentVariable.class,
-            com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder.class);
+            com.google.cloud.securitycenter.v1.EnvironmentVariable.class, com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Environment variable name as a JSON encoded string.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -141,29 +117,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Environment variable name as a JSON encoded string.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -174,14 +150,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VAL_FIELD_NUMBER = 2; private volatile java.lang.Object val_; /** - * - * *
    * Environment variable value as a JSON encoded string.
    * 
* * string val = 2; - * * @return The val. */ @java.lang.Override @@ -190,29 +163,29 @@ public java.lang.String getVal() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); val_ = s; return s; } } /** - * - * *
    * Environment variable value as a JSON encoded string.
    * 
* * string val = 2; - * * @return The bytes for val. */ @java.lang.Override - public com.google.protobuf.ByteString getValBytes() { + public com.google.protobuf.ByteString + getValBytes() { java.lang.Object ref = val_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); val_ = b; return b; } else { @@ -221,7 +194,6 @@ public com.google.protobuf.ByteString getValBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -263,16 +236,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.EnvironmentVariable)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.EnvironmentVariable other = - (com.google.cloud.securitycenter.v1.EnvironmentVariable) obj; + com.google.cloud.securitycenter.v1.EnvironmentVariable other = (com.google.cloud.securitycenter.v1.EnvironmentVariable) obj; - if (!getName().equals(other.getName())) return false; - if (!getVal().equals(other.getVal())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getVal() + .equals(other.getVal())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -294,104 +268,96 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.EnvironmentVariable prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.EnvironmentVariable prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * EnvironmentVariable is a name-value pair to store environment variables for
    * Process.
@@ -399,23 +365,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.EnvironmentVariable}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.EnvironmentVariable)
       com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.ProcessProto
-          .internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.ProcessProto.internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.ProcessProto
-          .internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.ProcessProto.internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.EnvironmentVariable.class,
-              com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder.class);
+              com.google.cloud.securitycenter.v1.EnvironmentVariable.class, com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.EnvironmentVariable.newBuilder()
@@ -423,15 +387,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -443,9 +408,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.ProcessProto
-          .internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.ProcessProto.internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor;
     }
 
     @java.lang.Override
@@ -464,8 +429,7 @@ public com.google.cloud.securitycenter.v1.EnvironmentVariable build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.EnvironmentVariable buildPartial() {
-      com.google.cloud.securitycenter.v1.EnvironmentVariable result =
-          new com.google.cloud.securitycenter.v1.EnvironmentVariable(this);
+      com.google.cloud.securitycenter.v1.EnvironmentVariable result = new com.google.cloud.securitycenter.v1.EnvironmentVariable(this);
       result.name_ = name_;
       result.val_ = val_;
       onBuilt();
@@ -476,39 +440,38 @@ public com.google.cloud.securitycenter.v1.EnvironmentVariable buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.EnvironmentVariable) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.EnvironmentVariable) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.EnvironmentVariable)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -516,8 +479,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1.EnvironmentVariable other) {
-      if (other == com.google.cloud.securitycenter.v1.EnvironmentVariable.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.securitycenter.v1.EnvironmentVariable.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -545,8 +507,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.securitycenter.v1.EnvironmentVariable) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.securitycenter.v1.EnvironmentVariable) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -558,20 +519,18 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Environment variable name as a JSON encoded string.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -580,21 +539,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Environment variable name as a JSON encoded string.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -602,61 +560,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Environment variable name as a JSON encoded string.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Environment variable name as a JSON encoded string.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Environment variable name as a JSON encoded string.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -664,20 +615,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object val_ = ""; /** - * - * *
      * Environment variable value as a JSON encoded string.
      * 
* * string val = 2; - * * @return The val. */ public java.lang.String getVal() { java.lang.Object ref = val_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); val_ = s; return s; @@ -686,21 +635,20 @@ public java.lang.String getVal() { } } /** - * - * *
      * Environment variable value as a JSON encoded string.
      * 
* * string val = 2; - * * @return The bytes for val. */ - public com.google.protobuf.ByteString getValBytes() { + public com.google.protobuf.ByteString + getValBytes() { java.lang.Object ref = val_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); val_ = b; return b; } else { @@ -708,68 +656,61 @@ public com.google.protobuf.ByteString getValBytes() { } } /** - * - * *
      * Environment variable value as a JSON encoded string.
      * 
* * string val = 2; - * * @param value The val to set. * @return This builder for chaining. */ - public Builder setVal(java.lang.String value) { + public Builder setVal( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + val_ = value; onChanged(); return this; } /** - * - * *
      * Environment variable value as a JSON encoded string.
      * 
* * string val = 2; - * * @return This builder for chaining. */ public Builder clearVal() { - + val_ = getDefaultInstance().getVal(); onChanged(); return this; } /** - * - * *
      * Environment variable value as a JSON encoded string.
      * 
* * string val = 2; - * * @param value The bytes for val to set. * @return This builder for chaining. */ - public Builder setValBytes(com.google.protobuf.ByteString value) { + public Builder setValBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + val_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -779,12 +720,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.EnvironmentVariable) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.EnvironmentVariable) private static final com.google.cloud.securitycenter.v1.EnvironmentVariable DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.EnvironmentVariable(); } @@ -793,16 +734,16 @@ public static com.google.cloud.securitycenter.v1.EnvironmentVariable getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnvironmentVariable parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnvironmentVariable(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnvironmentVariable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnvironmentVariable(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -817,4 +758,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.EnvironmentVariable getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariableOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariableOrBuilder.java similarity index 55% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariableOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariableOrBuilder.java index a041145cf..bcbbd3523 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariableOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariableOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/process.proto package com.google.cloud.securitycenter.v1; -public interface EnvironmentVariableOrBuilder - extends +public interface EnvironmentVariableOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.EnvironmentVariable) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Environment variable name as a JSON encoded string.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Environment variable name as a JSON encoded string.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Environment variable value as a JSON encoded string.
    * 
* * string val = 2; - * * @return The val. */ java.lang.String getVal(); /** - * - * *
    * Environment variable value as a JSON encoded string.
    * 
* * string val = 2; - * * @return The bytes for val. */ - com.google.protobuf.ByteString getValBytes(); + com.google.protobuf.ByteString + getValBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResource.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResource.java similarity index 74% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResource.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResource.java index 79365402d..840ff6c82 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResource.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResource.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/exfiltration.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Resource that has been exfiltrated or exfiltrated_to.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ExfilResource} */ -public final class ExfilResource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExfilResource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ExfilResource) ExfilResourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExfilResource.newBuilder() to construct. private ExfilResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExfilResource() { name_ = ""; components_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -44,15 +26,16 @@ private ExfilResource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExfilResource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExfilResource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private ExfilResource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - components_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - components_.add(s); - break; + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + components_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + components_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private ExfilResource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { components_ = components_.getUnmodifiableView(); @@ -112,33 +94,27 @@ private ExfilResource( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.ExfiltrationProto - .internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.ExfiltrationProto.internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ExfiltrationProto - .internal_static_google_cloud_securitycenter_v1_ExfilResource_fieldAccessorTable + return com.google.cloud.securitycenter.v1.ExfiltrationProto.internal_static_google_cloud_securitycenter_v1_ExfilResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ExfilResource.class, - com.google.cloud.securitycenter.v1.ExfilResource.Builder.class); + com.google.cloud.securitycenter.v1.ExfilResource.class, com.google.cloud.securitycenter.v1.ExfilResource.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Resource's URI (https://google.aip.dev/122#full-resource-names)
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -147,29 +123,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Resource's URI (https://google.aip.dev/122#full-resource-names)
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -180,8 +156,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int COMPONENTS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList components_; /** - * - * *
    * Subcomponents of the asset that is exfiltrated - these could be
    * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -190,15 +164,13 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * repeated string components = 2; - * * @return A list containing the components. */ - public com.google.protobuf.ProtocolStringList getComponentsList() { + public com.google.protobuf.ProtocolStringList + getComponentsList() { return components_; } /** - * - * *
    * Subcomponents of the asset that is exfiltrated - these could be
    * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -207,15 +179,12 @@ public com.google.protobuf.ProtocolStringList getComponentsList() {
    * 
* * repeated string components = 2; - * * @return The count of components. */ public int getComponentsCount() { return components_.size(); } /** - * - * *
    * Subcomponents of the asset that is exfiltrated - these could be
    * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -224,7 +193,6 @@ public int getComponentsCount() {
    * 
* * repeated string components = 2; - * * @param index The index of the element to return. * @return The components at the given index. */ @@ -232,8 +200,6 @@ public java.lang.String getComponents(int index) { return components_.get(index); } /** - * - * *
    * Subcomponents of the asset that is exfiltrated - these could be
    * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -242,16 +208,15 @@ public java.lang.String getComponents(int index) {
    * 
* * repeated string components = 2; - * * @param index The index of the value to return. * @return The bytes of the components at the given index. */ - public com.google.protobuf.ByteString getComponentsBytes(int index) { + public com.google.protobuf.ByteString + getComponentsBytes(int index) { return components_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +228,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -298,16 +264,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ExfilResource)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ExfilResource other = - (com.google.cloud.securitycenter.v1.ExfilResource) obj; + com.google.cloud.securitycenter.v1.ExfilResource other = (com.google.cloud.securitycenter.v1.ExfilResource) obj; - if (!getName().equals(other.getName())) return false; - if (!getComponentsList().equals(other.getComponentsList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getComponentsList() + .equals(other.getComponentsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -330,127 +297,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ExfilResource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ExfilResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ExfilResource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.ExfilResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Resource that has been exfiltrated or exfiltrated_to.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ExfilResource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ExfilResource) com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.ExfiltrationProto - .internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.ExfiltrationProto.internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ExfiltrationProto - .internal_static_google_cloud_securitycenter_v1_ExfilResource_fieldAccessorTable + return com.google.cloud.securitycenter.v1.ExfiltrationProto.internal_static_google_cloud_securitycenter_v1_ExfilResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ExfilResource.class, - com.google.cloud.securitycenter.v1.ExfilResource.Builder.class); + com.google.cloud.securitycenter.v1.ExfilResource.class, com.google.cloud.securitycenter.v1.ExfilResource.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ExfilResource.newBuilder() @@ -458,15 +416,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.ExfiltrationProto - .internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.ExfiltrationProto.internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor; } @java.lang.Override @@ -499,8 +458,7 @@ public com.google.cloud.securitycenter.v1.ExfilResource build() { @java.lang.Override public com.google.cloud.securitycenter.v1.ExfilResource buildPartial() { - com.google.cloud.securitycenter.v1.ExfilResource result = - new com.google.cloud.securitycenter.v1.ExfilResource(this); + com.google.cloud.securitycenter.v1.ExfilResource result = new com.google.cloud.securitycenter.v1.ExfilResource(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (((bitField0_ & 0x00000001) != 0)) { @@ -516,39 +474,38 @@ public com.google.cloud.securitycenter.v1.ExfilResource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ExfilResource) { - return mergeFrom((com.google.cloud.securitycenter.v1.ExfilResource) other); + return mergeFrom((com.google.cloud.securitycenter.v1.ExfilResource)other); } else { super.mergeFrom(other); return this; @@ -556,8 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ExfilResource other) { - if (other == com.google.cloud.securitycenter.v1.ExfilResource.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.ExfilResource.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -600,25 +556,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Resource's URI (https://google.aip.dev/122#full-resource-names)
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -627,21 +580,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Resource's URI (https://google.aip.dev/122#full-resource-names)
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -649,78 +601,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Resource's URI (https://google.aip.dev/122#full-resource-names)
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Resource's URI (https://google.aip.dev/122#full-resource-names)
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Resource's URI (https://google.aip.dev/122#full-resource-names)
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList components_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList components_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureComponentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { components_ = new com.google.protobuf.LazyStringArrayList(components_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Subcomponents of the asset that is exfiltrated - these could be
      * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -729,15 +670,13 @@ private void ensureComponentsIsMutable() {
      * 
* * repeated string components = 2; - * * @return A list containing the components. */ - public com.google.protobuf.ProtocolStringList getComponentsList() { + public com.google.protobuf.ProtocolStringList + getComponentsList() { return components_.getUnmodifiableView(); } /** - * - * *
      * Subcomponents of the asset that is exfiltrated - these could be
      * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -746,15 +685,12 @@ public com.google.protobuf.ProtocolStringList getComponentsList() {
      * 
* * repeated string components = 2; - * * @return The count of components. */ public int getComponentsCount() { return components_.size(); } /** - * - * *
      * Subcomponents of the asset that is exfiltrated - these could be
      * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -763,7 +699,6 @@ public int getComponentsCount() {
      * 
* * repeated string components = 2; - * * @param index The index of the element to return. * @return The components at the given index. */ @@ -771,8 +706,6 @@ public java.lang.String getComponents(int index) { return components_.get(index); } /** - * - * *
      * Subcomponents of the asset that is exfiltrated - these could be
      * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -781,16 +714,14 @@ public java.lang.String getComponents(int index) {
      * 
* * repeated string components = 2; - * * @param index The index of the value to return. * @return The bytes of the components at the given index. */ - public com.google.protobuf.ByteString getComponentsBytes(int index) { + public com.google.protobuf.ByteString + getComponentsBytes(int index) { return components_.getByteString(index); } /** - * - * *
      * Subcomponents of the asset that is exfiltrated - these could be
      * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -799,23 +730,21 @@ public com.google.protobuf.ByteString getComponentsBytes(int index) {
      * 
* * repeated string components = 2; - * * @param index The index to set the value at. * @param value The components to set. * @return This builder for chaining. */ - public Builder setComponents(int index, java.lang.String value) { + public Builder setComponents( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureComponentsIsMutable(); + throw new NullPointerException(); + } + ensureComponentsIsMutable(); components_.set(index, value); onChanged(); return this; } /** - * - * *
      * Subcomponents of the asset that is exfiltrated - these could be
      * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -824,22 +753,20 @@ public Builder setComponents(int index, java.lang.String value) {
      * 
* * repeated string components = 2; - * * @param value The components to add. * @return This builder for chaining. */ - public Builder addComponents(java.lang.String value) { + public Builder addComponents( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureComponentsIsMutable(); + throw new NullPointerException(); + } + ensureComponentsIsMutable(); components_.add(value); onChanged(); return this; } /** - * - * *
      * Subcomponents of the asset that is exfiltrated - these could be
      * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -848,19 +775,18 @@ public Builder addComponents(java.lang.String value) {
      * 
* * repeated string components = 2; - * * @param values The components to add. * @return This builder for chaining. */ - public Builder addAllComponents(java.lang.Iterable values) { + public Builder addAllComponents( + java.lang.Iterable values) { ensureComponentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, components_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, components_); onChanged(); return this; } /** - * - * *
      * Subcomponents of the asset that is exfiltrated - these could be
      * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -869,7 +795,6 @@ public Builder addAllComponents(java.lang.Iterable values) {
      * 
* * repeated string components = 2; - * * @return This builder for chaining. */ public Builder clearComponents() { @@ -879,8 +804,6 @@ public Builder clearComponents() { return this; } /** - * - * *
      * Subcomponents of the asset that is exfiltrated - these could be
      * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -889,23 +812,23 @@ public Builder clearComponents() {
      * 
* * repeated string components = 2; - * * @param value The bytes of the components to add. * @return This builder for chaining. */ - public Builder addComponentsBytes(com.google.protobuf.ByteString value) { + public Builder addComponentsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureComponentsIsMutable(); components_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -915,12 +838,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ExfilResource) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ExfilResource) private static final com.google.cloud.securitycenter.v1.ExfilResource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ExfilResource(); } @@ -929,16 +852,16 @@ public static com.google.cloud.securitycenter.v1.ExfilResource getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExfilResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExfilResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExfilResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExfilResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -953,4 +876,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.ExfilResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResourceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResourceOrBuilder.java similarity index 73% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResourceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResourceOrBuilder.java index 40756efb7..544908750 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResourceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResourceOrBuilder.java @@ -1,56 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/exfiltration.proto package com.google.cloud.securitycenter.v1; -public interface ExfilResourceOrBuilder - extends +public interface ExfilResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ExfilResource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Resource's URI (https://google.aip.dev/122#full-resource-names)
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Resource's URI (https://google.aip.dev/122#full-resource-names)
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Subcomponents of the asset that is exfiltrated - these could be
    * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -59,13 +36,11 @@ public interface ExfilResourceOrBuilder
    * 
* * repeated string components = 2; - * * @return A list containing the components. */ - java.util.List getComponentsList(); + java.util.List + getComponentsList(); /** - * - * *
    * Subcomponents of the asset that is exfiltrated - these could be
    * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -74,13 +49,10 @@ public interface ExfilResourceOrBuilder
    * 
* * repeated string components = 2; - * * @return The count of components. */ int getComponentsCount(); /** - * - * *
    * Subcomponents of the asset that is exfiltrated - these could be
    * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -89,14 +61,11 @@ public interface ExfilResourceOrBuilder
    * 
* * repeated string components = 2; - * * @param index The index of the element to return. * @return The components at the given index. */ java.lang.String getComponents(int index); /** - * - * *
    * Subcomponents of the asset that is exfiltrated - these could be
    * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -105,9 +74,9 @@ public interface ExfilResourceOrBuilder
    * 
* * repeated string components = 2; - * * @param index The index of the value to return. * @return The bytes of the components at the given index. */ - com.google.protobuf.ByteString getComponentsBytes(int index); + com.google.protobuf.ByteString + getComponentsBytes(int index); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Exfiltration.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Exfiltration.java similarity index 78% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Exfiltration.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Exfiltration.java index 7d864369b..e39c44786 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Exfiltration.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Exfiltration.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/exfiltration.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Exfiltration represents a data exfiltration attempt of one or more
  * sources to one or more targets.  Sources represent the source
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.Exfiltration}
  */
-public final class Exfiltration extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Exfiltration extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Exfiltration)
     ExfiltrationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Exfiltration.newBuilder() to construct.
   private Exfiltration(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Exfiltration() {
     sources_ = java.util.Collections.emptyList();
     targets_ = java.util.Collections.emptyList();
@@ -47,15 +29,16 @@ private Exfiltration() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Exfiltration();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Exfiltration(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,39 +58,31 @@ private Exfiltration(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                sources_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              sources_.add(
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1.ExfilResource.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              sources_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                targets_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              targets_.add(
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1.ExfilResource.parser(),
-                      extensionRegistry));
-              break;
+            sources_.add(
+                input.readMessage(com.google.cloud.securitycenter.v1.ExfilResource.parser(), extensionRegistry));
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              targets_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            targets_.add(
+                input.readMessage(com.google.cloud.securitycenter.v1.ExfilResource.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -115,7 +90,8 @@ private Exfiltration(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         sources_ = java.util.Collections.unmodifiableList(sources_);
@@ -127,27 +103,22 @@ private Exfiltration(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1.ExfiltrationProto
-        .internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1.ExfiltrationProto.internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.ExfiltrationProto
-        .internal_static_google_cloud_securitycenter_v1_Exfiltration_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.ExfiltrationProto.internal_static_google_cloud_securitycenter_v1_Exfiltration_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.Exfiltration.class,
-            com.google.cloud.securitycenter.v1.Exfiltration.Builder.class);
+            com.google.cloud.securitycenter.v1.Exfiltration.class, com.google.cloud.securitycenter.v1.Exfiltration.Builder.class);
   }
 
   public static final int SOURCES_FIELD_NUMBER = 1;
   private java.util.List sources_;
   /**
-   *
-   *
    * 
    * If there are multiple sources, then the data is considered "joined" between
    * them. For instance, BigQuery can join multiple tables, and each
@@ -161,8 +132,6 @@ public java.util.List getSourc
     return sources_;
   }
   /**
-   *
-   *
    * 
    * If there are multiple sources, then the data is considered "joined" between
    * them. For instance, BigQuery can join multiple tables, and each
@@ -172,13 +141,11 @@ public java.util.List getSourc
    * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getSourcesOrBuilderList() {
     return sources_;
   }
   /**
-   *
-   *
    * 
    * If there are multiple sources, then the data is considered "joined" between
    * them. For instance, BigQuery can join multiple tables, and each
@@ -192,8 +159,6 @@ public int getSourcesCount() {
     return sources_.size();
   }
   /**
-   *
-   *
    * 
    * If there are multiple sources, then the data is considered "joined" between
    * them. For instance, BigQuery can join multiple tables, and each
@@ -207,8 +172,6 @@ public com.google.cloud.securitycenter.v1.ExfilResource getSources(int index) {
     return sources_.get(index);
   }
   /**
-   *
-   *
    * 
    * If there are multiple sources, then the data is considered "joined" between
    * them. For instance, BigQuery can join multiple tables, and each
@@ -218,15 +181,14 @@ public com.google.cloud.securitycenter.v1.ExfilResource getSources(int index) {
    * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
    */
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBuilder(int index) {
+  public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBuilder(
+      int index) {
     return sources_.get(index);
   }
 
   public static final int TARGETS_FIELD_NUMBER = 2;
   private java.util.List targets_;
   /**
-   *
-   *
    * 
    * If there are multiple targets, each target would get a complete copy of the
    * "joined" source data.
@@ -239,8 +201,6 @@ public java.util.List getTarge
     return targets_;
   }
   /**
-   *
-   *
    * 
    * If there are multiple targets, each target would get a complete copy of the
    * "joined" source data.
@@ -249,13 +209,11 @@ public java.util.List getTarge
    * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getTargetsOrBuilderList() {
     return targets_;
   }
   /**
-   *
-   *
    * 
    * If there are multiple targets, each target would get a complete copy of the
    * "joined" source data.
@@ -268,8 +226,6 @@ public int getTargetsCount() {
     return targets_.size();
   }
   /**
-   *
-   *
    * 
    * If there are multiple targets, each target would get a complete copy of the
    * "joined" source data.
@@ -282,8 +238,6 @@ public com.google.cloud.securitycenter.v1.ExfilResource getTargets(int index) {
     return targets_.get(index);
   }
   /**
-   *
-   *
    * 
    * If there are multiple targets, each target would get a complete copy of the
    * "joined" source data.
@@ -292,12 +246,12 @@ public com.google.cloud.securitycenter.v1.ExfilResource getTargets(int index) {
    * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
    */
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getTargetsOrBuilder(int index) {
+  public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getTargetsOrBuilder(
+      int index) {
     return targets_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -309,7 +263,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < sources_.size(); i++) {
       output.writeMessage(1, sources_.get(i));
     }
@@ -326,10 +281,12 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < sources_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sources_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, sources_.get(i));
     }
     for (int i = 0; i < targets_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, targets_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, targets_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -339,16 +296,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.Exfiltration)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.Exfiltration other =
-        (com.google.cloud.securitycenter.v1.Exfiltration) obj;
+    com.google.cloud.securitycenter.v1.Exfiltration other = (com.google.cloud.securitycenter.v1.Exfiltration) obj;
 
-    if (!getSourcesList().equals(other.getSourcesList())) return false;
-    if (!getTargetsList().equals(other.getTargetsList())) return false;
+    if (!getSourcesList()
+        .equals(other.getSourcesList())) return false;
+    if (!getTargetsList()
+        .equals(other.getTargetsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -373,104 +331,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.Exfiltration parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.Exfiltration parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.Exfiltration parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.securitycenter.v1.Exfiltration prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Exfiltration represents a data exfiltration attempt of one or more
    * sources to one or more targets.  Sources represent the source
@@ -480,23 +431,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.Exfiltration}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Exfiltration)
       com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.ExfiltrationProto
-          .internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.ExfiltrationProto.internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.ExfiltrationProto
-          .internal_static_google_cloud_securitycenter_v1_Exfiltration_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.ExfiltrationProto.internal_static_google_cloud_securitycenter_v1_Exfiltration_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.Exfiltration.class,
-              com.google.cloud.securitycenter.v1.Exfiltration.Builder.class);
+              com.google.cloud.securitycenter.v1.Exfiltration.class, com.google.cloud.securitycenter.v1.Exfiltration.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.Exfiltration.newBuilder()
@@ -504,18 +453,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getSourcesFieldBuilder();
         getTargetsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -535,9 +484,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.ExfiltrationProto
-          .internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.ExfiltrationProto.internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor;
     }
 
     @java.lang.Override
@@ -556,8 +505,7 @@ public com.google.cloud.securitycenter.v1.Exfiltration build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.Exfiltration buildPartial() {
-      com.google.cloud.securitycenter.v1.Exfiltration result =
-          new com.google.cloud.securitycenter.v1.Exfiltration(this);
+      com.google.cloud.securitycenter.v1.Exfiltration result = new com.google.cloud.securitycenter.v1.Exfiltration(this);
       int from_bitField0_ = bitField0_;
       if (sourcesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -585,39 +533,38 @@ public com.google.cloud.securitycenter.v1.Exfiltration buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.Exfiltration) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.Exfiltration) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.Exfiltration)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -625,8 +572,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1.Exfiltration other) {
-      if (other == com.google.cloud.securitycenter.v1.Exfiltration.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.securitycenter.v1.Exfiltration.getDefaultInstance()) return this;
       if (sourcesBuilder_ == null) {
         if (!other.sources_.isEmpty()) {
           if (sources_.isEmpty()) {
@@ -645,10 +591,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Exfiltration other)
             sourcesBuilder_ = null;
             sources_ = other.sources_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            sourcesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSourcesFieldBuilder()
-                    : null;
+            sourcesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSourcesFieldBuilder() : null;
           } else {
             sourcesBuilder_.addAllMessages(other.sources_);
           }
@@ -672,10 +617,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Exfiltration other)
             targetsBuilder_ = null;
             targets_ = other.targets_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            targetsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getTargetsFieldBuilder()
-                    : null;
+            targetsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getTargetsFieldBuilder() : null;
           } else {
             targetsBuilder_.addAllMessages(other.targets_);
           }
@@ -709,29 +653,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List sources_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureSourcesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        sources_ =
-            new java.util.ArrayList(sources_);
+        sources_ = new java.util.ArrayList(sources_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.ExfilResource,
-            com.google.cloud.securitycenter.v1.ExfilResource.Builder,
-            com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder>
-        sourcesBuilder_;
+        com.google.cloud.securitycenter.v1.ExfilResource, com.google.cloud.securitycenter.v1.ExfilResource.Builder, com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder> sourcesBuilder_;
 
     /**
-     *
-     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -748,8 +684,6 @@ public java.util.List getSourc
       }
     }
     /**
-     *
-     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -766,8 +700,6 @@ public int getSourcesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -784,8 +716,6 @@ public com.google.cloud.securitycenter.v1.ExfilResource getSources(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -794,7 +724,8 @@ public com.google.cloud.securitycenter.v1.ExfilResource getSources(int index) {
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
      */
-    public Builder setSources(int index, com.google.cloud.securitycenter.v1.ExfilResource value) {
+    public Builder setSources(
+        int index, com.google.cloud.securitycenter.v1.ExfilResource value) {
       if (sourcesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -808,8 +739,6 @@ public Builder setSources(int index, com.google.cloud.securitycenter.v1.ExfilRes
       return this;
     }
     /**
-     *
-     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -830,8 +759,6 @@ public Builder setSources(
       return this;
     }
     /**
-     *
-     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -854,8 +781,6 @@ public Builder addSources(com.google.cloud.securitycenter.v1.ExfilResource value
       return this;
     }
     /**
-     *
-     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -864,7 +789,8 @@ public Builder addSources(com.google.cloud.securitycenter.v1.ExfilResource value
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
      */
-    public Builder addSources(int index, com.google.cloud.securitycenter.v1.ExfilResource value) {
+    public Builder addSources(
+        int index, com.google.cloud.securitycenter.v1.ExfilResource value) {
       if (sourcesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -878,8 +804,6 @@ public Builder addSources(int index, com.google.cloud.securitycenter.v1.ExfilRes
       return this;
     }
     /**
-     *
-     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -900,8 +824,6 @@ public Builder addSources(
       return this;
     }
     /**
-     *
-     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -922,8 +844,6 @@ public Builder addSources(
       return this;
     }
     /**
-     *
-     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -936,7 +856,8 @@ public Builder addAllSources(
         java.lang.Iterable values) {
       if (sourcesBuilder_ == null) {
         ensureSourcesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sources_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, sources_);
         onChanged();
       } else {
         sourcesBuilder_.addAllMessages(values);
@@ -944,8 +865,6 @@ public Builder addAllSources(
       return this;
     }
     /**
-     *
-     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -965,8 +884,6 @@ public Builder clearSources() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -986,8 +903,6 @@ public Builder removeSources(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -996,12 +911,11 @@ public Builder removeSources(int index) {
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
      */
-    public com.google.cloud.securitycenter.v1.ExfilResource.Builder getSourcesBuilder(int index) {
+    public com.google.cloud.securitycenter.v1.ExfilResource.Builder getSourcesBuilder(
+        int index) {
       return getSourcesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -1013,14 +927,11 @@ public com.google.cloud.securitycenter.v1.ExfilResource.Builder getSourcesBuilde
     public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBuilder(
         int index) {
       if (sourcesBuilder_ == null) {
-        return sources_.get(index);
-      } else {
+        return sources_.get(index);  } else {
         return sourcesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -1029,8 +940,8 @@ public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBui
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
      */
-    public java.util.List
-        getSourcesOrBuilderList() {
+    public java.util.List 
+         getSourcesOrBuilderList() {
       if (sourcesBuilder_ != null) {
         return sourcesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1038,8 +949,6 @@ public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBui
       }
     }
     /**
-     *
-     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -1049,12 +958,10 @@ public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBui
      * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
      */
     public com.google.cloud.securitycenter.v1.ExfilResource.Builder addSourcesBuilder() {
-      return getSourcesFieldBuilder()
-          .addBuilder(com.google.cloud.securitycenter.v1.ExfilResource.getDefaultInstance());
+      return getSourcesFieldBuilder().addBuilder(
+          com.google.cloud.securitycenter.v1.ExfilResource.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -1063,13 +970,12 @@ public com.google.cloud.securitycenter.v1.ExfilResource.Builder addSourcesBuilde
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
      */
-    public com.google.cloud.securitycenter.v1.ExfilResource.Builder addSourcesBuilder(int index) {
-      return getSourcesFieldBuilder()
-          .addBuilder(index, com.google.cloud.securitycenter.v1.ExfilResource.getDefaultInstance());
+    public com.google.cloud.securitycenter.v1.ExfilResource.Builder addSourcesBuilder(
+        int index) {
+      return getSourcesFieldBuilder().addBuilder(
+          index, com.google.cloud.securitycenter.v1.ExfilResource.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -1078,48 +984,38 @@ public com.google.cloud.securitycenter.v1.ExfilResource.Builder addSourcesBuilde
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
      */
-    public java.util.List
-        getSourcesBuilderList() {
+    public java.util.List 
+         getSourcesBuilderList() {
       return getSourcesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.ExfilResource,
-            com.google.cloud.securitycenter.v1.ExfilResource.Builder,
-            com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder>
+        com.google.cloud.securitycenter.v1.ExfilResource, com.google.cloud.securitycenter.v1.ExfilResource.Builder, com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder> 
         getSourcesFieldBuilder() {
       if (sourcesBuilder_ == null) {
-        sourcesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.securitycenter.v1.ExfilResource,
-                com.google.cloud.securitycenter.v1.ExfilResource.Builder,
-                com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder>(
-                sources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        sourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.securitycenter.v1.ExfilResource, com.google.cloud.securitycenter.v1.ExfilResource.Builder, com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder>(
+                sources_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         sources_ = null;
       }
       return sourcesBuilder_;
     }
 
     private java.util.List targets_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureTargetsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        targets_ =
-            new java.util.ArrayList(targets_);
+        targets_ = new java.util.ArrayList(targets_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.ExfilResource,
-            com.google.cloud.securitycenter.v1.ExfilResource.Builder,
-            com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder>
-        targetsBuilder_;
+        com.google.cloud.securitycenter.v1.ExfilResource, com.google.cloud.securitycenter.v1.ExfilResource.Builder, com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder> targetsBuilder_;
 
     /**
-     *
-     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1135,8 +1031,6 @@ public java.util.List getTarge
       }
     }
     /**
-     *
-     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1152,8 +1046,6 @@ public int getTargetsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1169,8 +1061,6 @@ public com.google.cloud.securitycenter.v1.ExfilResource getTargets(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1178,7 +1068,8 @@ public com.google.cloud.securitycenter.v1.ExfilResource getTargets(int index) {
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
      */
-    public Builder setTargets(int index, com.google.cloud.securitycenter.v1.ExfilResource value) {
+    public Builder setTargets(
+        int index, com.google.cloud.securitycenter.v1.ExfilResource value) {
       if (targetsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1192,8 +1083,6 @@ public Builder setTargets(int index, com.google.cloud.securitycenter.v1.ExfilRes
       return this;
     }
     /**
-     *
-     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1213,8 +1102,6 @@ public Builder setTargets(
       return this;
     }
     /**
-     *
-     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1236,8 +1123,6 @@ public Builder addTargets(com.google.cloud.securitycenter.v1.ExfilResource value
       return this;
     }
     /**
-     *
-     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1245,7 +1130,8 @@ public Builder addTargets(com.google.cloud.securitycenter.v1.ExfilResource value
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
      */
-    public Builder addTargets(int index, com.google.cloud.securitycenter.v1.ExfilResource value) {
+    public Builder addTargets(
+        int index, com.google.cloud.securitycenter.v1.ExfilResource value) {
       if (targetsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1259,8 +1145,6 @@ public Builder addTargets(int index, com.google.cloud.securitycenter.v1.ExfilRes
       return this;
     }
     /**
-     *
-     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1280,8 +1164,6 @@ public Builder addTargets(
       return this;
     }
     /**
-     *
-     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1301,8 +1183,6 @@ public Builder addTargets(
       return this;
     }
     /**
-     *
-     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1314,7 +1194,8 @@ public Builder addAllTargets(
         java.lang.Iterable values) {
       if (targetsBuilder_ == null) {
         ensureTargetsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targets_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, targets_);
         onChanged();
       } else {
         targetsBuilder_.addAllMessages(values);
@@ -1322,8 +1203,6 @@ public Builder addAllTargets(
       return this;
     }
     /**
-     *
-     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1342,8 +1221,6 @@ public Builder clearTargets() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1362,8 +1239,6 @@ public Builder removeTargets(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1371,12 +1246,11 @@ public Builder removeTargets(int index) {
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
      */
-    public com.google.cloud.securitycenter.v1.ExfilResource.Builder getTargetsBuilder(int index) {
+    public com.google.cloud.securitycenter.v1.ExfilResource.Builder getTargetsBuilder(
+        int index) {
       return getTargetsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1387,14 +1261,11 @@ public com.google.cloud.securitycenter.v1.ExfilResource.Builder getTargetsBuilde
     public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getTargetsOrBuilder(
         int index) {
       if (targetsBuilder_ == null) {
-        return targets_.get(index);
-      } else {
+        return targets_.get(index);  } else {
         return targetsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1402,8 +1273,8 @@ public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getTargetsOrBui
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
      */
-    public java.util.List
-        getTargetsOrBuilderList() {
+    public java.util.List 
+         getTargetsOrBuilderList() {
       if (targetsBuilder_ != null) {
         return targetsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1411,8 +1282,6 @@ public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getTargetsOrBui
       }
     }
     /**
-     *
-     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1421,12 +1290,10 @@ public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getTargetsOrBui
      * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
      */
     public com.google.cloud.securitycenter.v1.ExfilResource.Builder addTargetsBuilder() {
-      return getTargetsFieldBuilder()
-          .addBuilder(com.google.cloud.securitycenter.v1.ExfilResource.getDefaultInstance());
+      return getTargetsFieldBuilder().addBuilder(
+          com.google.cloud.securitycenter.v1.ExfilResource.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1434,13 +1301,12 @@ public com.google.cloud.securitycenter.v1.ExfilResource.Builder addTargetsBuilde
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
      */
-    public com.google.cloud.securitycenter.v1.ExfilResource.Builder addTargetsBuilder(int index) {
-      return getTargetsFieldBuilder()
-          .addBuilder(index, com.google.cloud.securitycenter.v1.ExfilResource.getDefaultInstance());
+    public com.google.cloud.securitycenter.v1.ExfilResource.Builder addTargetsBuilder(
+        int index) {
+      return getTargetsFieldBuilder().addBuilder(
+          index, com.google.cloud.securitycenter.v1.ExfilResource.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1448,30 +1314,27 @@ public com.google.cloud.securitycenter.v1.ExfilResource.Builder addTargetsBuilde
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
      */
-    public java.util.List
-        getTargetsBuilderList() {
+    public java.util.List 
+         getTargetsBuilderList() {
       return getTargetsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.ExfilResource,
-            com.google.cloud.securitycenter.v1.ExfilResource.Builder,
-            com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder>
+        com.google.cloud.securitycenter.v1.ExfilResource, com.google.cloud.securitycenter.v1.ExfilResource.Builder, com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder> 
         getTargetsFieldBuilder() {
       if (targetsBuilder_ == null) {
-        targetsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.securitycenter.v1.ExfilResource,
-                com.google.cloud.securitycenter.v1.ExfilResource.Builder,
-                com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder>(
-                targets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        targetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.securitycenter.v1.ExfilResource, com.google.cloud.securitycenter.v1.ExfilResource.Builder, com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder>(
+                targets_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         targets_ = null;
       }
       return targetsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1481,12 +1344,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Exfiltration)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Exfiltration)
   private static final com.google.cloud.securitycenter.v1.Exfiltration DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Exfiltration();
   }
@@ -1495,16 +1358,16 @@ public static com.google.cloud.securitycenter.v1.Exfiltration getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Exfiltration parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Exfiltration(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Exfiltration parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Exfiltration(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1519,4 +1382,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.securitycenter.v1.Exfiltration getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationOrBuilder.java
similarity index 80%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationOrBuilder.java
index f84ebb366..5167c57ad 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/exfiltration.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface ExfiltrationOrBuilder
-    extends
+public interface ExfiltrationOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Exfiltration)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * If there are multiple sources, then the data is considered "joined" between
    * them. For instance, BigQuery can join multiple tables, and each
@@ -34,10 +16,9 @@ public interface ExfiltrationOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
    */
-  java.util.List getSourcesList();
+  java.util.List 
+      getSourcesList();
   /**
-   *
-   *
    * 
    * If there are multiple sources, then the data is considered "joined" between
    * them. For instance, BigQuery can join multiple tables, and each
@@ -48,8 +29,6 @@ public interface ExfiltrationOrBuilder
    */
   com.google.cloud.securitycenter.v1.ExfilResource getSources(int index);
   /**
-   *
-   *
    * 
    * If there are multiple sources, then the data is considered "joined" between
    * them. For instance, BigQuery can join multiple tables, and each
@@ -60,8 +39,6 @@ public interface ExfiltrationOrBuilder
    */
   int getSourcesCount();
   /**
-   *
-   *
    * 
    * If there are multiple sources, then the data is considered "joined" between
    * them. For instance, BigQuery can join multiple tables, and each
@@ -70,11 +47,9 @@ public interface ExfiltrationOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
    */
-  java.util.List
+  java.util.List 
       getSourcesOrBuilderList();
   /**
-   *
-   *
    * 
    * If there are multiple sources, then the data is considered "joined" between
    * them. For instance, BigQuery can join multiple tables, and each
@@ -83,11 +58,10 @@ public interface ExfiltrationOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
    */
-  com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBuilder(int index);
+  com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * If there are multiple targets, each target would get a complete copy of the
    * "joined" source data.
@@ -95,10 +69,9 @@ public interface ExfiltrationOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
    */
-  java.util.List getTargetsList();
+  java.util.List 
+      getTargetsList();
   /**
-   *
-   *
    * 
    * If there are multiple targets, each target would get a complete copy of the
    * "joined" source data.
@@ -108,8 +81,6 @@ public interface ExfiltrationOrBuilder
    */
   com.google.cloud.securitycenter.v1.ExfilResource getTargets(int index);
   /**
-   *
-   *
    * 
    * If there are multiple targets, each target would get a complete copy of the
    * "joined" source data.
@@ -119,8 +90,6 @@ public interface ExfiltrationOrBuilder
    */
   int getTargetsCount();
   /**
-   *
-   *
    * 
    * If there are multiple targets, each target would get a complete copy of the
    * "joined" source data.
@@ -128,11 +97,9 @@ public interface ExfiltrationOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
    */
-  java.util.List
+  java.util.List 
       getTargetsOrBuilderList();
   /**
-   *
-   *
    * 
    * If there are multiple targets, each target would get a complete copy of the
    * "joined" source data.
@@ -140,5 +107,6 @@ public interface ExfiltrationOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
    */
-  com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getTargetsOrBuilder(int index);
+  com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getTargetsOrBuilder(
+      int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationProto.java
new file mode 100644
index 000000000..d524306b3
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationProto.java
@@ -0,0 +1,70 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/securitycenter/v1/exfiltration.proto
+
+package com.google.cloud.securitycenter.v1;
+
+public final class ExfiltrationProto {
+  private ExfiltrationProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1_Exfiltration_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1_ExfilResource_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n1google/cloud/securitycenter/v1/exfiltr" +
+      "ation.proto\022\036google.cloud.securitycenter" +
+      ".v1\"\216\001\n\014Exfiltration\022>\n\007sources\030\001 \003(\0132-." +
+      "google.cloud.securitycenter.v1.ExfilReso" +
+      "urce\022>\n\007targets\030\002 \003(\0132-.google.cloud.sec" +
+      "uritycenter.v1.ExfilResource\"1\n\rExfilRes" +
+      "ource\022\014\n\004name\030\001 \001(\t\022\022\n\ncomponents\030\002 \003(\tB" +
+      "\355\001\n\"com.google.cloud.securitycenter.v1B\021" +
+      "ExfiltrationProtoP\001ZLgoogle.golang.org/g" +
+      "enproto/googleapis/cloud/securitycenter/" +
+      "v1;securitycenter\252\002\036Google.Cloud.Securit" +
+      "yCenter.V1\312\002\036Google\\Cloud\\SecurityCenter" +
+      "\\V1\352\002!Google::Cloud::SecurityCenter::V1b" +
+      "\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+        });
+    internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_securitycenter_v1_Exfiltration_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor,
+        new java.lang.String[] { "Sources", "Targets", });
+    internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_securitycenter_v1_ExfilResource_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor,
+        new java.lang.String[] { "Name", "Components", });
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystem.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystem.java
similarity index 74%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystem.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystem.java
index fd9a7f95c..0ea1bcb0e 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystem.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystem.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/external_system.proto
 
 package com.google.cloud.securitycenter.v1;
 
 /**
- *
- *
  * 
  * Representation of third party SIEM/SOAR fields within SCC.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ExternalSystem} */ -public final class ExternalSystem extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExternalSystem extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ExternalSystem) ExternalSystemOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExternalSystem.newBuilder() to construct. private ExternalSystem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExternalSystem() { name_ = ""; assignees_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -46,15 +28,16 @@ private ExternalSystem() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExternalSystem(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExternalSystem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,59 +57,53 @@ private ExternalSystem( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assignees_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - assignees_.add(s); - break; + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + assignees_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + assignees_.add(s); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - externalUid_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + externalUid_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - status_ = s; - break; + status_ = s; + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (externalSystemUpdateTime_ != null) { + subBuilder = externalSystemUpdateTime_.toBuilder(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (externalSystemUpdateTime_ != null) { - subBuilder = externalSystemUpdateTime_.toBuilder(); - } - externalSystemUpdateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(externalSystemUpdateTime_); - externalSystemUpdateTime_ = subBuilder.buildPartial(); - } - - break; + externalSystemUpdateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(externalSystemUpdateTime_); + externalSystemUpdateTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -134,7 +111,8 @@ private ExternalSystem( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { assignees_ = assignees_.getUnmodifiableView(); @@ -143,27 +121,22 @@ private ExternalSystem( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.ExternalSystemProto - .internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.ExternalSystemProto.internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ExternalSystemProto - .internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable + return com.google.cloud.securitycenter.v1.ExternalSystemProto.internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ExternalSystem.class, - com.google.cloud.securitycenter.v1.ExternalSystem.Builder.class); + com.google.cloud.securitycenter.v1.ExternalSystem.class, com.google.cloud.securitycenter.v1.ExternalSystem.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * External System Name e.g. jira, demisto, etc.
    *  e.g.:
@@ -173,7 +146,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -182,15 +154,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * External System Name e.g. jira, demisto, etc.
    *  e.g.:
@@ -200,15 +171,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -219,42 +191,34 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ASSIGNEES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList assignees_; /** - * - * *
    * References primary/secondary etc assignees in the external system.
    * 
* * repeated string assignees = 2; - * * @return A list containing the assignees. */ - public com.google.protobuf.ProtocolStringList getAssigneesList() { + public com.google.protobuf.ProtocolStringList + getAssigneesList() { return assignees_; } /** - * - * *
    * References primary/secondary etc assignees in the external system.
    * 
* * repeated string assignees = 2; - * * @return The count of assignees. */ public int getAssigneesCount() { return assignees_.size(); } /** - * - * *
    * References primary/secondary etc assignees in the external system.
    * 
* * repeated string assignees = 2; - * * @param index The index of the element to return. * @return The assignees at the given index. */ @@ -262,32 +226,27 @@ public java.lang.String getAssignees(int index) { return assignees_.get(index); } /** - * - * *
    * References primary/secondary etc assignees in the external system.
    * 
* * repeated string assignees = 2; - * * @param index The index of the value to return. * @return The bytes of the assignees at the given index. */ - public com.google.protobuf.ByteString getAssigneesBytes(int index) { + public com.google.protobuf.ByteString + getAssigneesBytes(int index) { return assignees_.getByteString(index); } public static final int EXTERNAL_UID_FIELD_NUMBER = 3; private volatile java.lang.Object externalUid_; /** - * - * *
    * Identifier that's used to track the given finding in the external system.
    * 
* * string external_uid = 3; - * * @return The externalUid. */ @java.lang.Override @@ -296,29 +255,29 @@ public java.lang.String getExternalUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalUid_ = s; return s; } } /** - * - * *
    * Identifier that's used to track the given finding in the external system.
    * 
* * string external_uid = 3; - * * @return The bytes for externalUid. */ @java.lang.Override - public com.google.protobuf.ByteString getExternalUidBytes() { + public com.google.protobuf.ByteString + getExternalUidBytes() { java.lang.Object ref = externalUid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); externalUid_ = b; return b; } else { @@ -329,15 +288,12 @@ public com.google.protobuf.ByteString getExternalUidBytes() { public static final int STATUS_FIELD_NUMBER = 4; private volatile java.lang.Object status_; /** - * - * *
    * Most recent status of the corresponding finding's ticket/tracker in the
    * external system.
    * 
* * string status = 4; - * * @return The status. */ @java.lang.Override @@ -346,30 +302,30 @@ public java.lang.String getStatus() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); status_ = s; return s; } } /** - * - * *
    * Most recent status of the corresponding finding's ticket/tracker in the
    * external system.
    * 
* * string status = 4; - * * @return The bytes for status. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusBytes() { + public com.google.protobuf.ByteString + getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); status_ = b; return b; } else { @@ -380,15 +336,12 @@ public com.google.protobuf.ByteString getStatusBytes() { public static final int EXTERNAL_SYSTEM_UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp externalSystemUpdateTime_; /** - * - * *
    * The most recent time when the corresponding finding's ticket/tracker was
    * updated in the external system.
    * 
* * .google.protobuf.Timestamp external_system_update_time = 5; - * * @return Whether the externalSystemUpdateTime field is set. */ @java.lang.Override @@ -396,26 +349,19 @@ public boolean hasExternalSystemUpdateTime() { return externalSystemUpdateTime_ != null; } /** - * - * *
    * The most recent time when the corresponding finding's ticket/tracker was
    * updated in the external system.
    * 
* * .google.protobuf.Timestamp external_system_update_time = 5; - * * @return The externalSystemUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExternalSystemUpdateTime() { - return externalSystemUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : externalSystemUpdateTime_; + return externalSystemUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : externalSystemUpdateTime_; } /** - * - * *
    * The most recent time when the corresponding finding's ticket/tracker was
    * updated in the external system.
@@ -429,7 +375,6 @@ public com.google.protobuf.TimestampOrBuilder getExternalSystemUpdateTimeOrBuild
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -441,7 +386,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -484,9 +430,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, status_);
     }
     if (externalSystemUpdateTime_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              5, getExternalSystemUpdateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getExternalSystemUpdateTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -496,21 +441,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.ExternalSystem)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.ExternalSystem other =
-        (com.google.cloud.securitycenter.v1.ExternalSystem) obj;
+    com.google.cloud.securitycenter.v1.ExternalSystem other = (com.google.cloud.securitycenter.v1.ExternalSystem) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getAssigneesList().equals(other.getAssigneesList())) return false;
-    if (!getExternalUid().equals(other.getExternalUid())) return false;
-    if (!getStatus().equals(other.getStatus())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getAssigneesList()
+        .equals(other.getAssigneesList())) return false;
+    if (!getExternalUid()
+        .equals(other.getExternalUid())) return false;
+    if (!getStatus()
+        .equals(other.getStatus())) return false;
     if (hasExternalSystemUpdateTime() != other.hasExternalSystemUpdateTime()) return false;
     if (hasExternalSystemUpdateTime()) {
-      if (!getExternalSystemUpdateTime().equals(other.getExternalSystemUpdateTime())) return false;
+      if (!getExternalSystemUpdateTime()
+          .equals(other.getExternalSystemUpdateTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -543,126 +492,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.ExternalSystem parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.ExternalSystem parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.ExternalSystem parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.securitycenter.v1.ExternalSystem prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Representation of third party SIEM/SOAR fields within SCC.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ExternalSystem} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ExternalSystem) com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.ExternalSystemProto - .internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.ExternalSystemProto.internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ExternalSystemProto - .internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable + return com.google.cloud.securitycenter.v1.ExternalSystemProto.internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ExternalSystem.class, - com.google.cloud.securitycenter.v1.ExternalSystem.Builder.class); + com.google.cloud.securitycenter.v1.ExternalSystem.class, com.google.cloud.securitycenter.v1.ExternalSystem.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ExternalSystem.newBuilder() @@ -670,15 +610,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -700,9 +641,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.ExternalSystemProto - .internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.ExternalSystemProto.internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor; } @java.lang.Override @@ -721,8 +662,7 @@ public com.google.cloud.securitycenter.v1.ExternalSystem build() { @java.lang.Override public com.google.cloud.securitycenter.v1.ExternalSystem buildPartial() { - com.google.cloud.securitycenter.v1.ExternalSystem result = - new com.google.cloud.securitycenter.v1.ExternalSystem(this); + com.google.cloud.securitycenter.v1.ExternalSystem result = new com.google.cloud.securitycenter.v1.ExternalSystem(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (((bitField0_ & 0x00000001) != 0)) { @@ -745,39 +685,38 @@ public com.google.cloud.securitycenter.v1.ExternalSystem buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ExternalSystem) { - return mergeFrom((com.google.cloud.securitycenter.v1.ExternalSystem) other); + return mergeFrom((com.google.cloud.securitycenter.v1.ExternalSystem)other); } else { super.mergeFrom(other); return this; @@ -785,8 +724,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ExternalSystem other) { - if (other == com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -831,8 +769,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.ExternalSystem) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.ExternalSystem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -841,13 +778,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * External System Name e.g. jira, demisto, etc.
      *  e.g.:
@@ -857,13 +791,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -872,8 +806,6 @@ public java.lang.String getName() { } } /** - * - * *
      * External System Name e.g. jira, demisto, etc.
      *  e.g.:
@@ -883,14 +815,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -898,8 +831,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * External System Name e.g. jira, demisto, etc.
      *  e.g.:
@@ -909,22 +840,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * External System Name e.g. jira, demisto, etc.
      *  e.g.:
@@ -934,18 +863,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * External System Name e.g. jira, demisto, etc.
      *  e.g.:
@@ -955,67 +881,57 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList assignees_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList assignees_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAssigneesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assignees_ = new com.google.protobuf.LazyStringArrayList(assignees_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * References primary/secondary etc assignees in the external system.
      * 
* * repeated string assignees = 2; - * * @return A list containing the assignees. */ - public com.google.protobuf.ProtocolStringList getAssigneesList() { + public com.google.protobuf.ProtocolStringList + getAssigneesList() { return assignees_.getUnmodifiableView(); } /** - * - * *
      * References primary/secondary etc assignees in the external system.
      * 
* * repeated string assignees = 2; - * * @return The count of assignees. */ public int getAssigneesCount() { return assignees_.size(); } /** - * - * *
      * References primary/secondary etc assignees in the external system.
      * 
* * repeated string assignees = 2; - * * @param index The index of the element to return. * @return The assignees at the given index. */ @@ -1023,90 +939,80 @@ public java.lang.String getAssignees(int index) { return assignees_.get(index); } /** - * - * *
      * References primary/secondary etc assignees in the external system.
      * 
* * repeated string assignees = 2; - * * @param index The index of the value to return. * @return The bytes of the assignees at the given index. */ - public com.google.protobuf.ByteString getAssigneesBytes(int index) { + public com.google.protobuf.ByteString + getAssigneesBytes(int index) { return assignees_.getByteString(index); } /** - * - * *
      * References primary/secondary etc assignees in the external system.
      * 
* * repeated string assignees = 2; - * * @param index The index to set the value at. * @param value The assignees to set. * @return This builder for chaining. */ - public Builder setAssignees(int index, java.lang.String value) { + public Builder setAssignees( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssigneesIsMutable(); + throw new NullPointerException(); + } + ensureAssigneesIsMutable(); assignees_.set(index, value); onChanged(); return this; } /** - * - * *
      * References primary/secondary etc assignees in the external system.
      * 
* * repeated string assignees = 2; - * * @param value The assignees to add. * @return This builder for chaining. */ - public Builder addAssignees(java.lang.String value) { + public Builder addAssignees( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssigneesIsMutable(); + throw new NullPointerException(); + } + ensureAssigneesIsMutable(); assignees_.add(value); onChanged(); return this; } /** - * - * *
      * References primary/secondary etc assignees in the external system.
      * 
* * repeated string assignees = 2; - * * @param values The assignees to add. * @return This builder for chaining. */ - public Builder addAllAssignees(java.lang.Iterable values) { + public Builder addAllAssignees( + java.lang.Iterable values) { ensureAssigneesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assignees_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, assignees_); onChanged(); return this; } /** - * - * *
      * References primary/secondary etc assignees in the external system.
      * 
* * repeated string assignees = 2; - * * @return This builder for chaining. */ public Builder clearAssignees() { @@ -1116,22 +1022,20 @@ public Builder clearAssignees() { return this; } /** - * - * *
      * References primary/secondary etc assignees in the external system.
      * 
* * repeated string assignees = 2; - * * @param value The bytes of the assignees to add. * @return This builder for chaining. */ - public Builder addAssigneesBytes(com.google.protobuf.ByteString value) { + public Builder addAssigneesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssigneesIsMutable(); assignees_.add(value); onChanged(); @@ -1140,20 +1044,18 @@ public Builder addAssigneesBytes(com.google.protobuf.ByteString value) { private java.lang.Object externalUid_ = ""; /** - * - * *
      * Identifier that's used to track the given finding in the external system.
      * 
* * string external_uid = 3; - * * @return The externalUid. */ public java.lang.String getExternalUid() { java.lang.Object ref = externalUid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalUid_ = s; return s; @@ -1162,21 +1064,20 @@ public java.lang.String getExternalUid() { } } /** - * - * *
      * Identifier that's used to track the given finding in the external system.
      * 
* * string external_uid = 3; - * * @return The bytes for externalUid. */ - public com.google.protobuf.ByteString getExternalUidBytes() { + public com.google.protobuf.ByteString + getExternalUidBytes() { java.lang.Object ref = externalUid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); externalUid_ = b; return b; } else { @@ -1184,61 +1085,54 @@ public com.google.protobuf.ByteString getExternalUidBytes() { } } /** - * - * *
      * Identifier that's used to track the given finding in the external system.
      * 
* * string external_uid = 3; - * * @param value The externalUid to set. * @return This builder for chaining. */ - public Builder setExternalUid(java.lang.String value) { + public Builder setExternalUid( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalUid_ = value; onChanged(); return this; } /** - * - * *
      * Identifier that's used to track the given finding in the external system.
      * 
* * string external_uid = 3; - * * @return This builder for chaining. */ public Builder clearExternalUid() { - + externalUid_ = getDefaultInstance().getExternalUid(); onChanged(); return this; } /** - * - * *
      * Identifier that's used to track the given finding in the external system.
      * 
* * string external_uid = 3; - * * @param value The bytes for externalUid to set. * @return This builder for chaining. */ - public Builder setExternalUidBytes(com.google.protobuf.ByteString value) { + public Builder setExternalUidBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalUid_ = value; onChanged(); return this; @@ -1246,21 +1140,19 @@ public Builder setExternalUidBytes(com.google.protobuf.ByteString value) { private java.lang.Object status_ = ""; /** - * - * *
      * Most recent status of the corresponding finding's ticket/tracker in the
      * external system.
      * 
* * string status = 4; - * * @return The status. */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); status_ = s; return s; @@ -1269,22 +1161,21 @@ public java.lang.String getStatus() { } } /** - * - * *
      * Most recent status of the corresponding finding's ticket/tracker in the
      * external system.
      * 
* * string status = 4; - * * @return The bytes for status. */ - public com.google.protobuf.ByteString getStatusBytes() { + public com.google.protobuf.ByteString + getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); status_ = b; return b; } else { @@ -1292,64 +1183,57 @@ public com.google.protobuf.ByteString getStatusBytes() { } } /** - * - * *
      * Most recent status of the corresponding finding's ticket/tracker in the
      * external system.
      * 
* * string status = 4; - * * @param value The status to set. * @return This builder for chaining. */ - public Builder setStatus(java.lang.String value) { + public Builder setStatus( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + status_ = value; onChanged(); return this; } /** - * - * *
      * Most recent status of the corresponding finding's ticket/tracker in the
      * external system.
      * 
* * string status = 4; - * * @return This builder for chaining. */ public Builder clearStatus() { - + status_ = getDefaultInstance().getStatus(); onChanged(); return this; } /** - * - * *
      * Most recent status of the corresponding finding's ticket/tracker in the
      * external system.
      * 
* * string status = 4; - * * @param value The bytes for status to set. * @return This builder for chaining. */ - public Builder setStatusBytes(com.google.protobuf.ByteString value) { + public Builder setStatusBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + status_ = value; onChanged(); return this; @@ -1357,49 +1241,36 @@ public Builder setStatusBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp externalSystemUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - externalSystemUpdateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> externalSystemUpdateTimeBuilder_; /** - * - * *
      * The most recent time when the corresponding finding's ticket/tracker was
      * updated in the external system.
      * 
* * .google.protobuf.Timestamp external_system_update_time = 5; - * * @return Whether the externalSystemUpdateTime field is set. */ public boolean hasExternalSystemUpdateTime() { return externalSystemUpdateTimeBuilder_ != null || externalSystemUpdateTime_ != null; } /** - * - * *
      * The most recent time when the corresponding finding's ticket/tracker was
      * updated in the external system.
      * 
* * .google.protobuf.Timestamp external_system_update_time = 5; - * * @return The externalSystemUpdateTime. */ public com.google.protobuf.Timestamp getExternalSystemUpdateTime() { if (externalSystemUpdateTimeBuilder_ == null) { - return externalSystemUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : externalSystemUpdateTime_; + return externalSystemUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : externalSystemUpdateTime_; } else { return externalSystemUpdateTimeBuilder_.getMessage(); } } /** - * - * *
      * The most recent time when the corresponding finding's ticket/tracker was
      * updated in the external system.
@@ -1421,8 +1292,6 @@ public Builder setExternalSystemUpdateTime(com.google.protobuf.Timestamp value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The most recent time when the corresponding finding's ticket/tracker was
      * updated in the external system.
@@ -1442,8 +1311,6 @@ public Builder setExternalSystemUpdateTime(
       return this;
     }
     /**
-     *
-     *
      * 
      * The most recent time when the corresponding finding's ticket/tracker was
      * updated in the external system.
@@ -1455,9 +1322,7 @@ public Builder mergeExternalSystemUpdateTime(com.google.protobuf.Timestamp value
       if (externalSystemUpdateTimeBuilder_ == null) {
         if (externalSystemUpdateTime_ != null) {
           externalSystemUpdateTime_ =
-              com.google.protobuf.Timestamp.newBuilder(externalSystemUpdateTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(externalSystemUpdateTime_).mergeFrom(value).buildPartial();
         } else {
           externalSystemUpdateTime_ = value;
         }
@@ -1469,8 +1334,6 @@ public Builder mergeExternalSystemUpdateTime(com.google.protobuf.Timestamp value
       return this;
     }
     /**
-     *
-     *
      * 
      * The most recent time when the corresponding finding's ticket/tracker was
      * updated in the external system.
@@ -1490,8 +1353,6 @@ public Builder clearExternalSystemUpdateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The most recent time when the corresponding finding's ticket/tracker was
      * updated in the external system.
@@ -1500,13 +1361,11 @@ public Builder clearExternalSystemUpdateTime() {
      * .google.protobuf.Timestamp external_system_update_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getExternalSystemUpdateTimeBuilder() {
-
+      
       onChanged();
       return getExternalSystemUpdateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The most recent time when the corresponding finding's ticket/tracker was
      * updated in the external system.
@@ -1518,14 +1377,11 @@ public com.google.protobuf.TimestampOrBuilder getExternalSystemUpdateTimeOrBuild
       if (externalSystemUpdateTimeBuilder_ != null) {
         return externalSystemUpdateTimeBuilder_.getMessageOrBuilder();
       } else {
-        return externalSystemUpdateTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : externalSystemUpdateTime_;
+        return externalSystemUpdateTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : externalSystemUpdateTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The most recent time when the corresponding finding's ticket/tracker was
      * updated in the external system.
@@ -1534,24 +1390,21 @@ public com.google.protobuf.TimestampOrBuilder getExternalSystemUpdateTimeOrBuild
      * .google.protobuf.Timestamp external_system_update_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getExternalSystemUpdateTimeFieldBuilder() {
       if (externalSystemUpdateTimeBuilder_ == null) {
-        externalSystemUpdateTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getExternalSystemUpdateTime(), getParentForChildren(), isClean());
+        externalSystemUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getExternalSystemUpdateTime(),
+                getParentForChildren(),
+                isClean());
         externalSystemUpdateTime_ = null;
       }
       return externalSystemUpdateTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1561,12 +1414,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ExternalSystem)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ExternalSystem)
   private static final com.google.cloud.securitycenter.v1.ExternalSystem DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ExternalSystem();
   }
@@ -1575,16 +1428,16 @@ public static com.google.cloud.securitycenter.v1.ExternalSystem getDefaultInstan
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ExternalSystem parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ExternalSystem(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ExternalSystem parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ExternalSystem(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1599,4 +1452,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.securitycenter.v1.ExternalSystem getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemOrBuilder.java
similarity index 78%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemOrBuilder.java
index ccb54495b..2f83a97f8 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/external_system.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface ExternalSystemOrBuilder
-    extends
+public interface ExternalSystemOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ExternalSystem)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * External System Name e.g. jira, demisto, etc.
    *  e.g.:
@@ -35,13 +17,10 @@ public interface ExternalSystemOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * External System Name e.g. jira, demisto, etc.
    *  e.g.:
@@ -51,143 +30,115 @@ public interface ExternalSystemOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * References primary/secondary etc assignees in the external system.
    * 
* * repeated string assignees = 2; - * * @return A list containing the assignees. */ - java.util.List getAssigneesList(); + java.util.List + getAssigneesList(); /** - * - * *
    * References primary/secondary etc assignees in the external system.
    * 
* * repeated string assignees = 2; - * * @return The count of assignees. */ int getAssigneesCount(); /** - * - * *
    * References primary/secondary etc assignees in the external system.
    * 
* * repeated string assignees = 2; - * * @param index The index of the element to return. * @return The assignees at the given index. */ java.lang.String getAssignees(int index); /** - * - * *
    * References primary/secondary etc assignees in the external system.
    * 
* * repeated string assignees = 2; - * * @param index The index of the value to return. * @return The bytes of the assignees at the given index. */ - com.google.protobuf.ByteString getAssigneesBytes(int index); + com.google.protobuf.ByteString + getAssigneesBytes(int index); /** - * - * *
    * Identifier that's used to track the given finding in the external system.
    * 
* * string external_uid = 3; - * * @return The externalUid. */ java.lang.String getExternalUid(); /** - * - * *
    * Identifier that's used to track the given finding in the external system.
    * 
* * string external_uid = 3; - * * @return The bytes for externalUid. */ - com.google.protobuf.ByteString getExternalUidBytes(); + com.google.protobuf.ByteString + getExternalUidBytes(); /** - * - * *
    * Most recent status of the corresponding finding's ticket/tracker in the
    * external system.
    * 
* * string status = 4; - * * @return The status. */ java.lang.String getStatus(); /** - * - * *
    * Most recent status of the corresponding finding's ticket/tracker in the
    * external system.
    * 
* * string status = 4; - * * @return The bytes for status. */ - com.google.protobuf.ByteString getStatusBytes(); + com.google.protobuf.ByteString + getStatusBytes(); /** - * - * *
    * The most recent time when the corresponding finding's ticket/tracker was
    * updated in the external system.
    * 
* * .google.protobuf.Timestamp external_system_update_time = 5; - * * @return Whether the externalSystemUpdateTime field is set. */ boolean hasExternalSystemUpdateTime(); /** - * - * *
    * The most recent time when the corresponding finding's ticket/tracker was
    * updated in the external system.
    * 
* * .google.protobuf.Timestamp external_system_update_time = 5; - * * @return The externalSystemUpdateTime. */ com.google.protobuf.Timestamp getExternalSystemUpdateTime(); /** - * - * *
    * The most recent time when the corresponding finding's ticket/tracker was
    * updated in the external system.
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemProto.java
new file mode 100644
index 000000000..8d9028c66
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemProto.java
@@ -0,0 +1,76 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/securitycenter/v1/external_system.proto
+
+package com.google.cloud.securitycenter.v1;
+
+public final class ExternalSystemProto {
+  private ExternalSystemProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n4google/cloud/securitycenter/v1/externa" +
+      "l_system.proto\022\036google.cloud.securitycen" +
+      "ter.v1\032\031google/api/resource.proto\032\037googl" +
+      "e/protobuf/timestamp.proto\"\340\003\n\016ExternalS" +
+      "ystem\022\014\n\004name\030\001 \001(\t\022\021\n\tassignees\030\002 \003(\t\022\024" +
+      "\n\014external_uid\030\003 \001(\t\022\016\n\006status\030\004 \001(\t\022?\n\033" +
+      "external_system_update_time\030\005 \001(\0132\032.goog" +
+      "le.protobuf.Timestamp:\305\002\352A\301\002\n,securityce" +
+      "nter.googleapis.com/ExternalSystem\022aorga" +
+      "nizations/{organization}/sources/{source" +
+      "}/findings/{finding}/externalSystems/{ex" +
+      "ternalsystem}\022Ufolders/{folder}/sources/" +
+      "{source}/findings/{finding}/externalSyst" +
+      "ems/{externalsystem}\022Wprojects/{project}" +
+      "/sources/{source}/findings/{finding}/ext" +
+      "ernalSystems/{externalsystem}B\357\001\n\"com.go" +
+      "ogle.cloud.securitycenter.v1B\023ExternalSy" +
+      "stemProtoP\001ZLgoogle.golang.org/genproto/" +
+      "googleapis/cloud/securitycenter/v1;secur" +
+      "itycenter\252\002\036Google.Cloud.SecurityCenter." +
+      "V1\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!Go" +
+      "ogle::Cloud::SecurityCenter::V1b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.protobuf.TimestampProto.getDescriptor(),
+        });
+    internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor,
+        new java.lang.String[] { "Name", "Assignees", "ExternalUid", "Status", "ExternalSystemUpdateTime", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/File.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/File.java
similarity index 73%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/File.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/File.java
index 693bf5ff4..aeae58185 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/File.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/File.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/file.proto
 
 package com.google.cloud.securitycenter.v1;
 
 /**
- *
- *
  * 
  * File information about the related binary/library used by an executable, or
  * the script used by a script interpreter
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.File}
  */
-public final class File extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class File extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.File)
     FileOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use File.newBuilder() to construct.
   private File(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private File() {
     path_ = "";
     sha256_ = "";
@@ -46,15 +28,16 @@ private File() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new File();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private File(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,49 +56,46 @@ private File(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              path_ = s;
-              break;
-            }
-          case 16:
-            {
-              size_ = input.readInt64();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            path_ = s;
+            break;
+          }
+          case 16: {
 
-              sha256_ = s;
-              break;
-            }
-          case 32:
-            {
-              hashedSize_ = input.readInt64();
-              break;
-            }
-          case 40:
-            {
-              partiallyHashed_ = input.readBool();
-              break;
-            }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            size_ = input.readInt64();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              contents_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            sha256_ = s;
+            break;
+          }
+          case 32: {
+
+            hashedSize_ = input.readInt64();
+            break;
+          }
+          case 40: {
+
+            partiallyHashed_ = input.readBool();
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            contents_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -123,39 +103,34 @@ private File(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1.FileProto
-        .internal_static_google_cloud_securitycenter_v1_File_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1.FileProto.internal_static_google_cloud_securitycenter_v1_File_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.FileProto
-        .internal_static_google_cloud_securitycenter_v1_File_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.FileProto.internal_static_google_cloud_securitycenter_v1_File_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.File.class,
-            com.google.cloud.securitycenter.v1.File.Builder.class);
+            com.google.cloud.securitycenter.v1.File.class, com.google.cloud.securitycenter.v1.File.Builder.class);
   }
 
   public static final int PATH_FIELD_NUMBER = 1;
   private volatile java.lang.Object path_;
   /**
-   *
-   *
    * 
    * Absolute path of the file as a JSON encoded string.
    * 
* * string path = 1; - * * @return The path. */ @java.lang.Override @@ -164,29 +139,29 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** - * - * *
    * Absolute path of the file as a JSON encoded string.
    * 
* * string path = 1; - * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -197,14 +172,11 @@ public com.google.protobuf.ByteString getPathBytes() { public static final int SIZE_FIELD_NUMBER = 2; private long size_; /** - * - * *
    * Size of the file in bytes.
    * 
* * int64 size = 2; - * * @return The size. */ @java.lang.Override @@ -215,8 +187,6 @@ public long getSize() { public static final int SHA256_FIELD_NUMBER = 3; private volatile java.lang.Object sha256_; /** - * - * *
    * SHA256 hash of the first hashed_size bytes of the file encoded as a
    * hex string.  If hashed_size == size, hash_sha256 represents the SHA256 hash
@@ -224,7 +194,6 @@ public long getSize() {
    * 
* * string sha256 = 3; - * * @return The sha256. */ @java.lang.Override @@ -233,15 +202,14 @@ public java.lang.String getSha256() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha256_ = s; return s; } } /** - * - * *
    * SHA256 hash of the first hashed_size bytes of the file encoded as a
    * hex string.  If hashed_size == size, hash_sha256 represents the SHA256 hash
@@ -249,15 +217,16 @@ public java.lang.String getSha256() {
    * 
* * string sha256 = 3; - * * @return The bytes for sha256. */ @java.lang.Override - public com.google.protobuf.ByteString getSha256Bytes() { + public com.google.protobuf.ByteString + getSha256Bytes() { java.lang.Object ref = sha256_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sha256_ = b; return b; } else { @@ -268,8 +237,6 @@ public com.google.protobuf.ByteString getSha256Bytes() { public static final int HASHED_SIZE_FIELD_NUMBER = 4; private long hashedSize_; /** - * - * *
    * The length in bytes of the file prefix that was hashed.  If
    * hashed_size == size, any hashes reported represent the entire
@@ -277,7 +244,6 @@ public com.google.protobuf.ByteString getSha256Bytes() {
    * 
* * int64 hashed_size = 4; - * * @return The hashedSize. */ @java.lang.Override @@ -288,14 +254,11 @@ public long getHashedSize() { public static final int PARTIALLY_HASHED_FIELD_NUMBER = 5; private boolean partiallyHashed_; /** - * - * *
    * True when the hash covers only a prefix of the file.
    * 
* * bool partially_hashed = 5; - * * @return The partiallyHashed. */ @java.lang.Override @@ -306,15 +269,12 @@ public boolean getPartiallyHashed() { public static final int CONTENTS_FIELD_NUMBER = 6; private volatile java.lang.Object contents_; /** - * - * *
    * Prefix of the file contents as a JSON encoded string.
    * (Currently only populated for Malicious Script Executed findings.)
    * 
* * string contents = 6; - * * @return The contents. */ @java.lang.Override @@ -323,30 +283,30 @@ public java.lang.String getContents() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contents_ = s; return s; } } /** - * - * *
    * Prefix of the file contents as a JSON encoded string.
    * (Currently only populated for Malicious Script Executed findings.)
    * 
* * string contents = 6; - * * @return The bytes for contents. */ @java.lang.Override - public com.google.protobuf.ByteString getContentsBytes() { + public com.google.protobuf.ByteString + getContentsBytes() { java.lang.Object ref = contents_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contents_ = b; return b; } else { @@ -355,7 +315,6 @@ public com.google.protobuf.ByteString getContentsBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,7 +326,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } @@ -399,16 +359,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } if (size_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, size_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, size_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sha256_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sha256_); } if (hashedSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, hashedSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, hashedSize_); } if (partiallyHashed_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, partiallyHashed_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, partiallyHashed_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contents_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, contents_); @@ -421,19 +384,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.File)) { return super.equals(obj); } com.google.cloud.securitycenter.v1.File other = (com.google.cloud.securitycenter.v1.File) obj; - if (!getPath().equals(other.getPath())) return false; - if (getSize() != other.getSize()) return false; - if (!getSha256().equals(other.getSha256())) return false; - if (getHashedSize() != other.getHashedSize()) return false; - if (getPartiallyHashed() != other.getPartiallyHashed()) return false; - if (!getContents().equals(other.getContents())) return false; + if (!getPath() + .equals(other.getPath())) return false; + if (getSize() + != other.getSize()) return false; + if (!getSha256() + .equals(other.getSha256())) return false; + if (getHashedSize() + != other.getHashedSize()) return false; + if (getPartiallyHashed() + != other.getPartiallyHashed()) return false; + if (!getContents() + .equals(other.getContents())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -448,13 +417,16 @@ public int hashCode() { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSize()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSize()); hash = (37 * hash) + SHA256_FIELD_NUMBER; hash = (53 * hash) + getSha256().hashCode(); hash = (37 * hash) + HASHED_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHashedSize()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getHashedSize()); hash = (37 * hash) + PARTIALLY_HASHED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPartiallyHashed()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartiallyHashed()); hash = (37 * hash) + CONTENTS_FIELD_NUMBER; hash = (53 * hash) + getContents().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -462,104 +434,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.File parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.File parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.File parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.File parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.File parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.File parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.File parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.File parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.File parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.File parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.File parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.File parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.File parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.File parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.File prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * File information about the related binary/library used by an executable, or
    * the script used by a script interpreter
@@ -567,23 +532,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.File}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.File)
       com.google.cloud.securitycenter.v1.FileOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.FileProto
-          .internal_static_google_cloud_securitycenter_v1_File_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.FileProto.internal_static_google_cloud_securitycenter_v1_File_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.FileProto
-          .internal_static_google_cloud_securitycenter_v1_File_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.FileProto.internal_static_google_cloud_securitycenter_v1_File_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.File.class,
-              com.google.cloud.securitycenter.v1.File.Builder.class);
+              com.google.cloud.securitycenter.v1.File.class, com.google.cloud.securitycenter.v1.File.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.File.newBuilder()
@@ -591,15 +554,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -619,9 +583,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.FileProto
-          .internal_static_google_cloud_securitycenter_v1_File_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.FileProto.internal_static_google_cloud_securitycenter_v1_File_descriptor;
     }
 
     @java.lang.Override
@@ -640,8 +604,7 @@ public com.google.cloud.securitycenter.v1.File build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.File buildPartial() {
-      com.google.cloud.securitycenter.v1.File result =
-          new com.google.cloud.securitycenter.v1.File(this);
+      com.google.cloud.securitycenter.v1.File result = new com.google.cloud.securitycenter.v1.File(this);
       result.path_ = path_;
       result.size_ = size_;
       result.sha256_ = sha256_;
@@ -656,39 +619,38 @@ public com.google.cloud.securitycenter.v1.File buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.File) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.File) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.File)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -749,20 +711,18 @@ public Builder mergeFrom(
 
     private java.lang.Object path_ = "";
     /**
-     *
-     *
      * 
      * Absolute path of the file as a JSON encoded string.
      * 
* * string path = 1; - * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -771,21 +731,20 @@ public java.lang.String getPath() { } } /** - * - * *
      * Absolute path of the file as a JSON encoded string.
      * 
* * string path = 1; - * * @return The bytes for path. */ - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -793,76 +752,66 @@ public com.google.protobuf.ByteString getPathBytes() { } } /** - * - * *
      * Absolute path of the file as a JSON encoded string.
      * 
* * string path = 1; - * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath(java.lang.String value) { + public Builder setPath( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + path_ = value; onChanged(); return this; } /** - * - * *
      * Absolute path of the file as a JSON encoded string.
      * 
* * string path = 1; - * * @return This builder for chaining. */ public Builder clearPath() { - + path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** - * - * *
      * Absolute path of the file as a JSON encoded string.
      * 
* * string path = 1; - * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes(com.google.protobuf.ByteString value) { + public Builder setPathBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; onChanged(); return this; } - private long size_; + private long size_ ; /** - * - * *
      * Size of the file in bytes.
      * 
* * int64 size = 2; - * * @return The size. */ @java.lang.Override @@ -870,36 +819,30 @@ public long getSize() { return size_; } /** - * - * *
      * Size of the file in bytes.
      * 
* * int64 size = 2; - * * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(long value) { - + size_ = value; onChanged(); return this; } /** - * - * *
      * Size of the file in bytes.
      * 
* * int64 size = 2; - * * @return This builder for chaining. */ public Builder clearSize() { - + size_ = 0L; onChanged(); return this; @@ -907,8 +850,6 @@ public Builder clearSize() { private java.lang.Object sha256_ = ""; /** - * - * *
      * SHA256 hash of the first hashed_size bytes of the file encoded as a
      * hex string.  If hashed_size == size, hash_sha256 represents the SHA256 hash
@@ -916,13 +857,13 @@ public Builder clearSize() {
      * 
* * string sha256 = 3; - * * @return The sha256. */ public java.lang.String getSha256() { java.lang.Object ref = sha256_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha256_ = s; return s; @@ -931,8 +872,6 @@ public java.lang.String getSha256() { } } /** - * - * *
      * SHA256 hash of the first hashed_size bytes of the file encoded as a
      * hex string.  If hashed_size == size, hash_sha256 represents the SHA256 hash
@@ -940,14 +879,15 @@ public java.lang.String getSha256() {
      * 
* * string sha256 = 3; - * * @return The bytes for sha256. */ - public com.google.protobuf.ByteString getSha256Bytes() { + public com.google.protobuf.ByteString + getSha256Bytes() { java.lang.Object ref = sha256_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sha256_ = b; return b; } else { @@ -955,8 +895,6 @@ public com.google.protobuf.ByteString getSha256Bytes() { } } /** - * - * *
      * SHA256 hash of the first hashed_size bytes of the file encoded as a
      * hex string.  If hashed_size == size, hash_sha256 represents the SHA256 hash
@@ -964,22 +902,20 @@ public com.google.protobuf.ByteString getSha256Bytes() {
      * 
* * string sha256 = 3; - * * @param value The sha256 to set. * @return This builder for chaining. */ - public Builder setSha256(java.lang.String value) { + public Builder setSha256( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sha256_ = value; onChanged(); return this; } /** - * - * *
      * SHA256 hash of the first hashed_size bytes of the file encoded as a
      * hex string.  If hashed_size == size, hash_sha256 represents the SHA256 hash
@@ -987,18 +923,15 @@ public Builder setSha256(java.lang.String value) {
      * 
* * string sha256 = 3; - * * @return This builder for chaining. */ public Builder clearSha256() { - + sha256_ = getDefaultInstance().getSha256(); onChanged(); return this; } /** - * - * *
      * SHA256 hash of the first hashed_size bytes of the file encoded as a
      * hex string.  If hashed_size == size, hash_sha256 represents the SHA256 hash
@@ -1006,25 +939,23 @@ public Builder clearSha256() {
      * 
* * string sha256 = 3; - * * @param value The bytes for sha256 to set. * @return This builder for chaining. */ - public Builder setSha256Bytes(com.google.protobuf.ByteString value) { + public Builder setSha256Bytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sha256_ = value; onChanged(); return this; } - private long hashedSize_; + private long hashedSize_ ; /** - * - * *
      * The length in bytes of the file prefix that was hashed.  If
      * hashed_size == size, any hashes reported represent the entire
@@ -1032,7 +963,6 @@ public Builder setSha256Bytes(com.google.protobuf.ByteString value) {
      * 
* * int64 hashed_size = 4; - * * @return The hashedSize. */ @java.lang.Override @@ -1040,8 +970,6 @@ public long getHashedSize() { return hashedSize_; } /** - * - * *
      * The length in bytes of the file prefix that was hashed.  If
      * hashed_size == size, any hashes reported represent the entire
@@ -1049,19 +977,16 @@ public long getHashedSize() {
      * 
* * int64 hashed_size = 4; - * * @param value The hashedSize to set. * @return This builder for chaining. */ public Builder setHashedSize(long value) { - + hashedSize_ = value; onChanged(); return this; } /** - * - * *
      * The length in bytes of the file prefix that was hashed.  If
      * hashed_size == size, any hashes reported represent the entire
@@ -1069,26 +994,22 @@ public Builder setHashedSize(long value) {
      * 
* * int64 hashed_size = 4; - * * @return This builder for chaining. */ public Builder clearHashedSize() { - + hashedSize_ = 0L; onChanged(); return this; } - private boolean partiallyHashed_; + private boolean partiallyHashed_ ; /** - * - * *
      * True when the hash covers only a prefix of the file.
      * 
* * bool partially_hashed = 5; - * * @return The partiallyHashed. */ @java.lang.Override @@ -1096,36 +1017,30 @@ public boolean getPartiallyHashed() { return partiallyHashed_; } /** - * - * *
      * True when the hash covers only a prefix of the file.
      * 
* * bool partially_hashed = 5; - * * @param value The partiallyHashed to set. * @return This builder for chaining. */ public Builder setPartiallyHashed(boolean value) { - + partiallyHashed_ = value; onChanged(); return this; } /** - * - * *
      * True when the hash covers only a prefix of the file.
      * 
* * bool partially_hashed = 5; - * * @return This builder for chaining. */ public Builder clearPartiallyHashed() { - + partiallyHashed_ = false; onChanged(); return this; @@ -1133,21 +1048,19 @@ public Builder clearPartiallyHashed() { private java.lang.Object contents_ = ""; /** - * - * *
      * Prefix of the file contents as a JSON encoded string.
      * (Currently only populated for Malicious Script Executed findings.)
      * 
* * string contents = 6; - * * @return The contents. */ public java.lang.String getContents() { java.lang.Object ref = contents_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contents_ = s; return s; @@ -1156,22 +1069,21 @@ public java.lang.String getContents() { } } /** - * - * *
      * Prefix of the file contents as a JSON encoded string.
      * (Currently only populated for Malicious Script Executed findings.)
      * 
* * string contents = 6; - * * @return The bytes for contents. */ - public com.google.protobuf.ByteString getContentsBytes() { + public com.google.protobuf.ByteString + getContentsBytes() { java.lang.Object ref = contents_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contents_ = b; return b; } else { @@ -1179,71 +1091,64 @@ public com.google.protobuf.ByteString getContentsBytes() { } } /** - * - * *
      * Prefix of the file contents as a JSON encoded string.
      * (Currently only populated for Malicious Script Executed findings.)
      * 
* * string contents = 6; - * * @param value The contents to set. * @return This builder for chaining. */ - public Builder setContents(java.lang.String value) { + public Builder setContents( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + contents_ = value; onChanged(); return this; } /** - * - * *
      * Prefix of the file contents as a JSON encoded string.
      * (Currently only populated for Malicious Script Executed findings.)
      * 
* * string contents = 6; - * * @return This builder for chaining. */ public Builder clearContents() { - + contents_ = getDefaultInstance().getContents(); onChanged(); return this; } /** - * - * *
      * Prefix of the file contents as a JSON encoded string.
      * (Currently only populated for Malicious Script Executed findings.)
      * 
* * string contents = 6; - * * @param value The bytes for contents to set. * @return This builder for chaining. */ - public Builder setContentsBytes(com.google.protobuf.ByteString value) { + public Builder setContentsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contents_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1253,12 +1158,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.File) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.File) private static final com.google.cloud.securitycenter.v1.File DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.File(); } @@ -1267,16 +1172,16 @@ public static com.google.cloud.securitycenter.v1.File getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public File parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new File(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public File parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new File(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1291,4 +1196,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.File getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileOrBuilder.java similarity index 72% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileOrBuilder.java index b48ec9954..45b8a8843 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileOrBuilder.java @@ -1,69 +1,43 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/file.proto package com.google.cloud.securitycenter.v1; -public interface FileOrBuilder - extends +public interface FileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.File) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Absolute path of the file as a JSON encoded string.
    * 
* * string path = 1; - * * @return The path. */ java.lang.String getPath(); /** - * - * *
    * Absolute path of the file as a JSON encoded string.
    * 
* * string path = 1; - * * @return The bytes for path. */ - com.google.protobuf.ByteString getPathBytes(); + com.google.protobuf.ByteString + getPathBytes(); /** - * - * *
    * Size of the file in bytes.
    * 
* * int64 size = 2; - * * @return The size. */ long getSize(); /** - * - * *
    * SHA256 hash of the first hashed_size bytes of the file encoded as a
    * hex string.  If hashed_size == size, hash_sha256 represents the SHA256 hash
@@ -71,13 +45,10 @@ public interface FileOrBuilder
    * 
* * string sha256 = 3; - * * @return The sha256. */ java.lang.String getSha256(); /** - * - * *
    * SHA256 hash of the first hashed_size bytes of the file encoded as a
    * hex string.  If hashed_size == size, hash_sha256 represents the SHA256 hash
@@ -85,14 +56,12 @@ public interface FileOrBuilder
    * 
* * string sha256 = 3; - * * @return The bytes for sha256. */ - com.google.protobuf.ByteString getSha256Bytes(); + com.google.protobuf.ByteString + getSha256Bytes(); /** - * - * *
    * The length in bytes of the file prefix that was hashed.  If
    * hashed_size == size, any hashes reported represent the entire
@@ -100,48 +69,39 @@ public interface FileOrBuilder
    * 
* * int64 hashed_size = 4; - * * @return The hashedSize. */ long getHashedSize(); /** - * - * *
    * True when the hash covers only a prefix of the file.
    * 
* * bool partially_hashed = 5; - * * @return The partiallyHashed. */ boolean getPartiallyHashed(); /** - * - * *
    * Prefix of the file contents as a JSON encoded string.
    * (Currently only populated for Malicious Script Executed findings.)
    * 
* * string contents = 6; - * * @return The contents. */ java.lang.String getContents(); /** - * - * *
    * Prefix of the file contents as a JSON encoded string.
    * (Currently only populated for Malicious Script Executed findings.)
    * 
* * string contents = 6; - * * @return The bytes for contents. */ - com.google.protobuf.ByteString getContentsBytes(); + com.google.protobuf.ByteString + getContentsBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileProto.java new file mode 100644 index 000000000..1ac1d8dbf --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileProto.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/file.proto + +package com.google.cloud.securitycenter.v1; + +public final class FileProto { + private FileProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_File_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_File_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/securitycenter/v1/file.pr" + + "oto\022\036google.cloud.securitycenter.v1\"s\n\004F" + + "ile\022\014\n\004path\030\001 \001(\t\022\014\n\004size\030\002 \001(\003\022\016\n\006sha25" + + "6\030\003 \001(\t\022\023\n\013hashed_size\030\004 \001(\003\022\030\n\020partiall" + + "y_hashed\030\005 \001(\010\022\020\n\010contents\030\006 \001(\tB\345\001\n\"com" + + ".google.cloud.securitycenter.v1B\tFilePro" + + "toP\001ZLgoogle.golang.org/genproto/googlea" + + "pis/cloud/securitycenter/v1;securitycent" + + "er\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036Go" + + "ogle\\Cloud\\SecurityCenter\\V1\352\002!Google::C" + + "loud::SecurityCenter::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_securitycenter_v1_File_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_File_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_File_descriptor, + new java.lang.String[] { "Path", "Size", "Sha256", "HashedSize", "PartiallyHashed", "Contents", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java similarity index 75% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java index e1c0d0890..44d5e078a 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/finding.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Security Command Center finding.
  * A finding is a record of assessment data like security, risk, health, or
@@ -32,16 +15,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.Finding}
  */
-public final class Finding extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Finding extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Finding)
     FindingOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Finding.newBuilder() to construct.
   private Finding(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Finding() {
     name_ = "";
     parent_ = "";
@@ -64,15 +46,16 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Finding();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Finding(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -92,329 +75,270 @@ private Finding(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            parent_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              resourceName_ = s;
-              break;
-            }
-          case 32:
-            {
-              int rawValue = input.readEnum();
+            resourceName_ = s;
+            break;
+          }
+          case 32: {
+            int rawValue = input.readEnum();
 
-              state_ = rawValue;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            state_ = rawValue;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              category_ = s;
-              break;
-            }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            category_ = s;
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              externalUri_ = s;
-              break;
+            externalUri_ = s;
+            break;
+          }
+          case 58: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              sourceProperties_ = com.google.protobuf.MapField.newMapField(
+                  SourcePropertiesDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 58:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                sourceProperties_ =
-                    com.google.protobuf.MapField.newMapField(
-                        SourcePropertiesDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry
-                  sourceProperties__ =
-                      input.readMessage(
-                          SourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
-                          extensionRegistry);
-              sourceProperties_
-                  .getMutableMap()
-                  .put(sourceProperties__.getKey(), sourceProperties__.getValue());
-              break;
+            com.google.protobuf.MapEntry
+            sourceProperties__ = input.readMessage(
+                SourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            sourceProperties_.getMutableMap().put(
+                sourceProperties__.getKey(), sourceProperties__.getValue());
+            break;
+          }
+          case 66: {
+            com.google.cloud.securitycenter.v1.SecurityMarks.Builder subBuilder = null;
+            if (securityMarks_ != null) {
+              subBuilder = securityMarks_.toBuilder();
             }
-          case 66:
-            {
-              com.google.cloud.securitycenter.v1.SecurityMarks.Builder subBuilder = null;
-              if (securityMarks_ != null) {
-                subBuilder = securityMarks_.toBuilder();
-              }
-              securityMarks_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1.SecurityMarks.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(securityMarks_);
-                securityMarks_ = subBuilder.buildPartial();
-              }
-
-              break;
+            securityMarks_ = input.readMessage(com.google.cloud.securitycenter.v1.SecurityMarks.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(securityMarks_);
+              securityMarks_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (eventTime_ != null) {
-                subBuilder = eventTime_.toBuilder();
-              }
-              eventTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(eventTime_);
-                eventTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 74: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (eventTime_ != null) {
+              subBuilder = eventTime_.toBuilder();
             }
-          case 82:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            eventTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(eventTime_);
+              eventTime_ = subBuilder.buildPartial();
             }
-          case 96:
-            {
-              int rawValue = input.readEnum();
 
-              severity_ = rawValue;
-              break;
+            break;
+          }
+          case 82: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 114:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              canonicalName_ = s;
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 120:
-            {
-              int rawValue = input.readEnum();
 
-              mute_ = rawValue;
-              break;
+            break;
+          }
+          case 96: {
+            int rawValue = input.readEnum();
+
+            severity_ = rawValue;
+            break;
+          }
+          case 114: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            canonicalName_ = s;
+            break;
+          }
+          case 120: {
+            int rawValue = input.readEnum();
+
+            mute_ = rawValue;
+            break;
+          }
+          case 136: {
+            int rawValue = input.readEnum();
+
+            findingClass_ = rawValue;
+            break;
+          }
+          case 146: {
+            com.google.cloud.securitycenter.v1.Indicator.Builder subBuilder = null;
+            if (indicator_ != null) {
+              subBuilder = indicator_.toBuilder();
+            }
+            indicator_ = input.readMessage(com.google.cloud.securitycenter.v1.Indicator.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(indicator_);
+              indicator_ = subBuilder.buildPartial();
             }
-          case 136:
-            {
-              int rawValue = input.readEnum();
 
-              findingClass_ = rawValue;
-              break;
+            break;
+          }
+          case 162: {
+            com.google.cloud.securitycenter.v1.Vulnerability.Builder subBuilder = null;
+            if (vulnerability_ != null) {
+              subBuilder = vulnerability_.toBuilder();
             }
-          case 146:
-            {
-              com.google.cloud.securitycenter.v1.Indicator.Builder subBuilder = null;
-              if (indicator_ != null) {
-                subBuilder = indicator_.toBuilder();
-              }
-              indicator_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1.Indicator.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(indicator_);
-                indicator_ = subBuilder.buildPartial();
-              }
-
-              break;
+            vulnerability_ = input.readMessage(com.google.cloud.securitycenter.v1.Vulnerability.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(vulnerability_);
+              vulnerability_ = subBuilder.buildPartial();
             }
-          case 162:
-            {
-              com.google.cloud.securitycenter.v1.Vulnerability.Builder subBuilder = null;
-              if (vulnerability_ != null) {
-                subBuilder = vulnerability_.toBuilder();
-              }
-              vulnerability_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1.Vulnerability.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(vulnerability_);
-                vulnerability_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 170: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (muteUpdateTime_ != null) {
+              subBuilder = muteUpdateTime_.toBuilder();
             }
-          case 170:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (muteUpdateTime_ != null) {
-                subBuilder = muteUpdateTime_.toBuilder();
-              }
-              muteUpdateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(muteUpdateTime_);
-                muteUpdateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            muteUpdateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(muteUpdateTime_);
+              muteUpdateTime_ = subBuilder.buildPartial();
             }
-          case 178:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                externalSystems_ =
-                    com.google.protobuf.MapField.newMapField(
-                        ExternalSystemsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000002;
-              }
-              com.google.protobuf.MapEntry<
-                      java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem>
-                  externalSystems__ =
-                      input.readMessage(
-                          ExternalSystemsDefaultEntryHolder.defaultEntry.getParserForType(),
-                          extensionRegistry);
-              externalSystems_
-                  .getMutableMap()
-                  .put(externalSystems__.getKey(), externalSystems__.getValue());
-              break;
+
+            break;
+          }
+          case 178: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              externalSystems_ = com.google.protobuf.MapField.newMapField(
+                  ExternalSystemsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 202:
-            {
-              com.google.cloud.securitycenter.v1.MitreAttack.Builder subBuilder = null;
-              if (mitreAttack_ != null) {
-                subBuilder = mitreAttack_.toBuilder();
-              }
-              mitreAttack_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1.MitreAttack.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(mitreAttack_);
-                mitreAttack_ = subBuilder.buildPartial();
-              }
-
-              break;
+            com.google.protobuf.MapEntry
+            externalSystems__ = input.readMessage(
+                ExternalSystemsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            externalSystems_.getMutableMap().put(
+                externalSystems__.getKey(), externalSystems__.getValue());
+            break;
+          }
+          case 202: {
+            com.google.cloud.securitycenter.v1.MitreAttack.Builder subBuilder = null;
+            if (mitreAttack_ != null) {
+              subBuilder = mitreAttack_.toBuilder();
             }
-          case 210:
-            {
-              com.google.cloud.securitycenter.v1.Access.Builder subBuilder = null;
-              if (access_ != null) {
-                subBuilder = access_.toBuilder();
-              }
-              access_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1.Access.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(access_);
-                access_ = subBuilder.buildPartial();
-              }
-
-              break;
+            mitreAttack_ = input.readMessage(com.google.cloud.securitycenter.v1.MitreAttack.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(mitreAttack_);
+              mitreAttack_ = subBuilder.buildPartial();
             }
-          case 226:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              muteInitiator_ = s;
-              break;
+            break;
+          }
+          case 210: {
+            com.google.cloud.securitycenter.v1.Access.Builder subBuilder = null;
+            if (access_ != null) {
+              subBuilder = access_.toBuilder();
             }
-          case 242:
-            {
-              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-                processes_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000008;
-              }
-              processes_.add(
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1.Process.parser(), extensionRegistry));
-              break;
+            access_ = input.readMessage(com.google.cloud.securitycenter.v1.Access.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(access_);
+              access_ = subBuilder.buildPartial();
             }
-          case 250:
-            {
-              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                connections_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000004;
-              }
-              connections_.add(
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1.Connection.parser(), extensionRegistry));
-              break;
+
+            break;
+          }
+          case 226: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            muteInitiator_ = s;
+            break;
+          }
+          case 242: {
+            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+              processes_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000008;
             }
-          case 274:
-            {
-              if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-                compliances_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000010;
-              }
-              compliances_.add(
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1.Compliance.parser(), extensionRegistry));
-              break;
+            processes_.add(
+                input.readMessage(com.google.cloud.securitycenter.v1.Process.parser(), extensionRegistry));
+            break;
+          }
+          case 250: {
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              connections_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000004;
             }
-          case 298:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              description_ = s;
-              break;
+            connections_.add(
+                input.readMessage(com.google.cloud.securitycenter.v1.Connection.parser(), extensionRegistry));
+            break;
+          }
+          case 274: {
+            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
+              compliances_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000010;
             }
-          case 306:
-            {
-              com.google.cloud.securitycenter.v1.Exfiltration.Builder subBuilder = null;
-              if (exfiltration_ != null) {
-                subBuilder = exfiltration_.toBuilder();
-              }
-              exfiltration_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1.Exfiltration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(exfiltration_);
-                exfiltration_ = subBuilder.buildPartial();
-              }
-
-              break;
+            compliances_.add(
+                input.readMessage(com.google.cloud.securitycenter.v1.Compliance.parser(), extensionRegistry));
+            break;
+          }
+          case 298: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            description_ = s;
+            break;
+          }
+          case 306: {
+            com.google.cloud.securitycenter.v1.Exfiltration.Builder subBuilder = null;
+            if (exfiltration_ != null) {
+              subBuilder = exfiltration_.toBuilder();
             }
-          case 314:
-            {
-              if (!((mutable_bitField0_ & 0x00000020) != 0)) {
-                iamBindings_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000020;
-              }
-              iamBindings_.add(
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1.IamBinding.parser(), extensionRegistry));
-              break;
+            exfiltration_ = input.readMessage(com.google.cloud.securitycenter.v1.Exfiltration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(exfiltration_);
+              exfiltration_ = subBuilder.buildPartial();
             }
-          case 322:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              nextSteps_ = s;
-              break;
+            break;
+          }
+          case 314: {
+            if (!((mutable_bitField0_ & 0x00000020) != 0)) {
+              iamBindings_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000020;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            iamBindings_.add(
+                input.readMessage(com.google.cloud.securitycenter.v1.IamBinding.parser(), extensionRegistry));
+            break;
+          }
+          case 322: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            nextSteps_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -422,7 +346,8 @@ private Finding(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000008) != 0)) {
         processes_ = java.util.Collections.unmodifiableList(processes_);
@@ -440,48 +365,43 @@ private Finding(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1.FindingOuterClass
-        .internal_static_google_cloud_securitycenter_v1_Finding_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1_Finding_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 7:
         return internalGetSourceProperties();
       case 22:
         return internalGetExternalSystems();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.FindingOuterClass
-        .internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.Finding.class,
-            com.google.cloud.securitycenter.v1.Finding.Builder.class);
+            com.google.cloud.securitycenter.v1.Finding.class, com.google.cloud.securitycenter.v1.Finding.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The state of the finding.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1.Finding.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified state.
      * 
@@ -490,8 +410,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The finding requires attention and has not been addressed yet.
      * 
@@ -500,8 +418,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(1), /** - * - * *
      * The finding has been fixed, triaged as a non-issue or otherwise addressed
      * and is no longer active.
@@ -514,8 +430,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified state.
      * 
@@ -524,8 +438,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The finding requires attention and has not been addressed yet.
      * 
@@ -534,8 +446,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 1; /** - * - * *
      * The finding has been fixed, triaged as a non-issue or otherwise addressed
      * and is no longer active.
@@ -545,6 +455,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INACTIVE_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -569,49 +480,49 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return ACTIVE;
-        case 2:
-          return INACTIVE;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return ACTIVE;
+        case 2: return INACTIVE;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.securitycenter.v1.Finding.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -629,18 +540,15 @@ private State(int value) {
   }
 
   /**
-   *
-   *
    * 
    * The severity of the finding.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1.Finding.Severity} */ - public enum Severity implements com.google.protobuf.ProtocolMessageEnum { + public enum Severity + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * This value is used for findings when a source doesn't write a severity
      * value.
@@ -650,8 +558,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
      */
     SEVERITY_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Vulnerability:
      * A critical vulnerability is easily discoverable by an external actor,
@@ -668,8 +574,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
      */
     CRITICAL(1),
     /**
-     *
-     *
      * 
      * Vulnerability:
      * A high risk vulnerability can be easily discovered and exploited in
@@ -689,8 +593,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
      */
     HIGH(2),
     /**
-     *
-     *
      * 
      * Vulnerability:
      * A medium risk vulnerability could be used by an actor to gain access to
@@ -709,8 +611,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
      */
     MEDIUM(3),
     /**
-     *
-     *
      * 
      * Vulnerability:
      * A low risk vulnerability hampers a security organization's ability to
@@ -729,8 +629,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * This value is used for findings when a source doesn't write a severity
      * value.
@@ -740,8 +638,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SEVERITY_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Vulnerability:
      * A critical vulnerability is easily discoverable by an external actor,
@@ -758,8 +654,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CRITICAL_VALUE = 1;
     /**
-     *
-     *
      * 
      * Vulnerability:
      * A high risk vulnerability can be easily discovered and exploited in
@@ -779,8 +673,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int HIGH_VALUE = 2;
     /**
-     *
-     *
      * 
      * Vulnerability:
      * A medium risk vulnerability could be used by an actor to gain access to
@@ -799,8 +691,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MEDIUM_VALUE = 3;
     /**
-     *
-     *
      * 
      * Vulnerability:
      * A low risk vulnerability hampers a security organization's ability to
@@ -816,6 +706,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int LOW_VALUE = 4;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -840,53 +731,51 @@ public static Severity valueOf(int value) {
      */
     public static Severity forNumber(int value) {
       switch (value) {
-        case 0:
-          return SEVERITY_UNSPECIFIED;
-        case 1:
-          return CRITICAL;
-        case 2:
-          return HIGH;
-        case 3:
-          return MEDIUM;
-        case 4:
-          return LOW;
-        default:
-          return null;
+        case 0: return SEVERITY_UNSPECIFIED;
+        case 1: return CRITICAL;
+        case 2: return HIGH;
+        case 3: return MEDIUM;
+        case 4: return LOW;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        Severity> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Severity findValueByNumber(int number) {
+              return Severity.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Severity findValueByNumber(int number) {
-            return Severity.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.securitycenter.v1.Finding.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final Severity[] VALUES = values();
 
-    public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Severity valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -904,18 +793,15 @@ private Severity(int value) {
   }
 
   /**
-   *
-   *
    * 
    * Mute state a finding can be in.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1.Finding.Mute} */ - public enum Mute implements com.google.protobuf.ProtocolMessageEnum { + public enum Mute + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified.
      * 
@@ -924,8 +810,6 @@ public enum Mute implements com.google.protobuf.ProtocolMessageEnum { */ MUTE_UNSPECIFIED(0), /** - * - * *
      * Finding has been muted.
      * 
@@ -934,8 +818,6 @@ public enum Mute implements com.google.protobuf.ProtocolMessageEnum { */ MUTED(1), /** - * - * *
      * Finding has been unmuted.
      * 
@@ -944,8 +826,6 @@ public enum Mute implements com.google.protobuf.ProtocolMessageEnum { */ UNMUTED(2), /** - * - * *
      * Finding has never been muted/unmuted.
      * 
@@ -957,8 +837,6 @@ public enum Mute implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified.
      * 
@@ -967,8 +845,6 @@ public enum Mute implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MUTE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Finding has been muted.
      * 
@@ -977,8 +853,6 @@ public enum Mute implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MUTED_VALUE = 1; /** - * - * *
      * Finding has been unmuted.
      * 
@@ -987,8 +861,6 @@ public enum Mute implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNMUTED_VALUE = 2; /** - * - * *
      * Finding has never been muted/unmuted.
      * 
@@ -997,6 +869,7 @@ public enum Mute implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNDEFINED_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1021,51 +894,50 @@ public static Mute valueOf(int value) { */ public static Mute forNumber(int value) { switch (value) { - case 0: - return MUTE_UNSPECIFIED; - case 1: - return MUTED; - case 2: - return UNMUTED; - case 4: - return UNDEFINED; - default: - return null; + case 0: return MUTE_UNSPECIFIED; + case 1: return MUTED; + case 2: return UNMUTED; + case 4: return UNDEFINED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Mute> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mute findValueByNumber(int number) { + return Mute.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Mute findValueByNumber(int number) { - return Mute.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.securitycenter.v1.Finding.getDescriptor().getEnumTypes().get(2); } private static final Mute[] VALUES = values(); - public static Mute valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Mute valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1083,18 +955,15 @@ private Mute(int value) { } /** - * - * *
    * Represents what kind of Finding it is.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1.Finding.FindingClass} */ - public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { + public enum FindingClass + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified finding class.
      * 
@@ -1103,8 +972,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { */ FINDING_CLASS_UNSPECIFIED(0), /** - * - * *
      * Describes unwanted or malicious activity.
      * 
@@ -1113,8 +980,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { */ THREAT(1), /** - * - * *
      * Describes a potential weakness in software that increases risk to
      * Confidentiality & Integrity & Availability.
@@ -1124,8 +989,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum {
      */
     VULNERABILITY(2),
     /**
-     *
-     *
      * 
      * Describes a potential weakness in cloud resource/asset configuration that
      * increases risk.
@@ -1135,8 +998,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum {
      */
     MISCONFIGURATION(3),
     /**
-     *
-     *
      * 
      * Describes a security observation that is for informational purposes.
      * 
@@ -1145,8 +1006,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { */ OBSERVATION(4), /** - * - * *
      * Describes an error that prevents some SCC functionality.
      * 
@@ -1158,8 +1017,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified finding class.
      * 
@@ -1168,8 +1025,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FINDING_CLASS_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Describes unwanted or malicious activity.
      * 
@@ -1178,8 +1033,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int THREAT_VALUE = 1; /** - * - * *
      * Describes a potential weakness in software that increases risk to
      * Confidentiality & Integrity & Availability.
@@ -1189,8 +1042,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int VULNERABILITY_VALUE = 2;
     /**
-     *
-     *
      * 
      * Describes a potential weakness in cloud resource/asset configuration that
      * increases risk.
@@ -1200,8 +1051,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MISCONFIGURATION_VALUE = 3;
     /**
-     *
-     *
      * 
      * Describes a security observation that is for informational purposes.
      * 
@@ -1210,8 +1059,6 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OBSERVATION_VALUE = 4; /** - * - * *
      * Describes an error that prevents some SCC functionality.
      * 
@@ -1220,6 +1067,7 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCC_ERROR_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1244,55 +1092,52 @@ public static FindingClass valueOf(int value) { */ public static FindingClass forNumber(int value) { switch (value) { - case 0: - return FINDING_CLASS_UNSPECIFIED; - case 1: - return THREAT; - case 2: - return VULNERABILITY; - case 3: - return MISCONFIGURATION; - case 4: - return OBSERVATION; - case 5: - return SCC_ERROR; - default: - return null; + case 0: return FINDING_CLASS_UNSPECIFIED; + case 1: return THREAT; + case 2: return VULNERABILITY; + case 3: return MISCONFIGURATION; + case 4: return OBSERVATION; + case 5: return SCC_ERROR; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + FindingClass> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FindingClass findValueByNumber(int number) { + return FindingClass.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FindingClass findValueByNumber(int number) { - return FindingClass.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.securitycenter.v1.Finding.getDescriptor().getEnumTypes().get(3); } private static final FindingClass[] VALUES = values(); - public static FindingClass valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static FindingClass valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1312,8 +1157,6 @@ private FindingClass(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1322,7 +1165,6 @@ private FindingClass(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1331,15 +1173,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1348,15 +1189,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1367,8 +1209,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PARENT_FIELD_NUMBER = 2; private volatile java.lang.Object parent_; /** - * - * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1378,7 +1218,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string parent = 2; - * * @return The parent. */ @java.lang.Override @@ -1387,15 +1226,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1405,15 +1243,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 2; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1424,8 +1263,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int RESOURCE_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object resourceName_; /** - * - * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -1436,7 +1273,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string resource_name = 3; - * * @return The resourceName. */ @java.lang.Override @@ -1445,15 +1281,14 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** - * - * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -1464,15 +1299,16 @@ public java.lang.String getResourceName() {
    * 
* * string resource_name = 3; - * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -1483,44 +1319,33 @@ public com.google.protobuf.ByteString getResourceNameBytes() { public static final int STATE_FIELD_NUMBER = 4; private int state_; /** - * - * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.State state = 4; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.State state = 4; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.Finding.State getState() { + @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.State result = - com.google.cloud.securitycenter.v1.Finding.State.valueOf(state_); + com.google.cloud.securitycenter.v1.Finding.State result = com.google.cloud.securitycenter.v1.Finding.State.valueOf(state_); return result == null ? com.google.cloud.securitycenter.v1.Finding.State.UNRECOGNIZED : result; } public static final int CATEGORY_FIELD_NUMBER = 5; private volatile java.lang.Object category_; /** - * - * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -1528,7 +1353,6 @@ public com.google.cloud.securitycenter.v1.Finding.State getState() {
    * 
* * string category = 5; - * * @return The category. */ @java.lang.Override @@ -1537,15 +1361,14 @@ public java.lang.String getCategory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; } } /** - * - * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -1553,15 +1376,16 @@ public java.lang.String getCategory() {
    * 
* * string category = 5; - * * @return The bytes for category. */ @java.lang.Override - public com.google.protobuf.ByteString getCategoryBytes() { + public com.google.protobuf.ByteString + getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); category_ = b; return b; } else { @@ -1572,8 +1396,6 @@ public com.google.protobuf.ByteString getCategoryBytes() { public static final int EXTERNAL_URI_FIELD_NUMBER = 6; private volatile java.lang.Object externalUri_; /** - * - * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -1581,7 +1403,6 @@ public com.google.protobuf.ByteString getCategoryBytes() {
    * 
* * string external_uri = 6; - * * @return The externalUri. */ @java.lang.Override @@ -1590,15 +1411,14 @@ public java.lang.String getExternalUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalUri_ = s; return s; } } /** - * - * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -1606,15 +1426,16 @@ public java.lang.String getExternalUri() {
    * 
* * string external_uri = 6; - * * @return The bytes for externalUri. */ @java.lang.Override - public com.google.protobuf.ByteString getExternalUriBytes() { + public com.google.protobuf.ByteString + getExternalUriBytes() { java.lang.Object ref = externalUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); externalUri_ = b; return b; } else { @@ -1623,25 +1444,21 @@ public com.google.protobuf.ByteString getExternalUriBytes() { } public static final int SOURCE_PROPERTIES_FIELD_NUMBER = 7; - private static final class SourcePropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.Value> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1.FindingOuterClass - .internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.securitycenter.v1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); } - - private com.google.protobuf.MapField - sourceProperties_; - + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> sourceProperties_; private com.google.protobuf.MapField - internalGetSourceProperties() { + internalGetSourceProperties() { if (sourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( SourcePropertiesDefaultEntryHolder.defaultEntry); @@ -1653,8 +1470,6 @@ public int getSourcePropertiesCount() { return internalGetSourceProperties().getMap().size(); } /** - * - * *
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -1664,22 +1479,22 @@ public int getSourcePropertiesCount() {
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
+
   @java.lang.Override
-  public boolean containsSourceProperties(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsSourceProperties(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetSourceProperties().getMap().containsKey(key);
   }
-  /** Use {@link #getSourcePropertiesMap()} instead. */
+  /**
+   * Use {@link #getSourcePropertiesMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getSourceProperties() {
     return getSourcePropertiesMap();
   }
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -1690,12 +1505,11 @@ public java.util.Map getSourcePrope
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
   @java.lang.Override
+
   public java.util.Map getSourcePropertiesMap() {
     return internalGetSourceProperties().getMap();
   }
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -1706,18 +1520,16 @@ public java.util.Map getSourcePrope
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
   @java.lang.Override
+
   public com.google.protobuf.Value getSourcePropertiesOrDefault(
-      java.lang.String key, com.google.protobuf.Value defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+      java.lang.String key,
+      com.google.protobuf.Value defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetSourceProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -1728,10 +1540,10 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault(
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
   @java.lang.Override
-  public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+
+  public com.google.protobuf.Value getSourcePropertiesOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetSourceProperties().getMap();
     if (!map.containsKey(key)) {
@@ -1743,18 +1555,13 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key
   public static final int SECURITY_MARKS_FIELD_NUMBER = 8;
   private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_;
   /**
-   *
-   *
    * 
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the securityMarks field is set. */ @java.lang.Override @@ -1762,38 +1569,27 @@ public boolean hasSecurityMarks() { return securityMarks_ != null; } /** - * - * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The securityMarks. */ @java.lang.Override public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() : securityMarks_; } /** - * - * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { @@ -1803,8 +1599,6 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark public static final int EVENT_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp eventTime_; /** - * - * *
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -1816,7 +1610,6 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
    * 
* * .google.protobuf.Timestamp event_time = 9; - * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -1824,8 +1617,6 @@ public boolean hasEventTime() { return eventTime_ != null; } /** - * - * *
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -1837,7 +1628,6 @@ public boolean hasEventTime() {
    * 
* * .google.protobuf.Timestamp event_time = 9; - * * @return The eventTime. */ @java.lang.Override @@ -1845,8 +1635,6 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** - * - * *
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -1867,14 +1655,11 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
   public static final int CREATE_TIME_FIELD_NUMBER = 10;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1882,14 +1667,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return The createTime. */ @java.lang.Override @@ -1897,8 +1679,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time at which the finding was created in Security Command Center.
    * 
@@ -1913,48 +1693,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int SEVERITY_FIELD_NUMBER = 12; private int severity_; /** - * - * *
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.Severity severity = 12; - * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.Severity severity = 12; - * * @return The severity. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.Finding.Severity getSeverity() { + @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.Severity result = - com.google.cloud.securitycenter.v1.Finding.Severity.valueOf(severity_); - return result == null - ? com.google.cloud.securitycenter.v1.Finding.Severity.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.Finding.Severity result = com.google.cloud.securitycenter.v1.Finding.Severity.valueOf(severity_); + return result == null ? com.google.cloud.securitycenter.v1.Finding.Severity.UNRECOGNIZED : result; } public static final int CANONICAL_NAME_FIELD_NUMBER = 14; private volatile java.lang.Object canonicalName_; /** - * - * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -1965,7 +1732,6 @@ public com.google.cloud.securitycenter.v1.Finding.Severity getSeverity() {
    * 
* * string canonical_name = 14; - * * @return The canonicalName. */ @java.lang.Override @@ -1974,15 +1740,14 @@ public java.lang.String getCanonicalName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; } } /** - * - * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -1993,15 +1758,16 @@ public java.lang.String getCanonicalName() {
    * 
* * string canonical_name = 14; - * * @return The bytes for canonicalName. */ @java.lang.Override - public com.google.protobuf.ByteString getCanonicalNameBytes() { + public com.google.protobuf.ByteString + getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -2012,8 +1778,6 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() { public static final int MUTE_FIELD_NUMBER = 15; private int mute_; /** - * - * *
    * Indicates the mute state of a finding (either muted, unmuted
    * or undefined). Unlike other attributes of a finding, a finding provider
@@ -2021,16 +1785,12 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() {
    * 
* * .google.cloud.securitycenter.v1.Finding.Mute mute = 15; - * * @return The enum numeric value on the wire for mute. */ - @java.lang.Override - public int getMuteValue() { + @java.lang.Override public int getMuteValue() { return mute_; } /** - * - * *
    * Indicates the mute state of a finding (either muted, unmuted
    * or undefined). Unlike other attributes of a finding, a finding provider
@@ -2038,60 +1798,44 @@ public int getMuteValue() {
    * 
* * .google.cloud.securitycenter.v1.Finding.Mute mute = 15; - * * @return The mute. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.Finding.Mute getMute() { + @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.Mute getMute() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.Mute result = - com.google.cloud.securitycenter.v1.Finding.Mute.valueOf(mute_); + com.google.cloud.securitycenter.v1.Finding.Mute result = com.google.cloud.securitycenter.v1.Finding.Mute.valueOf(mute_); return result == null ? com.google.cloud.securitycenter.v1.Finding.Mute.UNRECOGNIZED : result; } public static final int FINDING_CLASS_FIELD_NUMBER = 17; private int findingClass_; /** - * - * *
    * The class of the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.FindingClass finding_class = 17; - * * @return The enum numeric value on the wire for findingClass. */ - @java.lang.Override - public int getFindingClassValue() { + @java.lang.Override public int getFindingClassValue() { return findingClass_; } /** - * - * *
    * The class of the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.FindingClass finding_class = 17; - * * @return The findingClass. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.Finding.FindingClass getFindingClass() { + @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.FindingClass getFindingClass() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.FindingClass result = - com.google.cloud.securitycenter.v1.Finding.FindingClass.valueOf(findingClass_); - return result == null - ? com.google.cloud.securitycenter.v1.Finding.FindingClass.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.Finding.FindingClass result = com.google.cloud.securitycenter.v1.Finding.FindingClass.valueOf(findingClass_); + return result == null ? com.google.cloud.securitycenter.v1.Finding.FindingClass.UNRECOGNIZED : result; } public static final int INDICATOR_FIELD_NUMBER = 18; private com.google.cloud.securitycenter.v1.Indicator indicator_; /** - * - * *
    * Represents what's commonly known as an Indicator of compromise (IoC) in
    * computer forensics. This is an artifact observed on a network or in an
@@ -2101,7 +1845,6 @@ public com.google.cloud.securitycenter.v1.Finding.FindingClass getFindingClass()
    * 
* * .google.cloud.securitycenter.v1.Indicator indicator = 18; - * * @return Whether the indicator field is set. */ @java.lang.Override @@ -2109,8 +1852,6 @@ public boolean hasIndicator() { return indicator_ != null; } /** - * - * *
    * Represents what's commonly known as an Indicator of compromise (IoC) in
    * computer forensics. This is an artifact observed on a network or in an
@@ -2120,18 +1861,13 @@ public boolean hasIndicator() {
    * 
* * .google.cloud.securitycenter.v1.Indicator indicator = 18; - * * @return The indicator. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Indicator getIndicator() { - return indicator_ == null - ? com.google.cloud.securitycenter.v1.Indicator.getDefaultInstance() - : indicator_; + return indicator_ == null ? com.google.cloud.securitycenter.v1.Indicator.getDefaultInstance() : indicator_; } /** - * - * *
    * Represents what's commonly known as an Indicator of compromise (IoC) in
    * computer forensics. This is an artifact observed on a network or in an
@@ -2150,8 +1886,6 @@ public com.google.cloud.securitycenter.v1.IndicatorOrBuilder getIndicatorOrBuild
   public static final int VULNERABILITY_FIELD_NUMBER = 20;
   private com.google.cloud.securitycenter.v1.Vulnerability vulnerability_;
   /**
-   *
-   *
    * 
    * Represents vulnerability specific fields like cve, cvss scores etc.
    * CVE stands for Common Vulnerabilities and Exposures
@@ -2159,7 +1893,6 @@ public com.google.cloud.securitycenter.v1.IndicatorOrBuilder getIndicatorOrBuild
    * 
* * .google.cloud.securitycenter.v1.Vulnerability vulnerability = 20; - * * @return Whether the vulnerability field is set. */ @java.lang.Override @@ -2167,8 +1900,6 @@ public boolean hasVulnerability() { return vulnerability_ != null; } /** - * - * *
    * Represents vulnerability specific fields like cve, cvss scores etc.
    * CVE stands for Common Vulnerabilities and Exposures
@@ -2176,18 +1907,13 @@ public boolean hasVulnerability() {
    * 
* * .google.cloud.securitycenter.v1.Vulnerability vulnerability = 20; - * * @return The vulnerability. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Vulnerability getVulnerability() { - return vulnerability_ == null - ? com.google.cloud.securitycenter.v1.Vulnerability.getDefaultInstance() - : vulnerability_; + return vulnerability_ == null ? com.google.cloud.securitycenter.v1.Vulnerability.getDefaultInstance() : vulnerability_; } /** - * - * *
    * Represents vulnerability specific fields like cve, cvss scores etc.
    * CVE stands for Common Vulnerabilities and Exposures
@@ -2204,16 +1930,11 @@ public com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder getVulnerabilit
   public static final int MUTE_UPDATE_TIME_FIELD_NUMBER = 21;
   private com.google.protobuf.Timestamp muteUpdateTime_;
   /**
-   *
-   *
    * 
    * Output only. The most recent time this finding was muted or unmuted.
    * 
* - * - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the muteUpdateTime field is set. */ @java.lang.Override @@ -2221,34 +1942,23 @@ public boolean hasMuteUpdateTime() { return muteUpdateTime_ != null; } /** - * - * *
    * Output only. The most recent time this finding was muted or unmuted.
    * 
* - * - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The muteUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getMuteUpdateTime() { - return muteUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : muteUpdateTime_; + return muteUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : muteUpdateTime_; } /** - * - * *
    * Output only. The most recent time this finding was muted or unmuted.
    * 
* - * - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getMuteUpdateTimeOrBuilder() { @@ -2256,29 +1966,21 @@ public com.google.protobuf.TimestampOrBuilder getMuteUpdateTimeOrBuilder() { } public static final int EXTERNAL_SYSTEMS_FIELD_NUMBER = 22; - private static final class ExternalSystemsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem> - defaultEntry = + java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.securitycenter.v1.FindingOuterClass - .internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.securitycenter.v1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance()); } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem> - externalSystems_; - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem> - internalGetExternalSystems() { + java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem> externalSystems_; + private com.google.protobuf.MapField + internalGetExternalSystems() { if (externalSystems_ == null) { return com.google.protobuf.MapField.emptyMapField( ExternalSystemsDefaultEntryHolder.defaultEntry); @@ -2290,88 +1992,72 @@ public int getExternalSystemsCount() { return internalGetExternalSystems().getMap().size(); } /** - * - * *
    * Output only. Third party SIEM/SOAR fields within SCC, contains external
    * system information and external system finding fields.
    * 
* - * - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + @java.lang.Override - public boolean containsExternalSystems(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsExternalSystems( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetExternalSystems().getMap().containsKey(key); } - /** Use {@link #getExternalSystemsMap()} instead. */ + /** + * Use {@link #getExternalSystemsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getExternalSystems() { + public java.util.Map getExternalSystems() { return getExternalSystemsMap(); } /** - * - * *
    * Output only. Third party SIEM/SOAR fields within SCC, contains external
    * system information and external system finding fields.
    * 
* - * - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.Map - getExternalSystemsMap() { + + public java.util.Map getExternalSystemsMap() { return internalGetExternalSystems().getMap(); } /** - * - * *
    * Output only. Third party SIEM/SOAR fields within SCC, contains external
    * system information and external system finding fields.
    * 
* - * - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault( - java.lang.String key, com.google.cloud.securitycenter.v1.ExternalSystem defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.securitycenter.v1.ExternalSystem defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExternalSystems().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Output only. Third party SIEM/SOAR fields within SCC, contains external
    * system information and external system finding fields.
    * 
* - * - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExternalSystems().getMap(); if (!map.containsKey(key)) { @@ -2383,15 +2069,12 @@ public com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrThr public static final int MITRE_ATTACK_FIELD_NUMBER = 25; private com.google.cloud.securitycenter.v1.MitreAttack mitreAttack_; /** - * - * *
    * MITRE ATT&CK tactics and techniques related to this finding.
    * See: https://attack.mitre.org
    * 
* * .google.cloud.securitycenter.v1.MitreAttack mitre_attack = 25; - * * @return Whether the mitreAttack field is set. */ @java.lang.Override @@ -2399,26 +2082,19 @@ public boolean hasMitreAttack() { return mitreAttack_ != null; } /** - * - * *
    * MITRE ATT&CK tactics and techniques related to this finding.
    * See: https://attack.mitre.org
    * 
* * .google.cloud.securitycenter.v1.MitreAttack mitre_attack = 25; - * * @return The mitreAttack. */ @java.lang.Override public com.google.cloud.securitycenter.v1.MitreAttack getMitreAttack() { - return mitreAttack_ == null - ? com.google.cloud.securitycenter.v1.MitreAttack.getDefaultInstance() - : mitreAttack_; + return mitreAttack_ == null ? com.google.cloud.securitycenter.v1.MitreAttack.getDefaultInstance() : mitreAttack_; } /** - * - * *
    * MITRE ATT&CK tactics and techniques related to this finding.
    * See: https://attack.mitre.org
@@ -2434,15 +2110,12 @@ public com.google.cloud.securitycenter.v1.MitreAttackOrBuilder getMitreAttackOrB
   public static final int ACCESS_FIELD_NUMBER = 26;
   private com.google.cloud.securitycenter.v1.Access access_;
   /**
-   *
-   *
    * 
    * Access details associated to the Finding, such as more information on the
    * caller, which method was accessed, from where, etc.
    * 
* * .google.cloud.securitycenter.v1.Access access = 26; - * * @return Whether the access field is set. */ @java.lang.Override @@ -2450,26 +2123,19 @@ public boolean hasAccess() { return access_ != null; } /** - * - * *
    * Access details associated to the Finding, such as more information on the
    * caller, which method was accessed, from where, etc.
    * 
* * .google.cloud.securitycenter.v1.Access access = 26; - * * @return The access. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Access getAccess() { - return access_ == null - ? com.google.cloud.securitycenter.v1.Access.getDefaultInstance() - : access_; + return access_ == null ? com.google.cloud.securitycenter.v1.Access.getDefaultInstance() : access_; } /** - * - * *
    * Access details associated to the Finding, such as more information on the
    * caller, which method was accessed, from where, etc.
@@ -2485,8 +2151,6 @@ public com.google.cloud.securitycenter.v1.AccessOrBuilder getAccessOrBuilder() {
   public static final int CONNECTIONS_FIELD_NUMBER = 31;
   private java.util.List connections_;
   /**
-   *
-   *
    * 
    * Contains information about the IP connection associated with the finding.
    * 
@@ -2498,8 +2162,6 @@ public java.util.List getConnecti return connections_; } /** - * - * *
    * Contains information about the IP connection associated with the finding.
    * 
@@ -2507,13 +2169,11 @@ public java.util.List getConnecti * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ @java.lang.Override - public java.util.List + public java.util.List getConnectionsOrBuilderList() { return connections_; } /** - * - * *
    * Contains information about the IP connection associated with the finding.
    * 
@@ -2525,8 +2185,6 @@ public int getConnectionsCount() { return connections_.size(); } /** - * - * *
    * Contains information about the IP connection associated with the finding.
    * 
@@ -2538,8 +2196,6 @@ public com.google.cloud.securitycenter.v1.Connection getConnections(int index) { return connections_.get(index); } /** - * - * *
    * Contains information about the IP connection associated with the finding.
    * 
@@ -2547,15 +2203,14 @@ public com.google.cloud.securitycenter.v1.Connection getConnections(int index) { * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ConnectionOrBuilder getConnectionsOrBuilder(int index) { + public com.google.cloud.securitycenter.v1.ConnectionOrBuilder getConnectionsOrBuilder( + int index) { return connections_.get(index); } public static final int MUTE_INITIATOR_FIELD_NUMBER = 28; private volatile java.lang.Object muteInitiator_; /** - * - * *
    * First known as mute_annotation. Records additional information about the
    * mute operation e.g. mute config that muted the finding, user who muted the
@@ -2564,7 +2219,6 @@ public com.google.cloud.securitycenter.v1.ConnectionOrBuilder getConnectionsOrBu
    * 
* * string mute_initiator = 28; - * * @return The muteInitiator. */ @java.lang.Override @@ -2573,15 +2227,14 @@ public java.lang.String getMuteInitiator() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); muteInitiator_ = s; return s; } } /** - * - * *
    * First known as mute_annotation. Records additional information about the
    * mute operation e.g. mute config that muted the finding, user who muted the
@@ -2590,15 +2243,16 @@ public java.lang.String getMuteInitiator() {
    * 
* * string mute_initiator = 28; - * * @return The bytes for muteInitiator. */ @java.lang.Override - public com.google.protobuf.ByteString getMuteInitiatorBytes() { + public com.google.protobuf.ByteString + getMuteInitiatorBytes() { java.lang.Object ref = muteInitiator_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); muteInitiator_ = b; return b; } else { @@ -2609,8 +2263,6 @@ public com.google.protobuf.ByteString getMuteInitiatorBytes() { public static final int PROCESSES_FIELD_NUMBER = 30; private java.util.List processes_; /** - * - * *
    * Represents operating system processes associated with the Finding.
    * 
@@ -2622,8 +2274,6 @@ public java.util.List getProcessesLi return processes_; } /** - * - * *
    * Represents operating system processes associated with the Finding.
    * 
@@ -2631,13 +2281,11 @@ public java.util.List getProcessesLi * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ @java.lang.Override - public java.util.List + public java.util.List getProcessesOrBuilderList() { return processes_; } /** - * - * *
    * Represents operating system processes associated with the Finding.
    * 
@@ -2649,8 +2297,6 @@ public int getProcessesCount() { return processes_.size(); } /** - * - * *
    * Represents operating system processes associated with the Finding.
    * 
@@ -2662,8 +2308,6 @@ public com.google.cloud.securitycenter.v1.Process getProcesses(int index) { return processes_.get(index); } /** - * - * *
    * Represents operating system processes associated with the Finding.
    * 
@@ -2671,15 +2315,14 @@ public com.google.cloud.securitycenter.v1.Process getProcesses(int index) { * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder(int index) { + public com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder( + int index) { return processes_.get(index); } public static final int COMPLIANCES_FIELD_NUMBER = 34; private java.util.List compliances_; /** - * - * *
    * Contains compliance information for security standards associated to the
    * finding.
@@ -2692,8 +2335,6 @@ public java.util.List getComplian
     return compliances_;
   }
   /**
-   *
-   *
    * 
    * Contains compliance information for security standards associated to the
    * finding.
@@ -2702,13 +2343,11 @@ public java.util.List getComplian
    * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getCompliancesOrBuilderList() {
     return compliances_;
   }
   /**
-   *
-   *
    * 
    * Contains compliance information for security standards associated to the
    * finding.
@@ -2721,8 +2360,6 @@ public int getCompliancesCount() {
     return compliances_.size();
   }
   /**
-   *
-   *
    * 
    * Contains compliance information for security standards associated to the
    * finding.
@@ -2735,8 +2372,6 @@ public com.google.cloud.securitycenter.v1.Compliance getCompliances(int index) {
     return compliances_.get(index);
   }
   /**
-   *
-   *
    * 
    * Contains compliance information for security standards associated to the
    * finding.
@@ -2745,21 +2380,19 @@ public com.google.cloud.securitycenter.v1.Compliance getCompliances(int index) {
    * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
    */
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBuilder(int index) {
+  public com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBuilder(
+      int index) {
     return compliances_.get(index);
   }
 
   public static final int DESCRIPTION_FIELD_NUMBER = 37;
   private volatile java.lang.Object description_;
   /**
-   *
-   *
    * 
    * Contains more detail about the finding.
    * 
* * string description = 37; - * * @return The description. */ @java.lang.Override @@ -2768,29 +2401,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Contains more detail about the finding.
    * 
* * string description = 37; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2801,14 +2434,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int EXFILTRATION_FIELD_NUMBER = 38; private com.google.cloud.securitycenter.v1.Exfiltration exfiltration_; /** - * - * *
    * Represents exfiltration associated with the Finding.
    * 
* * .google.cloud.securitycenter.v1.Exfiltration exfiltration = 38; - * * @return Whether the exfiltration field is set. */ @java.lang.Override @@ -2816,25 +2446,18 @@ public boolean hasExfiltration() { return exfiltration_ != null; } /** - * - * *
    * Represents exfiltration associated with the Finding.
    * 
* * .google.cloud.securitycenter.v1.Exfiltration exfiltration = 38; - * * @return The exfiltration. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Exfiltration getExfiltration() { - return exfiltration_ == null - ? com.google.cloud.securitycenter.v1.Exfiltration.getDefaultInstance() - : exfiltration_; + return exfiltration_ == null ? com.google.cloud.securitycenter.v1.Exfiltration.getDefaultInstance() : exfiltration_; } /** - * - * *
    * Represents exfiltration associated with the Finding.
    * 
@@ -2849,8 +2472,6 @@ public com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder getExfiltrationO public static final int IAM_BINDINGS_FIELD_NUMBER = 39; private java.util.List iamBindings_; /** - * - * *
    * Represents IAM bindings associated with the Finding.
    * 
@@ -2862,8 +2483,6 @@ public java.util.List getIamBindi return iamBindings_; } /** - * - * *
    * Represents IAM bindings associated with the Finding.
    * 
@@ -2871,13 +2490,11 @@ public java.util.List getIamBindi * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ @java.lang.Override - public java.util.List + public java.util.List getIamBindingsOrBuilderList() { return iamBindings_; } /** - * - * *
    * Represents IAM bindings associated with the Finding.
    * 
@@ -2889,8 +2506,6 @@ public int getIamBindingsCount() { return iamBindings_.size(); } /** - * - * *
    * Represents IAM bindings associated with the Finding.
    * 
@@ -2902,8 +2517,6 @@ public com.google.cloud.securitycenter.v1.IamBinding getIamBindings(int index) { return iamBindings_.get(index); } /** - * - * *
    * Represents IAM bindings associated with the Finding.
    * 
@@ -2911,21 +2524,19 @@ public com.google.cloud.securitycenter.v1.IamBinding getIamBindings(int index) { * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.IamBindingOrBuilder getIamBindingsOrBuilder(int index) { + public com.google.cloud.securitycenter.v1.IamBindingOrBuilder getIamBindingsOrBuilder( + int index) { return iamBindings_.get(index); } public static final int NEXT_STEPS_FIELD_NUMBER = 40; private volatile java.lang.Object nextSteps_; /** - * - * *
    * Next steps associate to the finding.
    * 
* * string next_steps = 40; - * * @return The nextSteps. */ @java.lang.Override @@ -2934,29 +2545,29 @@ public java.lang.String getNextSteps() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextSteps_ = s; return s; } } /** - * - * *
    * Next steps associate to the finding.
    * 
* * string next_steps = 40; - * * @return The bytes for nextSteps. */ @java.lang.Override - public com.google.protobuf.ByteString getNextStepsBytes() { + public com.google.protobuf.ByteString + getNextStepsBytes() { java.lang.Object ref = nextSteps_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextSteps_ = b; return b; } else { @@ -2965,7 +2576,6 @@ public com.google.protobuf.ByteString getNextStepsBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2977,7 +2587,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -2996,8 +2607,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, externalUri_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetSourceProperties(), SourcePropertiesDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetSourceProperties(), + SourcePropertiesDefaultEntryHolder.defaultEntry, + 7); if (securityMarks_ != null) { output.writeMessage(8, getSecurityMarks()); } @@ -3007,8 +2622,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(10, getCreateTime()); } - if (severity_ - != com.google.cloud.securitycenter.v1.Finding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + if (severity_ != com.google.cloud.securitycenter.v1.Finding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { output.writeEnum(12, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { @@ -3017,9 +2631,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (mute_ != com.google.cloud.securitycenter.v1.Finding.Mute.MUTE_UNSPECIFIED.getNumber()) { output.writeEnum(15, mute_); } - if (findingClass_ - != com.google.cloud.securitycenter.v1.Finding.FindingClass.FINDING_CLASS_UNSPECIFIED - .getNumber()) { + if (findingClass_ != com.google.cloud.securitycenter.v1.Finding.FindingClass.FINDING_CLASS_UNSPECIFIED.getNumber()) { output.writeEnum(17, findingClass_); } if (indicator_ != null) { @@ -3031,8 +2643,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (muteUpdateTime_ != null) { output.writeMessage(21, getMuteUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetExternalSystems(), ExternalSystemsDefaultEntryHolder.defaultEntry, 22); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetExternalSystems(), + ExternalSystemsDefaultEntryHolder.defaultEntry, + 22); if (mitreAttack_ != null) { output.writeMessage(25, getMitreAttack()); } @@ -3082,7 +2698,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceName_); } if (state_ != com.google.cloud.securitycenter.v1.Finding.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, category_); @@ -3090,87 +2707,98 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, externalUri_); } - for (java.util.Map.Entry entry : - internalGetSourceProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry sourceProperties__ = - SourcePropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, sourceProperties__); + for (java.util.Map.Entry entry + : internalGetSourceProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry + sourceProperties__ = SourcePropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, sourceProperties__); } if (securityMarks_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSecurityMarks()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSecurityMarks()); } if (eventTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getEventTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getEventTime()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getCreateTime()); } - if (severity_ - != com.google.cloud.securitycenter.v1.Finding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, severity_); + if (severity_ != com.google.cloud.securitycenter.v1.Finding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, canonicalName_); } if (mute_ != com.google.cloud.securitycenter.v1.Finding.Mute.MUTE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, mute_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, mute_); } - if (findingClass_ - != com.google.cloud.securitycenter.v1.Finding.FindingClass.FINDING_CLASS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, findingClass_); + if (findingClass_ != com.google.cloud.securitycenter.v1.Finding.FindingClass.FINDING_CLASS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(17, findingClass_); } if (indicator_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getIndicator()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getIndicator()); } if (vulnerability_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getVulnerability()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getVulnerability()); } if (muteUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getMuteUpdateTime()); - } - for (java.util.Map.Entry - entry : internalGetExternalSystems().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem> - externalSystems__ = - ExternalSystemsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, externalSystems__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getMuteUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetExternalSystems().getMap().entrySet()) { + com.google.protobuf.MapEntry + externalSystems__ = ExternalSystemsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, externalSystems__); } if (mitreAttack_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getMitreAttack()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, getMitreAttack()); } if (access_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getAccess()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(26, getAccess()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(muteInitiator_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, muteInitiator_); } for (int i = 0; i < processes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, processes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(30, processes_.get(i)); } for (int i = 0; i < connections_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, connections_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(31, connections_.get(i)); } for (int i = 0; i < compliances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(34, compliances_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(34, compliances_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37, description_); } if (exfiltration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getExfiltration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(38, getExfiltration()); } for (int i = 0; i < iamBindings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(39, iamBindings_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(39, iamBindings_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextSteps_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(40, nextSteps_); @@ -3183,69 +2811,92 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Finding)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Finding other = - (com.google.cloud.securitycenter.v1.Finding) obj; + com.google.cloud.securitycenter.v1.Finding other = (com.google.cloud.securitycenter.v1.Finding) obj; - if (!getName().equals(other.getName())) return false; - if (!getParent().equals(other.getParent())) return false; - if (!getResourceName().equals(other.getResourceName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getResourceName() + .equals(other.getResourceName())) return false; if (state_ != other.state_) return false; - if (!getCategory().equals(other.getCategory())) return false; - if (!getExternalUri().equals(other.getExternalUri())) return false; - if (!internalGetSourceProperties().equals(other.internalGetSourceProperties())) return false; + if (!getCategory() + .equals(other.getCategory())) return false; + if (!getExternalUri() + .equals(other.getExternalUri())) return false; + if (!internalGetSourceProperties().equals( + other.internalGetSourceProperties())) return false; if (hasSecurityMarks() != other.hasSecurityMarks()) return false; if (hasSecurityMarks()) { - if (!getSecurityMarks().equals(other.getSecurityMarks())) return false; + if (!getSecurityMarks() + .equals(other.getSecurityMarks())) return false; } if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { - if (!getEventTime().equals(other.getEventTime())) return false; + if (!getEventTime() + .equals(other.getEventTime())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (severity_ != other.severity_) return false; - if (!getCanonicalName().equals(other.getCanonicalName())) return false; + if (!getCanonicalName() + .equals(other.getCanonicalName())) return false; if (mute_ != other.mute_) return false; if (findingClass_ != other.findingClass_) return false; if (hasIndicator() != other.hasIndicator()) return false; if (hasIndicator()) { - if (!getIndicator().equals(other.getIndicator())) return false; + if (!getIndicator() + .equals(other.getIndicator())) return false; } if (hasVulnerability() != other.hasVulnerability()) return false; if (hasVulnerability()) { - if (!getVulnerability().equals(other.getVulnerability())) return false; + if (!getVulnerability() + .equals(other.getVulnerability())) return false; } if (hasMuteUpdateTime() != other.hasMuteUpdateTime()) return false; if (hasMuteUpdateTime()) { - if (!getMuteUpdateTime().equals(other.getMuteUpdateTime())) return false; + if (!getMuteUpdateTime() + .equals(other.getMuteUpdateTime())) return false; } - if (!internalGetExternalSystems().equals(other.internalGetExternalSystems())) return false; + if (!internalGetExternalSystems().equals( + other.internalGetExternalSystems())) return false; if (hasMitreAttack() != other.hasMitreAttack()) return false; if (hasMitreAttack()) { - if (!getMitreAttack().equals(other.getMitreAttack())) return false; + if (!getMitreAttack() + .equals(other.getMitreAttack())) return false; } if (hasAccess() != other.hasAccess()) return false; if (hasAccess()) { - if (!getAccess().equals(other.getAccess())) return false; - } - if (!getConnectionsList().equals(other.getConnectionsList())) return false; - if (!getMuteInitiator().equals(other.getMuteInitiator())) return false; - if (!getProcessesList().equals(other.getProcessesList())) return false; - if (!getCompliancesList().equals(other.getCompliancesList())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getAccess() + .equals(other.getAccess())) return false; + } + if (!getConnectionsList() + .equals(other.getConnectionsList())) return false; + if (!getMuteInitiator() + .equals(other.getMuteInitiator())) return false; + if (!getProcessesList() + .equals(other.getProcessesList())) return false; + if (!getCompliancesList() + .equals(other.getCompliancesList())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasExfiltration() != other.hasExfiltration()) return false; if (hasExfiltration()) { - if (!getExfiltration().equals(other.getExfiltration())) return false; + if (!getExfiltration() + .equals(other.getExfiltration())) return false; } - if (!getIamBindingsList().equals(other.getIamBindingsList())) return false; - if (!getNextSteps().equals(other.getNextSteps())) return false; + if (!getIamBindingsList() + .equals(other.getIamBindingsList())) return false; + if (!getNextSteps() + .equals(other.getNextSteps())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3348,104 +2999,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Finding parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Finding parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Finding parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Finding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Finding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Finding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Finding parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Finding parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Finding parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.Finding parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.Finding parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Finding parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Finding parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Finding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.Finding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Security Command Center finding.
    * A finding is a record of assessment data like security, risk, health, or
@@ -3457,47 +3101,47 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.Finding}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Finding)
       com.google.cloud.securitycenter.v1.FindingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.FindingOuterClass
-          .internal_static_google_cloud_securitycenter_v1_Finding_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1_Finding_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 7:
           return internalGetSourceProperties();
         case 22:
           return internalGetExternalSystems();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 7:
           return internalGetMutableSourceProperties();
         case 22:
           return internalGetMutableExternalSystems();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.FindingOuterClass
-          .internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.Finding.class,
-              com.google.cloud.securitycenter.v1.Finding.Builder.class);
+              com.google.cloud.securitycenter.v1.Finding.class, com.google.cloud.securitycenter.v1.Finding.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.Finding.newBuilder()
@@ -3505,20 +3149,20 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getConnectionsFieldBuilder();
         getProcessesFieldBuilder();
         getCompliancesFieldBuilder();
         getIamBindingsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3632,9 +3276,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.FindingOuterClass
-          .internal_static_google_cloud_securitycenter_v1_Finding_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1_Finding_descriptor;
     }
 
     @java.lang.Override
@@ -3653,8 +3297,7 @@ public com.google.cloud.securitycenter.v1.Finding build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.Finding buildPartial() {
-      com.google.cloud.securitycenter.v1.Finding result =
-          new com.google.cloud.securitycenter.v1.Finding(this);
+      com.google.cloud.securitycenter.v1.Finding result = new com.google.cloud.securitycenter.v1.Finding(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.parent_ = parent_;
@@ -3762,39 +3405,38 @@ public com.google.cloud.securitycenter.v1.Finding buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.Finding) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.Finding) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.Finding)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3826,7 +3468,8 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) {
         externalUri_ = other.externalUri_;
         onChanged();
       }
-      internalGetMutableSourceProperties().mergeFrom(other.internalGetSourceProperties());
+      internalGetMutableSourceProperties().mergeFrom(
+          other.internalGetSourceProperties());
       if (other.hasSecurityMarks()) {
         mergeSecurityMarks(other.getSecurityMarks());
       }
@@ -3858,7 +3501,8 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) {
       if (other.hasMuteUpdateTime()) {
         mergeMuteUpdateTime(other.getMuteUpdateTime());
       }
-      internalGetMutableExternalSystems().mergeFrom(other.internalGetExternalSystems());
+      internalGetMutableExternalSystems().mergeFrom(
+          other.internalGetExternalSystems());
       if (other.hasMitreAttack()) {
         mergeMitreAttack(other.getMitreAttack());
       }
@@ -3883,10 +3527,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) {
             connectionsBuilder_ = null;
             connections_ = other.connections_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            connectionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getConnectionsFieldBuilder()
-                    : null;
+            connectionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getConnectionsFieldBuilder() : null;
           } else {
             connectionsBuilder_.addAllMessages(other.connections_);
           }
@@ -3914,10 +3557,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) {
             processesBuilder_ = null;
             processes_ = other.processes_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            processesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getProcessesFieldBuilder()
-                    : null;
+            processesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getProcessesFieldBuilder() : null;
           } else {
             processesBuilder_.addAllMessages(other.processes_);
           }
@@ -3941,10 +3583,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) {
             compliancesBuilder_ = null;
             compliances_ = other.compliances_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            compliancesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getCompliancesFieldBuilder()
-                    : null;
+            compliancesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getCompliancesFieldBuilder() : null;
           } else {
             compliancesBuilder_.addAllMessages(other.compliances_);
           }
@@ -3975,10 +3616,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) {
             iamBindingsBuilder_ = null;
             iamBindings_ = other.iamBindings_;
             bitField0_ = (bitField0_ & ~0x00000020);
-            iamBindingsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getIamBindingsFieldBuilder()
-                    : null;
+            iamBindingsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getIamBindingsFieldBuilder() : null;
           } else {
             iamBindingsBuilder_.addAllMessages(other.iamBindings_);
           }
@@ -4016,13 +3656,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4031,13 +3668,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -4046,8 +3683,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4056,14 +3691,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -4071,8 +3707,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4081,22 +3715,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4105,18 +3737,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4125,16 +3754,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -4142,8 +3771,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object parent_ = ""; /** - * - * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4153,13 +3780,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string parent = 2; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -4168,8 +3795,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4179,14 +3804,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 2; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -4194,8 +3820,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4205,22 +3829,20 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 2; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4230,18 +3852,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 2; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4251,16 +3870,16 @@ public Builder clearParent() {
      * 
* * string parent = 2; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -4268,8 +3887,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceName_ = ""; /** - * - * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -4280,13 +3897,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string resource_name = 3; - * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -4295,8 +3912,6 @@ public java.lang.String getResourceName() { } } /** - * - * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -4307,14 +3922,15 @@ public java.lang.String getResourceName() {
      * 
* * string resource_name = 3; - * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -4322,8 +3938,6 @@ public com.google.protobuf.ByteString getResourceNameBytes() { } } /** - * - * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -4334,22 +3948,20 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
      * 
* * string resource_name = 3; - * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName(java.lang.String value) { + public Builder setResourceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceName_ = value; onChanged(); return this; } /** - * - * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -4360,18 +3972,15 @@ public Builder setResourceName(java.lang.String value) {
      * 
* * string resource_name = 3; - * * @return This builder for chaining. */ public Builder clearResourceName() { - + resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** - * - * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -4382,16 +3991,16 @@ public Builder clearResourceName() {
      * 
* * string resource_name = 3; - * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; onChanged(); return this; @@ -4399,67 +4008,51 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.State state = 4; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.State state = 4; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.State state = 4; - * * @return The state. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.State result = - com.google.cloud.securitycenter.v1.Finding.State.valueOf(state_); - return result == null - ? com.google.cloud.securitycenter.v1.Finding.State.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.Finding.State result = com.google.cloud.securitycenter.v1.Finding.State.valueOf(state_); + return result == null ? com.google.cloud.securitycenter.v1.Finding.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.State state = 4; - * * @param value The state to set. * @return This builder for chaining. */ @@ -4467,24 +4060,21 @@ public Builder setState(com.google.cloud.securitycenter.v1.Finding.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.State state = 4; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -4492,8 +4082,6 @@ public Builder clearState() { private java.lang.Object category_ = ""; /** - * - * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -4501,13 +4089,13 @@ public Builder clearState() {
      * 
* * string category = 5; - * * @return The category. */ public java.lang.String getCategory() { java.lang.Object ref = category_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; @@ -4516,8 +4104,6 @@ public java.lang.String getCategory() { } } /** - * - * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -4525,14 +4111,15 @@ public java.lang.String getCategory() {
      * 
* * string category = 5; - * * @return The bytes for category. */ - public com.google.protobuf.ByteString getCategoryBytes() { + public com.google.protobuf.ByteString + getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); category_ = b; return b; } else { @@ -4540,8 +4127,6 @@ public com.google.protobuf.ByteString getCategoryBytes() { } } /** - * - * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -4549,22 +4134,20 @@ public com.google.protobuf.ByteString getCategoryBytes() {
      * 
* * string category = 5; - * * @param value The category to set. * @return This builder for chaining. */ - public Builder setCategory(java.lang.String value) { + public Builder setCategory( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + category_ = value; onChanged(); return this; } /** - * - * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -4572,18 +4155,15 @@ public Builder setCategory(java.lang.String value) {
      * 
* * string category = 5; - * * @return This builder for chaining. */ public Builder clearCategory() { - + category_ = getDefaultInstance().getCategory(); onChanged(); return this; } /** - * - * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -4591,16 +4171,16 @@ public Builder clearCategory() {
      * 
* * string category = 5; - * * @param value The bytes for category to set. * @return This builder for chaining. */ - public Builder setCategoryBytes(com.google.protobuf.ByteString value) { + public Builder setCategoryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + category_ = value; onChanged(); return this; @@ -4608,8 +4188,6 @@ public Builder setCategoryBytes(com.google.protobuf.ByteString value) { private java.lang.Object externalUri_ = ""; /** - * - * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -4617,13 +4195,13 @@ public Builder setCategoryBytes(com.google.protobuf.ByteString value) {
      * 
* * string external_uri = 6; - * * @return The externalUri. */ public java.lang.String getExternalUri() { java.lang.Object ref = externalUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalUri_ = s; return s; @@ -4632,8 +4210,6 @@ public java.lang.String getExternalUri() { } } /** - * - * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -4641,14 +4217,15 @@ public java.lang.String getExternalUri() {
      * 
* * string external_uri = 6; - * * @return The bytes for externalUri. */ - public com.google.protobuf.ByteString getExternalUriBytes() { + public com.google.protobuf.ByteString + getExternalUriBytes() { java.lang.Object ref = externalUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); externalUri_ = b; return b; } else { @@ -4656,8 +4233,6 @@ public com.google.protobuf.ByteString getExternalUriBytes() { } } /** - * - * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -4665,22 +4240,20 @@ public com.google.protobuf.ByteString getExternalUriBytes() {
      * 
* * string external_uri = 6; - * * @param value The externalUri to set. * @return This builder for chaining. */ - public Builder setExternalUri(java.lang.String value) { + public Builder setExternalUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalUri_ = value; onChanged(); return this; } /** - * - * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -4688,18 +4261,15 @@ public Builder setExternalUri(java.lang.String value) {
      * 
* * string external_uri = 6; - * * @return This builder for chaining. */ public Builder clearExternalUri() { - + externalUri_ = getDefaultInstance().getExternalUri(); onChanged(); return this; } /** - * - * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -4707,41 +4277,37 @@ public Builder clearExternalUri() {
      * 
* * string external_uri = 6; - * * @param value The bytes for externalUri to set. * @return This builder for chaining. */ - public Builder setExternalUriBytes(com.google.protobuf.ByteString value) { + public Builder setExternalUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalUri_ = value; onChanged(); return this; } + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> sourceProperties_; private com.google.protobuf.MapField - sourceProperties_; - - private com.google.protobuf.MapField - internalGetSourceProperties() { + internalGetSourceProperties() { if (sourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( SourcePropertiesDefaultEntryHolder.defaultEntry); } return sourceProperties_; } - private com.google.protobuf.MapField - internalGetMutableSourceProperties() { - onChanged(); - ; + internalGetMutableSourceProperties() { + onChanged();; if (sourceProperties_ == null) { - sourceProperties_ = - com.google.protobuf.MapField.newMapField( - SourcePropertiesDefaultEntryHolder.defaultEntry); + sourceProperties_ = com.google.protobuf.MapField.newMapField( + SourcePropertiesDefaultEntryHolder.defaultEntry); } if (!sourceProperties_.isMutable()) { sourceProperties_ = sourceProperties_.copy(); @@ -4753,8 +4319,6 @@ public int getSourcePropertiesCount() { return internalGetSourceProperties().getMap().size(); } /** - * - * *
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -4764,22 +4328,22 @@ public int getSourcePropertiesCount() {
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
+
     @java.lang.Override
-    public boolean containsSourceProperties(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsSourceProperties(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetSourceProperties().getMap().containsKey(key);
     }
-    /** Use {@link #getSourcePropertiesMap()} instead. */
+    /**
+     * Use {@link #getSourcePropertiesMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getSourceProperties() {
       return getSourcePropertiesMap();
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -4790,12 +4354,11 @@ public java.util.Map getSourcePrope
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
     @java.lang.Override
+
     public java.util.Map getSourcePropertiesMap() {
       return internalGetSourceProperties().getMap();
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -4806,18 +4369,16 @@ public java.util.Map getSourcePrope
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
     @java.lang.Override
+
     public com.google.protobuf.Value getSourcePropertiesOrDefault(
-        java.lang.String key, com.google.protobuf.Value defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+        java.lang.String key,
+        com.google.protobuf.Value defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetSourceProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -4828,10 +4389,10 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault(
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
     @java.lang.Override
-    public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+
+    public com.google.protobuf.Value getSourcePropertiesOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetSourceProperties().getMap();
       if (!map.containsKey(key)) {
@@ -4841,12 +4402,11 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key
     }
 
     public Builder clearSourceProperties() {
-      internalGetMutableSourceProperties().getMutableMap().clear();
+      internalGetMutableSourceProperties().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -4856,21 +4416,23 @@ public Builder clearSourceProperties() {
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
-    public Builder removeSourceProperties(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableSourceProperties().getMutableMap().remove(key);
+
+    public Builder removeSourceProperties(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableSourceProperties().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableSourceProperties() {
+    public java.util.Map
+    getMutableSourceProperties() {
       return internalGetMutableSourceProperties().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -4880,20 +4442,19 @@ public java.util.Map getMutableSour
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
-    public Builder putSourceProperties(java.lang.String key, com.google.protobuf.Value value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putSourceProperties(
+        java.lang.String key,
+        com.google.protobuf.Value value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableSourceProperties().getMutableMap().put(key, value);
+      internalGetMutableSourceProperties().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -4903,72 +4464,55 @@ public Builder putSourceProperties(java.lang.String key, com.google.protobuf.Val
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
+
     public Builder putAllSourceProperties(
         java.util.Map values) {
-      internalGetMutableSourceProperties().getMutableMap().putAll(values);
+      internalGetMutableSourceProperties().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.SecurityMarks,
-            com.google.cloud.securitycenter.v1.SecurityMarks.Builder,
-            com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>
-        securityMarksBuilder_;
+        com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> securityMarksBuilder_;
     /**
-     *
-     *
      * 
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The securityMarks. */ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() : securityMarks_; } else { return securityMarksBuilder_.getMessage(); } } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks value) { if (securityMarksBuilder_ == null) { @@ -4984,17 +4528,13 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks return this; } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSecurityMarks( com.google.cloud.securitycenter.v1.SecurityMarks.Builder builderForValue) { @@ -5008,25 +4548,19 @@ public Builder setSecurityMarks( return this; } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks value) { if (securityMarksBuilder_ == null) { if (securityMarks_ != null) { securityMarks_ = - com.google.cloud.securitycenter.v1.SecurityMarks.newBuilder(securityMarks_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.SecurityMarks.newBuilder(securityMarks_).mergeFrom(value).buildPartial(); } else { securityMarks_ = value; } @@ -5038,17 +4572,13 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMar return this; } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -5062,70 +4592,54 @@ public Builder clearSecurityMarks() { return this; } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.securitycenter.v1.SecurityMarks.Builder getSecurityMarksBuilder() { - + onChanged(); return getSecurityMarksFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { if (securityMarksBuilder_ != null) { return securityMarksBuilder_.getMessageOrBuilder(); } else { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? + com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() : securityMarks_; } } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.SecurityMarks, - com.google.cloud.securitycenter.v1.SecurityMarks.Builder, - com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> + com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> getSecurityMarksFieldBuilder() { if (securityMarksBuilder_ == null) { - securityMarksBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.SecurityMarks, - com.google.cloud.securitycenter.v1.SecurityMarks.Builder, - com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>( - getSecurityMarks(), getParentForChildren(), isClean()); + securityMarksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>( + getSecurityMarks(), + getParentForChildren(), + isClean()); securityMarks_ = null; } return securityMarksBuilder_; @@ -5133,13 +4647,8 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark private com.google.protobuf.Timestamp eventTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - eventTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_; /** - * - * *
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -5151,15 +4660,12 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
      * 
* * .google.protobuf.Timestamp event_time = 9; - * * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return eventTimeBuilder_ != null || eventTime_ != null; } /** - * - * *
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -5171,7 +4677,6 @@ public boolean hasEventTime() {
      * 
* * .google.protobuf.Timestamp event_time = 9; - * * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { @@ -5182,8 +4687,6 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** - * - * *
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -5210,8 +4713,6 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -5224,7 +4725,8 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp event_time = 9;
      */
-    public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEventTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (eventTimeBuilder_ == null) {
         eventTime_ = builderForValue.build();
         onChanged();
@@ -5235,8 +4737,6 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -5253,7 +4753,7 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       if (eventTimeBuilder_ == null) {
         if (eventTime_ != null) {
           eventTime_ =
-              com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial();
         } else {
           eventTime_ = value;
         }
@@ -5265,8 +4765,6 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -5291,8 +4789,6 @@ public Builder clearEventTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -5306,13 +4802,11 @@ public Builder clearEventTime() {
      * .google.protobuf.Timestamp event_time = 9;
      */
     public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() {
-
+      
       onChanged();
       return getEventTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -5329,12 +4823,11 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
       if (eventTimeBuilder_ != null) {
         return eventTimeBuilder_.getMessageOrBuilder();
       } else {
-        return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+        return eventTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -5348,17 +4841,14 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
      * .google.protobuf.Timestamp event_time = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEventTimeFieldBuilder() {
       if (eventTimeBuilder_ == null) {
-        eventTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEventTime(), getParentForChildren(), isClean());
+        eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEventTime(),
+                getParentForChildren(),
+                isClean());
         eventTime_ = null;
       }
       return eventTimeBuilder_;
@@ -5366,47 +4856,34 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -5427,15 +4904,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -5446,8 +4922,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -5458,7 +4932,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -5470,8 +4944,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -5490,8 +4962,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -5499,13 +4969,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 10; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -5516,14 +4984,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -5531,17 +4996,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -5549,71 +5011,55 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int severity_ = 0; /** - * - * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.Severity severity = 12; - * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.Severity severity = 12; - * * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ public Builder setSeverityValue(int value) { - + severity_ = value; onChanged(); return this; } /** - * - * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.Severity severity = 12; - * * @return The severity. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.Severity result = - com.google.cloud.securitycenter.v1.Finding.Severity.valueOf(severity_); - return result == null - ? com.google.cloud.securitycenter.v1.Finding.Severity.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.Finding.Severity result = com.google.cloud.securitycenter.v1.Finding.Severity.valueOf(severity_); + return result == null ? com.google.cloud.securitycenter.v1.Finding.Severity.UNRECOGNIZED : result; } /** - * - * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.Severity severity = 12; - * * @param value The severity to set. * @return This builder for chaining. */ @@ -5621,25 +5067,22 @@ public Builder setSeverity(com.google.cloud.securitycenter.v1.Finding.Severity v if (value == null) { throw new NullPointerException(); } - + severity_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.Severity severity = 12; - * * @return This builder for chaining. */ public Builder clearSeverity() { - + severity_ = 0; onChanged(); return this; @@ -5647,8 +5090,6 @@ public Builder clearSeverity() { private java.lang.Object canonicalName_ = ""; /** - * - * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -5659,13 +5100,13 @@ public Builder clearSeverity() {
      * 
* * string canonical_name = 14; - * * @return The canonicalName. */ public java.lang.String getCanonicalName() { java.lang.Object ref = canonicalName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; @@ -5674,8 +5115,6 @@ public java.lang.String getCanonicalName() { } } /** - * - * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -5686,14 +5125,15 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 14; - * * @return The bytes for canonicalName. */ - public com.google.protobuf.ByteString getCanonicalNameBytes() { + public com.google.protobuf.ByteString + getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -5701,8 +5141,6 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() { } } /** - * - * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -5713,22 +5151,20 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() {
      * 
* * string canonical_name = 14; - * * @param value The canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalName(java.lang.String value) { + public Builder setCanonicalName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + canonicalName_ = value; onChanged(); return this; } /** - * - * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -5739,18 +5175,15 @@ public Builder setCanonicalName(java.lang.String value) {
      * 
* * string canonical_name = 14; - * * @return This builder for chaining. */ public Builder clearCanonicalName() { - + canonicalName_ = getDefaultInstance().getCanonicalName(); onChanged(); return this; } /** - * - * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -5761,16 +5194,16 @@ public Builder clearCanonicalName() {
      * 
* * string canonical_name = 14; - * * @param value The bytes for canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalNameBytes(com.google.protobuf.ByteString value) { + public Builder setCanonicalNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalName_ = value; onChanged(); return this; @@ -5778,8 +5211,6 @@ public Builder setCanonicalNameBytes(com.google.protobuf.ByteString value) { private int mute_ = 0; /** - * - * *
      * Indicates the mute state of a finding (either muted, unmuted
      * or undefined). Unlike other attributes of a finding, a finding provider
@@ -5787,16 +5218,12 @@ public Builder setCanonicalNameBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.securitycenter.v1.Finding.Mute mute = 15; - * * @return The enum numeric value on the wire for mute. */ - @java.lang.Override - public int getMuteValue() { + @java.lang.Override public int getMuteValue() { return mute_; } /** - * - * *
      * Indicates the mute state of a finding (either muted, unmuted
      * or undefined). Unlike other attributes of a finding, a finding provider
@@ -5804,19 +5231,16 @@ public int getMuteValue() {
      * 
* * .google.cloud.securitycenter.v1.Finding.Mute mute = 15; - * * @param value The enum numeric value on the wire for mute to set. * @return This builder for chaining. */ public Builder setMuteValue(int value) { - + mute_ = value; onChanged(); return this; } /** - * - * *
      * Indicates the mute state of a finding (either muted, unmuted
      * or undefined). Unlike other attributes of a finding, a finding provider
@@ -5824,19 +5248,15 @@ public Builder setMuteValue(int value) {
      * 
* * .google.cloud.securitycenter.v1.Finding.Mute mute = 15; - * * @return The mute. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.Mute getMute() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.Mute result = - com.google.cloud.securitycenter.v1.Finding.Mute.valueOf(mute_); + com.google.cloud.securitycenter.v1.Finding.Mute result = com.google.cloud.securitycenter.v1.Finding.Mute.valueOf(mute_); return result == null ? com.google.cloud.securitycenter.v1.Finding.Mute.UNRECOGNIZED : result; } /** - * - * *
      * Indicates the mute state of a finding (either muted, unmuted
      * or undefined). Unlike other attributes of a finding, a finding provider
@@ -5844,7 +5264,6 @@ public com.google.cloud.securitycenter.v1.Finding.Mute getMute() {
      * 
* * .google.cloud.securitycenter.v1.Finding.Mute mute = 15; - * * @param value The mute to set. * @return This builder for chaining. */ @@ -5852,14 +5271,12 @@ public Builder setMute(com.google.cloud.securitycenter.v1.Finding.Mute value) { if (value == null) { throw new NullPointerException(); } - + mute_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Indicates the mute state of a finding (either muted, unmuted
      * or undefined). Unlike other attributes of a finding, a finding provider
@@ -5867,11 +5284,10 @@ public Builder setMute(com.google.cloud.securitycenter.v1.Finding.Mute value) {
      * 
* * .google.cloud.securitycenter.v1.Finding.Mute mute = 15; - * * @return This builder for chaining. */ public Builder clearMute() { - + mute_ = 0; onChanged(); return this; @@ -5879,67 +5295,51 @@ public Builder clearMute() { private int findingClass_ = 0; /** - * - * *
      * The class of the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.FindingClass finding_class = 17; - * * @return The enum numeric value on the wire for findingClass. */ - @java.lang.Override - public int getFindingClassValue() { + @java.lang.Override public int getFindingClassValue() { return findingClass_; } /** - * - * *
      * The class of the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.FindingClass finding_class = 17; - * * @param value The enum numeric value on the wire for findingClass to set. * @return This builder for chaining. */ public Builder setFindingClassValue(int value) { - + findingClass_ = value; onChanged(); return this; } /** - * - * *
      * The class of the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.FindingClass finding_class = 17; - * * @return The findingClass. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.FindingClass getFindingClass() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.FindingClass result = - com.google.cloud.securitycenter.v1.Finding.FindingClass.valueOf(findingClass_); - return result == null - ? com.google.cloud.securitycenter.v1.Finding.FindingClass.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.Finding.FindingClass result = com.google.cloud.securitycenter.v1.Finding.FindingClass.valueOf(findingClass_); + return result == null ? com.google.cloud.securitycenter.v1.Finding.FindingClass.UNRECOGNIZED : result; } /** - * - * *
      * The class of the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.FindingClass finding_class = 17; - * * @param value The findingClass to set. * @return This builder for chaining. */ @@ -5947,24 +5347,21 @@ public Builder setFindingClass(com.google.cloud.securitycenter.v1.Finding.Findin if (value == null) { throw new NullPointerException(); } - + findingClass_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The class of the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.FindingClass finding_class = 17; - * * @return This builder for chaining. */ public Builder clearFindingClass() { - + findingClass_ = 0; onChanged(); return this; @@ -5972,13 +5369,8 @@ public Builder clearFindingClass() { private com.google.cloud.securitycenter.v1.Indicator indicator_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Indicator, - com.google.cloud.securitycenter.v1.Indicator.Builder, - com.google.cloud.securitycenter.v1.IndicatorOrBuilder> - indicatorBuilder_; + com.google.cloud.securitycenter.v1.Indicator, com.google.cloud.securitycenter.v1.Indicator.Builder, com.google.cloud.securitycenter.v1.IndicatorOrBuilder> indicatorBuilder_; /** - * - * *
      * Represents what's commonly known as an Indicator of compromise (IoC) in
      * computer forensics. This is an artifact observed on a network or in an
@@ -5988,15 +5380,12 @@ public Builder clearFindingClass() {
      * 
* * .google.cloud.securitycenter.v1.Indicator indicator = 18; - * * @return Whether the indicator field is set. */ public boolean hasIndicator() { return indicatorBuilder_ != null || indicator_ != null; } /** - * - * *
      * Represents what's commonly known as an Indicator of compromise (IoC) in
      * computer forensics. This is an artifact observed on a network or in an
@@ -6006,21 +5395,16 @@ public boolean hasIndicator() {
      * 
* * .google.cloud.securitycenter.v1.Indicator indicator = 18; - * * @return The indicator. */ public com.google.cloud.securitycenter.v1.Indicator getIndicator() { if (indicatorBuilder_ == null) { - return indicator_ == null - ? com.google.cloud.securitycenter.v1.Indicator.getDefaultInstance() - : indicator_; + return indicator_ == null ? com.google.cloud.securitycenter.v1.Indicator.getDefaultInstance() : indicator_; } else { return indicatorBuilder_.getMessage(); } } /** - * - * *
      * Represents what's commonly known as an Indicator of compromise (IoC) in
      * computer forensics. This is an artifact observed on a network or in an
@@ -6045,8 +5429,6 @@ public Builder setIndicator(com.google.cloud.securitycenter.v1.Indicator value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Represents what's commonly known as an Indicator of compromise (IoC) in
      * computer forensics. This is an artifact observed on a network or in an
@@ -6069,8 +5451,6 @@ public Builder setIndicator(
       return this;
     }
     /**
-     *
-     *
      * 
      * Represents what's commonly known as an Indicator of compromise (IoC) in
      * computer forensics. This is an artifact observed on a network or in an
@@ -6085,9 +5465,7 @@ public Builder mergeIndicator(com.google.cloud.securitycenter.v1.Indicator value
       if (indicatorBuilder_ == null) {
         if (indicator_ != null) {
           indicator_ =
-              com.google.cloud.securitycenter.v1.Indicator.newBuilder(indicator_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.securitycenter.v1.Indicator.newBuilder(indicator_).mergeFrom(value).buildPartial();
         } else {
           indicator_ = value;
         }
@@ -6099,8 +5477,6 @@ public Builder mergeIndicator(com.google.cloud.securitycenter.v1.Indicator value
       return this;
     }
     /**
-     *
-     *
      * 
      * Represents what's commonly known as an Indicator of compromise (IoC) in
      * computer forensics. This is an artifact observed on a network or in an
@@ -6123,8 +5499,6 @@ public Builder clearIndicator() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Represents what's commonly known as an Indicator of compromise (IoC) in
      * computer forensics. This is an artifact observed on a network or in an
@@ -6136,13 +5510,11 @@ public Builder clearIndicator() {
      * .google.cloud.securitycenter.v1.Indicator indicator = 18;
      */
     public com.google.cloud.securitycenter.v1.Indicator.Builder getIndicatorBuilder() {
-
+      
       onChanged();
       return getIndicatorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Represents what's commonly known as an Indicator of compromise (IoC) in
      * computer forensics. This is an artifact observed on a network or in an
@@ -6157,14 +5529,11 @@ public com.google.cloud.securitycenter.v1.IndicatorOrBuilder getIndicatorOrBuild
       if (indicatorBuilder_ != null) {
         return indicatorBuilder_.getMessageOrBuilder();
       } else {
-        return indicator_ == null
-            ? com.google.cloud.securitycenter.v1.Indicator.getDefaultInstance()
-            : indicator_;
+        return indicator_ == null ?
+            com.google.cloud.securitycenter.v1.Indicator.getDefaultInstance() : indicator_;
       }
     }
     /**
-     *
-     *
      * 
      * Represents what's commonly known as an Indicator of compromise (IoC) in
      * computer forensics. This is an artifact observed on a network or in an
@@ -6176,17 +5545,14 @@ public com.google.cloud.securitycenter.v1.IndicatorOrBuilder getIndicatorOrBuild
      * .google.cloud.securitycenter.v1.Indicator indicator = 18;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Indicator,
-            com.google.cloud.securitycenter.v1.Indicator.Builder,
-            com.google.cloud.securitycenter.v1.IndicatorOrBuilder>
+        com.google.cloud.securitycenter.v1.Indicator, com.google.cloud.securitycenter.v1.Indicator.Builder, com.google.cloud.securitycenter.v1.IndicatorOrBuilder> 
         getIndicatorFieldBuilder() {
       if (indicatorBuilder_ == null) {
-        indicatorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.securitycenter.v1.Indicator,
-                com.google.cloud.securitycenter.v1.Indicator.Builder,
-                com.google.cloud.securitycenter.v1.IndicatorOrBuilder>(
-                getIndicator(), getParentForChildren(), isClean());
+        indicatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.securitycenter.v1.Indicator, com.google.cloud.securitycenter.v1.Indicator.Builder, com.google.cloud.securitycenter.v1.IndicatorOrBuilder>(
+                getIndicator(),
+                getParentForChildren(),
+                isClean());
         indicator_ = null;
       }
       return indicatorBuilder_;
@@ -6194,13 +5560,8 @@ public com.google.cloud.securitycenter.v1.IndicatorOrBuilder getIndicatorOrBuild
 
     private com.google.cloud.securitycenter.v1.Vulnerability vulnerability_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Vulnerability,
-            com.google.cloud.securitycenter.v1.Vulnerability.Builder,
-            com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder>
-        vulnerabilityBuilder_;
+        com.google.cloud.securitycenter.v1.Vulnerability, com.google.cloud.securitycenter.v1.Vulnerability.Builder, com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder> vulnerabilityBuilder_;
     /**
-     *
-     *
      * 
      * Represents vulnerability specific fields like cve, cvss scores etc.
      * CVE stands for Common Vulnerabilities and Exposures
@@ -6208,15 +5569,12 @@ public com.google.cloud.securitycenter.v1.IndicatorOrBuilder getIndicatorOrBuild
      * 
* * .google.cloud.securitycenter.v1.Vulnerability vulnerability = 20; - * * @return Whether the vulnerability field is set. */ public boolean hasVulnerability() { return vulnerabilityBuilder_ != null || vulnerability_ != null; } /** - * - * *
      * Represents vulnerability specific fields like cve, cvss scores etc.
      * CVE stands for Common Vulnerabilities and Exposures
@@ -6224,21 +5582,16 @@ public boolean hasVulnerability() {
      * 
* * .google.cloud.securitycenter.v1.Vulnerability vulnerability = 20; - * * @return The vulnerability. */ public com.google.cloud.securitycenter.v1.Vulnerability getVulnerability() { if (vulnerabilityBuilder_ == null) { - return vulnerability_ == null - ? com.google.cloud.securitycenter.v1.Vulnerability.getDefaultInstance() - : vulnerability_; + return vulnerability_ == null ? com.google.cloud.securitycenter.v1.Vulnerability.getDefaultInstance() : vulnerability_; } else { return vulnerabilityBuilder_.getMessage(); } } /** - * - * *
      * Represents vulnerability specific fields like cve, cvss scores etc.
      * CVE stands for Common Vulnerabilities and Exposures
@@ -6261,8 +5614,6 @@ public Builder setVulnerability(com.google.cloud.securitycenter.v1.Vulnerability
       return this;
     }
     /**
-     *
-     *
      * 
      * Represents vulnerability specific fields like cve, cvss scores etc.
      * CVE stands for Common Vulnerabilities and Exposures
@@ -6283,8 +5634,6 @@ public Builder setVulnerability(
       return this;
     }
     /**
-     *
-     *
      * 
      * Represents vulnerability specific fields like cve, cvss scores etc.
      * CVE stands for Common Vulnerabilities and Exposures
@@ -6297,9 +5646,7 @@ public Builder mergeVulnerability(com.google.cloud.securitycenter.v1.Vulnerabili
       if (vulnerabilityBuilder_ == null) {
         if (vulnerability_ != null) {
           vulnerability_ =
-              com.google.cloud.securitycenter.v1.Vulnerability.newBuilder(vulnerability_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.securitycenter.v1.Vulnerability.newBuilder(vulnerability_).mergeFrom(value).buildPartial();
         } else {
           vulnerability_ = value;
         }
@@ -6311,8 +5658,6 @@ public Builder mergeVulnerability(com.google.cloud.securitycenter.v1.Vulnerabili
       return this;
     }
     /**
-     *
-     *
      * 
      * Represents vulnerability specific fields like cve, cvss scores etc.
      * CVE stands for Common Vulnerabilities and Exposures
@@ -6333,8 +5678,6 @@ public Builder clearVulnerability() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Represents vulnerability specific fields like cve, cvss scores etc.
      * CVE stands for Common Vulnerabilities and Exposures
@@ -6344,13 +5687,11 @@ public Builder clearVulnerability() {
      * .google.cloud.securitycenter.v1.Vulnerability vulnerability = 20;
      */
     public com.google.cloud.securitycenter.v1.Vulnerability.Builder getVulnerabilityBuilder() {
-
+      
       onChanged();
       return getVulnerabilityFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Represents vulnerability specific fields like cve, cvss scores etc.
      * CVE stands for Common Vulnerabilities and Exposures
@@ -6363,14 +5704,11 @@ public com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder getVulnerabilit
       if (vulnerabilityBuilder_ != null) {
         return vulnerabilityBuilder_.getMessageOrBuilder();
       } else {
-        return vulnerability_ == null
-            ? com.google.cloud.securitycenter.v1.Vulnerability.getDefaultInstance()
-            : vulnerability_;
+        return vulnerability_ == null ?
+            com.google.cloud.securitycenter.v1.Vulnerability.getDefaultInstance() : vulnerability_;
       }
     }
     /**
-     *
-     *
      * 
      * Represents vulnerability specific fields like cve, cvss scores etc.
      * CVE stands for Common Vulnerabilities and Exposures
@@ -6380,17 +5718,14 @@ public com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder getVulnerabilit
      * .google.cloud.securitycenter.v1.Vulnerability vulnerability = 20;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Vulnerability,
-            com.google.cloud.securitycenter.v1.Vulnerability.Builder,
-            com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder>
+        com.google.cloud.securitycenter.v1.Vulnerability, com.google.cloud.securitycenter.v1.Vulnerability.Builder, com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder> 
         getVulnerabilityFieldBuilder() {
       if (vulnerabilityBuilder_ == null) {
-        vulnerabilityBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.securitycenter.v1.Vulnerability,
-                com.google.cloud.securitycenter.v1.Vulnerability.Builder,
-                com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder>(
-                getVulnerability(), getParentForChildren(), isClean());
+        vulnerabilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.securitycenter.v1.Vulnerability, com.google.cloud.securitycenter.v1.Vulnerability.Builder, com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder>(
+                getVulnerability(),
+                getParentForChildren(),
+                isClean());
         vulnerability_ = null;
       }
       return vulnerabilityBuilder_;
@@ -6398,58 +5733,39 @@ public com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder getVulnerabilit
 
     private com.google.protobuf.Timestamp muteUpdateTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        muteUpdateTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> muteUpdateTimeBuilder_;
     /**
-     *
-     *
      * 
      * Output only. The most recent time this finding was muted or unmuted.
      * 
* - * - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the muteUpdateTime field is set. */ public boolean hasMuteUpdateTime() { return muteUpdateTimeBuilder_ != null || muteUpdateTime_ != null; } /** - * - * *
      * Output only. The most recent time this finding was muted or unmuted.
      * 
* - * - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The muteUpdateTime. */ public com.google.protobuf.Timestamp getMuteUpdateTime() { if (muteUpdateTimeBuilder_ == null) { - return muteUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : muteUpdateTime_; + return muteUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : muteUpdateTime_; } else { return muteUpdateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The most recent time this finding was muted or unmuted.
      * 
* - * - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMuteUpdateTime(com.google.protobuf.Timestamp value) { if (muteUpdateTimeBuilder_ == null) { @@ -6465,17 +5781,14 @@ public Builder setMuteUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time this finding was muted or unmuted.
      * 
* - * - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setMuteUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setMuteUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (muteUpdateTimeBuilder_ == null) { muteUpdateTime_ = builderForValue.build(); onChanged(); @@ -6486,23 +5799,17 @@ public Builder setMuteUpdateTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
      * Output only. The most recent time this finding was muted or unmuted.
      * 
* - * - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeMuteUpdateTime(com.google.protobuf.Timestamp value) { if (muteUpdateTimeBuilder_ == null) { if (muteUpdateTime_ != null) { muteUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(muteUpdateTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(muteUpdateTime_).mergeFrom(value).buildPartial(); } else { muteUpdateTime_ = value; } @@ -6514,15 +5821,11 @@ public Builder mergeMuteUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time this finding was muted or unmuted.
      * 
* - * - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMuteUpdateTime() { if (muteUpdateTimeBuilder_ == null) { @@ -6536,92 +5839,69 @@ public Builder clearMuteUpdateTime() { return this; } /** - * - * *
      * Output only. The most recent time this finding was muted or unmuted.
      * 
* - * - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getMuteUpdateTimeBuilder() { - + onChanged(); return getMuteUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The most recent time this finding was muted or unmuted.
      * 
* - * - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getMuteUpdateTimeOrBuilder() { if (muteUpdateTimeBuilder_ != null) { return muteUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return muteUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : muteUpdateTime_; + return muteUpdateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : muteUpdateTime_; } } /** - * - * *
      * Output only. The most recent time this finding was muted or unmuted.
      * 
* - * - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getMuteUpdateTimeFieldBuilder() { if (muteUpdateTimeBuilder_ == null) { - muteUpdateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getMuteUpdateTime(), getParentForChildren(), isClean()); + muteUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getMuteUpdateTime(), + getParentForChildren(), + isClean()); muteUpdateTime_ = null; } return muteUpdateTimeBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem> - externalSystems_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem> - internalGetExternalSystems() { + java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem> externalSystems_; + private com.google.protobuf.MapField + internalGetExternalSystems() { if (externalSystems_ == null) { return com.google.protobuf.MapField.emptyMapField( ExternalSystemsDefaultEntryHolder.defaultEntry); } return externalSystems_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem> - internalGetMutableExternalSystems() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableExternalSystems() { + onChanged();; if (externalSystems_ == null) { - externalSystems_ = - com.google.protobuf.MapField.newMapField( - ExternalSystemsDefaultEntryHolder.defaultEntry); + externalSystems_ = com.google.protobuf.MapField.newMapField( + ExternalSystemsDefaultEntryHolder.defaultEntry); } if (!externalSystems_.isMutable()) { externalSystems_ = externalSystems_.copy(); @@ -6633,88 +5913,72 @@ public int getExternalSystemsCount() { return internalGetExternalSystems().getMap().size(); } /** - * - * *
      * Output only. Third party SIEM/SOAR fields within SCC, contains external
      * system information and external system finding fields.
      * 
* - * - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + @java.lang.Override - public boolean containsExternalSystems(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsExternalSystems( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetExternalSystems().getMap().containsKey(key); } - /** Use {@link #getExternalSystemsMap()} instead. */ + /** + * Use {@link #getExternalSystemsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getExternalSystems() { + public java.util.Map getExternalSystems() { return getExternalSystemsMap(); } /** - * - * *
      * Output only. Third party SIEM/SOAR fields within SCC, contains external
      * system information and external system finding fields.
      * 
* - * - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.Map - getExternalSystemsMap() { + + public java.util.Map getExternalSystemsMap() { return internalGetExternalSystems().getMap(); } /** - * - * *
      * Output only. Third party SIEM/SOAR fields within SCC, contains external
      * system information and external system finding fields.
      * 
* - * - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault( - java.lang.String key, com.google.cloud.securitycenter.v1.ExternalSystem defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.securitycenter.v1.ExternalSystem defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExternalSystems().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Output only. Third party SIEM/SOAR fields within SCC, contains external
      * system information and external system finding fields.
      * 
* - * - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExternalSystems().getMap(); if (!map.containsKey(key)) { @@ -6724,121 +5988,102 @@ public com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrThr } public Builder clearExternalSystems() { - internalGetMutableExternalSystems().getMutableMap().clear(); + internalGetMutableExternalSystems().getMutableMap() + .clear(); return this; } /** - * - * *
      * Output only. Third party SIEM/SOAR fields within SCC, contains external
      * system information and external system finding fields.
      * 
* - * - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder removeExternalSystems(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableExternalSystems().getMutableMap().remove(key); + + public Builder removeExternalSystems( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableExternalSystems().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map - getMutableExternalSystems() { + getMutableExternalSystems() { return internalGetMutableExternalSystems().getMutableMap(); } /** - * - * *
      * Output only. Third party SIEM/SOAR fields within SCC, contains external
      * system information and external system finding fields.
      * 
* - * - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder putExternalSystems( - java.lang.String key, com.google.cloud.securitycenter.v1.ExternalSystem value) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.securitycenter.v1.ExternalSystem value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableExternalSystems().getMutableMap().put(key, value); + internalGetMutableExternalSystems().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Output only. Third party SIEM/SOAR fields within SCC, contains external
      * system information and external system finding fields.
      * 
* - * - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + public Builder putAllExternalSystems( java.util.Map values) { - internalGetMutableExternalSystems().getMutableMap().putAll(values); + internalGetMutableExternalSystems().getMutableMap() + .putAll(values); return this; } private com.google.cloud.securitycenter.v1.MitreAttack mitreAttack_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.MitreAttack, - com.google.cloud.securitycenter.v1.MitreAttack.Builder, - com.google.cloud.securitycenter.v1.MitreAttackOrBuilder> - mitreAttackBuilder_; + com.google.cloud.securitycenter.v1.MitreAttack, com.google.cloud.securitycenter.v1.MitreAttack.Builder, com.google.cloud.securitycenter.v1.MitreAttackOrBuilder> mitreAttackBuilder_; /** - * - * *
      * MITRE ATT&CK tactics and techniques related to this finding.
      * See: https://attack.mitre.org
      * 
* * .google.cloud.securitycenter.v1.MitreAttack mitre_attack = 25; - * * @return Whether the mitreAttack field is set. */ public boolean hasMitreAttack() { return mitreAttackBuilder_ != null || mitreAttack_ != null; } /** - * - * *
      * MITRE ATT&CK tactics and techniques related to this finding.
      * See: https://attack.mitre.org
      * 
* * .google.cloud.securitycenter.v1.MitreAttack mitre_attack = 25; - * * @return The mitreAttack. */ public com.google.cloud.securitycenter.v1.MitreAttack getMitreAttack() { if (mitreAttackBuilder_ == null) { - return mitreAttack_ == null - ? com.google.cloud.securitycenter.v1.MitreAttack.getDefaultInstance() - : mitreAttack_; + return mitreAttack_ == null ? com.google.cloud.securitycenter.v1.MitreAttack.getDefaultInstance() : mitreAttack_; } else { return mitreAttackBuilder_.getMessage(); } } /** - * - * *
      * MITRE ATT&CK tactics and techniques related to this finding.
      * See: https://attack.mitre.org
@@ -6860,8 +6105,6 @@ public Builder setMitreAttack(com.google.cloud.securitycenter.v1.MitreAttack val
       return this;
     }
     /**
-     *
-     *
      * 
      * MITRE ATT&CK tactics and techniques related to this finding.
      * See: https://attack.mitre.org
@@ -6881,8 +6124,6 @@ public Builder setMitreAttack(
       return this;
     }
     /**
-     *
-     *
      * 
      * MITRE ATT&CK tactics and techniques related to this finding.
      * See: https://attack.mitre.org
@@ -6894,9 +6135,7 @@ public Builder mergeMitreAttack(com.google.cloud.securitycenter.v1.MitreAttack v
       if (mitreAttackBuilder_ == null) {
         if (mitreAttack_ != null) {
           mitreAttack_ =
-              com.google.cloud.securitycenter.v1.MitreAttack.newBuilder(mitreAttack_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.securitycenter.v1.MitreAttack.newBuilder(mitreAttack_).mergeFrom(value).buildPartial();
         } else {
           mitreAttack_ = value;
         }
@@ -6908,8 +6147,6 @@ public Builder mergeMitreAttack(com.google.cloud.securitycenter.v1.MitreAttack v
       return this;
     }
     /**
-     *
-     *
      * 
      * MITRE ATT&CK tactics and techniques related to this finding.
      * See: https://attack.mitre.org
@@ -6929,8 +6166,6 @@ public Builder clearMitreAttack() {
       return this;
     }
     /**
-     *
-     *
      * 
      * MITRE ATT&CK tactics and techniques related to this finding.
      * See: https://attack.mitre.org
@@ -6939,13 +6174,11 @@ public Builder clearMitreAttack() {
      * .google.cloud.securitycenter.v1.MitreAttack mitre_attack = 25;
      */
     public com.google.cloud.securitycenter.v1.MitreAttack.Builder getMitreAttackBuilder() {
-
+      
       onChanged();
       return getMitreAttackFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * MITRE ATT&CK tactics and techniques related to this finding.
      * See: https://attack.mitre.org
@@ -6957,14 +6190,11 @@ public com.google.cloud.securitycenter.v1.MitreAttackOrBuilder getMitreAttackOrB
       if (mitreAttackBuilder_ != null) {
         return mitreAttackBuilder_.getMessageOrBuilder();
       } else {
-        return mitreAttack_ == null
-            ? com.google.cloud.securitycenter.v1.MitreAttack.getDefaultInstance()
-            : mitreAttack_;
+        return mitreAttack_ == null ?
+            com.google.cloud.securitycenter.v1.MitreAttack.getDefaultInstance() : mitreAttack_;
       }
     }
     /**
-     *
-     *
      * 
      * MITRE ATT&CK tactics and techniques related to this finding.
      * See: https://attack.mitre.org
@@ -6973,17 +6203,14 @@ public com.google.cloud.securitycenter.v1.MitreAttackOrBuilder getMitreAttackOrB
      * .google.cloud.securitycenter.v1.MitreAttack mitre_attack = 25;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.MitreAttack,
-            com.google.cloud.securitycenter.v1.MitreAttack.Builder,
-            com.google.cloud.securitycenter.v1.MitreAttackOrBuilder>
+        com.google.cloud.securitycenter.v1.MitreAttack, com.google.cloud.securitycenter.v1.MitreAttack.Builder, com.google.cloud.securitycenter.v1.MitreAttackOrBuilder> 
         getMitreAttackFieldBuilder() {
       if (mitreAttackBuilder_ == null) {
-        mitreAttackBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.securitycenter.v1.MitreAttack,
-                com.google.cloud.securitycenter.v1.MitreAttack.Builder,
-                com.google.cloud.securitycenter.v1.MitreAttackOrBuilder>(
-                getMitreAttack(), getParentForChildren(), isClean());
+        mitreAttackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.securitycenter.v1.MitreAttack, com.google.cloud.securitycenter.v1.MitreAttack.Builder, com.google.cloud.securitycenter.v1.MitreAttackOrBuilder>(
+                getMitreAttack(),
+                getParentForChildren(),
+                isClean());
         mitreAttack_ = null;
       }
       return mitreAttackBuilder_;
@@ -6991,49 +6218,36 @@ public com.google.cloud.securitycenter.v1.MitreAttackOrBuilder getMitreAttackOrB
 
     private com.google.cloud.securitycenter.v1.Access access_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Access,
-            com.google.cloud.securitycenter.v1.Access.Builder,
-            com.google.cloud.securitycenter.v1.AccessOrBuilder>
-        accessBuilder_;
+        com.google.cloud.securitycenter.v1.Access, com.google.cloud.securitycenter.v1.Access.Builder, com.google.cloud.securitycenter.v1.AccessOrBuilder> accessBuilder_;
     /**
-     *
-     *
      * 
      * Access details associated to the Finding, such as more information on the
      * caller, which method was accessed, from where, etc.
      * 
* * .google.cloud.securitycenter.v1.Access access = 26; - * * @return Whether the access field is set. */ public boolean hasAccess() { return accessBuilder_ != null || access_ != null; } /** - * - * *
      * Access details associated to the Finding, such as more information on the
      * caller, which method was accessed, from where, etc.
      * 
* * .google.cloud.securitycenter.v1.Access access = 26; - * * @return The access. */ public com.google.cloud.securitycenter.v1.Access getAccess() { if (accessBuilder_ == null) { - return access_ == null - ? com.google.cloud.securitycenter.v1.Access.getDefaultInstance() - : access_; + return access_ == null ? com.google.cloud.securitycenter.v1.Access.getDefaultInstance() : access_; } else { return accessBuilder_.getMessage(); } } /** - * - * *
      * Access details associated to the Finding, such as more information on the
      * caller, which method was accessed, from where, etc.
@@ -7055,8 +6269,6 @@ public Builder setAccess(com.google.cloud.securitycenter.v1.Access value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Access details associated to the Finding, such as more information on the
      * caller, which method was accessed, from where, etc.
@@ -7064,7 +6276,8 @@ public Builder setAccess(com.google.cloud.securitycenter.v1.Access value) {
      *
      * .google.cloud.securitycenter.v1.Access access = 26;
      */
-    public Builder setAccess(com.google.cloud.securitycenter.v1.Access.Builder builderForValue) {
+    public Builder setAccess(
+        com.google.cloud.securitycenter.v1.Access.Builder builderForValue) {
       if (accessBuilder_ == null) {
         access_ = builderForValue.build();
         onChanged();
@@ -7075,8 +6288,6 @@ public Builder setAccess(com.google.cloud.securitycenter.v1.Access.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * Access details associated to the Finding, such as more information on the
      * caller, which method was accessed, from where, etc.
@@ -7088,9 +6299,7 @@ public Builder mergeAccess(com.google.cloud.securitycenter.v1.Access value) {
       if (accessBuilder_ == null) {
         if (access_ != null) {
           access_ =
-              com.google.cloud.securitycenter.v1.Access.newBuilder(access_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.securitycenter.v1.Access.newBuilder(access_).mergeFrom(value).buildPartial();
         } else {
           access_ = value;
         }
@@ -7102,8 +6311,6 @@ public Builder mergeAccess(com.google.cloud.securitycenter.v1.Access value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Access details associated to the Finding, such as more information on the
      * caller, which method was accessed, from where, etc.
@@ -7123,8 +6330,6 @@ public Builder clearAccess() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Access details associated to the Finding, such as more information on the
      * caller, which method was accessed, from where, etc.
@@ -7133,13 +6338,11 @@ public Builder clearAccess() {
      * .google.cloud.securitycenter.v1.Access access = 26;
      */
     public com.google.cloud.securitycenter.v1.Access.Builder getAccessBuilder() {
-
+      
       onChanged();
       return getAccessFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Access details associated to the Finding, such as more information on the
      * caller, which method was accessed, from where, etc.
@@ -7151,14 +6354,11 @@ public com.google.cloud.securitycenter.v1.AccessOrBuilder getAccessOrBuilder() {
       if (accessBuilder_ != null) {
         return accessBuilder_.getMessageOrBuilder();
       } else {
-        return access_ == null
-            ? com.google.cloud.securitycenter.v1.Access.getDefaultInstance()
-            : access_;
+        return access_ == null ?
+            com.google.cloud.securitycenter.v1.Access.getDefaultInstance() : access_;
       }
     }
     /**
-     *
-     *
      * 
      * Access details associated to the Finding, such as more information on the
      * caller, which method was accessed, from where, etc.
@@ -7167,42 +6367,32 @@ public com.google.cloud.securitycenter.v1.AccessOrBuilder getAccessOrBuilder() {
      * .google.cloud.securitycenter.v1.Access access = 26;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Access,
-            com.google.cloud.securitycenter.v1.Access.Builder,
-            com.google.cloud.securitycenter.v1.AccessOrBuilder>
+        com.google.cloud.securitycenter.v1.Access, com.google.cloud.securitycenter.v1.Access.Builder, com.google.cloud.securitycenter.v1.AccessOrBuilder> 
         getAccessFieldBuilder() {
       if (accessBuilder_ == null) {
-        accessBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.securitycenter.v1.Access,
-                com.google.cloud.securitycenter.v1.Access.Builder,
-                com.google.cloud.securitycenter.v1.AccessOrBuilder>(
-                getAccess(), getParentForChildren(), isClean());
+        accessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.securitycenter.v1.Access, com.google.cloud.securitycenter.v1.Access.Builder, com.google.cloud.securitycenter.v1.AccessOrBuilder>(
+                getAccess(),
+                getParentForChildren(),
+                isClean());
         access_ = null;
       }
       return accessBuilder_;
     }
 
     private java.util.List connections_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureConnectionsIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
-        connections_ =
-            new java.util.ArrayList(connections_);
+        connections_ = new java.util.ArrayList(connections_);
         bitField0_ |= 0x00000004;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Connection,
-            com.google.cloud.securitycenter.v1.Connection.Builder,
-            com.google.cloud.securitycenter.v1.ConnectionOrBuilder>
-        connectionsBuilder_;
+        com.google.cloud.securitycenter.v1.Connection, com.google.cloud.securitycenter.v1.Connection.Builder, com.google.cloud.securitycenter.v1.ConnectionOrBuilder> connectionsBuilder_;
 
     /**
-     *
-     *
      * 
      * Contains information about the IP connection associated with the finding.
      * 
@@ -7217,8 +6407,6 @@ public java.util.List getConnecti } } /** - * - * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -7233,8 +6421,6 @@ public int getConnectionsCount() { } } /** - * - * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -7249,15 +6435,14 @@ public com.google.cloud.securitycenter.v1.Connection getConnections(int index) { } } /** - * - * *
      * Contains information about the IP connection associated with the finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ - public Builder setConnections(int index, com.google.cloud.securitycenter.v1.Connection value) { + public Builder setConnections( + int index, com.google.cloud.securitycenter.v1.Connection value) { if (connectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7271,8 +6456,6 @@ public Builder setConnections(int index, com.google.cloud.securitycenter.v1.Conn return this; } /** - * - * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -7291,8 +6474,6 @@ public Builder setConnections( return this; } /** - * - * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -7313,15 +6494,14 @@ public Builder addConnections(com.google.cloud.securitycenter.v1.Connection valu return this; } /** - * - * *
      * Contains information about the IP connection associated with the finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ - public Builder addConnections(int index, com.google.cloud.securitycenter.v1.Connection value) { + public Builder addConnections( + int index, com.google.cloud.securitycenter.v1.Connection value) { if (connectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7335,8 +6515,6 @@ public Builder addConnections(int index, com.google.cloud.securitycenter.v1.Conn return this; } /** - * - * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -7355,8 +6533,6 @@ public Builder addConnections( return this; } /** - * - * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -7375,8 +6551,6 @@ public Builder addConnections( return this; } /** - * - * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -7387,7 +6561,8 @@ public Builder addAllConnections( java.lang.Iterable values) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connections_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, connections_); onChanged(); } else { connectionsBuilder_.addAllMessages(values); @@ -7395,8 +6570,6 @@ public Builder addAllConnections( return this; } /** - * - * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -7414,8 +6587,6 @@ public Builder clearConnections() { return this; } /** - * - * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -7432,21 +6603,18 @@ public Builder removeConnections(int index) { } return this; } - /** - * - * + /** *
      * Contains information about the IP connection associated with the finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ - public com.google.cloud.securitycenter.v1.Connection.Builder getConnectionsBuilder(int index) { + public com.google.cloud.securitycenter.v1.Connection.Builder getConnectionsBuilder( + int index) { return getConnectionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -7456,22 +6624,19 @@ public com.google.cloud.securitycenter.v1.Connection.Builder getConnectionsBuild public com.google.cloud.securitycenter.v1.ConnectionOrBuilder getConnectionsOrBuilder( int index) { if (connectionsBuilder_ == null) { - return connections_.get(index); - } else { + return connections_.get(index); } else { return connectionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Contains information about the IP connection associated with the finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ - public java.util.List - getConnectionsOrBuilderList() { + public java.util.List + getConnectionsOrBuilderList() { if (connectionsBuilder_ != null) { return connectionsBuilder_.getMessageOrBuilderList(); } else { @@ -7479,8 +6644,6 @@ public com.google.cloud.securitycenter.v1.ConnectionOrBuilder getConnectionsOrBu } } /** - * - * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -7488,48 +6651,42 @@ public com.google.cloud.securitycenter.v1.ConnectionOrBuilder getConnectionsOrBu * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ public com.google.cloud.securitycenter.v1.Connection.Builder addConnectionsBuilder() { - return getConnectionsFieldBuilder() - .addBuilder(com.google.cloud.securitycenter.v1.Connection.getDefaultInstance()); + return getConnectionsFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1.Connection.getDefaultInstance()); } /** - * - * *
      * Contains information about the IP connection associated with the finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ - public com.google.cloud.securitycenter.v1.Connection.Builder addConnectionsBuilder(int index) { - return getConnectionsFieldBuilder() - .addBuilder(index, com.google.cloud.securitycenter.v1.Connection.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.Connection.Builder addConnectionsBuilder( + int index) { + return getConnectionsFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1.Connection.getDefaultInstance()); } /** - * - * *
      * Contains information about the IP connection associated with the finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ - public java.util.List - getConnectionsBuilderList() { + public java.util.List + getConnectionsBuilderList() { return getConnectionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Connection, - com.google.cloud.securitycenter.v1.Connection.Builder, - com.google.cloud.securitycenter.v1.ConnectionOrBuilder> + com.google.cloud.securitycenter.v1.Connection, com.google.cloud.securitycenter.v1.Connection.Builder, com.google.cloud.securitycenter.v1.ConnectionOrBuilder> getConnectionsFieldBuilder() { if (connectionsBuilder_ == null) { - connectionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Connection, - com.google.cloud.securitycenter.v1.Connection.Builder, - com.google.cloud.securitycenter.v1.ConnectionOrBuilder>( - connections_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + connectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.Connection, com.google.cloud.securitycenter.v1.Connection.Builder, com.google.cloud.securitycenter.v1.ConnectionOrBuilder>( + connections_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); connections_ = null; } return connectionsBuilder_; @@ -7537,8 +6694,6 @@ public com.google.cloud.securitycenter.v1.Connection.Builder addConnectionsBuild private java.lang.Object muteInitiator_ = ""; /** - * - * *
      * First known as mute_annotation. Records additional information about the
      * mute operation e.g. mute config that muted the finding, user who muted the
@@ -7547,13 +6702,13 @@ public com.google.cloud.securitycenter.v1.Connection.Builder addConnectionsBuild
      * 
* * string mute_initiator = 28; - * * @return The muteInitiator. */ public java.lang.String getMuteInitiator() { java.lang.Object ref = muteInitiator_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); muteInitiator_ = s; return s; @@ -7562,8 +6717,6 @@ public java.lang.String getMuteInitiator() { } } /** - * - * *
      * First known as mute_annotation. Records additional information about the
      * mute operation e.g. mute config that muted the finding, user who muted the
@@ -7572,14 +6725,15 @@ public java.lang.String getMuteInitiator() {
      * 
* * string mute_initiator = 28; - * * @return The bytes for muteInitiator. */ - public com.google.protobuf.ByteString getMuteInitiatorBytes() { + public com.google.protobuf.ByteString + getMuteInitiatorBytes() { java.lang.Object ref = muteInitiator_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); muteInitiator_ = b; return b; } else { @@ -7587,8 +6741,6 @@ public com.google.protobuf.ByteString getMuteInitiatorBytes() { } } /** - * - * *
      * First known as mute_annotation. Records additional information about the
      * mute operation e.g. mute config that muted the finding, user who muted the
@@ -7597,22 +6749,20 @@ public com.google.protobuf.ByteString getMuteInitiatorBytes() {
      * 
* * string mute_initiator = 28; - * * @param value The muteInitiator to set. * @return This builder for chaining. */ - public Builder setMuteInitiator(java.lang.String value) { + public Builder setMuteInitiator( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + muteInitiator_ = value; onChanged(); return this; } /** - * - * *
      * First known as mute_annotation. Records additional information about the
      * mute operation e.g. mute config that muted the finding, user who muted the
@@ -7621,18 +6771,15 @@ public Builder setMuteInitiator(java.lang.String value) {
      * 
* * string mute_initiator = 28; - * * @return This builder for chaining. */ public Builder clearMuteInitiator() { - + muteInitiator_ = getDefaultInstance().getMuteInitiator(); onChanged(); return this; } /** - * - * *
      * First known as mute_annotation. Records additional information about the
      * mute operation e.g. mute config that muted the finding, user who muted the
@@ -7641,41 +6788,34 @@ public Builder clearMuteInitiator() {
      * 
* * string mute_initiator = 28; - * * @param value The bytes for muteInitiator to set. * @return This builder for chaining. */ - public Builder setMuteInitiatorBytes(com.google.protobuf.ByteString value) { + public Builder setMuteInitiatorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + muteInitiator_ = value; onChanged(); return this; } private java.util.List processes_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureProcessesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - processes_ = - new java.util.ArrayList(processes_); + processes_ = new java.util.ArrayList(processes_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Process, - com.google.cloud.securitycenter.v1.Process.Builder, - com.google.cloud.securitycenter.v1.ProcessOrBuilder> - processesBuilder_; + com.google.cloud.securitycenter.v1.Process, com.google.cloud.securitycenter.v1.Process.Builder, com.google.cloud.securitycenter.v1.ProcessOrBuilder> processesBuilder_; /** - * - * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -7690,8 +6830,6 @@ public java.util.List getProcessesLi } } /** - * - * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -7706,8 +6844,6 @@ public int getProcessesCount() { } } /** - * - * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -7722,15 +6858,14 @@ public com.google.cloud.securitycenter.v1.Process getProcesses(int index) { } } /** - * - * *
      * Represents operating system processes associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ - public Builder setProcesses(int index, com.google.cloud.securitycenter.v1.Process value) { + public Builder setProcesses( + int index, com.google.cloud.securitycenter.v1.Process value) { if (processesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7744,8 +6879,6 @@ public Builder setProcesses(int index, com.google.cloud.securitycenter.v1.Proces return this; } /** - * - * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -7764,8 +6897,6 @@ public Builder setProcesses( return this; } /** - * - * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -7786,15 +6917,14 @@ public Builder addProcesses(com.google.cloud.securitycenter.v1.Process value) { return this; } /** - * - * *
      * Represents operating system processes associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ - public Builder addProcesses(int index, com.google.cloud.securitycenter.v1.Process value) { + public Builder addProcesses( + int index, com.google.cloud.securitycenter.v1.Process value) { if (processesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7808,8 +6938,6 @@ public Builder addProcesses(int index, com.google.cloud.securitycenter.v1.Proces return this; } /** - * - * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -7828,8 +6956,6 @@ public Builder addProcesses( return this; } /** - * - * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -7848,8 +6974,6 @@ public Builder addProcesses( return this; } /** - * - * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -7860,7 +6984,8 @@ public Builder addAllProcesses( java.lang.Iterable values) { if (processesBuilder_ == null) { ensureProcessesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, processes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, processes_); onChanged(); } else { processesBuilder_.addAllMessages(values); @@ -7868,8 +6993,6 @@ public Builder addAllProcesses( return this; } /** - * - * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -7887,8 +7010,6 @@ public Builder clearProcesses() { return this; } /** - * - * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -7906,44 +7027,39 @@ public Builder removeProcesses(int index) { return this; } /** - * - * *
      * Represents operating system processes associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ - public com.google.cloud.securitycenter.v1.Process.Builder getProcessesBuilder(int index) { + public com.google.cloud.securitycenter.v1.Process.Builder getProcessesBuilder( + int index) { return getProcessesFieldBuilder().getBuilder(index); } /** - * - * *
      * Represents operating system processes associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ - public com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder(int index) { + public com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder( + int index) { if (processesBuilder_ == null) { - return processes_.get(index); - } else { + return processes_.get(index); } else { return processesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Represents operating system processes associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ - public java.util.List - getProcessesOrBuilderList() { + public java.util.List + getProcessesOrBuilderList() { if (processesBuilder_ != null) { return processesBuilder_.getMessageOrBuilderList(); } else { @@ -7951,8 +7067,6 @@ public com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder } } /** - * - * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -7960,73 +7074,60 @@ public com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ public com.google.cloud.securitycenter.v1.Process.Builder addProcessesBuilder() { - return getProcessesFieldBuilder() - .addBuilder(com.google.cloud.securitycenter.v1.Process.getDefaultInstance()); + return getProcessesFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1.Process.getDefaultInstance()); } /** - * - * *
      * Represents operating system processes associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ - public com.google.cloud.securitycenter.v1.Process.Builder addProcessesBuilder(int index) { - return getProcessesFieldBuilder() - .addBuilder(index, com.google.cloud.securitycenter.v1.Process.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.Process.Builder addProcessesBuilder( + int index) { + return getProcessesFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1.Process.getDefaultInstance()); } /** - * - * *
      * Represents operating system processes associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ - public java.util.List - getProcessesBuilderList() { + public java.util.List + getProcessesBuilderList() { return getProcessesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Process, - com.google.cloud.securitycenter.v1.Process.Builder, - com.google.cloud.securitycenter.v1.ProcessOrBuilder> + com.google.cloud.securitycenter.v1.Process, com.google.cloud.securitycenter.v1.Process.Builder, com.google.cloud.securitycenter.v1.ProcessOrBuilder> getProcessesFieldBuilder() { if (processesBuilder_ == null) { - processesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Process, - com.google.cloud.securitycenter.v1.Process.Builder, - com.google.cloud.securitycenter.v1.ProcessOrBuilder>( - processes_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + processesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.Process, com.google.cloud.securitycenter.v1.Process.Builder, com.google.cloud.securitycenter.v1.ProcessOrBuilder>( + processes_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); processes_ = null; } return processesBuilder_; } private java.util.List compliances_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCompliancesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - compliances_ = - new java.util.ArrayList(compliances_); + compliances_ = new java.util.ArrayList(compliances_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Compliance, - com.google.cloud.securitycenter.v1.Compliance.Builder, - com.google.cloud.securitycenter.v1.ComplianceOrBuilder> - compliancesBuilder_; + com.google.cloud.securitycenter.v1.Compliance, com.google.cloud.securitycenter.v1.Compliance.Builder, com.google.cloud.securitycenter.v1.ComplianceOrBuilder> compliancesBuilder_; /** - * - * *
      * Contains compliance information for security standards associated to the
      * finding.
@@ -8042,8 +7143,6 @@ public java.util.List getComplian
       }
     }
     /**
-     *
-     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -8059,8 +7158,6 @@ public int getCompliancesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -8076,8 +7173,6 @@ public com.google.cloud.securitycenter.v1.Compliance getCompliances(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -8085,7 +7180,8 @@ public com.google.cloud.securitycenter.v1.Compliance getCompliances(int index) {
      *
      * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
      */
-    public Builder setCompliances(int index, com.google.cloud.securitycenter.v1.Compliance value) {
+    public Builder setCompliances(
+        int index, com.google.cloud.securitycenter.v1.Compliance value) {
       if (compliancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -8099,8 +7195,6 @@ public Builder setCompliances(int index, com.google.cloud.securitycenter.v1.Comp
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -8120,8 +7214,6 @@ public Builder setCompliances(
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -8143,8 +7235,6 @@ public Builder addCompliances(com.google.cloud.securitycenter.v1.Compliance valu
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -8152,7 +7242,8 @@ public Builder addCompliances(com.google.cloud.securitycenter.v1.Compliance valu
      *
      * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
      */
-    public Builder addCompliances(int index, com.google.cloud.securitycenter.v1.Compliance value) {
+    public Builder addCompliances(
+        int index, com.google.cloud.securitycenter.v1.Compliance value) {
       if (compliancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -8166,8 +7257,6 @@ public Builder addCompliances(int index, com.google.cloud.securitycenter.v1.Comp
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -8187,8 +7276,6 @@ public Builder addCompliances(
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -8208,8 +7295,6 @@ public Builder addCompliances(
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -8221,7 +7306,8 @@ public Builder addAllCompliances(
         java.lang.Iterable values) {
       if (compliancesBuilder_ == null) {
         ensureCompliancesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, compliances_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, compliances_);
         onChanged();
       } else {
         compliancesBuilder_.addAllMessages(values);
@@ -8229,8 +7315,6 @@ public Builder addAllCompliances(
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -8249,8 +7333,6 @@ public Builder clearCompliances() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -8269,8 +7351,6 @@ public Builder removeCompliances(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -8278,12 +7358,11 @@ public Builder removeCompliances(int index) {
      *
      * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
      */
-    public com.google.cloud.securitycenter.v1.Compliance.Builder getCompliancesBuilder(int index) {
+    public com.google.cloud.securitycenter.v1.Compliance.Builder getCompliancesBuilder(
+        int index) {
       return getCompliancesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -8294,14 +7373,11 @@ public com.google.cloud.securitycenter.v1.Compliance.Builder getCompliancesBuild
     public com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBuilder(
         int index) {
       if (compliancesBuilder_ == null) {
-        return compliances_.get(index);
-      } else {
+        return compliances_.get(index);  } else {
         return compliancesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -8309,8 +7385,8 @@ public com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBu
      *
      * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
      */
-    public java.util.List
-        getCompliancesOrBuilderList() {
+    public java.util.List 
+         getCompliancesOrBuilderList() {
       if (compliancesBuilder_ != null) {
         return compliancesBuilder_.getMessageOrBuilderList();
       } else {
@@ -8318,8 +7394,6 @@ public com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBu
       }
     }
     /**
-     *
-     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -8328,12 +7402,10 @@ public com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBu
      * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
      */
     public com.google.cloud.securitycenter.v1.Compliance.Builder addCompliancesBuilder() {
-      return getCompliancesFieldBuilder()
-          .addBuilder(com.google.cloud.securitycenter.v1.Compliance.getDefaultInstance());
+      return getCompliancesFieldBuilder().addBuilder(
+          com.google.cloud.securitycenter.v1.Compliance.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -8341,13 +7413,12 @@ public com.google.cloud.securitycenter.v1.Compliance.Builder addCompliancesBuild
      *
      * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
      */
-    public com.google.cloud.securitycenter.v1.Compliance.Builder addCompliancesBuilder(int index) {
-      return getCompliancesFieldBuilder()
-          .addBuilder(index, com.google.cloud.securitycenter.v1.Compliance.getDefaultInstance());
+    public com.google.cloud.securitycenter.v1.Compliance.Builder addCompliancesBuilder(
+        int index) {
+      return getCompliancesFieldBuilder().addBuilder(
+          index, com.google.cloud.securitycenter.v1.Compliance.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -8355,23 +7426,20 @@ public com.google.cloud.securitycenter.v1.Compliance.Builder addCompliancesBuild
      *
      * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
      */
-    public java.util.List
-        getCompliancesBuilderList() {
+    public java.util.List 
+         getCompliancesBuilderList() {
       return getCompliancesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Compliance,
-            com.google.cloud.securitycenter.v1.Compliance.Builder,
-            com.google.cloud.securitycenter.v1.ComplianceOrBuilder>
+        com.google.cloud.securitycenter.v1.Compliance, com.google.cloud.securitycenter.v1.Compliance.Builder, com.google.cloud.securitycenter.v1.ComplianceOrBuilder> 
         getCompliancesFieldBuilder() {
       if (compliancesBuilder_ == null) {
-        compliancesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.securitycenter.v1.Compliance,
-                com.google.cloud.securitycenter.v1.Compliance.Builder,
-                com.google.cloud.securitycenter.v1.ComplianceOrBuilder>(
-                compliances_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean());
+        compliancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.securitycenter.v1.Compliance, com.google.cloud.securitycenter.v1.Compliance.Builder, com.google.cloud.securitycenter.v1.ComplianceOrBuilder>(
+                compliances_,
+                ((bitField0_ & 0x00000010) != 0),
+                getParentForChildren(),
+                isClean());
         compliances_ = null;
       }
       return compliancesBuilder_;
@@ -8379,20 +7447,18 @@ public com.google.cloud.securitycenter.v1.Compliance.Builder addCompliancesBuild
 
     private java.lang.Object description_ = "";
     /**
-     *
-     *
      * 
      * Contains more detail about the finding.
      * 
* * string description = 37; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -8401,21 +7467,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Contains more detail about the finding.
      * 
* * string description = 37; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -8423,61 +7488,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Contains more detail about the finding.
      * 
* * string description = 37; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Contains more detail about the finding.
      * 
* * string description = 37; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Contains more detail about the finding.
      * 
* * string description = 37; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -8485,47 +7543,34 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private com.google.cloud.securitycenter.v1.Exfiltration exfiltration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Exfiltration, - com.google.cloud.securitycenter.v1.Exfiltration.Builder, - com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder> - exfiltrationBuilder_; + com.google.cloud.securitycenter.v1.Exfiltration, com.google.cloud.securitycenter.v1.Exfiltration.Builder, com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder> exfiltrationBuilder_; /** - * - * *
      * Represents exfiltration associated with the Finding.
      * 
* * .google.cloud.securitycenter.v1.Exfiltration exfiltration = 38; - * * @return Whether the exfiltration field is set. */ public boolean hasExfiltration() { return exfiltrationBuilder_ != null || exfiltration_ != null; } /** - * - * *
      * Represents exfiltration associated with the Finding.
      * 
* * .google.cloud.securitycenter.v1.Exfiltration exfiltration = 38; - * * @return The exfiltration. */ public com.google.cloud.securitycenter.v1.Exfiltration getExfiltration() { if (exfiltrationBuilder_ == null) { - return exfiltration_ == null - ? com.google.cloud.securitycenter.v1.Exfiltration.getDefaultInstance() - : exfiltration_; + return exfiltration_ == null ? com.google.cloud.securitycenter.v1.Exfiltration.getDefaultInstance() : exfiltration_; } else { return exfiltrationBuilder_.getMessage(); } } /** - * - * *
      * Represents exfiltration associated with the Finding.
      * 
@@ -8546,8 +7591,6 @@ public Builder setExfiltration(com.google.cloud.securitycenter.v1.Exfiltration v return this; } /** - * - * *
      * Represents exfiltration associated with the Finding.
      * 
@@ -8566,8 +7609,6 @@ public Builder setExfiltration( return this; } /** - * - * *
      * Represents exfiltration associated with the Finding.
      * 
@@ -8578,9 +7619,7 @@ public Builder mergeExfiltration(com.google.cloud.securitycenter.v1.Exfiltration if (exfiltrationBuilder_ == null) { if (exfiltration_ != null) { exfiltration_ = - com.google.cloud.securitycenter.v1.Exfiltration.newBuilder(exfiltration_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.Exfiltration.newBuilder(exfiltration_).mergeFrom(value).buildPartial(); } else { exfiltration_ = value; } @@ -8592,8 +7631,6 @@ public Builder mergeExfiltration(com.google.cloud.securitycenter.v1.Exfiltration return this; } /** - * - * *
      * Represents exfiltration associated with the Finding.
      * 
@@ -8612,8 +7649,6 @@ public Builder clearExfiltration() { return this; } /** - * - * *
      * Represents exfiltration associated with the Finding.
      * 
@@ -8621,13 +7656,11 @@ public Builder clearExfiltration() { * .google.cloud.securitycenter.v1.Exfiltration exfiltration = 38; */ public com.google.cloud.securitycenter.v1.Exfiltration.Builder getExfiltrationBuilder() { - + onChanged(); return getExfiltrationFieldBuilder().getBuilder(); } /** - * - * *
      * Represents exfiltration associated with the Finding.
      * 
@@ -8638,14 +7671,11 @@ public com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder getExfiltrationO if (exfiltrationBuilder_ != null) { return exfiltrationBuilder_.getMessageOrBuilder(); } else { - return exfiltration_ == null - ? com.google.cloud.securitycenter.v1.Exfiltration.getDefaultInstance() - : exfiltration_; + return exfiltration_ == null ? + com.google.cloud.securitycenter.v1.Exfiltration.getDefaultInstance() : exfiltration_; } } /** - * - * *
      * Represents exfiltration associated with the Finding.
      * 
@@ -8653,42 +7683,32 @@ public com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder getExfiltrationO * .google.cloud.securitycenter.v1.Exfiltration exfiltration = 38; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Exfiltration, - com.google.cloud.securitycenter.v1.Exfiltration.Builder, - com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder> + com.google.cloud.securitycenter.v1.Exfiltration, com.google.cloud.securitycenter.v1.Exfiltration.Builder, com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder> getExfiltrationFieldBuilder() { if (exfiltrationBuilder_ == null) { - exfiltrationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Exfiltration, - com.google.cloud.securitycenter.v1.Exfiltration.Builder, - com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder>( - getExfiltration(), getParentForChildren(), isClean()); + exfiltrationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Exfiltration, com.google.cloud.securitycenter.v1.Exfiltration.Builder, com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder>( + getExfiltration(), + getParentForChildren(), + isClean()); exfiltration_ = null; } return exfiltrationBuilder_; } private java.util.List iamBindings_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureIamBindingsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - iamBindings_ = - new java.util.ArrayList(iamBindings_); + iamBindings_ = new java.util.ArrayList(iamBindings_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.IamBinding, - com.google.cloud.securitycenter.v1.IamBinding.Builder, - com.google.cloud.securitycenter.v1.IamBindingOrBuilder> - iamBindingsBuilder_; + com.google.cloud.securitycenter.v1.IamBinding, com.google.cloud.securitycenter.v1.IamBinding.Builder, com.google.cloud.securitycenter.v1.IamBindingOrBuilder> iamBindingsBuilder_; /** - * - * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -8703,8 +7723,6 @@ public java.util.List getIamBindi } } /** - * - * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -8719,8 +7737,6 @@ public int getIamBindingsCount() { } } /** - * - * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -8735,15 +7751,14 @@ public com.google.cloud.securitycenter.v1.IamBinding getIamBindings(int index) { } } /** - * - * *
      * Represents IAM bindings associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ - public Builder setIamBindings(int index, com.google.cloud.securitycenter.v1.IamBinding value) { + public Builder setIamBindings( + int index, com.google.cloud.securitycenter.v1.IamBinding value) { if (iamBindingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8757,8 +7772,6 @@ public Builder setIamBindings(int index, com.google.cloud.securitycenter.v1.IamB return this; } /** - * - * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -8777,8 +7790,6 @@ public Builder setIamBindings( return this; } /** - * - * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -8799,15 +7810,14 @@ public Builder addIamBindings(com.google.cloud.securitycenter.v1.IamBinding valu return this; } /** - * - * *
      * Represents IAM bindings associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ - public Builder addIamBindings(int index, com.google.cloud.securitycenter.v1.IamBinding value) { + public Builder addIamBindings( + int index, com.google.cloud.securitycenter.v1.IamBinding value) { if (iamBindingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8821,8 +7831,6 @@ public Builder addIamBindings(int index, com.google.cloud.securitycenter.v1.IamB return this; } /** - * - * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -8841,8 +7849,6 @@ public Builder addIamBindings( return this; } /** - * - * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -8861,8 +7867,6 @@ public Builder addIamBindings( return this; } /** - * - * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -8873,7 +7877,8 @@ public Builder addAllIamBindings( java.lang.Iterable values) { if (iamBindingsBuilder_ == null) { ensureIamBindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, iamBindings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, iamBindings_); onChanged(); } else { iamBindingsBuilder_.addAllMessages(values); @@ -8881,8 +7886,6 @@ public Builder addAllIamBindings( return this; } /** - * - * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -8900,8 +7903,6 @@ public Builder clearIamBindings() { return this; } /** - * - * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -8919,20 +7920,17 @@ public Builder removeIamBindings(int index) { return this; } /** - * - * *
      * Represents IAM bindings associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ - public com.google.cloud.securitycenter.v1.IamBinding.Builder getIamBindingsBuilder(int index) { + public com.google.cloud.securitycenter.v1.IamBinding.Builder getIamBindingsBuilder( + int index) { return getIamBindingsFieldBuilder().getBuilder(index); } /** - * - * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -8942,22 +7940,19 @@ public com.google.cloud.securitycenter.v1.IamBinding.Builder getIamBindingsBuild public com.google.cloud.securitycenter.v1.IamBindingOrBuilder getIamBindingsOrBuilder( int index) { if (iamBindingsBuilder_ == null) { - return iamBindings_.get(index); - } else { + return iamBindings_.get(index); } else { return iamBindingsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Represents IAM bindings associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ - public java.util.List - getIamBindingsOrBuilderList() { + public java.util.List + getIamBindingsOrBuilderList() { if (iamBindingsBuilder_ != null) { return iamBindingsBuilder_.getMessageOrBuilderList(); } else { @@ -8965,8 +7960,6 @@ public com.google.cloud.securitycenter.v1.IamBindingOrBuilder getIamBindingsOrBu } } /** - * - * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -8974,48 +7967,42 @@ public com.google.cloud.securitycenter.v1.IamBindingOrBuilder getIamBindingsOrBu * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ public com.google.cloud.securitycenter.v1.IamBinding.Builder addIamBindingsBuilder() { - return getIamBindingsFieldBuilder() - .addBuilder(com.google.cloud.securitycenter.v1.IamBinding.getDefaultInstance()); + return getIamBindingsFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1.IamBinding.getDefaultInstance()); } /** - * - * *
      * Represents IAM bindings associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ - public com.google.cloud.securitycenter.v1.IamBinding.Builder addIamBindingsBuilder(int index) { - return getIamBindingsFieldBuilder() - .addBuilder(index, com.google.cloud.securitycenter.v1.IamBinding.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.IamBinding.Builder addIamBindingsBuilder( + int index) { + return getIamBindingsFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1.IamBinding.getDefaultInstance()); } /** - * - * *
      * Represents IAM bindings associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ - public java.util.List - getIamBindingsBuilderList() { + public java.util.List + getIamBindingsBuilderList() { return getIamBindingsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.IamBinding, - com.google.cloud.securitycenter.v1.IamBinding.Builder, - com.google.cloud.securitycenter.v1.IamBindingOrBuilder> + com.google.cloud.securitycenter.v1.IamBinding, com.google.cloud.securitycenter.v1.IamBinding.Builder, com.google.cloud.securitycenter.v1.IamBindingOrBuilder> getIamBindingsFieldBuilder() { if (iamBindingsBuilder_ == null) { - iamBindingsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.IamBinding, - com.google.cloud.securitycenter.v1.IamBinding.Builder, - com.google.cloud.securitycenter.v1.IamBindingOrBuilder>( - iamBindings_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + iamBindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.IamBinding, com.google.cloud.securitycenter.v1.IamBinding.Builder, com.google.cloud.securitycenter.v1.IamBindingOrBuilder>( + iamBindings_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); iamBindings_ = null; } return iamBindingsBuilder_; @@ -9023,20 +8010,18 @@ public com.google.cloud.securitycenter.v1.IamBinding.Builder addIamBindingsBuild private java.lang.Object nextSteps_ = ""; /** - * - * *
      * Next steps associate to the finding.
      * 
* * string next_steps = 40; - * * @return The nextSteps. */ public java.lang.String getNextSteps() { java.lang.Object ref = nextSteps_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextSteps_ = s; return s; @@ -9045,21 +8030,20 @@ public java.lang.String getNextSteps() { } } /** - * - * *
      * Next steps associate to the finding.
      * 
* * string next_steps = 40; - * * @return The bytes for nextSteps. */ - public com.google.protobuf.ByteString getNextStepsBytes() { + public com.google.protobuf.ByteString + getNextStepsBytes() { java.lang.Object ref = nextSteps_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextSteps_ = b; return b; } else { @@ -9067,68 +8051,61 @@ public com.google.protobuf.ByteString getNextStepsBytes() { } } /** - * - * *
      * Next steps associate to the finding.
      * 
* * string next_steps = 40; - * * @param value The nextSteps to set. * @return This builder for chaining. */ - public Builder setNextSteps(java.lang.String value) { + public Builder setNextSteps( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextSteps_ = value; onChanged(); return this; } /** - * - * *
      * Next steps associate to the finding.
      * 
* * string next_steps = 40; - * * @return This builder for chaining. */ public Builder clearNextSteps() { - + nextSteps_ = getDefaultInstance().getNextSteps(); onChanged(); return this; } /** - * - * *
      * Next steps associate to the finding.
      * 
* * string next_steps = 40; - * * @param value The bytes for nextSteps to set. * @return This builder for chaining. */ - public Builder setNextStepsBytes(com.google.protobuf.ByteString value) { + public Builder setNextStepsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextSteps_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -9138,12 +8115,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Finding) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Finding) private static final com.google.cloud.securitycenter.v1.Finding DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Finding(); } @@ -9152,16 +8129,16 @@ public static com.google.cloud.securitycenter.v1.Finding getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Finding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Finding(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Finding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Finding(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9176,4 +8153,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java similarity index 84% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java index 0bc5d05ae..9c7f5d4c5 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/finding.proto package com.google.cloud.securitycenter.v1; -public interface FindingOrBuilder - extends +public interface FindingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Finding) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -34,13 +16,10 @@ public interface FindingOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -49,14 +28,12 @@ public interface FindingOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -66,13 +43,10 @@ public interface FindingOrBuilder
    * 
* * string parent = 2; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -82,14 +56,12 @@ public interface FindingOrBuilder
    * 
* * string parent = 2; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -100,13 +72,10 @@ public interface FindingOrBuilder
    * 
* * string resource_name = 3; - * * @return The resourceName. */ java.lang.String getResourceName(); /** - * - * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -117,39 +86,31 @@ public interface FindingOrBuilder
    * 
* * string resource_name = 3; - * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString getResourceNameBytes(); + com.google.protobuf.ByteString + getResourceNameBytes(); /** - * - * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.State state = 4; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.State state = 4; - * * @return The state. */ com.google.cloud.securitycenter.v1.Finding.State getState(); /** - * - * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -157,13 +118,10 @@ public interface FindingOrBuilder
    * 
* * string category = 5; - * * @return The category. */ java.lang.String getCategory(); /** - * - * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -171,14 +129,12 @@ public interface FindingOrBuilder
    * 
* * string category = 5; - * * @return The bytes for category. */ - com.google.protobuf.ByteString getCategoryBytes(); + com.google.protobuf.ByteString + getCategoryBytes(); /** - * - * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -186,13 +142,10 @@ public interface FindingOrBuilder
    * 
* * string external_uri = 6; - * * @return The externalUri. */ java.lang.String getExternalUri(); /** - * - * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -200,14 +153,12 @@ public interface FindingOrBuilder
    * 
* * string external_uri = 6; - * * @return The bytes for externalUri. */ - com.google.protobuf.ByteString getExternalUriBytes(); + com.google.protobuf.ByteString + getExternalUriBytes(); /** - * - * *
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -219,8 +170,6 @@ public interface FindingOrBuilder
    */
   int getSourcePropertiesCount();
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -230,13 +179,15 @@ public interface FindingOrBuilder
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-  boolean containsSourceProperties(java.lang.String key);
-  /** Use {@link #getSourcePropertiesMap()} instead. */
+  boolean containsSourceProperties(
+      java.lang.String key);
+  /**
+   * Use {@link #getSourcePropertiesMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getSourceProperties();
+  java.util.Map
+  getSourceProperties();
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -246,10 +197,9 @@ public interface FindingOrBuilder
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-  java.util.Map getSourcePropertiesMap();
+  java.util.Map
+  getSourcePropertiesMap();
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -261,13 +211,11 @@ public interface FindingOrBuilder
    */
 
   /* nullable */
-  com.google.protobuf.Value getSourcePropertiesOrDefault(
+com.google.protobuf.Value getSourcePropertiesOrDefault(
       java.lang.String key,
       /* nullable */
-      com.google.protobuf.Value defaultValue);
+com.google.protobuf.Value defaultValue);
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -277,58 +225,44 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-  com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key);
+
+  com.google.protobuf.Value getSourcePropertiesOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** - * - * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The securityMarks. */ com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks(); /** - * - * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder(); /** - * - * *
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -340,13 +274,10 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    * 
* * .google.protobuf.Timestamp event_time = 9; - * * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** - * - * *
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -358,13 +289,10 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    * 
* * .google.protobuf.Timestamp event_time = 9; - * * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** - * - * *
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -380,32 +308,24 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
   com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time at which the finding was created in Security Command Center.
    * 
@@ -415,35 +335,27 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.Severity severity = 12; - * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** - * - * *
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.Severity severity = 12; - * * @return The severity. */ com.google.cloud.securitycenter.v1.Finding.Severity getSeverity(); /** - * - * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -454,13 +366,10 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    * 
* * string canonical_name = 14; - * * @return The canonicalName. */ java.lang.String getCanonicalName(); /** - * - * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -471,14 +380,12 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    * 
* * string canonical_name = 14; - * * @return The bytes for canonicalName. */ - com.google.protobuf.ByteString getCanonicalNameBytes(); + com.google.protobuf.ByteString + getCanonicalNameBytes(); /** - * - * *
    * Indicates the mute state of a finding (either muted, unmuted
    * or undefined). Unlike other attributes of a finding, a finding provider
@@ -486,13 +393,10 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    * 
* * .google.cloud.securitycenter.v1.Finding.Mute mute = 15; - * * @return The enum numeric value on the wire for mute. */ int getMuteValue(); /** - * - * *
    * Indicates the mute state of a finding (either muted, unmuted
    * or undefined). Unlike other attributes of a finding, a finding provider
@@ -500,39 +404,30 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    * 
* * .google.cloud.securitycenter.v1.Finding.Mute mute = 15; - * * @return The mute. */ com.google.cloud.securitycenter.v1.Finding.Mute getMute(); /** - * - * *
    * The class of the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.FindingClass finding_class = 17; - * * @return The enum numeric value on the wire for findingClass. */ int getFindingClassValue(); /** - * - * *
    * The class of the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.FindingClass finding_class = 17; - * * @return The findingClass. */ com.google.cloud.securitycenter.v1.Finding.FindingClass getFindingClass(); /** - * - * *
    * Represents what's commonly known as an Indicator of compromise (IoC) in
    * computer forensics. This is an artifact observed on a network or in an
@@ -542,13 +437,10 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    * 
* * .google.cloud.securitycenter.v1.Indicator indicator = 18; - * * @return Whether the indicator field is set. */ boolean hasIndicator(); /** - * - * *
    * Represents what's commonly known as an Indicator of compromise (IoC) in
    * computer forensics. This is an artifact observed on a network or in an
@@ -558,13 +450,10 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    * 
* * .google.cloud.securitycenter.v1.Indicator indicator = 18; - * * @return The indicator. */ com.google.cloud.securitycenter.v1.Indicator getIndicator(); /** - * - * *
    * Represents what's commonly known as an Indicator of compromise (IoC) in
    * computer forensics. This is an artifact observed on a network or in an
@@ -578,8 +467,6 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
   com.google.cloud.securitycenter.v1.IndicatorOrBuilder getIndicatorOrBuilder();
 
   /**
-   *
-   *
    * 
    * Represents vulnerability specific fields like cve, cvss scores etc.
    * CVE stands for Common Vulnerabilities and Exposures
@@ -587,13 +474,10 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    * 
* * .google.cloud.securitycenter.v1.Vulnerability vulnerability = 20; - * * @return Whether the vulnerability field is set. */ boolean hasVulnerability(); /** - * - * *
    * Represents vulnerability specific fields like cve, cvss scores etc.
    * CVE stands for Common Vulnerabilities and Exposures
@@ -601,13 +485,10 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    * 
* * .google.cloud.securitycenter.v1.Vulnerability vulnerability = 20; - * * @return The vulnerability. */ com.google.cloud.securitycenter.v1.Vulnerability getVulnerability(); /** - * - * *
    * Represents vulnerability specific fields like cve, cvss scores etc.
    * CVE stands for Common Vulnerabilities and Exposures
@@ -619,151 +500,114 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
   com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder getVulnerabilityOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The most recent time this finding was muted or unmuted.
    * 
* - * - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the muteUpdateTime field is set. */ boolean hasMuteUpdateTime(); /** - * - * *
    * Output only. The most recent time this finding was muted or unmuted.
    * 
* - * - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The muteUpdateTime. */ com.google.protobuf.Timestamp getMuteUpdateTime(); /** - * - * *
    * Output only. The most recent time this finding was muted or unmuted.
    * 
* - * - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getMuteUpdateTimeOrBuilder(); /** - * - * *
    * Output only. Third party SIEM/SOAR fields within SCC, contains external
    * system information and external system finding fields.
    * 
* - * - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getExternalSystemsCount(); /** - * - * *
    * Output only. Third party SIEM/SOAR fields within SCC, contains external
    * system information and external system finding fields.
    * 
* - * - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + boolean containsExternalSystems( + java.lang.String key); + /** + * Use {@link #getExternalSystemsMap()} instead. */ - boolean containsExternalSystems(java.lang.String key); - /** Use {@link #getExternalSystemsMap()} instead. */ @java.lang.Deprecated java.util.Map - getExternalSystems(); + getExternalSystems(); /** - * - * *
    * Output only. Third party SIEM/SOAR fields within SCC, contains external
    * system information and external system finding fields.
    * 
* - * - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.Map - getExternalSystemsMap(); + getExternalSystemsMap(); /** - * - * *
    * Output only. Third party SIEM/SOAR fields within SCC, contains external
    * system information and external system finding fields.
    * 
* - * - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ /* nullable */ - com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault( +com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.securitycenter.v1.ExternalSystem defaultValue); +com.google.cloud.securitycenter.v1.ExternalSystem defaultValue); /** - * - * *
    * Output only. Third party SIEM/SOAR fields within SCC, contains external
    * system information and external system finding fields.
    * 
* - * - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrThrow(java.lang.String key); + + com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrThrow( + java.lang.String key); /** - * - * *
    * MITRE ATT&CK tactics and techniques related to this finding.
    * See: https://attack.mitre.org
    * 
* * .google.cloud.securitycenter.v1.MitreAttack mitre_attack = 25; - * * @return Whether the mitreAttack field is set. */ boolean hasMitreAttack(); /** - * - * *
    * MITRE ATT&CK tactics and techniques related to this finding.
    * See: https://attack.mitre.org
    * 
* * .google.cloud.securitycenter.v1.MitreAttack mitre_attack = 25; - * * @return The mitreAttack. */ com.google.cloud.securitycenter.v1.MitreAttack getMitreAttack(); /** - * - * *
    * MITRE ATT&CK tactics and techniques related to this finding.
    * See: https://attack.mitre.org
@@ -774,34 +618,26 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault(
   com.google.cloud.securitycenter.v1.MitreAttackOrBuilder getMitreAttackOrBuilder();
 
   /**
-   *
-   *
    * 
    * Access details associated to the Finding, such as more information on the
    * caller, which method was accessed, from where, etc.
    * 
* * .google.cloud.securitycenter.v1.Access access = 26; - * * @return Whether the access field is set. */ boolean hasAccess(); /** - * - * *
    * Access details associated to the Finding, such as more information on the
    * caller, which method was accessed, from where, etc.
    * 
* * .google.cloud.securitycenter.v1.Access access = 26; - * * @return The access. */ com.google.cloud.securitycenter.v1.Access getAccess(); /** - * - * *
    * Access details associated to the Finding, such as more information on the
    * caller, which method was accessed, from where, etc.
@@ -812,18 +648,15 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault(
   com.google.cloud.securitycenter.v1.AccessOrBuilder getAccessOrBuilder();
 
   /**
-   *
-   *
    * 
    * Contains information about the IP connection associated with the finding.
    * 
* * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ - java.util.List getConnectionsList(); + java.util.List + getConnectionsList(); /** - * - * *
    * Contains information about the IP connection associated with the finding.
    * 
@@ -832,8 +665,6 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault( */ com.google.cloud.securitycenter.v1.Connection getConnections(int index); /** - * - * *
    * Contains information about the IP connection associated with the finding.
    * 
@@ -842,30 +673,25 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault( */ int getConnectionsCount(); /** - * - * *
    * Contains information about the IP connection associated with the finding.
    * 
* * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ - java.util.List + java.util.List getConnectionsOrBuilderList(); /** - * - * *
    * Contains information about the IP connection associated with the finding.
    * 
* * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ - com.google.cloud.securitycenter.v1.ConnectionOrBuilder getConnectionsOrBuilder(int index); + com.google.cloud.securitycenter.v1.ConnectionOrBuilder getConnectionsOrBuilder( + int index); /** - * - * *
    * First known as mute_annotation. Records additional information about the
    * mute operation e.g. mute config that muted the finding, user who muted the
@@ -874,13 +700,10 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault(
    * 
* * string mute_initiator = 28; - * * @return The muteInitiator. */ java.lang.String getMuteInitiator(); /** - * - * *
    * First known as mute_annotation. Records additional information about the
    * mute operation e.g. mute config that muted the finding, user who muted the
@@ -889,24 +712,21 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault(
    * 
* * string mute_initiator = 28; - * * @return The bytes for muteInitiator. */ - com.google.protobuf.ByteString getMuteInitiatorBytes(); + com.google.protobuf.ByteString + getMuteInitiatorBytes(); /** - * - * *
    * Represents operating system processes associated with the Finding.
    * 
* * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ - java.util.List getProcessesList(); + java.util.List + getProcessesList(); /** - * - * *
    * Represents operating system processes associated with the Finding.
    * 
@@ -915,8 +735,6 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault( */ com.google.cloud.securitycenter.v1.Process getProcesses(int index); /** - * - * *
    * Represents operating system processes associated with the Finding.
    * 
@@ -925,30 +743,25 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault( */ int getProcessesCount(); /** - * - * *
    * Represents operating system processes associated with the Finding.
    * 
* * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ - java.util.List + java.util.List getProcessesOrBuilderList(); /** - * - * *
    * Represents operating system processes associated with the Finding.
    * 
* * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ - com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder(int index); + com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder( + int index); /** - * - * *
    * Contains compliance information for security standards associated to the
    * finding.
@@ -956,10 +769,9 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault(
    *
    * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
    */
-  java.util.List getCompliancesList();
+  java.util.List 
+      getCompliancesList();
   /**
-   *
-   *
    * 
    * Contains compliance information for security standards associated to the
    * finding.
@@ -969,8 +781,6 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault(
    */
   com.google.cloud.securitycenter.v1.Compliance getCompliances(int index);
   /**
-   *
-   *
    * 
    * Contains compliance information for security standards associated to the
    * finding.
@@ -980,8 +790,6 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault(
    */
   int getCompliancesCount();
   /**
-   *
-   *
    * 
    * Contains compliance information for security standards associated to the
    * finding.
@@ -989,11 +797,9 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault(
    *
    * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
    */
-  java.util.List
+  java.util.List 
       getCompliancesOrBuilderList();
   /**
-   *
-   *
    * 
    * Contains compliance information for security standards associated to the
    * finding.
@@ -1001,60 +807,48 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault(
    *
    * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
    */
-  com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBuilder(int index);
+  com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Contains more detail about the finding.
    * 
* * string description = 37; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Contains more detail about the finding.
    * 
* * string description = 37; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Represents exfiltration associated with the Finding.
    * 
* * .google.cloud.securitycenter.v1.Exfiltration exfiltration = 38; - * * @return Whether the exfiltration field is set. */ boolean hasExfiltration(); /** - * - * *
    * Represents exfiltration associated with the Finding.
    * 
* * .google.cloud.securitycenter.v1.Exfiltration exfiltration = 38; - * * @return The exfiltration. */ com.google.cloud.securitycenter.v1.Exfiltration getExfiltration(); /** - * - * *
    * Represents exfiltration associated with the Finding.
    * 
@@ -1064,18 +858,15 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault( com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder getExfiltrationOrBuilder(); /** - * - * *
    * Represents IAM bindings associated with the Finding.
    * 
* * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ - java.util.List getIamBindingsList(); + java.util.List + getIamBindingsList(); /** - * - * *
    * Represents IAM bindings associated with the Finding.
    * 
@@ -1084,8 +875,6 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault( */ com.google.cloud.securitycenter.v1.IamBinding getIamBindings(int index); /** - * - * *
    * Represents IAM bindings associated with the Finding.
    * 
@@ -1094,49 +883,41 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault( */ int getIamBindingsCount(); /** - * - * *
    * Represents IAM bindings associated with the Finding.
    * 
* * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ - java.util.List + java.util.List getIamBindingsOrBuilderList(); /** - * - * *
    * Represents IAM bindings associated with the Finding.
    * 
* * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ - com.google.cloud.securitycenter.v1.IamBindingOrBuilder getIamBindingsOrBuilder(int index); + com.google.cloud.securitycenter.v1.IamBindingOrBuilder getIamBindingsOrBuilder( + int index); /** - * - * *
    * Next steps associate to the finding.
    * 
* * string next_steps = 40; - * * @return The nextSteps. */ java.lang.String getNextSteps(); /** - * - * *
    * Next steps associate to the finding.
    * 
* * string next_steps = 40; - * * @return The bytes for nextSteps. */ - com.google.protobuf.ByteString getNextStepsBytes(); + com.google.protobuf.ByteString + getNextStepsBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java new file mode 100644 index 000000000..80c4447f8 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java @@ -0,0 +1,183 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/finding.proto + +package com.google.cloud.securitycenter.v1; + +public final class FindingOuterClass { + private FindingOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Finding_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/securitycenter/v1/finding" + + ".proto\022\036google.cloud.securitycenter.v1\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\032+google/cloud/securit" + + "ycenter/v1/access.proto\032/google/cloud/se" + + "curitycenter/v1/compliance.proto\032/google" + + "/cloud/securitycenter/v1/connection.prot" + + "o\0321google/cloud/securitycenter/v1/exfilt" + + "ration.proto\0324google/cloud/securitycente" + + "r/v1/external_system.proto\0320google/cloud" + + "/securitycenter/v1/iam_binding.proto\032.go" + + "ogle/cloud/securitycenter/v1/indicator.p" + + "roto\0321google/cloud/securitycenter/v1/mit" + + "re_attack.proto\032,google/cloud/securityce" + + "nter/v1/process.proto\0323google/cloud/secu" + + "ritycenter/v1/security_marks.proto\0322goog" + + "le/cloud/securitycenter/v1/vulnerability" + + ".proto\032\034google/protobuf/struct.proto\032\037go" + + "ogle/protobuf/timestamp.proto\"\232\021\n\007Findin" + + "g\022\014\n\004name\030\001 \001(\t\022\016\n\006parent\030\002 \001(\t\022\025\n\rresou" + + "rce_name\030\003 \001(\t\022<\n\005state\030\004 \001(\0162-.google.c" + + "loud.securitycenter.v1.Finding.State\022\020\n\010" + + "category\030\005 \001(\t\022\024\n\014external_uri\030\006 \001(\t\022X\n\021" + + "source_properties\030\007 \003(\0132=.google.cloud.s" + + "ecuritycenter.v1.Finding.SourcePropertie" + + "sEntry\022J\n\016security_marks\030\010 \001(\0132-.google." + + "cloud.securitycenter.v1.SecurityMarksB\003\340" + + "A\003\022.\n\nevent_time\030\t \001(\0132\032.google.protobuf" + + ".Timestamp\022/\n\013create_time\030\n \001(\0132\032.google" + + ".protobuf.Timestamp\022B\n\010severity\030\014 \001(\01620." + + "google.cloud.securitycenter.v1.Finding.S" + + "everity\022\026\n\016canonical_name\030\016 \001(\t\022:\n\004mute\030" + + "\017 \001(\0162,.google.cloud.securitycenter.v1.F" + + "inding.Mute\022K\n\rfinding_class\030\021 \001(\01624.goo" + + "gle.cloud.securitycenter.v1.Finding.Find" + + "ingClass\022<\n\tindicator\030\022 \001(\0132).google.clo" + + "ud.securitycenter.v1.Indicator\022D\n\rvulner" + + "ability\030\024 \001(\0132-.google.cloud.securitycen" + + "ter.v1.Vulnerability\0229\n\020mute_update_time" + + "\030\025 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "[\n\020external_systems\030\026 \003(\0132<.google.cloud" + + ".securitycenter.v1.Finding.ExternalSyste" + + "msEntryB\003\340A\003\022A\n\014mitre_attack\030\031 \001(\0132+.goo" + + "gle.cloud.securitycenter.v1.MitreAttack\022" + + "6\n\006access\030\032 \001(\0132&.google.cloud.securityc" + + "enter.v1.Access\022?\n\013connections\030\037 \003(\0132*.g" + + "oogle.cloud.securitycenter.v1.Connection" + + "\022\026\n\016mute_initiator\030\034 \001(\t\022:\n\tprocesses\030\036 " + + "\003(\0132\'.google.cloud.securitycenter.v1.Pro" + + "cess\022?\n\013compliances\030\" \003(\0132*.google.cloud" + + ".securitycenter.v1.Compliance\022\023\n\013descrip" + + "tion\030% \001(\t\022B\n\014exfiltration\030& \001(\0132,.googl" + + "e.cloud.securitycenter.v1.Exfiltration\022@" + + "\n\014iam_bindings\030\' \003(\0132*.google.cloud.secu" + + "ritycenter.v1.IamBinding\022\022\n\nnext_steps\030(" + + " \001(\t\032O\n\025SourcePropertiesEntry\022\013\n\003key\030\001 \001" + + "(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Valu" + + "e:\0028\001\032f\n\024ExternalSystemsEntry\022\013\n\003key\030\001 \001" + + "(\t\022=\n\005value\030\002 \001(\0132..google.cloud.securit" + + "ycenter.v1.ExternalSystem:\0028\001\"8\n\005State\022\025" + + "\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INA" + + "CTIVE\020\002\"Q\n\010Severity\022\030\n\024SEVERITY_UNSPECIF" + + "IED\020\000\022\014\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020" + + "\003\022\007\n\003LOW\020\004\"C\n\004Mute\022\024\n\020MUTE_UNSPECIFIED\020\000" + + "\022\t\n\005MUTED\020\001\022\013\n\007UNMUTED\020\002\022\r\n\tUNDEFINED\020\004\"" + + "\202\001\n\014FindingClass\022\035\n\031FINDING_CLASS_UNSPEC" + + "IFIED\020\000\022\n\n\006THREAT\020\001\022\021\n\rVULNERABILITY\020\002\022\024" + + "\n\020MISCONFIGURATION\020\003\022\017\n\013OBSERVATION\020\004\022\r\n" + + "\tSCC_ERROR\020\005:\333\001\352A\327\001\n%securitycenter.goog" + + "leapis.com/Finding\022@organizations/{organ" + + "ization}/sources/{source}/findings/{find" + + "ing}\0224folders/{folder}/sources/{source}/" + + "findings/{finding}\0226projects/{project}/s" + + "ources/{source}/findings/{finding}B\332\001\n\"c" + + "om.google.cloud.securitycenter.v1P\001ZLgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/securitycenter/v1;securitycenter\252\002\036Goog" + + "le.Cloud.SecurityCenter.V1\312\002\036Google\\Clou" + + "d\\SecurityCenter\\V1\352\002!Google::Cloud::Sec" + + "urityCenter::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.securitycenter.v1.AccessProto.getDescriptor(), + com.google.cloud.securitycenter.v1.ComplianceProto.getDescriptor(), + com.google.cloud.securitycenter.v1.ConnectionProto.getDescriptor(), + com.google.cloud.securitycenter.v1.ExfiltrationProto.getDescriptor(), + com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(), + com.google.cloud.securitycenter.v1.IamBindingProto.getDescriptor(), + com.google.cloud.securitycenter.v1.IndicatorProto.getDescriptor(), + com.google.cloud.securitycenter.v1.MitreAttackProto.getDescriptor(), + com.google.cloud.securitycenter.v1.ProcessProto.getDescriptor(), + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.VulnerabilityProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_Finding_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Finding_descriptor, + new java.lang.String[] { "Name", "Parent", "ResourceName", "State", "Category", "ExternalUri", "SourceProperties", "SecurityMarks", "EventTime", "CreateTime", "Severity", "CanonicalName", "Mute", "FindingClass", "Indicator", "Vulnerability", "MuteUpdateTime", "ExternalSystems", "MitreAttack", "Access", "Connections", "MuteInitiator", "Processes", "Compliances", "Description", "Exfiltration", "IamBindings", "NextSteps", }); + internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor = + internal_static_google_cloud_securitycenter_v1_Finding_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_descriptor = + internal_static_google_cloud_securitycenter_v1_Finding_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.securitycenter.v1.AccessProto.getDescriptor(); + com.google.cloud.securitycenter.v1.ComplianceProto.getDescriptor(); + com.google.cloud.securitycenter.v1.ConnectionProto.getDescriptor(); + com.google.cloud.securitycenter.v1.ExfiltrationProto.getDescriptor(); + com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(); + com.google.cloud.securitycenter.v1.IamBindingProto.getDescriptor(); + com.google.cloud.securitycenter.v1.IndicatorProto.getDescriptor(); + com.google.cloud.securitycenter.v1.MitreAttackProto.getDescriptor(); + com.google.cloud.securitycenter.v1.ProcessProto.getDescriptor(); + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.VulnerabilityProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Folder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Folder.java similarity index 70% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Folder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Folder.java index b0a6035e3..647029637 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Folder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Folder.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/folder.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Message that contains the resource name and display name of a folder
  * resource.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.Folder}
  */
-public final class Folder extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Folder extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Folder)
     FolderOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Folder.newBuilder() to construct.
   private Folder(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Folder() {
     resourceFolder_ = "";
     resourceFolderDisplayName_ = "";
@@ -45,15 +27,16 @@ private Folder() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Folder();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Folder(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,27 +55,25 @@ private Folder(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              resourceFolder_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            resourceFolder_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              resourceFolderDisplayName_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            resourceFolderDisplayName_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,40 +81,35 @@ private Folder(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1.FolderProto
-        .internal_static_google_cloud_securitycenter_v1_Folder_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1.FolderProto.internal_static_google_cloud_securitycenter_v1_Folder_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.FolderProto
-        .internal_static_google_cloud_securitycenter_v1_Folder_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.FolderProto.internal_static_google_cloud_securitycenter_v1_Folder_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.Folder.class,
-            com.google.cloud.securitycenter.v1.Folder.Builder.class);
+            com.google.cloud.securitycenter.v1.Folder.class, com.google.cloud.securitycenter.v1.Folder.Builder.class);
   }
 
   public static final int RESOURCE_FOLDER_FIELD_NUMBER = 1;
   private volatile java.lang.Object resourceFolder_;
   /**
-   *
-   *
    * 
    * Full resource name of this folder. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string resource_folder = 1; - * * @return The resourceFolder. */ @java.lang.Override @@ -142,30 +118,30 @@ public java.lang.String getResourceFolder() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFolder_ = s; return s; } } /** - * - * *
    * Full resource name of this folder. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string resource_folder = 1; - * * @return The bytes for resourceFolder. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceFolderBytes() { + public com.google.protobuf.ByteString + getResourceFolderBytes() { java.lang.Object ref = resourceFolder_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceFolder_ = b; return b; } else { @@ -176,14 +152,11 @@ public com.google.protobuf.ByteString getResourceFolderBytes() { public static final int RESOURCE_FOLDER_DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object resourceFolderDisplayName_; /** - * - * *
    * The user defined display name for this folder.
    * 
* * string resource_folder_display_name = 2; - * * @return The resourceFolderDisplayName. */ @java.lang.Override @@ -192,29 +165,29 @@ public java.lang.String getResourceFolderDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFolderDisplayName_ = s; return s; } } /** - * - * *
    * The user defined display name for this folder.
    * 
* * string resource_folder_display_name = 2; - * * @return The bytes for resourceFolderDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceFolderDisplayNameBytes() { + public com.google.protobuf.ByteString + getResourceFolderDisplayNameBytes() { java.lang.Object ref = resourceFolderDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceFolderDisplayName_ = b; return b; } else { @@ -223,7 +196,6 @@ public com.google.protobuf.ByteString getResourceFolderDisplayNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -235,7 +207,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceFolder_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceFolder_); } @@ -255,8 +228,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceFolder_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceFolderDisplayName_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceFolderDisplayName_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceFolderDisplayName_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -266,16 +238,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Folder)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Folder other = - (com.google.cloud.securitycenter.v1.Folder) obj; + com.google.cloud.securitycenter.v1.Folder other = (com.google.cloud.securitycenter.v1.Folder) obj; - if (!getResourceFolder().equals(other.getResourceFolder())) return false; - if (!getResourceFolderDisplayName().equals(other.getResourceFolderDisplayName())) return false; + if (!getResourceFolder() + .equals(other.getResourceFolder())) return false; + if (!getResourceFolderDisplayName() + .equals(other.getResourceFolderDisplayName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -296,104 +269,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Folder parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Folder parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Folder parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Folder parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Folder parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Folder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Folder parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Folder parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Folder parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.Folder parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.Folder parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Folder parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Folder parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Folder parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.Folder prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message that contains the resource name and display name of a folder
    * resource.
@@ -401,23 +367,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.Folder}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Folder)
       com.google.cloud.securitycenter.v1.FolderOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.FolderProto
-          .internal_static_google_cloud_securitycenter_v1_Folder_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.FolderProto.internal_static_google_cloud_securitycenter_v1_Folder_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.FolderProto
-          .internal_static_google_cloud_securitycenter_v1_Folder_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.FolderProto.internal_static_google_cloud_securitycenter_v1_Folder_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.Folder.class,
-              com.google.cloud.securitycenter.v1.Folder.Builder.class);
+              com.google.cloud.securitycenter.v1.Folder.class, com.google.cloud.securitycenter.v1.Folder.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.Folder.newBuilder()
@@ -425,15 +389,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -445,9 +410,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.FolderProto
-          .internal_static_google_cloud_securitycenter_v1_Folder_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.FolderProto.internal_static_google_cloud_securitycenter_v1_Folder_descriptor;
     }
 
     @java.lang.Override
@@ -466,8 +431,7 @@ public com.google.cloud.securitycenter.v1.Folder build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.Folder buildPartial() {
-      com.google.cloud.securitycenter.v1.Folder result =
-          new com.google.cloud.securitycenter.v1.Folder(this);
+      com.google.cloud.securitycenter.v1.Folder result = new com.google.cloud.securitycenter.v1.Folder(this);
       result.resourceFolder_ = resourceFolder_;
       result.resourceFolderDisplayName_ = resourceFolderDisplayName_;
       onBuilt();
@@ -478,39 +442,38 @@ public com.google.cloud.securitycenter.v1.Folder buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.Folder) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.Folder) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.Folder)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -558,21 +521,19 @@ public Builder mergeFrom(
 
     private java.lang.Object resourceFolder_ = "";
     /**
-     *
-     *
      * 
      * Full resource name of this folder. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_folder = 1; - * * @return The resourceFolder. */ public java.lang.String getResourceFolder() { java.lang.Object ref = resourceFolder_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFolder_ = s; return s; @@ -581,22 +542,21 @@ public java.lang.String getResourceFolder() { } } /** - * - * *
      * Full resource name of this folder. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_folder = 1; - * * @return The bytes for resourceFolder. */ - public com.google.protobuf.ByteString getResourceFolderBytes() { + public com.google.protobuf.ByteString + getResourceFolderBytes() { java.lang.Object ref = resourceFolder_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceFolder_ = b; return b; } else { @@ -604,64 +564,57 @@ public com.google.protobuf.ByteString getResourceFolderBytes() { } } /** - * - * *
      * Full resource name of this folder. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_folder = 1; - * * @param value The resourceFolder to set. * @return This builder for chaining. */ - public Builder setResourceFolder(java.lang.String value) { + public Builder setResourceFolder( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceFolder_ = value; onChanged(); return this; } /** - * - * *
      * Full resource name of this folder. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_folder = 1; - * * @return This builder for chaining. */ public Builder clearResourceFolder() { - + resourceFolder_ = getDefaultInstance().getResourceFolder(); onChanged(); return this; } /** - * - * *
      * Full resource name of this folder. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_folder = 1; - * * @param value The bytes for resourceFolder to set. * @return This builder for chaining. */ - public Builder setResourceFolderBytes(com.google.protobuf.ByteString value) { + public Builder setResourceFolderBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceFolder_ = value; onChanged(); return this; @@ -669,20 +622,18 @@ public Builder setResourceFolderBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceFolderDisplayName_ = ""; /** - * - * *
      * The user defined display name for this folder.
      * 
* * string resource_folder_display_name = 2; - * * @return The resourceFolderDisplayName. */ public java.lang.String getResourceFolderDisplayName() { java.lang.Object ref = resourceFolderDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFolderDisplayName_ = s; return s; @@ -691,21 +642,20 @@ public java.lang.String getResourceFolderDisplayName() { } } /** - * - * *
      * The user defined display name for this folder.
      * 
* * string resource_folder_display_name = 2; - * * @return The bytes for resourceFolderDisplayName. */ - public com.google.protobuf.ByteString getResourceFolderDisplayNameBytes() { + public com.google.protobuf.ByteString + getResourceFolderDisplayNameBytes() { java.lang.Object ref = resourceFolderDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceFolderDisplayName_ = b; return b; } else { @@ -713,68 +663,61 @@ public com.google.protobuf.ByteString getResourceFolderDisplayNameBytes() { } } /** - * - * *
      * The user defined display name for this folder.
      * 
* * string resource_folder_display_name = 2; - * * @param value The resourceFolderDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceFolderDisplayName(java.lang.String value) { + public Builder setResourceFolderDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceFolderDisplayName_ = value; onChanged(); return this; } /** - * - * *
      * The user defined display name for this folder.
      * 
* * string resource_folder_display_name = 2; - * * @return This builder for chaining. */ public Builder clearResourceFolderDisplayName() { - + resourceFolderDisplayName_ = getDefaultInstance().getResourceFolderDisplayName(); onChanged(); return this; } /** - * - * *
      * The user defined display name for this folder.
      * 
* * string resource_folder_display_name = 2; - * * @param value The bytes for resourceFolderDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceFolderDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setResourceFolderDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceFolderDisplayName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -784,12 +727,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Folder) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Folder) private static final com.google.cloud.securitycenter.v1.Folder DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Folder(); } @@ -798,16 +741,16 @@ public static com.google.cloud.securitycenter.v1.Folder getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Folder parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Folder(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Folder parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Folder(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -822,4 +765,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Folder getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderName.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderName.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderName.java diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderOrBuilder.java similarity index 60% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderOrBuilder.java index 325d2ec0d..3e97d4e38 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderOrBuilder.java @@ -1,77 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/folder.proto package com.google.cloud.securitycenter.v1; -public interface FolderOrBuilder - extends +public interface FolderOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Folder) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Full resource name of this folder. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string resource_folder = 1; - * * @return The resourceFolder. */ java.lang.String getResourceFolder(); /** - * - * *
    * Full resource name of this folder. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string resource_folder = 1; - * * @return The bytes for resourceFolder. */ - com.google.protobuf.ByteString getResourceFolderBytes(); + com.google.protobuf.ByteString + getResourceFolderBytes(); /** - * - * *
    * The user defined display name for this folder.
    * 
* * string resource_folder_display_name = 2; - * * @return The resourceFolderDisplayName. */ java.lang.String getResourceFolderDisplayName(); /** - * - * *
    * The user defined display name for this folder.
    * 
* * string resource_folder_display_name = 2; - * * @return The bytes for resourceFolderDisplayName. */ - com.google.protobuf.ByteString getResourceFolderDisplayNameBytes(); + com.google.protobuf.ByteString + getResourceFolderDisplayNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderProto.java new file mode 100644 index 000000000..a1295ec42 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderProto.java @@ -0,0 +1,55 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/folder.proto + +package com.google.cloud.securitycenter.v1; + +public final class FolderProto { + private FolderProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Folder_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Folder_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/securitycenter/v1/folder." + + "proto\022\036google.cloud.securitycenter.v1\"G\n" + + "\006Folder\022\027\n\017resource_folder\030\001 \001(\t\022$\n\034reso" + + "urce_folder_display_name\030\002 \001(\tB\347\001\n\"com.g" + + "oogle.cloud.securitycenter.v1B\013FolderPro" + + "toP\001ZLgoogle.golang.org/genproto/googlea" + + "pis/cloud/securitycenter/v1;securitycent" + + "er\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036Go" + + "ogle\\Cloud\\SecurityCenter\\V1\352\002!Google::C" + + "loud::SecurityCenter::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_securitycenter_v1_Folder_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Folder_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Folder_descriptor, + new java.lang.String[] { "ResourceFolder", "ResourceFolderDisplayName", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Geolocation.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Geolocation.java similarity index 68% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Geolocation.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Geolocation.java index 930766df7..faf1a2c0a 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Geolocation.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Geolocation.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/access.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Represents a geographical location for a given access.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Geolocation} */ -public final class Geolocation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Geolocation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Geolocation) GeolocationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Geolocation.newBuilder() to construct. private Geolocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Geolocation() { regionCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Geolocation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Geolocation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private Geolocation( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - regionCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + regionCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,39 +73,34 @@ private Geolocation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.AccessProto - .internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.AccessProto.internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.AccessProto - .internal_static_google_cloud_securitycenter_v1_Geolocation_fieldAccessorTable + return com.google.cloud.securitycenter.v1.AccessProto.internal_static_google_cloud_securitycenter_v1_Geolocation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Geolocation.class, - com.google.cloud.securitycenter.v1.Geolocation.Builder.class); + com.google.cloud.securitycenter.v1.Geolocation.class, com.google.cloud.securitycenter.v1.Geolocation.Builder.class); } public static final int REGION_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object regionCode_; /** - * - * *
    * A CLDR.
    * 
* * string region_code = 1; - * * @return The regionCode. */ @java.lang.Override @@ -132,29 +109,29 @@ public java.lang.String getRegionCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); regionCode_ = s; return s; } } /** - * - * *
    * A CLDR.
    * 
* * string region_code = 1; - * * @return The bytes for regionCode. */ @java.lang.Override - public com.google.protobuf.ByteString getRegionCodeBytes() { + public com.google.protobuf.ByteString + getRegionCodeBytes() { java.lang.Object ref = regionCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); regionCode_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getRegionCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, regionCode_); } @@ -199,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Geolocation)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Geolocation other = - (com.google.cloud.securitycenter.v1.Geolocation) obj; + com.google.cloud.securitycenter.v1.Geolocation other = (com.google.cloud.securitycenter.v1.Geolocation) obj; - if (!getRegionCode().equals(other.getRegionCode())) return false; + if (!getRegionCode() + .equals(other.getRegionCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -226,127 +203,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Geolocation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Geolocation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Geolocation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Geolocation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Geolocation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Geolocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Geolocation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Geolocation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Geolocation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.Geolocation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.Geolocation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Geolocation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Geolocation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Geolocation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.Geolocation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents a geographical location for a given access.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Geolocation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Geolocation) com.google.cloud.securitycenter.v1.GeolocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.AccessProto - .internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.AccessProto.internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.AccessProto - .internal_static_google_cloud_securitycenter_v1_Geolocation_fieldAccessorTable + return com.google.cloud.securitycenter.v1.AccessProto.internal_static_google_cloud_securitycenter_v1_Geolocation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Geolocation.class, - com.google.cloud.securitycenter.v1.Geolocation.Builder.class); + com.google.cloud.securitycenter.v1.Geolocation.class, com.google.cloud.securitycenter.v1.Geolocation.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.Geolocation.newBuilder() @@ -354,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -372,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.AccessProto - .internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.AccessProto.internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor; } @java.lang.Override @@ -393,8 +362,7 @@ public com.google.cloud.securitycenter.v1.Geolocation build() { @java.lang.Override public com.google.cloud.securitycenter.v1.Geolocation buildPartial() { - com.google.cloud.securitycenter.v1.Geolocation result = - new com.google.cloud.securitycenter.v1.Geolocation(this); + com.google.cloud.securitycenter.v1.Geolocation result = new com.google.cloud.securitycenter.v1.Geolocation(this); result.regionCode_ = regionCode_; onBuilt(); return result; @@ -404,39 +372,38 @@ public com.google.cloud.securitycenter.v1.Geolocation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.Geolocation) { - return mergeFrom((com.google.cloud.securitycenter.v1.Geolocation) other); + return mergeFrom((com.google.cloud.securitycenter.v1.Geolocation)other); } else { super.mergeFrom(other); return this; @@ -480,20 +447,18 @@ public Builder mergeFrom( private java.lang.Object regionCode_ = ""; /** - * - * *
      * A CLDR.
      * 
* * string region_code = 1; - * * @return The regionCode. */ public java.lang.String getRegionCode() { java.lang.Object ref = regionCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); regionCode_ = s; return s; @@ -502,21 +467,20 @@ public java.lang.String getRegionCode() { } } /** - * - * *
      * A CLDR.
      * 
* * string region_code = 1; - * * @return The bytes for regionCode. */ - public com.google.protobuf.ByteString getRegionCodeBytes() { + public com.google.protobuf.ByteString + getRegionCodeBytes() { java.lang.Object ref = regionCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); regionCode_ = b; return b; } else { @@ -524,68 +488,61 @@ public com.google.protobuf.ByteString getRegionCodeBytes() { } } /** - * - * *
      * A CLDR.
      * 
* * string region_code = 1; - * * @param value The regionCode to set. * @return This builder for chaining. */ - public Builder setRegionCode(java.lang.String value) { + public Builder setRegionCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + regionCode_ = value; onChanged(); return this; } /** - * - * *
      * A CLDR.
      * 
* * string region_code = 1; - * * @return This builder for chaining. */ public Builder clearRegionCode() { - + regionCode_ = getDefaultInstance().getRegionCode(); onChanged(); return this; } /** - * - * *
      * A CLDR.
      * 
* * string region_code = 1; - * * @param value The bytes for regionCode to set. * @return This builder for chaining. */ - public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + public Builder setRegionCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + regionCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -595,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Geolocation) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Geolocation) private static final com.google.cloud.securitycenter.v1.Geolocation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Geolocation(); } @@ -609,16 +566,16 @@ public static com.google.cloud.securitycenter.v1.Geolocation getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Geolocation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Geolocation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Geolocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Geolocation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -633,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Geolocation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GeolocationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GeolocationOrBuilder.java new file mode 100644 index 000000000..0b3d14d2e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GeolocationOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/access.proto + +package com.google.cloud.securitycenter.v1; + +public interface GeolocationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Geolocation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A CLDR.
+   * 
+ * + * string region_code = 1; + * @return The regionCode. + */ + java.lang.String getRegionCode(); + /** + *
+   * A CLDR.
+   * 
+ * + * string region_code = 1; + * @return The bytes for regionCode. + */ + com.google.protobuf.ByteString + getRegionCodeBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequest.java similarity index 67% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequest.java index f1a98e72d..70e2f5737 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for retrieving a big query export.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GetBigQueryExportRequest} */ -public final class GetBigQueryExportRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetBigQueryExportRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GetBigQueryExportRequest) GetBigQueryExportRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetBigQueryExportRequest.newBuilder() to construct. private GetBigQueryExportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetBigQueryExportRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetBigQueryExportRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetBigQueryExportRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetBigQueryExportRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private GetBigQueryExportRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.class, - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.Builder.class); + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.class, com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the big query export to retrieve. Its format is
    * organizations/{organization}/bigQueryExports/{export_id},
@@ -125,10 +103,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * projects/{project}/bigQueryExports/{export_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -137,15 +112,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the big query export to retrieve. Its format is
    * organizations/{organization}/bigQueryExports/{export_id},
@@ -153,18 +127,17 @@ public java.lang.String getName() {
    * projects/{project}/bigQueryExports/{export_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -173,7 +146,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +157,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -209,15 +182,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.GetBigQueryExportRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest other = - (com.google.cloud.securitycenter.v1.GetBigQueryExportRequest) obj; + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest other = (com.google.cloud.securitycenter.v1.GetBigQueryExportRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -237,127 +210,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.GetBigQueryExportRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for retrieving a big query export.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GetBigQueryExportRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GetBigQueryExportRequest) com.google.cloud.securitycenter.v1.GetBigQueryExportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.class, - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.Builder.class); + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.class, com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.newBuilder() @@ -365,15 +328,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -383,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor; } @java.lang.Override @@ -404,8 +368,7 @@ public com.google.cloud.securitycenter.v1.GetBigQueryExportRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.GetBigQueryExportRequest buildPartial() { - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest result = - new com.google.cloud.securitycenter.v1.GetBigQueryExportRequest(this); + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest result = new com.google.cloud.securitycenter.v1.GetBigQueryExportRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,39 +378,38 @@ public com.google.cloud.securitycenter.v1.GetBigQueryExportRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.GetBigQueryExportRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.GetBigQueryExportRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.GetBigQueryExportRequest)other); } else { super.mergeFrom(other); return this; @@ -455,8 +417,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.GetBigQueryExportRequest other) { - if (other == com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,8 +441,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.GetBigQueryExportRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.GetBigQueryExportRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,8 +453,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the big query export to retrieve. Its format is
      * organizations/{organization}/bigQueryExports/{export_id},
@@ -502,16 +460,14 @@ public Builder mergeFrom(
      * projects/{project}/bigQueryExports/{export_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -520,8 +476,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the big query export to retrieve. Its format is
      * organizations/{organization}/bigQueryExports/{export_id},
@@ -529,17 +483,16 @@ public java.lang.String getName() {
      * projects/{project}/bigQueryExports/{export_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -547,8 +500,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the big query export to retrieve. Its format is
      * organizations/{organization}/bigQueryExports/{export_id},
@@ -556,25 +507,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * projects/{project}/bigQueryExports/{export_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the big query export to retrieve. Its format is
      * organizations/{organization}/bigQueryExports/{export_id},
@@ -582,21 +529,16 @@ public Builder setName(java.lang.String value) {
      * projects/{project}/bigQueryExports/{export_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the big query export to retrieve. Its format is
      * organizations/{organization}/bigQueryExports/{export_id},
@@ -604,26 +546,24 @@ public Builder clearName() {
      * projects/{project}/bigQueryExports/{export_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -633,12 +573,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GetBigQueryExportRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GetBigQueryExportRequest) private static final com.google.cloud.securitycenter.v1.GetBigQueryExportRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GetBigQueryExportRequest(); } @@ -647,16 +587,16 @@ public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBigQueryExportRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetBigQueryExportRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBigQueryExportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetBigQueryExportRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -671,4 +611,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.GetBigQueryExportRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequestOrBuilder.java new file mode 100644 index 000000000..24a999b0c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequestOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface GetBigQueryExportRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetBigQueryExportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the big query export to retrieve. Its format is
+   * organizations/{organization}/bigQueryExports/{export_id},
+   * folders/{folder}/bigQueryExports/{export_id}, or
+   * projects/{project}/bigQueryExports/{export_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the big query export to retrieve. Its format is
+   * organizations/{organization}/bigQueryExports/{export_id},
+   * folders/{folder}/bigQueryExports/{export_id}, or
+   * projects/{project}/bigQueryExports/{export_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequest.java similarity index 67% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequest.java index 2c35d2635..7953b91fb 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for retrieving a mute config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GetMuteConfigRequest} */ -public final class GetMuteConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetMuteConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GetMuteConfigRequest) GetMuteConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetMuteConfigRequest.newBuilder() to construct. private GetMuteConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetMuteConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetMuteConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetMuteConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetMuteConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private GetMuteConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GetMuteConfigRequest.class, - com.google.cloud.securitycenter.v1.GetMuteConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.GetMuteConfigRequest.class, com.google.cloud.securitycenter.v1.GetMuteConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the mute config to retrieve. Its format is
    * organizations/{organization}/muteConfigs/{config_id},
@@ -125,10 +103,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * projects/{project}/muteConfigs/{config_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -137,15 +112,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the mute config to retrieve. Its format is
    * organizations/{organization}/muteConfigs/{config_id},
@@ -153,18 +127,17 @@ public java.lang.String getName() {
    * projects/{project}/muteConfigs/{config_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -173,7 +146,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +157,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -209,15 +182,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.GetMuteConfigRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.GetMuteConfigRequest other = - (com.google.cloud.securitycenter.v1.GetMuteConfigRequest) obj; + com.google.cloud.securitycenter.v1.GetMuteConfigRequest other = (com.google.cloud.securitycenter.v1.GetMuteConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -237,127 +210,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.GetMuteConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.GetMuteConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for retrieving a mute config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GetMuteConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GetMuteConfigRequest) com.google.cloud.securitycenter.v1.GetMuteConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GetMuteConfigRequest.class, - com.google.cloud.securitycenter.v1.GetMuteConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.GetMuteConfigRequest.class, com.google.cloud.securitycenter.v1.GetMuteConfigRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.GetMuteConfigRequest.newBuilder() @@ -365,15 +328,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -383,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor; } @java.lang.Override @@ -404,8 +368,7 @@ public com.google.cloud.securitycenter.v1.GetMuteConfigRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.GetMuteConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1.GetMuteConfigRequest result = - new com.google.cloud.securitycenter.v1.GetMuteConfigRequest(this); + com.google.cloud.securitycenter.v1.GetMuteConfigRequest result = new com.google.cloud.securitycenter.v1.GetMuteConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,39 +378,38 @@ public com.google.cloud.securitycenter.v1.GetMuteConfigRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.GetMuteConfigRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.GetMuteConfigRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.GetMuteConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -455,8 +417,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.GetMuteConfigRequest other) { - if (other == com.google.cloud.securitycenter.v1.GetMuteConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.GetMuteConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,8 +441,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.GetMuteConfigRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.GetMuteConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,8 +453,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the mute config to retrieve. Its format is
      * organizations/{organization}/muteConfigs/{config_id},
@@ -502,16 +460,14 @@ public Builder mergeFrom(
      * projects/{project}/muteConfigs/{config_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -520,8 +476,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the mute config to retrieve. Its format is
      * organizations/{organization}/muteConfigs/{config_id},
@@ -529,17 +483,16 @@ public java.lang.String getName() {
      * projects/{project}/muteConfigs/{config_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -547,8 +500,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the mute config to retrieve. Its format is
      * organizations/{organization}/muteConfigs/{config_id},
@@ -556,25 +507,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * projects/{project}/muteConfigs/{config_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the mute config to retrieve. Its format is
      * organizations/{organization}/muteConfigs/{config_id},
@@ -582,21 +529,16 @@ public Builder setName(java.lang.String value) {
      * projects/{project}/muteConfigs/{config_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the mute config to retrieve. Its format is
      * organizations/{organization}/muteConfigs/{config_id},
@@ -604,26 +546,24 @@ public Builder clearName() {
      * projects/{project}/muteConfigs/{config_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -633,12 +573,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GetMuteConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GetMuteConfigRequest) private static final com.google.cloud.securitycenter.v1.GetMuteConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GetMuteConfigRequest(); } @@ -647,16 +587,16 @@ public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMuteConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetMuteConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMuteConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetMuteConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -671,4 +611,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.GetMuteConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequestOrBuilder.java new file mode 100644 index 000000000..c5ae6e39c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequestOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface GetMuteConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetMuteConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the mute config to retrieve. Its format is
+   * organizations/{organization}/muteConfigs/{config_id},
+   * folders/{folder}/muteConfigs/{config_id}, or
+   * projects/{project}/muteConfigs/{config_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the mute config to retrieve. Its format is
+   * organizations/{organization}/muteConfigs/{config_id},
+   * folders/{folder}/muteConfigs/{config_id}, or
+   * projects/{project}/muteConfigs/{config_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequest.java similarity index 64% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequest.java index dee55f9a2..7d504bee3 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for getting a notification config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GetNotificationConfigRequest} */ -public final class GetNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetNotificationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GetNotificationConfigRequest) GetNotificationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetNotificationConfigRequest.newBuilder() to construct. private GetNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetNotificationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetNotificationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetNotificationConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetNotificationConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetNotificationConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.class, - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.class, com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the notification config to get. Its format is
    * "organizations/[organization_id]/notificationConfigs/[config_id]".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the notification config to get. Its format is
    * "organizations/[organization_id]/notificationConfigs/[config_id]".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.GetNotificationConfigRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest other = - (com.google.cloud.securitycenter.v1.GetNotificationConfigRequest) obj; + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest other = (com.google.cloud.securitycenter.v1.GetNotificationConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.GetNotificationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for getting a notification config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GetNotificationConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GetNotificationConfigRequest) com.google.cloud.securitycenter.v1.GetNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.class, - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.class, com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.GetNotificationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.GetNotificationConfigRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.securitycenter.v1.GetNotificationConfigRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.GetNotificationConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest result = - new com.google.cloud.securitycenter.v1.GetNotificationConfigRequest(this); + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest result = new com.google.cloud.securitycenter.v1.GetNotificationConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,50 +374,46 @@ public com.google.cloud.securitycenter.v1.GetNotificationConfigRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.GetNotificationConfigRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.GetNotificationConfigRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.GetNotificationConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest other) { - if (other - == com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1.GetNotificationConfigRequest other) { + if (other == com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -479,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.GetNotificationConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.GetNotificationConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the notification config to get. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -518,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the notification config to get. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the notification config to get. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the notification config to get. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the notification config to get. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -623,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GetNotificationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GetNotificationConfigRequest) - private static final com.google.cloud.securitycenter.v1.GetNotificationConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1.GetNotificationConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GetNotificationConfigRequest(); } - public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNotificationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNotificationConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNotificationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetNotificationConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,8 +594,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.securitycenter.v1.GetNotificationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.GetNotificationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequestOrBuilder.java new file mode 100644 index 000000000..7dae1ef25 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface GetNotificationConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetNotificationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the notification config to get. Its format is
+   * "organizations/[organization_id]/notificationConfigs/[config_id]".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the notification config to get. Its format is
+   * "organizations/[organization_id]/notificationConfigs/[config_id]".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java similarity index 63% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java index 8e000df4f..fbb5039c6 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for getting organization settings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GetOrganizationSettingsRequest} */ -public final class GetOrganizationSettingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetOrganizationSettingsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) GetOrganizationSettingsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetOrganizationSettingsRequest.newBuilder() to construct. - private GetOrganizationSettingsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetOrganizationSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetOrganizationSettingsRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetOrganizationSettingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetOrganizationSettingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,20 +53,19 @@ private GetOrganizationSettingsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,42 +73,35 @@ private GetOrganizationSettingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.class, - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.Builder.class); + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the organization to get organization settings for. Its format is
    * "organizations/[organization_id]/organizationSettings".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the organization to get organization settings for. Its format is
    * "organizations/[organization_id]/organizationSettings".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -170,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -206,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest other = - (com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) obj; + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest other = (com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for getting organization settings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GetOrganizationSettingsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.class, - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.Builder.class); + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.newBuilder() + // Construct using com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -382,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.getDefaultInstance(); } @@ -404,8 +364,7 @@ public com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest build() @java.lang.Override public com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest buildPartial() { - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest result = - new com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest(this); + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest result = new com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,50 +374,46 @@ public com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest other) { - if (other - == com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest other) { + if (other == com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -482,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -496,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -521,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -546,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -626,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) - private static final com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest(); } - public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOrganizationSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetOrganizationSettingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrganizationSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetOrganizationSettingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -663,8 +594,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java new file mode 100644 index 000000000..9f0dfe98e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface GetOrganizationSettingsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the organization to get organization settings for. Its format is
+   * "organizations/[organization_id]/organizationSettings".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the organization to get organization settings for. Its format is
+   * "organizations/[organization_id]/organizationSettings".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java similarity index 66% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java index 8593eb8fe..47e1b6656 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for getting a source.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GetSourceRequest} */ -public final class GetSourceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSourceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GetSourceRequest) GetSourceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSourceRequest.newBuilder() to construct. private GetSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSourceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetSourceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetSourceRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetSourceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GetSourceRequest.class, - com.google.cloud.securitycenter.v1.GetSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1.GetSourceRequest.class, com.google.cloud.securitycenter.v1.GetSourceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Relative resource name of the source. Its format is
    * "organizations/[organization_id]/source/[source_id]".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Relative resource name of the source. Its format is
    * "organizations/[organization_id]/source/[source_id]".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.GetSourceRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.GetSourceRequest other = - (com.google.cloud.securitycenter.v1.GetSourceRequest) obj; + com.google.cloud.securitycenter.v1.GetSourceRequest other = (com.google.cloud.securitycenter.v1.GetSourceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,126 +206,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GetSourceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GetSourceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.GetSourceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for getting a source.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GetSourceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GetSourceRequest) com.google.cloud.securitycenter.v1.GetSourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GetSourceRequest.class, - com.google.cloud.securitycenter.v1.GetSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1.GetSourceRequest.class, com.google.cloud.securitycenter.v1.GetSourceRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.GetSourceRequest.newBuilder() @@ -360,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; } @java.lang.Override @@ -399,8 +364,7 @@ public com.google.cloud.securitycenter.v1.GetSourceRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.GetSourceRequest buildPartial() { - com.google.cloud.securitycenter.v1.GetSourceRequest result = - new com.google.cloud.securitycenter.v1.GetSourceRequest(this); + com.google.cloud.securitycenter.v1.GetSourceRequest result = new com.google.cloud.securitycenter.v1.GetSourceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.cloud.securitycenter.v1.GetSourceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.GetSourceRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.GetSourceRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.GetSourceRequest)other); } else { super.mergeFrom(other); return this; @@ -450,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.GetSourceRequest other) { - if (other == com.google.cloud.securitycenter.v1.GetSourceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.GetSourceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -475,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.GetSourceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.GetSourceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -488,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -513,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -538,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -618,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GetSourceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GetSourceRequest) private static final com.google.cloud.securitycenter.v1.GetSourceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GetSourceRequest(); } @@ -632,16 +573,16 @@ public static com.google.cloud.securitycenter.v1.GetSourceRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSourceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSourceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSourceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -656,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.GetSourceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java new file mode 100644 index 000000000..c25dba2e7 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface GetSourceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetSourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Relative resource name of the source. Its format is
+   * "organizations/[organization_id]/source/[source_id]".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Relative resource name of the source. Its format is
+   * "organizations/[organization_id]/source/[source_id]".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java similarity index 84% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java index 6704c358d..39b8c0111 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for grouping by assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GroupAssetsRequest} */ -public final class GroupAssetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GroupAssetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GroupAssetsRequest) GroupAssetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GroupAssetsRequest.newBuilder() to construct. private GroupAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GroupAssetsRequest() { parent_ = ""; filter_ = ""; @@ -46,15 +28,16 @@ private GroupAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GroupAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GroupAssetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,76 +56,68 @@ private GroupAssetsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - groupBy_ = s; - break; - } - case 34: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (compareDuration_ != null) { - subBuilder = compareDuration_.toBuilder(); - } - compareDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compareDuration_); - compareDuration_ = subBuilder.buildPartial(); - } - - break; + groupBy_ = s; + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + compareDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 64: - { - pageSize_ = input.readInt32(); - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 64: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -150,43 +125,36 @@ private GroupAssetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GroupAssetsRequest.class, - com.google.cloud.securitycenter.v1.GroupAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1.GroupAssetsRequest.class, com.google.cloud.securitycenter.v1.GroupAssetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -195,33 +163,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -232,8 +198,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -285,7 +249,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -294,15 +257,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -354,15 +316,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -373,8 +336,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int GROUP_BY_FIELD_NUMBER = 3; private volatile java.lang.Object groupBy_; /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -393,7 +354,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The groupBy. */ @java.lang.Override @@ -402,15 +362,14 @@ public java.lang.String getGroupBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; } } /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -429,15 +388,16 @@ public java.lang.String getGroupBy() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for groupBy. */ @java.lang.Override - public com.google.protobuf.ByteString getGroupByBytes() { + public com.google.protobuf.ByteString + getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); groupBy_ = b; return b; } else { @@ -448,8 +408,6 @@ public com.google.protobuf.ByteString getGroupByBytes() { public static final int COMPARE_DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration compareDuration_; /** - * - * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -476,7 +434,6 @@ public com.google.protobuf.ByteString getGroupByBytes() {
    * 
* * .google.protobuf.Duration compare_duration = 4; - * * @return Whether the compareDuration field is set. */ @java.lang.Override @@ -484,8 +441,6 @@ public boolean hasCompareDuration() { return compareDuration_ != null; } /** - * - * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -512,18 +467,13 @@ public boolean hasCompareDuration() {
    * 
* * .google.protobuf.Duration compare_duration = 4; - * * @return The compareDuration. */ @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { - return compareDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : compareDuration_; + return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; } /** - * - * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -559,8 +509,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
   public static final int READ_TIME_FIELD_NUMBER = 5;
   private com.google.protobuf.Timestamp readTime_;
   /**
-   *
-   *
    * 
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -569,7 +517,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
    * 
* * .google.protobuf.Timestamp read_time = 5; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -577,8 +524,6 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -587,7 +532,6 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 5; - * * @return The readTime. */ @java.lang.Override @@ -595,8 +539,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -614,8 +556,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int PAGE_TOKEN_FIELD_NUMBER = 7;
   private volatile java.lang.Object pageToken_;
   /**
-   *
-   *
    * 
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -623,7 +563,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * string page_token = 7; - * * @return The pageToken. */ @java.lang.Override @@ -632,15 +571,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -648,15 +586,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 7; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -667,15 +606,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 8; private int pageSize_; /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 8; - * * @return The pageSize. */ @java.lang.Override @@ -684,7 +620,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -696,7 +631,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -737,16 +673,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, groupBy_); } if (compareDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCompareDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCompareDuration()); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(8, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -756,27 +695,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.GroupAssetsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.GroupAssetsRequest other = - (com.google.cloud.securitycenter.v1.GroupAssetsRequest) obj; + com.google.cloud.securitycenter.v1.GroupAssetsRequest other = (com.google.cloud.securitycenter.v1.GroupAssetsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getGroupBy().equals(other.getGroupBy())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getGroupBy() + .equals(other.getGroupBy())) return false; if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - if (!getCompareDuration().equals(other.getCompareDuration())) return false; + if (!getCompareDuration() + .equals(other.getCompareDuration())) return false; } if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -812,127 +757,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.GroupAssetsRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.GroupAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for grouping by assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GroupAssetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GroupAssetsRequest) com.google.cloud.securitycenter.v1.GroupAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GroupAssetsRequest.class, - com.google.cloud.securitycenter.v1.GroupAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1.GroupAssetsRequest.class, com.google.cloud.securitycenter.v1.GroupAssetsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.GroupAssetsRequest.newBuilder() @@ -940,15 +875,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -978,9 +914,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor; } @java.lang.Override @@ -999,8 +935,7 @@ public com.google.cloud.securitycenter.v1.GroupAssetsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.GroupAssetsRequest buildPartial() { - com.google.cloud.securitycenter.v1.GroupAssetsRequest result = - new com.google.cloud.securitycenter.v1.GroupAssetsRequest(this); + com.google.cloud.securitycenter.v1.GroupAssetsRequest result = new com.google.cloud.securitycenter.v1.GroupAssetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.groupBy_ = groupBy_; @@ -1024,39 +959,38 @@ public com.google.cloud.securitycenter.v1.GroupAssetsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.GroupAssetsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.GroupAssetsRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.GroupAssetsRequest)other); } else { super.mergeFrom(other); return this; @@ -1064,8 +998,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupAssetsRequest other) { - if (other == com.google.cloud.securitycenter.v1.GroupAssetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.GroupAssetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1110,8 +1043,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.GroupAssetsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.GroupAssetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1123,24 +1055,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1149,25 +1077,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1175,73 +1100,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1249,8 +1161,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1302,13 +1212,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1317,8 +1227,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1370,14 +1278,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1385,8 +1294,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1438,22 +1345,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1505,18 +1410,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1568,16 +1470,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1585,8 +1487,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object groupBy_ = ""; /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1605,13 +1505,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The groupBy. */ public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; @@ -1620,8 +1520,6 @@ public java.lang.String getGroupBy() { } } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1640,14 +1538,15 @@ public java.lang.String getGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for groupBy. */ - public com.google.protobuf.ByteString getGroupByBytes() { + public com.google.protobuf.ByteString + getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); groupBy_ = b; return b; } else { @@ -1655,8 +1554,6 @@ public com.google.protobuf.ByteString getGroupByBytes() { } } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1675,22 +1572,20 @@ public com.google.protobuf.ByteString getGroupByBytes() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The groupBy to set. * @return This builder for chaining. */ - public Builder setGroupBy(java.lang.String value) { + public Builder setGroupBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + groupBy_ = value; onChanged(); return this; } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1709,18 +1604,15 @@ public Builder setGroupBy(java.lang.String value) {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearGroupBy() { - + groupBy_ = getDefaultInstance().getGroupBy(); onChanged(); return this; } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1739,16 +1631,16 @@ public Builder clearGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for groupBy to set. * @return This builder for chaining. */ - public Builder setGroupByBytes(com.google.protobuf.ByteString value) { + public Builder setGroupByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + groupBy_ = value; onChanged(); return this; @@ -1756,13 +1648,8 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Duration compareDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - compareDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> compareDurationBuilder_; /** - * - * *
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1789,15 +1676,12 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Duration compare_duration = 4; - * * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; } /** - * - * *
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1824,21 +1708,16 @@ public boolean hasCompareDuration() {
      * 
* * .google.protobuf.Duration compare_duration = 4; - * * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { - return compareDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : compareDuration_; + return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; } else { return compareDurationBuilder_.getMessage(); } } /** - * - * *
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1880,8 +1759,6 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1909,7 +1786,8 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration compare_duration = 4;
      */
-    public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setCompareDuration(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (compareDurationBuilder_ == null) {
         compareDuration_ = builderForValue.build();
         onChanged();
@@ -1920,8 +1798,6 @@ public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1953,9 +1829,7 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       if (compareDurationBuilder_ == null) {
         if (compareDuration_ != null) {
           compareDuration_ =
-              com.google.protobuf.Duration.newBuilder(compareDuration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(compareDuration_).mergeFrom(value).buildPartial();
         } else {
           compareDuration_ = value;
         }
@@ -1967,8 +1841,6 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -2008,8 +1880,6 @@ public Builder clearCompareDuration() {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -2038,13 +1908,11 @@ public Builder clearCompareDuration() {
      * .google.protobuf.Duration compare_duration = 4;
      */
     public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
-
+      
       onChanged();
       return getCompareDurationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -2076,14 +1944,11 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
       if (compareDurationBuilder_ != null) {
         return compareDurationBuilder_.getMessageOrBuilder();
       } else {
-        return compareDuration_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : compareDuration_;
+        return compareDuration_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : compareDuration_;
       }
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -2112,17 +1977,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * .google.protobuf.Duration compare_duration = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getCompareDurationFieldBuilder() {
       if (compareDurationBuilder_ == null) {
-        compareDurationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getCompareDuration(), getParentForChildren(), isClean());
+        compareDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getCompareDuration(),
+                getParentForChildren(),
+                isClean());
         compareDuration_ = null;
       }
       return compareDurationBuilder_;
@@ -2130,13 +1992,8 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
 
     private com.google.protobuf.Timestamp readTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        readTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_;
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2145,15 +2002,12 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * 
* * .google.protobuf.Timestamp read_time = 5; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2162,7 +2016,6 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 5; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -2173,8 +2026,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2198,8 +2049,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2209,7 +2058,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 5;
      */
-    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -2220,8 +2070,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2235,7 +2083,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -2247,8 +2095,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2270,8 +2116,6 @@ public Builder clearReadTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2282,13 +2126,11 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-
+      
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2302,12 +2144,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2318,17 +2159,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(), getParentForChildren(), isClean());
+        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(),
+                getParentForChildren(),
+                isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -2336,8 +2174,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private java.lang.Object pageToken_ = "";
     /**
-     *
-     *
      * 
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2345,13 +2181,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * string page_token = 7; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2360,8 +2196,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2369,14 +2203,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 7; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2384,8 +2219,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2393,22 +2226,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 7; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2416,18 +2247,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 7; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2435,32 +2263,29 @@ public Builder clearPageToken() {
      * 
* * string page_token = 7; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; - * * @return The pageSize. */ @java.lang.Override @@ -2468,45 +2293,39 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2516,12 +2335,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GroupAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GroupAssetsRequest) private static final com.google.cloud.securitycenter.v1.GroupAssetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GroupAssetsRequest(); } @@ -2530,16 +2349,16 @@ public static com.google.cloud.securitycenter.v1.GroupAssetsRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupAssetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAssetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2554,4 +2373,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.GroupAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java similarity index 91% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java index b6eb60a72..e24e974e8 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface GroupAssetsRequestOrBuilder - extends +public interface GroupAssetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GroupAssetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -110,13 +83,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -168,14 +138,12 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -194,13 +162,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The groupBy. */ java.lang.String getGroupBy(); /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -219,14 +184,12 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for groupBy. */ - com.google.protobuf.ByteString getGroupByBytes(); + com.google.protobuf.ByteString + getGroupByBytes(); /** - * - * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -253,13 +216,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * .google.protobuf.Duration compare_duration = 4; - * * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** - * - * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -286,13 +246,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * .google.protobuf.Duration compare_duration = 4; - * * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** - * - * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -323,8 +280,6 @@ public interface GroupAssetsRequestOrBuilder
   com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -333,13 +288,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 5; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -348,13 +300,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 5; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -367,8 +316,6 @@ public interface GroupAssetsRequestOrBuilder
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -376,13 +323,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * string page_token = 7; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -390,21 +334,18 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * string page_token = 7; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 8; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java similarity index 77% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java index 32c351f0b..bb81d5891 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Response message for grouping by assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GroupAssetsResponse} */ -public final class GroupAssetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GroupAssetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GroupAssetsResponse) GroupAssetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GroupAssetsResponse.newBuilder() to construct. private GroupAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GroupAssetsResponse() { groupByResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private GroupAssetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GroupAssetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GroupAssetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,52 +55,46 @@ private GroupAssetsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - groupByResults_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - groupByResults_.add( - input.readMessage( - com.google.cloud.securitycenter.v1.GroupResult.parser(), extensionRegistry)); - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + groupByResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; + groupByResults_.add( + input.readMessage(com.google.cloud.securitycenter.v1.GroupResult.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 32: - { - totalSize_ = input.readInt32(); - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 32: { + + totalSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,7 +102,8 @@ private GroupAssetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); @@ -134,27 +112,22 @@ private GroupAssetsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GroupAssetsResponse.class, - com.google.cloud.securitycenter.v1.GroupAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1.GroupAssetsResponse.class, com.google.cloud.securitycenter.v1.GroupAssetsResponse.Builder.class); } public static final int GROUP_BY_RESULTS_FIELD_NUMBER = 1; private java.util.List groupByResults_; /** - * - * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -168,8 +141,6 @@ public java.util.List getGroupBy
     return groupByResults_;
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -179,13 +150,11 @@ public java.util.List getGroupBy
    * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getGroupByResultsOrBuilderList() {
     return groupByResults_;
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -199,8 +168,6 @@ public int getGroupByResultsCount() {
     return groupByResults_.size();
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -214,8 +181,6 @@ public com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int inde
     return groupByResults_.get(index);
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -233,14 +198,11 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults
   public static final int READ_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Timestamp readTime_;
   /**
-   *
-   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -248,14 +210,11 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ @java.lang.Override @@ -263,8 +222,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used for executing the groupBy request.
    * 
@@ -279,15 +236,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -296,30 +250,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -330,14 +284,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_; /** - * - * *
    * The total number of results matching the query.
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -346,7 +297,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -358,7 +308,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < groupByResults_.size(); i++) { output.writeMessage(1, groupByResults_.get(i)); } @@ -381,16 +332,19 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < groupByResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, groupByResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, groupByResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -400,21 +354,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.GroupAssetsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.GroupAssetsResponse other = - (com.google.cloud.securitycenter.v1.GroupAssetsResponse) obj; + com.google.cloud.securitycenter.v1.GroupAssetsResponse other = (com.google.cloud.securitycenter.v1.GroupAssetsResponse) obj; - if (!getGroupByResultsList().equals(other.getGroupByResultsList())) return false; + if (!getGroupByResultsList() + .equals(other.getGroupByResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -444,127 +401,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.GroupAssetsResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.GroupAssetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for grouping by assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GroupAssetsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GroupAssetsResponse) com.google.cloud.securitycenter.v1.GroupAssetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GroupAssetsResponse.class, - com.google.cloud.securitycenter.v1.GroupAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1.GroupAssetsResponse.class, com.google.cloud.securitycenter.v1.GroupAssetsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.GroupAssetsResponse.newBuilder() @@ -572,17 +519,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getGroupByResultsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -606,9 +553,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor; } @java.lang.Override @@ -627,8 +574,7 @@ public com.google.cloud.securitycenter.v1.GroupAssetsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1.GroupAssetsResponse buildPartial() { - com.google.cloud.securitycenter.v1.GroupAssetsResponse result = - new com.google.cloud.securitycenter.v1.GroupAssetsResponse(this); + com.google.cloud.securitycenter.v1.GroupAssetsResponse result = new com.google.cloud.securitycenter.v1.GroupAssetsResponse(this); int from_bitField0_ = bitField0_; if (groupByResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -654,39 +600,38 @@ public com.google.cloud.securitycenter.v1.GroupAssetsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.GroupAssetsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1.GroupAssetsResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1.GroupAssetsResponse)other); } else { super.mergeFrom(other); return this; @@ -694,8 +639,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupAssetsResponse other) { - if (other == com.google.cloud.securitycenter.v1.GroupAssetsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.GroupAssetsResponse.getDefaultInstance()) return this; if (groupByResultsBuilder_ == null) { if (!other.groupByResults_.isEmpty()) { if (groupByResults_.isEmpty()) { @@ -714,10 +658,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupAssetsResponse groupByResultsBuilder_ = null; groupByResults_ = other.groupByResults_; bitField0_ = (bitField0_ & ~0x00000001); - groupByResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGroupByResultsFieldBuilder() - : null; + groupByResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGroupByResultsFieldBuilder() : null; } else { groupByResultsBuilder_.addAllMessages(other.groupByResults_); } @@ -752,8 +695,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.GroupAssetsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.GroupAssetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -762,30 +704,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List groupByResults_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureGroupByResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - groupByResults_ = - new java.util.ArrayList( - groupByResults_); + groupByResults_ = new java.util.ArrayList(groupByResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.GroupResult, - com.google.cloud.securitycenter.v1.GroupResult.Builder, - com.google.cloud.securitycenter.v1.GroupResultOrBuilder> - groupByResultsBuilder_; + com.google.cloud.securitycenter.v1.GroupResult, com.google.cloud.securitycenter.v1.GroupResult.Builder, com.google.cloud.securitycenter.v1.GroupResultOrBuilder> groupByResultsBuilder_; /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -802,8 +735,6 @@ public java.util.List getGroupBy
       }
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -820,8 +751,6 @@ public int getGroupByResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -838,8 +767,6 @@ public com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int inde
       }
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -863,8 +790,6 @@ public Builder setGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -885,8 +810,6 @@ public Builder setGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -909,8 +832,6 @@ public Builder addGroupByResults(com.google.cloud.securitycenter.v1.GroupResult
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -934,8 +855,6 @@ public Builder addGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -956,8 +875,6 @@ public Builder addGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -978,8 +895,6 @@ public Builder addGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -992,7 +907,8 @@ public Builder addAllGroupByResults(
         java.lang.Iterable values) {
       if (groupByResultsBuilder_ == null) {
         ensureGroupByResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupByResults_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, groupByResults_);
         onChanged();
       } else {
         groupByResultsBuilder_.addAllMessages(values);
@@ -1000,8 +916,6 @@ public Builder addAllGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1021,8 +935,6 @@ public Builder clearGroupByResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1042,8 +954,6 @@ public Builder removeGroupByResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1057,8 +967,6 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder getGroupByResultsB
       return getGroupByResultsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1070,14 +978,11 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder getGroupByResultsB
     public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder(
         int index) {
       if (groupByResultsBuilder_ == null) {
-        return groupByResults_.get(index);
-      } else {
+        return groupByResults_.get(index);  } else {
         return groupByResultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1086,8 +991,8 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults
      *
      * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
      */
-    public java.util.List
-        getGroupByResultsOrBuilderList() {
+    public java.util.List 
+         getGroupByResultsOrBuilderList() {
       if (groupByResultsBuilder_ != null) {
         return groupByResultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1095,8 +1000,6 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults
       }
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1106,12 +1009,10 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults
      * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
      */
     public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsBuilder() {
-      return getGroupByResultsFieldBuilder()
-          .addBuilder(com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance());
+      return getGroupByResultsFieldBuilder().addBuilder(
+          com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1122,12 +1023,10 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsB
      */
     public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsBuilder(
         int index) {
-      return getGroupByResultsFieldBuilder()
-          .addBuilder(index, com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance());
+      return getGroupByResultsFieldBuilder().addBuilder(
+          index, com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1136,22 +1035,16 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsB
      *
      * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
      */
-    public java.util.List
-        getGroupByResultsBuilderList() {
+    public java.util.List 
+         getGroupByResultsBuilderList() {
       return getGroupByResultsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.GroupResult,
-            com.google.cloud.securitycenter.v1.GroupResult.Builder,
-            com.google.cloud.securitycenter.v1.GroupResultOrBuilder>
+        com.google.cloud.securitycenter.v1.GroupResult, com.google.cloud.securitycenter.v1.GroupResult.Builder, com.google.cloud.securitycenter.v1.GroupResultOrBuilder> 
         getGroupByResultsFieldBuilder() {
       if (groupByResultsBuilder_ == null) {
-        groupByResultsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.securitycenter.v1.GroupResult,
-                com.google.cloud.securitycenter.v1.GroupResult.Builder,
-                com.google.cloud.securitycenter.v1.GroupResultOrBuilder>(
+        groupByResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.securitycenter.v1.GroupResult, com.google.cloud.securitycenter.v1.GroupResult.Builder, com.google.cloud.securitycenter.v1.GroupResultOrBuilder>(
                 groupByResults_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1163,33 +1056,24 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsB
 
     private com.google.protobuf.Timestamp readTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        readTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_;
     /**
-     *
-     *
      * 
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1200,8 +1084,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1222,15 +1104,14 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -1241,8 +1122,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1253,7 +1132,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -1265,8 +1144,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1285,8 +1162,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1294,13 +1169,11 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1311,12 +1184,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1324,17 +1196,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getReadTime(), getParentForChildren(), isClean()); + readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getReadTime(), + getParentForChildren(), + isClean()); readTime_ = null; } return readTimeBuilder_; @@ -1342,21 +1211,19 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1365,22 +1232,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1388,79 +1254,69 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -1468,43 +1324,37 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; - * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** - * - * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; - * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1514,12 +1364,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GroupAssetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GroupAssetsResponse) private static final com.google.cloud.securitycenter.v1.GroupAssetsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GroupAssetsResponse(); } @@ -1528,16 +1378,16 @@ public static com.google.cloud.securitycenter.v1.GroupAssetsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupAssetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupAssetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAssetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAssetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1552,4 +1402,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.GroupAssetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java similarity index 79% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java index 98c950b78..8e1053426 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface GroupAssetsResponseOrBuilder - extends +public interface GroupAssetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GroupAssetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -34,10 +16,9 @@ public interface GroupAssetsResponseOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
    */
-  java.util.List getGroupByResultsList();
+  java.util.List 
+      getGroupByResultsList();
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -48,8 +29,6 @@ public interface GroupAssetsResponseOrBuilder
    */
   com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int index);
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -60,8 +39,6 @@ public interface GroupAssetsResponseOrBuilder
    */
   int getGroupByResultsCount();
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -70,11 +47,9 @@ public interface GroupAssetsResponseOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
    */
-  java.util.List
+  java.util.List 
       getGroupByResultsOrBuilderList();
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -83,35 +58,28 @@ public interface GroupAssetsResponseOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
    */
-  com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder(int index);
+  com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used for executing the groupBy request.
    * 
@@ -121,41 +89,33 @@ public interface GroupAssetsResponseOrBuilder com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of results matching the query.
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ int getTotalSize(); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java similarity index 84% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java index 0a4b5e509..f9ddb9b92 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for grouping by findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GroupFindingsRequest} */ -public final class GroupFindingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GroupFindingsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GroupFindingsRequest) GroupFindingsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GroupFindingsRequest.newBuilder() to construct. private GroupFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GroupFindingsRequest() { parent_ = ""; filter_ = ""; @@ -46,15 +28,16 @@ private GroupFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GroupFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GroupFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,76 +56,68 @@ private GroupFindingsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - groupBy_ = s; - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + groupBy_ = s; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 42: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (compareDuration_ != null) { - subBuilder = compareDuration_.toBuilder(); - } - compareDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compareDuration_); - compareDuration_ = subBuilder.buildPartial(); - } - - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; + break; + } + case 42: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); } - case 64: - { - pageSize_ = input.readInt32(); - break; + compareDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 64: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -150,33 +125,29 @@ private GroupFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GroupFindingsRequest.class, - com.google.cloud.securitycenter.v1.GroupFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1.GroupFindingsRequest.class, com.google.cloud.securitycenter.v1.GroupFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]",
@@ -187,10 +158,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * or projects/{project_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -199,15 +167,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]",
@@ -218,18 +185,17 @@ public java.lang.String getParent() {
    * or projects/{project_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -240,8 +206,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -291,7 +255,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -300,15 +263,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -358,15 +320,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -377,8 +340,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int GROUP_BY_FIELD_NUMBER = 3; private volatile java.lang.Object groupBy_; /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state_change`). The string value should follow SQL syntax: comma separated
@@ -394,7 +355,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The groupBy. */ @java.lang.Override @@ -403,15 +363,14 @@ public java.lang.String getGroupBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; } } /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state_change`). The string value should follow SQL syntax: comma separated
@@ -427,15 +386,16 @@ public java.lang.String getGroupBy() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for groupBy. */ @java.lang.Override - public com.google.protobuf.ByteString getGroupByBytes() { + public com.google.protobuf.ByteString + getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); groupBy_ = b; return b; } else { @@ -446,8 +406,6 @@ public com.google.protobuf.ByteString getGroupByBytes() { public static final int READ_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp readTime_; /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -456,7 +414,6 @@ public com.google.protobuf.ByteString getGroupByBytes() {
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -464,8 +421,6 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -474,7 +429,6 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ @java.lang.Override @@ -482,8 +436,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -501,8 +453,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int COMPARE_DURATION_FIELD_NUMBER = 5;
   private com.google.protobuf.Duration compareDuration_;
   /**
-   *
-   *
    * 
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -534,7 +484,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ @java.lang.Override @@ -542,8 +491,6 @@ public boolean hasCompareDuration() { return compareDuration_ != null; } /** - * - * *
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -575,18 +522,13 @@ public boolean hasCompareDuration() {
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { - return compareDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : compareDuration_; + return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; } /** - * - * *
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -627,8 +569,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
   public static final int PAGE_TOKEN_FIELD_NUMBER = 7;
   private volatile java.lang.Object pageToken_;
   /**
-   *
-   *
    * 
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -636,7 +576,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
    * 
* * string page_token = 7; - * * @return The pageToken. */ @java.lang.Override @@ -645,15 +584,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -661,15 +599,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 7; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -680,15 +619,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 8; private int pageSize_; /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 8; - * * @return The pageSize. */ @java.lang.Override @@ -697,7 +633,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -709,7 +644,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -750,16 +686,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, groupBy_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getReadTime()); } if (compareDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCompareDuration()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(8, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -769,27 +708,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.GroupFindingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.GroupFindingsRequest other = - (com.google.cloud.securitycenter.v1.GroupFindingsRequest) obj; + com.google.cloud.securitycenter.v1.GroupFindingsRequest other = (com.google.cloud.securitycenter.v1.GroupFindingsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getGroupBy().equals(other.getGroupBy())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getGroupBy() + .equals(other.getGroupBy())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - if (!getCompareDuration().equals(other.getCompareDuration())) return false; + if (!getCompareDuration() + .equals(other.getCompareDuration())) return false; } - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -825,127 +770,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.GroupFindingsRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.GroupFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for grouping by findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GroupFindingsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GroupFindingsRequest) com.google.cloud.securitycenter.v1.GroupFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GroupFindingsRequest.class, - com.google.cloud.securitycenter.v1.GroupFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1.GroupFindingsRequest.class, com.google.cloud.securitycenter.v1.GroupFindingsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.GroupFindingsRequest.newBuilder() @@ -953,15 +888,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -991,9 +927,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor; } @java.lang.Override @@ -1012,8 +948,7 @@ public com.google.cloud.securitycenter.v1.GroupFindingsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.GroupFindingsRequest buildPartial() { - com.google.cloud.securitycenter.v1.GroupFindingsRequest result = - new com.google.cloud.securitycenter.v1.GroupFindingsRequest(this); + com.google.cloud.securitycenter.v1.GroupFindingsRequest result = new com.google.cloud.securitycenter.v1.GroupFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.groupBy_ = groupBy_; @@ -1037,39 +972,38 @@ public com.google.cloud.securitycenter.v1.GroupFindingsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.GroupFindingsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.GroupFindingsRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.GroupFindingsRequest)other); } else { super.mergeFrom(other); return this; @@ -1077,8 +1011,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupFindingsRequest other) { - if (other == com.google.cloud.securitycenter.v1.GroupFindingsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.GroupFindingsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1123,8 +1056,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.GroupFindingsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.GroupFindingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1136,8 +1068,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]",
@@ -1148,16 +1078,14 @@ public Builder mergeFrom(
      * or projects/{project_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1166,8 +1094,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]",
@@ -1178,17 +1104,16 @@ public java.lang.String getParent() {
      * or projects/{project_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1196,8 +1121,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]",
@@ -1208,25 +1131,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * or projects/{project_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]",
@@ -1237,21 +1156,16 @@ public Builder setParent(java.lang.String value) {
      * or projects/{project_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]",
@@ -1262,19 +1176,17 @@ public Builder clearParent() {
      * or projects/{project_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1282,8 +1194,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1333,13 +1243,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1348,8 +1258,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1399,14 +1307,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1414,8 +1323,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1465,22 +1372,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1530,18 +1435,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1591,16 +1493,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1608,8 +1510,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object groupBy_ = ""; /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
@@ -1625,13 +1525,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The groupBy. */ public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; @@ -1640,8 +1540,6 @@ public java.lang.String getGroupBy() { } } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
@@ -1657,14 +1555,15 @@ public java.lang.String getGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for groupBy. */ - public com.google.protobuf.ByteString getGroupByBytes() { + public com.google.protobuf.ByteString + getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); groupBy_ = b; return b; } else { @@ -1672,8 +1571,6 @@ public com.google.protobuf.ByteString getGroupByBytes() { } } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
@@ -1689,22 +1586,20 @@ public com.google.protobuf.ByteString getGroupByBytes() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The groupBy to set. * @return This builder for chaining. */ - public Builder setGroupBy(java.lang.String value) { + public Builder setGroupBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + groupBy_ = value; onChanged(); return this; } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
@@ -1720,18 +1615,15 @@ public Builder setGroupBy(java.lang.String value) {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearGroupBy() { - + groupBy_ = getDefaultInstance().getGroupBy(); onChanged(); return this; } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
@@ -1747,16 +1639,16 @@ public Builder clearGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for groupBy to set. * @return This builder for chaining. */ - public Builder setGroupByBytes(com.google.protobuf.ByteString value) { + public Builder setGroupByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + groupBy_ = value; onChanged(); return this; @@ -1764,13 +1656,8 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1779,15 +1666,12 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1796,7 +1680,6 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1807,8 +1690,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1832,8 +1713,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1843,7 +1722,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 4;
      */
-    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1854,8 +1734,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1869,7 +1747,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -1881,8 +1759,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1904,8 +1780,6 @@ public Builder clearReadTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1916,13 +1790,11 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-
+      
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1936,12 +1808,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1952,17 +1823,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(), getParentForChildren(), isClean());
+        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(),
+                getParentForChildren(),
+                isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -1970,13 +1838,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private com.google.protobuf.Duration compareDuration_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        compareDurationBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> compareDurationBuilder_;
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2008,15 +1871,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; } /** - * - * *
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2048,21 +1908,16 @@ public boolean hasCompareDuration() {
      * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { - return compareDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : compareDuration_; + return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; } else { return compareDurationBuilder_.getMessage(); } } /** - * - * *
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2109,8 +1964,6 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2143,7 +1996,8 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration compare_duration = 5;
      */
-    public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setCompareDuration(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (compareDurationBuilder_ == null) {
         compareDuration_ = builderForValue.build();
         onChanged();
@@ -2154,8 +2008,6 @@ public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2192,9 +2044,7 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       if (compareDurationBuilder_ == null) {
         if (compareDuration_ != null) {
           compareDuration_ =
-              com.google.protobuf.Duration.newBuilder(compareDuration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(compareDuration_).mergeFrom(value).buildPartial();
         } else {
           compareDuration_ = value;
         }
@@ -2206,8 +2056,6 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2252,8 +2100,6 @@ public Builder clearCompareDuration() {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2287,13 +2133,11 @@ public Builder clearCompareDuration() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
-
+      
       onChanged();
       return getCompareDurationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2330,14 +2174,11 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
       if (compareDurationBuilder_ != null) {
         return compareDurationBuilder_.getMessageOrBuilder();
       } else {
-        return compareDuration_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : compareDuration_;
+        return compareDuration_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : compareDuration_;
       }
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2371,17 +2212,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getCompareDurationFieldBuilder() {
       if (compareDurationBuilder_ == null) {
-        compareDurationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getCompareDuration(), getParentForChildren(), isClean());
+        compareDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getCompareDuration(),
+                getParentForChildren(),
+                isClean());
         compareDuration_ = null;
       }
       return compareDurationBuilder_;
@@ -2389,8 +2227,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
 
     private java.lang.Object pageToken_ = "";
     /**
-     *
-     *
      * 
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -2398,13 +2234,13 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * 
* * string page_token = 7; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2413,8 +2249,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -2422,14 +2256,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 7; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2437,8 +2272,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -2446,22 +2279,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 7; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -2469,18 +2300,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 7; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -2488,32 +2316,29 @@ public Builder clearPageToken() {
      * 
* * string page_token = 7; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; - * * @return The pageSize. */ @java.lang.Override @@ -2521,45 +2346,39 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2569,12 +2388,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GroupFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GroupFindingsRequest) private static final com.google.cloud.securitycenter.v1.GroupFindingsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GroupFindingsRequest(); } @@ -2583,16 +2402,16 @@ public static com.google.cloud.securitycenter.v1.GroupFindingsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2607,4 +2426,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.GroupFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java similarity index 91% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java index 6fedd107a..ee6835622 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface GroupFindingsRequestOrBuilder - extends +public interface GroupFindingsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GroupFindingsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]",
@@ -36,16 +18,11 @@ public interface GroupFindingsRequestOrBuilder
    * or projects/{project_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]",
@@ -56,17 +33,13 @@ public interface GroupFindingsRequestOrBuilder
    * or projects/{project_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -116,13 +89,10 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -172,14 +142,12 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state_change`). The string value should follow SQL syntax: comma separated
@@ -195,13 +163,10 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The groupBy. */ java.lang.String getGroupBy(); /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state_change`). The string value should follow SQL syntax: comma separated
@@ -217,14 +182,12 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for groupBy. */ - com.google.protobuf.ByteString getGroupByBytes(); + com.google.protobuf.ByteString + getGroupByBytes(); /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -233,13 +196,10 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -248,13 +208,10 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -267,8 +224,6 @@ public interface GroupFindingsRequestOrBuilder
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -300,13 +255,10 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** - * - * *
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -338,13 +290,10 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** - * - * *
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -380,8 +329,6 @@ public interface GroupFindingsRequestOrBuilder
   com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
 
   /**
-   *
-   *
    * 
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -389,13 +336,10 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * string page_token = 7; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -403,21 +347,18 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * string page_token = 7; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 8; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java similarity index 77% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java index b5fa86cee..2471a641e 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Response message for group by findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GroupFindingsResponse} */ -public final class GroupFindingsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GroupFindingsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GroupFindingsResponse) GroupFindingsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GroupFindingsResponse.newBuilder() to construct. private GroupFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GroupFindingsResponse() { groupByResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private GroupFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GroupFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GroupFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,52 +55,46 @@ private GroupFindingsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - groupByResults_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - groupByResults_.add( - input.readMessage( - com.google.cloud.securitycenter.v1.GroupResult.parser(), extensionRegistry)); - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + groupByResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; + groupByResults_.add( + input.readMessage(com.google.cloud.securitycenter.v1.GroupResult.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 32: - { - totalSize_ = input.readInt32(); - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 32: { + + totalSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,7 +102,8 @@ private GroupFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); @@ -134,27 +112,22 @@ private GroupFindingsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GroupFindingsResponse.class, - com.google.cloud.securitycenter.v1.GroupFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1.GroupFindingsResponse.class, com.google.cloud.securitycenter.v1.GroupFindingsResponse.Builder.class); } public static final int GROUP_BY_RESULTS_FIELD_NUMBER = 1; private java.util.List groupByResults_; /** - * - * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -168,8 +141,6 @@ public java.util.List getGroupBy
     return groupByResults_;
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -179,13 +150,11 @@ public java.util.List getGroupBy
    * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getGroupByResultsOrBuilderList() {
     return groupByResults_;
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -199,8 +168,6 @@ public int getGroupByResultsCount() {
     return groupByResults_.size();
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -214,8 +181,6 @@ public com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int inde
     return groupByResults_.get(index);
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -233,14 +198,11 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults
   public static final int READ_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Timestamp readTime_;
   /**
-   *
-   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -248,14 +210,11 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ @java.lang.Override @@ -263,8 +222,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used for executing the groupBy request.
    * 
@@ -279,15 +236,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -296,30 +250,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -330,14 +284,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_; /** - * - * *
    * The total number of results matching the query.
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -346,7 +297,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -358,7 +308,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < groupByResults_.size(); i++) { output.writeMessage(1, groupByResults_.get(i)); } @@ -381,16 +332,19 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < groupByResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, groupByResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, groupByResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -400,21 +354,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.GroupFindingsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.GroupFindingsResponse other = - (com.google.cloud.securitycenter.v1.GroupFindingsResponse) obj; + com.google.cloud.securitycenter.v1.GroupFindingsResponse other = (com.google.cloud.securitycenter.v1.GroupFindingsResponse) obj; - if (!getGroupByResultsList().equals(other.getGroupByResultsList())) return false; + if (!getGroupByResultsList() + .equals(other.getGroupByResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -444,127 +401,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.GroupFindingsResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.GroupFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for group by findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GroupFindingsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GroupFindingsResponse) com.google.cloud.securitycenter.v1.GroupFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GroupFindingsResponse.class, - com.google.cloud.securitycenter.v1.GroupFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1.GroupFindingsResponse.class, com.google.cloud.securitycenter.v1.GroupFindingsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.GroupFindingsResponse.newBuilder() @@ -572,17 +519,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getGroupByResultsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -606,9 +553,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor; } @java.lang.Override @@ -627,8 +574,7 @@ public com.google.cloud.securitycenter.v1.GroupFindingsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1.GroupFindingsResponse buildPartial() { - com.google.cloud.securitycenter.v1.GroupFindingsResponse result = - new com.google.cloud.securitycenter.v1.GroupFindingsResponse(this); + com.google.cloud.securitycenter.v1.GroupFindingsResponse result = new com.google.cloud.securitycenter.v1.GroupFindingsResponse(this); int from_bitField0_ = bitField0_; if (groupByResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -654,39 +600,38 @@ public com.google.cloud.securitycenter.v1.GroupFindingsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.GroupFindingsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1.GroupFindingsResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1.GroupFindingsResponse)other); } else { super.mergeFrom(other); return this; @@ -694,8 +639,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupFindingsResponse other) { - if (other == com.google.cloud.securitycenter.v1.GroupFindingsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.GroupFindingsResponse.getDefaultInstance()) return this; if (groupByResultsBuilder_ == null) { if (!other.groupByResults_.isEmpty()) { if (groupByResults_.isEmpty()) { @@ -714,10 +658,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupFindingsRespons groupByResultsBuilder_ = null; groupByResults_ = other.groupByResults_; bitField0_ = (bitField0_ & ~0x00000001); - groupByResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGroupByResultsFieldBuilder() - : null; + groupByResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGroupByResultsFieldBuilder() : null; } else { groupByResultsBuilder_.addAllMessages(other.groupByResults_); } @@ -752,8 +695,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.GroupFindingsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.GroupFindingsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -762,30 +704,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List groupByResults_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureGroupByResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - groupByResults_ = - new java.util.ArrayList( - groupByResults_); + groupByResults_ = new java.util.ArrayList(groupByResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.GroupResult, - com.google.cloud.securitycenter.v1.GroupResult.Builder, - com.google.cloud.securitycenter.v1.GroupResultOrBuilder> - groupByResultsBuilder_; + com.google.cloud.securitycenter.v1.GroupResult, com.google.cloud.securitycenter.v1.GroupResult.Builder, com.google.cloud.securitycenter.v1.GroupResultOrBuilder> groupByResultsBuilder_; /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -802,8 +735,6 @@ public java.util.List getGroupBy
       }
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -820,8 +751,6 @@ public int getGroupByResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -838,8 +767,6 @@ public com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int inde
       }
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -863,8 +790,6 @@ public Builder setGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -885,8 +810,6 @@ public Builder setGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -909,8 +832,6 @@ public Builder addGroupByResults(com.google.cloud.securitycenter.v1.GroupResult
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -934,8 +855,6 @@ public Builder addGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -956,8 +875,6 @@ public Builder addGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -978,8 +895,6 @@ public Builder addGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -992,7 +907,8 @@ public Builder addAllGroupByResults(
         java.lang.Iterable values) {
       if (groupByResultsBuilder_ == null) {
         ensureGroupByResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupByResults_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, groupByResults_);
         onChanged();
       } else {
         groupByResultsBuilder_.addAllMessages(values);
@@ -1000,8 +916,6 @@ public Builder addAllGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1021,8 +935,6 @@ public Builder clearGroupByResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1042,8 +954,6 @@ public Builder removeGroupByResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1057,8 +967,6 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder getGroupByResultsB
       return getGroupByResultsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1070,14 +978,11 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder getGroupByResultsB
     public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder(
         int index) {
       if (groupByResultsBuilder_ == null) {
-        return groupByResults_.get(index);
-      } else {
+        return groupByResults_.get(index);  } else {
         return groupByResultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1086,8 +991,8 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults
      *
      * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
      */
-    public java.util.List
-        getGroupByResultsOrBuilderList() {
+    public java.util.List 
+         getGroupByResultsOrBuilderList() {
       if (groupByResultsBuilder_ != null) {
         return groupByResultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1095,8 +1000,6 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults
       }
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1106,12 +1009,10 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults
      * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
      */
     public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsBuilder() {
-      return getGroupByResultsFieldBuilder()
-          .addBuilder(com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance());
+      return getGroupByResultsFieldBuilder().addBuilder(
+          com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1122,12 +1023,10 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsB
      */
     public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsBuilder(
         int index) {
-      return getGroupByResultsFieldBuilder()
-          .addBuilder(index, com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance());
+      return getGroupByResultsFieldBuilder().addBuilder(
+          index, com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1136,22 +1035,16 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsB
      *
      * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
      */
-    public java.util.List
-        getGroupByResultsBuilderList() {
+    public java.util.List 
+         getGroupByResultsBuilderList() {
       return getGroupByResultsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.GroupResult,
-            com.google.cloud.securitycenter.v1.GroupResult.Builder,
-            com.google.cloud.securitycenter.v1.GroupResultOrBuilder>
+        com.google.cloud.securitycenter.v1.GroupResult, com.google.cloud.securitycenter.v1.GroupResult.Builder, com.google.cloud.securitycenter.v1.GroupResultOrBuilder> 
         getGroupByResultsFieldBuilder() {
       if (groupByResultsBuilder_ == null) {
-        groupByResultsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.securitycenter.v1.GroupResult,
-                com.google.cloud.securitycenter.v1.GroupResult.Builder,
-                com.google.cloud.securitycenter.v1.GroupResultOrBuilder>(
+        groupByResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.securitycenter.v1.GroupResult, com.google.cloud.securitycenter.v1.GroupResult.Builder, com.google.cloud.securitycenter.v1.GroupResultOrBuilder>(
                 groupByResults_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1163,33 +1056,24 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsB
 
     private com.google.protobuf.Timestamp readTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        readTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_;
     /**
-     *
-     *
      * 
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1200,8 +1084,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1222,15 +1104,14 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -1241,8 +1122,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1253,7 +1132,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -1265,8 +1144,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1285,8 +1162,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1294,13 +1169,11 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1311,12 +1184,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1324,17 +1196,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getReadTime(), getParentForChildren(), isClean()); + readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getReadTime(), + getParentForChildren(), + isClean()); readTime_ = null; } return readTimeBuilder_; @@ -1342,21 +1211,19 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1365,22 +1232,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1388,79 +1254,69 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -1468,43 +1324,37 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; - * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** - * - * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; - * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1514,12 +1364,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GroupFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GroupFindingsResponse) private static final com.google.cloud.securitycenter.v1.GroupFindingsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GroupFindingsResponse(); } @@ -1528,16 +1378,16 @@ public static com.google.cloud.securitycenter.v1.GroupFindingsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1552,4 +1402,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.GroupFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java similarity index 79% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java index 8a33fee8c..c283f5262 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface GroupFindingsResponseOrBuilder - extends +public interface GroupFindingsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GroupFindingsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -34,10 +16,9 @@ public interface GroupFindingsResponseOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
    */
-  java.util.List getGroupByResultsList();
+  java.util.List 
+      getGroupByResultsList();
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -48,8 +29,6 @@ public interface GroupFindingsResponseOrBuilder
    */
   com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int index);
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -60,8 +39,6 @@ public interface GroupFindingsResponseOrBuilder
    */
   int getGroupByResultsCount();
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -70,11 +47,9 @@ public interface GroupFindingsResponseOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
    */
-  java.util.List
+  java.util.List 
       getGroupByResultsOrBuilderList();
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -83,35 +58,28 @@ public interface GroupFindingsResponseOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
    */
-  com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder(int index);
+  com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used for executing the groupBy request.
    * 
@@ -121,41 +89,33 @@ public interface GroupFindingsResponseOrBuilder com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of results matching the query.
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ int getTotalSize(); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java similarity index 65% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java index 983f8ac00..c5c7e4947 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Result containing the properties and count of a groupBy request.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GroupResult} */ -public final class GroupResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GroupResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GroupResult) GroupResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GroupResult.newBuilder() to construct. private GroupResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GroupResult() {} + private GroupResult() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GroupResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GroupResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,34 +53,31 @@ private GroupResult( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + properties_ = com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 16: - { - count_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + properties__ = input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + properties_.getMutableMap().put( + properties__.getKey(), properties__.getValue()); + break; + } + case 16: { + + count_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,60 +85,57 @@ private GroupResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetProperties(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GroupResult.class, - com.google.cloud.securitycenter.v1.GroupResult.Builder.class); + com.google.cloud.securitycenter.v1.GroupResult.class, com.google.cloud.securitycenter.v1.GroupResult.Builder.class); } public static final int PROPERTIES_FIELD_NUMBER = 1; - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.Value> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); - } - - private com.google.protobuf.MapField properties_; - + .newDefaultInstance( + com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> properties_; private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -166,30 +144,28 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -197,12 +173,11 @@ public java.util.Map getProperties( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -210,18 +185,16 @@ public java.util.Map getPropertiesM * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override + public com.google.protobuf.Value getPropertiesOrDefault( - java.lang.String key, com.google.protobuf.Value defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.protobuf.Value defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -229,10 +202,10 @@ public com.google.protobuf.Value getPropertiesOrDefault( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public com.google.protobuf.Value getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { @@ -244,14 +217,11 @@ public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { public static final int COUNT_FIELD_NUMBER = 2; private long count_; /** - * - * *
    * Total count of resources for the given properties.
    * 
* * int64 count = 2; - * * @return The count. */ @java.lang.Override @@ -260,7 +230,6 @@ public long getCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,9 +241,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetProperties(), + PropertiesDefaultEntryHolder.defaultEntry, + 1); if (count_ != 0L) { output.writeInt64(2, count_); } @@ -287,18 +261,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, properties__); + for (java.util.Map.Entry entry + : internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry + properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, properties__); } if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, count_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, count_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -308,16 +283,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.GroupResult)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.GroupResult other = - (com.google.cloud.securitycenter.v1.GroupResult) obj; + com.google.cloud.securitycenter.v1.GroupResult other = (com.google.cloud.securitycenter.v1.GroupResult) obj; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (getCount() != other.getCount()) return false; + if (!internalGetProperties().equals( + other.internalGetProperties())) return false; + if (getCount() + != other.getCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -334,153 +310,147 @@ public int hashCode() { hash = (53 * hash) + internalGetProperties().hashCode(); } hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.securitycenter.v1.GroupResult parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.GroupResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.GroupResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GroupResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.GroupResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Result containing the properties and count of a groupBy request.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GroupResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GroupResult) com.google.cloud.securitycenter.v1.GroupResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetProperties(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 1: return internalGetMutableProperties(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GroupResult.class, - com.google.cloud.securitycenter.v1.GroupResult.Builder.class); + com.google.cloud.securitycenter.v1.GroupResult.class, com.google.cloud.securitycenter.v1.GroupResult.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.GroupResult.newBuilder() @@ -488,15 +458,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -507,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor; } @java.lang.Override @@ -528,8 +499,7 @@ public com.google.cloud.securitycenter.v1.GroupResult build() { @java.lang.Override public com.google.cloud.securitycenter.v1.GroupResult buildPartial() { - com.google.cloud.securitycenter.v1.GroupResult result = - new com.google.cloud.securitycenter.v1.GroupResult(this); + com.google.cloud.securitycenter.v1.GroupResult result = new com.google.cloud.securitycenter.v1.GroupResult(this); int from_bitField0_ = bitField0_; result.properties_ = internalGetProperties(); result.properties_.makeImmutable(); @@ -542,39 +512,38 @@ public com.google.cloud.securitycenter.v1.GroupResult buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.GroupResult) { - return mergeFrom((com.google.cloud.securitycenter.v1.GroupResult) other); + return mergeFrom((com.google.cloud.securitycenter.v1.GroupResult)other); } else { super.mergeFrom(other); return this; @@ -583,7 +552,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupResult other) { if (other == com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance()) return this; - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); + internalGetMutableProperties().mergeFrom( + other.internalGetProperties()); if (other.getCount() != 0L) { setCount(other.getCount()); } @@ -615,27 +585,24 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.MapField properties_; - + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> properties_; private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; + internalGetMutableProperties() { + onChanged();; if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); + properties_ = com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -647,30 +614,28 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
@@ -678,12 +643,11 @@ public java.util.Map getProperties( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
@@ -691,18 +655,16 @@ public java.util.Map getPropertiesM * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override + public com.google.protobuf.Value getPropertiesOrDefault( - java.lang.String key, com.google.protobuf.Value defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.protobuf.Value defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
@@ -710,10 +672,10 @@ public com.google.protobuf.Value getPropertiesOrDefault( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public com.google.protobuf.Value getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { @@ -723,75 +685,74 @@ public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); + internalGetMutableProperties().getMutableMap() + .clear(); return this; } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); + + public Builder removeProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableProperties().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableProperties() { + public java.util.Map + getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ - public Builder putProperties(java.lang.String key, com.google.protobuf.Value value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putProperties( + java.lang.String key, + com.google.protobuf.Value value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableProperties().getMutableMap().put(key, value); + internalGetMutableProperties().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ + public Builder putAllProperties( java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); + internalGetMutableProperties().getMutableMap() + .putAll(values); return this; } - private long count_; + private long count_ ; /** - * - * *
      * Total count of resources for the given properties.
      * 
* * int64 count = 2; - * * @return The count. */ @java.lang.Override @@ -799,43 +760,37 @@ public long getCount() { return count_; } /** - * - * *
      * Total count of resources for the given properties.
      * 
* * int64 count = 2; - * * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(long value) { - + count_ = value; onChanged(); return this; } /** - * - * *
      * Total count of resources for the given properties.
      * 
* * int64 count = 2; - * * @return This builder for chaining. */ public Builder clearCount() { - + count_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -845,12 +800,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GroupResult) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GroupResult) private static final com.google.cloud.securitycenter.v1.GroupResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GroupResult(); } @@ -859,16 +814,16 @@ public static com.google.cloud.securitycenter.v1.GroupResult getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -883,4 +838,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.GroupResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java similarity index 56% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java index 85083b4c5..cf6bc3f33 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface GroupResultOrBuilder - extends +public interface GroupResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GroupResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -34,31 +16,30 @@ public interface GroupResultOrBuilder */ int getPropertiesCount(); /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ + boolean containsProperties( + java.lang.String key); + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Deprecated - java.util.Map getProperties(); + java.util.Map + getProperties(); /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - java.util.Map getPropertiesMap(); + java.util.Map + getPropertiesMap(); /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -67,30 +48,27 @@ public interface GroupResultOrBuilder */ /* nullable */ - com.google.protobuf.Value getPropertiesOrDefault( +com.google.protobuf.Value getPropertiesOrDefault( java.lang.String key, /* nullable */ - com.google.protobuf.Value defaultValue); +com.google.protobuf.Value defaultValue); /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key); + + com.google.protobuf.Value getPropertiesOrThrow( + java.lang.String key); /** - * - * *
    * Total count of resources for the given properties.
    * 
* * int64 count = 2; - * * @return The count. */ long getCount(); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBinding.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBinding.java similarity index 71% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBinding.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBinding.java index a6bc54298..c1648a2bb 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBinding.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBinding.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/iam_binding.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Represents a particular IAM binding, which captures a member's role addition,
  * removal, or state.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.IamBinding}
  */
-public final class IamBinding extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class IamBinding extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.IamBinding)
     IamBindingOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use IamBinding.newBuilder() to construct.
   private IamBinding(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private IamBinding() {
     action_ = 0;
     role_ = "";
@@ -46,15 +28,16 @@ private IamBinding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new IamBinding();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private IamBinding(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,34 +56,31 @@ private IamBinding(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              action_ = rawValue;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            action_ = rawValue;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              role_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            role_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              member_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            member_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -108,41 +88,36 @@ private IamBinding(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1.IamBindingProto
-        .internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1.IamBindingProto.internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.IamBindingProto
-        .internal_static_google_cloud_securitycenter_v1_IamBinding_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.IamBindingProto.internal_static_google_cloud_securitycenter_v1_IamBinding_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.IamBinding.class,
-            com.google.cloud.securitycenter.v1.IamBinding.Builder.class);
+            com.google.cloud.securitycenter.v1.IamBinding.class, com.google.cloud.securitycenter.v1.IamBinding.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The type of action performed on a Binding in a policy.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1.IamBinding.Action} */ - public enum Action implements com.google.protobuf.ProtocolMessageEnum { + public enum Action + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified.
      * 
@@ -151,8 +126,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ACTION_UNSPECIFIED(0), /** - * - * *
      * Addition of a Binding.
      * 
@@ -161,8 +134,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ADD(1), /** - * - * *
      * Removal of a Binding.
      * 
@@ -174,8 +145,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified.
      * 
@@ -184,8 +153,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Addition of a Binding.
      * 
@@ -194,8 +161,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADD_VALUE = 1; /** - * - * *
      * Removal of a Binding.
      * 
@@ -204,6 +169,7 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REMOVE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -228,49 +194,49 @@ public static Action valueOf(int value) { */ public static Action forNumber(int value) { switch (value) { - case 0: - return ACTION_UNSPECIFIED; - case 1: - return ADD; - case 2: - return REMOVE; - default: - return null; + case 0: return ACTION_UNSPECIFIED; + case 1: return ADD; + case 2: return REMOVE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Action> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Action findValueByNumber(int number) { - return Action.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.securitycenter.v1.IamBinding.getDescriptor().getEnumTypes().get(0); } private static final Action[] VALUES = values(); - public static Action valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Action valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -290,53 +256,39 @@ private Action(int value) { public static final int ACTION_FIELD_NUMBER = 1; private int action_; /** - * - * *
    * The action that was performed on a Binding.
    * 
* * .google.cloud.securitycenter.v1.IamBinding.Action action = 1; - * * @return The enum numeric value on the wire for action. */ - @java.lang.Override - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * - * *
    * The action that was performed on a Binding.
    * 
* * .google.cloud.securitycenter.v1.IamBinding.Action action = 1; - * * @return The action. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.IamBinding.Action getAction() { + @java.lang.Override public com.google.cloud.securitycenter.v1.IamBinding.Action getAction() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.IamBinding.Action result = - com.google.cloud.securitycenter.v1.IamBinding.Action.valueOf(action_); - return result == null - ? com.google.cloud.securitycenter.v1.IamBinding.Action.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.IamBinding.Action result = com.google.cloud.securitycenter.v1.IamBinding.Action.valueOf(action_); + return result == null ? com.google.cloud.securitycenter.v1.IamBinding.Action.UNRECOGNIZED : result; } public static final int ROLE_FIELD_NUMBER = 2; private volatile java.lang.Object role_; /** - * - * *
    * Role that is assigned to "members".
    * For example, "roles/viewer", "roles/editor", or "roles/owner".
    * 
* * string role = 2; - * * @return The role. */ @java.lang.Override @@ -345,30 +297,30 @@ public java.lang.String getRole() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } } /** - * - * *
    * Role that is assigned to "members".
    * For example, "roles/viewer", "roles/editor", or "roles/owner".
    * 
* * string role = 2; - * * @return The bytes for role. */ @java.lang.Override - public com.google.protobuf.ByteString getRoleBytes() { + public com.google.protobuf.ByteString + getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); role_ = b; return b; } else { @@ -379,15 +331,12 @@ public com.google.protobuf.ByteString getRoleBytes() { public static final int MEMBER_FIELD_NUMBER = 3; private volatile java.lang.Object member_; /** - * - * *
    * A single identity requesting access for a Cloud Platform resource,
    * e.g. "foo@google.com".
    * 
* * string member = 3; - * * @return The member. */ @java.lang.Override @@ -396,30 +345,30 @@ public java.lang.String getMember() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); member_ = s; return s; } } /** - * - * *
    * A single identity requesting access for a Cloud Platform resource,
    * e.g. "foo@google.com".
    * 
* * string member = 3; - * * @return The bytes for member. */ @java.lang.Override - public com.google.protobuf.ByteString getMemberBytes() { + public com.google.protobuf.ByteString + getMemberBytes() { java.lang.Object ref = member_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); member_ = b; return b; } else { @@ -428,7 +377,6 @@ public com.google.protobuf.ByteString getMemberBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -440,9 +388,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (action_ - != com.google.cloud.securitycenter.v1.IamBinding.Action.ACTION_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (action_ != com.google.cloud.securitycenter.v1.IamBinding.Action.ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(1, action_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { @@ -460,9 +408,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (action_ - != com.google.cloud.securitycenter.v1.IamBinding.Action.ACTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, action_); + if (action_ != com.google.cloud.securitycenter.v1.IamBinding.Action.ACTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, action_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, role_); @@ -478,17 +426,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.IamBinding)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.IamBinding other = - (com.google.cloud.securitycenter.v1.IamBinding) obj; + com.google.cloud.securitycenter.v1.IamBinding other = (com.google.cloud.securitycenter.v1.IamBinding) obj; if (action_ != other.action_) return false; - if (!getRole().equals(other.getRole())) return false; - if (!getMember().equals(other.getMember())) return false; + if (!getRole() + .equals(other.getRole())) return false; + if (!getMember() + .equals(other.getMember())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -511,104 +460,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.IamBinding parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.IamBinding parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.IamBinding parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.IamBinding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.IamBinding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.IamBinding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.IamBinding parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.IamBinding parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.IamBinding parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.IamBinding parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.IamBinding parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.IamBinding parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.IamBinding parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.IamBinding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.IamBinding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents a particular IAM binding, which captures a member's role addition,
    * removal, or state.
@@ -616,23 +558,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.IamBinding}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.IamBinding)
       com.google.cloud.securitycenter.v1.IamBindingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.IamBindingProto
-          .internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.IamBindingProto.internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.IamBindingProto
-          .internal_static_google_cloud_securitycenter_v1_IamBinding_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.IamBindingProto.internal_static_google_cloud_securitycenter_v1_IamBinding_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.IamBinding.class,
-              com.google.cloud.securitycenter.v1.IamBinding.Builder.class);
+              com.google.cloud.securitycenter.v1.IamBinding.class, com.google.cloud.securitycenter.v1.IamBinding.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.IamBinding.newBuilder()
@@ -640,15 +580,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -662,9 +603,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.IamBindingProto
-          .internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.IamBindingProto.internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor;
     }
 
     @java.lang.Override
@@ -683,8 +624,7 @@ public com.google.cloud.securitycenter.v1.IamBinding build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.IamBinding buildPartial() {
-      com.google.cloud.securitycenter.v1.IamBinding result =
-          new com.google.cloud.securitycenter.v1.IamBinding(this);
+      com.google.cloud.securitycenter.v1.IamBinding result = new com.google.cloud.securitycenter.v1.IamBinding(this);
       result.action_ = action_;
       result.role_ = role_;
       result.member_ = member_;
@@ -696,39 +636,38 @@ public com.google.cloud.securitycenter.v1.IamBinding buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.IamBinding) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.IamBinding) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.IamBinding)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -779,67 +718,51 @@ public Builder mergeFrom(
 
     private int action_ = 0;
     /**
-     *
-     *
      * 
      * The action that was performed on a Binding.
      * 
* * .google.cloud.securitycenter.v1.IamBinding.Action action = 1; - * * @return The enum numeric value on the wire for action. */ - @java.lang.Override - public int getActionValue() { + @java.lang.Override public int getActionValue() { return action_; } /** - * - * *
      * The action that was performed on a Binding.
      * 
* * .google.cloud.securitycenter.v1.IamBinding.Action action = 1; - * * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ public Builder setActionValue(int value) { - + action_ = value; onChanged(); return this; } /** - * - * *
      * The action that was performed on a Binding.
      * 
* * .google.cloud.securitycenter.v1.IamBinding.Action action = 1; - * * @return The action. */ @java.lang.Override public com.google.cloud.securitycenter.v1.IamBinding.Action getAction() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.IamBinding.Action result = - com.google.cloud.securitycenter.v1.IamBinding.Action.valueOf(action_); - return result == null - ? com.google.cloud.securitycenter.v1.IamBinding.Action.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.IamBinding.Action result = com.google.cloud.securitycenter.v1.IamBinding.Action.valueOf(action_); + return result == null ? com.google.cloud.securitycenter.v1.IamBinding.Action.UNRECOGNIZED : result; } /** - * - * *
      * The action that was performed on a Binding.
      * 
* * .google.cloud.securitycenter.v1.IamBinding.Action action = 1; - * * @param value The action to set. * @return This builder for chaining. */ @@ -847,24 +770,21 @@ public Builder setAction(com.google.cloud.securitycenter.v1.IamBinding.Action va if (value == null) { throw new NullPointerException(); } - + action_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The action that was performed on a Binding.
      * 
* * .google.cloud.securitycenter.v1.IamBinding.Action action = 1; - * * @return This builder for chaining. */ public Builder clearAction() { - + action_ = 0; onChanged(); return this; @@ -872,21 +792,19 @@ public Builder clearAction() { private java.lang.Object role_ = ""; /** - * - * *
      * Role that is assigned to "members".
      * For example, "roles/viewer", "roles/editor", or "roles/owner".
      * 
* * string role = 2; - * * @return The role. */ public java.lang.String getRole() { java.lang.Object ref = role_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; @@ -895,22 +813,21 @@ public java.lang.String getRole() { } } /** - * - * *
      * Role that is assigned to "members".
      * For example, "roles/viewer", "roles/editor", or "roles/owner".
      * 
* * string role = 2; - * * @return The bytes for role. */ - public com.google.protobuf.ByteString getRoleBytes() { + public com.google.protobuf.ByteString + getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); role_ = b; return b; } else { @@ -918,64 +835,57 @@ public com.google.protobuf.ByteString getRoleBytes() { } } /** - * - * *
      * Role that is assigned to "members".
      * For example, "roles/viewer", "roles/editor", or "roles/owner".
      * 
* * string role = 2; - * * @param value The role to set. * @return This builder for chaining. */ - public Builder setRole(java.lang.String value) { + public Builder setRole( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + role_ = value; onChanged(); return this; } /** - * - * *
      * Role that is assigned to "members".
      * For example, "roles/viewer", "roles/editor", or "roles/owner".
      * 
* * string role = 2; - * * @return This builder for chaining. */ public Builder clearRole() { - + role_ = getDefaultInstance().getRole(); onChanged(); return this; } /** - * - * *
      * Role that is assigned to "members".
      * For example, "roles/viewer", "roles/editor", or "roles/owner".
      * 
* * string role = 2; - * * @param value The bytes for role to set. * @return This builder for chaining. */ - public Builder setRoleBytes(com.google.protobuf.ByteString value) { + public Builder setRoleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + role_ = value; onChanged(); return this; @@ -983,21 +893,19 @@ public Builder setRoleBytes(com.google.protobuf.ByteString value) { private java.lang.Object member_ = ""; /** - * - * *
      * A single identity requesting access for a Cloud Platform resource,
      * e.g. "foo@google.com".
      * 
* * string member = 3; - * * @return The member. */ public java.lang.String getMember() { java.lang.Object ref = member_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); member_ = s; return s; @@ -1006,22 +914,21 @@ public java.lang.String getMember() { } } /** - * - * *
      * A single identity requesting access for a Cloud Platform resource,
      * e.g. "foo@google.com".
      * 
* * string member = 3; - * * @return The bytes for member. */ - public com.google.protobuf.ByteString getMemberBytes() { + public com.google.protobuf.ByteString + getMemberBytes() { java.lang.Object ref = member_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); member_ = b; return b; } else { @@ -1029,71 +936,64 @@ public com.google.protobuf.ByteString getMemberBytes() { } } /** - * - * *
      * A single identity requesting access for a Cloud Platform resource,
      * e.g. "foo@google.com".
      * 
* * string member = 3; - * * @param value The member to set. * @return This builder for chaining. */ - public Builder setMember(java.lang.String value) { + public Builder setMember( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + member_ = value; onChanged(); return this; } /** - * - * *
      * A single identity requesting access for a Cloud Platform resource,
      * e.g. "foo@google.com".
      * 
* * string member = 3; - * * @return This builder for chaining. */ public Builder clearMember() { - + member_ = getDefaultInstance().getMember(); onChanged(); return this; } /** - * - * *
      * A single identity requesting access for a Cloud Platform resource,
      * e.g. "foo@google.com".
      * 
* * string member = 3; - * * @param value The bytes for member to set. * @return This builder for chaining. */ - public Builder setMemberBytes(com.google.protobuf.ByteString value) { + public Builder setMemberBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + member_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1103,12 +1003,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.IamBinding) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.IamBinding) private static final com.google.cloud.securitycenter.v1.IamBinding DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.IamBinding(); } @@ -1117,16 +1017,16 @@ public static com.google.cloud.securitycenter.v1.IamBinding getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IamBinding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IamBinding(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IamBinding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IamBinding(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1141,4 +1041,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.IamBinding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingOrBuilder.java similarity index 67% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingOrBuilder.java index c5fed6b31..5a36e59aa 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingOrBuilder.java @@ -1,104 +1,72 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/iam_binding.proto package com.google.cloud.securitycenter.v1; -public interface IamBindingOrBuilder - extends +public interface IamBindingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.IamBinding) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The action that was performed on a Binding.
    * 
* * .google.cloud.securitycenter.v1.IamBinding.Action action = 1; - * * @return The enum numeric value on the wire for action. */ int getActionValue(); /** - * - * *
    * The action that was performed on a Binding.
    * 
* * .google.cloud.securitycenter.v1.IamBinding.Action action = 1; - * * @return The action. */ com.google.cloud.securitycenter.v1.IamBinding.Action getAction(); /** - * - * *
    * Role that is assigned to "members".
    * For example, "roles/viewer", "roles/editor", or "roles/owner".
    * 
* * string role = 2; - * * @return The role. */ java.lang.String getRole(); /** - * - * *
    * Role that is assigned to "members".
    * For example, "roles/viewer", "roles/editor", or "roles/owner".
    * 
* * string role = 2; - * * @return The bytes for role. */ - com.google.protobuf.ByteString getRoleBytes(); + com.google.protobuf.ByteString + getRoleBytes(); /** - * - * *
    * A single identity requesting access for a Cloud Platform resource,
    * e.g. "foo@google.com".
    * 
* * string member = 3; - * * @return The member. */ java.lang.String getMember(); /** - * - * *
    * A single identity requesting access for a Cloud Platform resource,
    * e.g. "foo@google.com".
    * 
* * string member = 3; - * * @return The bytes for member. */ - com.google.protobuf.ByteString getMemberBytes(); + com.google.protobuf.ByteString + getMemberBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingProto.java new file mode 100644 index 000000000..eb64b7e0b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingProto.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/iam_binding.proto + +package com.google.cloud.securitycenter.v1; + +public final class IamBindingProto { + private IamBindingProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_IamBinding_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/securitycenter/v1/iam_bin" + + "ding.proto\022\036google.cloud.securitycenter." + + "v1\"\244\001\n\nIamBinding\022A\n\006action\030\001 \001(\01621.goog" + + "le.cloud.securitycenter.v1.IamBinding.Ac" + + "tion\022\014\n\004role\030\002 \001(\t\022\016\n\006member\030\003 \001(\t\"5\n\006Ac" + + "tion\022\026\n\022ACTION_UNSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n" + + "\006REMOVE\020\002B\353\001\n\"com.google.cloud.securityc" + + "enter.v1B\017IamBindingProtoP\001ZLgoogle.gola" + + "ng.org/genproto/googleapis/cloud/securit" + + "ycenter/v1;securitycenter\252\002\036Google.Cloud" + + ".SecurityCenter.V1\312\002\036Google\\Cloud\\Securi" + + "tyCenter\\V1\352\002!Google::Cloud::SecurityCen" + + "ter::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_IamBinding_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor, + new java.lang.String[] { "Action", "Role", "Member", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Indicator.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Indicator.java similarity index 72% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Indicator.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Indicator.java index 3a70f24ee..227276144 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Indicator.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Indicator.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/indicator.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Represents what's commonly known as an Indicator of compromise (IoC) in
  * computer forensics. This is an artifact observed on a network or in an
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.Indicator}
  */
-public final class Indicator extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Indicator extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Indicator)
     IndicatorOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Indicator.newBuilder() to construct.
   private Indicator(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Indicator() {
     ipAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     domains_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -47,15 +29,16 @@ private Indicator() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Indicator();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Indicator(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,33 +58,31 @@ private Indicator(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                ipAddresses_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              ipAddresses_.add(s);
-              break;
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              ipAddresses_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                domains_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              domains_.add(s);
-              break;
+            ipAddresses_.add(s);
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              domains_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            domains_.add(s);
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -109,7 +90,8 @@ private Indicator(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         ipAddresses_ = ipAddresses_.getUnmodifiableView();
@@ -121,61 +103,50 @@ private Indicator(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1.IndicatorProto
-        .internal_static_google_cloud_securitycenter_v1_Indicator_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1.IndicatorProto.internal_static_google_cloud_securitycenter_v1_Indicator_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.IndicatorProto
-        .internal_static_google_cloud_securitycenter_v1_Indicator_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.IndicatorProto.internal_static_google_cloud_securitycenter_v1_Indicator_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.Indicator.class,
-            com.google.cloud.securitycenter.v1.Indicator.Builder.class);
+            com.google.cloud.securitycenter.v1.Indicator.class, com.google.cloud.securitycenter.v1.Indicator.Builder.class);
   }
 
   public static final int IP_ADDRESSES_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList ipAddresses_;
   /**
-   *
-   *
    * 
    * List of ip addresses associated to the Finding.
    * 
* * repeated string ip_addresses = 1; - * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList getIpAddressesList() { + public com.google.protobuf.ProtocolStringList + getIpAddressesList() { return ipAddresses_; } /** - * - * *
    * List of ip addresses associated to the Finding.
    * 
* * repeated string ip_addresses = 1; - * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** - * - * *
    * List of ip addresses associated to the Finding.
    * 
* * repeated string ip_addresses = 1; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -183,60 +154,50 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** - * - * *
    * List of ip addresses associated to the Finding.
    * 
* * repeated string ip_addresses = 1; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString + getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } public static final int DOMAINS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList domains_; /** - * - * *
    * List of domains associated to the Finding.
    * 
* * repeated string domains = 2; - * * @return A list containing the domains. */ - public com.google.protobuf.ProtocolStringList getDomainsList() { + public com.google.protobuf.ProtocolStringList + getDomainsList() { return domains_; } /** - * - * *
    * List of domains associated to the Finding.
    * 
* * repeated string domains = 2; - * * @return The count of domains. */ public int getDomainsCount() { return domains_.size(); } /** - * - * *
    * List of domains associated to the Finding.
    * 
* * repeated string domains = 2; - * * @param index The index of the element to return. * @return The domains at the given index. */ @@ -244,23 +205,20 @@ public java.lang.String getDomains(int index) { return domains_.get(index); } /** - * - * *
    * List of domains associated to the Finding.
    * 
* * repeated string domains = 2; - * * @param index The index of the value to return. * @return The bytes of the domains at the given index. */ - public com.google.protobuf.ByteString getDomainsBytes(int index) { + public com.google.protobuf.ByteString + getDomainsBytes(int index) { return domains_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,7 +230,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < ipAddresses_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipAddresses_.getRaw(i)); } @@ -312,16 +271,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Indicator)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Indicator other = - (com.google.cloud.securitycenter.v1.Indicator) obj; + com.google.cloud.securitycenter.v1.Indicator other = (com.google.cloud.securitycenter.v1.Indicator) obj; - if (!getIpAddressesList().equals(other.getIpAddressesList())) return false; - if (!getDomainsList().equals(other.getDomainsList())) return false; + if (!getIpAddressesList() + .equals(other.getIpAddressesList())) return false; + if (!getDomainsList() + .equals(other.getDomainsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -346,104 +306,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Indicator parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Indicator parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Indicator parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Indicator parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Indicator parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Indicator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Indicator parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Indicator parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Indicator parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.Indicator parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.Indicator parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Indicator parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Indicator parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Indicator parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.Indicator prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents what's commonly known as an Indicator of compromise (IoC) in
    * computer forensics. This is an artifact observed on a network or in an
@@ -453,23 +406,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.Indicator}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Indicator)
       com.google.cloud.securitycenter.v1.IndicatorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.IndicatorProto
-          .internal_static_google_cloud_securitycenter_v1_Indicator_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.IndicatorProto.internal_static_google_cloud_securitycenter_v1_Indicator_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.IndicatorProto
-          .internal_static_google_cloud_securitycenter_v1_Indicator_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.IndicatorProto.internal_static_google_cloud_securitycenter_v1_Indicator_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.Indicator.class,
-              com.google.cloud.securitycenter.v1.Indicator.Builder.class);
+              com.google.cloud.securitycenter.v1.Indicator.class, com.google.cloud.securitycenter.v1.Indicator.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.Indicator.newBuilder()
@@ -477,15 +428,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -497,9 +449,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.IndicatorProto
-          .internal_static_google_cloud_securitycenter_v1_Indicator_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.IndicatorProto.internal_static_google_cloud_securitycenter_v1_Indicator_descriptor;
     }
 
     @java.lang.Override
@@ -518,8 +470,7 @@ public com.google.cloud.securitycenter.v1.Indicator build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.Indicator buildPartial() {
-      com.google.cloud.securitycenter.v1.Indicator result =
-          new com.google.cloud.securitycenter.v1.Indicator(this);
+      com.google.cloud.securitycenter.v1.Indicator result = new com.google.cloud.securitycenter.v1.Indicator(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         ipAddresses_ = ipAddresses_.getUnmodifiableView();
@@ -539,39 +490,38 @@ public com.google.cloud.securitycenter.v1.Indicator buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.Indicator) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.Indicator) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.Indicator)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -628,55 +578,44 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList ipAddresses_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList ipAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensureIpAddressesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         ipAddresses_ = new com.google.protobuf.LazyStringArrayList(ipAddresses_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * List of ip addresses associated to the Finding.
      * 
* * repeated string ip_addresses = 1; - * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList getIpAddressesList() { + public com.google.protobuf.ProtocolStringList + getIpAddressesList() { return ipAddresses_.getUnmodifiableView(); } /** - * - * *
      * List of ip addresses associated to the Finding.
      * 
* * repeated string ip_addresses = 1; - * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** - * - * *
      * List of ip addresses associated to the Finding.
      * 
* * repeated string ip_addresses = 1; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -684,90 +623,80 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** - * - * *
      * List of ip addresses associated to the Finding.
      * 
* * repeated string ip_addresses = 1; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString + getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } /** - * - * *
      * List of ip addresses associated to the Finding.
      * 
* * repeated string ip_addresses = 1; - * * @param index The index to set the value at. * @param value The ipAddresses to set. * @return This builder for chaining. */ - public Builder setIpAddresses(int index, java.lang.String value) { + public Builder setIpAddresses( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of ip addresses associated to the Finding.
      * 
* * repeated string ip_addresses = 1; - * * @param value The ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddresses(java.lang.String value) { + public Builder addIpAddresses( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); return this; } /** - * - * *
      * List of ip addresses associated to the Finding.
      * 
* * repeated string ip_addresses = 1; - * * @param values The ipAddresses to add. * @return This builder for chaining. */ - public Builder addAllIpAddresses(java.lang.Iterable values) { + public Builder addAllIpAddresses( + java.lang.Iterable values) { ensureIpAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipAddresses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ipAddresses_); onChanged(); return this; } /** - * - * *
      * List of ip addresses associated to the Finding.
      * 
* * repeated string ip_addresses = 1; - * * @return This builder for chaining. */ public Builder clearIpAddresses() { @@ -777,74 +706,62 @@ public Builder clearIpAddresses() { return this; } /** - * - * *
      * List of ip addresses associated to the Finding.
      * 
* * repeated string ip_addresses = 1; - * * @param value The bytes of the ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddressesBytes(com.google.protobuf.ByteString value) { + public Builder addIpAddressesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList domains_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDomainsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { domains_ = new com.google.protobuf.LazyStringArrayList(domains_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * List of domains associated to the Finding.
      * 
* * repeated string domains = 2; - * * @return A list containing the domains. */ - public com.google.protobuf.ProtocolStringList getDomainsList() { + public com.google.protobuf.ProtocolStringList + getDomainsList() { return domains_.getUnmodifiableView(); } /** - * - * *
      * List of domains associated to the Finding.
      * 
* * repeated string domains = 2; - * * @return The count of domains. */ public int getDomainsCount() { return domains_.size(); } /** - * - * *
      * List of domains associated to the Finding.
      * 
* * repeated string domains = 2; - * * @param index The index of the element to return. * @return The domains at the given index. */ @@ -852,90 +769,80 @@ public java.lang.String getDomains(int index) { return domains_.get(index); } /** - * - * *
      * List of domains associated to the Finding.
      * 
* * repeated string domains = 2; - * * @param index The index of the value to return. * @return The bytes of the domains at the given index. */ - public com.google.protobuf.ByteString getDomainsBytes(int index) { + public com.google.protobuf.ByteString + getDomainsBytes(int index) { return domains_.getByteString(index); } /** - * - * *
      * List of domains associated to the Finding.
      * 
* * repeated string domains = 2; - * * @param index The index to set the value at. * @param value The domains to set. * @return This builder for chaining. */ - public Builder setDomains(int index, java.lang.String value) { + public Builder setDomains( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDomainsIsMutable(); + throw new NullPointerException(); + } + ensureDomainsIsMutable(); domains_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of domains associated to the Finding.
      * 
* * repeated string domains = 2; - * * @param value The domains to add. * @return This builder for chaining. */ - public Builder addDomains(java.lang.String value) { + public Builder addDomains( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDomainsIsMutable(); + throw new NullPointerException(); + } + ensureDomainsIsMutable(); domains_.add(value); onChanged(); return this; } /** - * - * *
      * List of domains associated to the Finding.
      * 
* * repeated string domains = 2; - * * @param values The domains to add. * @return This builder for chaining. */ - public Builder addAllDomains(java.lang.Iterable values) { + public Builder addAllDomains( + java.lang.Iterable values) { ensureDomainsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, domains_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, domains_); onChanged(); return this; } /** - * - * *
      * List of domains associated to the Finding.
      * 
* * repeated string domains = 2; - * * @return This builder for chaining. */ public Builder clearDomains() { @@ -945,30 +852,28 @@ public Builder clearDomains() { return this; } /** - * - * *
      * List of domains associated to the Finding.
      * 
* * repeated string domains = 2; - * * @param value The bytes of the domains to add. * @return This builder for chaining. */ - public Builder addDomainsBytes(com.google.protobuf.ByteString value) { + public Builder addDomainsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDomainsIsMutable(); domains_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -978,12 +883,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Indicator) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Indicator) private static final com.google.cloud.securitycenter.v1.Indicator DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Indicator(); } @@ -992,16 +897,16 @@ public static com.google.cloud.securitycenter.v1.Indicator getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Indicator parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Indicator(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Indicator parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Indicator(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1016,4 +921,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Indicator getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorOrBuilder.java similarity index 68% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorOrBuilder.java index 651b1f369..487c02b1e 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorOrBuilder.java @@ -1,127 +1,91 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/indicator.proto package com.google.cloud.securitycenter.v1; -public interface IndicatorOrBuilder - extends +public interface IndicatorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Indicator) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of ip addresses associated to the Finding.
    * 
* * repeated string ip_addresses = 1; - * * @return A list containing the ipAddresses. */ - java.util.List getIpAddressesList(); + java.util.List + getIpAddressesList(); /** - * - * *
    * List of ip addresses associated to the Finding.
    * 
* * repeated string ip_addresses = 1; - * * @return The count of ipAddresses. */ int getIpAddressesCount(); /** - * - * *
    * List of ip addresses associated to the Finding.
    * 
* * repeated string ip_addresses = 1; - * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ java.lang.String getIpAddresses(int index); /** - * - * *
    * List of ip addresses associated to the Finding.
    * 
* * repeated string ip_addresses = 1; - * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - com.google.protobuf.ByteString getIpAddressesBytes(int index); + com.google.protobuf.ByteString + getIpAddressesBytes(int index); /** - * - * *
    * List of domains associated to the Finding.
    * 
* * repeated string domains = 2; - * * @return A list containing the domains. */ - java.util.List getDomainsList(); + java.util.List + getDomainsList(); /** - * - * *
    * List of domains associated to the Finding.
    * 
* * repeated string domains = 2; - * * @return The count of domains. */ int getDomainsCount(); /** - * - * *
    * List of domains associated to the Finding.
    * 
* * repeated string domains = 2; - * * @param index The index of the element to return. * @return The domains at the given index. */ java.lang.String getDomains(int index); /** - * - * *
    * List of domains associated to the Finding.
    * 
* * repeated string domains = 2; - * * @param index The index of the value to return. * @return The bytes of the domains at the given index. */ - com.google.protobuf.ByteString getDomainsBytes(int index); + com.google.protobuf.ByteString + getDomainsBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorProto.java new file mode 100644 index 000000000..ebcaa4adf --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorProto.java @@ -0,0 +1,55 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/indicator.proto + +package com.google.cloud.securitycenter.v1; + +public final class IndicatorProto { + private IndicatorProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Indicator_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Indicator_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n.google/cloud/securitycenter/v1/indicat" + + "or.proto\022\036google.cloud.securitycenter.v1" + + "\"2\n\tIndicator\022\024\n\014ip_addresses\030\001 \003(\t\022\017\n\007d" + + "omains\030\002 \003(\tB\352\001\n\"com.google.cloud.securi" + + "tycenter.v1B\016IndicatorProtoP\001ZLgoogle.go" + + "lang.org/genproto/googleapis/cloud/secur" + + "itycenter/v1;securitycenter\252\002\036Google.Clo" + + "ud.SecurityCenter.V1\312\002\036Google\\Cloud\\Secu" + + "rityCenter\\V1\352\002!Google::Cloud::SecurityC" + + "enter::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_securitycenter_v1_Indicator_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Indicator_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Indicator_descriptor, + new java.lang.String[] { "IpAddresses", "Domains", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java similarity index 84% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java index aff15e2b8..7058a8179 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for listing assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListAssetsRequest} */ -public final class ListAssetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAssetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListAssetsRequest) ListAssetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAssetsRequest.newBuilder() to construct. private ListAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAssetsRequest() { parent_ = ""; filter_ = ""; @@ -46,15 +28,16 @@ private ListAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAssetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,91 +56,81 @@ private ListAssetsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; + orderBy_ = s; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - case 42: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (compareDuration_ != null) { - subBuilder = compareDuration_.toBuilder(); - } - compareDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compareDuration_); - compareDuration_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 42: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); } - case 58: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (fieldMask_ != null) { - subBuilder = fieldMask_.toBuilder(); - } - fieldMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fieldMask_); - fieldMask_ = subBuilder.buildPartial(); - } - - break; + compareDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; + break; + } + case 58: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); } - case 72: - { - pageSize_ = input.readInt32(); - break; + fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 72: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -165,43 +138,36 @@ private ListAssetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListAssetsRequest.class, - com.google.cloud.securitycenter.v1.ListAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1.ListAssetsRequest.class, com.google.cloud.securitycenter.v1.ListAssetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -210,33 +176,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -247,8 +211,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -300,7 +262,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -309,15 +270,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -369,15 +329,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -388,8 +349,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 3; private volatile java.lang.Object orderBy_; /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -414,7 +373,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 3; - * * @return The orderBy. */ @java.lang.Override @@ -423,15 +381,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -456,15 +413,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 3; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -475,8 +433,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int READ_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp readTime_; /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -485,7 +441,6 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -493,8 +448,6 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -503,7 +456,6 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ @java.lang.Override @@ -511,8 +463,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -530,8 +480,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int COMPARE_DURATION_FIELD_NUMBER = 5;
   private com.google.protobuf.Duration compareDuration_;
   /**
-   *
-   *
    * 
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -556,7 +504,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ @java.lang.Override @@ -564,8 +511,6 @@ public boolean hasCompareDuration() { return compareDuration_ != null; } /** - * - * *
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -590,18 +535,13 @@ public boolean hasCompareDuration() {
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { - return compareDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : compareDuration_; + return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; } /** - * - * *
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -635,8 +575,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
   public static final int FIELD_MASK_FIELD_NUMBER = 7;
   private com.google.protobuf.FieldMask fieldMask_;
   /**
-   *
-   *
    * 
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -644,7 +582,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
    * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -652,8 +589,6 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** - * - * *
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -661,7 +596,6 @@ public boolean hasFieldMask() {
    * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return The fieldMask. */ @java.lang.Override @@ -669,8 +603,6 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** - * - * *
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -687,8 +619,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
   public static final int PAGE_TOKEN_FIELD_NUMBER = 8;
   private volatile java.lang.Object pageToken_;
   /**
-   *
-   *
    * 
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -696,7 +626,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
    * 
* * string page_token = 8; - * * @return The pageToken. */ @java.lang.Override @@ -705,15 +634,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -721,15 +649,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 8; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -740,15 +669,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 9; private int pageSize_; /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 9; - * * @return The pageSize. */ @java.lang.Override @@ -757,7 +683,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -769,7 +694,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -813,19 +739,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, orderBy_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getReadTime()); } if (compareDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCompareDuration()); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFieldMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getFieldMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -835,31 +765,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListAssetsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListAssetsRequest other = - (com.google.cloud.securitycenter.v1.ListAssetsRequest) obj; + com.google.cloud.securitycenter.v1.ListAssetsRequest other = (com.google.cloud.securitycenter.v1.ListAssetsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - if (!getCompareDuration().equals(other.getCompareDuration())) return false; + if (!getCompareDuration() + .equals(other.getCompareDuration())) return false; } if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - if (!getFieldMask().equals(other.getFieldMask())) return false; + if (!getFieldMask() + .equals(other.getFieldMask())) return false; } - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -899,126 +836,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for listing assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListAssetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListAssetsRequest) com.google.cloud.securitycenter.v1.ListAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListAssetsRequest.class, - com.google.cloud.securitycenter.v1.ListAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1.ListAssetsRequest.class, com.google.cloud.securitycenter.v1.ListAssetsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ListAssetsRequest.newBuilder() @@ -1026,15 +954,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1070,9 +999,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor; } @java.lang.Override @@ -1091,8 +1020,7 @@ public com.google.cloud.securitycenter.v1.ListAssetsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.ListAssetsRequest buildPartial() { - com.google.cloud.securitycenter.v1.ListAssetsRequest result = - new com.google.cloud.securitycenter.v1.ListAssetsRequest(this); + com.google.cloud.securitycenter.v1.ListAssetsRequest result = new com.google.cloud.securitycenter.v1.ListAssetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.orderBy_ = orderBy_; @@ -1121,39 +1049,38 @@ public com.google.cloud.securitycenter.v1.ListAssetsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ListAssetsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListAssetsRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.ListAssetsRequest)other); } else { super.mergeFrom(other); return this; @@ -1161,8 +1088,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListAssetsRequest other) { - if (other == com.google.cloud.securitycenter.v1.ListAssetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.ListAssetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1210,8 +1136,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.ListAssetsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.ListAssetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1223,24 +1148,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1249,25 +1170,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1275,73 +1193,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1349,8 +1254,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1402,13 +1305,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1417,8 +1320,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1470,14 +1371,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1485,8 +1387,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1538,22 +1438,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1605,18 +1503,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1668,16 +1563,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1685,8 +1580,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1711,13 +1604,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 3; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1726,8 +1619,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1752,14 +1643,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1767,8 +1659,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1793,22 +1683,20 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 3; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1833,18 +1721,15 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 3; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1869,16 +1754,16 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 3; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; @@ -1886,13 +1771,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1901,15 +1781,12 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1918,7 +1795,6 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1929,8 +1805,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1954,8 +1828,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1965,7 +1837,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 4;
      */
-    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1976,8 +1849,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1991,7 +1862,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -2003,8 +1874,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2026,8 +1895,6 @@ public Builder clearReadTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2038,13 +1905,11 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-
+      
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2058,12 +1923,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2074,17 +1938,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(), getParentForChildren(), isClean());
+        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(),
+                getParentForChildren(),
+                isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -2092,13 +1953,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private com.google.protobuf.Duration compareDuration_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        compareDurationBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> compareDurationBuilder_;
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2123,15 +1979,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; } /** - * - * *
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2156,21 +2009,16 @@ public boolean hasCompareDuration() {
      * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { - return compareDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : compareDuration_; + return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; } else { return compareDurationBuilder_.getMessage(); } } /** - * - * *
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2210,8 +2058,6 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2237,7 +2083,8 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration compare_duration = 5;
      */
-    public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setCompareDuration(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (compareDurationBuilder_ == null) {
         compareDuration_ = builderForValue.build();
         onChanged();
@@ -2248,8 +2095,6 @@ public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2279,9 +2124,7 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       if (compareDurationBuilder_ == null) {
         if (compareDuration_ != null) {
           compareDuration_ =
-              com.google.protobuf.Duration.newBuilder(compareDuration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(compareDuration_).mergeFrom(value).buildPartial();
         } else {
           compareDuration_ = value;
         }
@@ -2293,8 +2136,6 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2332,8 +2173,6 @@ public Builder clearCompareDuration() {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2360,13 +2199,11 @@ public Builder clearCompareDuration() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
-
+      
       onChanged();
       return getCompareDurationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2396,14 +2233,11 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
       if (compareDurationBuilder_ != null) {
         return compareDurationBuilder_.getMessageOrBuilder();
       } else {
-        return compareDuration_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : compareDuration_;
+        return compareDuration_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : compareDuration_;
       }
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2430,17 +2264,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getCompareDurationFieldBuilder() {
       if (compareDurationBuilder_ == null) {
-        compareDurationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getCompareDuration(), getParentForChildren(), isClean());
+        compareDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getCompareDuration(),
+                getParentForChildren(),
+                isClean());
         compareDuration_ = null;
       }
       return compareDurationBuilder_;
@@ -2448,13 +2279,8 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
 
     private com.google.protobuf.FieldMask fieldMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
-        fieldMaskBuilder_;
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> fieldMaskBuilder_;
     /**
-     *
-     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2462,15 +2288,12 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** - * - * *
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2478,7 +2301,6 @@ public boolean hasFieldMask() {
      * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -2489,8 +2311,6 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** - * - * *
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2513,8 +2333,6 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2523,7 +2341,8 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask field_mask = 7;
      */
-    public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setFieldMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (fieldMaskBuilder_ == null) {
         fieldMask_ = builderForValue.build();
         onChanged();
@@ -2534,8 +2353,6 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2548,7 +2365,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       if (fieldMaskBuilder_ == null) {
         if (fieldMask_ != null) {
           fieldMask_ =
-              com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
         } else {
           fieldMask_ = value;
         }
@@ -2560,8 +2377,6 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2582,8 +2397,6 @@ public Builder clearFieldMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2593,13 +2406,11 @@ public Builder clearFieldMask() {
      * .google.protobuf.FieldMask field_mask = 7;
      */
     public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() {
-
+      
       onChanged();
       return getFieldMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2612,12 +2423,11 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
       if (fieldMaskBuilder_ != null) {
         return fieldMaskBuilder_.getMessageOrBuilder();
       } else {
-        return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
+        return fieldMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
       }
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2627,17 +2437,14 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * .google.protobuf.FieldMask field_mask = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getFieldMaskFieldBuilder() {
       if (fieldMaskBuilder_ == null) {
-        fieldMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getFieldMask(), getParentForChildren(), isClean());
+        fieldMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getFieldMask(),
+                getParentForChildren(),
+                isClean());
         fieldMask_ = null;
       }
       return fieldMaskBuilder_;
@@ -2645,8 +2452,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
 
     private java.lang.Object pageToken_ = "";
     /**
-     *
-     *
      * 
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2654,13 +2459,13 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * 
* * string page_token = 8; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2669,8 +2474,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2678,14 +2481,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 8; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2693,8 +2497,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2702,22 +2504,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 8; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2725,18 +2525,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 8; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2744,32 +2541,29 @@ public Builder clearPageToken() {
      * 
* * string page_token = 8; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; - * * @return The pageSize. */ @java.lang.Override @@ -2777,45 +2571,39 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2825,12 +2613,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListAssetsRequest) private static final com.google.cloud.securitycenter.v1.ListAssetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListAssetsRequest(); } @@ -2839,16 +2627,16 @@ public static com.google.cloud.securitycenter.v1.ListAssetsRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2863,4 +2651,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.ListAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java similarity index 92% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java index 94682a9d8..3558b5333 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListAssetsRequestOrBuilder - extends +public interface ListAssetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListAssetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -110,13 +83,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -168,14 +138,12 @@ public interface ListAssetsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -200,13 +168,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * string order_by = 3; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -231,14 +196,12 @@ public interface ListAssetsRequestOrBuilder
    * 
* * string order_by = 3; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -247,13 +210,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -262,13 +222,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -281,8 +238,6 @@ public interface ListAssetsRequestOrBuilder
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -307,13 +262,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** - * - * *
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -338,13 +290,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** - * - * *
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -373,8 +322,6 @@ public interface ListAssetsRequestOrBuilder
   com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
 
   /**
-   *
-   *
    * 
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -382,13 +329,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** - * - * *
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -396,13 +340,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** - * - * *
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -414,8 +355,6 @@ public interface ListAssetsRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -423,13 +362,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * string page_token = 8; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -437,21 +373,18 @@ public interface ListAssetsRequestOrBuilder
    * 
* * string page_token = 8; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 9; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java similarity index 66% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java index a5f7d3cbd..74e62eb61 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Response message for listing assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListAssetsResponse} */ -public final class ListAssetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAssetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListAssetsResponse) ListAssetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAssetsResponse.newBuilder() to construct. private ListAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAssetsResponse() { listAssetsResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListAssetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAssetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAssetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,55 +55,46 @@ private ListAssetsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - listAssetsResults_ = - new java.util.ArrayList< - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult>(); - mutable_bitField0_ |= 0x00000001; - } - listAssetsResults_.add( - input.readMessage( - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult - .parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + listAssetsResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; + listAssetsResults_.add( + input.readMessage(com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 32: - { - totalSize_ = input.readInt32(); - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 32: { + + totalSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -128,7 +102,8 @@ private ListAssetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { listAssetsResults_ = java.util.Collections.unmodifiableList(listAssetsResults_); @@ -137,54 +112,42 @@ private ListAssetsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListAssetsResponse.class, - com.google.cloud.securitycenter.v1.ListAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListAssetsResponse.class, com.google.cloud.securitycenter.v1.ListAssetsResponse.Builder.class); } - public interface ListAssetsResultOrBuilder - extends + public interface ListAssetsResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1.Asset asset = 1; - * * @return Whether the asset field is set. */ boolean hasAsset(); /** - * - * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1.Asset asset = 1; - * * @return The asset. */ com.google.cloud.securitycenter.v1.Asset getAsset(); /** - * - * *
      * Asset matching the search request.
      * 
@@ -194,69 +157,56 @@ public interface ListAssetsResultOrBuilder com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder(); /** - * - * *
      * State change of the asset between the points in time.
      * 
* - * - * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * @return The enum numeric value on the wire for stateChange. */ int getStateChangeValue(); /** - * - * *
      * State change of the asset between the points in time.
      * 
* - * - * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * @return The stateChange. */ - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange - getStateChange(); + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange getStateChange(); } /** - * - * *
    * Result containing the Asset and its State.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult} */ - public static final class ListAssetsResult extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ListAssetsResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) ListAssetsResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAssetsResult.newBuilder() to construct. private ListAssetsResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAssetsResult() { stateChange_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAssetsResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAssetsResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -275,36 +225,32 @@ private ListAssetsResult( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1.Asset.Builder subBuilder = null; - if (asset_ != null) { - subBuilder = asset_.toBuilder(); - } - asset_ = - input.readMessage( - com.google.cloud.securitycenter.v1.Asset.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(asset_); - asset_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1.Asset.Builder subBuilder = null; + if (asset_ != null) { + subBuilder = asset_.toBuilder(); } - case 16: - { - int rawValue = input.readEnum(); - - stateChange_ = rawValue; - break; + asset_ = input.readMessage(com.google.cloud.securitycenter.v1.Asset.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(asset_); + asset_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 16: { + int rawValue = input.readEnum(); + + stateChange_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -312,31 +258,27 @@ private ListAssetsResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.class, - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder.class); + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.class, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder.class); } /** - * - * *
      * The change in state of the asset.
      * When querying across two points in time this describes
@@ -345,13 +287,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * will be: UNUSED
      * 
* - * Protobuf enum {@code - * google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange} + * Protobuf enum {@code google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange} */ - public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { + public enum StateChange + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * State change is unused, this is the canonical default for this enum.
        * 
@@ -360,8 +300,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ UNUSED(0), /** - * - * *
        * Asset was added between the points in time.
        * 
@@ -370,8 +308,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ ADDED(1), /** - * - * *
        * Asset was removed between the points in time.
        * 
@@ -380,8 +316,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ REMOVED(2), /** - * - * *
        * Asset was present at both point(s) in time.
        * 
@@ -393,8 +327,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * State change is unused, this is the canonical default for this enum.
        * 
@@ -403,8 +335,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNUSED_VALUE = 0; /** - * - * *
        * Asset was added between the points in time.
        * 
@@ -413,8 +343,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADDED_VALUE = 1; /** - * - * *
        * Asset was removed between the points in time.
        * 
@@ -423,8 +351,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REMOVED_VALUE = 2; /** - * - * *
        * Asset was present at both point(s) in time.
        * 
@@ -433,6 +359,7 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -457,54 +384,50 @@ public static StateChange valueOf(int value) { */ public static StateChange forNumber(int value) { switch (value) { - case 0: - return UNUSED; - case 1: - return ADDED; - case 2: - return REMOVED; - case 3: - return ACTIVE; - default: - return null; + case 0: return UNUSED; + case 1: return ADDED; + case 2: return REMOVED; + case 3: return ACTIVE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + StateChange> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StateChange findValueByNumber(int number) { + return StateChange.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StateChange findValueByNumber(int number) { - return StateChange.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult - .getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.getDescriptor().getEnumTypes().get(0); } private static final StateChange[] VALUES = values(); - public static StateChange valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static StateChange valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -524,14 +447,11 @@ private StateChange(int value) { public static final int ASSET_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.Asset asset_; /** - * - * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1.Asset asset = 1; - * * @return Whether the asset field is set. */ @java.lang.Override @@ -539,25 +459,18 @@ public boolean hasAsset() { return asset_ != null; } /** - * - * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1.Asset asset = 1; - * * @return The asset. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Asset getAsset() { - return asset_ == null - ? com.google.cloud.securitycenter.v1.Asset.getDefaultInstance() - : asset_; + return asset_ == null ? com.google.cloud.securitycenter.v1.Asset.getDefaultInstance() : asset_; } /** - * - * *
      * Asset matching the search request.
      * 
@@ -572,50 +485,31 @@ public com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder() { public static final int STATE_CHANGE_FIELD_NUMBER = 2; private int stateChange_; /** - * - * *
      * State change of the asset between the points in time.
      * 
* - * - * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * @return The enum numeric value on the wire for stateChange. */ - @java.lang.Override - public int getStateChangeValue() { + @java.lang.Override public int getStateChangeValue() { return stateChange_; } /** - * - * *
      * State change of the asset between the points in time.
      * 
* - * - * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * @return The stateChange. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange - getStateChange() { + @java.lang.Override public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange getStateChange() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange result = - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange - .valueOf(stateChange_); - return result == null - ? com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange - .UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange result = com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange.valueOf(stateChange_); + return result == null ? com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -627,14 +521,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (asset_ != null) { output.writeMessage(1, getAsset()); } - if (stateChange_ - != com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange - .UNUSED - .getNumber()) { + if (stateChange_ != com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange.UNUSED.getNumber()) { output.writeEnum(2, stateChange_); } unknownFields.writeTo(output); @@ -647,13 +539,12 @@ public int getSerializedSize() { size = 0; if (asset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAsset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAsset()); } - if (stateChange_ - != com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange - .UNUSED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, stateChange_); + if (stateChange_ != com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange.UNUSED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, stateChange_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -663,18 +554,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult)) { + if (!(obj instanceof com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult other = - (com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) obj; + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult other = (com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) obj; if (hasAsset() != other.hasAsset()) return false; if (hasAsset()) { - if (!getAsset().equals(other.getAsset())) return false; + if (!getAsset() + .equals(other.getAsset())) return false; } if (stateChange_ != other.stateChange_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -700,95 +590,87 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -798,50 +680,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Result containing the Asset and its State.
      * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.class, - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder - .class); + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.class, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.newBuilder() + // Construct using com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -857,22 +733,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult build() { - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult result = - buildPartial(); + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -881,8 +754,7 @@ public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult bu @java.lang.Override public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult buildPartial() { - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult result = - new com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult(this); + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult result = new com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult(this); if (assetBuilder_ == null) { result.asset_ = asset_; } else { @@ -897,54 +769,46 @@ public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) { - return mergeFrom( - (com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) other); + if (other instanceof com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) { + return mergeFrom((com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult other) { - if (other - == com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult other) { + if (other == com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.getDefaultInstance()) return this; if (other.hasAsset()) { mergeAsset(other.getAsset()); } @@ -970,9 +834,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -984,47 +846,34 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.Asset asset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Asset, - com.google.cloud.securitycenter.v1.Asset.Builder, - com.google.cloud.securitycenter.v1.AssetOrBuilder> - assetBuilder_; + com.google.cloud.securitycenter.v1.Asset, com.google.cloud.securitycenter.v1.Asset.Builder, com.google.cloud.securitycenter.v1.AssetOrBuilder> assetBuilder_; /** - * - * *
        * Asset matching the search request.
        * 
* * .google.cloud.securitycenter.v1.Asset asset = 1; - * * @return Whether the asset field is set. */ public boolean hasAsset() { return assetBuilder_ != null || asset_ != null; } /** - * - * *
        * Asset matching the search request.
        * 
* * .google.cloud.securitycenter.v1.Asset asset = 1; - * * @return The asset. */ public com.google.cloud.securitycenter.v1.Asset getAsset() { if (assetBuilder_ == null) { - return asset_ == null - ? com.google.cloud.securitycenter.v1.Asset.getDefaultInstance() - : asset_; + return asset_ == null ? com.google.cloud.securitycenter.v1.Asset.getDefaultInstance() : asset_; } else { return assetBuilder_.getMessage(); } } /** - * - * *
        * Asset matching the search request.
        * 
@@ -1045,15 +894,14 @@ public Builder setAsset(com.google.cloud.securitycenter.v1.Asset value) { return this; } /** - * - * *
        * Asset matching the search request.
        * 
* * .google.cloud.securitycenter.v1.Asset asset = 1; */ - public Builder setAsset(com.google.cloud.securitycenter.v1.Asset.Builder builderForValue) { + public Builder setAsset( + com.google.cloud.securitycenter.v1.Asset.Builder builderForValue) { if (assetBuilder_ == null) { asset_ = builderForValue.build(); onChanged(); @@ -1064,8 +912,6 @@ public Builder setAsset(com.google.cloud.securitycenter.v1.Asset.Builder builder return this; } /** - * - * *
        * Asset matching the search request.
        * 
@@ -1076,9 +922,7 @@ public Builder mergeAsset(com.google.cloud.securitycenter.v1.Asset value) { if (assetBuilder_ == null) { if (asset_ != null) { asset_ = - com.google.cloud.securitycenter.v1.Asset.newBuilder(asset_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.Asset.newBuilder(asset_).mergeFrom(value).buildPartial(); } else { asset_ = value; } @@ -1090,8 +934,6 @@ public Builder mergeAsset(com.google.cloud.securitycenter.v1.Asset value) { return this; } /** - * - * *
        * Asset matching the search request.
        * 
@@ -1110,8 +952,6 @@ public Builder clearAsset() { return this; } /** - * - * *
        * Asset matching the search request.
        * 
@@ -1119,13 +959,11 @@ public Builder clearAsset() { * .google.cloud.securitycenter.v1.Asset asset = 1; */ public com.google.cloud.securitycenter.v1.Asset.Builder getAssetBuilder() { - + onChanged(); return getAssetFieldBuilder().getBuilder(); } /** - * - * *
        * Asset matching the search request.
        * 
@@ -1136,14 +974,11 @@ public com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder() { if (assetBuilder_ != null) { return assetBuilder_.getMessageOrBuilder(); } else { - return asset_ == null - ? com.google.cloud.securitycenter.v1.Asset.getDefaultInstance() - : asset_; + return asset_ == null ? + com.google.cloud.securitycenter.v1.Asset.getDefaultInstance() : asset_; } } /** - * - * *
        * Asset matching the search request.
        * 
@@ -1151,17 +986,14 @@ public com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder() { * .google.cloud.securitycenter.v1.Asset asset = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Asset, - com.google.cloud.securitycenter.v1.Asset.Builder, - com.google.cloud.securitycenter.v1.AssetOrBuilder> + com.google.cloud.securitycenter.v1.Asset, com.google.cloud.securitycenter.v1.Asset.Builder, com.google.cloud.securitycenter.v1.AssetOrBuilder> getAssetFieldBuilder() { if (assetBuilder_ == null) { - assetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Asset, - com.google.cloud.securitycenter.v1.Asset.Builder, - com.google.cloud.securitycenter.v1.AssetOrBuilder>( - getAsset(), getParentForChildren(), isClean()); + assetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Asset, com.google.cloud.securitycenter.v1.Asset.Builder, com.google.cloud.securitycenter.v1.AssetOrBuilder>( + getAsset(), + getParentForChildren(), + isClean()); asset_ = null; } return assetBuilder_; @@ -1169,112 +1001,77 @@ public com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder() { private int stateChange_ = 0; /** - * - * *
        * State change of the asset between the points in time.
        * 
* - * - * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * @return The enum numeric value on the wire for stateChange. */ - @java.lang.Override - public int getStateChangeValue() { + @java.lang.Override public int getStateChangeValue() { return stateChange_; } /** - * - * *
        * State change of the asset between the points in time.
        * 
* - * - * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * @param value The enum numeric value on the wire for stateChange to set. * @return This builder for chaining. */ public Builder setStateChangeValue(int value) { - + stateChange_ = value; onChanged(); return this; } /** - * - * *
        * State change of the asset between the points in time.
        * 
* - * - * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * @return The stateChange. */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange - getStateChange() { + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange getStateChange() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange result = - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange - .valueOf(stateChange_); - return result == null - ? com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange - .UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange result = com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange.valueOf(stateChange_); + return result == null ? com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange.UNRECOGNIZED : result; } /** - * - * *
        * State change of the asset between the points in time.
        * 
* - * - * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * @param value The stateChange to set. * @return This builder for chaining. */ - public Builder setStateChange( - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange - value) { + public Builder setStateChange(com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange value) { if (value == null) { throw new NullPointerException(); } - + stateChange_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * State change of the asset between the points in time.
        * 
* - * - * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * @return This builder for chaining. */ public Builder clearStateChange() { - + stateChange_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1287,33 +1084,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) - private static final com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult(); + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult(); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1325,107 +1119,80 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int LIST_ASSETS_RESULTS_FIELD_NUMBER = 1; - private java.util.List - listAssetsResults_; + private java.util.List listAssetsResults_; /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ @java.lang.Override - public java.util.List - getListAssetsResultsList() { + public java.util.List getListAssetsResultsList() { return listAssetsResults_; } /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder> + public java.util.List getListAssetsResultsOrBuilderList() { return listAssetsResults_; } /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ @java.lang.Override public int getListAssetsResultsCount() { return listAssetsResults_.size(); } /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult - getListAssetsResults(int index) { + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getListAssetsResults(int index) { return listAssetsResults_.get(index); } /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder - getListAssetsResultsOrBuilder(int index) { + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder( + int index) { return listAssetsResults_.get(index); } public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -1433,14 +1200,11 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ @java.lang.Override @@ -1448,8 +1212,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used for executing the list request.
    * 
@@ -1464,15 +1226,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -1481,30 +1240,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1515,14 +1274,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_; /** - * - * *
    * The total number of assets matching the query.
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -1531,7 +1287,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1543,7 +1298,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < listAssetsResults_.size(); i++) { output.writeMessage(1, listAssetsResults_.get(i)); } @@ -1566,17 +1322,19 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < listAssetsResults_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, listAssetsResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, listAssetsResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1586,21 +1344,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListAssetsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListAssetsResponse other = - (com.google.cloud.securitycenter.v1.ListAssetsResponse) obj; + com.google.cloud.securitycenter.v1.ListAssetsResponse other = (com.google.cloud.securitycenter.v1.ListAssetsResponse) obj; - if (!getListAssetsResultsList().equals(other.getListAssetsResultsList())) return false; + if (!getListAssetsResultsList() + .equals(other.getListAssetsResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1630,127 +1391,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.ListAssetsResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListAssetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for listing assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListAssetsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListAssetsResponse) com.google.cloud.securitycenter.v1.ListAssetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListAssetsResponse.class, - com.google.cloud.securitycenter.v1.ListAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListAssetsResponse.class, com.google.cloud.securitycenter.v1.ListAssetsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ListAssetsResponse.newBuilder() @@ -1758,17 +1509,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getListAssetsResultsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1792,9 +1543,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor; } @java.lang.Override @@ -1813,8 +1564,7 @@ public com.google.cloud.securitycenter.v1.ListAssetsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1.ListAssetsResponse buildPartial() { - com.google.cloud.securitycenter.v1.ListAssetsResponse result = - new com.google.cloud.securitycenter.v1.ListAssetsResponse(this); + com.google.cloud.securitycenter.v1.ListAssetsResponse result = new com.google.cloud.securitycenter.v1.ListAssetsResponse(this); int from_bitField0_ = bitField0_; if (listAssetsResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1840,39 +1590,38 @@ public com.google.cloud.securitycenter.v1.ListAssetsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ListAssetsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListAssetsResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1.ListAssetsResponse)other); } else { super.mergeFrom(other); return this; @@ -1880,8 +1629,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListAssetsResponse other) { - if (other == com.google.cloud.securitycenter.v1.ListAssetsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.ListAssetsResponse.getDefaultInstance()) return this; if (listAssetsResultsBuilder_ == null) { if (!other.listAssetsResults_.isEmpty()) { if (listAssetsResults_.isEmpty()) { @@ -1900,10 +1648,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListAssetsResponse o listAssetsResultsBuilder_ = null; listAssetsResults_ = other.listAssetsResults_; bitField0_ = (bitField0_ & ~0x00000001); - listAssetsResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getListAssetsResultsFieldBuilder() - : null; + listAssetsResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getListAssetsResultsFieldBuilder() : null; } else { listAssetsResultsBuilder_.addAllMessages(other.listAssetsResults_); } @@ -1938,8 +1685,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.ListAssetsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.ListAssetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1948,41 +1694,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - listAssetsResults_ = java.util.Collections.emptyList(); - + private java.util.List listAssetsResults_ = + java.util.Collections.emptyList(); private void ensureListAssetsResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - listAssetsResults_ = - new java.util.ArrayList< - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult>( - listAssetsResults_); + listAssetsResults_ = new java.util.ArrayList(listAssetsResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult, - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder, - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder> - listAssetsResultsBuilder_; + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder> listAssetsResultsBuilder_; /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public java.util.List - getListAssetsResultsList() { + public java.util.List getListAssetsResultsList() { if (listAssetsResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(listAssetsResults_); } else { @@ -1990,15 +1723,11 @@ private void ensureListAssetsResultsIsMutable() { } } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public int getListAssetsResultsCount() { if (listAssetsResultsBuilder_ == null) { @@ -2008,18 +1737,13 @@ public int getListAssetsResultsCount() { } } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult - getListAssetsResults(int index) { + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getListAssetsResults(int index) { if (listAssetsResultsBuilder_ == null) { return listAssetsResults_.get(index); } else { @@ -2027,15 +1751,11 @@ public int getListAssetsResultsCount() { } } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder setListAssetsResults( int index, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult value) { @@ -2052,20 +1772,14 @@ public Builder setListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder setListAssetsResults( - int index, - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder - builderForValue) { + int index, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder builderForValue) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); listAssetsResults_.set(index, builderForValue.build()); @@ -2076,18 +1790,13 @@ public Builder setListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public Builder addListAssetsResults( - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult value) { + public Builder addListAssetsResults(com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult value) { if (listAssetsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2101,15 +1810,11 @@ public Builder addListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder addListAssetsResults( int index, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult value) { @@ -2126,19 +1831,14 @@ public Builder addListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder addListAssetsResults( - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder - builderForValue) { + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder builderForValue) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); listAssetsResults_.add(builderForValue.build()); @@ -2149,20 +1849,14 @@ public Builder addListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder addListAssetsResults( - int index, - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder - builderForValue) { + int index, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder builderForValue) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); listAssetsResults_.add(index, builderForValue.build()); @@ -2173,23 +1867,18 @@ public Builder addListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder addAllListAssetsResults( - java.lang.Iterable< - ? extends com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult> - values) { + java.lang.Iterable values) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listAssetsResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, listAssetsResults_); onChanged(); } else { listAssetsResultsBuilder_.addAllMessages(values); @@ -2197,15 +1886,11 @@ public Builder addAllListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder clearListAssetsResults() { if (listAssetsResultsBuilder_ == null) { @@ -2218,15 +1903,11 @@ public Builder clearListAssetsResults() { return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder removeListAssetsResults(int index) { if (listAssetsResultsBuilder_ == null) { @@ -2239,54 +1920,39 @@ public Builder removeListAssetsResults(int index) { return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder - getListAssetsResultsBuilder(int index) { + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder getListAssetsResultsBuilder( + int index) { return getListAssetsResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder - getListAssetsResultsOrBuilder(int index) { + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder( + int index) { if (listAssetsResultsBuilder_ == null) { - return listAssetsResults_.get(index); - } else { + return listAssetsResults_.get(index); } else { return listAssetsResultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public java.util.List< - ? extends - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder> - getListAssetsResultsOrBuilderList() { + public java.util.List + getListAssetsResultsOrBuilderList() { if (listAssetsResultsBuilder_ != null) { return listAssetsResultsBuilder_.getMessageOrBuilderList(); } else { @@ -2294,70 +1960,45 @@ public Builder removeListAssetsResults(int index) { } } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder - addListAssetsResultsBuilder() { - return getListAssetsResultsFieldBuilder() - .addBuilder( - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult - .getDefaultInstance()); + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder addListAssetsResultsBuilder() { + return getListAssetsResultsFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.getDefaultInstance()); } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder - addListAssetsResultsBuilder(int index) { - return getListAssetsResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult - .getDefaultInstance()); + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder addListAssetsResultsBuilder( + int index) { + return getListAssetsResultsFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.getDefaultInstance()); } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public java.util.List< - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder> - getListAssetsResultsBuilderList() { + public java.util.List + getListAssetsResultsBuilderList() { return getListAssetsResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult, - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder, - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder> + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder> getListAssetsResultsFieldBuilder() { if (listAssetsResultsBuilder_ == null) { - listAssetsResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult, - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder, - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder>( + listAssetsResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder>( listAssetsResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2369,33 +2010,24 @@ public Builder removeListAssetsResults(int index) { private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -2406,8 +2038,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -2428,15 +2058,14 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -2447,8 +2076,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -2459,7 +2086,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -2471,8 +2098,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -2491,8 +2116,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -2500,13 +2123,11 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -2517,12 +2138,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -2530,17 +2150,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getReadTime(), getParentForChildren(), isClean()); + readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getReadTime(), + getParentForChildren(), + isClean()); readTime_ = null; } return readTimeBuilder_; @@ -2548,21 +2165,19 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -2571,22 +2186,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -2594,79 +2208,69 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of assets matching the query.
      * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -2674,43 +2278,37 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of assets matching the query.
      * 
* * int32 total_size = 4; - * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** - * - * *
      * The total number of assets matching the query.
      * 
* * int32 total_size = 4; - * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2720,12 +2318,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListAssetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListAssetsResponse) private static final com.google.cloud.securitycenter.v1.ListAssetsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListAssetsResponse(); } @@ -2734,16 +2332,16 @@ public static com.google.cloud.securitycenter.v1.ListAssetsResponse getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2758,4 +2356,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.ListAssetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java similarity index 57% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java index 9b7242ae6..47ee8cdb5 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java @@ -1,121 +1,75 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListAssetsResponseOrBuilder - extends +public interface ListAssetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListAssetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - java.util.List + java.util.List getListAssetsResultsList(); /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getListAssetsResults( - int index); + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getListAssetsResults(int index); /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ int getListAssetsResultsCount(); /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - java.util.List< - ? extends com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder> + java.util.List getListAssetsResultsOrBuilderList(); /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder - getListAssetsResultsOrBuilder(int index); + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder( + int index); /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used for executing the list request.
    * 
@@ -125,41 +79,33 @@ com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getListAs com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of assets matching the query.
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ int getTotalSize(); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequest.java similarity index 70% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequest.java index 4e4eba85c..a7ebdbeb3 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for listing  BigQuery exports at a given scope e.g.
  * organization, folder or project.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.ListBigQueryExportsRequest}
  */
-public final class ListBigQueryExportsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListBigQueryExportsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListBigQueryExportsRequest)
     ListBigQueryExportsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListBigQueryExportsRequest.newBuilder() to construct.
   private ListBigQueryExportsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListBigQueryExportsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -45,15 +27,16 @@ private ListBigQueryExportsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListBigQueryExportsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ListBigQueryExportsRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,32 +55,30 @@ private ListBigQueryExportsRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          case 16:
-            {
-              pageSize_ = input.readInt32();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            parent_ = s;
+            break;
+          }
+          case 16: {
 
-              pageToken_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            pageSize_ = input.readInt32();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            pageToken_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -105,43 +86,36 @@ private ListBigQueryExportsRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1.SecuritycenterService
-        .internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.SecuritycenterService
-        .internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.class,
-            com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.Builder.class);
+            com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.class, com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Required. The parent, which owns the collection of BigQuery exports. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -150,33 +124,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent, which owns the collection of BigQuery exports. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -187,8 +159,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of configs to return. The service may return fewer than
    * this value.
@@ -197,7 +167,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -208,8 +177,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A page token, received from a previous `ListBigQueryExports` call.
    * Provide this to retrieve the subsequent page.
@@ -218,7 +185,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -227,15 +193,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous `ListBigQueryExports` call.
    * Provide this to retrieve the subsequent page.
@@ -244,15 +209,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -261,7 +227,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,7 +238,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -296,7 +262,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -309,17 +276,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest other = - (com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest) obj; + com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest other = (com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -343,104 +312,96 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for listing  BigQuery exports at a given scope e.g.
    * organization, folder or project.
@@ -448,23 +409,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.ListBigQueryExportsRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListBigQueryExportsRequest)
       com.google.cloud.securitycenter.v1.ListBigQueryExportsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.SecuritycenterService
-          .internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.SecuritycenterService
-          .internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.class,
-              com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.Builder.class);
+              com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.class, com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.newBuilder()
@@ -472,15 +431,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -494,14 +454,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.SecuritycenterService
-          .internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest getDefaultInstanceForType() {
       return com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.getDefaultInstance();
     }
 
@@ -516,8 +475,7 @@ public com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest buildPartial() {
-      com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest result =
-          new com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest(this);
+      com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest result = new com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -529,39 +487,38 @@ public com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest buildPartia
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -569,9 +526,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest other) {
-      if (other
-          == com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -602,9 +557,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -616,24 +569,20 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent, which owns the collection of BigQuery exports. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -642,25 +591,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns the collection of BigQuery exports. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -668,82 +614,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns the collection of BigQuery exports. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns the collection of BigQuery exports. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns the collection of BigQuery exports. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of configs to return. The service may return fewer than
      * this value.
@@ -752,7 +683,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -760,8 +690,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of configs to return. The service may return fewer than
      * this value.
@@ -770,19 +698,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of configs to return. The service may return fewer than
      * this value.
@@ -791,11 +716,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -803,8 +727,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListBigQueryExports` call.
      * Provide this to retrieve the subsequent page.
@@ -813,13 +735,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -828,8 +750,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListBigQueryExports` call.
      * Provide this to retrieve the subsequent page.
@@ -838,14 +758,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -853,8 +774,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListBigQueryExports` call.
      * Provide this to retrieve the subsequent page.
@@ -863,22 +782,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListBigQueryExports` call.
      * Provide this to retrieve the subsequent page.
@@ -887,18 +804,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListBigQueryExports` call.
      * Provide this to retrieve the subsequent page.
@@ -907,23 +821,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -933,13 +847,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListBigQueryExportsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListBigQueryExportsRequest) - private static final com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest(); } @@ -948,16 +861,16 @@ public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBigQueryExportsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListBigQueryExportsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBigQueryExportsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListBigQueryExportsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -972,4 +885,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequestOrBuilder.java index 028922c5b..d95a1ac92 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListBigQueryExportsRequestOrBuilder - extends +public interface ListBigQueryExportsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListBigQueryExportsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent, which owns the collection of BigQuery exports. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent, which owns the collection of BigQuery exports. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of configs to return. The service may return fewer than
    * this value.
@@ -67,14 +40,11 @@ public interface ListBigQueryExportsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListBigQueryExports` call.
    * Provide this to retrieve the subsequent page.
@@ -83,13 +53,10 @@ public interface ListBigQueryExportsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListBigQueryExports` call.
    * Provide this to retrieve the subsequent page.
@@ -98,8 +65,8 @@ public interface ListBigQueryExportsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponse.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponse.java similarity index 74% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponse.java index 7e9e1d1ee..3dcfb2ba8 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Response message for listing BigQuery exports.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListBigQueryExportsResponse} */ -public final class ListBigQueryExportsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBigQueryExportsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListBigQueryExportsResponse) ListBigQueryExportsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBigQueryExportsResponse.newBuilder() to construct. private ListBigQueryExportsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBigQueryExportsResponse() { bigQueryExports_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListBigQueryExportsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBigQueryExportsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListBigQueryExportsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListBigQueryExportsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - bigQueryExports_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - bigQueryExports_.add( - input.readMessage( - com.google.cloud.securitycenter.v1.BigQueryExport.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + bigQueryExports_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + bigQueryExports_.add( + input.readMessage(com.google.cloud.securitycenter.v1.BigQueryExport.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,7 +84,8 @@ private ListBigQueryExportsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { bigQueryExports_ = java.util.Collections.unmodifiableList(bigQueryExports_); @@ -115,27 +94,22 @@ private ListBigQueryExportsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.class, - com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.class, com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.Builder.class); } public static final int BIG_QUERY_EXPORTS_FIELD_NUMBER = 1; private java.util.List bigQueryExports_; /** - * - * *
    * The BigQuery exports from the specified parent.
    * 
@@ -143,13 +117,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.securitycenter.v1.BigQueryExport big_query_exports = 1; */ @java.lang.Override - public java.util.List - getBigQueryExportsList() { + public java.util.List getBigQueryExportsList() { return bigQueryExports_; } /** - * - * *
    * The BigQuery exports from the specified parent.
    * 
@@ -157,13 +128,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.securitycenter.v1.BigQueryExport big_query_exports = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBigQueryExportsOrBuilderList() { return bigQueryExports_; } /** - * - * *
    * The BigQuery exports from the specified parent.
    * 
@@ -175,8 +144,6 @@ public int getBigQueryExportsCount() { return bigQueryExports_.size(); } /** - * - * *
    * The BigQuery exports from the specified parent.
    * 
@@ -188,8 +155,6 @@ public com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExports(int return bigQueryExports_.get(index); } /** - * - * *
    * The BigQuery exports from the specified parent.
    * 
@@ -205,15 +170,12 @@ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExp public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -222,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -254,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < bigQueryExports_.size(); i++) { output.writeMessage(1, bigQueryExports_.get(i)); } @@ -283,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < bigQueryExports_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, bigQueryExports_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, bigQueryExports_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -296,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse other = - (com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse) obj; + com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse other = (com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse) obj; - if (!getBigQueryExportsList().equals(other.getBigQueryExportsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getBigQueryExportsList() + .equals(other.getBigQueryExportsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -329,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for listing BigQuery exports.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListBigQueryExportsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListBigQueryExportsResponse) com.google.cloud.securitycenter.v1.ListBigQueryExportsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.class, - com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.class, com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.newBuilder() @@ -457,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getBigQueryExportsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -483,14 +437,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.getDefaultInstance(); } @@ -505,8 +458,7 @@ public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse buildPartial() { - com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse result = - new com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse(this); + com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse result = new com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse(this); int from_bitField0_ = bitField0_; if (bigQueryExportsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -526,39 +478,38 @@ public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse)other); } else { super.mergeFrom(other); return this; @@ -566,9 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse other) { - if (other - == com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.getDefaultInstance()) return this; if (bigQueryExportsBuilder_ == null) { if (!other.bigQueryExports_.isEmpty()) { if (bigQueryExports_.isEmpty()) { @@ -587,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListBigQueryExportsR bigQueryExportsBuilder_ = null; bigQueryExports_ = other.bigQueryExports_; bitField0_ = (bitField0_ & ~0x00000001); - bigQueryExportsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBigQueryExportsFieldBuilder() - : null; + bigQueryExportsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBigQueryExportsFieldBuilder() : null; } else { bigQueryExportsBuilder_.addAllMessages(other.bigQueryExports_); } @@ -619,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -630,38 +576,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List bigQueryExports_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBigQueryExportsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - bigQueryExports_ = - new java.util.ArrayList( - bigQueryExports_); + bigQueryExports_ = new java.util.ArrayList(bigQueryExports_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.BigQueryExport, - com.google.cloud.securitycenter.v1.BigQueryExport.Builder, - com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> - bigQueryExportsBuilder_; + com.google.cloud.securitycenter.v1.BigQueryExport, com.google.cloud.securitycenter.v1.BigQueryExport.Builder, com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> bigQueryExportsBuilder_; /** - * - * *
      * The BigQuery exports from the specified parent.
      * 
* * repeated .google.cloud.securitycenter.v1.BigQueryExport big_query_exports = 1; */ - public java.util.List - getBigQueryExportsList() { + public java.util.List getBigQueryExportsList() { if (bigQueryExportsBuilder_ == null) { return java.util.Collections.unmodifiableList(bigQueryExports_); } else { @@ -669,8 +605,6 @@ private void ensureBigQueryExportsIsMutable() { } } /** - * - * *
      * The BigQuery exports from the specified parent.
      * 
@@ -685,8 +619,6 @@ public int getBigQueryExportsCount() { } } /** - * - * *
      * The BigQuery exports from the specified parent.
      * 
@@ -701,8 +633,6 @@ public com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExports(int } } /** - * - * *
      * The BigQuery exports from the specified parent.
      * 
@@ -724,8 +654,6 @@ public Builder setBigQueryExports( return this; } /** - * - * *
      * The BigQuery exports from the specified parent.
      * 
@@ -744,8 +672,6 @@ public Builder setBigQueryExports( return this; } /** - * - * *
      * The BigQuery exports from the specified parent.
      * 
@@ -766,8 +692,6 @@ public Builder addBigQueryExports(com.google.cloud.securitycenter.v1.BigQueryExp return this; } /** - * - * *
      * The BigQuery exports from the specified parent.
      * 
@@ -789,8 +713,6 @@ public Builder addBigQueryExports( return this; } /** - * - * *
      * The BigQuery exports from the specified parent.
      * 
@@ -809,8 +731,6 @@ public Builder addBigQueryExports( return this; } /** - * - * *
      * The BigQuery exports from the specified parent.
      * 
@@ -829,8 +749,6 @@ public Builder addBigQueryExports( return this; } /** - * - * *
      * The BigQuery exports from the specified parent.
      * 
@@ -841,7 +759,8 @@ public Builder addAllBigQueryExports( java.lang.Iterable values) { if (bigQueryExportsBuilder_ == null) { ensureBigQueryExportsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bigQueryExports_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bigQueryExports_); onChanged(); } else { bigQueryExportsBuilder_.addAllMessages(values); @@ -849,8 +768,6 @@ public Builder addAllBigQueryExports( return this; } /** - * - * *
      * The BigQuery exports from the specified parent.
      * 
@@ -868,8 +785,6 @@ public Builder clearBigQueryExports() { return this; } /** - * - * *
      * The BigQuery exports from the specified parent.
      * 
@@ -887,8 +802,6 @@ public Builder removeBigQueryExports(int index) { return this; } /** - * - * *
      * The BigQuery exports from the specified parent.
      * 
@@ -900,8 +813,6 @@ public com.google.cloud.securitycenter.v1.BigQueryExport.Builder getBigQueryExpo return getBigQueryExportsFieldBuilder().getBuilder(index); } /** - * - * *
      * The BigQuery exports from the specified parent.
      * 
@@ -911,22 +822,19 @@ public com.google.cloud.securitycenter.v1.BigQueryExport.Builder getBigQueryExpo public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExportsOrBuilder( int index) { if (bigQueryExportsBuilder_ == null) { - return bigQueryExports_.get(index); - } else { + return bigQueryExports_.get(index); } else { return bigQueryExportsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The BigQuery exports from the specified parent.
      * 
* * repeated .google.cloud.securitycenter.v1.BigQueryExport big_query_exports = 1; */ - public java.util.List - getBigQueryExportsOrBuilderList() { + public java.util.List + getBigQueryExportsOrBuilderList() { if (bigQueryExportsBuilder_ != null) { return bigQueryExportsBuilder_.getMessageOrBuilderList(); } else { @@ -934,8 +842,6 @@ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExp } } /** - * - * *
      * The BigQuery exports from the specified parent.
      * 
@@ -943,12 +849,10 @@ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExp * repeated .google.cloud.securitycenter.v1.BigQueryExport big_query_exports = 1; */ public com.google.cloud.securitycenter.v1.BigQueryExport.Builder addBigQueryExportsBuilder() { - return getBigQueryExportsFieldBuilder() - .addBuilder(com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance()); + return getBigQueryExportsFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance()); } /** - * - * *
      * The BigQuery exports from the specified parent.
      * 
@@ -957,35 +861,26 @@ public com.google.cloud.securitycenter.v1.BigQueryExport.Builder addBigQueryExpo */ public com.google.cloud.securitycenter.v1.BigQueryExport.Builder addBigQueryExportsBuilder( int index) { - return getBigQueryExportsFieldBuilder() - .addBuilder( - index, com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance()); + return getBigQueryExportsFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance()); } /** - * - * *
      * The BigQuery exports from the specified parent.
      * 
* * repeated .google.cloud.securitycenter.v1.BigQueryExport big_query_exports = 1; */ - public java.util.List - getBigQueryExportsBuilderList() { + public java.util.List + getBigQueryExportsBuilderList() { return getBigQueryExportsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.BigQueryExport, - com.google.cloud.securitycenter.v1.BigQueryExport.Builder, - com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> + com.google.cloud.securitycenter.v1.BigQueryExport, com.google.cloud.securitycenter.v1.BigQueryExport.Builder, com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> getBigQueryExportsFieldBuilder() { if (bigQueryExportsBuilder_ == null) { - bigQueryExportsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.BigQueryExport, - com.google.cloud.securitycenter.v1.BigQueryExport.Builder, - com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder>( + bigQueryExportsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.BigQueryExport, com.google.cloud.securitycenter.v1.BigQueryExport.Builder, com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder>( bigQueryExports_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -997,21 +892,19 @@ public com.google.cloud.securitycenter.v1.BigQueryExport.Builder addBigQueryExpo private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1020,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1043,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1117,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListBigQueryExportsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListBigQueryExportsResponse) - private static final com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse(); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBigQueryExportsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListBigQueryExportsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBigQueryExportsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListBigQueryExportsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1154,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponseOrBuilder.java similarity index 71% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponseOrBuilder.java index cd77c1476..1e6df0731 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListBigQueryExportsResponseOrBuilder - extends +public interface ListBigQueryExportsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListBigQueryExportsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The BigQuery exports from the specified parent.
    * 
* * repeated .google.cloud.securitycenter.v1.BigQueryExport big_query_exports = 1; */ - java.util.List getBigQueryExportsList(); + java.util.List + getBigQueryExportsList(); /** - * - * *
    * The BigQuery exports from the specified parent.
    * 
@@ -44,8 +25,6 @@ public interface ListBigQueryExportsResponseOrBuilder */ com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExports(int index); /** - * - * *
    * The BigQuery exports from the specified parent.
    * 
@@ -54,51 +33,43 @@ public interface ListBigQueryExportsResponseOrBuilder */ int getBigQueryExportsCount(); /** - * - * *
    * The BigQuery exports from the specified parent.
    * 
* * repeated .google.cloud.securitycenter.v1.BigQueryExport big_query_exports = 1; */ - java.util.List + java.util.List getBigQueryExportsOrBuilderList(); /** - * - * *
    * The BigQuery exports from the specified parent.
    * 
* * repeated .google.cloud.securitycenter.v1.BigQueryExport big_query_exports = 1; */ - com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExportsOrBuilder(int index); + com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExportsOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java similarity index 84% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java index be9c534ec..6e5781612 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for listing findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsRequest} */ -public final class ListFindingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListFindingsRequest) ListFindingsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingsRequest.newBuilder() to construct. private ListFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingsRequest() { parent_ = ""; filter_ = ""; @@ -46,15 +28,16 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,91 +56,81 @@ private ListFindingsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; + orderBy_ = s; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - case 42: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (compareDuration_ != null) { - subBuilder = compareDuration_.toBuilder(); - } - compareDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compareDuration_); - compareDuration_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 42: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); } - case 58: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (fieldMask_ != null) { - subBuilder = fieldMask_.toBuilder(); - } - fieldMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fieldMask_); - fieldMask_ = subBuilder.buildPartial(); - } - - break; + compareDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; + break; + } + case 58: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); } - case 72: - { - pageSize_ = input.readInt32(); - break; + fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 72: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -165,33 +138,29 @@ private ListFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListFindingsRequest.class, - com.google.cloud.securitycenter.v1.ListFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1.ListFindingsRequest.class, com.google.cloud.securitycenter.v1.ListFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id],
@@ -202,10 +171,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * projects/{projects_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -214,15 +180,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id],
@@ -233,18 +198,17 @@ public java.lang.String getParent() {
    * projects/{projects_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -255,8 +219,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -308,7 +270,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -317,15 +278,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -377,15 +337,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -396,8 +357,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 3; private volatile java.lang.Object orderBy_; /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -419,7 +378,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 3; - * * @return The orderBy. */ @java.lang.Override @@ -428,15 +386,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -458,15 +415,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 3; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -477,8 +435,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int READ_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp readTime_; /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -487,7 +443,6 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -495,8 +450,6 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -505,7 +458,6 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ @java.lang.Override @@ -513,8 +465,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -532,8 +482,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int COMPARE_DURATION_FIELD_NUMBER = 5;
   private com.google.protobuf.Duration compareDuration_;
   /**
-   *
-   *
    * 
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -564,7 +512,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ @java.lang.Override @@ -572,8 +519,6 @@ public boolean hasCompareDuration() { return compareDuration_ != null; } /** - * - * *
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -604,18 +549,13 @@ public boolean hasCompareDuration() {
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { - return compareDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : compareDuration_; + return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; } /** - * - * *
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -655,15 +595,12 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
   public static final int FIELD_MASK_FIELD_NUMBER = 7;
   private com.google.protobuf.FieldMask fieldMask_;
   /**
-   *
-   *
    * 
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -671,15 +608,12 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** - * - * *
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return The fieldMask. */ @java.lang.Override @@ -687,8 +621,6 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** - * - * *
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
@@ -704,8 +636,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
   public static final int PAGE_TOKEN_FIELD_NUMBER = 8;
   private volatile java.lang.Object pageToken_;
   /**
-   *
-   *
    * 
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -713,7 +643,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
    * 
* * string page_token = 8; - * * @return The pageToken. */ @java.lang.Override @@ -722,15 +651,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -738,15 +666,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 8; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -757,15 +686,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 9; private int pageSize_; /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 9; - * * @return The pageSize. */ @java.lang.Override @@ -774,7 +700,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -786,7 +711,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -830,19 +756,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, orderBy_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getReadTime()); } if (compareDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCompareDuration()); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFieldMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getFieldMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -852,31 +782,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListFindingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListFindingsRequest other = - (com.google.cloud.securitycenter.v1.ListFindingsRequest) obj; + com.google.cloud.securitycenter.v1.ListFindingsRequest other = (com.google.cloud.securitycenter.v1.ListFindingsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - if (!getCompareDuration().equals(other.getCompareDuration())) return false; + if (!getCompareDuration() + .equals(other.getCompareDuration())) return false; } if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - if (!getFieldMask().equals(other.getFieldMask())) return false; + if (!getFieldMask() + .equals(other.getFieldMask())) return false; } - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -916,127 +853,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.ListFindingsRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for listing findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListFindingsRequest) com.google.cloud.securitycenter.v1.ListFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListFindingsRequest.class, - com.google.cloud.securitycenter.v1.ListFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1.ListFindingsRequest.class, com.google.cloud.securitycenter.v1.ListFindingsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ListFindingsRequest.newBuilder() @@ -1044,15 +971,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1088,9 +1016,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor; } @java.lang.Override @@ -1109,8 +1037,7 @@ public com.google.cloud.securitycenter.v1.ListFindingsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsRequest buildPartial() { - com.google.cloud.securitycenter.v1.ListFindingsRequest result = - new com.google.cloud.securitycenter.v1.ListFindingsRequest(this); + com.google.cloud.securitycenter.v1.ListFindingsRequest result = new com.google.cloud.securitycenter.v1.ListFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.orderBy_ = orderBy_; @@ -1139,39 +1066,38 @@ public com.google.cloud.securitycenter.v1.ListFindingsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ListFindingsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListFindingsRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.ListFindingsRequest)other); } else { super.mergeFrom(other); return this; @@ -1179,8 +1105,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListFindingsRequest other) { - if (other == com.google.cloud.securitycenter.v1.ListFindingsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.ListFindingsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1228,8 +1153,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.ListFindingsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.ListFindingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1241,8 +1165,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id],
@@ -1253,16 +1175,14 @@ public Builder mergeFrom(
      * projects/{projects_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1271,8 +1191,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id],
@@ -1283,17 +1201,16 @@ public java.lang.String getParent() {
      * projects/{projects_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1301,8 +1218,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id],
@@ -1313,25 +1228,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * projects/{projects_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id],
@@ -1342,21 +1253,16 @@ public Builder setParent(java.lang.String value) {
      * projects/{projects_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id],
@@ -1367,19 +1273,17 @@ public Builder clearParent() {
      * projects/{projects_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1387,8 +1291,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1440,13 +1342,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1455,8 +1357,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1508,14 +1408,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1523,8 +1424,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1576,22 +1475,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1643,18 +1540,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1706,16 +1600,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1723,8 +1617,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1746,13 +1638,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 3; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1761,8 +1653,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1784,14 +1674,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1799,8 +1690,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1822,22 +1711,20 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 3; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1859,18 +1746,15 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 3; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1892,16 +1776,16 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 3; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; @@ -1909,13 +1793,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1924,15 +1803,12 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1941,7 +1817,6 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1952,8 +1827,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1977,8 +1850,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1988,7 +1859,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 4;
      */
-    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1999,8 +1871,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -2014,7 +1884,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -2026,8 +1896,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -2049,8 +1917,6 @@ public Builder clearReadTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -2061,13 +1927,11 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-
+      
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -2081,12 +1945,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -2097,17 +1960,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(), getParentForChildren(), isClean());
+        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(),
+                getParentForChildren(),
+                isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -2115,13 +1975,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private com.google.protobuf.Duration compareDuration_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        compareDurationBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> compareDurationBuilder_;
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2152,15 +2007,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; } /** - * - * *
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2191,21 +2043,16 @@ public boolean hasCompareDuration() {
      * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { - return compareDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : compareDuration_; + return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; } else { return compareDurationBuilder_.getMessage(); } } /** - * - * *
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2251,8 +2098,6 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2284,7 +2129,8 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration compare_duration = 5;
      */
-    public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setCompareDuration(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (compareDurationBuilder_ == null) {
         compareDuration_ = builderForValue.build();
         onChanged();
@@ -2295,8 +2141,6 @@ public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2332,9 +2176,7 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       if (compareDurationBuilder_ == null) {
         if (compareDuration_ != null) {
           compareDuration_ =
-              com.google.protobuf.Duration.newBuilder(compareDuration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(compareDuration_).mergeFrom(value).buildPartial();
         } else {
           compareDuration_ = value;
         }
@@ -2346,8 +2188,6 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2391,8 +2231,6 @@ public Builder clearCompareDuration() {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2425,13 +2263,11 @@ public Builder clearCompareDuration() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
-
+      
       onChanged();
       return getCompareDurationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2467,14 +2303,11 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
       if (compareDurationBuilder_ != null) {
         return compareDurationBuilder_.getMessageOrBuilder();
       } else {
-        return compareDuration_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : compareDuration_;
+        return compareDuration_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : compareDuration_;
       }
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2507,17 +2340,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getCompareDurationFieldBuilder() {
       if (compareDurationBuilder_ == null) {
-        compareDurationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getCompareDuration(), getParentForChildren(), isClean());
+        compareDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getCompareDuration(),
+                getParentForChildren(),
+                isClean());
         compareDuration_ = null;
       }
       return compareDurationBuilder_;
@@ -2525,35 +2355,26 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
 
     private com.google.protobuf.FieldMask fieldMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
-        fieldMaskBuilder_;
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> fieldMaskBuilder_;
     /**
-     *
-     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** - * - * *
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -2564,8 +2385,6 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** - * - * *
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2587,8 +2406,6 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2596,7 +2413,8 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask field_mask = 7;
      */
-    public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setFieldMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (fieldMaskBuilder_ == null) {
         fieldMask_ = builderForValue.build();
         onChanged();
@@ -2607,8 +2425,6 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2620,7 +2436,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       if (fieldMaskBuilder_ == null) {
         if (fieldMask_ != null) {
           fieldMask_ =
-              com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
         } else {
           fieldMask_ = value;
         }
@@ -2632,8 +2448,6 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2653,8 +2467,6 @@ public Builder clearFieldMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2663,13 +2475,11 @@ public Builder clearFieldMask() {
      * .google.protobuf.FieldMask field_mask = 7;
      */
     public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() {
-
+      
       onChanged();
       return getFieldMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2681,12 +2491,11 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
       if (fieldMaskBuilder_ != null) {
         return fieldMaskBuilder_.getMessageOrBuilder();
       } else {
-        return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
+        return fieldMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
       }
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2695,17 +2504,14 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * .google.protobuf.FieldMask field_mask = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getFieldMaskFieldBuilder() {
       if (fieldMaskBuilder_ == null) {
-        fieldMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getFieldMask(), getParentForChildren(), isClean());
+        fieldMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getFieldMask(),
+                getParentForChildren(),
+                isClean());
         fieldMask_ = null;
       }
       return fieldMaskBuilder_;
@@ -2713,8 +2519,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
 
     private java.lang.Object pageToken_ = "";
     /**
-     *
-     *
      * 
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -2722,13 +2526,13 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * 
* * string page_token = 8; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2737,8 +2541,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -2746,14 +2548,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 8; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2761,8 +2564,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -2770,22 +2571,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 8; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -2793,18 +2592,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 8; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -2812,32 +2608,29 @@ public Builder clearPageToken() {
      * 
* * string page_token = 8; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; - * * @return The pageSize. */ @java.lang.Override @@ -2845,45 +2638,39 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2893,12 +2680,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListFindingsRequest) private static final com.google.cloud.securitycenter.v1.ListFindingsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListFindingsRequest(); } @@ -2907,16 +2694,16 @@ public static com.google.cloud.securitycenter.v1.ListFindingsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2931,4 +2718,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.ListFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java similarity index 92% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java index 1b7b701ca..d53687abd 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListFindingsRequestOrBuilder - extends +public interface ListFindingsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListFindingsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id],
@@ -36,16 +18,11 @@ public interface ListFindingsRequestOrBuilder
    * projects/{projects_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id],
@@ -56,17 +33,13 @@ public interface ListFindingsRequestOrBuilder
    * projects/{projects_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -118,13 +91,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -176,14 +146,12 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -205,13 +173,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string order_by = 3; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -233,14 +198,12 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string order_by = 3; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -249,13 +212,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -264,13 +224,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -283,8 +240,6 @@ public interface ListFindingsRequestOrBuilder
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -315,13 +270,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** - * - * *
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -352,13 +304,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** - * - * *
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -393,34 +342,26 @@ public interface ListFindingsRequestOrBuilder
   com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
 
   /**
-   *
-   *
    * 
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** - * - * *
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** - * - * *
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
@@ -431,8 +372,6 @@ public interface ListFindingsRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -440,13 +379,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string page_token = 8; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -454,21 +390,18 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string page_token = 8; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 9; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java similarity index 67% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java index 06537da56..98d8ee450 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Response message for listing findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsResponse} */ -public final class ListFindingsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListFindingsResponse) ListFindingsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingsResponse.newBuilder() to construct. private ListFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingsResponse() { listFindingsResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,56 +55,46 @@ private ListFindingsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - listFindingsResults_ = - new java.util.ArrayList< - com.google.cloud.securitycenter.v1.ListFindingsResponse - .ListFindingsResult>(); - mutable_bitField0_ |= 0x00000001; - } - listFindingsResults_.add( - input.readMessage( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .parser(), - extensionRegistry)); - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + listFindingsResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; + listFindingsResults_.add( + input.readMessage(com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 32: - { - totalSize_ = input.readInt32(); - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 32: { + + totalSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -129,7 +102,8 @@ private ListFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { listFindingsResults_ = java.util.Collections.unmodifiableList(listFindingsResults_); @@ -138,54 +112,42 @@ private ListFindingsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListFindingsResponse.class, - com.google.cloud.securitycenter.v1.ListFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListFindingsResponse.class, com.google.cloud.securitycenter.v1.ListFindingsResponse.Builder.class); } - public interface ListFindingsResultOrBuilder - extends + public interface ListFindingsResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Finding matching the search request.
      * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; - * * @return Whether the finding field is set. */ boolean hasFinding(); /** - * - * *
      * Finding matching the search request.
      * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; - * * @return The finding. */ com.google.cloud.securitycenter.v1.Finding getFinding(); /** - * - * *
      * Finding matching the search request.
      * 
@@ -195,112 +157,83 @@ public interface ListFindingsResultOrBuilder com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder(); /** - * - * *
      * State change of the finding between the points in time.
      * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * @return The enum numeric value on the wire for stateChange. */ int getStateChangeValue(); /** - * - * *
      * State change of the finding between the points in time.
      * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * @return The stateChange. */ - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange - getStateChange(); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange getStateChange(); /** - * - * *
      * Output only. Resource that is associated with this finding.
      * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
      * Output only. Resource that is associated with this finding.
      * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The resource. */ - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - getResource(); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource getResource(); /** - * - * *
      * Output only. Resource that is associated with this finding.
      * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder - getResourceOrBuilder(); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder getResourceOrBuilder(); } /** - * - * *
    * Result containing the Finding and its StateChange.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult} */ - public static final class ListFindingsResult extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ListFindingsResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) ListFindingsResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingsResult.newBuilder() to construct. private ListFindingsResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingsResult() { stateChange_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingsResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -319,56 +252,45 @@ private ListFindingsResult( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1.Finding.Builder subBuilder = null; - if (finding_ != null) { - subBuilder = finding_.toBuilder(); - } - finding_ = - input.readMessage( - com.google.cloud.securitycenter.v1.Finding.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(finding_); - finding_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1.Finding.Builder subBuilder = null; + if (finding_ != null) { + subBuilder = finding_.toBuilder(); } - case 16: - { - int rawValue = input.readEnum(); - - stateChange_ = rawValue; - break; + finding_ = input.readMessage(com.google.cloud.securitycenter.v1.Finding.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finding_); + finding_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - .Builder - subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .Resource.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - break; + break; + } + case 16: { + int rawValue = input.readEnum(); + + stateChange_ = rawValue; + break; + } + case 26: { + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + resource_ = input.readMessage(com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -376,32 +298,27 @@ private ListFindingsResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.class, - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder - .class); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.class, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder.class); } /** - * - * *
      * The change in state of the finding.
      * When querying across two points in time this describes
@@ -412,13 +329,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * supplied in the request the state change will be: UNUSED
      * 
* - * Protobuf enum {@code - * google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange} + * Protobuf enum {@code google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange} */ - public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { + public enum StateChange + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * State change is unused, this is the canonical default for this enum.
        * 
@@ -427,8 +342,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ UNUSED(0), /** - * - * *
        * The finding has changed state in some way between the points in time
        * and existed at both points.
@@ -438,8 +351,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum {
        */
       CHANGED(1),
       /**
-       *
-       *
        * 
        * The finding has not changed state between the points in time and
        * existed at both points.
@@ -449,8 +360,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum {
        */
       UNCHANGED(2),
       /**
-       *
-       *
        * 
        * The finding was created between the points in time.
        * 
@@ -459,8 +368,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ ADDED(3), /** - * - * *
        * The finding at timestamp does not match the filter specified, but it
        * did at timestamp - compare_duration.
@@ -473,8 +380,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * State change is unused, this is the canonical default for this enum.
        * 
@@ -483,8 +388,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNUSED_VALUE = 0; /** - * - * *
        * The finding has changed state in some way between the points in time
        * and existed at both points.
@@ -494,8 +397,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int CHANGED_VALUE = 1;
       /**
-       *
-       *
        * 
        * The finding has not changed state between the points in time and
        * existed at both points.
@@ -505,8 +406,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int UNCHANGED_VALUE = 2;
       /**
-       *
-       *
        * 
        * The finding was created between the points in time.
        * 
@@ -515,8 +414,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADDED_VALUE = 3; /** - * - * *
        * The finding at timestamp does not match the filter specified, but it
        * did at timestamp - compare_duration.
@@ -526,6 +423,7 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int REMOVED_VALUE = 4;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -550,56 +448,51 @@ public static StateChange valueOf(int value) {
        */
       public static StateChange forNumber(int value) {
         switch (value) {
-          case 0:
-            return UNUSED;
-          case 1:
-            return CHANGED;
-          case 2:
-            return UNCHANGED;
-          case 3:
-            return ADDED;
-          case 4:
-            return REMOVED;
-          default:
-            return null;
+          case 0: return UNUSED;
+          case 1: return CHANGED;
+          case 2: return UNCHANGED;
+          case 3: return ADDED;
+          case 4: return REMOVED;
+          default: return null;
         }
       }
 
-      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+      public static com.google.protobuf.Internal.EnumLiteMap
+          internalGetValueMap() {
         return internalValueMap;
       }
+      private static final com.google.protobuf.Internal.EnumLiteMap<
+          StateChange> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public StateChange findValueByNumber(int number) {
+                return StateChange.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public StateChange findValueByNumber(int number) {
-              return StateChange.forNumber(number);
-            }
-          };
-
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor
+          getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-
-      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+      public final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptorForType() {
         return getDescriptor();
       }
-
-      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-        return com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
-            .getDescriptor()
-            .getEnumTypes()
-            .get(0);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final StateChange[] VALUES = values();
 
-      public static StateChange valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static StateChange valueOf(
+          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException(
+            "EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -616,191 +509,153 @@ private StateChange(int value) {
       // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange)
     }
 
-    public interface ResourceOrBuilder
-        extends
+    public interface ResourceOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource)
         com.google.protobuf.MessageOrBuilder {
 
       /**
-       *
-       *
        * 
        * The full resource name of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
        * The full resource name of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
        * The human readable name of the resource.
        * 
* * string display_name = 8; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
        * The human readable name of the resource.
        * 
* * string display_name = 8; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
        * The full resource type of the resource.
        * 
* * string type = 6; - * * @return The type. */ java.lang.String getType(); /** - * - * *
        * The full resource type of the resource.
        * 
* * string type = 6; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
        * The full resource name of project that the resource belongs to.
        * 
* * string project_name = 2; - * * @return The projectName. */ java.lang.String getProjectName(); /** - * - * *
        * The full resource name of project that the resource belongs to.
        * 
* * string project_name = 2; - * * @return The bytes for projectName. */ - com.google.protobuf.ByteString getProjectNameBytes(); + com.google.protobuf.ByteString + getProjectNameBytes(); /** - * - * *
        * The project ID that the resource belongs to.
        * 
* * string project_display_name = 3; - * * @return The projectDisplayName. */ java.lang.String getProjectDisplayName(); /** - * - * *
        * The project ID that the resource belongs to.
        * 
* * string project_display_name = 3; - * * @return The bytes for projectDisplayName. */ - com.google.protobuf.ByteString getProjectDisplayNameBytes(); + com.google.protobuf.ByteString + getProjectDisplayNameBytes(); /** - * - * *
        * The full resource name of resource's parent.
        * 
* * string parent_name = 4; - * * @return The parentName. */ java.lang.String getParentName(); /** - * - * *
        * The full resource name of resource's parent.
        * 
* * string parent_name = 4; - * * @return The bytes for parentName. */ - com.google.protobuf.ByteString getParentNameBytes(); + com.google.protobuf.ByteString + getParentNameBytes(); /** - * - * *
        * The human readable name of resource's parent.
        * 
* * string parent_display_name = 5; - * * @return The parentDisplayName. */ java.lang.String getParentDisplayName(); /** - * - * *
        * The human readable name of resource's parent.
        * 
* * string parent_display_name = 5; - * * @return The bytes for parentDisplayName. */ - com.google.protobuf.ByteString getParentDisplayNameBytes(); + com.google.protobuf.ByteString + getParentDisplayNameBytes(); /** - * - * *
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -809,10 +664,9 @@ public interface ResourceOrBuilder
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
        */
-      java.util.List getFoldersList();
+      java.util.List 
+          getFoldersList();
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -823,8 +677,6 @@ public interface ResourceOrBuilder
        */
       com.google.cloud.securitycenter.v1.Folder getFolders(int index);
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -835,8 +687,6 @@ public interface ResourceOrBuilder
        */
       int getFoldersCount();
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -845,11 +695,9 @@ public interface ResourceOrBuilder
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
        */
-      java.util.List
+      java.util.List 
           getFoldersOrBuilderList();
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -858,29 +706,26 @@ public interface ResourceOrBuilder
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
        */
-      com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index);
+      com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(
+          int index);
     }
     /**
-     *
-     *
      * 
      * Information related to the Google Cloud resource that is
      * associated with this finding.
      * 
* - * Protobuf type {@code - * google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource} + * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource} */ - public static final class Resource extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Resource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) ResourceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Resource() { name_ = ""; displayName_ = ""; @@ -894,15 +739,16 @@ private Resource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Resource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Resource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -922,73 +768,64 @@ private Resource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - projectName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + projectName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - projectDisplayName_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + projectDisplayName_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - parentName_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + parentName_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - parentDisplayName_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + parentDisplayName_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); - type_ = s; - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - folders_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - folders_.add( - input.readMessage( - com.google.cloud.securitycenter.v1.Folder.parser(), extensionRegistry)); - break; + type_ = s; + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + folders_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + folders_.add( + input.readMessage(com.google.cloud.securitycenter.v1.Folder.parser(), extensionRegistry)); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + displayName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -996,8 +833,8 @@ private Resource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { folders_ = java.util.Collections.unmodifiableList(folders_); @@ -1006,36 +843,28 @@ private Resource( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - .class, - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - .Builder.class); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.class, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
        * The full resource name of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1044,30 +873,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
        * The full resource name of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1078,14 +907,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 8; private volatile java.lang.Object displayName_; /** - * - * *
        * The human readable name of the resource.
        * 
* * string display_name = 8; - * * @return The displayName. */ @java.lang.Override @@ -1094,29 +920,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
        * The human readable name of the resource.
        * 
* * string display_name = 8; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1127,14 +953,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int TYPE_FIELD_NUMBER = 6; private volatile java.lang.Object type_; /** - * - * *
        * The full resource type of the resource.
        * 
* * string type = 6; - * * @return The type. */ @java.lang.Override @@ -1143,29 +966,29 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** - * - * *
        * The full resource type of the resource.
        * 
* * string type = 6; - * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -1176,14 +999,11 @@ public com.google.protobuf.ByteString getTypeBytes() { public static final int PROJECT_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object projectName_; /** - * - * *
        * The full resource name of project that the resource belongs to.
        * 
* * string project_name = 2; - * * @return The projectName. */ @java.lang.Override @@ -1192,29 +1012,29 @@ public java.lang.String getProjectName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectName_ = s; return s; } } /** - * - * *
        * The full resource name of project that the resource belongs to.
        * 
* * string project_name = 2; - * * @return The bytes for projectName. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectNameBytes() { + public com.google.protobuf.ByteString + getProjectNameBytes() { java.lang.Object ref = projectName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectName_ = b; return b; } else { @@ -1225,14 +1045,11 @@ public com.google.protobuf.ByteString getProjectNameBytes() { public static final int PROJECT_DISPLAY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object projectDisplayName_; /** - * - * *
        * The project ID that the resource belongs to.
        * 
* * string project_display_name = 3; - * * @return The projectDisplayName. */ @java.lang.Override @@ -1241,29 +1058,29 @@ public java.lang.String getProjectDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectDisplayName_ = s; return s; } } /** - * - * *
        * The project ID that the resource belongs to.
        * 
* * string project_display_name = 3; - * * @return The bytes for projectDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectDisplayNameBytes() { + public com.google.protobuf.ByteString + getProjectDisplayNameBytes() { java.lang.Object ref = projectDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectDisplayName_ = b; return b; } else { @@ -1274,14 +1091,11 @@ public com.google.protobuf.ByteString getProjectDisplayNameBytes() { public static final int PARENT_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object parentName_; /** - * - * *
        * The full resource name of resource's parent.
        * 
* * string parent_name = 4; - * * @return The parentName. */ @java.lang.Override @@ -1290,29 +1104,29 @@ public java.lang.String getParentName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentName_ = s; return s; } } /** - * - * *
        * The full resource name of resource's parent.
        * 
* * string parent_name = 4; - * * @return The bytes for parentName. */ @java.lang.Override - public com.google.protobuf.ByteString getParentNameBytes() { + public com.google.protobuf.ByteString + getParentNameBytes() { java.lang.Object ref = parentName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentName_ = b; return b; } else { @@ -1323,14 +1137,11 @@ public com.google.protobuf.ByteString getParentNameBytes() { public static final int PARENT_DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object parentDisplayName_; /** - * - * *
        * The human readable name of resource's parent.
        * 
* * string parent_display_name = 5; - * * @return The parentDisplayName. */ @java.lang.Override @@ -1339,29 +1150,29 @@ public java.lang.String getParentDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDisplayName_ = s; return s; } } /** - * - * *
        * The human readable name of resource's parent.
        * 
* * string parent_display_name = 5; - * * @return The bytes for parentDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString getParentDisplayNameBytes() { + public com.google.protobuf.ByteString + getParentDisplayNameBytes() { java.lang.Object ref = parentDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentDisplayName_ = b; return b; } else { @@ -1372,8 +1183,6 @@ public com.google.protobuf.ByteString getParentDisplayNameBytes() { public static final int FOLDERS_FIELD_NUMBER = 7; private java.util.List folders_; /** - * - * *
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -1387,8 +1196,6 @@ public java.util.List getFoldersList(
         return folders_;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -1398,13 +1205,11 @@ public java.util.List getFoldersList(
        * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
        */
       @java.lang.Override
-      public java.util.List
+      public java.util.List 
           getFoldersOrBuilderList() {
         return folders_;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -1418,8 +1223,6 @@ public int getFoldersCount() {
         return folders_.size();
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -1433,8 +1236,6 @@ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) {
         return folders_.get(index);
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -1444,12 +1245,12 @@ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) {
        * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
        */
       @java.lang.Override
-      public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index) {
+      public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(
+          int index) {
         return folders_.get(index);
       }
 
       private byte memoizedIsInitialized = -1;
-
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
@@ -1461,7 +1262,8 @@ public final boolean isInitialized() {
       }
 
       @java.lang.Override
-      public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+      public void writeTo(com.google.protobuf.CodedOutputStream output)
+                          throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
         }
@@ -1514,7 +1316,8 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, type_);
         }
         for (int i = 0; i < folders_.size(); i++) {
-          size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, folders_.get(i));
+          size += com.google.protobuf.CodedOutputStream
+            .computeMessageSize(7, folders_.get(i));
         }
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, displayName_);
@@ -1527,25 +1330,29 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
-          return true;
+         return true;
         }
-        if (!(obj
-            instanceof
-            com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource)) {
+        if (!(obj instanceof com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource)) {
           return super.equals(obj);
         }
-        com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource other =
-            (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource)
-                obj;
-
-        if (!getName().equals(other.getName())) return false;
-        if (!getDisplayName().equals(other.getDisplayName())) return false;
-        if (!getType().equals(other.getType())) return false;
-        if (!getProjectName().equals(other.getProjectName())) return false;
-        if (!getProjectDisplayName().equals(other.getProjectDisplayName())) return false;
-        if (!getParentName().equals(other.getParentName())) return false;
-        if (!getParentDisplayName().equals(other.getParentDisplayName())) return false;
-        if (!getFoldersList().equals(other.getFoldersList())) return false;
+        com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource other = (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) obj;
+
+        if (!getName()
+            .equals(other.getName())) return false;
+        if (!getDisplayName()
+            .equals(other.getDisplayName())) return false;
+        if (!getType()
+            .equals(other.getType())) return false;
+        if (!getProjectName()
+            .equals(other.getProjectName())) return false;
+        if (!getProjectDisplayName()
+            .equals(other.getProjectDisplayName())) return false;
+        if (!getParentName()
+            .equals(other.getParentName())) return false;
+        if (!getParentDisplayName()
+            .equals(other.getParentDisplayName())) return false;
+        if (!getFoldersList()
+            .equals(other.getFoldersList())) return false;
         if (!unknownFields.equals(other.unknownFields)) return false;
         return true;
       }
@@ -1580,116 +1387,88 @@ public int hashCode() {
         return hash;
       }
 
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
-              .Resource
-          parseFrom(java.nio.ByteBuffer data)
-              throws com.google.protobuf.InvalidProtocolBufferException {
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
+          java.nio.ByteBuffer data)
+          throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
-
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
-              .Resource
-          parseFrom(
-              java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
+          java.nio.ByteBuffer data,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
-              .Resource
-          parseFrom(com.google.protobuf.ByteString data)
-              throws com.google.protobuf.InvalidProtocolBufferException {
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
+          com.google.protobuf.ByteString data)
+          throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
-
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
-              .Resource
-          parseFrom(
-              com.google.protobuf.ByteString data,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
+          com.google.protobuf.ByteString data,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
-              .Resource
-          parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(byte[] data)
+          throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
-
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
-              .Resource
-          parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
+          byte[] data,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
-              .Resource
-          parseFrom(java.io.InputStream input) throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(java.io.InputStream input)
+          throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3
+            .parseWithIOException(PARSER, input);
       }
-
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
-              .Resource
-          parseFrom(
-              java.io.InputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-            PARSER, input, extensionRegistry);
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
+          java.io.InputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3
+            .parseWithIOException(PARSER, input, extensionRegistry);
       }
-
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
-              .Resource
-          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseDelimitedFrom(java.io.InputStream input)
+          throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3
+            .parseDelimitedWithIOException(PARSER, input);
       }
-
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
-              .Resource
-          parseDelimitedFrom(
-              java.io.InputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-            PARSER, input, extensionRegistry);
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseDelimitedFrom(
+          java.io.InputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3
+            .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
       }
-
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
-              .Resource
-          parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
+          com.google.protobuf.CodedInputStream input)
+          throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3
+            .parseWithIOException(PARSER, input);
       }
-
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
-              .Resource
-          parseFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-            PARSER, input, extensionRegistry);
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3
+            .parseWithIOException(PARSER, input, extensionRegistry);
       }
 
       @java.lang.Override
-      public Builder newBuilderForType() {
-        return newBuilder();
-      }
-
+      public Builder newBuilderForType() { return newBuilder(); }
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
-
-      public static Builder newBuilder(
-          com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource
-              prototype) {
+      public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
-
       @java.lang.Override
       public Builder toBuilder() {
-        return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+        return this == DEFAULT_INSTANCE
+            ? new Builder() : new Builder().mergeFrom(this);
       }
 
       @java.lang.Override
@@ -1699,56 +1478,46 @@ protected Builder newBuilderForType(
         return builder;
       }
       /**
-       *
-       *
        * 
        * Information related to the Google Cloud resource that is
        * associated with this finding.
        * 
* - * Protobuf type {@code - * google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource} + * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .ResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .Resource.class, - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .Resource.Builder.class); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.class, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.newBuilder() + // Construct using com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFoldersFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1776,23 +1545,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - build() { - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - result = buildPartial(); + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource build() { + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1800,12 +1565,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - buildPartial() { - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - result = - new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .Resource(this); + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource buildPartial() { + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource result = new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -1831,58 +1592,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) { - return mergeFrom( - (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .Resource) - other); + if (other instanceof com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) { + return mergeFrom((com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - other) { - if (other - == com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource other) { + if (other == com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1929,10 +1678,9 @@ public Builder mergeFrom( foldersBuilder_ = null; folders_ = other.folders_; bitField0_ = (bitField0_ & ~0x00000001); - foldersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFoldersFieldBuilder() - : null; + foldersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFoldersFieldBuilder() : null; } else { foldersBuilder_.addAllMessages(other.folders_); } @@ -1953,15 +1701,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - parsedMessage = null; + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .Resource) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1970,26 +1714,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
          * The full resource name of the resource. See:
          * https://cloud.google.com/apis/design/resource_names#full_resource_name
          * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1998,22 +1739,21 @@ public java.lang.String getName() { } } /** - * - * *
          * The full resource name of the resource. See:
          * https://cloud.google.com/apis/design/resource_names#full_resource_name
          * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2021,64 +1761,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
          * The full resource name of the resource. See:
          * https://cloud.google.com/apis/design/resource_names#full_resource_name
          * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
          * The full resource name of the resource. See:
          * https://cloud.google.com/apis/design/resource_names#full_resource_name
          * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
          * The full resource name of the resource. See:
          * https://cloud.google.com/apis/design/resource_names#full_resource_name
          * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2086,20 +1819,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
          * The human readable name of the resource.
          * 
* * string display_name = 8; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2108,21 +1839,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
          * The human readable name of the resource.
          * 
* * string display_name = 8; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2130,61 +1860,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
          * The human readable name of the resource.
          * 
* * string display_name = 8; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
          * The human readable name of the resource.
          * 
* * string display_name = 8; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
          * The human readable name of the resource.
          * 
* * string display_name = 8; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -2192,20 +1915,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object type_ = ""; /** - * - * *
          * The full resource type of the resource.
          * 
* * string type = 6; - * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -2214,83 +1935,75 @@ public java.lang.String getType() { } } /** - * - * *
          * The full resource type of the resource.
          * 
* * string type = 6; - * * @return The bytes for type. */ - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** - * - * + /** *
          * The full resource type of the resource.
          * 
* * string type = 6; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(java.lang.String value) { + public Builder setType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** - * - * *
          * The full resource type of the resource.
          * 
* * string type = 6; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** - * - * *
          * The full resource type of the resource.
          * 
* * string type = 6; - * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; @@ -2298,20 +2011,18 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectName_ = ""; /** - * - * *
          * The full resource name of project that the resource belongs to.
          * 
* * string project_name = 2; - * * @return The projectName. */ public java.lang.String getProjectName() { java.lang.Object ref = projectName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectName_ = s; return s; @@ -2320,21 +2031,20 @@ public java.lang.String getProjectName() { } } /** - * - * *
          * The full resource name of project that the resource belongs to.
          * 
* * string project_name = 2; - * * @return The bytes for projectName. */ - public com.google.protobuf.ByteString getProjectNameBytes() { + public com.google.protobuf.ByteString + getProjectNameBytes() { java.lang.Object ref = projectName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectName_ = b; return b; } else { @@ -2342,61 +2052,54 @@ public com.google.protobuf.ByteString getProjectNameBytes() { } } /** - * - * *
          * The full resource name of project that the resource belongs to.
          * 
* * string project_name = 2; - * * @param value The projectName to set. * @return This builder for chaining. */ - public Builder setProjectName(java.lang.String value) { + public Builder setProjectName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectName_ = value; onChanged(); return this; } /** - * - * *
          * The full resource name of project that the resource belongs to.
          * 
* * string project_name = 2; - * * @return This builder for chaining. */ public Builder clearProjectName() { - + projectName_ = getDefaultInstance().getProjectName(); onChanged(); return this; } /** - * - * *
          * The full resource name of project that the resource belongs to.
          * 
* * string project_name = 2; - * * @param value The bytes for projectName to set. * @return This builder for chaining. */ - public Builder setProjectNameBytes(com.google.protobuf.ByteString value) { + public Builder setProjectNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectName_ = value; onChanged(); return this; @@ -2404,20 +2107,18 @@ public Builder setProjectNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectDisplayName_ = ""; /** - * - * *
          * The project ID that the resource belongs to.
          * 
* * string project_display_name = 3; - * * @return The projectDisplayName. */ public java.lang.String getProjectDisplayName() { java.lang.Object ref = projectDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectDisplayName_ = s; return s; @@ -2426,21 +2127,20 @@ public java.lang.String getProjectDisplayName() { } } /** - * - * *
          * The project ID that the resource belongs to.
          * 
* * string project_display_name = 3; - * * @return The bytes for projectDisplayName. */ - public com.google.protobuf.ByteString getProjectDisplayNameBytes() { + public com.google.protobuf.ByteString + getProjectDisplayNameBytes() { java.lang.Object ref = projectDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectDisplayName_ = b; return b; } else { @@ -2448,61 +2148,54 @@ public com.google.protobuf.ByteString getProjectDisplayNameBytes() { } } /** - * - * *
          * The project ID that the resource belongs to.
          * 
* * string project_display_name = 3; - * * @param value The projectDisplayName to set. * @return This builder for chaining. */ - public Builder setProjectDisplayName(java.lang.String value) { + public Builder setProjectDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectDisplayName_ = value; onChanged(); return this; } /** - * - * *
          * The project ID that the resource belongs to.
          * 
* * string project_display_name = 3; - * * @return This builder for chaining. */ public Builder clearProjectDisplayName() { - + projectDisplayName_ = getDefaultInstance().getProjectDisplayName(); onChanged(); return this; } /** - * - * *
          * The project ID that the resource belongs to.
          * 
* * string project_display_name = 3; - * * @param value The bytes for projectDisplayName to set. * @return This builder for chaining. */ - public Builder setProjectDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setProjectDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectDisplayName_ = value; onChanged(); return this; @@ -2510,20 +2203,18 @@ public Builder setProjectDisplayNameBytes(com.google.protobuf.ByteString value) private java.lang.Object parentName_ = ""; /** - * - * *
          * The full resource name of resource's parent.
          * 
* * string parent_name = 4; - * * @return The parentName. */ public java.lang.String getParentName() { java.lang.Object ref = parentName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentName_ = s; return s; @@ -2532,21 +2223,20 @@ public java.lang.String getParentName() { } } /** - * - * *
          * The full resource name of resource's parent.
          * 
* * string parent_name = 4; - * * @return The bytes for parentName. */ - public com.google.protobuf.ByteString getParentNameBytes() { + public com.google.protobuf.ByteString + getParentNameBytes() { java.lang.Object ref = parentName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentName_ = b; return b; } else { @@ -2554,61 +2244,54 @@ public com.google.protobuf.ByteString getParentNameBytes() { } } /** - * - * *
          * The full resource name of resource's parent.
          * 
* * string parent_name = 4; - * * @param value The parentName to set. * @return This builder for chaining. */ - public Builder setParentName(java.lang.String value) { + public Builder setParentName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parentName_ = value; onChanged(); return this; } /** - * - * *
          * The full resource name of resource's parent.
          * 
* * string parent_name = 4; - * * @return This builder for chaining. */ public Builder clearParentName() { - + parentName_ = getDefaultInstance().getParentName(); onChanged(); return this; } /** - * - * *
          * The full resource name of resource's parent.
          * 
* * string parent_name = 4; - * * @param value The bytes for parentName to set. * @return This builder for chaining. */ - public Builder setParentNameBytes(com.google.protobuf.ByteString value) { + public Builder setParentNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentName_ = value; onChanged(); return this; @@ -2616,20 +2299,18 @@ public Builder setParentNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object parentDisplayName_ = ""; /** - * - * *
          * The human readable name of resource's parent.
          * 
* * string parent_display_name = 5; - * * @return The parentDisplayName. */ public java.lang.String getParentDisplayName() { java.lang.Object ref = parentDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDisplayName_ = s; return s; @@ -2638,21 +2319,20 @@ public java.lang.String getParentDisplayName() { } } /** - * - * *
          * The human readable name of resource's parent.
          * 
* * string parent_display_name = 5; - * * @return The bytes for parentDisplayName. */ - public com.google.protobuf.ByteString getParentDisplayNameBytes() { + public com.google.protobuf.ByteString + getParentDisplayNameBytes() { java.lang.Object ref = parentDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentDisplayName_ = b; return b; } else { @@ -2660,85 +2340,72 @@ public com.google.protobuf.ByteString getParentDisplayNameBytes() { } } /** - * - * *
          * The human readable name of resource's parent.
          * 
* * string parent_display_name = 5; - * * @param value The parentDisplayName to set. * @return This builder for chaining. */ - public Builder setParentDisplayName(java.lang.String value) { + public Builder setParentDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parentDisplayName_ = value; onChanged(); return this; } /** - * - * *
          * The human readable name of resource's parent.
          * 
* * string parent_display_name = 5; - * * @return This builder for chaining. */ public Builder clearParentDisplayName() { - + parentDisplayName_ = getDefaultInstance().getParentDisplayName(); onChanged(); return this; } /** - * - * *
          * The human readable name of resource's parent.
          * 
* * string parent_display_name = 5; - * * @param value The bytes for parentDisplayName to set. * @return This builder for chaining. */ - public Builder setParentDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setParentDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentDisplayName_ = value; onChanged(); return this; } private java.util.List folders_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { folders_ = new java.util.ArrayList(folders_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Folder, - com.google.cloud.securitycenter.v1.Folder.Builder, - com.google.cloud.securitycenter.v1.FolderOrBuilder> - foldersBuilder_; + com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder> foldersBuilder_; /** - * - * *
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2755,8 +2422,6 @@ public java.util.List getFoldersList(
           }
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2773,8 +2438,6 @@ public int getFoldersCount() {
           }
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2791,8 +2454,6 @@ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) {
           }
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2801,7 +2462,8 @@ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) {
          *
          * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
          */
-        public Builder setFolders(int index, com.google.cloud.securitycenter.v1.Folder value) {
+        public Builder setFolders(
+            int index, com.google.cloud.securitycenter.v1.Folder value) {
           if (foldersBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
@@ -2815,8 +2477,6 @@ public Builder setFolders(int index, com.google.cloud.securitycenter.v1.Folder v
           return this;
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2837,8 +2497,6 @@ public Builder setFolders(
           return this;
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2861,8 +2519,6 @@ public Builder addFolders(com.google.cloud.securitycenter.v1.Folder value) {
           return this;
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2871,7 +2527,8 @@ public Builder addFolders(com.google.cloud.securitycenter.v1.Folder value) {
          *
          * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
          */
-        public Builder addFolders(int index, com.google.cloud.securitycenter.v1.Folder value) {
+        public Builder addFolders(
+            int index, com.google.cloud.securitycenter.v1.Folder value) {
           if (foldersBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
@@ -2885,8 +2542,6 @@ public Builder addFolders(int index, com.google.cloud.securitycenter.v1.Folder v
           return this;
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2907,8 +2562,6 @@ public Builder addFolders(
           return this;
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2929,8 +2582,6 @@ public Builder addFolders(
           return this;
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2943,7 +2594,8 @@ public Builder addAllFolders(
             java.lang.Iterable values) {
           if (foldersBuilder_ == null) {
             ensureFoldersIsMutable();
-            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_);
+            com.google.protobuf.AbstractMessageLite.Builder.addAll(
+                values, folders_);
             onChanged();
           } else {
             foldersBuilder_.addAllMessages(values);
@@ -2951,8 +2603,6 @@ public Builder addAllFolders(
           return this;
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2972,8 +2622,6 @@ public Builder clearFolders() {
           return this;
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2993,8 +2641,6 @@ public Builder removeFolders(int index) {
           return this;
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -3003,12 +2649,11 @@ public Builder removeFolders(int index) {
          *
          * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
          */
-        public com.google.cloud.securitycenter.v1.Folder.Builder getFoldersBuilder(int index) {
+        public com.google.cloud.securitycenter.v1.Folder.Builder getFoldersBuilder(
+            int index) {
           return getFoldersFieldBuilder().getBuilder(index);
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -3017,16 +2662,14 @@ public com.google.cloud.securitycenter.v1.Folder.Builder getFoldersBuilder(int i
          *
          * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
          */
-        public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index) {
+        public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(
+            int index) {
           if (foldersBuilder_ == null) {
-            return folders_.get(index);
-          } else {
+            return folders_.get(index);  } else {
             return foldersBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -3035,8 +2678,8 @@ public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(in
          *
          * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
          */
-        public java.util.List
-            getFoldersOrBuilderList() {
+        public java.util.List 
+             getFoldersOrBuilderList() {
           if (foldersBuilder_ != null) {
             return foldersBuilder_.getMessageOrBuilderList();
           } else {
@@ -3044,8 +2687,6 @@ public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(in
           }
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -3055,12 +2696,10 @@ public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(in
          * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
          */
         public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder() {
-          return getFoldersFieldBuilder()
-              .addBuilder(com.google.cloud.securitycenter.v1.Folder.getDefaultInstance());
+          return getFoldersFieldBuilder().addBuilder(
+              com.google.cloud.securitycenter.v1.Folder.getDefaultInstance());
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -3069,13 +2708,12 @@ public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder() {
          *
          * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
          */
-        public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder(int index) {
-          return getFoldersFieldBuilder()
-              .addBuilder(index, com.google.cloud.securitycenter.v1.Folder.getDefaultInstance());
+        public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder(
+            int index) {
+          return getFoldersFieldBuilder().addBuilder(
+              index, com.google.cloud.securitycenter.v1.Folder.getDefaultInstance());
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -3084,28 +2722,24 @@ public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder(int i
          *
          * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
          */
-        public java.util.List
-            getFoldersBuilderList() {
+        public java.util.List 
+             getFoldersBuilderList() {
           return getFoldersFieldBuilder().getBuilderList();
         }
-
         private com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.securitycenter.v1.Folder,
-                com.google.cloud.securitycenter.v1.Folder.Builder,
-                com.google.cloud.securitycenter.v1.FolderOrBuilder>
+            com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder> 
             getFoldersFieldBuilder() {
           if (foldersBuilder_ == null) {
-            foldersBuilder_ =
-                new com.google.protobuf.RepeatedFieldBuilderV3<
-                    com.google.cloud.securitycenter.v1.Folder,
-                    com.google.cloud.securitycenter.v1.Folder.Builder,
-                    com.google.cloud.securitycenter.v1.FolderOrBuilder>(
-                    folders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+            foldersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder>(
+                    folders_,
+                    ((bitField0_ & 0x00000001) != 0),
+                    getParentForChildren(),
+                    isClean());
             folders_ = null;
           }
           return foldersBuilder_;
         }
-
         @java.lang.Override
         public final Builder setUnknownFields(
             final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -3118,36 +2752,30 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
 
+
         // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource)
       }
 
       // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource)
-      private static final com.google.cloud.securitycenter.v1.ListFindingsResponse
-              .ListFindingsResult.Resource
-          DEFAULT_INSTANCE;
-
+      private static final com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource DEFAULT_INSTANCE;
       static {
-        DEFAULT_INSTANCE =
-            new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
-                .Resource();
+        DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource();
       }
 
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
-              .Resource
-          getDefaultInstance() {
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
 
-      private static final com.google.protobuf.Parser PARSER =
-          new com.google.protobuf.AbstractParser() {
-            @java.lang.Override
-            public Resource parsePartialFrom(
-                com.google.protobuf.CodedInputStream input,
-                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-                throws com.google.protobuf.InvalidProtocolBufferException {
-              return new Resource(input, extensionRegistry);
-            }
-          };
+      private static final com.google.protobuf.Parser
+          PARSER = new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Resource parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Resource(input, extensionRegistry);
+        }
+      };
 
       public static com.google.protobuf.Parser parser() {
         return PARSER;
@@ -3159,23 +2787,20 @@ public com.google.protobuf.Parser getParserForType() {
       }
 
       @java.lang.Override
-      public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource
-          getDefaultInstanceForType() {
+      public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
+
     }
 
     public static final int FINDING_FIELD_NUMBER = 1;
     private com.google.cloud.securitycenter.v1.Finding finding_;
     /**
-     *
-     *
      * 
      * Finding matching the search request.
      * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; - * * @return Whether the finding field is set. */ @java.lang.Override @@ -3183,25 +2808,18 @@ public boolean hasFinding() { return finding_ != null; } /** - * - * *
      * Finding matching the search request.
      * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; - * * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding getFinding() { - return finding_ == null - ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; } /** - * - * *
      * Finding matching the search request.
      * 
@@ -3216,63 +2834,38 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() public static final int STATE_CHANGE_FIELD_NUMBER = 2; private int stateChange_; /** - * - * *
      * State change of the finding between the points in time.
      * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * @return The enum numeric value on the wire for stateChange. */ - @java.lang.Override - public int getStateChangeValue() { + @java.lang.Override public int getStateChangeValue() { return stateChange_; } /** - * - * *
      * State change of the finding between the points in time.
      * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * @return The stateChange. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange - getStateChange() { + @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange getStateChange() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange - result = - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange - .valueOf(stateChange_); - return result == null - ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange - .UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange result = com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange.valueOf(stateChange_); + return result == null ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange.UNRECOGNIZED : result; } public static final int RESOURCE_FIELD_NUMBER = 3; - private com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - resource_; + private com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource_; /** - * - * *
      * Output only. Resource that is associated with this finding.
      * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the resource field is set. */ @java.lang.Override @@ -3280,46 +2873,30 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
      * Output only. Resource that is associated with this finding.
      * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The resource. */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - getResource() { - return resource_ == null - ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - .getDefaultInstance() - : resource_; + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource getResource() { + return resource_ == null ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.getDefaultInstance() : resource_; } /** - * - * *
      * Output only. Resource that is associated with this finding.
      * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .ResourceOrBuilder - getResourceOrBuilder() { + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder getResourceOrBuilder() { return getResource(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3331,14 +2908,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (finding_ != null) { output.writeMessage(1, getFinding()); } - if (stateChange_ - != com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange - .UNUSED - .getNumber()) { + if (stateChange_ != com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange.UNUSED.getNumber()) { output.writeEnum(2, stateChange_); } if (resource_ != null) { @@ -3354,16 +2929,16 @@ public int getSerializedSize() { size = 0; if (finding_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFinding()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getFinding()); } - if (stateChange_ - != com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange - .UNUSED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, stateChange_); + if (stateChange_ != com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange.UNUSED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, stateChange_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3373,23 +2948,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult)) { + if (!(obj instanceof com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult other = - (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) obj; + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult other = (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) obj; if (hasFinding() != other.hasFinding()) return false; if (hasFinding()) { - if (!getFinding().equals(other.getFinding())) return false; + if (!getFinding() + .equals(other.getFinding())) return false; } if (stateChange_ != other.stateChange_) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -3417,101 +2992,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3521,50 +3083,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Result containing the Finding and its StateChange.
      * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.class, - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder - .class); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.class, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.newBuilder() + // Construct using com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3586,22 +3142,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult build() { - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult result = - buildPartial(); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3609,10 +3162,8 @@ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResul } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - buildPartial() { - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult result = - new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult(this); + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult buildPartial() { + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult result = new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult(this); if (findingBuilder_ == null) { result.finding_ = finding_; } else { @@ -3632,54 +3183,46 @@ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) { - return mergeFrom( - (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) other); + if (other instanceof com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) { + return mergeFrom((com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult other) { - if (other - == com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult other) { + if (other == com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.getDefaultInstance()) return this; if (other.hasFinding()) { mergeFinding(other.getFinding()); } @@ -3704,14 +3247,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parsedMessage = - null; + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3723,47 +3263,34 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Finding, - com.google.cloud.securitycenter.v1.Finding.Builder, - com.google.cloud.securitycenter.v1.FindingOrBuilder> - findingBuilder_; + com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder> findingBuilder_; /** - * - * *
        * Finding matching the search request.
        * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; - * * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; } /** - * - * *
        * Finding matching the search request.
        * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; - * * @return The finding. */ public com.google.cloud.securitycenter.v1.Finding getFinding() { if (findingBuilder_ == null) { - return finding_ == null - ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; } else { return findingBuilder_.getMessage(); } } /** - * - * *
        * Finding matching the search request.
        * 
@@ -3784,8 +3311,6 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) { return this; } /** - * - * *
        * Finding matching the search request.
        * 
@@ -3804,8 +3329,6 @@ public Builder setFinding( return this; } /** - * - * *
        * Finding matching the search request.
        * 
@@ -3816,9 +3339,7 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) { if (findingBuilder_ == null) { if (finding_ != null) { finding_ = - com.google.cloud.securitycenter.v1.Finding.newBuilder(finding_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.Finding.newBuilder(finding_).mergeFrom(value).buildPartial(); } else { finding_ = value; } @@ -3830,8 +3351,6 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) { return this; } /** - * - * *
        * Finding matching the search request.
        * 
@@ -3850,8 +3369,6 @@ public Builder clearFinding() { return this; } /** - * - * *
        * Finding matching the search request.
        * 
@@ -3859,13 +3376,11 @@ public Builder clearFinding() { * .google.cloud.securitycenter.v1.Finding finding = 1; */ public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() { - + onChanged(); return getFindingFieldBuilder().getBuilder(); } /** - * - * *
        * Finding matching the search request.
        * 
@@ -3876,14 +3391,11 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() if (findingBuilder_ != null) { return findingBuilder_.getMessageOrBuilder(); } else { - return finding_ == null - ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? + com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; } } /** - * - * *
        * Finding matching the search request.
        * 
@@ -3891,17 +3403,14 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() * .google.cloud.securitycenter.v1.Finding finding = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Finding, - com.google.cloud.securitycenter.v1.Finding.Builder, - com.google.cloud.securitycenter.v1.FindingOrBuilder> + com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder> getFindingFieldBuilder() { if (findingBuilder_ == null) { - findingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Finding, - com.google.cloud.securitycenter.v1.Finding.Builder, - com.google.cloud.securitycenter.v1.FindingOrBuilder>( - getFinding(), getParentForChildren(), isClean()); + findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder>( + getFinding(), + getParentForChildren(), + isClean()); finding_ = null; } return findingBuilder_; @@ -3909,176 +3418,115 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() private int stateChange_ = 0; /** - * - * *
        * State change of the finding between the points in time.
        * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * @return The enum numeric value on the wire for stateChange. */ - @java.lang.Override - public int getStateChangeValue() { + @java.lang.Override public int getStateChangeValue() { return stateChange_; } /** - * - * *
        * State change of the finding between the points in time.
        * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * @param value The enum numeric value on the wire for stateChange to set. * @return This builder for chaining. */ public Builder setStateChangeValue(int value) { - + stateChange_ = value; onChanged(); return this; } /** - * - * *
        * State change of the finding between the points in time.
        * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * @return The stateChange. */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange - getStateChange() { + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange getStateChange() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange - result = - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .StateChange.valueOf(stateChange_); - return result == null - ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange - .UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange result = com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange.valueOf(stateChange_); + return result == null ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange.UNRECOGNIZED : result; } /** - * - * *
        * State change of the finding between the points in time.
        * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * @param value The stateChange to set. * @return This builder for chaining. */ - public Builder setStateChange( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange - value) { + public Builder setStateChange(com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange value) { if (value == null) { throw new NullPointerException(); } - + stateChange_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * State change of the finding between the points in time.
        * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * @return This builder for chaining. */ public Builder clearStateChange() { - + stateChange_ = 0; onChanged(); return this; } - private com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - resource_; + private com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource, - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - .Builder, - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .ResourceOrBuilder> - resourceBuilder_; + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.Builder, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder> resourceBuilder_; /** - * - * *
        * Output only. Resource that is associated with this finding.
        * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
        * Output only. Resource that is associated with this finding.
        * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The resource. */ - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - getResource() { + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - .getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
        * Output only. Resource that is associated with this finding.
        * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setResource( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - value) { + public Builder setResource(com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource value) { if (resourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4092,20 +3540,14 @@ public Builder setResource( return this; } /** - * - * *
        * Output only. Resource that is associated with this finding.
        * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResource( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - .Builder - builderForValue) { + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -4116,26 +3558,17 @@ public Builder setResource( return this; } /** - * - * *
        * Output only. Resource that is associated with this finding.
        * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeResource( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - value) { + public Builder mergeResource(com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - .newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -4147,15 +3580,11 @@ public Builder mergeResource( return this; } /** - * - * *
        * Output only. Resource that is associated with this finding.
        * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -4169,78 +3598,52 @@ public Builder clearResource() { return this; } /** - * - * *
        * Output only. Resource that is associated with this finding.
        * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - .Builder - getResourceBuilder() { - + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.Builder getResourceBuilder() { + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
        * Output only. Resource that is associated with this finding.
        * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .ResourceOrBuilder - getResourceOrBuilder() { + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - .getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.getDefaultInstance() : resource_; } } /** - * - * *
        * Output only. Resource that is associated with this finding.
        * 
* - * - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource, - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource - .Builder, - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .ResourceOrBuilder> + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.Builder, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .Resource, - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .Resource.Builder, - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .ResourceOrBuilder>(getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.Builder, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4253,33 +3656,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) - private static final com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult(); + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult(); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4291,108 +3691,80 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int LIST_FINDINGS_RESULTS_FIELD_NUMBER = 1; - private java.util.List - listFindingsResults_; + private java.util.List listFindingsResults_; /** - * - * *
    * Findings matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ @java.lang.Override - public java.util.List - getListFindingsResultsList() { + public java.util.List getListFindingsResultsList() { return listFindingsResults_; } /** - * - * *
    * Findings matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> + public java.util.List getListFindingsResultsOrBuilderList() { return listFindingsResults_; } /** - * - * *
    * Findings matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ @java.lang.Override public int getListFindingsResultsCount() { return listFindingsResults_.size(); } /** - * - * *
    * Findings matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - getListFindingsResults(int index) { + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getListFindingsResults(int index) { return listFindingsResults_.get(index); } /** - * - * *
    * Findings matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder - getListFindingsResultsOrBuilder(int index) { + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder getListFindingsResultsOrBuilder( + int index) { return listFindingsResults_.get(index); } public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -4400,14 +3772,11 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ @java.lang.Override @@ -4415,8 +3784,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used for executing the list request.
    * 
@@ -4431,15 +3798,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -4448,30 +3812,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -4482,14 +3846,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_; /** - * - * *
    * The total number of findings matching the query.
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -4498,7 +3859,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4510,7 +3870,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < listFindingsResults_.size(); i++) { output.writeMessage(1, listFindingsResults_.get(i)); } @@ -4533,17 +3894,19 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < listFindingsResults_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, listFindingsResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, listFindingsResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4553,21 +3916,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListFindingsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListFindingsResponse other = - (com.google.cloud.securitycenter.v1.ListFindingsResponse) obj; + com.google.cloud.securitycenter.v1.ListFindingsResponse other = (com.google.cloud.securitycenter.v1.ListFindingsResponse) obj; - if (!getListFindingsResultsList().equals(other.getListFindingsResultsList())) return false; + if (!getListFindingsResultsList() + .equals(other.getListFindingsResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4597,127 +3963,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.ListFindingsResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for listing findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListFindingsResponse) com.google.cloud.securitycenter.v1.ListFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListFindingsResponse.class, - com.google.cloud.securitycenter.v1.ListFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListFindingsResponse.class, com.google.cloud.securitycenter.v1.ListFindingsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ListFindingsResponse.newBuilder() @@ -4725,17 +4081,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getListFindingsResultsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4759,9 +4115,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; } @java.lang.Override @@ -4780,8 +4136,7 @@ public com.google.cloud.securitycenter.v1.ListFindingsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse buildPartial() { - com.google.cloud.securitycenter.v1.ListFindingsResponse result = - new com.google.cloud.securitycenter.v1.ListFindingsResponse(this); + com.google.cloud.securitycenter.v1.ListFindingsResponse result = new com.google.cloud.securitycenter.v1.ListFindingsResponse(this); int from_bitField0_ = bitField0_; if (listFindingsResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -4807,39 +4162,38 @@ public com.google.cloud.securitycenter.v1.ListFindingsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ListFindingsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListFindingsResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1.ListFindingsResponse)other); } else { super.mergeFrom(other); return this; @@ -4847,8 +4201,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListFindingsResponse other) { - if (other == com.google.cloud.securitycenter.v1.ListFindingsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.ListFindingsResponse.getDefaultInstance()) return this; if (listFindingsResultsBuilder_ == null) { if (!other.listFindingsResults_.isEmpty()) { if (listFindingsResults_.isEmpty()) { @@ -4867,10 +4220,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListFindingsResponse listFindingsResultsBuilder_ = null; listFindingsResults_ = other.listFindingsResults_; bitField0_ = (bitField0_ & ~0x00000001); - listFindingsResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getListFindingsResultsFieldBuilder() - : null; + listFindingsResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getListFindingsResultsFieldBuilder() : null; } else { listFindingsResultsBuilder_.addAllMessages(other.listFindingsResults_); } @@ -4905,8 +4257,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.ListFindingsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.ListFindingsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4915,43 +4266,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List< - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult> - listFindingsResults_ = java.util.Collections.emptyList(); - + private java.util.List listFindingsResults_ = + java.util.Collections.emptyList(); private void ensureListFindingsResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - listFindingsResults_ = - new java.util.ArrayList< - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult>( - listFindingsResults_); + listFindingsResults_ = new java.util.ArrayList(listFindingsResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult, - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder, - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> - listFindingsResultsBuilder_; + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> listFindingsResultsBuilder_; /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - public java.util.List< - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult> - getListFindingsResultsList() { + public java.util.List getListFindingsResultsList() { if (listFindingsResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(listFindingsResults_); } else { @@ -4959,15 +4295,11 @@ private void ensureListFindingsResultsIsMutable() { } } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ public int getListFindingsResultsCount() { if (listFindingsResultsBuilder_ == null) { @@ -4977,18 +4309,13 @@ public int getListFindingsResultsCount() { } } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - getListFindingsResults(int index) { + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getListFindingsResults(int index) { if (listFindingsResultsBuilder_ == null) { return listFindingsResults_.get(index); } else { @@ -4996,19 +4323,14 @@ public int getListFindingsResultsCount() { } } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ public Builder setListFindingsResults( - int index, - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult value) { + int index, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult value) { if (listFindingsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5022,20 +4344,14 @@ public Builder setListFindingsResults( return this; } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ public Builder setListFindingsResults( - int index, - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder - builderForValue) { + int index, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder builderForValue) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); listFindingsResults_.set(index, builderForValue.build()); @@ -5046,18 +4362,13 @@ public Builder setListFindingsResults( return this; } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - public Builder addListFindingsResults( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult value) { + public Builder addListFindingsResults(com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult value) { if (listFindingsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5071,19 +4382,14 @@ public Builder addListFindingsResults( return this; } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ public Builder addListFindingsResults( - int index, - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult value) { + int index, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult value) { if (listFindingsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5097,19 +4403,14 @@ public Builder addListFindingsResults( return this; } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ public Builder addListFindingsResults( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder - builderForValue) { + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder builderForValue) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); listFindingsResults_.add(builderForValue.build()); @@ -5120,20 +4421,14 @@ public Builder addListFindingsResults( return this; } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ public Builder addListFindingsResults( - int index, - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder - builderForValue) { + int index, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder builderForValue) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); listFindingsResults_.add(index, builderForValue.build()); @@ -5144,24 +4439,18 @@ public Builder addListFindingsResults( return this; } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ public Builder addAllListFindingsResults( - java.lang.Iterable< - ? extends - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult> - values) { + java.lang.Iterable values) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listFindingsResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, listFindingsResults_); onChanged(); } else { listFindingsResultsBuilder_.addAllMessages(values); @@ -5169,15 +4458,11 @@ public Builder addAllListFindingsResults( return this; } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ public Builder clearListFindingsResults() { if (listFindingsResultsBuilder_ == null) { @@ -5190,15 +4475,11 @@ public Builder clearListFindingsResults() { return this; } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ public Builder removeListFindingsResults(int index) { if (listFindingsResultsBuilder_ == null) { @@ -5211,54 +4492,39 @@ public Builder removeListFindingsResults(int index) { return this; } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder - getListFindingsResultsBuilder(int index) { + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder getListFindingsResultsBuilder( + int index) { return getListFindingsResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder - getListFindingsResultsOrBuilder(int index) { + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder getListFindingsResultsOrBuilder( + int index) { if (listFindingsResultsBuilder_ == null) { - return listFindingsResults_.get(index); - } else { + return listFindingsResults_.get(index); } else { return listFindingsResultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - public java.util.List< - ? extends - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> - getListFindingsResultsOrBuilderList() { + public java.util.List + getListFindingsResultsOrBuilderList() { if (listFindingsResultsBuilder_ != null) { return listFindingsResultsBuilder_.getMessageOrBuilderList(); } else { @@ -5266,71 +4532,45 @@ public Builder removeListFindingsResults(int index) { } } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder - addListFindingsResultsBuilder() { - return getListFindingsResultsFieldBuilder() - .addBuilder( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .getDefaultInstance()); + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder addListFindingsResultsBuilder() { + return getListFindingsResultsFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.getDefaultInstance()); } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder - addListFindingsResultsBuilder(int index) { - return getListFindingsResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult - .getDefaultInstance()); + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder addListFindingsResultsBuilder( + int index) { + return getListFindingsResultsFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.getDefaultInstance()); } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - public java.util.List< - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder> - getListFindingsResultsBuilderList() { + public java.util.List + getListFindingsResultsBuilderList() { return getListFindingsResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult, - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder, - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> getListFindingsResultsFieldBuilder() { if (listFindingsResultsBuilder_ == null) { - listFindingsResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult, - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder, - com.google.cloud.securitycenter.v1.ListFindingsResponse - .ListFindingsResultOrBuilder>( + listFindingsResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder>( listFindingsResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -5342,33 +4582,24 @@ public Builder removeListFindingsResults(int index) { private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -5379,8 +4610,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -5401,15 +4630,14 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -5420,8 +4648,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -5432,7 +4658,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -5444,8 +4670,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -5464,8 +4688,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -5473,13 +4695,11 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -5490,12 +4710,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -5503,17 +4722,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getReadTime(), getParentForChildren(), isClean()); + readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getReadTime(), + getParentForChildren(), + isClean()); readTime_ = null; } return readTimeBuilder_; @@ -5521,21 +4737,19 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -5544,22 +4758,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -5567,79 +4780,69 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of findings matching the query.
      * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -5647,43 +4850,37 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of findings matching the query.
      * 
* * int32 total_size = 4; - * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** - * - * *
      * The total number of findings matching the query.
      * 
* * int32 total_size = 4; - * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5693,12 +4890,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListFindingsResponse) private static final com.google.cloud.securitycenter.v1.ListFindingsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListFindingsResponse(); } @@ -5707,16 +4904,16 @@ public static com.google.cloud.securitycenter.v1.ListFindingsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5731,4 +4928,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.ListFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java similarity index 56% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java index 3d94c9be4..67352e92a 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java @@ -1,122 +1,75 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListFindingsResponseOrBuilder - extends +public interface ListFindingsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListFindingsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Findings matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - java.util.List + java.util.List getListFindingsResultsList(); /** - * - * *
    * Findings matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getListFindingsResults( - int index); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getListFindingsResults(int index); /** - * - * *
    * Findings matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ int getListFindingsResultsCount(); /** - * - * *
    * Findings matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - java.util.List< - ? extends - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> + java.util.List getListFindingsResultsOrBuilderList(); /** - * - * *
    * Findings matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder - getListFindingsResultsOrBuilder(int index); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder getListFindingsResultsOrBuilder( + int index); /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used for executing the list request.
    * 
@@ -126,41 +79,33 @@ com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getLi com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of findings matching the query.
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ int getTotalSize(); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequest.java similarity index 71% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequest.java index 29ddfd45f..6e38cdd12 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for listing  mute configs at a given scope e.g. organization,
  * folder or project.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.ListMuteConfigsRequest}
  */
-public final class ListMuteConfigsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListMuteConfigsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListMuteConfigsRequest)
     ListMuteConfigsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListMuteConfigsRequest.newBuilder() to construct.
   private ListMuteConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListMuteConfigsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -45,15 +27,16 @@ private ListMuteConfigsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListMuteConfigsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ListMuteConfigsRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,32 +55,30 @@ private ListMuteConfigsRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          case 16:
-            {
-              pageSize_ = input.readInt32();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            parent_ = s;
+            break;
+          }
+          case 16: {
 
-              pageToken_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            pageSize_ = input.readInt32();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            pageToken_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -105,43 +86,36 @@ private ListMuteConfigsRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1.SecuritycenterService
-        .internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.SecuritycenterService
-        .internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.class,
-            com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.Builder.class);
+            com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.class, com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Required. The parent, which owns the collection of mute configs. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -150,33 +124,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent, which owns the collection of mute configs. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -187,8 +159,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of configs to return. The service may return fewer than
    * this value.
@@ -197,7 +167,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -208,8 +177,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A page token, received from a previous `ListMuteConfigs` call.
    * Provide this to retrieve the subsequent page.
@@ -218,7 +185,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -227,15 +193,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous `ListMuteConfigs` call.
    * Provide this to retrieve the subsequent page.
@@ -244,15 +209,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -261,7 +227,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,7 +238,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -296,7 +262,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -309,17 +276,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListMuteConfigsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListMuteConfigsRequest other = - (com.google.cloud.securitycenter.v1.ListMuteConfigsRequest) obj; + com.google.cloud.securitycenter.v1.ListMuteConfigsRequest other = (com.google.cloud.securitycenter.v1.ListMuteConfigsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -343,104 +312,96 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.ListMuteConfigsRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListMuteConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for listing  mute configs at a given scope e.g. organization,
    * folder or project.
@@ -448,23 +409,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.ListMuteConfigsRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListMuteConfigsRequest)
       com.google.cloud.securitycenter.v1.ListMuteConfigsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.SecuritycenterService
-          .internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.SecuritycenterService
-          .internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.class,
-              com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.Builder.class);
+              com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.class, com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.newBuilder()
@@ -472,15 +431,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -494,9 +454,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.SecuritycenterService
-          .internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -515,8 +475,7 @@ public com.google.cloud.securitycenter.v1.ListMuteConfigsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.ListMuteConfigsRequest buildPartial() {
-      com.google.cloud.securitycenter.v1.ListMuteConfigsRequest result =
-          new com.google.cloud.securitycenter.v1.ListMuteConfigsRequest(this);
+      com.google.cloud.securitycenter.v1.ListMuteConfigsRequest result = new com.google.cloud.securitycenter.v1.ListMuteConfigsRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -528,39 +487,38 @@ public com.google.cloud.securitycenter.v1.ListMuteConfigsRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.ListMuteConfigsRequest) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.ListMuteConfigsRequest) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.ListMuteConfigsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -568,8 +526,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListMuteConfigsRequest other) {
-      if (other == com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -600,8 +557,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.securitycenter.v1.ListMuteConfigsRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.securitycenter.v1.ListMuteConfigsRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -613,24 +569,20 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent, which owns the collection of mute configs. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -639,25 +591,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns the collection of mute configs. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -665,82 +614,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns the collection of mute configs. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns the collection of mute configs. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns the collection of mute configs. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of configs to return. The service may return fewer than
      * this value.
@@ -749,7 +683,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -757,8 +690,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of configs to return. The service may return fewer than
      * this value.
@@ -767,19 +698,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of configs to return. The service may return fewer than
      * this value.
@@ -788,11 +716,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -800,8 +727,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListMuteConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -810,13 +735,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -825,8 +750,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListMuteConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -835,14 +758,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -850,8 +774,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListMuteConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -860,22 +782,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListMuteConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -884,18 +804,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListMuteConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -904,23 +821,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -930,12 +847,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListMuteConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListMuteConfigsRequest) private static final com.google.cloud.securitycenter.v1.ListMuteConfigsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListMuteConfigsRequest(); } @@ -944,16 +861,16 @@ public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMuteConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMuteConfigsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMuteConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMuteConfigsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -968,4 +885,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.ListMuteConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequestOrBuilder.java index 72889d2ce..eda1d8ed1 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListMuteConfigsRequestOrBuilder - extends +public interface ListMuteConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListMuteConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent, which owns the collection of mute configs. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent, which owns the collection of mute configs. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of configs to return. The service may return fewer than
    * this value.
@@ -67,14 +40,11 @@ public interface ListMuteConfigsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListMuteConfigs` call.
    * Provide this to retrieve the subsequent page.
@@ -83,13 +53,10 @@ public interface ListMuteConfigsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListMuteConfigs` call.
    * Provide this to retrieve the subsequent page.
@@ -98,8 +65,8 @@ public interface ListMuteConfigsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponse.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponse.java similarity index 74% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponse.java index 5af0783b3..352fc5cf6 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Response message for listing mute configs.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListMuteConfigsResponse} */ -public final class ListMuteConfigsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListMuteConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListMuteConfigsResponse) ListMuteConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListMuteConfigsResponse.newBuilder() to construct. private ListMuteConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListMuteConfigsResponse() { muteConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListMuteConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListMuteConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListMuteConfigsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private ListMuteConfigsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - muteConfigs_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - muteConfigs_.add( - input.readMessage( - com.google.cloud.securitycenter.v1.MuteConfig.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + muteConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + muteConfigs_.add( + input.readMessage(com.google.cloud.securitycenter.v1.MuteConfig.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private ListMuteConfigsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { muteConfigs_ = java.util.Collections.unmodifiableList(muteConfigs_); @@ -114,27 +94,22 @@ private ListMuteConfigsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.class, - com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.class, com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.Builder.class); } public static final int MUTE_CONFIGS_FIELD_NUMBER = 1; private java.util.List muteConfigs_; /** - * - * *
    * The mute configs from the specified parent.
    * 
@@ -146,8 +121,6 @@ public java.util.List getMuteConf return muteConfigs_; } /** - * - * *
    * The mute configs from the specified parent.
    * 
@@ -155,13 +128,11 @@ public java.util.List getMuteConf * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getMuteConfigsOrBuilderList() { return muteConfigs_; } /** - * - * *
    * The mute configs from the specified parent.
    * 
@@ -173,8 +144,6 @@ public int getMuteConfigsCount() { return muteConfigs_.size(); } /** - * - * *
    * The mute configs from the specified parent.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.securitycenter.v1.MuteConfig getMuteConfigs(int index) { return muteConfigs_.get(index); } /** - * - * *
    * The mute configs from the specified parent.
    * 
@@ -195,22 +162,20 @@ public com.google.cloud.securitycenter.v1.MuteConfig getMuteConfigs(int index) { * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigsOrBuilder(int index) { + public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigsOrBuilder( + int index) { return muteConfigs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -219,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -251,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < muteConfigs_.size(); i++) { output.writeMessage(1, muteConfigs_.get(i)); } @@ -280,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < muteConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, muteConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, muteConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -293,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListMuteConfigsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListMuteConfigsResponse other = - (com.google.cloud.securitycenter.v1.ListMuteConfigsResponse) obj; + com.google.cloud.securitycenter.v1.ListMuteConfigsResponse other = (com.google.cloud.securitycenter.v1.ListMuteConfigsResponse) obj; - if (!getMuteConfigsList().equals(other.getMuteConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getMuteConfigsList() + .equals(other.getMuteConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.ListMuteConfigsResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListMuteConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for listing mute configs.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListMuteConfigsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListMuteConfigsResponse) com.google.cloud.securitycenter.v1.ListMuteConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.class, - com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.class, com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.newBuilder() @@ -454,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getMuteConfigsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor; } @java.lang.Override @@ -501,8 +458,7 @@ public com.google.cloud.securitycenter.v1.ListMuteConfigsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1.ListMuteConfigsResponse buildPartial() { - com.google.cloud.securitycenter.v1.ListMuteConfigsResponse result = - new com.google.cloud.securitycenter.v1.ListMuteConfigsResponse(this); + com.google.cloud.securitycenter.v1.ListMuteConfigsResponse result = new com.google.cloud.securitycenter.v1.ListMuteConfigsResponse(this); int from_bitField0_ = bitField0_; if (muteConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -522,39 +478,38 @@ public com.google.cloud.securitycenter.v1.ListMuteConfigsResponse buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ListMuteConfigsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListMuteConfigsResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1.ListMuteConfigsResponse)other); } else { super.mergeFrom(other); return this; @@ -562,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListMuteConfigsResponse other) { - if (other == com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.getDefaultInstance()) return this; if (muteConfigsBuilder_ == null) { if (!other.muteConfigs_.isEmpty()) { if (muteConfigs_.isEmpty()) { @@ -582,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListMuteConfigsRespo muteConfigsBuilder_ = null; muteConfigs_ = other.muteConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - muteConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMuteConfigsFieldBuilder() - : null; + muteConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMuteConfigsFieldBuilder() : null; } else { muteConfigsBuilder_.addAllMessages(other.muteConfigs_); } @@ -614,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.ListMuteConfigsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.ListMuteConfigsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -624,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List muteConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMuteConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - muteConfigs_ = - new java.util.ArrayList(muteConfigs_); + muteConfigs_ = new java.util.ArrayList(muteConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.MuteConfig, - com.google.cloud.securitycenter.v1.MuteConfig.Builder, - com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> - muteConfigsBuilder_; + com.google.cloud.securitycenter.v1.MuteConfig, com.google.cloud.securitycenter.v1.MuteConfig.Builder, com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> muteConfigsBuilder_; /** - * - * *
      * The mute configs from the specified parent.
      * 
@@ -661,8 +605,6 @@ public java.util.List getMuteConf } } /** - * - * *
      * The mute configs from the specified parent.
      * 
@@ -677,8 +619,6 @@ public int getMuteConfigsCount() { } } /** - * - * *
      * The mute configs from the specified parent.
      * 
@@ -693,15 +633,14 @@ public com.google.cloud.securitycenter.v1.MuteConfig getMuteConfigs(int index) { } } /** - * - * *
      * The mute configs from the specified parent.
      * 
* * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ - public Builder setMuteConfigs(int index, com.google.cloud.securitycenter.v1.MuteConfig value) { + public Builder setMuteConfigs( + int index, com.google.cloud.securitycenter.v1.MuteConfig value) { if (muteConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -715,8 +654,6 @@ public Builder setMuteConfigs(int index, com.google.cloud.securitycenter.v1.Mute return this; } /** - * - * *
      * The mute configs from the specified parent.
      * 
@@ -735,8 +672,6 @@ public Builder setMuteConfigs( return this; } /** - * - * *
      * The mute configs from the specified parent.
      * 
@@ -757,15 +692,14 @@ public Builder addMuteConfigs(com.google.cloud.securitycenter.v1.MuteConfig valu return this; } /** - * - * *
      * The mute configs from the specified parent.
      * 
* * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ - public Builder addMuteConfigs(int index, com.google.cloud.securitycenter.v1.MuteConfig value) { + public Builder addMuteConfigs( + int index, com.google.cloud.securitycenter.v1.MuteConfig value) { if (muteConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -779,8 +713,6 @@ public Builder addMuteConfigs(int index, com.google.cloud.securitycenter.v1.Mute return this; } /** - * - * *
      * The mute configs from the specified parent.
      * 
@@ -799,8 +731,6 @@ public Builder addMuteConfigs( return this; } /** - * - * *
      * The mute configs from the specified parent.
      * 
@@ -819,8 +749,6 @@ public Builder addMuteConfigs( return this; } /** - * - * *
      * The mute configs from the specified parent.
      * 
@@ -831,7 +759,8 @@ public Builder addAllMuteConfigs( java.lang.Iterable values) { if (muteConfigsBuilder_ == null) { ensureMuteConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, muteConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, muteConfigs_); onChanged(); } else { muteConfigsBuilder_.addAllMessages(values); @@ -839,8 +768,6 @@ public Builder addAllMuteConfigs( return this; } /** - * - * *
      * The mute configs from the specified parent.
      * 
@@ -858,8 +785,6 @@ public Builder clearMuteConfigs() { return this; } /** - * - * *
      * The mute configs from the specified parent.
      * 
@@ -877,20 +802,17 @@ public Builder removeMuteConfigs(int index) { return this; } /** - * - * *
      * The mute configs from the specified parent.
      * 
* * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ - public com.google.cloud.securitycenter.v1.MuteConfig.Builder getMuteConfigsBuilder(int index) { + public com.google.cloud.securitycenter.v1.MuteConfig.Builder getMuteConfigsBuilder( + int index) { return getMuteConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The mute configs from the specified parent.
      * 
@@ -900,22 +822,19 @@ public com.google.cloud.securitycenter.v1.MuteConfig.Builder getMuteConfigsBuild public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigsOrBuilder( int index) { if (muteConfigsBuilder_ == null) { - return muteConfigs_.get(index); - } else { + return muteConfigs_.get(index); } else { return muteConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The mute configs from the specified parent.
      * 
* * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ - public java.util.List - getMuteConfigsOrBuilderList() { + public java.util.List + getMuteConfigsOrBuilderList() { if (muteConfigsBuilder_ != null) { return muteConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -923,8 +842,6 @@ public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigsOrBu } } /** - * - * *
      * The mute configs from the specified parent.
      * 
@@ -932,48 +849,42 @@ public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigsOrBu * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ public com.google.cloud.securitycenter.v1.MuteConfig.Builder addMuteConfigsBuilder() { - return getMuteConfigsFieldBuilder() - .addBuilder(com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance()); + return getMuteConfigsFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance()); } /** - * - * *
      * The mute configs from the specified parent.
      * 
* * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ - public com.google.cloud.securitycenter.v1.MuteConfig.Builder addMuteConfigsBuilder(int index) { - return getMuteConfigsFieldBuilder() - .addBuilder(index, com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.MuteConfig.Builder addMuteConfigsBuilder( + int index) { + return getMuteConfigsFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance()); } /** - * - * *
      * The mute configs from the specified parent.
      * 
* * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ - public java.util.List - getMuteConfigsBuilderList() { + public java.util.List + getMuteConfigsBuilderList() { return getMuteConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.MuteConfig, - com.google.cloud.securitycenter.v1.MuteConfig.Builder, - com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> + com.google.cloud.securitycenter.v1.MuteConfig, com.google.cloud.securitycenter.v1.MuteConfig.Builder, com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> getMuteConfigsFieldBuilder() { if (muteConfigsBuilder_ == null) { - muteConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.MuteConfig, - com.google.cloud.securitycenter.v1.MuteConfig.Builder, - com.google.cloud.securitycenter.v1.MuteConfigOrBuilder>( - muteConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + muteConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.MuteConfig, com.google.cloud.securitycenter.v1.MuteConfig.Builder, com.google.cloud.securitycenter.v1.MuteConfigOrBuilder>( + muteConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); muteConfigs_ = null; } return muteConfigsBuilder_; @@ -981,21 +892,19 @@ public com.google.cloud.securitycenter.v1.MuteConfig.Builder addMuteConfigsBuild private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1004,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1027,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1101,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListMuteConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListMuteConfigsResponse) private static final com.google.cloud.securitycenter.v1.ListMuteConfigsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListMuteConfigsResponse(); } @@ -1115,16 +1016,16 @@ public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMuteConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMuteConfigsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMuteConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMuteConfigsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1139,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.ListMuteConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponseOrBuilder.java index 7b089bdd4..de604d2e7 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListMuteConfigsResponseOrBuilder - extends +public interface ListMuteConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListMuteConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The mute configs from the specified parent.
    * 
* * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ - java.util.List getMuteConfigsList(); + java.util.List + getMuteConfigsList(); /** - * - * *
    * The mute configs from the specified parent.
    * 
@@ -44,8 +25,6 @@ public interface ListMuteConfigsResponseOrBuilder */ com.google.cloud.securitycenter.v1.MuteConfig getMuteConfigs(int index); /** - * - * *
    * The mute configs from the specified parent.
    * 
@@ -54,51 +33,43 @@ public interface ListMuteConfigsResponseOrBuilder */ int getMuteConfigsCount(); /** - * - * *
    * The mute configs from the specified parent.
    * 
* * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ - java.util.List + java.util.List getMuteConfigsOrBuilderList(); /** - * - * *
    * The mute configs from the specified parent.
    * 
* * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ - com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigsOrBuilder(int index); + com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigsOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java similarity index 67% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java index b7c919471..cfeb758ce 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for listing notification configs.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListNotificationConfigsRequest} */ -public final class ListNotificationConfigsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNotificationConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListNotificationConfigsRequest) ListNotificationConfigsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNotificationConfigsRequest.newBuilder() to construct. - private ListNotificationConfigsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListNotificationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNotificationConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +26,16 @@ private ListNotificationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNotificationConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListNotificationConfigsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +54,30 @@ private ListNotificationConfigsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,42 +85,35 @@ private ListNotificationConfigsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.class, - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.Builder.class); + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.class, com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the organization to list notification configs.
    * Its format is "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -149,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Name of the organization to list notification configs.
    * Its format is "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -185,8 +156,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListNotificationConfigsResponse`; indicates
    * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -194,7 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -203,15 +171,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListNotificationConfigsResponse`; indicates
    * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -219,15 +186,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -238,15 +206,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -255,7 +220,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +231,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -293,7 +258,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -303,17 +269,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest other = - (com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest) obj; + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest other = (com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,145 +305,134 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for listing notification configs.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListNotificationConfigsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListNotificationConfigsRequest) com.google.cloud.securitycenter.v1.ListNotificationConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.class, - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.Builder.class); + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.class, com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.newBuilder() + // Construct using com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -489,14 +446,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.getDefaultInstance(); } @@ -511,8 +467,7 @@ public com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest build() @java.lang.Override public com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest buildPartial() { - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest result = - new com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest(this); + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest result = new com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -524,50 +479,46 @@ public com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest other) { - if (other - == com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest other) { + if (other == com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -598,9 +549,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -612,23 +561,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the organization to list notification configs.
      * Its format is "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -637,24 +582,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the organization to list notification configs.
      * Its format is "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -662,70 +604,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the organization to list notification configs.
      * Its format is "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to list notification configs.
      * Its format is "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to list notification configs.
      * Its format is "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -733,8 +662,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListNotificationConfigsResponse`; indicates
      * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -742,13 +669,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -757,8 +684,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListNotificationConfigsResponse`; indicates
      * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -766,14 +691,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -781,8 +707,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListNotificationConfigsResponse`; indicates
      * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -790,22 +714,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListNotificationConfigsResponse`; indicates
      * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -813,18 +735,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListNotificationConfigsResponse`; indicates
      * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -832,32 +751,29 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -865,45 +781,39 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -913,32 +823,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListNotificationConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListNotificationConfigsRequest) - private static final com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest(); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNotificationConfigsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNotificationConfigsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,8 +858,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequestOrBuilder.java index a0ad2184c..8d783d92e 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListNotificationConfigsRequestOrBuilder - extends +public interface ListNotificationConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListNotificationConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the organization to list notification configs.
    * Its format is "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Name of the organization to list notification configs.
    * Its format is "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The value returned by the last `ListNotificationConfigsResponse`; indicates
    * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -64,13 +37,10 @@ public interface ListNotificationConfigsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListNotificationConfigsResponse`; indicates
    * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -78,21 +48,18 @@ public interface ListNotificationConfigsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java similarity index 69% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java index 3e639c67b..04441054e 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Response message for listing notification configs.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListNotificationConfigsResponse} */ -public final class ListNotificationConfigsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNotificationConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListNotificationConfigsResponse) ListNotificationConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNotificationConfigsResponse.newBuilder() to construct. - private ListNotificationConfigsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListNotificationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNotificationConfigsResponse() { notificationConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +26,16 @@ private ListNotificationConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNotificationConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListNotificationConfigsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,34 +55,28 @@ private ListNotificationConfigsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - notificationConfigs_ = - new java.util.ArrayList< - com.google.cloud.securitycenter.v1.NotificationConfig>(); - mutable_bitField0_ |= 0x00000001; - } - notificationConfigs_.add( - input.readMessage( - com.google.cloud.securitycenter.v1.NotificationConfig.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + notificationConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + notificationConfigs_.add( + input.readMessage(com.google.cloud.securitycenter.v1.NotificationConfig.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,7 +84,8 @@ private ListNotificationConfigsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { notificationConfigs_ = java.util.Collections.unmodifiableList(notificationConfigs_); @@ -117,111 +94,88 @@ private ListNotificationConfigsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.class, - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.class, com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.Builder.class); } public static final int NOTIFICATION_CONFIGS_FIELD_NUMBER = 1; - private java.util.List - notificationConfigs_; + private java.util.List notificationConfigs_; /** - * - * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ @java.lang.Override - public java.util.List - getNotificationConfigsList() { + public java.util.List getNotificationConfigsList() { return notificationConfigs_; } /** - * - * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNotificationConfigsOrBuilderList() { return notificationConfigs_; } /** - * - * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ @java.lang.Override public int getNotificationConfigsCount() { return notificationConfigs_.size(); } /** - * - * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ @java.lang.Override public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfigs(int index) { return notificationConfigs_.get(index); } /** - * - * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder - getNotificationConfigsOrBuilder(int index) { + public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotificationConfigsOrBuilder( + int index) { return notificationConfigs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -230,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -262,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < notificationConfigs_.size(); i++) { output.writeMessage(1, notificationConfigs_.get(i)); } @@ -291,8 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < notificationConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, notificationConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, notificationConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -305,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse other = - (com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse) obj; + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse other = (com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse) obj; - if (!getNotificationConfigsList().equals(other.getNotificationConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getNotificationConfigsList() + .equals(other.getNotificationConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,147 +293,135 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for listing notification configs.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListNotificationConfigsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListNotificationConfigsResponse) com.google.cloud.securitycenter.v1.ListNotificationConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.class, - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.class, com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.newBuilder() + // Construct using com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getNotificationConfigsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -494,16 +437,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.getDefaultInstance(); } @java.lang.Override @@ -517,8 +458,7 @@ public com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse build( @java.lang.Override public com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse buildPartial() { - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse result = - new com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse(this); + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse result = new com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse(this); int from_bitField0_ = bitField0_; if (notificationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -538,51 +478,46 @@ public com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse) { - return mergeFrom( - (com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse other) { - if (other - == com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse other) { + if (other == com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.getDefaultInstance()) return this; if (notificationConfigsBuilder_ == null) { if (!other.notificationConfigs_.isEmpty()) { if (notificationConfigs_.isEmpty()) { @@ -601,10 +536,9 @@ public Builder mergeFrom( notificationConfigsBuilder_ = null; notificationConfigs_ = other.notificationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - notificationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNotificationConfigsFieldBuilder() - : null; + notificationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNotificationConfigsFieldBuilder() : null; } else { notificationConfigsBuilder_.addAllMessages(other.notificationConfigs_); } @@ -633,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -644,39 +576,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - notificationConfigs_ = java.util.Collections.emptyList(); - + private java.util.List notificationConfigs_ = + java.util.Collections.emptyList(); private void ensureNotificationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - notificationConfigs_ = - new java.util.ArrayList( - notificationConfigs_); + notificationConfigs_ = new java.util.ArrayList(notificationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig, - com.google.cloud.securitycenter.v1.NotificationConfig.Builder, - com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> - notificationConfigsBuilder_; + com.google.cloud.securitycenter.v1.NotificationConfig, com.google.cloud.securitycenter.v1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> notificationConfigsBuilder_; /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ - public java.util.List - getNotificationConfigsList() { + public java.util.List getNotificationConfigsList() { if (notificationConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(notificationConfigs_); } else { @@ -684,14 +605,11 @@ private void ensureNotificationConfigsIsMutable() { } } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ public int getNotificationConfigsCount() { if (notificationConfigsBuilder_ == null) { @@ -701,14 +619,11 @@ public int getNotificationConfigsCount() { } } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfigs(int index) { if (notificationConfigsBuilder_ == null) { @@ -718,14 +633,11 @@ public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConf } } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ public Builder setNotificationConfigs( int index, com.google.cloud.securitycenter.v1.NotificationConfig value) { @@ -742,14 +654,11 @@ public Builder setNotificationConfigs( return this; } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ public Builder setNotificationConfigs( int index, com.google.cloud.securitycenter.v1.NotificationConfig.Builder builderForValue) { @@ -763,17 +672,13 @@ public Builder setNotificationConfigs( return this; } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ - public Builder addNotificationConfigs( - com.google.cloud.securitycenter.v1.NotificationConfig value) { + public Builder addNotificationConfigs(com.google.cloud.securitycenter.v1.NotificationConfig value) { if (notificationConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -787,14 +692,11 @@ public Builder addNotificationConfigs( return this; } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ public Builder addNotificationConfigs( int index, com.google.cloud.securitycenter.v1.NotificationConfig value) { @@ -811,14 +713,11 @@ public Builder addNotificationConfigs( return this; } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ public Builder addNotificationConfigs( com.google.cloud.securitycenter.v1.NotificationConfig.Builder builderForValue) { @@ -832,14 +731,11 @@ public Builder addNotificationConfigs( return this; } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ public Builder addNotificationConfigs( int index, com.google.cloud.securitycenter.v1.NotificationConfig.Builder builderForValue) { @@ -853,21 +749,18 @@ public Builder addNotificationConfigs( return this; } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ public Builder addAllNotificationConfigs( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (notificationConfigsBuilder_ == null) { ensureNotificationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notificationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notificationConfigs_); onChanged(); } else { notificationConfigsBuilder_.addAllMessages(values); @@ -875,14 +768,11 @@ public Builder addAllNotificationConfigs( return this; } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ public Builder clearNotificationConfigs() { if (notificationConfigsBuilder_ == null) { @@ -895,14 +785,11 @@ public Builder clearNotificationConfigs() { return this; } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ public Builder removeNotificationConfigs(int index) { if (notificationConfigsBuilder_ == null) { @@ -915,49 +802,39 @@ public Builder removeNotificationConfigs(int index) { return this; } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ - public com.google.cloud.securitycenter.v1.NotificationConfig.Builder - getNotificationConfigsBuilder(int index) { + public com.google.cloud.securitycenter.v1.NotificationConfig.Builder getNotificationConfigsBuilder( + int index) { return getNotificationConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ - public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder - getNotificationConfigsOrBuilder(int index) { + public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotificationConfigsOrBuilder( + int index) { if (notificationConfigsBuilder_ == null) { - return notificationConfigs_.get(index); - } else { + return notificationConfigs_.get(index); } else { return notificationConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ - public java.util.List - getNotificationConfigsOrBuilderList() { + public java.util.List + getNotificationConfigsOrBuilderList() { if (notificationConfigsBuilder_ != null) { return notificationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -965,62 +842,45 @@ public Builder removeNotificationConfigs(int index) { } } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ - public com.google.cloud.securitycenter.v1.NotificationConfig.Builder - addNotificationConfigsBuilder() { - return getNotificationConfigsFieldBuilder() - .addBuilder(com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.NotificationConfig.Builder addNotificationConfigsBuilder() { + return getNotificationConfigsFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance()); } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ - public com.google.cloud.securitycenter.v1.NotificationConfig.Builder - addNotificationConfigsBuilder(int index) { - return getNotificationConfigsFieldBuilder() - .addBuilder( - index, com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.NotificationConfig.Builder addNotificationConfigsBuilder( + int index) { + return getNotificationConfigsFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance()); } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ - public java.util.List - getNotificationConfigsBuilderList() { + public java.util.List + getNotificationConfigsBuilderList() { return getNotificationConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig, - com.google.cloud.securitycenter.v1.NotificationConfig.Builder, - com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> + com.google.cloud.securitycenter.v1.NotificationConfig, com.google.cloud.securitycenter.v1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> getNotificationConfigsFieldBuilder() { if (notificationConfigsBuilder_ == null) { - notificationConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig, - com.google.cloud.securitycenter.v1.NotificationConfig.Builder, - com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder>( + notificationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.NotificationConfig, com.google.cloud.securitycenter.v1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder>( notificationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1032,21 +892,19 @@ public Builder removeNotificationConfigs(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1055,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1078,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1152,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListNotificationConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListNotificationConfigsResponse) - private static final com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse(); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNotificationConfigsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNotificationConfigsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1189,8 +1037,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponseOrBuilder.java index 81c7ef45c..df40a0853 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponseOrBuilder.java @@ -1,111 +1,75 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListNotificationConfigsResponseOrBuilder - extends +public interface ListNotificationConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListNotificationConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ - java.util.List + java.util.List getNotificationConfigsList(); /** - * - * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfigs(int index); /** - * - * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ int getNotificationConfigsCount(); /** - * - * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ - java.util.List + java.util.List getNotificationConfigsOrBuilderList(); /** - * - * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; */ com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotificationConfigsOrBuilder( int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java similarity index 70% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java index a0d989c16..05d176dec 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for listing sources.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListSourcesRequest} */ -public final class ListSourcesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSourcesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListSourcesRequest) ListSourcesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSourcesRequest.newBuilder() to construct. private ListSourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSourcesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListSourcesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSourcesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSourcesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListSourcesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 56: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 56: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,43 +85,36 @@ private ListSourcesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListSourcesRequest.class, - com.google.cloud.securitycenter.v1.ListSourcesRequest.Builder.class); + com.google.cloud.securitycenter.v1.ListSourcesRequest.class, com.google.cloud.securitycenter.v1.ListSourcesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -149,33 +123,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -186,8 +158,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -195,7 +165,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -204,15 +173,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -220,15 +188,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -239,15 +208,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 7; private int pageSize_; /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 7; - * * @return The pageSize. */ @java.lang.Override @@ -256,7 +222,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +233,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -294,7 +260,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -304,17 +271,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListSourcesRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListSourcesRequest other = - (com.google.cloud.securitycenter.v1.ListSourcesRequest) obj; + com.google.cloud.securitycenter.v1.ListSourcesRequest other = (com.google.cloud.securitycenter.v1.ListSourcesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,127 +307,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.ListSourcesRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListSourcesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for listing sources.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListSourcesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListSourcesRequest) com.google.cloud.securitycenter.v1.ListSourcesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListSourcesRequest.class, - com.google.cloud.securitycenter.v1.ListSourcesRequest.Builder.class); + com.google.cloud.securitycenter.v1.ListSourcesRequest.class, com.google.cloud.securitycenter.v1.ListSourcesRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ListSourcesRequest.newBuilder() @@ -466,15 +425,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -488,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; } @java.lang.Override @@ -509,8 +469,7 @@ public com.google.cloud.securitycenter.v1.ListSourcesRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.ListSourcesRequest buildPartial() { - com.google.cloud.securitycenter.v1.ListSourcesRequest result = - new com.google.cloud.securitycenter.v1.ListSourcesRequest(this); + com.google.cloud.securitycenter.v1.ListSourcesRequest result = new com.google.cloud.securitycenter.v1.ListSourcesRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -522,39 +481,38 @@ public com.google.cloud.securitycenter.v1.ListSourcesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ListSourcesRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListSourcesRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.ListSourcesRequest)other); } else { super.mergeFrom(other); return this; @@ -562,8 +520,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListSourcesRequest other) { - if (other == com.google.cloud.securitycenter.v1.ListSourcesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.ListSourcesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -594,8 +551,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.ListSourcesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.ListSourcesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -607,24 +563,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -633,25 +585,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -659,73 +608,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -733,8 +669,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -742,13 +676,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -757,8 +691,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -766,14 +698,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -781,8 +714,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -790,22 +721,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -813,18 +742,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -832,32 +758,29 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; - * * @return The pageSize. */ @java.lang.Override @@ -865,45 +788,39 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -913,12 +830,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListSourcesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListSourcesRequest) private static final com.google.cloud.securitycenter.v1.ListSourcesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListSourcesRequest(); } @@ -927,16 +844,16 @@ public static com.google.cloud.securitycenter.v1.ListSourcesRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSourcesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSourcesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSourcesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSourcesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -951,4 +868,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.ListSourcesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java index 431d95dde..287dec78e 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListSourcesRequestOrBuilder - extends +public interface ListSourcesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListSourcesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -66,13 +39,10 @@ public interface ListSourcesRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -80,21 +50,18 @@ public interface ListSourcesRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 7; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java similarity index 74% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java index 38347e5d3..e1fea3d04 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Response message for listing sources.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListSourcesResponse} */ -public final class ListSourcesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSourcesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListSourcesResponse) ListSourcesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSourcesResponse.newBuilder() to construct. private ListSourcesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSourcesResponse() { sources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListSourcesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSourcesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSourcesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,31 +55,28 @@ private ListSourcesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - sources_.add( - input.readMessage( - com.google.cloud.securitycenter.v1.Source.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + sources_.add( + input.readMessage(com.google.cloud.securitycenter.v1.Source.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,7 +84,8 @@ private ListSourcesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { sources_ = java.util.Collections.unmodifiableList(sources_); @@ -113,27 +94,22 @@ private ListSourcesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListSourcesResponse.class, - com.google.cloud.securitycenter.v1.ListSourcesResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListSourcesResponse.class, com.google.cloud.securitycenter.v1.ListSourcesResponse.Builder.class); } public static final int SOURCES_FIELD_NUMBER = 1; private java.util.List sources_; /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -145,8 +121,6 @@ public java.util.List getSourcesList( return sources_; } /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -154,13 +128,11 @@ public java.util.List getSourcesList( * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSourcesOrBuilderList() { return sources_; } /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -172,8 +144,6 @@ public int getSourcesCount() { return sources_.size(); } /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -185,8 +155,6 @@ public com.google.cloud.securitycenter.v1.Source getSources(int index) { return sources_.get(index); } /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -194,22 +162,20 @@ public com.google.cloud.securitycenter.v1.Source getSources(int index) { * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder(int index) { + public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder( + int index) { return sources_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -218,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -250,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < sources_.size(); i++) { output.writeMessage(1, sources_.get(i)); } @@ -279,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < sources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, sources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -292,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListSourcesResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListSourcesResponse other = - (com.google.cloud.securitycenter.v1.ListSourcesResponse) obj; + com.google.cloud.securitycenter.v1.ListSourcesResponse other = (com.google.cloud.securitycenter.v1.ListSourcesResponse) obj; - if (!getSourcesList().equals(other.getSourcesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getSourcesList() + .equals(other.getSourcesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -325,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.ListSourcesResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListSourcesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for listing sources.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListSourcesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListSourcesResponse) com.google.cloud.securitycenter.v1.ListSourcesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListSourcesResponse.class, - com.google.cloud.securitycenter.v1.ListSourcesResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListSourcesResponse.class, com.google.cloud.securitycenter.v1.ListSourcesResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ListSourcesResponse.newBuilder() @@ -453,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getSourcesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -479,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor; } @java.lang.Override @@ -500,8 +458,7 @@ public com.google.cloud.securitycenter.v1.ListSourcesResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1.ListSourcesResponse buildPartial() { - com.google.cloud.securitycenter.v1.ListSourcesResponse result = - new com.google.cloud.securitycenter.v1.ListSourcesResponse(this); + com.google.cloud.securitycenter.v1.ListSourcesResponse result = new com.google.cloud.securitycenter.v1.ListSourcesResponse(this); int from_bitField0_ = bitField0_; if (sourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -521,39 +478,38 @@ public com.google.cloud.securitycenter.v1.ListSourcesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ListSourcesResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListSourcesResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1.ListSourcesResponse)other); } else { super.mergeFrom(other); return this; @@ -561,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListSourcesResponse other) { - if (other == com.google.cloud.securitycenter.v1.ListSourcesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.ListSourcesResponse.getDefaultInstance()) return this; if (sourcesBuilder_ == null) { if (!other.sources_.isEmpty()) { if (sources_.isEmpty()) { @@ -581,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListSourcesResponse sourcesBuilder_ = null; sources_ = other.sources_; bitField0_ = (bitField0_ & ~0x00000001); - sourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSourcesFieldBuilder() - : null; + sourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSourcesFieldBuilder() : null; } else { sourcesBuilder_.addAllMessages(other.sources_); } @@ -613,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.ListSourcesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.ListSourcesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -623,28 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List sources_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { sources_ = new java.util.ArrayList(sources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Source, - com.google.cloud.securitycenter.v1.Source.Builder, - com.google.cloud.securitycenter.v1.SourceOrBuilder> - sourcesBuilder_; + com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, com.google.cloud.securitycenter.v1.SourceOrBuilder> sourcesBuilder_; /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -659,8 +605,6 @@ public java.util.List getSourcesList( } } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -675,8 +619,6 @@ public int getSourcesCount() { } } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -691,15 +633,14 @@ public com.google.cloud.securitycenter.v1.Source getSources(int index) { } } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - public Builder setSources(int index, com.google.cloud.securitycenter.v1.Source value) { + public Builder setSources( + int index, com.google.cloud.securitycenter.v1.Source value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,8 +654,6 @@ public Builder setSources(int index, com.google.cloud.securitycenter.v1.Source v return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -733,8 +672,6 @@ public Builder setSources( return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -755,15 +692,14 @@ public Builder addSources(com.google.cloud.securitycenter.v1.Source value) { return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - public Builder addSources(int index, com.google.cloud.securitycenter.v1.Source value) { + public Builder addSources( + int index, com.google.cloud.securitycenter.v1.Source value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -777,15 +713,14 @@ public Builder addSources(int index, com.google.cloud.securitycenter.v1.Source v return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - public Builder addSources(com.google.cloud.securitycenter.v1.Source.Builder builderForValue) { + public Builder addSources( + com.google.cloud.securitycenter.v1.Source.Builder builderForValue) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.add(builderForValue.build()); @@ -796,8 +731,6 @@ public Builder addSources(com.google.cloud.securitycenter.v1.Source.Builder buil return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -816,8 +749,6 @@ public Builder addSources( return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -828,7 +759,8 @@ public Builder addAllSources( java.lang.Iterable values) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sources_); onChanged(); } else { sourcesBuilder_.addAllMessages(values); @@ -836,8 +768,6 @@ public Builder addAllSources( return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -855,8 +785,6 @@ public Builder clearSources() { return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -874,44 +802,39 @@ public Builder removeSources(int index) { return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - public com.google.cloud.securitycenter.v1.Source.Builder getSourcesBuilder(int index) { + public com.google.cloud.securitycenter.v1.Source.Builder getSourcesBuilder( + int index) { return getSourcesFieldBuilder().getBuilder(index); } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder(int index) { + public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder( + int index) { if (sourcesBuilder_ == null) { - return sources_.get(index); - } else { + return sources_.get(index); } else { return sourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - public java.util.List - getSourcesOrBuilderList() { + public java.util.List + getSourcesOrBuilderList() { if (sourcesBuilder_ != null) { return sourcesBuilder_.getMessageOrBuilderList(); } else { @@ -919,8 +842,6 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder(in } } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -928,48 +849,42 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder(in * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ public com.google.cloud.securitycenter.v1.Source.Builder addSourcesBuilder() { - return getSourcesFieldBuilder() - .addBuilder(com.google.cloud.securitycenter.v1.Source.getDefaultInstance()); + return getSourcesFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1.Source.getDefaultInstance()); } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - public com.google.cloud.securitycenter.v1.Source.Builder addSourcesBuilder(int index) { - return getSourcesFieldBuilder() - .addBuilder(index, com.google.cloud.securitycenter.v1.Source.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.Source.Builder addSourcesBuilder( + int index) { + return getSourcesFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1.Source.getDefaultInstance()); } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - public java.util.List - getSourcesBuilderList() { + public java.util.List + getSourcesBuilderList() { return getSourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Source, - com.google.cloud.securitycenter.v1.Source.Builder, - com.google.cloud.securitycenter.v1.SourceOrBuilder> + com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, com.google.cloud.securitycenter.v1.SourceOrBuilder> getSourcesFieldBuilder() { if (sourcesBuilder_ == null) { - sourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Source, - com.google.cloud.securitycenter.v1.Source.Builder, - com.google.cloud.securitycenter.v1.SourceOrBuilder>( - sources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + sourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, com.google.cloud.securitycenter.v1.SourceOrBuilder>( + sources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); sources_ = null; } return sourcesBuilder_; @@ -977,21 +892,19 @@ public com.google.cloud.securitycenter.v1.Source.Builder addSourcesBuilder(int i private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1000,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1023,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1097,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListSourcesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListSourcesResponse) private static final com.google.cloud.securitycenter.v1.ListSourcesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListSourcesResponse(); } @@ -1111,16 +1016,16 @@ public static com.google.cloud.securitycenter.v1.ListSourcesResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSourcesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSourcesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSourcesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1135,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.ListSourcesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java index 017d14e62..2f742618f 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListSourcesResponseOrBuilder - extends +public interface ListSourcesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListSourcesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Sources belonging to the requested parent.
    * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - java.util.List getSourcesList(); + java.util.List + getSourcesList(); /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -44,8 +25,6 @@ public interface ListSourcesResponseOrBuilder */ com.google.cloud.securitycenter.v1.Source getSources(int index); /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -54,51 +33,43 @@ public interface ListSourcesResponseOrBuilder */ int getSourcesCount(); /** - * - * *
    * Sources belonging to the requested parent.
    * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - java.util.List + java.util.List getSourcesOrBuilderList(); /** - * - * *
    * Sources belonging to the requested parent.
    * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder(int index); + com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttack.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttack.java similarity index 75% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttack.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttack.java index 8078bc17e..a3e4df10f 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttack.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttack.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/mitre_attack.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * MITRE ATT&CK tactics and techniques related to this finding.
  * See: https://attack.mitre.org
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.MitreAttack}
  */
-public final class MitreAttack extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MitreAttack extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.MitreAttack)
     MitreAttackOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MitreAttack.newBuilder() to construct.
   private MitreAttack(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private MitreAttack() {
     primaryTactic_ = 0;
     primaryTechniques_ = java.util.Collections.emptyList();
@@ -48,15 +30,16 @@ private MitreAttack() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MitreAttack();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private MitreAttack(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,102 +59,94 @@ private MitreAttack(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              primaryTactic_ = rawValue;
-              break;
+            primaryTactic_ = rawValue;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              primaryTechniques_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 16:
-            {
+            primaryTechniques_.add(rawValue);
+            break;
+          }
+          case 18: {
+            int length = input.readRawVarint32();
+            int oldLimit = input.pushLimit(length);
+            while(input.getBytesUntilLimit() > 0) {
               int rawValue = input.readEnum();
               if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                 primaryTechniques_ = new java.util.ArrayList();
                 mutable_bitField0_ |= 0x00000001;
               }
               primaryTechniques_.add(rawValue);
-              break;
             }
-          case 18:
-            {
-              int length = input.readRawVarint32();
-              int oldLimit = input.pushLimit(length);
-              while (input.getBytesUntilLimit() > 0) {
-                int rawValue = input.readEnum();
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  primaryTechniques_ = new java.util.ArrayList();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                primaryTechniques_.add(rawValue);
-              }
-              input.popLimit(oldLimit);
-              break;
+            input.popLimit(oldLimit);
+            break;
+          }
+          case 24: {
+            int rawValue = input.readEnum();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              additionalTactics_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 24:
-            {
+            additionalTactics_.add(rawValue);
+            break;
+          }
+          case 26: {
+            int length = input.readRawVarint32();
+            int oldLimit = input.pushLimit(length);
+            while(input.getBytesUntilLimit() > 0) {
               int rawValue = input.readEnum();
               if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                 additionalTactics_ = new java.util.ArrayList();
                 mutable_bitField0_ |= 0x00000002;
               }
               additionalTactics_.add(rawValue);
-              break;
             }
-          case 26:
-            {
-              int length = input.readRawVarint32();
-              int oldLimit = input.pushLimit(length);
-              while (input.getBytesUntilLimit() > 0) {
-                int rawValue = input.readEnum();
-                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                  additionalTactics_ = new java.util.ArrayList();
-                  mutable_bitField0_ |= 0x00000002;
-                }
-                additionalTactics_.add(rawValue);
-              }
-              input.popLimit(oldLimit);
-              break;
+            input.popLimit(oldLimit);
+            break;
+          }
+          case 32: {
+            int rawValue = input.readEnum();
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              additionalTechniques_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000004;
             }
-          case 32:
-            {
+            additionalTechniques_.add(rawValue);
+            break;
+          }
+          case 34: {
+            int length = input.readRawVarint32();
+            int oldLimit = input.pushLimit(length);
+            while(input.getBytesUntilLimit() > 0) {
               int rawValue = input.readEnum();
               if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                 additionalTechniques_ = new java.util.ArrayList();
                 mutable_bitField0_ |= 0x00000004;
               }
               additionalTechniques_.add(rawValue);
-              break;
-            }
-          case 34:
-            {
-              int length = input.readRawVarint32();
-              int oldLimit = input.pushLimit(length);
-              while (input.getBytesUntilLimit() > 0) {
-                int rawValue = input.readEnum();
-                if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                  additionalTechniques_ = new java.util.ArrayList();
-                  mutable_bitField0_ |= 0x00000004;
-                }
-                additionalTechniques_.add(rawValue);
-              }
-              input.popLimit(oldLimit);
-              break;
             }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            input.popLimit(oldLimit);
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              version_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            version_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -179,7 +154,8 @@ private MitreAttack(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         primaryTechniques_ = java.util.Collections.unmodifiableList(primaryTechniques_);
@@ -194,25 +170,20 @@ private MitreAttack(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1.MitreAttackProto
-        .internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1.MitreAttackProto.internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.MitreAttackProto
-        .internal_static_google_cloud_securitycenter_v1_MitreAttack_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.MitreAttackProto.internal_static_google_cloud_securitycenter_v1_MitreAttack_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.MitreAttack.class,
-            com.google.cloud.securitycenter.v1.MitreAttack.Builder.class);
+            com.google.cloud.securitycenter.v1.MitreAttack.class, com.google.cloud.securitycenter.v1.MitreAttack.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * MITRE ATT&CK tactics that can be referenced by SCC findings.
    * See: https://attack.mitre.org/tactics/enterprise/
@@ -220,10 +191,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.securitycenter.v1.MitreAttack.Tactic}
    */
-  public enum Tactic implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Tactic
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Unspecified value.
      * 
@@ -232,8 +202,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ TACTIC_UNSPECIFIED(0), /** - * - * *
      * TA0043
      * 
@@ -242,8 +210,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ RECONNAISSANCE(1), /** - * - * *
      * TA0042
      * 
@@ -252,8 +218,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ RESOURCE_DEVELOPMENT(2), /** - * - * *
      * TA0001
      * 
@@ -262,8 +226,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ INITIAL_ACCESS(5), /** - * - * *
      * TA0002
      * 
@@ -272,8 +234,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ EXECUTION(3), /** - * - * *
      * TA0003
      * 
@@ -282,8 +242,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ PERSISTENCE(6), /** - * - * *
      * TA0004
      * 
@@ -292,8 +250,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ PRIVILEGE_ESCALATION(8), /** - * - * *
      * TA0005
      * 
@@ -302,8 +258,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ DEFENSE_EVASION(7), /** - * - * *
      * TA0006
      * 
@@ -312,8 +266,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ CREDENTIAL_ACCESS(9), /** - * - * *
      * TA0007
      * 
@@ -322,8 +274,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ DISCOVERY(10), /** - * - * *
      * TA0008
      * 
@@ -332,8 +282,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ LATERAL_MOVEMENT(11), /** - * - * *
      * TA0009
      * 
@@ -342,8 +290,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ COLLECTION(12), /** - * - * *
      * TA0011
      * 
@@ -352,8 +298,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ COMMAND_AND_CONTROL(4), /** - * - * *
      * TA0010
      * 
@@ -362,8 +306,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ EXFILTRATION(13), /** - * - * *
      * TA0040
      * 
@@ -375,8 +317,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified value.
      * 
@@ -385,8 +325,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TACTIC_UNSPECIFIED_VALUE = 0; /** - * - * *
      * TA0043
      * 
@@ -395,8 +333,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RECONNAISSANCE_VALUE = 1; /** - * - * *
      * TA0042
      * 
@@ -405,8 +341,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESOURCE_DEVELOPMENT_VALUE = 2; /** - * - * *
      * TA0001
      * 
@@ -415,8 +349,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INITIAL_ACCESS_VALUE = 5; /** - * - * *
      * TA0002
      * 
@@ -425,8 +357,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EXECUTION_VALUE = 3; /** - * - * *
      * TA0003
      * 
@@ -435,8 +365,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PERSISTENCE_VALUE = 6; /** - * - * *
      * TA0004
      * 
@@ -445,8 +373,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PRIVILEGE_ESCALATION_VALUE = 8; /** - * - * *
      * TA0005
      * 
@@ -455,8 +381,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEFENSE_EVASION_VALUE = 7; /** - * - * *
      * TA0006
      * 
@@ -465,8 +389,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREDENTIAL_ACCESS_VALUE = 9; /** - * - * *
      * TA0007
      * 
@@ -475,8 +397,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DISCOVERY_VALUE = 10; /** - * - * *
      * TA0008
      * 
@@ -485,8 +405,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LATERAL_MOVEMENT_VALUE = 11; /** - * - * *
      * TA0009
      * 
@@ -495,8 +413,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COLLECTION_VALUE = 12; /** - * - * *
      * TA0011
      * 
@@ -505,8 +421,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMMAND_AND_CONTROL_VALUE = 4; /** - * - * *
      * TA0010
      * 
@@ -515,8 +429,6 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EXFILTRATION_VALUE = 13; /** - * - * *
      * TA0040
      * 
@@ -525,6 +437,7 @@ public enum Tactic implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMPACT_VALUE = 14; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -549,73 +462,61 @@ public static Tactic valueOf(int value) { */ public static Tactic forNumber(int value) { switch (value) { - case 0: - return TACTIC_UNSPECIFIED; - case 1: - return RECONNAISSANCE; - case 2: - return RESOURCE_DEVELOPMENT; - case 5: - return INITIAL_ACCESS; - case 3: - return EXECUTION; - case 6: - return PERSISTENCE; - case 8: - return PRIVILEGE_ESCALATION; - case 7: - return DEFENSE_EVASION; - case 9: - return CREDENTIAL_ACCESS; - case 10: - return DISCOVERY; - case 11: - return LATERAL_MOVEMENT; - case 12: - return COLLECTION; - case 4: - return COMMAND_AND_CONTROL; - case 13: - return EXFILTRATION; - case 14: - return IMPACT; - default: - return null; + case 0: return TACTIC_UNSPECIFIED; + case 1: return RECONNAISSANCE; + case 2: return RESOURCE_DEVELOPMENT; + case 5: return INITIAL_ACCESS; + case 3: return EXECUTION; + case 6: return PERSISTENCE; + case 8: return PRIVILEGE_ESCALATION; + case 7: return DEFENSE_EVASION; + case 9: return CREDENTIAL_ACCESS; + case 10: return DISCOVERY; + case 11: return LATERAL_MOVEMENT; + case 12: return COLLECTION; + case 4: return COMMAND_AND_CONTROL; + case 13: return EXFILTRATION; + case 14: return IMPACT; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Tactic> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Tactic findValueByNumber(int number) { + return Tactic.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Tactic findValueByNumber(int number) { - return Tactic.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.securitycenter.v1.MitreAttack.getDescriptor().getEnumTypes().get(0); } private static final Tactic[] VALUES = values(); - public static Tactic valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Tactic valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -633,8 +534,6 @@ private Tactic(int value) { } /** - * - * *
    * MITRE ATT&CK techniques that can be referenced by SCC findings.
    * See: https://attack.mitre.org/techniques/enterprise/
@@ -642,10 +541,9 @@ private Tactic(int value) {
    *
    * Protobuf enum {@code google.cloud.securitycenter.v1.MitreAttack.Technique}
    */
-  public enum Technique implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Technique
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Unspecified value.
      * 
@@ -654,8 +552,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ TECHNIQUE_UNSPECIFIED(0), /** - * - * *
      * T1595
      * 
@@ -664,8 +560,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE_SCANNING(1), /** - * - * *
      * T1595.001
      * 
@@ -674,8 +568,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ SCANNING_IP_BLOCKS(2), /** - * - * *
      * T1105
      * 
@@ -684,8 +576,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ INGRESS_TOOL_TRANSFER(3), /** - * - * *
      * T1106
      * 
@@ -694,8 +584,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ NATIVE_API(4), /** - * - * *
      * T1129
      * 
@@ -704,8 +592,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ SHARED_MODULES(5), /** - * - * *
      * T1059
      * 
@@ -714,8 +600,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ COMMAND_AND_SCRIPTING_INTERPRETER(6), /** - * - * *
      * T1059.004
      * 
@@ -724,8 +608,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ UNIX_SHELL(7), /** - * - * *
      * T1496
      * 
@@ -734,8 +616,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ RESOURCE_HIJACKING(8), /** - * - * *
      * T1090
      * 
@@ -744,8 +624,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ PROXY(9), /** - * - * *
      * T1090.002
      * 
@@ -754,8 +632,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ EXTERNAL_PROXY(10), /** - * - * *
      * T1090.003
      * 
@@ -764,8 +640,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ MULTI_HOP_PROXY(11), /** - * - * *
      * T1568
      * 
@@ -774,8 +648,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ DYNAMIC_RESOLUTION(12), /** - * - * *
      * T1552
      * 
@@ -784,8 +656,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ UNSECURED_CREDENTIALS(13), /** - * - * *
      * T1078
      * 
@@ -794,8 +664,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ VALID_ACCOUNTS(14), /** - * - * *
      * T1078.003
      * 
@@ -804,8 +672,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ LOCAL_ACCOUNTS(15), /** - * - * *
      * T1078.004
      * 
@@ -814,8 +680,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ CLOUD_ACCOUNTS(16), /** - * - * *
      * T1498
      * 
@@ -824,8 +688,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ NETWORK_DENIAL_OF_SERVICE(17), /** - * - * *
      * T1069
      * 
@@ -834,8 +696,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ PERMISSION_GROUPS_DISCOVERY(18), /** - * - * *
      * T1069.003
      * 
@@ -844,8 +704,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ CLOUD_GROUPS(19), /** - * - * *
      * T1567
      * 
@@ -854,8 +712,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ EXFILTRATION_OVER_WEB_SERVICE(20), /** - * - * *
      * T1567.002
      * 
@@ -864,8 +720,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ EXFILTRATION_TO_CLOUD_STORAGE(21), /** - * - * *
      * T1098
      * 
@@ -874,8 +728,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ ACCOUNT_MANIPULATION(22), /** - * - * *
      * T1098.004
      * 
@@ -884,8 +736,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ SSH_AUTHORIZED_KEYS(23), /** - * - * *
      * T1543
      * 
@@ -894,8 +744,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ CREATE_OR_MODIFY_SYSTEM_PROCESS(24), /** - * - * *
      * T1539
      * 
@@ -904,8 +752,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ STEAL_WEB_SESSION_COOKIE(25), /** - * - * *
      * T1578
      * 
@@ -914,8 +760,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE(26), /** - * - * *
      * T1190
      * 
@@ -924,8 +768,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ EXPLOIT_PUBLIC_FACING_APPLICATION(27), /** - * - * *
      * T1556
      * 
@@ -934,8 +776,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ MODIFY_AUTHENTICATION_PROCESS(28), /** - * - * *
      * T1485
      * 
@@ -944,8 +784,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ DATA_DESTRUCTION(29), /** - * - * *
      * T1484
      * 
@@ -954,8 +792,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ DOMAIN_POLICY_MODIFICATION(30), /** - * - * *
      * T1562
      * 
@@ -967,8 +803,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified value.
      * 
@@ -977,8 +811,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TECHNIQUE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * T1595
      * 
@@ -987,8 +819,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_SCANNING_VALUE = 1; /** - * - * *
      * T1595.001
      * 
@@ -997,8 +827,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCANNING_IP_BLOCKS_VALUE = 2; /** - * - * *
      * T1105
      * 
@@ -1007,8 +835,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INGRESS_TOOL_TRANSFER_VALUE = 3; /** - * - * *
      * T1106
      * 
@@ -1017,8 +843,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NATIVE_API_VALUE = 4; /** - * - * *
      * T1129
      * 
@@ -1027,8 +851,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SHARED_MODULES_VALUE = 5; /** - * - * *
      * T1059
      * 
@@ -1037,8 +859,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMMAND_AND_SCRIPTING_INTERPRETER_VALUE = 6; /** - * - * *
      * T1059.004
      * 
@@ -1047,8 +867,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNIX_SHELL_VALUE = 7; /** - * - * *
      * T1496
      * 
@@ -1057,8 +875,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESOURCE_HIJACKING_VALUE = 8; /** - * - * *
      * T1090
      * 
@@ -1067,8 +883,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROXY_VALUE = 9; /** - * - * *
      * T1090.002
      * 
@@ -1077,8 +891,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EXTERNAL_PROXY_VALUE = 10; /** - * - * *
      * T1090.003
      * 
@@ -1087,8 +899,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MULTI_HOP_PROXY_VALUE = 11; /** - * - * *
      * T1568
      * 
@@ -1097,8 +907,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DYNAMIC_RESOLUTION_VALUE = 12; /** - * - * *
      * T1552
      * 
@@ -1107,8 +915,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSECURED_CREDENTIALS_VALUE = 13; /** - * - * *
      * T1078
      * 
@@ -1117,8 +923,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VALID_ACCOUNTS_VALUE = 14; /** - * - * *
      * T1078.003
      * 
@@ -1127,8 +931,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOCAL_ACCOUNTS_VALUE = 15; /** - * - * *
      * T1078.004
      * 
@@ -1137,8 +939,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CLOUD_ACCOUNTS_VALUE = 16; /** - * - * *
      * T1498
      * 
@@ -1147,8 +947,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NETWORK_DENIAL_OF_SERVICE_VALUE = 17; /** - * - * *
      * T1069
      * 
@@ -1157,8 +955,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PERMISSION_GROUPS_DISCOVERY_VALUE = 18; /** - * - * *
      * T1069.003
      * 
@@ -1167,8 +963,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CLOUD_GROUPS_VALUE = 19; /** - * - * *
      * T1567
      * 
@@ -1177,8 +971,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EXFILTRATION_OVER_WEB_SERVICE_VALUE = 20; /** - * - * *
      * T1567.002
      * 
@@ -1187,8 +979,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EXFILTRATION_TO_CLOUD_STORAGE_VALUE = 21; /** - * - * *
      * T1098
      * 
@@ -1197,8 +987,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACCOUNT_MANIPULATION_VALUE = 22; /** - * - * *
      * T1098.004
      * 
@@ -1207,8 +995,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SSH_AUTHORIZED_KEYS_VALUE = 23; /** - * - * *
      * T1543
      * 
@@ -1217,8 +1003,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATE_OR_MODIFY_SYSTEM_PROCESS_VALUE = 24; /** - * - * *
      * T1539
      * 
@@ -1227,8 +1011,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STEAL_WEB_SESSION_COOKIE_VALUE = 25; /** - * - * *
      * T1578
      * 
@@ -1237,8 +1019,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE_VALUE = 26; /** - * - * *
      * T1190
      * 
@@ -1247,8 +1027,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EXPLOIT_PUBLIC_FACING_APPLICATION_VALUE = 27; /** - * - * *
      * T1556
      * 
@@ -1257,8 +1035,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MODIFY_AUTHENTICATION_PROCESS_VALUE = 28; /** - * - * *
      * T1485
      * 
@@ -1267,8 +1043,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DATA_DESTRUCTION_VALUE = 29; /** - * - * *
      * T1484
      * 
@@ -1277,8 +1051,6 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DOMAIN_POLICY_MODIFICATION_VALUE = 30; /** - * - * *
      * T1562
      * 
@@ -1287,6 +1059,7 @@ public enum Technique implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMPAIR_DEFENSES_VALUE = 31; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1311,107 +1084,78 @@ public static Technique valueOf(int value) { */ public static Technique forNumber(int value) { switch (value) { - case 0: - return TECHNIQUE_UNSPECIFIED; - case 1: - return ACTIVE_SCANNING; - case 2: - return SCANNING_IP_BLOCKS; - case 3: - return INGRESS_TOOL_TRANSFER; - case 4: - return NATIVE_API; - case 5: - return SHARED_MODULES; - case 6: - return COMMAND_AND_SCRIPTING_INTERPRETER; - case 7: - return UNIX_SHELL; - case 8: - return RESOURCE_HIJACKING; - case 9: - return PROXY; - case 10: - return EXTERNAL_PROXY; - case 11: - return MULTI_HOP_PROXY; - case 12: - return DYNAMIC_RESOLUTION; - case 13: - return UNSECURED_CREDENTIALS; - case 14: - return VALID_ACCOUNTS; - case 15: - return LOCAL_ACCOUNTS; - case 16: - return CLOUD_ACCOUNTS; - case 17: - return NETWORK_DENIAL_OF_SERVICE; - case 18: - return PERMISSION_GROUPS_DISCOVERY; - case 19: - return CLOUD_GROUPS; - case 20: - return EXFILTRATION_OVER_WEB_SERVICE; - case 21: - return EXFILTRATION_TO_CLOUD_STORAGE; - case 22: - return ACCOUNT_MANIPULATION; - case 23: - return SSH_AUTHORIZED_KEYS; - case 24: - return CREATE_OR_MODIFY_SYSTEM_PROCESS; - case 25: - return STEAL_WEB_SESSION_COOKIE; - case 26: - return MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE; - case 27: - return EXPLOIT_PUBLIC_FACING_APPLICATION; - case 28: - return MODIFY_AUTHENTICATION_PROCESS; - case 29: - return DATA_DESTRUCTION; - case 30: - return DOMAIN_POLICY_MODIFICATION; - case 31: - return IMPAIR_DEFENSES; - default: - return null; + case 0: return TECHNIQUE_UNSPECIFIED; + case 1: return ACTIVE_SCANNING; + case 2: return SCANNING_IP_BLOCKS; + case 3: return INGRESS_TOOL_TRANSFER; + case 4: return NATIVE_API; + case 5: return SHARED_MODULES; + case 6: return COMMAND_AND_SCRIPTING_INTERPRETER; + case 7: return UNIX_SHELL; + case 8: return RESOURCE_HIJACKING; + case 9: return PROXY; + case 10: return EXTERNAL_PROXY; + case 11: return MULTI_HOP_PROXY; + case 12: return DYNAMIC_RESOLUTION; + case 13: return UNSECURED_CREDENTIALS; + case 14: return VALID_ACCOUNTS; + case 15: return LOCAL_ACCOUNTS; + case 16: return CLOUD_ACCOUNTS; + case 17: return NETWORK_DENIAL_OF_SERVICE; + case 18: return PERMISSION_GROUPS_DISCOVERY; + case 19: return CLOUD_GROUPS; + case 20: return EXFILTRATION_OVER_WEB_SERVICE; + case 21: return EXFILTRATION_TO_CLOUD_STORAGE; + case 22: return ACCOUNT_MANIPULATION; + case 23: return SSH_AUTHORIZED_KEYS; + case 24: return CREATE_OR_MODIFY_SYSTEM_PROCESS; + case 25: return STEAL_WEB_SESSION_COOKIE; + case 26: return MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE; + case 27: return EXPLOIT_PUBLIC_FACING_APPLICATION; + case 28: return MODIFY_AUTHENTICATION_PROCESS; + case 29: return DATA_DESTRUCTION; + case 30: return DOMAIN_POLICY_MODIFICATION; + case 31: return IMPAIR_DEFENSES; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Technique> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Technique findValueByNumber(int number) { + return Technique.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Technique findValueByNumber(int number) { - return Technique.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.securitycenter.v1.MitreAttack.getDescriptor().getEnumTypes().get(1); } private static final Technique[] VALUES = values(); - public static Technique valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Technique valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1431,61 +1175,43 @@ private Technique(int value) { public static final int PRIMARY_TACTIC_FIELD_NUMBER = 1; private int primaryTactic_; /** - * - * *
    * The MITRE ATT&CK tactic most closely represented by this finding, if any.
    * 
* * .google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1; - * * @return The enum numeric value on the wire for primaryTactic. */ - @java.lang.Override - public int getPrimaryTacticValue() { + @java.lang.Override public int getPrimaryTacticValue() { return primaryTactic_; } /** - * - * *
    * The MITRE ATT&CK tactic most closely represented by this finding, if any.
    * 
* * .google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1; - * * @return The primaryTactic. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.MitreAttack.Tactic getPrimaryTactic() { + @java.lang.Override public com.google.cloud.securitycenter.v1.MitreAttack.Tactic getPrimaryTactic() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.MitreAttack.Tactic result = - com.google.cloud.securitycenter.v1.MitreAttack.Tactic.valueOf(primaryTactic_); - return result == null - ? com.google.cloud.securitycenter.v1.MitreAttack.Tactic.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.MitreAttack.Tactic result = com.google.cloud.securitycenter.v1.MitreAttack.Tactic.valueOf(primaryTactic_); + return result == null ? com.google.cloud.securitycenter.v1.MitreAttack.Tactic.UNRECOGNIZED : result; } public static final int PRIMARY_TECHNIQUES_FIELD_NUMBER = 2; private java.util.List primaryTechniques_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique> - primaryTechniques_converter_ = + java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique> primaryTechniques_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique>() { - public com.google.cloud.securitycenter.v1.MitreAttack.Technique convert( - java.lang.Integer from) { + public com.google.cloud.securitycenter.v1.MitreAttack.Technique convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.MitreAttack.Technique result = - com.google.cloud.securitycenter.v1.MitreAttack.Technique.valueOf(from); - return result == null - ? com.google.cloud.securitycenter.v1.MitreAttack.Technique.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.MitreAttack.Technique result = com.google.cloud.securitycenter.v1.MitreAttack.Technique.valueOf(from); + return result == null ? com.google.cloud.securitycenter.v1.MitreAttack.Technique.UNRECOGNIZED : result; } }; /** - * - * *
    * The MITRE ATT&CK technique most closely represented by this finding, if
    * any. primary_techniques is a repeated field because there are multiple
@@ -1495,21 +1221,15 @@ public com.google.cloud.securitycenter.v1.MitreAttack.Technique convert(
    * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @return A list containing the primaryTechniques. */ @java.lang.Override - public java.util.List - getPrimaryTechniquesList() { + public java.util.List getPrimaryTechniquesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique>( - primaryTechniques_, primaryTechniques_converter_); + java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique>(primaryTechniques_, primaryTechniques_converter_); } /** - * - * *
    * The MITRE ATT&CK technique most closely represented by this finding, if
    * any. primary_techniques is a repeated field because there are multiple
@@ -1519,9 +1239,7 @@ public com.google.cloud.securitycenter.v1.MitreAttack.Technique convert(
    * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @return The count of primaryTechniques. */ @java.lang.Override @@ -1529,8 +1247,6 @@ public int getPrimaryTechniquesCount() { return primaryTechniques_.size(); } /** - * - * *
    * The MITRE ATT&CK technique most closely represented by this finding, if
    * any. primary_techniques is a repeated field because there are multiple
@@ -1540,9 +1256,7 @@ public int getPrimaryTechniquesCount() {
    * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @param index The index of the element to return. * @return The primaryTechniques at the given index. */ @@ -1551,8 +1265,6 @@ public com.google.cloud.securitycenter.v1.MitreAttack.Technique getPrimaryTechni return primaryTechniques_converter_.convert(primaryTechniques_.get(index)); } /** - * - * *
    * The MITRE ATT&CK technique most closely represented by this finding, if
    * any. primary_techniques is a repeated field because there are multiple
@@ -1562,18 +1274,15 @@ public com.google.cloud.securitycenter.v1.MitreAttack.Technique getPrimaryTechni
    * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @return A list containing the enum numeric values on the wire for primaryTechniques. */ @java.lang.Override - public java.util.List getPrimaryTechniquesValueList() { + public java.util.List + getPrimaryTechniquesValueList() { return primaryTechniques_; } /** - * - * *
    * The MITRE ATT&CK technique most closely represented by this finding, if
    * any. primary_techniques is a repeated field because there are multiple
@@ -1583,9 +1292,7 @@ public java.util.List getPrimaryTechniquesValueList() {
    * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of primaryTechniques at the given index. */ @@ -1593,55 +1300,39 @@ public java.util.List getPrimaryTechniquesValueList() { public int getPrimaryTechniquesValue(int index) { return primaryTechniques_.get(index); } - private int primaryTechniquesMemoizedSerializedSize; public static final int ADDITIONAL_TACTICS_FIELD_NUMBER = 3; private java.util.List additionalTactics_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Tactic> - additionalTactics_converter_ = + java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Tactic> additionalTactics_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Tactic>() { - public com.google.cloud.securitycenter.v1.MitreAttack.Tactic convert( - java.lang.Integer from) { + public com.google.cloud.securitycenter.v1.MitreAttack.Tactic convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.MitreAttack.Tactic result = - com.google.cloud.securitycenter.v1.MitreAttack.Tactic.valueOf(from); - return result == null - ? com.google.cloud.securitycenter.v1.MitreAttack.Tactic.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.MitreAttack.Tactic result = com.google.cloud.securitycenter.v1.MitreAttack.Tactic.valueOf(from); + return result == null ? com.google.cloud.securitycenter.v1.MitreAttack.Tactic.UNRECOGNIZED : result; } }; /** - * - * *
    * Additional MITRE ATT&CK tactics related to this finding, if any.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @return A list containing the additionalTactics. */ @java.lang.Override - public java.util.List - getAdditionalTacticsList() { + public java.util.List getAdditionalTacticsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Tactic>( - additionalTactics_, additionalTactics_converter_); + java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Tactic>(additionalTactics_, additionalTactics_converter_); } /** - * - * *
    * Additional MITRE ATT&CK tactics related to this finding, if any.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @return The count of additionalTactics. */ @java.lang.Override @@ -1649,15 +1340,11 @@ public int getAdditionalTacticsCount() { return additionalTactics_.size(); } /** - * - * *
    * Additional MITRE ATT&CK tactics related to this finding, if any.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @param index The index of the element to return. * @return The additionalTactics at the given index. */ @@ -1666,31 +1353,24 @@ public com.google.cloud.securitycenter.v1.MitreAttack.Tactic getAdditionalTactic return additionalTactics_converter_.convert(additionalTactics_.get(index)); } /** - * - * *
    * Additional MITRE ATT&CK tactics related to this finding, if any.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @return A list containing the enum numeric values on the wire for additionalTactics. */ @java.lang.Override - public java.util.List getAdditionalTacticsValueList() { + public java.util.List + getAdditionalTacticsValueList() { return additionalTactics_; } /** - * - * *
    * Additional MITRE ATT&CK tactics related to this finding, if any.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @param index The index of the value to return. * @return The enum numeric value on the wire of additionalTactics at the given index. */ @@ -1698,57 +1378,41 @@ public java.util.List getAdditionalTacticsValueList() { public int getAdditionalTacticsValue(int index) { return additionalTactics_.get(index); } - private int additionalTacticsMemoizedSerializedSize; public static final int ADDITIONAL_TECHNIQUES_FIELD_NUMBER = 4; private java.util.List additionalTechniques_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique> - additionalTechniques_converter_ = + java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique> additionalTechniques_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique>() { - public com.google.cloud.securitycenter.v1.MitreAttack.Technique convert( - java.lang.Integer from) { + public com.google.cloud.securitycenter.v1.MitreAttack.Technique convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.MitreAttack.Technique result = - com.google.cloud.securitycenter.v1.MitreAttack.Technique.valueOf(from); - return result == null - ? com.google.cloud.securitycenter.v1.MitreAttack.Technique.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.MitreAttack.Technique result = com.google.cloud.securitycenter.v1.MitreAttack.Technique.valueOf(from); + return result == null ? com.google.cloud.securitycenter.v1.MitreAttack.Technique.UNRECOGNIZED : result; } }; /** - * - * *
    * Additional MITRE ATT&CK techniques related to this finding, if any, along
    * with any of their respective parent techniques.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @return A list containing the additionalTechniques. */ @java.lang.Override - public java.util.List - getAdditionalTechniquesList() { + public java.util.List getAdditionalTechniquesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique>( - additionalTechniques_, additionalTechniques_converter_); + java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique>(additionalTechniques_, additionalTechniques_converter_); } /** - * - * *
    * Additional MITRE ATT&CK techniques related to this finding, if any, along
    * with any of their respective parent techniques.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @return The count of additionalTechniques. */ @java.lang.Override @@ -1756,52 +1420,40 @@ public int getAdditionalTechniquesCount() { return additionalTechniques_.size(); } /** - * - * *
    * Additional MITRE ATT&CK techniques related to this finding, if any, along
    * with any of their respective parent techniques.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @param index The index of the element to return. * @return The additionalTechniques at the given index. */ @java.lang.Override - public com.google.cloud.securitycenter.v1.MitreAttack.Technique getAdditionalTechniques( - int index) { + public com.google.cloud.securitycenter.v1.MitreAttack.Technique getAdditionalTechniques(int index) { return additionalTechniques_converter_.convert(additionalTechniques_.get(index)); } /** - * - * *
    * Additional MITRE ATT&CK techniques related to this finding, if any, along
    * with any of their respective parent techniques.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @return A list containing the enum numeric values on the wire for additionalTechniques. */ @java.lang.Override - public java.util.List getAdditionalTechniquesValueList() { + public java.util.List + getAdditionalTechniquesValueList() { return additionalTechniques_; } /** - * - * *
    * Additional MITRE ATT&CK techniques related to this finding, if any, along
    * with any of their respective parent techniques.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @param index The index of the value to return. * @return The enum numeric value on the wire of additionalTechniques at the given index. */ @@ -1809,20 +1461,16 @@ public java.util.List getAdditionalTechniquesValueList() { public int getAdditionalTechniquesValue(int index) { return additionalTechniques_.get(index); } - private int additionalTechniquesMemoizedSerializedSize; public static final int VERSION_FIELD_NUMBER = 5; private volatile java.lang.Object version_; /** - * - * *
    * The MITRE ATT&CK version referenced by the above fields. E.g. "8".
    * 
* * string version = 5; - * * @return The version. */ @java.lang.Override @@ -1831,29 +1479,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * The MITRE ATT&CK version referenced by the above fields. E.g. "8".
    * 
* * string version = 5; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -1862,7 +1510,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1874,10 +1521,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); - if (primaryTactic_ - != com.google.cloud.securitycenter.v1.MitreAttack.Tactic.TACTIC_UNSPECIFIED.getNumber()) { + if (primaryTactic_ != com.google.cloud.securitycenter.v1.MitreAttack.Tactic.TACTIC_UNSPECIFIED.getNumber()) { output.writeEnum(1, primaryTactic_); } if (getPrimaryTechniquesList().size() > 0) { @@ -1913,49 +1560,45 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (primaryTactic_ - != com.google.cloud.securitycenter.v1.MitreAttack.Tactic.TACTIC_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, primaryTactic_); + if (primaryTactic_ != com.google.cloud.securitycenter.v1.MitreAttack.Tactic.TACTIC_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, primaryTactic_); } { int dataSize = 0; for (int i = 0; i < primaryTechniques_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(primaryTechniques_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(primaryTechniques_.get(i)); } size += dataSize; - if (!getPrimaryTechniquesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - primaryTechniquesMemoizedSerializedSize = dataSize; + if (!getPrimaryTechniquesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }primaryTechniquesMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < additionalTactics_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(additionalTactics_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(additionalTactics_.get(i)); } size += dataSize; - if (!getAdditionalTacticsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - additionalTacticsMemoizedSerializedSize = dataSize; + if (!getAdditionalTacticsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }additionalTacticsMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < additionalTechniques_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( - additionalTechniques_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(additionalTechniques_.get(i)); } size += dataSize; - if (!getAdditionalTechniquesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - additionalTechniquesMemoizedSerializedSize = dataSize; + if (!getAdditionalTechniquesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }additionalTechniquesMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_); @@ -1968,19 +1611,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.MitreAttack)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.MitreAttack other = - (com.google.cloud.securitycenter.v1.MitreAttack) obj; + com.google.cloud.securitycenter.v1.MitreAttack other = (com.google.cloud.securitycenter.v1.MitreAttack) obj; if (primaryTactic_ != other.primaryTactic_) return false; if (!primaryTechniques_.equals(other.primaryTechniques_)) return false; if (!additionalTactics_.equals(other.additionalTactics_)) return false; if (!additionalTechniques_.equals(other.additionalTechniques_)) return false; - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2013,104 +1656,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.MitreAttack parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.MitreAttack parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.MitreAttack parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.MitreAttack prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MITRE ATT&CK tactics and techniques related to this finding.
    * See: https://attack.mitre.org
@@ -2118,23 +1754,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.MitreAttack}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.MitreAttack)
       com.google.cloud.securitycenter.v1.MitreAttackOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.MitreAttackProto
-          .internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.MitreAttackProto.internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.MitreAttackProto
-          .internal_static_google_cloud_securitycenter_v1_MitreAttack_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.MitreAttackProto.internal_static_google_cloud_securitycenter_v1_MitreAttack_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.MitreAttack.class,
-              com.google.cloud.securitycenter.v1.MitreAttack.Builder.class);
+              com.google.cloud.securitycenter.v1.MitreAttack.class, com.google.cloud.securitycenter.v1.MitreAttack.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.MitreAttack.newBuilder()
@@ -2142,15 +1776,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2168,9 +1803,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.MitreAttackProto
-          .internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.MitreAttackProto.internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor;
     }
 
     @java.lang.Override
@@ -2189,8 +1824,7 @@ public com.google.cloud.securitycenter.v1.MitreAttack build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.MitreAttack buildPartial() {
-      com.google.cloud.securitycenter.v1.MitreAttack result =
-          new com.google.cloud.securitycenter.v1.MitreAttack(this);
+      com.google.cloud.securitycenter.v1.MitreAttack result = new com.google.cloud.securitycenter.v1.MitreAttack(this);
       int from_bitField0_ = bitField0_;
       result.primaryTactic_ = primaryTactic_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -2217,39 +1851,38 @@ public com.google.cloud.securitycenter.v1.MitreAttack buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.MitreAttack) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.MitreAttack) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.MitreAttack)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2323,72 +1956,55 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private int primaryTactic_ = 0;
     /**
-     *
-     *
      * 
      * The MITRE ATT&CK tactic most closely represented by this finding, if any.
      * 
* * .google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1; - * * @return The enum numeric value on the wire for primaryTactic. */ - @java.lang.Override - public int getPrimaryTacticValue() { + @java.lang.Override public int getPrimaryTacticValue() { return primaryTactic_; } /** - * - * *
      * The MITRE ATT&CK tactic most closely represented by this finding, if any.
      * 
* * .google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1; - * * @param value The enum numeric value on the wire for primaryTactic to set. * @return This builder for chaining. */ public Builder setPrimaryTacticValue(int value) { - + primaryTactic_ = value; onChanged(); return this; } /** - * - * *
      * The MITRE ATT&CK tactic most closely represented by this finding, if any.
      * 
* * .google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1; - * * @return The primaryTactic. */ @java.lang.Override public com.google.cloud.securitycenter.v1.MitreAttack.Tactic getPrimaryTactic() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.MitreAttack.Tactic result = - com.google.cloud.securitycenter.v1.MitreAttack.Tactic.valueOf(primaryTactic_); - return result == null - ? com.google.cloud.securitycenter.v1.MitreAttack.Tactic.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.MitreAttack.Tactic result = com.google.cloud.securitycenter.v1.MitreAttack.Tactic.valueOf(primaryTactic_); + return result == null ? com.google.cloud.securitycenter.v1.MitreAttack.Tactic.UNRECOGNIZED : result; } /** - * - * *
      * The MITRE ATT&CK tactic most closely represented by this finding, if any.
      * 
* * .google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1; - * * @param value The primaryTactic to set. * @return This builder for chaining. */ @@ -2396,32 +2012,28 @@ public Builder setPrimaryTactic(com.google.cloud.securitycenter.v1.MitreAttack.T if (value == null) { throw new NullPointerException(); } - + primaryTactic_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The MITRE ATT&CK tactic most closely represented by this finding, if any.
      * 
* * .google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1; - * * @return This builder for chaining. */ public Builder clearPrimaryTactic() { - + primaryTactic_ = 0; onChanged(); return this; } private java.util.List primaryTechniques_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePrimaryTechniquesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { primaryTechniques_ = new java.util.ArrayList(primaryTechniques_); @@ -2429,8 +2041,6 @@ private void ensurePrimaryTechniquesIsMutable() { } } /** - * - * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2440,20 +2050,14 @@ private void ensurePrimaryTechniquesIsMutable() {
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @return A list containing the primaryTechniques. */ - public java.util.List - getPrimaryTechniquesList() { + public java.util.List getPrimaryTechniquesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique>( - primaryTechniques_, primaryTechniques_converter_); + java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique>(primaryTechniques_, primaryTechniques_converter_); } /** - * - * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2463,17 +2067,13 @@ private void ensurePrimaryTechniquesIsMutable() {
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @return The count of primaryTechniques. */ public int getPrimaryTechniquesCount() { return primaryTechniques_.size(); } /** - * - * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2483,19 +2083,14 @@ public int getPrimaryTechniquesCount() {
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @param index The index of the element to return. * @return The primaryTechniques at the given index. */ - public com.google.cloud.securitycenter.v1.MitreAttack.Technique getPrimaryTechniques( - int index) { + public com.google.cloud.securitycenter.v1.MitreAttack.Technique getPrimaryTechniques(int index) { return primaryTechniques_converter_.convert(primaryTechniques_.get(index)); } /** - * - * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2505,9 +2100,7 @@ public com.google.cloud.securitycenter.v1.MitreAttack.Technique getPrimaryTechni
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @param index The index to set the value at. * @param value The primaryTechniques to set. * @return This builder for chaining. @@ -2523,8 +2116,6 @@ public Builder setPrimaryTechniques( return this; } /** - * - * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2534,14 +2125,11 @@ public Builder setPrimaryTechniques(
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @param value The primaryTechniques to add. * @return This builder for chaining. */ - public Builder addPrimaryTechniques( - com.google.cloud.securitycenter.v1.MitreAttack.Technique value) { + public Builder addPrimaryTechniques(com.google.cloud.securitycenter.v1.MitreAttack.Technique value) { if (value == null) { throw new NullPointerException(); } @@ -2551,8 +2139,6 @@ public Builder addPrimaryTechniques( return this; } /** - * - * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2562,15 +2148,12 @@ public Builder addPrimaryTechniques(
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @param values The primaryTechniques to add. * @return This builder for chaining. */ public Builder addAllPrimaryTechniques( - java.lang.Iterable - values) { + java.lang.Iterable values) { ensurePrimaryTechniquesIsMutable(); for (com.google.cloud.securitycenter.v1.MitreAttack.Technique value : values) { primaryTechniques_.add(value.getNumber()); @@ -2579,8 +2162,6 @@ public Builder addAllPrimaryTechniques( return this; } /** - * - * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2590,9 +2171,7 @@ public Builder addAllPrimaryTechniques(
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @return This builder for chaining. */ public Builder clearPrimaryTechniques() { @@ -2602,8 +2181,6 @@ public Builder clearPrimaryTechniques() { return this; } /** - * - * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2613,17 +2190,14 @@ public Builder clearPrimaryTechniques() {
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @return A list containing the enum numeric values on the wire for primaryTechniques. */ - public java.util.List getPrimaryTechniquesValueList() { + public java.util.List + getPrimaryTechniquesValueList() { return java.util.Collections.unmodifiableList(primaryTechniques_); } /** - * - * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2633,9 +2207,7 @@ public java.util.List getPrimaryTechniquesValueList() {
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of primaryTechniques at the given index. */ @@ -2643,8 +2215,6 @@ public int getPrimaryTechniquesValue(int index) { return primaryTechniques_.get(index); } /** - * - * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2654,22 +2224,19 @@ public int getPrimaryTechniquesValue(int index) {
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of primaryTechniques at the given index. * @return This builder for chaining. */ - public Builder setPrimaryTechniquesValue(int index, int value) { + public Builder setPrimaryTechniquesValue( + int index, int value) { ensurePrimaryTechniquesIsMutable(); primaryTechniques_.set(index, value); onChanged(); return this; } /** - * - * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2679,9 +2246,7 @@ public Builder setPrimaryTechniquesValue(int index, int value) {
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @param value The enum numeric value on the wire for primaryTechniques to add. * @return This builder for chaining. */ @@ -2692,8 +2257,6 @@ public Builder addPrimaryTechniquesValue(int value) { return this; } /** - * - * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2703,13 +2266,12 @@ public Builder addPrimaryTechniquesValue(int value) {
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @param values The enum numeric values on the wire for primaryTechniques to add. * @return This builder for chaining. */ - public Builder addAllPrimaryTechniquesValue(java.lang.Iterable values) { + public Builder addAllPrimaryTechniquesValue( + java.lang.Iterable values) { ensurePrimaryTechniquesIsMutable(); for (int value : values) { primaryTechniques_.add(value); @@ -2719,8 +2281,7 @@ public Builder addAllPrimaryTechniquesValue(java.lang.Iterable additionalTactics_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAdditionalTacticsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { additionalTactics_ = new java.util.ArrayList(additionalTactics_); @@ -2728,48 +2289,34 @@ private void ensureAdditionalTacticsIsMutable() { } } /** - * - * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @return A list containing the additionalTactics. */ - public java.util.List - getAdditionalTacticsList() { + public java.util.List getAdditionalTacticsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Tactic>( - additionalTactics_, additionalTactics_converter_); + java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Tactic>(additionalTactics_, additionalTactics_converter_); } /** - * - * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @return The count of additionalTactics. */ public int getAdditionalTacticsCount() { return additionalTactics_.size(); } /** - * - * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @param index The index of the element to return. * @return The additionalTactics at the given index. */ @@ -2777,15 +2324,11 @@ public com.google.cloud.securitycenter.v1.MitreAttack.Tactic getAdditionalTactic return additionalTactics_converter_.convert(additionalTactics_.get(index)); } /** - * - * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @param index The index to set the value at. * @param value The additionalTactics to set. * @return This builder for chaining. @@ -2801,20 +2344,15 @@ public Builder setAdditionalTactics( return this; } /** - * - * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @param value The additionalTactics to add. * @return This builder for chaining. */ - public Builder addAdditionalTactics( - com.google.cloud.securitycenter.v1.MitreAttack.Tactic value) { + public Builder addAdditionalTactics(com.google.cloud.securitycenter.v1.MitreAttack.Tactic value) { if (value == null) { throw new NullPointerException(); } @@ -2824,21 +2362,16 @@ public Builder addAdditionalTactics( return this; } /** - * - * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @param values The additionalTactics to add. * @return This builder for chaining. */ public Builder addAllAdditionalTactics( - java.lang.Iterable - values) { + java.lang.Iterable values) { ensureAdditionalTacticsIsMutable(); for (com.google.cloud.securitycenter.v1.MitreAttack.Tactic value : values) { additionalTactics_.add(value.getNumber()); @@ -2847,15 +2380,11 @@ public Builder addAllAdditionalTactics( return this; } /** - * - * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @return This builder for chaining. */ public Builder clearAdditionalTactics() { @@ -2865,30 +2394,23 @@ public Builder clearAdditionalTactics() { return this; } /** - * - * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @return A list containing the enum numeric values on the wire for additionalTactics. */ - public java.util.List getAdditionalTacticsValueList() { + public java.util.List + getAdditionalTacticsValueList() { return java.util.Collections.unmodifiableList(additionalTactics_); } /** - * - * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @param index The index of the value to return. * @return The enum numeric value on the wire of additionalTactics at the given index. */ @@ -2896,35 +2418,28 @@ public int getAdditionalTacticsValue(int index) { return additionalTactics_.get(index); } /** - * - * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @param index The index of the value to return. * @return The enum numeric value on the wire of additionalTactics at the given index. * @return This builder for chaining. */ - public Builder setAdditionalTacticsValue(int index, int value) { + public Builder setAdditionalTacticsValue( + int index, int value) { ensureAdditionalTacticsIsMutable(); additionalTactics_.set(index, value); onChanged(); return this; } /** - * - * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @param value The enum numeric value on the wire for additionalTactics to add. * @return This builder for chaining. */ @@ -2935,19 +2450,16 @@ public Builder addAdditionalTacticsValue(int value) { return this; } /** - * - * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @param values The enum numeric values on the wire for additionalTactics to add. * @return This builder for chaining. */ - public Builder addAllAdditionalTacticsValue(java.lang.Iterable values) { + public Builder addAllAdditionalTacticsValue( + java.lang.Iterable values) { ensureAdditionalTacticsIsMutable(); for (int value : values) { additionalTactics_.add(value); @@ -2957,8 +2469,7 @@ public Builder addAllAdditionalTacticsValue(java.lang.Iterable additionalTechniques_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAdditionalTechniquesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { additionalTechniques_ = new java.util.ArrayList(additionalTechniques_); @@ -2966,73 +2477,50 @@ private void ensureAdditionalTechniquesIsMutable() { } } /** - * - * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @return A list containing the additionalTechniques. */ - public java.util.List - getAdditionalTechniquesList() { + public java.util.List getAdditionalTechniquesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique>( - additionalTechniques_, additionalTechniques_converter_); + java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique>(additionalTechniques_, additionalTechniques_converter_); } /** - * - * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @return The count of additionalTechniques. */ public int getAdditionalTechniquesCount() { return additionalTechniques_.size(); } /** - * - * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @param index The index of the element to return. * @return The additionalTechniques at the given index. */ - public com.google.cloud.securitycenter.v1.MitreAttack.Technique getAdditionalTechniques( - int index) { + public com.google.cloud.securitycenter.v1.MitreAttack.Technique getAdditionalTechniques(int index) { return additionalTechniques_converter_.convert(additionalTechniques_.get(index)); } /** - * - * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @param index The index to set the value at. * @param value The additionalTechniques to set. * @return This builder for chaining. @@ -3048,22 +2536,16 @@ public Builder setAdditionalTechniques( return this; } /** - * - * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @param value The additionalTechniques to add. * @return This builder for chaining. */ - public Builder addAdditionalTechniques( - com.google.cloud.securitycenter.v1.MitreAttack.Technique value) { + public Builder addAdditionalTechniques(com.google.cloud.securitycenter.v1.MitreAttack.Technique value) { if (value == null) { throw new NullPointerException(); } @@ -3073,23 +2555,17 @@ public Builder addAdditionalTechniques( return this; } /** - * - * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @param values The additionalTechniques to add. * @return This builder for chaining. */ public Builder addAllAdditionalTechniques( - java.lang.Iterable - values) { + java.lang.Iterable values) { ensureAdditionalTechniquesIsMutable(); for (com.google.cloud.securitycenter.v1.MitreAttack.Technique value : values) { additionalTechniques_.add(value.getNumber()); @@ -3098,17 +2574,12 @@ public Builder addAllAdditionalTechniques( return this; } /** - * - * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @return This builder for chaining. */ public Builder clearAdditionalTechniques() { @@ -3118,34 +2589,25 @@ public Builder clearAdditionalTechniques() { return this; } /** - * - * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @return A list containing the enum numeric values on the wire for additionalTechniques. */ - public java.util.List getAdditionalTechniquesValueList() { + public java.util.List + getAdditionalTechniquesValueList() { return java.util.Collections.unmodifiableList(additionalTechniques_); } /** - * - * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @param index The index of the value to return. * @return The enum numeric value on the wire of additionalTechniques at the given index. */ @@ -3153,39 +2615,30 @@ public int getAdditionalTechniquesValue(int index) { return additionalTechniques_.get(index); } /** - * - * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @param index The index of the value to return. * @return The enum numeric value on the wire of additionalTechniques at the given index. * @return This builder for chaining. */ - public Builder setAdditionalTechniquesValue(int index, int value) { + public Builder setAdditionalTechniquesValue( + int index, int value) { ensureAdditionalTechniquesIsMutable(); additionalTechniques_.set(index, value); onChanged(); return this; } /** - * - * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @param value The enum numeric value on the wire for additionalTechniques to add. * @return This builder for chaining. */ @@ -3196,21 +2649,17 @@ public Builder addAdditionalTechniquesValue(int value) { return this; } /** - * - * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @param values The enum numeric values on the wire for additionalTechniques to add. * @return This builder for chaining. */ - public Builder addAllAdditionalTechniquesValue(java.lang.Iterable values) { + public Builder addAllAdditionalTechniquesValue( + java.lang.Iterable values) { ensureAdditionalTechniquesIsMutable(); for (int value : values) { additionalTechniques_.add(value); @@ -3221,20 +2670,18 @@ public Builder addAllAdditionalTechniquesValue(java.lang.Iterable * The MITRE ATT&CK version referenced by the above fields. E.g. "8". *
* * string version = 5; - * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -3243,21 +2690,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * The MITRE ATT&CK version referenced by the above fields. E.g. "8".
      * 
* * string version = 5; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -3265,68 +2711,61 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * The MITRE ATT&CK version referenced by the above fields. E.g. "8".
      * 
* * string version = 5; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * The MITRE ATT&CK version referenced by the above fields. E.g. "8".
      * 
* * string version = 5; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * The MITRE ATT&CK version referenced by the above fields. E.g. "8".
      * 
* * string version = 5; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3336,12 +2775,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.MitreAttack) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.MitreAttack) private static final com.google.cloud.securitycenter.v1.MitreAttack DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.MitreAttack(); } @@ -3350,16 +2789,16 @@ public static com.google.cloud.securitycenter.v1.MitreAttack getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MitreAttack parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MitreAttack(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MitreAttack parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MitreAttack(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3374,4 +2813,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.MitreAttack getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackOrBuilder.java similarity index 80% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackOrBuilder.java index 701964f83..c78f5839d 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/mitre_attack.proto package com.google.cloud.securitycenter.v1; -public interface MitreAttackOrBuilder - extends +public interface MitreAttackOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.MitreAttack) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The MITRE ATT&CK tactic most closely represented by this finding, if any.
    * 
* * .google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1; - * * @return The enum numeric value on the wire for primaryTactic. */ int getPrimaryTacticValue(); /** - * - * *
    * The MITRE ATT&CK tactic most closely represented by this finding, if any.
    * 
* * .google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1; - * * @return The primaryTactic. */ com.google.cloud.securitycenter.v1.MitreAttack.Tactic getPrimaryTactic(); /** - * - * *
    * The MITRE ATT&CK technique most closely represented by this finding, if
    * any. primary_techniques is a repeated field because there are multiple
@@ -60,16 +36,11 @@ public interface MitreAttackOrBuilder
    * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @return A list containing the primaryTechniques. */ - java.util.List - getPrimaryTechniquesList(); + java.util.List getPrimaryTechniquesList(); /** - * - * *
    * The MITRE ATT&CK technique most closely represented by this finding, if
    * any. primary_techniques is a repeated field because there are multiple
@@ -79,15 +50,11 @@ public interface MitreAttackOrBuilder
    * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @return The count of primaryTechniques. */ int getPrimaryTechniquesCount(); /** - * - * *
    * The MITRE ATT&CK technique most closely represented by this finding, if
    * any. primary_techniques is a repeated field because there are multiple
@@ -97,16 +64,12 @@ public interface MitreAttackOrBuilder
    * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @param index The index of the element to return. * @return The primaryTechniques at the given index. */ com.google.cloud.securitycenter.v1.MitreAttack.Technique getPrimaryTechniques(int index); /** - * - * *
    * The MITRE ATT&CK technique most closely represented by this finding, if
    * any. primary_techniques is a repeated field because there are multiple
@@ -116,15 +79,12 @@ public interface MitreAttackOrBuilder
    * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @return A list containing the enum numeric values on the wire for primaryTechniques. */ - java.util.List getPrimaryTechniquesValueList(); + java.util.List + getPrimaryTechniquesValueList(); /** - * - * *
    * The MITRE ATT&CK technique most closely represented by this finding, if
    * any. primary_techniques is a repeated field because there are multiple
@@ -134,178 +94,132 @@ public interface MitreAttackOrBuilder
    * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; * @param index The index of the value to return. * @return The enum numeric value on the wire of primaryTechniques at the given index. */ int getPrimaryTechniquesValue(int index); /** - * - * *
    * Additional MITRE ATT&CK tactics related to this finding, if any.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @return A list containing the additionalTactics. */ java.util.List getAdditionalTacticsList(); /** - * - * *
    * Additional MITRE ATT&CK tactics related to this finding, if any.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @return The count of additionalTactics. */ int getAdditionalTacticsCount(); /** - * - * *
    * Additional MITRE ATT&CK tactics related to this finding, if any.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @param index The index of the element to return. * @return The additionalTactics at the given index. */ com.google.cloud.securitycenter.v1.MitreAttack.Tactic getAdditionalTactics(int index); /** - * - * *
    * Additional MITRE ATT&CK tactics related to this finding, if any.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @return A list containing the enum numeric values on the wire for additionalTactics. */ - java.util.List getAdditionalTacticsValueList(); + java.util.List + getAdditionalTacticsValueList(); /** - * - * *
    * Additional MITRE ATT&CK tactics related to this finding, if any.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; * @param index The index of the value to return. * @return The enum numeric value on the wire of additionalTactics at the given index. */ int getAdditionalTacticsValue(int index); /** - * - * *
    * Additional MITRE ATT&CK techniques related to this finding, if any, along
    * with any of their respective parent techniques.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @return A list containing the additionalTechniques. */ - java.util.List - getAdditionalTechniquesList(); + java.util.List getAdditionalTechniquesList(); /** - * - * *
    * Additional MITRE ATT&CK techniques related to this finding, if any, along
    * with any of their respective parent techniques.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @return The count of additionalTechniques. */ int getAdditionalTechniquesCount(); /** - * - * *
    * Additional MITRE ATT&CK techniques related to this finding, if any, along
    * with any of their respective parent techniques.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @param index The index of the element to return. * @return The additionalTechniques at the given index. */ com.google.cloud.securitycenter.v1.MitreAttack.Technique getAdditionalTechniques(int index); /** - * - * *
    * Additional MITRE ATT&CK techniques related to this finding, if any, along
    * with any of their respective parent techniques.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @return A list containing the enum numeric values on the wire for additionalTechniques. */ - java.util.List getAdditionalTechniquesValueList(); + java.util.List + getAdditionalTechniquesValueList(); /** - * - * *
    * Additional MITRE ATT&CK techniques related to this finding, if any, along
    * with any of their respective parent techniques.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; - * - * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; * @param index The index of the value to return. * @return The enum numeric value on the wire of additionalTechniques at the given index. */ int getAdditionalTechniquesValue(int index); /** - * - * *
    * The MITRE ATT&CK version referenced by the above fields. E.g. "8".
    * 
* * string version = 5; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * The MITRE ATT&CK version referenced by the above fields. E.g. "8".
    * 
* * string version = 5; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackProto.java new file mode 100644 index 000000000..30766a737 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackProto.java @@ -0,0 +1,92 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/mitre_attack.proto + +package com.google.cloud.securitycenter.v1; + +public final class MitreAttackProto { + private MitreAttackProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_MitreAttack_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/securitycenter/v1/mitre_a" + + "ttack.proto\022\036google.cloud.securitycenter" + + ".v1\"\355\013\n\013MitreAttack\022J\n\016primary_tactic\030\001 " + + "\001(\01622.google.cloud.securitycenter.v1.Mit" + + "reAttack.Tactic\022Q\n\022primary_techniques\030\002 " + + "\003(\01625.google.cloud.securitycenter.v1.Mit" + + "reAttack.Technique\022N\n\022additional_tactics" + + "\030\003 \003(\01622.google.cloud.securitycenter.v1." + + "MitreAttack.Tactic\022T\n\025additional_techniq" + + "ues\030\004 \003(\01625.google.cloud.securitycenter." + + "v1.MitreAttack.Technique\022\017\n\007version\030\005 \001(" + + "\t\"\264\002\n\006Tactic\022\026\n\022TACTIC_UNSPECIFIED\020\000\022\022\n\016" + + "RECONNAISSANCE\020\001\022\030\n\024RESOURCE_DEVELOPMENT" + + "\020\002\022\022\n\016INITIAL_ACCESS\020\005\022\r\n\tEXECUTION\020\003\022\017\n" + + "\013PERSISTENCE\020\006\022\030\n\024PRIVILEGE_ESCALATION\020\010" + + "\022\023\n\017DEFENSE_EVASION\020\007\022\025\n\021CREDENTIAL_ACCE" + + "SS\020\t\022\r\n\tDISCOVERY\020\n\022\024\n\020LATERAL_MOVEMENT\020" + + "\013\022\016\n\nCOLLECTION\020\014\022\027\n\023COMMAND_AND_CONTROL" + + "\020\004\022\020\n\014EXFILTRATION\020\r\022\n\n\006IMPACT\020\016\"\320\006\n\tTec" + + "hnique\022\031\n\025TECHNIQUE_UNSPECIFIED\020\000\022\023\n\017ACT" + + "IVE_SCANNING\020\001\022\026\n\022SCANNING_IP_BLOCKS\020\002\022\031" + + "\n\025INGRESS_TOOL_TRANSFER\020\003\022\016\n\nNATIVE_API\020" + + "\004\022\022\n\016SHARED_MODULES\020\005\022%\n!COMMAND_AND_SCR" + + "IPTING_INTERPRETER\020\006\022\016\n\nUNIX_SHELL\020\007\022\026\n\022" + + "RESOURCE_HIJACKING\020\010\022\t\n\005PROXY\020\t\022\022\n\016EXTER" + + "NAL_PROXY\020\n\022\023\n\017MULTI_HOP_PROXY\020\013\022\026\n\022DYNA" + + "MIC_RESOLUTION\020\014\022\031\n\025UNSECURED_CREDENTIAL" + + "S\020\r\022\022\n\016VALID_ACCOUNTS\020\016\022\022\n\016LOCAL_ACCOUNT" + + "S\020\017\022\022\n\016CLOUD_ACCOUNTS\020\020\022\035\n\031NETWORK_DENIA" + + "L_OF_SERVICE\020\021\022\037\n\033PERMISSION_GROUPS_DISC" + + "OVERY\020\022\022\020\n\014CLOUD_GROUPS\020\023\022!\n\035EXFILTRATIO" + + "N_OVER_WEB_SERVICE\020\024\022!\n\035EXFILTRATION_TO_" + + "CLOUD_STORAGE\020\025\022\030\n\024ACCOUNT_MANIPULATION\020" + + "\026\022\027\n\023SSH_AUTHORIZED_KEYS\020\027\022#\n\037CREATE_OR_" + + "MODIFY_SYSTEM_PROCESS\020\030\022\034\n\030STEAL_WEB_SES" + + "SION_COOKIE\020\031\022\'\n#MODIFY_CLOUD_COMPUTE_IN" + + "FRASTRUCTURE\020\032\022%\n!EXPLOIT_PUBLIC_FACING_" + + "APPLICATION\020\033\022!\n\035MODIFY_AUTHENTICATION_P" + + "ROCESS\020\034\022\024\n\020DATA_DESTRUCTION\020\035\022\036\n\032DOMAIN" + + "_POLICY_MODIFICATION\020\036\022\023\n\017IMPAIR_DEFENSE" + + "S\020\037B\354\001\n\"com.google.cloud.securitycenter." + + "v1B\020MitreAttackProtoP\001ZLgoogle.golang.or" + + "g/genproto/googleapis/cloud/securitycent" + + "er/v1;securitycenter\252\002\036Google.Cloud.Secu" + + "rityCenter.V1\312\002\036Google\\Cloud\\SecurityCen" + + "ter\\V1\352\002!Google::Cloud::SecurityCenter::" + + "V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_MitreAttack_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor, + new java.lang.String[] { "PrimaryTactic", "PrimaryTechniques", "AdditionalTactics", "AdditionalTechniques", "Version", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfig.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfig.java similarity index 73% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfig.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfig.java index 34dc38ac0..95901fbca 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/mute_config.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * A mute config is a Cloud SCC resource that contains the configuration
  * to mute create/update events of findings.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.MuteConfig}
  */
-public final class MuteConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MuteConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.MuteConfig)
     MuteConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MuteConfig.newBuilder() to construct.
   private MuteConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private MuteConfig() {
     name_ = "";
     displayName_ = "";
@@ -48,15 +30,16 @@ private MuteConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MuteConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private MuteConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,78 +58,69 @@ private MuteConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            displayName_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            description_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              filter_ = s;
-              break;
-            }
-          case 42:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            filter_ = s;
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 50:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              mostRecentEditor_ = s;
-              break;
+            break;
+          }
+          case 50: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          case 58: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            mostRecentEditor_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -154,33 +128,29 @@ private MuteConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1.MuteConfigProto
-        .internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1.MuteConfigProto.internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.MuteConfigProto
-        .internal_static_google_cloud_securitycenter_v1_MuteConfig_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.MuteConfigProto.internal_static_google_cloud_securitycenter_v1_MuteConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.MuteConfig.class,
-            com.google.cloud.securitycenter.v1.MuteConfig.Builder.class);
+            com.google.cloud.securitycenter.v1.MuteConfig.class, com.google.cloud.securitycenter.v1.MuteConfig.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * This field will be ignored if provided on config creation. Format
    * "organizations/{organization}/muteConfigs/{mute_config}"
@@ -189,7 +159,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -198,15 +167,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * This field will be ignored if provided on config creation. Format
    * "organizations/{organization}/muteConfigs/{mute_config}"
@@ -215,15 +183,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -234,51 +203,46 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * The human readable name to be displayed for the mute config.
    * 
* * string display_name = 2 [deprecated = true]; - * - * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See - * google/cloud/securitycenter/v1/mute_config.proto;l=47 + * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. + * See google/cloud/securitycenter/v1/mute_config.proto;l=47 * @return The displayName. */ @java.lang.Override - @java.lang.Deprecated - public java.lang.String getDisplayName() { + @java.lang.Deprecated public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * The human readable name to be displayed for the mute config.
    * 
* * string display_name = 2 [deprecated = true]; - * - * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See - * google/cloud/securitycenter/v1/mute_config.proto;l=47 + * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. + * See google/cloud/securitycenter/v1/mute_config.proto;l=47 * @return The bytes for displayName. */ @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getDisplayNameBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -289,14 +253,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * A description of the mute config.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -305,29 +266,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * A description of the mute config.
    * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -338,8 +299,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Required. An expression that defines the filter to apply across create/update events
    * of findings. While creating a filter string, be mindful of the
@@ -362,7 +321,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -371,15 +329,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Required. An expression that defines the filter to apply across create/update events
    * of findings. While creating a filter string, be mindful of the
@@ -402,15 +359,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -421,17 +379,13 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time at which the mute config was created.
    * This field is set by the server and will be ignored if provided on config
    * creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -439,17 +393,13 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time at which the mute config was created.
    * This field is set by the server and will be ignored if provided on config
    * creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -457,16 +407,13 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time at which the mute config was created.
    * This field is set by the server and will be ignored if provided on config
    * creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -476,17 +423,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The most recent time at which the mute config was updated.
    * This field is set by the server and will be ignored if provided on config
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -494,17 +437,13 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The most recent time at which the mute config was updated.
    * This field is set by the server and will be ignored if provided on config
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -512,16 +451,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The most recent time at which the mute config was updated.
    * This field is set by the server and will be ignored if provided on config
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -531,8 +467,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int MOST_RECENT_EDITOR_FIELD_NUMBER = 7; private volatile java.lang.Object mostRecentEditor_; /** - * - * *
    * Output only. Email address of the user who last edited the mute config.
    * This field is set by the server and will be ignored if provided on config
@@ -540,7 +474,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The mostRecentEditor. */ @java.lang.Override @@ -549,15 +482,14 @@ public java.lang.String getMostRecentEditor() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mostRecentEditor_ = s; return s; } } /** - * - * *
    * Output only. Email address of the user who last edited the mute config.
    * This field is set by the server and will be ignored if provided on config
@@ -565,15 +497,16 @@ public java.lang.String getMostRecentEditor() {
    * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for mostRecentEditor. */ @java.lang.Override - public com.google.protobuf.ByteString getMostRecentEditorBytes() { + public com.google.protobuf.ByteString + getMostRecentEditorBytes() { java.lang.Object ref = mostRecentEditor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mostRecentEditor_ = b; return b; } else { @@ -582,7 +515,6 @@ public com.google.protobuf.ByteString getMostRecentEditorBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -594,7 +526,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -638,10 +571,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mostRecentEditor_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, mostRecentEditor_); @@ -654,27 +589,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.MuteConfig)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.MuteConfig other = - (com.google.cloud.securitycenter.v1.MuteConfig) obj; + com.google.cloud.securitycenter.v1.MuteConfig other = (com.google.cloud.securitycenter.v1.MuteConfig) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!getMostRecentEditor().equals(other.getMostRecentEditor())) return false; + if (!getMostRecentEditor() + .equals(other.getMostRecentEditor())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -709,104 +650,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.MuteConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.MuteConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.MuteConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.MuteConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A mute config is a Cloud SCC resource that contains the configuration
    * to mute create/update events of findings.
@@ -814,23 +748,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.MuteConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.MuteConfig)
       com.google.cloud.securitycenter.v1.MuteConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.MuteConfigProto
-          .internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.MuteConfigProto.internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.MuteConfigProto
-          .internal_static_google_cloud_securitycenter_v1_MuteConfig_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.MuteConfigProto.internal_static_google_cloud_securitycenter_v1_MuteConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.MuteConfig.class,
-              com.google.cloud.securitycenter.v1.MuteConfig.Builder.class);
+              com.google.cloud.securitycenter.v1.MuteConfig.class, com.google.cloud.securitycenter.v1.MuteConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.MuteConfig.newBuilder()
@@ -838,15 +770,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -876,9 +809,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.MuteConfigProto
-          .internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.MuteConfigProto.internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor;
     }
 
     @java.lang.Override
@@ -897,8 +830,7 @@ public com.google.cloud.securitycenter.v1.MuteConfig build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.MuteConfig buildPartial() {
-      com.google.cloud.securitycenter.v1.MuteConfig result =
-          new com.google.cloud.securitycenter.v1.MuteConfig(this);
+      com.google.cloud.securitycenter.v1.MuteConfig result = new com.google.cloud.securitycenter.v1.MuteConfig(this);
       result.name_ = name_;
       result.displayName_ = displayName_;
       result.description_ = description_;
@@ -922,39 +854,38 @@ public com.google.cloud.securitycenter.v1.MuteConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.MuteConfig) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.MuteConfig) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.MuteConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1020,8 +951,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * This field will be ignored if provided on config creation. Format
      * "organizations/{organization}/muteConfigs/{mute_config}"
@@ -1030,13 +959,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1045,8 +974,6 @@ public java.lang.String getName() { } } /** - * - * *
      * This field will be ignored if provided on config creation. Format
      * "organizations/{organization}/muteConfigs/{mute_config}"
@@ -1055,14 +982,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1070,8 +998,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * This field will be ignored if provided on config creation. Format
      * "organizations/{organization}/muteConfigs/{mute_config}"
@@ -1080,22 +1006,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * This field will be ignored if provided on config creation. Format
      * "organizations/{organization}/muteConfigs/{mute_config}"
@@ -1104,18 +1028,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * This field will be ignored if provided on config creation. Format
      * "organizations/{organization}/muteConfigs/{mute_config}"
@@ -1124,16 +1045,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1141,23 +1062,20 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * The human readable name to be displayed for the mute config.
      * 
* * string display_name = 2 [deprecated = true]; - * - * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See - * google/cloud/securitycenter/v1/mute_config.proto;l=47 + * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. + * See google/cloud/securitycenter/v1/mute_config.proto;l=47 * @return The displayName. */ - @java.lang.Deprecated - public java.lang.String getDisplayName() { + @java.lang.Deprecated public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1166,24 +1084,22 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The human readable name to be displayed for the mute config.
      * 
* * string display_name = 2 [deprecated = true]; - * - * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See - * google/cloud/securitycenter/v1/mute_config.proto;l=47 + * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. + * See google/cloud/securitycenter/v1/mute_config.proto;l=47 * @return The bytes for displayName. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getDisplayNameBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1191,70 +1107,60 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The human readable name to be displayed for the mute config.
      * 
* * string display_name = 2 [deprecated = true]; - * - * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See - * google/cloud/securitycenter/v1/mute_config.proto;l=47 + * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. + * See google/cloud/securitycenter/v1/mute_config.proto;l=47 * @param value The displayName to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setDisplayName(java.lang.String value) { + @java.lang.Deprecated public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * The human readable name to be displayed for the mute config.
      * 
* * string display_name = 2 [deprecated = true]; - * - * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See - * google/cloud/securitycenter/v1/mute_config.proto;l=47 + * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. + * See google/cloud/securitycenter/v1/mute_config.proto;l=47 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearDisplayName() { - + @java.lang.Deprecated public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * The human readable name to be displayed for the mute config.
      * 
* * string display_name = 2 [deprecated = true]; - * - * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See - * google/cloud/securitycenter/v1/mute_config.proto;l=47 + * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. + * See google/cloud/securitycenter/v1/mute_config.proto;l=47 * @param value The bytes for displayName to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + @java.lang.Deprecated public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1262,20 +1168,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * A description of the mute config.
      * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1284,21 +1188,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * A description of the mute config.
      * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1306,61 +1209,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * A description of the mute config.
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * A description of the mute config.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * A description of the mute config.
      * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1368,8 +1264,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Required. An expression that defines the filter to apply across create/update events
      * of findings. While creating a filter string, be mindful of the
@@ -1392,13 +1286,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1407,8 +1301,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Required. An expression that defines the filter to apply across create/update events
      * of findings. While creating a filter string, be mindful of the
@@ -1431,14 +1323,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1446,8 +1339,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Required. An expression that defines the filter to apply across create/update events
      * of findings. While creating a filter string, be mindful of the
@@ -1470,22 +1361,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Required. An expression that defines the filter to apply across create/update events
      * of findings. While creating a filter string, be mindful of the
@@ -1508,18 +1397,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Required. An expression that defines the filter to apply across create/update events
      * of findings. While creating a filter string, be mindful of the
@@ -1542,16 +1428,16 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1559,64 +1445,45 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time at which the mute config was created.
      * This field is set by the server and will be ignored if provided on config
      * creation.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time at which the mute config was created.
      * This field is set by the server and will be ignored if provided on config
      * creation.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which the mute config was created.
      * This field is set by the server and will be ignored if provided on config
      * creation.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1632,19 +1499,16 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which the mute config was created.
      * This field is set by the server and will be ignored if provided on config
      * creation.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1655,23 +1519,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which the mute config was created.
      * This field is set by the server and will be ignored if provided on config
      * creation.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1683,17 +1543,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which the mute config was created.
      * This field is set by the server and will be ignored if provided on config
      * creation.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1707,70 +1563,54 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time at which the mute config was created.
      * This field is set by the server and will be ignored if provided on config
      * creation.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which the mute config was created.
      * This field is set by the server and will be ignored if provided on config
      * creation.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time at which the mute config was created.
      * This field is set by the server and will be ignored if provided on config
      * creation.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1778,64 +1618,45 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The most recent time at which the mute config was updated.
      * This field is set by the server and will be ignored if provided on config
      * creation or update.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The most recent time at which the mute config was updated.
      * This field is set by the server and will be ignored if provided on config
      * creation or update.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The most recent time at which the mute config was updated.
      * This field is set by the server and will be ignored if provided on config
      * creation or update.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1851,19 +1672,16 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time at which the mute config was updated.
      * This field is set by the server and will be ignored if provided on config
      * creation or update.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1874,23 +1692,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The most recent time at which the mute config was updated.
      * This field is set by the server and will be ignored if provided on config
      * creation or update.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1902,17 +1716,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time at which the mute config was updated.
      * This field is set by the server and will be ignored if provided on config
      * creation or update.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1926,70 +1736,54 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The most recent time at which the mute config was updated.
      * This field is set by the server and will be ignored if provided on config
      * creation or update.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The most recent time at which the mute config was updated.
      * This field is set by the server and will be ignored if provided on config
      * creation or update.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The most recent time at which the mute config was updated.
      * This field is set by the server and will be ignored if provided on config
      * creation or update.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -1997,8 +1791,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object mostRecentEditor_ = ""; /** - * - * *
      * Output only. Email address of the user who last edited the mute config.
      * This field is set by the server and will be ignored if provided on config
@@ -2006,13 +1798,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The mostRecentEditor. */ public java.lang.String getMostRecentEditor() { java.lang.Object ref = mostRecentEditor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mostRecentEditor_ = s; return s; @@ -2021,8 +1813,6 @@ public java.lang.String getMostRecentEditor() { } } /** - * - * *
      * Output only. Email address of the user who last edited the mute config.
      * This field is set by the server and will be ignored if provided on config
@@ -2030,14 +1820,15 @@ public java.lang.String getMostRecentEditor() {
      * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for mostRecentEditor. */ - public com.google.protobuf.ByteString getMostRecentEditorBytes() { + public com.google.protobuf.ByteString + getMostRecentEditorBytes() { java.lang.Object ref = mostRecentEditor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mostRecentEditor_ = b; return b; } else { @@ -2045,8 +1836,6 @@ public com.google.protobuf.ByteString getMostRecentEditorBytes() { } } /** - * - * *
      * Output only. Email address of the user who last edited the mute config.
      * This field is set by the server and will be ignored if provided on config
@@ -2054,22 +1843,20 @@ public com.google.protobuf.ByteString getMostRecentEditorBytes() {
      * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The mostRecentEditor to set. * @return This builder for chaining. */ - public Builder setMostRecentEditor(java.lang.String value) { + public Builder setMostRecentEditor( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mostRecentEditor_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Email address of the user who last edited the mute config.
      * This field is set by the server and will be ignored if provided on config
@@ -2077,18 +1864,15 @@ public Builder setMostRecentEditor(java.lang.String value) {
      * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMostRecentEditor() { - + mostRecentEditor_ = getDefaultInstance().getMostRecentEditor(); onChanged(); return this; } /** - * - * *
      * Output only. Email address of the user who last edited the mute config.
      * This field is set by the server and will be ignored if provided on config
@@ -2096,23 +1880,23 @@ public Builder clearMostRecentEditor() {
      * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for mostRecentEditor to set. * @return This builder for chaining. */ - public Builder setMostRecentEditorBytes(com.google.protobuf.ByteString value) { + public Builder setMostRecentEditorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mostRecentEditor_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2122,12 +1906,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.MuteConfig) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.MuteConfig) private static final com.google.cloud.securitycenter.v1.MuteConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.MuteConfig(); } @@ -2136,16 +1920,16 @@ public static com.google.cloud.securitycenter.v1.MuteConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MuteConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MuteConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MuteConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MuteConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2160,4 +1944,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.MuteConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigName.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigName.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigName.java diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigOrBuilder.java similarity index 79% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigOrBuilder.java index 45775163f..dd5589e96 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/mute_config.proto package com.google.cloud.securitycenter.v1; -public interface MuteConfigOrBuilder - extends +public interface MuteConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.MuteConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * This field will be ignored if provided on config creation. Format
    * "organizations/{organization}/muteConfigs/{mute_config}"
@@ -34,13 +16,10 @@ public interface MuteConfigOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * This field will be ignored if provided on config creation. Format
    * "organizations/{organization}/muteConfigs/{mute_config}"
@@ -49,70 +28,56 @@ public interface MuteConfigOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The human readable name to be displayed for the mute config.
    * 
* * string display_name = 2 [deprecated = true]; - * - * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See - * google/cloud/securitycenter/v1/mute_config.proto;l=47 + * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. + * See google/cloud/securitycenter/v1/mute_config.proto;l=47 * @return The displayName. */ - @java.lang.Deprecated - java.lang.String getDisplayName(); + @java.lang.Deprecated java.lang.String getDisplayName(); /** - * - * *
    * The human readable name to be displayed for the mute config.
    * 
* * string display_name = 2 [deprecated = true]; - * - * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See - * google/cloud/securitycenter/v1/mute_config.proto;l=47 + * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. + * See google/cloud/securitycenter/v1/mute_config.proto;l=47 * @return The bytes for displayName. */ - @java.lang.Deprecated - com.google.protobuf.ByteString getDisplayNameBytes(); + @java.lang.Deprecated com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * A description of the mute config.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * A description of the mute config.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Required. An expression that defines the filter to apply across create/update events
    * of findings. While creating a filter string, be mindful of the
@@ -135,13 +100,10 @@ public interface MuteConfigOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Required. An expression that defines the filter to apply across create/update events
    * of findings. While creating a filter string, be mindful of the
@@ -164,102 +126,78 @@ public interface MuteConfigOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Output only. The time at which the mute config was created.
    * This field is set by the server and will be ignored if provided on config
    * creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time at which the mute config was created.
    * This field is set by the server and will be ignored if provided on config
    * creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time at which the mute config was created.
    * This field is set by the server and will be ignored if provided on config
    * creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The most recent time at which the mute config was updated.
    * This field is set by the server and will be ignored if provided on config
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The most recent time at which the mute config was updated.
    * This field is set by the server and will be ignored if provided on config
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The most recent time at which the mute config was updated.
    * This field is set by the server and will be ignored if provided on config
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. Email address of the user who last edited the mute config.
    * This field is set by the server and will be ignored if provided on config
@@ -267,13 +205,10 @@ public interface MuteConfigOrBuilder
    * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The mostRecentEditor. */ java.lang.String getMostRecentEditor(); /** - * - * *
    * Output only. Email address of the user who last edited the mute config.
    * This field is set by the server and will be ignored if provided on config
@@ -281,8 +216,8 @@ public interface MuteConfigOrBuilder
    * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for mostRecentEditor. */ - com.google.protobuf.ByteString getMostRecentEditorBytes(); + com.google.protobuf.ByteString + getMostRecentEditorBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigProto.java new file mode 100644 index 000000000..5b68c5723 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigProto.java @@ -0,0 +1,79 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/mute_config.proto + +package com.google.cloud.securitycenter.v1; + +public final class MuteConfigProto { + private MuteConfigProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_MuteConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/securitycenter/v1/mute_co" + + "nfig.proto\022\036google.cloud.securitycenter." + + "v1\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\032\037google/protobuf/" + + "timestamp.proto\"\256\003\n\nMuteConfig\022\014\n\004name\030\001" + + " \001(\t\022\030\n\014display_name\030\002 \001(\tB\002\030\001\022\023\n\013descri" + + "ption\030\003 \001(\t\022\023\n\006filter\030\004 \001(\tB\003\340A\002\0224\n\013crea" + + "te_time\030\005 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022\037\n\022most_recent_edit" + + "or\030\007 \001(\tB\003\340A\003:\300\001\352A\274\001\n(securitycenter.goo" + + "gleapis.com/MuteConfig\0226organizations/{o" + + "rganization}/muteConfigs/{mute_config}\022*" + + "folders/{folder}/muteConfigs/{mute_confi" + + "g}\022,projects/{project}/muteConfigs/{mute" + + "_config}B\353\001\n\"com.google.cloud.securityce" + + "nter.v1B\017MuteConfigProtoP\001ZLgoogle.golan" + + "g.org/genproto/googleapis/cloud/security" + + "center/v1;securitycenter\252\002\036Google.Cloud." + + "SecurityCenter.V1\312\002\036Google\\Cloud\\Securit" + + "yCenter\\V1\352\002!Google::Cloud::SecurityCent" + + "er::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_MuteConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Description", "Filter", "CreateTime", "UpdateTime", "MostRecentEditor", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java similarity index 72% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java index cd3930025..e0de7e13a 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/notification_config.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Cloud Security Command Center (Cloud SCC) notification configs.
  * A notification config is a Cloud SCC resource that contains the configuration
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.NotificationConfig}
  */
-public final class NotificationConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class NotificationConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.NotificationConfig)
     NotificationConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use NotificationConfig.newBuilder() to construct.
   private NotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private NotificationConfig() {
     name_ = "";
     description_ = "";
@@ -48,15 +30,16 @@ private NotificationConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new NotificationConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private NotificationConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,65 +58,51 @@ private NotificationConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            description_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              pubsubTopic_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            pubsubTopic_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              serviceAccount_ = s;
-              break;
+            serviceAccount_ = s;
+            break;
+          }
+          case 42: {
+            com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder subBuilder = null;
+            if (notifyConfigCase_ == 5) {
+              subBuilder = ((com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_).toBuilder();
             }
-          case 42:
-            {
-              com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder
-                  subBuilder = null;
-              if (notifyConfigCase_ == 5) {
-                subBuilder =
-                    ((com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig)
-                            notifyConfig_)
-                        .toBuilder();
-              }
-              notifyConfig_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig)
-                        notifyConfig_);
-                notifyConfig_ = subBuilder.buildPartial();
-              }
-              notifyConfigCase_ = 5;
-              break;
+            notifyConfig_ =
+                input.readMessage(com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_);
+              notifyConfig_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            notifyConfigCase_ = 5;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -141,36 +110,31 @@ private NotificationConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1.NotificationConfigProto
-        .internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1.NotificationConfigProto.internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.NotificationConfigProto
-        .internal_static_google_cloud_securitycenter_v1_NotificationConfig_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.NotificationConfigProto.internal_static_google_cloud_securitycenter_v1_NotificationConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.NotificationConfig.class,
-            com.google.cloud.securitycenter.v1.NotificationConfig.Builder.class);
+            com.google.cloud.securitycenter.v1.NotificationConfig.class, com.google.cloud.securitycenter.v1.NotificationConfig.Builder.class);
   }
 
-  public interface StreamingConfigOrBuilder
-      extends
+  public interface StreamingConfigOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Expression that defines the filter to apply across create/update events
      * of assets or findings as specified by the event type. The expression is a
@@ -191,13 +155,10 @@ public interface StreamingConfigOrBuilder
      * 
* * string filter = 1; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
      * Expression that defines the filter to apply across create/update events
      * of assets or findings as specified by the event type. The expression is a
@@ -218,14 +179,12 @@ public interface StreamingConfigOrBuilder
      * 
* * string filter = 1; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } /** - * - * *
    * The config for streaming-based notifications, which send each event as soon
    * as it is detected.
@@ -233,31 +192,31 @@ public interface StreamingConfigOrBuilder
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig}
    */
-  public static final class StreamingConfig extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class StreamingConfig extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig)
       StreamingConfigOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use StreamingConfig.newBuilder() to construct.
     private StreamingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private StreamingConfig() {
       filter_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new StreamingConfig();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private StreamingConfig(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -276,20 +235,19 @@ private StreamingConfig(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                filter_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              filter_ = s;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -297,33 +255,29 @@ private StreamingConfig(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.NotificationConfigProto
-          .internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.NotificationConfigProto.internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.NotificationConfigProto
-          .internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.NotificationConfigProto.internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.class,
-              com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder.class);
+              com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.class, com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder.class);
     }
 
     public static final int FILTER_FIELD_NUMBER = 1;
     private volatile java.lang.Object filter_;
     /**
-     *
-     *
      * 
      * Expression that defines the filter to apply across create/update events
      * of assets or findings as specified by the event type. The expression is a
@@ -344,7 +298,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string filter = 1; - * * @return The filter. */ @java.lang.Override @@ -353,15 +306,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
      * Expression that defines the filter to apply across create/update events
      * of assets or findings as specified by the event type. The expression is a
@@ -382,15 +334,16 @@ public java.lang.String getFilter() {
      * 
* * string filter = 1; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -399,7 +352,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -411,7 +363,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); } @@ -435,15 +388,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig other = - (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) obj; + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig other = (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) obj; - if (!getFilter().equals(other.getFilter())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -463,95 +416,87 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -561,8 +506,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The config for streaming-based notifications, which send each event as soon
      * as it is detected.
@@ -570,42 +513,38 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig)
         com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.securitycenter.v1.NotificationConfigProto
-            .internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.securitycenter.v1.NotificationConfigProto.internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.securitycenter.v1.NotificationConfigProto
-            .internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_fieldAccessorTable
+        return com.google.cloud.securitycenter.v1.NotificationConfigProto.internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.class,
-                com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder
-                    .class);
+                com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.class, com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.newBuilder()
+      // Construct using com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -615,22 +554,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.securitycenter.v1.NotificationConfigProto
-            .internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.securitycenter.v1.NotificationConfigProto.internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig
-          getDefaultInstanceForType() {
-        return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig
-            .getDefaultInstance();
+      public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig getDefaultInstanceForType() {
+        return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig build() {
-        com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig result =
-            buildPartial();
+        com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -639,8 +575,7 @@ public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig bui
 
       @java.lang.Override
       public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig buildPartial() {
-        com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig result =
-            new com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig(this);
+        com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig result = new com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig(this);
         result.filter_ = filter_;
         onBuilt();
         return result;
@@ -650,54 +585,46 @@ public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig bui
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other
-            instanceof com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) {
-          return mergeFrom(
-              (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) other);
+        if (other instanceof com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) {
+          return mergeFrom((com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig other) {
-        if (other
-            == com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig other) {
+        if (other == com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.getDefaultInstance()) return this;
         if (!other.getFilter().isEmpty()) {
           filter_ = other.filter_;
           onChanged();
@@ -721,9 +648,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -735,8 +660,6 @@ public Builder mergeFrom(
 
       private java.lang.Object filter_ = "";
       /**
-       *
-       *
        * 
        * Expression that defines the filter to apply across create/update events
        * of assets or findings as specified by the event type. The expression is a
@@ -757,13 +680,13 @@ public Builder mergeFrom(
        * 
* * string filter = 1; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -772,8 +695,6 @@ public java.lang.String getFilter() { } } /** - * - * *
        * Expression that defines the filter to apply across create/update events
        * of assets or findings as specified by the event type. The expression is a
@@ -794,14 +715,15 @@ public java.lang.String getFilter() {
        * 
* * string filter = 1; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -809,8 +731,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
        * Expression that defines the filter to apply across create/update events
        * of assets or findings as specified by the event type. The expression is a
@@ -831,22 +751,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
        * 
* * string filter = 1; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
        * Expression that defines the filter to apply across create/update events
        * of assets or findings as specified by the event type. The expression is a
@@ -867,18 +785,15 @@ public Builder setFilter(java.lang.String value) {
        * 
* * string filter = 1; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
        * Expression that defines the filter to apply across create/update events
        * of assets or findings as specified by the event type. The expression is a
@@ -899,21 +814,20 @@ public Builder clearFilter() {
        * 
* * string filter = 1; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -926,33 +840,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) - private static final com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig(); + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig(); } - public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -964,23 +875,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int notifyConfigCase_ = 0; private java.lang.Object notifyConfig_; - public enum NotifyConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STREAMING_CONFIG(5), NOTIFYCONFIG_NOT_SET(0); private final int value; - private NotifyConfigCase(int value) { this.value = value; } @@ -996,29 +904,25 @@ public static NotifyConfigCase valueOf(int value) { public static NotifyConfigCase forNumber(int value) { switch (value) { - case 5: - return STREAMING_CONFIG; - case 0: - return NOTIFYCONFIG_NOT_SET; - default: - return null; + case 5: return STREAMING_CONFIG; + case 0: return NOTIFYCONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public NotifyConfigCase getNotifyConfigCase() { - return NotifyConfigCase.forNumber(notifyConfigCase_); + public NotifyConfigCase + getNotifyConfigCase() { + return NotifyConfigCase.forNumber( + notifyConfigCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The relative resource name of this notification config. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1027,7 +931,6 @@ public NotifyConfigCase getNotifyConfigCase() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1036,15 +939,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The relative resource name of this notification config. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1053,15 +955,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1072,14 +975,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * The description of the notification config (max of 1024 characters).
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -1088,29 +988,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * The description of the notification config (max of 1024 characters).
    * 
* * string description = 2; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1121,15 +1021,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int PUBSUB_TOPIC_FIELD_NUMBER = 3; private volatile java.lang.Object pubsubTopic_; /** - * - * *
    * The Pub/Sub topic to send notifications to. Its format is
    * "projects/[project_id]/topics/[topic]".
    * 
* * string pubsub_topic = 3 [(.google.api.resource_reference) = { ... } - * * @return The pubsubTopic. */ @java.lang.Override @@ -1138,30 +1035,30 @@ public java.lang.String getPubsubTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopic_ = s; return s; } } /** - * - * *
    * The Pub/Sub topic to send notifications to. Its format is
    * "projects/[project_id]/topics/[topic]".
    * 
* * string pubsub_topic = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for pubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString getPubsubTopicBytes() { + public com.google.protobuf.ByteString + getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pubsubTopic_ = b; return b; } else { @@ -1172,15 +1069,12 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 4; private volatile java.lang.Object serviceAccount_; /** - * - * *
    * Output only. The service account that needs "pubsub.topics.publish"
    * permission to publish to the Pub/Sub topic.
    * 
* * string service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccount. */ @java.lang.Override @@ -1189,30 +1083,30 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** - * - * *
    * Output only. The service account that needs "pubsub.topics.publish"
    * permission to publish to the Pub/Sub topic.
    * 
* * string service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -1222,15 +1116,11 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { public static final int STREAMING_CONFIG_FIELD_NUMBER = 5; /** - * - * *
    * The config for triggering streaming-based notifications.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; - * - * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -1238,48 +1128,36 @@ public boolean hasStreamingConfig() { return notifyConfigCase_ == 5; } /** - * - * *
    * The config for triggering streaming-based notifications.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; - * - * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; * @return The streamingConfig. */ @java.lang.Override - public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig - getStreamingConfig() { + public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig getStreamingConfig() { if (notifyConfigCase_ == 5) { - return (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_; + return (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_; } - return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig - .getDefaultInstance(); + return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.getDefaultInstance(); } /** - * - * *
    * The config for triggering streaming-based notifications.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; - * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder - getStreamingConfigOrBuilder() { + public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder() { if (notifyConfigCase_ == 5) { - return (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_; + return (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_; } - return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig - .getDefaultInstance(); + return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1291,7 +1169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1305,8 +1184,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 4, serviceAccount_); } if (notifyConfigCase_ == 5) { - output.writeMessage( - 5, (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_); + output.writeMessage(5, (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_); } unknownFields.writeTo(output); } @@ -1330,11 +1208,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, serviceAccount_); } if (notifyConfigCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, - (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) - notifyConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1344,22 +1219,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.NotificationConfig)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.NotificationConfig other = - (com.google.cloud.securitycenter.v1.NotificationConfig) obj; + com.google.cloud.securitycenter.v1.NotificationConfig other = (com.google.cloud.securitycenter.v1.NotificationConfig) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getPubsubTopic().equals(other.getPubsubTopic())) return false; - if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getPubsubTopic() + .equals(other.getPubsubTopic())) return false; + if (!getServiceAccount() + .equals(other.getServiceAccount())) return false; if (!getNotifyConfigCase().equals(other.getNotifyConfigCase())) return false; switch (notifyConfigCase_) { case 5: - if (!getStreamingConfig().equals(other.getStreamingConfig())) return false; + if (!getStreamingConfig() + .equals(other.getStreamingConfig())) return false; break; case 0: default: @@ -1397,104 +1276,96 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.NotificationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.NotificationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.NotificationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.NotificationConfig prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.NotificationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Cloud Security Command Center (Cloud SCC) notification configs.
    * A notification config is a Cloud SCC resource that contains the configuration
@@ -1503,23 +1374,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.NotificationConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.NotificationConfig)
       com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.NotificationConfigProto
-          .internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.NotificationConfigProto.internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.NotificationConfigProto
-          .internal_static_google_cloud_securitycenter_v1_NotificationConfig_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.NotificationConfigProto.internal_static_google_cloud_securitycenter_v1_NotificationConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.NotificationConfig.class,
-              com.google.cloud.securitycenter.v1.NotificationConfig.Builder.class);
+              com.google.cloud.securitycenter.v1.NotificationConfig.class, com.google.cloud.securitycenter.v1.NotificationConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.NotificationConfig.newBuilder()
@@ -1527,15 +1396,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1553,9 +1423,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.NotificationConfigProto
-          .internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.NotificationConfigProto.internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1574,8 +1444,7 @@ public com.google.cloud.securitycenter.v1.NotificationConfig build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.NotificationConfig buildPartial() {
-      com.google.cloud.securitycenter.v1.NotificationConfig result =
-          new com.google.cloud.securitycenter.v1.NotificationConfig(this);
+      com.google.cloud.securitycenter.v1.NotificationConfig result = new com.google.cloud.securitycenter.v1.NotificationConfig(this);
       result.name_ = name_;
       result.description_ = description_;
       result.pubsubTopic_ = pubsubTopic_;
@@ -1596,39 +1465,38 @@ public com.google.cloud.securitycenter.v1.NotificationConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.NotificationConfig) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.NotificationConfig) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.NotificationConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1636,8 +1504,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1.NotificationConfig other) {
-      if (other == com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1655,15 +1522,13 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.NotificationConfig o
         onChanged();
       }
       switch (other.getNotifyConfigCase()) {
-        case STREAMING_CONFIG:
-          {
-            mergeStreamingConfig(other.getStreamingConfig());
-            break;
-          }
-        case NOTIFYCONFIG_NOT_SET:
-          {
-            break;
-          }
+        case STREAMING_CONFIG: {
+          mergeStreamingConfig(other.getStreamingConfig());
+          break;
+        }
+        case NOTIFYCONFIG_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1684,8 +1549,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.securitycenter.v1.NotificationConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.securitycenter.v1.NotificationConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1694,12 +1558,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int notifyConfigCase_ = 0;
     private java.lang.Object notifyConfig_;
-
-    public NotifyConfigCase getNotifyConfigCase() {
-      return NotifyConfigCase.forNumber(notifyConfigCase_);
+    public NotifyConfigCase
+        getNotifyConfigCase() {
+      return NotifyConfigCase.forNumber(
+          notifyConfigCase_);
     }
 
     public Builder clearNotifyConfig() {
@@ -1709,10 +1573,9 @@ public Builder clearNotifyConfig() {
       return this;
     }
 
+
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The relative resource name of this notification config. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1721,13 +1584,13 @@ public Builder clearNotifyConfig() {
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1736,8 +1599,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The relative resource name of this notification config. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1746,14 +1607,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1761,8 +1623,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The relative resource name of this notification config. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1771,22 +1631,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The relative resource name of this notification config. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1795,18 +1653,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The relative resource name of this notification config. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1815,16 +1670,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1832,20 +1687,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * The description of the notification config (max of 1024 characters).
      * 
* * string description = 2; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1854,21 +1707,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * The description of the notification config (max of 1024 characters).
      * 
* * string description = 2; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1876,61 +1728,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * The description of the notification config (max of 1024 characters).
      * 
* * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * The description of the notification config (max of 1024 characters).
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * The description of the notification config (max of 1024 characters).
      * 
* * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1938,21 +1783,19 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object pubsubTopic_ = ""; /** - * - * *
      * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* * string pubsub_topic = 3 [(.google.api.resource_reference) = { ... } - * * @return The pubsubTopic. */ public java.lang.String getPubsubTopic() { java.lang.Object ref = pubsubTopic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopic_ = s; return s; @@ -1961,22 +1804,21 @@ public java.lang.String getPubsubTopic() { } } /** - * - * *
      * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* * string pubsub_topic = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for pubsubTopic. */ - public com.google.protobuf.ByteString getPubsubTopicBytes() { + public com.google.protobuf.ByteString + getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pubsubTopic_ = b; return b; } else { @@ -1984,64 +1826,57 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { } } /** - * - * *
      * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* * string pubsub_topic = 3 [(.google.api.resource_reference) = { ... } - * * @param value The pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopic(java.lang.String value) { + public Builder setPubsubTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pubsubTopic_ = value; onChanged(); return this; } /** - * - * *
      * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* * string pubsub_topic = 3 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearPubsubTopic() { - + pubsubTopic_ = getDefaultInstance().getPubsubTopic(); onChanged(); return this; } /** - * - * *
      * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* * string pubsub_topic = 3 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { + public Builder setPubsubTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pubsubTopic_ = value; onChanged(); return this; @@ -2049,21 +1884,19 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAccount_ = ""; /** - * - * *
      * Output only. The service account that needs "pubsub.topics.publish"
      * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -2072,22 +1905,21 @@ public java.lang.String getServiceAccount() { } } /** - * - * *
      * Output only. The service account that needs "pubsub.topics.publish"
      * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -2095,85 +1927,70 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } /** - * - * *
      * Output only. The service account that needs "pubsub.topics.publish"
      * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount(java.lang.String value) { + public Builder setServiceAccount( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The service account that needs "pubsub.topics.publish"
      * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearServiceAccount() { - + serviceAccount_ = getDefaultInstance().getServiceAccount(); onChanged(); return this; } /** - * - * *
      * Output only. The service account that needs "pubsub.topics.publish"
      * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + public Builder setServiceAccountBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig, - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder, - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder> - streamingConfigBuilder_; + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig, com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder> streamingConfigBuilder_; /** - * - * *
      * The config for triggering streaming-based notifications.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; - * - * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -2181,49 +1998,35 @@ public boolean hasStreamingConfig() { return notifyConfigCase_ == 5; } /** - * - * *
      * The config for triggering streaming-based notifications.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; - * - * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; * @return The streamingConfig. */ @java.lang.Override - public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig - getStreamingConfig() { + public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig getStreamingConfig() { if (streamingConfigBuilder_ == null) { if (notifyConfigCase_ == 5) { - return (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) - notifyConfig_; + return (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_; } - return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig - .getDefaultInstance(); + return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.getDefaultInstance(); } else { if (notifyConfigCase_ == 5) { return streamingConfigBuilder_.getMessage(); } - return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig - .getDefaultInstance(); + return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.getDefaultInstance(); } } /** - * - * *
      * The config for triggering streaming-based notifications.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; - * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; */ - public Builder setStreamingConfig( - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig value) { + public Builder setStreamingConfig(com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig value) { if (streamingConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2237,19 +2040,14 @@ public Builder setStreamingConfig( return this; } /** - * - * *
      * The config for triggering streaming-based notifications.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; - * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; */ public Builder setStreamingConfig( - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder - builderForValue) { + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder builderForValue) { if (streamingConfigBuilder_ == null) { notifyConfig_ = builderForValue.build(); onChanged(); @@ -2260,29 +2058,18 @@ public Builder setStreamingConfig( return this; } /** - * - * *
      * The config for triggering streaming-based notifications.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; - * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; */ - public Builder mergeStreamingConfig( - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig value) { + public Builder mergeStreamingConfig(com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig value) { if (streamingConfigBuilder_ == null) { - if (notifyConfigCase_ == 5 - && notifyConfig_ - != com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig - .getDefaultInstance()) { - notifyConfig_ = - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.newBuilder( - (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) - notifyConfig_) - .mergeFrom(value) - .buildPartial(); + if (notifyConfigCase_ == 5 && + notifyConfig_ != com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.getDefaultInstance()) { + notifyConfig_ = com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.newBuilder((com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_) + .mergeFrom(value).buildPartial(); } else { notifyConfig_ = value; } @@ -2298,15 +2085,11 @@ public Builder mergeStreamingConfig( return this; } /** - * - * *
      * The config for triggering streaming-based notifications.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; - * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; */ public Builder clearStreamingConfig() { if (streamingConfigBuilder_ == null) { @@ -2325,86 +2108,61 @@ public Builder clearStreamingConfig() { return this; } /** - * - * *
      * The config for triggering streaming-based notifications.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; - * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; */ - public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder - getStreamingConfigBuilder() { + public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder getStreamingConfigBuilder() { return getStreamingConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The config for triggering streaming-based notifications.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; - * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder - getStreamingConfigOrBuilder() { + public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder() { if ((notifyConfigCase_ == 5) && (streamingConfigBuilder_ != null)) { return streamingConfigBuilder_.getMessageOrBuilder(); } else { if (notifyConfigCase_ == 5) { - return (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) - notifyConfig_; + return (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_; } - return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig - .getDefaultInstance(); + return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.getDefaultInstance(); } } /** - * - * *
      * The config for triggering streaming-based notifications.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; - * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig, - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder, - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder> + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig, com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder> getStreamingConfigFieldBuilder() { if (streamingConfigBuilder_ == null) { if (!(notifyConfigCase_ == 5)) { - notifyConfig_ = - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig - .getDefaultInstance(); + notifyConfig_ = com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.getDefaultInstance(); } - streamingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig, - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder, - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder>( - (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) - notifyConfig_, + streamingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig, com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder>( + (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_, getParentForChildren(), isClean()); notifyConfig_ = null; } notifyConfigCase_ = 5; - onChanged(); - ; + onChanged();; return streamingConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2414,12 +2172,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.NotificationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.NotificationConfig) private static final com.google.cloud.securitycenter.v1.NotificationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.NotificationConfig(); } @@ -2428,16 +2186,16 @@ public static com.google.cloud.securitycenter.v1.NotificationConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NotificationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NotificationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2452,4 +2210,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.NotificationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigName.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigName.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigName.java diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigOrBuilder.java similarity index 73% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigOrBuilder.java index 5ddb6f728..3f9eb801c 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/notification_config.proto package com.google.cloud.securitycenter.v1; -public interface NotificationConfigOrBuilder - extends +public interface NotificationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.NotificationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The relative resource name of this notification config. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -34,13 +16,10 @@ public interface NotificationConfigOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The relative resource name of this notification config. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -49,129 +28,101 @@ public interface NotificationConfigOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The description of the notification config (max of 1024 characters).
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * The description of the notification config (max of 1024 characters).
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * The Pub/Sub topic to send notifications to. Its format is
    * "projects/[project_id]/topics/[topic]".
    * 
* * string pubsub_topic = 3 [(.google.api.resource_reference) = { ... } - * * @return The pubsubTopic. */ java.lang.String getPubsubTopic(); /** - * - * *
    * The Pub/Sub topic to send notifications to. Its format is
    * "projects/[project_id]/topics/[topic]".
    * 
* * string pubsub_topic = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for pubsubTopic. */ - com.google.protobuf.ByteString getPubsubTopicBytes(); + com.google.protobuf.ByteString + getPubsubTopicBytes(); /** - * - * *
    * Output only. The service account that needs "pubsub.topics.publish"
    * permission to publish to the Pub/Sub topic.
    * 
* * string service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** - * - * *
    * Output only. The service account that needs "pubsub.topics.publish"
    * permission to publish to the Pub/Sub topic.
    * 
* * string service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString getServiceAccountBytes(); + com.google.protobuf.ByteString + getServiceAccountBytes(); /** - * - * *
    * The config for triggering streaming-based notifications.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; - * - * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; * @return Whether the streamingConfig field is set. */ boolean hasStreamingConfig(); /** - * - * *
    * The config for triggering streaming-based notifications.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; - * - * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; * @return The streamingConfig. */ com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig getStreamingConfig(); /** - * - * *
    * The config for triggering streaming-based notifications.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; - * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; */ - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder - getStreamingConfigOrBuilder(); + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder(); - public com.google.cloud.securitycenter.v1.NotificationConfig.NotifyConfigCase - getNotifyConfigCase(); + public com.google.cloud.securitycenter.v1.NotificationConfig.NotifyConfigCase getNotifyConfigCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigProto.java new file mode 100644 index 000000000..5ee99599b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigProto.java @@ -0,0 +1,91 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/notification_config.proto + +package com.google.cloud.securitycenter.v1; + +public final class NotificationConfigProto { + private NotificationConfigProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_NotificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/securitycenter/v1/notific" + + "ation_config.proto\022\036google.cloud.securit" + + "ycenter.v1\032\037google/api/field_behavior.pr" + + "oto\032\031google/api/resource.proto\"\240\003\n\022Notif" + + "icationConfig\022\014\n\004name\030\001 \001(\t\022\023\n\013descripti" + + "on\030\002 \001(\t\0226\n\014pubsub_topic\030\003 \001(\tB \372A\035\n\033pub" + + "sub.googleapis.com/Topic\022\034\n\017service_acco" + + "unt\030\004 \001(\tB\003\340A\003\022^\n\020streaming_config\030\005 \001(\013" + + "2B.google.cloud.securitycenter.v1.Notifi" + + "cationConfig.StreamingConfigH\000\032!\n\017Stream" + + "ingConfig\022\016\n\006filter\030\001 \001(\t:}\352Az\n0security" + + "center.googleapis.com/NotificationConfig" + + "\022Forganizations/{organization}/notificat" + + "ionConfigs/{notification_config}B\017\n\rnoti" + + "fy_configB\266\002\n\"com.google.cloud.securityc" + + "enter.v1B\027NotificationConfigProtoP\001ZLgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/securitycenter/v1;securitycenter\252\002\036Goog" + + "le.Cloud.SecurityCenter.V1\312\002\036Google\\Clou" + + "d\\SecurityCenter\\V1\352\002!Google::Cloud::Sec" + + "urityCenter::V1\352A@\n\033pubsub.googleapis.co" + + "m/Topic\022!projects/{project}/topics/{topi" + + "c}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_NotificationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor, + new java.lang.String[] { "Name", "Description", "PubsubTopic", "ServiceAccount", "StreamingConfig", "NotifyConfig", }); + internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor = + internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor, + new java.lang.String[] { "Filter", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java similarity index 71% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java index 7b4ba007e..99c83d9d1 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/notification_message.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Cloud SCC's Notification
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.NotificationMessage} */ -public final class NotificationMessage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NotificationMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.NotificationMessage) NotificationMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NotificationMessage.newBuilder() to construct. private NotificationMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NotificationMessage() { notificationConfigName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NotificationMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private NotificationMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,46 @@ private NotificationMessage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - notificationConfigName_ = s; - break; + notificationConfigName_ = s; + break; + } + case 18: { + com.google.cloud.securitycenter.v1.Finding.Builder subBuilder = null; + if (eventCase_ == 2) { + subBuilder = ((com.google.cloud.securitycenter.v1.Finding) event_).toBuilder(); } - case 18: - { - com.google.cloud.securitycenter.v1.Finding.Builder subBuilder = null; - if (eventCase_ == 2) { - subBuilder = ((com.google.cloud.securitycenter.v1.Finding) event_).toBuilder(); - } - event_ = - input.readMessage( - com.google.cloud.securitycenter.v1.Finding.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.securitycenter.v1.Finding) event_); - event_ = subBuilder.buildPartial(); - } - eventCase_ = 2; - break; + event_ = + input.readMessage(com.google.cloud.securitycenter.v1.Finding.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.securitycenter.v1.Finding) event_); + event_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.securitycenter.v1.Resource.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage( - com.google.cloud.securitycenter.v1.Resource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - - break; + eventCase_ = 2; + break; + } + case 26: { + com.google.cloud.securitycenter.v1.Resource.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = input.readMessage(com.google.cloud.securitycenter.v1.Resource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -123,39 +100,34 @@ private NotificationMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.NotificationMessageProto - .internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.NotificationMessageProto.internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.NotificationMessageProto - .internal_static_google_cloud_securitycenter_v1_NotificationMessage_fieldAccessorTable + return com.google.cloud.securitycenter.v1.NotificationMessageProto.internal_static_google_cloud_securitycenter_v1_NotificationMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.NotificationMessage.class, - com.google.cloud.securitycenter.v1.NotificationMessage.Builder.class); + com.google.cloud.securitycenter.v1.NotificationMessage.class, com.google.cloud.securitycenter.v1.NotificationMessage.Builder.class); } private int eventCase_ = 0; private java.lang.Object event_; - public enum EventCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FINDING(2), EVENT_NOT_SET(0); private final int value; - private EventCase(int value) { this.value = value; } @@ -171,35 +143,30 @@ public static EventCase valueOf(int value) { public static EventCase forNumber(int value) { switch (value) { - case 2: - return FINDING; - case 0: - return EVENT_NOT_SET; - default: - return null; + case 2: return FINDING; + case 0: return EVENT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public EventCase getEventCase() { - return EventCase.forNumber(eventCase_); + public EventCase + getEventCase() { + return EventCase.forNumber( + eventCase_); } public static final int NOTIFICATION_CONFIG_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object notificationConfigName_; /** - * - * *
    * Name of the notification config that generated current notification.
    * 
* * string notification_config_name = 1; - * * @return The notificationConfigName. */ @java.lang.Override @@ -208,29 +175,29 @@ public java.lang.String getNotificationConfigName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notificationConfigName_ = s; return s; } } /** - * - * *
    * Name of the notification config that generated current notification.
    * 
* * string notification_config_name = 1; - * * @return The bytes for notificationConfigName. */ @java.lang.Override - public com.google.protobuf.ByteString getNotificationConfigNameBytes() { + public com.google.protobuf.ByteString + getNotificationConfigNameBytes() { java.lang.Object ref = notificationConfigName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); notificationConfigName_ = b; return b; } else { @@ -240,15 +207,12 @@ public com.google.protobuf.ByteString getNotificationConfigNameBytes() { public static final int FINDING_FIELD_NUMBER = 2; /** - * - * *
    * If it's a Finding based notification config, this field will be
    * populated.
    * 
* * .google.cloud.securitycenter.v1.Finding finding = 2; - * * @return Whether the finding field is set. */ @java.lang.Override @@ -256,27 +220,22 @@ public boolean hasFinding() { return eventCase_ == 2; } /** - * - * *
    * If it's a Finding based notification config, this field will be
    * populated.
    * 
* * .google.cloud.securitycenter.v1.Finding finding = 2; - * * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding getFinding() { if (eventCase_ == 2) { - return (com.google.cloud.securitycenter.v1.Finding) event_; + return (com.google.cloud.securitycenter.v1.Finding) event_; } return com.google.cloud.securitycenter.v1.Finding.getDefaultInstance(); } /** - * - * *
    * If it's a Finding based notification config, this field will be
    * populated.
@@ -287,7 +246,7 @@ public com.google.cloud.securitycenter.v1.Finding getFinding() {
   @java.lang.Override
   public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() {
     if (eventCase_ == 2) {
-      return (com.google.cloud.securitycenter.v1.Finding) event_;
+       return (com.google.cloud.securitycenter.v1.Finding) event_;
     }
     return com.google.cloud.securitycenter.v1.Finding.getDefaultInstance();
   }
@@ -295,14 +254,11 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder()
   public static final int RESOURCE_FIELD_NUMBER = 3;
   private com.google.cloud.securitycenter.v1.Resource resource_;
   /**
-   *
-   *
    * 
    * The Cloud resource tied to this notification's Finding.
    * 
* * .google.cloud.securitycenter.v1.Resource resource = 3; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -310,25 +266,18 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * The Cloud resource tied to this notification's Finding.
    * 
* * .google.cloud.securitycenter.v1.Resource resource = 3; - * * @return The resource. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Resource getResource() { - return resource_ == null - ? com.google.cloud.securitycenter.v1.Resource.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.securitycenter.v1.Resource.getDefaultInstance() : resource_; } /** - * - * *
    * The Cloud resource tied to this notification's Finding.
    * 
@@ -341,7 +290,6 @@ public com.google.cloud.securitycenter.v1.ResourceOrBuilder getResourceOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -353,7 +301,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notificationConfigName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, notificationConfigName_); } @@ -376,12 +325,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, notificationConfigName_); } if (eventCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.securitycenter.v1.Finding) event_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.securitycenter.v1.Finding) event_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -391,23 +340,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.NotificationMessage)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.NotificationMessage other = - (com.google.cloud.securitycenter.v1.NotificationMessage) obj; + com.google.cloud.securitycenter.v1.NotificationMessage other = (com.google.cloud.securitycenter.v1.NotificationMessage) obj; - if (!getNotificationConfigName().equals(other.getNotificationConfigName())) return false; + if (!getNotificationConfigName() + .equals(other.getNotificationConfigName())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } if (!getEventCase().equals(other.getEventCase())) return false; switch (eventCase_) { case 2: - if (!getFinding().equals(other.getFinding())) return false; + if (!getFinding() + .equals(other.getFinding())) return false; break; case 0: default: @@ -443,127 +394,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.NotificationMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.NotificationMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.NotificationMessage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.NotificationMessage prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.NotificationMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Cloud SCC's Notification
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.NotificationMessage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.NotificationMessage) com.google.cloud.securitycenter.v1.NotificationMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.NotificationMessageProto - .internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.NotificationMessageProto.internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.NotificationMessageProto - .internal_static_google_cloud_securitycenter_v1_NotificationMessage_fieldAccessorTable + return com.google.cloud.securitycenter.v1.NotificationMessageProto.internal_static_google_cloud_securitycenter_v1_NotificationMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.NotificationMessage.class, - com.google.cloud.securitycenter.v1.NotificationMessage.Builder.class); + com.google.cloud.securitycenter.v1.NotificationMessage.class, com.google.cloud.securitycenter.v1.NotificationMessage.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.NotificationMessage.newBuilder() @@ -571,15 +512,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -597,9 +539,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.NotificationMessageProto - .internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.NotificationMessageProto.internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor; } @java.lang.Override @@ -618,8 +560,7 @@ public com.google.cloud.securitycenter.v1.NotificationMessage build() { @java.lang.Override public com.google.cloud.securitycenter.v1.NotificationMessage buildPartial() { - com.google.cloud.securitycenter.v1.NotificationMessage result = - new com.google.cloud.securitycenter.v1.NotificationMessage(this); + com.google.cloud.securitycenter.v1.NotificationMessage result = new com.google.cloud.securitycenter.v1.NotificationMessage(this); result.notificationConfigName_ = notificationConfigName_; if (eventCase_ == 2) { if (findingBuilder_ == null) { @@ -642,39 +583,38 @@ public com.google.cloud.securitycenter.v1.NotificationMessage buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.NotificationMessage) { - return mergeFrom((com.google.cloud.securitycenter.v1.NotificationMessage) other); + return mergeFrom((com.google.cloud.securitycenter.v1.NotificationMessage)other); } else { super.mergeFrom(other); return this; @@ -682,8 +622,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.NotificationMessage other) { - if (other == com.google.cloud.securitycenter.v1.NotificationMessage.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.NotificationMessage.getDefaultInstance()) return this; if (!other.getNotificationConfigName().isEmpty()) { notificationConfigName_ = other.notificationConfigName_; onChanged(); @@ -692,15 +631,13 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.NotificationMessage mergeResource(other.getResource()); } switch (other.getEventCase()) { - case FINDING: - { - mergeFinding(other.getFinding()); - break; - } - case EVENT_NOT_SET: - { - break; - } + case FINDING: { + mergeFinding(other.getFinding()); + break; + } + case EVENT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -721,8 +658,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.NotificationMessage) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.NotificationMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -731,12 +667,12 @@ public Builder mergeFrom( } return this; } - private int eventCase_ = 0; private java.lang.Object event_; - - public EventCase getEventCase() { - return EventCase.forNumber(eventCase_); + public EventCase + getEventCase() { + return EventCase.forNumber( + eventCase_); } public Builder clearEvent() { @@ -746,22 +682,21 @@ public Builder clearEvent() { return this; } + private java.lang.Object notificationConfigName_ = ""; /** - * - * *
      * Name of the notification config that generated current notification.
      * 
* * string notification_config_name = 1; - * * @return The notificationConfigName. */ public java.lang.String getNotificationConfigName() { java.lang.Object ref = notificationConfigName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notificationConfigName_ = s; return s; @@ -770,21 +705,20 @@ public java.lang.String getNotificationConfigName() { } } /** - * - * *
      * Name of the notification config that generated current notification.
      * 
* * string notification_config_name = 1; - * * @return The bytes for notificationConfigName. */ - public com.google.protobuf.ByteString getNotificationConfigNameBytes() { + public com.google.protobuf.ByteString + getNotificationConfigNameBytes() { java.lang.Object ref = notificationConfigName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); notificationConfigName_ = b; return b; } else { @@ -792,81 +726,68 @@ public com.google.protobuf.ByteString getNotificationConfigNameBytes() { } } /** - * - * *
      * Name of the notification config that generated current notification.
      * 
* * string notification_config_name = 1; - * * @param value The notificationConfigName to set. * @return This builder for chaining. */ - public Builder setNotificationConfigName(java.lang.String value) { + public Builder setNotificationConfigName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + notificationConfigName_ = value; onChanged(); return this; } /** - * - * *
      * Name of the notification config that generated current notification.
      * 
* * string notification_config_name = 1; - * * @return This builder for chaining. */ public Builder clearNotificationConfigName() { - + notificationConfigName_ = getDefaultInstance().getNotificationConfigName(); onChanged(); return this; } /** - * - * *
      * Name of the notification config that generated current notification.
      * 
* * string notification_config_name = 1; - * * @param value The bytes for notificationConfigName to set. * @return This builder for chaining. */ - public Builder setNotificationConfigNameBytes(com.google.protobuf.ByteString value) { + public Builder setNotificationConfigNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + notificationConfigName_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Finding, - com.google.cloud.securitycenter.v1.Finding.Builder, - com.google.cloud.securitycenter.v1.FindingOrBuilder> - findingBuilder_; + com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder> findingBuilder_; /** - * - * *
      * If it's a Finding based notification config, this field will be
      * populated.
      * 
* * .google.cloud.securitycenter.v1.Finding finding = 2; - * * @return Whether the finding field is set. */ @java.lang.Override @@ -874,15 +795,12 @@ public boolean hasFinding() { return eventCase_ == 2; } /** - * - * *
      * If it's a Finding based notification config, this field will be
      * populated.
      * 
* * .google.cloud.securitycenter.v1.Finding finding = 2; - * * @return The finding. */ @java.lang.Override @@ -900,8 +818,6 @@ public com.google.cloud.securitycenter.v1.Finding getFinding() { } } /** - * - * *
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -923,8 +839,6 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -932,7 +846,8 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) {
      *
      * .google.cloud.securitycenter.v1.Finding finding = 2;
      */
-    public Builder setFinding(com.google.cloud.securitycenter.v1.Finding.Builder builderForValue) {
+    public Builder setFinding(
+        com.google.cloud.securitycenter.v1.Finding.Builder builderForValue) {
       if (findingBuilder_ == null) {
         event_ = builderForValue.build();
         onChanged();
@@ -943,8 +858,6 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding.Builder bui
       return this;
     }
     /**
-     *
-     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -954,13 +867,10 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding.Builder bui
      */
     public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) {
       if (findingBuilder_ == null) {
-        if (eventCase_ == 2
-            && event_ != com.google.cloud.securitycenter.v1.Finding.getDefaultInstance()) {
-          event_ =
-              com.google.cloud.securitycenter.v1.Finding.newBuilder(
-                      (com.google.cloud.securitycenter.v1.Finding) event_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (eventCase_ == 2 &&
+            event_ != com.google.cloud.securitycenter.v1.Finding.getDefaultInstance()) {
+          event_ = com.google.cloud.securitycenter.v1.Finding.newBuilder((com.google.cloud.securitycenter.v1.Finding) event_)
+              .mergeFrom(value).buildPartial();
         } else {
           event_ = value;
         }
@@ -976,8 +886,6 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -1002,8 +910,6 @@ public Builder clearFinding() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -1015,8 +921,6 @@ public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() {
       return getFindingFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -1036,8 +940,6 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder()
       }
     }
     /**
-     *
-     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -1046,73 +948,54 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder()
      * .google.cloud.securitycenter.v1.Finding finding = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Finding,
-            com.google.cloud.securitycenter.v1.Finding.Builder,
-            com.google.cloud.securitycenter.v1.FindingOrBuilder>
+        com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder> 
         getFindingFieldBuilder() {
       if (findingBuilder_ == null) {
         if (!(eventCase_ == 2)) {
           event_ = com.google.cloud.securitycenter.v1.Finding.getDefaultInstance();
         }
-        findingBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.securitycenter.v1.Finding,
-                com.google.cloud.securitycenter.v1.Finding.Builder,
-                com.google.cloud.securitycenter.v1.FindingOrBuilder>(
+        findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder>(
                 (com.google.cloud.securitycenter.v1.Finding) event_,
                 getParentForChildren(),
                 isClean());
         event_ = null;
       }
       eventCase_ = 2;
-      onChanged();
-      ;
+      onChanged();;
       return findingBuilder_;
     }
 
     private com.google.cloud.securitycenter.v1.Resource resource_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Resource,
-            com.google.cloud.securitycenter.v1.Resource.Builder,
-            com.google.cloud.securitycenter.v1.ResourceOrBuilder>
-        resourceBuilder_;
+        com.google.cloud.securitycenter.v1.Resource, com.google.cloud.securitycenter.v1.Resource.Builder, com.google.cloud.securitycenter.v1.ResourceOrBuilder> resourceBuilder_;
     /**
-     *
-     *
      * 
      * The Cloud resource tied to this notification's Finding.
      * 
* * .google.cloud.securitycenter.v1.Resource resource = 3; - * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
      * The Cloud resource tied to this notification's Finding.
      * 
* * .google.cloud.securitycenter.v1.Resource resource = 3; - * * @return The resource. */ public com.google.cloud.securitycenter.v1.Resource getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.securitycenter.v1.Resource.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.securitycenter.v1.Resource.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
      * The Cloud resource tied to this notification's Finding.
      * 
@@ -1133,8 +1016,6 @@ public Builder setResource(com.google.cloud.securitycenter.v1.Resource value) { return this; } /** - * - * *
      * The Cloud resource tied to this notification's Finding.
      * 
@@ -1153,8 +1034,6 @@ public Builder setResource( return this; } /** - * - * *
      * The Cloud resource tied to this notification's Finding.
      * 
@@ -1165,9 +1044,7 @@ public Builder mergeResource(com.google.cloud.securitycenter.v1.Resource value) if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.securitycenter.v1.Resource.newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -1179,8 +1056,6 @@ public Builder mergeResource(com.google.cloud.securitycenter.v1.Resource value) return this; } /** - * - * *
      * The Cloud resource tied to this notification's Finding.
      * 
@@ -1199,8 +1074,6 @@ public Builder clearResource() { return this; } /** - * - * *
      * The Cloud resource tied to this notification's Finding.
      * 
@@ -1208,13 +1081,11 @@ public Builder clearResource() { * .google.cloud.securitycenter.v1.Resource resource = 3; */ public com.google.cloud.securitycenter.v1.Resource.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
      * The Cloud resource tied to this notification's Finding.
      * 
@@ -1225,14 +1096,11 @@ public com.google.cloud.securitycenter.v1.ResourceOrBuilder getResourceOrBuilder if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.cloud.securitycenter.v1.Resource.getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.cloud.securitycenter.v1.Resource.getDefaultInstance() : resource_; } } /** - * - * *
      * The Cloud resource tied to this notification's Finding.
      * 
@@ -1240,24 +1108,21 @@ public com.google.cloud.securitycenter.v1.ResourceOrBuilder getResourceOrBuilder * .google.cloud.securitycenter.v1.Resource resource = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Resource, - com.google.cloud.securitycenter.v1.Resource.Builder, - com.google.cloud.securitycenter.v1.ResourceOrBuilder> + com.google.cloud.securitycenter.v1.Resource, com.google.cloud.securitycenter.v1.Resource.Builder, com.google.cloud.securitycenter.v1.ResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Resource, - com.google.cloud.securitycenter.v1.Resource.Builder, - com.google.cloud.securitycenter.v1.ResourceOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Resource, com.google.cloud.securitycenter.v1.Resource.Builder, com.google.cloud.securitycenter.v1.ResourceOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1267,12 +1132,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.NotificationMessage) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.NotificationMessage) private static final com.google.cloud.securitycenter.v1.NotificationMessage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.NotificationMessage(); } @@ -1281,16 +1146,16 @@ public static com.google.cloud.securitycenter.v1.NotificationMessage getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NotificationMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NotificationMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1305,4 +1170,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.NotificationMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java similarity index 74% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java index b0eb24c94..5ebcfcf24 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java @@ -1,82 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/notification_message.proto package com.google.cloud.securitycenter.v1; -public interface NotificationMessageOrBuilder - extends +public interface NotificationMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.NotificationMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Name of the notification config that generated current notification.
    * 
* * string notification_config_name = 1; - * * @return The notificationConfigName. */ java.lang.String getNotificationConfigName(); /** - * - * *
    * Name of the notification config that generated current notification.
    * 
* * string notification_config_name = 1; - * * @return The bytes for notificationConfigName. */ - com.google.protobuf.ByteString getNotificationConfigNameBytes(); + com.google.protobuf.ByteString + getNotificationConfigNameBytes(); /** - * - * *
    * If it's a Finding based notification config, this field will be
    * populated.
    * 
* * .google.cloud.securitycenter.v1.Finding finding = 2; - * * @return Whether the finding field is set. */ boolean hasFinding(); /** - * - * *
    * If it's a Finding based notification config, this field will be
    * populated.
    * 
* * .google.cloud.securitycenter.v1.Finding finding = 2; - * * @return The finding. */ com.google.cloud.securitycenter.v1.Finding getFinding(); /** - * - * *
    * If it's a Finding based notification config, this field will be
    * populated.
@@ -87,32 +58,24 @@ public interface NotificationMessageOrBuilder
   com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder();
 
   /**
-   *
-   *
    * 
    * The Cloud resource tied to this notification's Finding.
    * 
* * .google.cloud.securitycenter.v1.Resource resource = 3; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * The Cloud resource tied to this notification's Finding.
    * 
* * .google.cloud.securitycenter.v1.Resource resource = 3; - * * @return The resource. */ com.google.cloud.securitycenter.v1.Resource getResource(); /** - * - * *
    * The Cloud resource tied to this notification's Finding.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java new file mode 100644 index 000000000..79b163d15 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/notification_message.proto + +package com.google.cloud.securitycenter.v1; + +public final class NotificationMessageProto { + private NotificationMessageProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_NotificationMessage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/securitycenter/v1/notific" + + "ation_message.proto\022\036google.cloud.securi" + + "tycenter.v1\032,google/cloud/securitycenter" + + "/v1/finding.proto\032-google/cloud/security" + + "center/v1/resource.proto\"\270\001\n\023Notificatio" + + "nMessage\022 \n\030notification_config_name\030\001 \001" + + "(\t\022:\n\007finding\030\002 \001(\0132\'.google.cloud.secur" + + "itycenter.v1.FindingH\000\022:\n\010resource\030\003 \001(\013" + + "2(.google.cloud.securitycenter.v1.Resour" + + "ceB\007\n\005eventB\364\001\n\"com.google.cloud.securit" + + "ycenter.v1B\030NotificationMessageProtoP\001ZL" + + "google.golang.org/genproto/googleapis/cl" + + "oud/securitycenter/v1;securitycenter\252\002\036G" + + "oogle.Cloud.SecurityCenter.V1\312\002\036Google\\C" + + "loud\\SecurityCenter\\V1\352\002!Google::Cloud::" + + "SecurityCenter::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_NotificationMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor, + new java.lang.String[] { "NotificationConfigName", "Finding", "Resource", "Event", }); + com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java similarity index 67% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java index 44ae9c17c..41b7b88d4 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/organization_settings.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * User specified settings that are attached to the Security Command
  * Center organization.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.OrganizationSettings}
  */
-public final class OrganizationSettings extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class OrganizationSettings extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.OrganizationSettings)
     OrganizationSettingsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use OrganizationSettings.newBuilder() to construct.
   private OrganizationSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private OrganizationSettings() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new OrganizationSettings();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private OrganizationSettings(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,44 +54,37 @@ private OrganizationSettings(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 16: {
+
+            enableAssetDiscovery_ = input.readBool();
+            break;
+          }
+          case 26: {
+            com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder subBuilder = null;
+            if (assetDiscoveryConfig_ != null) {
+              subBuilder = assetDiscoveryConfig_.toBuilder();
             }
-          case 16:
-            {
-              enableAssetDiscovery_ = input.readBool();
-              break;
+            assetDiscoveryConfig_ = input.readMessage(com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(assetDiscoveryConfig_);
+              assetDiscoveryConfig_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder
-                  subBuilder = null;
-              if (assetDiscoveryConfig_ != null) {
-                subBuilder = assetDiscoveryConfig_.toBuilder();
-              }
-              assetDiscoveryConfig_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(assetDiscoveryConfig_);
-                assetDiscoveryConfig_ = subBuilder.buildPartial();
-              }
 
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -116,188 +92,151 @@ private OrganizationSettings(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass
-        .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass
-        .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.OrganizationSettings.class,
-            com.google.cloud.securitycenter.v1.OrganizationSettings.Builder.class);
+            com.google.cloud.securitycenter.v1.OrganizationSettings.class, com.google.cloud.securitycenter.v1.OrganizationSettings.Builder.class);
   }
 
-  public interface AssetDiscoveryConfigOrBuilder
-      extends
+  public interface AssetDiscoveryConfigOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @return A list containing the projectIds. */ - java.util.List getProjectIdsList(); + java.util.List + getProjectIdsList(); /** - * - * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @return The count of projectIds. */ int getProjectIdsCount(); /** - * - * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @param index The index of the element to return. * @return The projectIds at the given index. */ java.lang.String getProjectIds(int index); /** - * - * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @param index The index of the value to return. * @return The bytes of the projectIds at the given index. */ - com.google.protobuf.ByteString getProjectIdsBytes(int index); + com.google.protobuf.ByteString + getProjectIdsBytes(int index); /** - * - * *
      * The mode to use for filtering asset discovery.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return The enum numeric value on the wire for inclusionMode. */ int getInclusionModeValue(); /** - * - * *
      * The mode to use for filtering asset discovery.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return The inclusionMode. */ - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode - getInclusionMode(); + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode(); /** - * - * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; - * * @return A list containing the folderIds. */ - java.util.List getFolderIdsList(); + java.util.List + getFolderIdsList(); /** - * - * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; - * * @return The count of folderIds. */ int getFolderIdsCount(); /** - * - * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; - * * @param index The index of the element to return. * @return The folderIds at the given index. */ java.lang.String getFolderIds(int index); /** - * - * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; - * * @param index The index of the value to return. * @return The bytes of the folderIds at the given index. */ - com.google.protobuf.ByteString getFolderIdsBytes(int index); + com.google.protobuf.ByteString + getFolderIdsBytes(int index); } /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig} */ - public static final class AssetDiscoveryConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AssetDiscoveryConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) AssetDiscoveryConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AssetDiscoveryConfig.newBuilder() to construct. private AssetDiscoveryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AssetDiscoveryConfig() { projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; inclusionMode_ = 0; @@ -306,15 +245,16 @@ private AssetDiscoveryConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AssetDiscoveryConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AssetDiscoveryConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -334,40 +274,37 @@ private AssetDiscoveryConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - projectIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - projectIds_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + projectIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 16: - { - int rawValue = input.readEnum(); + projectIds_.add(s); + break; + } + case 16: { + int rawValue = input.readEnum(); - inclusionMode_ = rawValue; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - folderIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - folderIds_.add(s); - break; + inclusionMode_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + folderIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + folderIds_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -375,7 +312,8 @@ private AssetDiscoveryConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { projectIds_ = projectIds_.getUnmodifiableView(); @@ -387,26 +325,20 @@ private AssetDiscoveryConfig( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass - .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass - .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable + return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.class, - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder - .class); + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.class, com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder.class); } /** - * - * *
      * The mode of inclusion when running Asset Discovery.
      * Asset discovery can be limited by explicitly identifying projects to be
@@ -418,13 +350,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * discovery.
      * 
* - * Protobuf enum {@code - * google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode} + * Protobuf enum {@code google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode} */ - public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum { + public enum InclusionMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unspecified. Setting the mode with this value will disable
        * inclusion/exclusion filtering for Asset Discovery.
@@ -434,8 +364,6 @@ public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum {
        */
       INCLUSION_MODE_UNSPECIFIED(0),
       /**
-       *
-       *
        * 
        * Asset Discovery will capture only the resources within the projects
        * specified. All other resources will be ignored.
@@ -445,8 +373,6 @@ public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum {
        */
       INCLUDE_ONLY(1),
       /**
-       *
-       *
        * 
        * Asset Discovery will ignore all resources under the projects specified.
        * All other resources will be retrieved.
@@ -459,8 +385,6 @@ public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * Unspecified. Setting the mode with this value will disable
        * inclusion/exclusion filtering for Asset Discovery.
@@ -470,8 +394,6 @@ public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int INCLUSION_MODE_UNSPECIFIED_VALUE = 0;
       /**
-       *
-       *
        * 
        * Asset Discovery will capture only the resources within the projects
        * specified. All other resources will be ignored.
@@ -481,8 +403,6 @@ public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int INCLUDE_ONLY_VALUE = 1;
       /**
-       *
-       *
        * 
        * Asset Discovery will ignore all resources under the projects specified.
        * All other resources will be retrieved.
@@ -492,6 +412,7 @@ public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int EXCLUDE_VALUE = 2;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -516,46 +437,40 @@ public static InclusionMode valueOf(int value) {
        */
       public static InclusionMode forNumber(int value) {
         switch (value) {
-          case 0:
-            return INCLUSION_MODE_UNSPECIFIED;
-          case 1:
-            return INCLUDE_ONLY;
-          case 2:
-            return EXCLUDE;
-          default:
-            return null;
+          case 0: return INCLUSION_MODE_UNSPECIFIED;
+          case 1: return INCLUDE_ONLY;
+          case 2: return EXCLUDE;
+          default: return null;
         }
       }
 
-      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+      public static com.google.protobuf.Internal.EnumLiteMap
+          internalGetValueMap() {
         return internalValueMap;
       }
+      private static final com.google.protobuf.Internal.EnumLiteMap<
+          InclusionMode> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public InclusionMode findValueByNumber(int number) {
+                return InclusionMode.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap
-          internalValueMap =
-              new com.google.protobuf.Internal.EnumLiteMap() {
-                public InclusionMode findValueByNumber(int number) {
-                  return InclusionMode.forNumber(number);
-                }
-              };
-
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor
+          getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-
-      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+      public final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptorForType() {
         return getDescriptor();
       }
-
-      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-        return com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig
-            .getDescriptor()
-            .getEnumTypes()
-            .get(0);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final InclusionMode[] VALUES = values();
@@ -563,7 +478,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
       public static InclusionMode valueOf(
           com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException(
+            "EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -583,42 +499,34 @@ private InclusionMode(int value) {
     public static final int PROJECT_IDS_FIELD_NUMBER = 1;
     private com.google.protobuf.LazyStringList projectIds_;
     /**
-     *
-     *
      * 
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @return A list containing the projectIds. */ - public com.google.protobuf.ProtocolStringList getProjectIdsList() { + public com.google.protobuf.ProtocolStringList + getProjectIdsList() { return projectIds_; } /** - * - * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @return The count of projectIds. */ public int getProjectIdsCount() { return projectIds_.size(); } /** - * - * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @param index The index of the element to return. * @return The projectIds at the given index. */ @@ -626,110 +534,80 @@ public java.lang.String getProjectIds(int index) { return projectIds_.get(index); } /** - * - * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @param index The index of the value to return. * @return The bytes of the projectIds at the given index. */ - public com.google.protobuf.ByteString getProjectIdsBytes(int index) { + public com.google.protobuf.ByteString + getProjectIdsBytes(int index) { return projectIds_.getByteString(index); } public static final int INCLUSION_MODE_FIELD_NUMBER = 2; private int inclusionMode_; /** - * - * *
      * The mode to use for filtering asset discovery.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return The enum numeric value on the wire for inclusionMode. */ - @java.lang.Override - public int getInclusionModeValue() { + @java.lang.Override public int getInclusionModeValue() { return inclusionMode_; } /** - * - * *
      * The mode to use for filtering asset discovery.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return The inclusionMode. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode - getInclusionMode() { + @java.lang.Override public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode - result = - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode.valueOf(inclusionMode_); - return result == null - ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode result = com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.valueOf(inclusionMode_); + return result == null ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.UNRECOGNIZED : result; } public static final int FOLDER_IDS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList folderIds_; /** - * - * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; - * * @return A list containing the folderIds. */ - public com.google.protobuf.ProtocolStringList getFolderIdsList() { + public com.google.protobuf.ProtocolStringList + getFolderIdsList() { return folderIds_; } /** - * - * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; - * * @return The count of folderIds. */ public int getFolderIdsCount() { return folderIds_.size(); } /** - * - * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; - * * @param index The index of the element to return. * @return The folderIds at the given index. */ @@ -737,24 +615,21 @@ public java.lang.String getFolderIds(int index) { return folderIds_.get(index); } /** - * - * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; - * * @param index The index of the value to return. * @return The bytes of the folderIds at the given index. */ - public com.google.protobuf.ByteString getFolderIdsBytes(int index) { + public com.google.protobuf.ByteString + getFolderIdsBytes(int index) { return folderIds_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -766,14 +641,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < projectIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectIds_.getRaw(i)); } - if (inclusionMode_ - != com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode.INCLUSION_MODE_UNSPECIFIED - .getNumber()) { + if (inclusionMode_ != com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.INCLUSION_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, inclusionMode_); } for (int i = 0; i < folderIds_.size(); i++) { @@ -796,11 +669,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getProjectIdsList().size(); } - if (inclusionMode_ - != com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode.INCLUSION_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, inclusionMode_); + if (inclusionMode_ != com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.INCLUSION_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, inclusionMode_); } { int dataSize = 0; @@ -818,19 +689,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig)) { + if (!(obj instanceof com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig other = - (com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) obj; + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig other = (com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) obj; - if (!getProjectIdsList().equals(other.getProjectIdsList())) return false; + if (!getProjectIdsList() + .equals(other.getProjectIdsList())) return false; if (inclusionMode_ != other.inclusionMode_) return false; - if (!getFolderIdsList().equals(other.getFolderIdsList())) return false; + if (!getFolderIdsList() + .equals(other.getFolderIdsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -857,101 +727,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -961,51 +818,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * Protobuf type {@code - * google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig} + * Protobuf type {@code google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass - .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass - .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable + return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.class, - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder - .class); + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.class, com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.newBuilder() + // Construct using com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1019,22 +869,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass - .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig build() { - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig result = - buildPartial(); + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1042,10 +889,8 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryCon } @java.lang.Override - public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - buildPartial() { - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig result = - new com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig(this); + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig buildPartial() { + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig result = new com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { projectIds_ = projectIds_.getUnmodifiableView(); @@ -1066,55 +911,46 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryCon public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) { - return mergeFrom( - (com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) other); + if (other instanceof com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) { + return mergeFrom((com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig other) { - if (other - == com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig other) { + if (other == com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance()) return this; if (!other.projectIds_.isEmpty()) { if (projectIds_.isEmpty()) { projectIds_ = other.projectIds_; @@ -1153,14 +989,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parsedMessage = - null; + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1169,55 +1002,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList projectIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureProjectIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { projectIds_ = new com.google.protobuf.LazyStringArrayList(projectIds_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @return A list containing the projectIds. */ - public com.google.protobuf.ProtocolStringList getProjectIdsList() { + public com.google.protobuf.ProtocolStringList + getProjectIdsList() { return projectIds_.getUnmodifiableView(); } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @return The count of projectIds. */ public int getProjectIdsCount() { return projectIds_.size(); } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @param index The index of the element to return. * @return The projectIds at the given index. */ @@ -1225,90 +1047,80 @@ public java.lang.String getProjectIds(int index) { return projectIds_.get(index); } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @param index The index of the value to return. * @return The bytes of the projectIds at the given index. */ - public com.google.protobuf.ByteString getProjectIdsBytes(int index) { + public com.google.protobuf.ByteString + getProjectIdsBytes(int index) { return projectIds_.getByteString(index); } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @param index The index to set the value at. * @param value The projectIds to set. * @return This builder for chaining. */ - public Builder setProjectIds(int index, java.lang.String value) { + public Builder setProjectIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProjectIdsIsMutable(); + throw new NullPointerException(); + } + ensureProjectIdsIsMutable(); projectIds_.set(index, value); onChanged(); return this; } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @param value The projectIds to add. * @return This builder for chaining. */ - public Builder addProjectIds(java.lang.String value) { + public Builder addProjectIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProjectIdsIsMutable(); + throw new NullPointerException(); + } + ensureProjectIdsIsMutable(); projectIds_.add(value); onChanged(); return this; } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @param values The projectIds to add. * @return This builder for chaining. */ - public Builder addAllProjectIds(java.lang.Iterable values) { + public Builder addAllProjectIds( + java.lang.Iterable values) { ensureProjectIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projectIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, projectIds_); onChanged(); return this; } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @return This builder for chaining. */ public Builder clearProjectIds() { @@ -1318,22 +1130,20 @@ public Builder clearProjectIds() { return this; } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @param value The bytes of the projectIds to add. * @return This builder for chaining. */ - public Builder addProjectIdsBytes(com.google.protobuf.ByteString value) { + public Builder addProjectIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureProjectIdsIsMutable(); projectIds_.add(value); onChanged(); @@ -1342,163 +1152,117 @@ public Builder addProjectIdsBytes(com.google.protobuf.ByteString value) { private int inclusionMode_ = 0; /** - * - * *
        * The mode to use for filtering asset discovery.
        * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return The enum numeric value on the wire for inclusionMode. */ - @java.lang.Override - public int getInclusionModeValue() { + @java.lang.Override public int getInclusionModeValue() { return inclusionMode_; } /** - * - * *
        * The mode to use for filtering asset discovery.
        * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @param value The enum numeric value on the wire for inclusionMode to set. * @return This builder for chaining. */ public Builder setInclusionModeValue(int value) { - + inclusionMode_ = value; onChanged(); return this; } /** - * - * *
        * The mode to use for filtering asset discovery.
        * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return The inclusionMode. */ @java.lang.Override - public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode - getInclusionMode() { + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode - result = - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode.valueOf(inclusionMode_); - return result == null - ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode result = com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.valueOf(inclusionMode_); + return result == null ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.UNRECOGNIZED : result; } /** - * - * *
        * The mode to use for filtering asset discovery.
        * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @param value The inclusionMode to set. * @return This builder for chaining. */ - public Builder setInclusionMode( - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode - value) { + public Builder setInclusionMode(com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode value) { if (value == null) { throw new NullPointerException(); } - + inclusionMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * The mode to use for filtering asset discovery.
        * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return This builder for chaining. */ public Builder clearInclusionMode() { - + inclusionMode_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList folderIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList folderIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFolderIdsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { folderIds_ = new com.google.protobuf.LazyStringArrayList(folderIds_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; - * * @return A list containing the folderIds. */ - public com.google.protobuf.ProtocolStringList getFolderIdsList() { + public com.google.protobuf.ProtocolStringList + getFolderIdsList() { return folderIds_.getUnmodifiableView(); } /** - * - * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; - * * @return The count of folderIds. */ public int getFolderIdsCount() { return folderIds_.size(); } /** - * - * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; - * * @param index The index of the element to return. * @return The folderIds at the given index. */ @@ -1506,95 +1270,85 @@ public java.lang.String getFolderIds(int index) { return folderIds_.get(index); } /** - * - * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; - * * @param index The index of the value to return. * @return The bytes of the folderIds at the given index. */ - public com.google.protobuf.ByteString getFolderIdsBytes(int index) { + public com.google.protobuf.ByteString + getFolderIdsBytes(int index) { return folderIds_.getByteString(index); } /** - * - * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; - * * @param index The index to set the value at. * @param value The folderIds to set. * @return This builder for chaining. */ - public Builder setFolderIds(int index, java.lang.String value) { + public Builder setFolderIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFolderIdsIsMutable(); + throw new NullPointerException(); + } + ensureFolderIdsIsMutable(); folderIds_.set(index, value); onChanged(); return this; } /** - * - * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; - * * @param value The folderIds to add. * @return This builder for chaining. */ - public Builder addFolderIds(java.lang.String value) { + public Builder addFolderIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFolderIdsIsMutable(); + throw new NullPointerException(); + } + ensureFolderIdsIsMutable(); folderIds_.add(value); onChanged(); return this; } /** - * - * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; - * * @param values The folderIds to add. * @return This builder for chaining. */ - public Builder addAllFolderIds(java.lang.Iterable values) { + public Builder addAllFolderIds( + java.lang.Iterable values) { ensureFolderIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folderIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, folderIds_); onChanged(); return this; } /** - * - * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; - * * @return This builder for chaining. */ public Builder clearFolderIds() { @@ -1604,29 +1358,26 @@ public Builder clearFolderIds() { return this; } /** - * - * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; - * * @param value The bytes of the folderIds to add. * @return This builder for chaining. */ - public Builder addFolderIdsBytes(com.google.protobuf.ByteString value) { + public Builder addFolderIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFolderIdsIsMutable(); folderIds_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1639,34 +1390,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) - private static final com.google.cloud.securitycenter.v1.OrganizationSettings - .AssetDiscoveryConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig(); + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig(); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssetDiscoveryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AssetDiscoveryConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetDiscoveryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AssetDiscoveryConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1678,17 +1425,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1697,7 +1442,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1706,15 +1450,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1723,15 +1466,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1742,8 +1486,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ENABLE_ASSET_DISCOVERY_FIELD_NUMBER = 2; private boolean enableAssetDiscovery_; /** - * - * *
    * A flag that indicates if Asset Discovery should be enabled. If the flag is
    * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -1752,7 +1494,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * bool enable_asset_discovery = 2; - * * @return The enableAssetDiscovery. */ @java.lang.Override @@ -1761,19 +1502,13 @@ public boolean getEnableAssetDiscovery() { } public static final int ASSET_DISCOVERY_CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - assetDiscoveryConfig_; + private com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig assetDiscoveryConfig_; /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * @return Whether the assetDiscoveryConfig field is set. */ @java.lang.Override @@ -1781,45 +1516,30 @@ public boolean hasAssetDiscoveryConfig() { return assetDiscoveryConfig_ != null; } /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * @return The assetDiscoveryConfig. */ @java.lang.Override - public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - getAssetDiscoveryConfig() { - return assetDiscoveryConfig_ == null - ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - .getDefaultInstance() - : assetDiscoveryConfig_; + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig() { + return assetDiscoveryConfig_ == null ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance() : assetDiscoveryConfig_; } /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder - getAssetDiscoveryConfigOrBuilder() { + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder() { return getAssetDiscoveryConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1831,7 +1551,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1854,11 +1575,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (enableAssetDiscovery_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableAssetDiscovery_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enableAssetDiscovery_); } if (assetDiscoveryConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAssetDiscoveryConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAssetDiscoveryConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1868,19 +1590,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.OrganizationSettings)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.OrganizationSettings other = - (com.google.cloud.securitycenter.v1.OrganizationSettings) obj; + com.google.cloud.securitycenter.v1.OrganizationSettings other = (com.google.cloud.securitycenter.v1.OrganizationSettings) obj; - if (!getName().equals(other.getName())) return false; - if (getEnableAssetDiscovery() != other.getEnableAssetDiscovery()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getEnableAssetDiscovery() + != other.getEnableAssetDiscovery()) return false; if (hasAssetDiscoveryConfig() != other.hasAssetDiscoveryConfig()) return false; if (hasAssetDiscoveryConfig()) { - if (!getAssetDiscoveryConfig().equals(other.getAssetDiscoveryConfig())) return false; + if (!getAssetDiscoveryConfig() + .equals(other.getAssetDiscoveryConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1896,7 +1620,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ENABLE_ASSET_DISCOVERY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAssetDiscovery()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableAssetDiscovery()); if (hasAssetDiscoveryConfig()) { hash = (37 * hash) + ASSET_DISCOVERY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAssetDiscoveryConfig().hashCode(); @@ -1907,104 +1632,96 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.OrganizationSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.OrganizationSettings prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.OrganizationSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * User specified settings that are attached to the Security Command
    * Center organization.
@@ -2012,23 +1729,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.OrganizationSettings}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.OrganizationSettings)
       com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass
-          .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass
-          .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.OrganizationSettings.class,
-              com.google.cloud.securitycenter.v1.OrganizationSettings.Builder.class);
+              com.google.cloud.securitycenter.v1.OrganizationSettings.class, com.google.cloud.securitycenter.v1.OrganizationSettings.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.OrganizationSettings.newBuilder()
@@ -2036,15 +1751,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2062,9 +1778,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass
-          .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor;
     }
 
     @java.lang.Override
@@ -2083,8 +1799,7 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.OrganizationSettings buildPartial() {
-      com.google.cloud.securitycenter.v1.OrganizationSettings result =
-          new com.google.cloud.securitycenter.v1.OrganizationSettings(this);
+      com.google.cloud.securitycenter.v1.OrganizationSettings result = new com.google.cloud.securitycenter.v1.OrganizationSettings(this);
       result.name_ = name_;
       result.enableAssetDiscovery_ = enableAssetDiscovery_;
       if (assetDiscoveryConfigBuilder_ == null) {
@@ -2100,39 +1815,38 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.OrganizationSettings) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.OrganizationSettings) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.OrganizationSettings)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2140,8 +1854,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1.OrganizationSettings other) {
-      if (other == com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -2171,8 +1884,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.securitycenter.v1.OrganizationSettings) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.securitycenter.v1.OrganizationSettings) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2184,8 +1896,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2194,13 +1904,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2209,8 +1919,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2219,14 +1927,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2234,8 +1943,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2244,22 +1951,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2268,18 +1973,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2288,25 +1990,23 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private boolean enableAssetDiscovery_; + private boolean enableAssetDiscovery_ ; /** - * - * *
      * A flag that indicates if Asset Discovery should be enabled. If the flag is
      * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -2315,7 +2015,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * bool enable_asset_discovery = 2; - * * @return The enableAssetDiscovery. */ @java.lang.Override @@ -2323,8 +2022,6 @@ public boolean getEnableAssetDiscovery() { return enableAssetDiscovery_; } /** - * - * *
      * A flag that indicates if Asset Discovery should be enabled. If the flag is
      * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -2333,19 +2030,16 @@ public boolean getEnableAssetDiscovery() {
      * 
* * bool enable_asset_discovery = 2; - * * @param value The enableAssetDiscovery to set. * @return This builder for chaining. */ public Builder setEnableAssetDiscovery(boolean value) { - + enableAssetDiscovery_ = value; onChanged(); return this; } /** - * - * *
      * A flag that indicates if Asset Discovery should be enabled. If the flag is
      * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -2354,76 +2048,52 @@ public Builder setEnableAssetDiscovery(boolean value) {
      * 
* * bool enable_asset_discovery = 2; - * * @return This builder for chaining. */ public Builder clearEnableAssetDiscovery() { - + enableAssetDiscovery_ = false; onChanged(); return this; } - private com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - assetDiscoveryConfig_; + private com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig assetDiscoveryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig, - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder, - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder> - assetDiscoveryConfigBuilder_; + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig, com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder, com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder> assetDiscoveryConfigBuilder_; /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * @return Whether the assetDiscoveryConfig field is set. */ public boolean hasAssetDiscoveryConfig() { return assetDiscoveryConfigBuilder_ != null || assetDiscoveryConfig_ != null; } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * @return The assetDiscoveryConfig. */ - public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - getAssetDiscoveryConfig() { + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig() { if (assetDiscoveryConfigBuilder_ == null) { - return assetDiscoveryConfig_ == null - ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - .getDefaultInstance() - : assetDiscoveryConfig_; + return assetDiscoveryConfig_ == null ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance() : assetDiscoveryConfig_; } else { return assetDiscoveryConfigBuilder_.getMessage(); } } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ - public Builder setAssetDiscoveryConfig( - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig value) { + public Builder setAssetDiscoveryConfig(com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig value) { if (assetDiscoveryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2437,19 +2107,14 @@ public Builder setAssetDiscoveryConfig( return this; } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ public Builder setAssetDiscoveryConfig( - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder - builderForValue) { + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder builderForValue) { if (assetDiscoveryConfigBuilder_ == null) { assetDiscoveryConfig_ = builderForValue.build(); onChanged(); @@ -2460,25 +2125,17 @@ public Builder setAssetDiscoveryConfig( return this; } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ - public Builder mergeAssetDiscoveryConfig( - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig value) { + public Builder mergeAssetDiscoveryConfig(com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig value) { if (assetDiscoveryConfigBuilder_ == null) { if (assetDiscoveryConfig_ != null) { assetDiscoveryConfig_ = - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - .newBuilder(assetDiscoveryConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.newBuilder(assetDiscoveryConfig_).mergeFrom(value).buildPartial(); } else { assetDiscoveryConfig_ = value; } @@ -2490,15 +2147,11 @@ public Builder mergeAssetDiscoveryConfig( return this; } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ public Builder clearAssetDiscoveryConfig() { if (assetDiscoveryConfigBuilder_ == null) { @@ -2512,76 +2165,55 @@ public Builder clearAssetDiscoveryConfig() { return this; } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ - public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder - getAssetDiscoveryConfigBuilder() { - + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder getAssetDiscoveryConfigBuilder() { + onChanged(); return getAssetDiscoveryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ - public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder - getAssetDiscoveryConfigOrBuilder() { + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder() { if (assetDiscoveryConfigBuilder_ != null) { return assetDiscoveryConfigBuilder_.getMessageOrBuilder(); } else { - return assetDiscoveryConfig_ == null - ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - .getDefaultInstance() - : assetDiscoveryConfig_; + return assetDiscoveryConfig_ == null ? + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance() : assetDiscoveryConfig_; } } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig, - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder, - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder> + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig, com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder, com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder> getAssetDiscoveryConfigFieldBuilder() { if (assetDiscoveryConfigBuilder_ == null) { - assetDiscoveryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig, - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - .Builder, - com.google.cloud.securitycenter.v1.OrganizationSettings - .AssetDiscoveryConfigOrBuilder>( - getAssetDiscoveryConfig(), getParentForChildren(), isClean()); + assetDiscoveryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig, com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder, com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder>( + getAssetDiscoveryConfig(), + getParentForChildren(), + isClean()); assetDiscoveryConfig_ = null; } return assetDiscoveryConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2591,12 +2223,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.OrganizationSettings) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.OrganizationSettings) private static final com.google.cloud.securitycenter.v1.OrganizationSettings DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.OrganizationSettings(); } @@ -2605,16 +2237,16 @@ public static com.google.cloud.securitycenter.v1.OrganizationSettings getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrganizationSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrganizationSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrganizationSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OrganizationSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2629,4 +2261,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.OrganizationSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java similarity index 60% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java index ab1312313..a0dc485c0 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/organization_settings.proto package com.google.cloud.securitycenter.v1; -public interface OrganizationSettingsOrBuilder - extends +public interface OrganizationSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.OrganizationSettings) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -34,13 +16,10 @@ public interface OrganizationSettingsOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -49,14 +28,12 @@ public interface OrganizationSettingsOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A flag that indicates if Asset Discovery should be enabled. If the flag is
    * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -65,51 +42,34 @@ public interface OrganizationSettingsOrBuilder
    * 
* * bool enable_asset_discovery = 2; - * * @return The enableAssetDiscovery. */ boolean getEnableAssetDiscovery(); /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * @return Whether the assetDiscoveryConfig field is set. */ boolean hasAssetDiscoveryConfig(); /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * @return The assetDiscoveryConfig. */ - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - getAssetDiscoveryConfig(); + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig(); /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder - getAssetDiscoveryConfigOrBuilder(); + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java new file mode 100644 index 000000000..51880f202 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java @@ -0,0 +1,86 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/organization_settings.proto + +package com.google.cloud.securitycenter.v1; + +public final class OrganizationSettingsOuterClass { + private OrganizationSettingsOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n:google/cloud/securitycenter/v1/organiz" + + "ation_settings.proto\022\036google.cloud.secur" + + "itycenter.v1\032\031google/api/resource.proto\"" + + "\236\004\n\024OrganizationSettings\022\014\n\004name\030\001 \001(\t\022\036" + + "\n\026enable_asset_discovery\030\002 \001(\010\022i\n\026asset_" + + "discovery_config\030\003 \001(\0132I.google.cloud.se" + + "curitycenter.v1.OrganizationSettings.Ass" + + "etDiscoveryConfig\032\200\002\n\024AssetDiscoveryConf" + + "ig\022\023\n\013project_ids\030\001 \003(\t\022o\n\016inclusion_mod" + + "e\030\002 \001(\0162W.google.cloud.securitycenter.v1" + + ".OrganizationSettings.AssetDiscoveryConf" + + "ig.InclusionMode\022\022\n\nfolder_ids\030\003 \003(\t\"N\n\r" + + "InclusionMode\022\036\n\032INCLUSION_MODE_UNSPECIF" + + "IED\020\000\022\020\n\014INCLUDE_ONLY\020\001\022\013\n\007EXCLUDE\020\002:j\352A" + + "g\n2securitycenter.googleapis.com/Organiz" + + "ationSettings\0221organizations/{organizati" + + "on}/organizationSettingsB\332\001\n\"com.google." + + "cloud.securitycenter.v1P\001ZLgoogle.golang" + + ".org/genproto/googleapis/cloud/securityc" + + "enter/v1;securitycenter\252\002\036Google.Cloud.S" + + "ecurityCenter.V1\312\002\036Google\\Cloud\\Security" + + "Center\\V1\352\002!Google::Cloud::SecurityCente" + + "r::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor, + new java.lang.String[] { "Name", "EnableAssetDiscovery", "AssetDiscoveryConfig", }); + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor = + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor, + new java.lang.String[] { "ProjectIds", "InclusionMode", "FolderIds", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Process.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Process.java similarity index 76% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Process.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Process.java index 54cf3db62..ddcf5badd 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Process.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Process.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/process.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Represents an operating system process.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Process} */ -public final class Process extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Process extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Process) ProcessOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Process.newBuilder() to construct. private Process(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Process() { libraries_ = java.util.Collections.emptyList(); args_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -45,15 +27,16 @@ private Process() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Process(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Process( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,100 +56,86 @@ private Process( case 0: done = true; break; - case 26: - { - com.google.cloud.securitycenter.v1.File.Builder subBuilder = null; - if (binary_ != null) { - subBuilder = binary_.toBuilder(); - } - binary_ = - input.readMessage( - com.google.cloud.securitycenter.v1.File.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(binary_); - binary_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - libraries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - libraries_.add( - input.readMessage( - com.google.cloud.securitycenter.v1.File.parser(), extensionRegistry)); - break; + case 26: { + com.google.cloud.securitycenter.v1.File.Builder subBuilder = null; + if (binary_ != null) { + subBuilder = binary_.toBuilder(); } - case 42: - { - com.google.cloud.securitycenter.v1.File.Builder subBuilder = null; - if (script_ != null) { - subBuilder = script_.toBuilder(); - } - script_ = - input.readMessage( - com.google.cloud.securitycenter.v1.File.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(script_); - script_ = subBuilder.buildPartial(); - } - - break; + binary_ = input.readMessage(com.google.cloud.securitycenter.v1.File.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(binary_); + binary_ = subBuilder.buildPartial(); } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - args_.add(s); - break; - } - case 56: - { - argumentsTruncated_ = input.readBool(); - break; + + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + libraries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 66: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - envVariables_ = - new java.util.ArrayList< - com.google.cloud.securitycenter.v1.EnvironmentVariable>(); - mutable_bitField0_ |= 0x00000004; - } - envVariables_.add( - input.readMessage( - com.google.cloud.securitycenter.v1.EnvironmentVariable.parser(), - extensionRegistry)); - break; + libraries_.add( + input.readMessage(com.google.cloud.securitycenter.v1.File.parser(), extensionRegistry)); + break; + } + case 42: { + com.google.cloud.securitycenter.v1.File.Builder subBuilder = null; + if (script_ != null) { + subBuilder = script_.toBuilder(); } - case 72: - { - envVariablesTruncated_ = input.readBool(); - break; + script_ = input.readMessage(com.google.cloud.securitycenter.v1.File.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(script_); + script_ = subBuilder.buildPartial(); } - case 80: - { - pid_ = input.readInt64(); - break; + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + args_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 88: - { - parentPid_ = input.readInt64(); - break; + args_.add(s); + break; + } + case 56: { + + argumentsTruncated_ = input.readBool(); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + envVariables_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + envVariables_.add( + input.readMessage(com.google.cloud.securitycenter.v1.EnvironmentVariable.parser(), extensionRegistry)); + break; + } + case 72: { + + envVariablesTruncated_ = input.readBool(); + break; + } + case 80: { + + pid_ = input.readInt64(); + break; + } + case 88: { + + parentPid_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -174,7 +143,8 @@ private Process( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { libraries_ = java.util.Collections.unmodifiableList(libraries_); @@ -189,33 +159,27 @@ private Process( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.ProcessProto - .internal_static_google_cloud_securitycenter_v1_Process_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.ProcessProto.internal_static_google_cloud_securitycenter_v1_Process_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ProcessProto - .internal_static_google_cloud_securitycenter_v1_Process_fieldAccessorTable + return com.google.cloud.securitycenter.v1.ProcessProto.internal_static_google_cloud_securitycenter_v1_Process_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Process.class, - com.google.cloud.securitycenter.v1.Process.Builder.class); + com.google.cloud.securitycenter.v1.Process.class, com.google.cloud.securitycenter.v1.Process.Builder.class); } public static final int BINARY_FIELD_NUMBER = 3; private com.google.cloud.securitycenter.v1.File binary_; /** - * - * *
    * File information for the process executable.
    * 
* * .google.cloud.securitycenter.v1.File binary = 3; - * * @return Whether the binary field is set. */ @java.lang.Override @@ -223,14 +187,11 @@ public boolean hasBinary() { return binary_ != null; } /** - * - * *
    * File information for the process executable.
    * 
* * .google.cloud.securitycenter.v1.File binary = 3; - * * @return The binary. */ @java.lang.Override @@ -238,8 +199,6 @@ public com.google.cloud.securitycenter.v1.File getBinary() { return binary_ == null ? com.google.cloud.securitycenter.v1.File.getDefaultInstance() : binary_; } /** - * - * *
    * File information for the process executable.
    * 
@@ -254,8 +213,6 @@ public com.google.cloud.securitycenter.v1.FileOrBuilder getBinaryOrBuilder() { public static final int LIBRARIES_FIELD_NUMBER = 4; private java.util.List libraries_; /** - * - * *
    * File information for libraries loaded by the process.
    * 
@@ -267,8 +224,6 @@ public java.util.List getLibrariesList( return libraries_; } /** - * - * *
    * File information for libraries loaded by the process.
    * 
@@ -276,13 +231,11 @@ public java.util.List getLibrariesList( * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ @java.lang.Override - public java.util.List + public java.util.List getLibrariesOrBuilderList() { return libraries_; } /** - * - * *
    * File information for libraries loaded by the process.
    * 
@@ -294,8 +247,6 @@ public int getLibrariesCount() { return libraries_.size(); } /** - * - * *
    * File information for libraries loaded by the process.
    * 
@@ -307,8 +258,6 @@ public com.google.cloud.securitycenter.v1.File getLibraries(int index) { return libraries_.get(index); } /** - * - * *
    * File information for libraries loaded by the process.
    * 
@@ -316,15 +265,14 @@ public com.google.cloud.securitycenter.v1.File getLibraries(int index) { * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder(int index) { + public com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder( + int index) { return libraries_.get(index); } public static final int SCRIPT_FIELD_NUMBER = 5; private com.google.cloud.securitycenter.v1.File script_; /** - * - * *
    * When the process represents the invocation of a script,
    * `binary` provides information about the interpreter while `script`
@@ -333,7 +281,6 @@ public com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder(in
    * 
* * .google.cloud.securitycenter.v1.File script = 5; - * * @return Whether the script field is set. */ @java.lang.Override @@ -341,8 +288,6 @@ public boolean hasScript() { return script_ != null; } /** - * - * *
    * When the process represents the invocation of a script,
    * `binary` provides information about the interpreter while `script`
@@ -351,7 +296,6 @@ public boolean hasScript() {
    * 
* * .google.cloud.securitycenter.v1.File script = 5; - * * @return The script. */ @java.lang.Override @@ -359,8 +303,6 @@ public com.google.cloud.securitycenter.v1.File getScript() { return script_ == null ? com.google.cloud.securitycenter.v1.File.getDefaultInstance() : script_; } /** - * - * *
    * When the process represents the invocation of a script,
    * `binary` provides information about the interpreter while `script`
@@ -378,42 +320,34 @@ public com.google.cloud.securitycenter.v1.FileOrBuilder getScriptOrBuilder() {
   public static final int ARGS_FIELD_NUMBER = 6;
   private com.google.protobuf.LazyStringList args_;
   /**
-   *
-   *
    * 
    * Process arguments as JSON encoded strings.
    * 
* * repeated string args = 6; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_; } /** - * - * *
    * Process arguments as JSON encoded strings.
    * 
* * repeated string args = 6; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
    * Process arguments as JSON encoded strings.
    * 
* * repeated string args = 6; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -421,32 +355,27 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
    * Process arguments as JSON encoded strings.
    * 
* * repeated string args = 6; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } public static final int ARGUMENTS_TRUNCATED_FIELD_NUMBER = 7; private boolean argumentsTruncated_; /** - * - * *
    * True if `args` is incomplete.
    * 
* * bool arguments_truncated = 7; - * * @return The argumentsTruncated. */ @java.lang.Override @@ -457,8 +386,6 @@ public boolean getArgumentsTruncated() { public static final int ENV_VARIABLES_FIELD_NUMBER = 8; private java.util.List envVariables_; /** - * - * *
    * Process environment variables.
    * 
@@ -466,13 +393,10 @@ public boolean getArgumentsTruncated() { * repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8; */ @java.lang.Override - public java.util.List - getEnvVariablesList() { + public java.util.List getEnvVariablesList() { return envVariables_; } /** - * - * *
    * Process environment variables.
    * 
@@ -480,13 +404,11 @@ public boolean getArgumentsTruncated() { * repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8; */ @java.lang.Override - public java.util.List + public java.util.List getEnvVariablesOrBuilderList() { return envVariables_; } /** - * - * *
    * Process environment variables.
    * 
@@ -498,8 +420,6 @@ public int getEnvVariablesCount() { return envVariables_.size(); } /** - * - * *
    * Process environment variables.
    * 
@@ -511,8 +431,6 @@ public com.google.cloud.securitycenter.v1.EnvironmentVariable getEnvVariables(in return envVariables_.get(index); } /** - * - * *
    * Process environment variables.
    * 
@@ -528,14 +446,11 @@ public com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder getEnvVar public static final int ENV_VARIABLES_TRUNCATED_FIELD_NUMBER = 9; private boolean envVariablesTruncated_; /** - * - * *
    * True if `env_variables` is incomplete.
    * 
* * bool env_variables_truncated = 9; - * * @return The envVariablesTruncated. */ @java.lang.Override @@ -546,14 +461,11 @@ public boolean getEnvVariablesTruncated() { public static final int PID_FIELD_NUMBER = 10; private long pid_; /** - * - * *
    * The process id.
    * 
* * int64 pid = 10; - * * @return The pid. */ @java.lang.Override @@ -564,14 +476,11 @@ public long getPid() { public static final int PARENT_PID_FIELD_NUMBER = 11; private long parentPid_; /** - * - * *
    * The parent process id.
    * 
* * int64 parent_pid = 11; - * * @return The parentPid. */ @java.lang.Override @@ -580,7 +489,6 @@ public long getParentPid() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -592,7 +500,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (binary_ != null) { output.writeMessage(3, getBinary()); } @@ -630,13 +539,16 @@ public int getSerializedSize() { size = 0; if (binary_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBinary()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getBinary()); } for (int i = 0; i < libraries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, libraries_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, libraries_.get(i)); } if (script_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getScript()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getScript()); } { int dataSize = 0; @@ -647,19 +559,24 @@ public int getSerializedSize() { size += 1 * getArgsList().size(); } if (argumentsTruncated_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, argumentsTruncated_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, argumentsTruncated_); } for (int i = 0; i < envVariables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, envVariables_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, envVariables_.get(i)); } if (envVariablesTruncated_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, envVariablesTruncated_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, envVariablesTruncated_); } if (pid_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, pid_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(10, pid_); } if (parentPid_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, parentPid_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(11, parentPid_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -669,29 +586,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Process)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Process other = - (com.google.cloud.securitycenter.v1.Process) obj; + com.google.cloud.securitycenter.v1.Process other = (com.google.cloud.securitycenter.v1.Process) obj; if (hasBinary() != other.hasBinary()) return false; if (hasBinary()) { - if (!getBinary().equals(other.getBinary())) return false; + if (!getBinary() + .equals(other.getBinary())) return false; } - if (!getLibrariesList().equals(other.getLibrariesList())) return false; + if (!getLibrariesList() + .equals(other.getLibrariesList())) return false; if (hasScript() != other.hasScript()) return false; if (hasScript()) { - if (!getScript().equals(other.getScript())) return false; - } - if (!getArgsList().equals(other.getArgsList())) return false; - if (getArgumentsTruncated() != other.getArgumentsTruncated()) return false; - if (!getEnvVariablesList().equals(other.getEnvVariablesList())) return false; - if (getEnvVariablesTruncated() != other.getEnvVariablesTruncated()) return false; - if (getPid() != other.getPid()) return false; - if (getParentPid() != other.getParentPid()) return false; + if (!getScript() + .equals(other.getScript())) return false; + } + if (!getArgsList() + .equals(other.getArgsList())) return false; + if (getArgumentsTruncated() + != other.getArgumentsTruncated()) return false; + if (!getEnvVariablesList() + .equals(other.getEnvVariablesList())) return false; + if (getEnvVariablesTruncated() + != other.getEnvVariablesTruncated()) return false; + if (getPid() + != other.getPid()) return false; + if (getParentPid() + != other.getParentPid()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -720,143 +645,138 @@ public int hashCode() { hash = (53 * hash) + getArgsList().hashCode(); } hash = (37 * hash) + ARGUMENTS_TRUNCATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getArgumentsTruncated()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getArgumentsTruncated()); if (getEnvVariablesCount() > 0) { hash = (37 * hash) + ENV_VARIABLES_FIELD_NUMBER; hash = (53 * hash) + getEnvVariablesList().hashCode(); } hash = (37 * hash) + ENV_VARIABLES_TRUNCATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnvVariablesTruncated()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnvVariablesTruncated()); hash = (37 * hash) + PID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPid()); hash = (37 * hash) + PARENT_PID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getParentPid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getParentPid()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.securitycenter.v1.Process parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Process parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Process parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Process parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Process parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Process parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Process parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Process parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Process parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.Process parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.Process parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Process parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Process parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Process parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.Process prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents an operating system process.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Process} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Process) com.google.cloud.securitycenter.v1.ProcessOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.ProcessProto - .internal_static_google_cloud_securitycenter_v1_Process_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.ProcessProto.internal_static_google_cloud_securitycenter_v1_Process_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ProcessProto - .internal_static_google_cloud_securitycenter_v1_Process_fieldAccessorTable + return com.google.cloud.securitycenter.v1.ProcessProto.internal_static_google_cloud_securitycenter_v1_Process_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Process.class, - com.google.cloud.securitycenter.v1.Process.Builder.class); + com.google.cloud.securitycenter.v1.Process.class, com.google.cloud.securitycenter.v1.Process.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.Process.newBuilder() @@ -864,18 +784,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getLibrariesFieldBuilder(); getEnvVariablesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -917,9 +837,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.ProcessProto - .internal_static_google_cloud_securitycenter_v1_Process_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.ProcessProto.internal_static_google_cloud_securitycenter_v1_Process_descriptor; } @java.lang.Override @@ -938,8 +858,7 @@ public com.google.cloud.securitycenter.v1.Process build() { @java.lang.Override public com.google.cloud.securitycenter.v1.Process buildPartial() { - com.google.cloud.securitycenter.v1.Process result = - new com.google.cloud.securitycenter.v1.Process(this); + com.google.cloud.securitycenter.v1.Process result = new com.google.cloud.securitycenter.v1.Process(this); int from_bitField0_ = bitField0_; if (binaryBuilder_ == null) { result.binary_ = binary_; @@ -986,39 +905,38 @@ public com.google.cloud.securitycenter.v1.Process buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.Process) { - return mergeFrom((com.google.cloud.securitycenter.v1.Process) other); + return mergeFrom((com.google.cloud.securitycenter.v1.Process)other); } else { super.mergeFrom(other); return this; @@ -1048,10 +966,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Process other) { librariesBuilder_ = null; libraries_ = other.libraries_; bitField0_ = (bitField0_ & ~0x00000001); - librariesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLibrariesFieldBuilder() - : null; + librariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLibrariesFieldBuilder() : null; } else { librariesBuilder_.addAllMessages(other.libraries_); } @@ -1091,10 +1008,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Process other) { envVariablesBuilder_ = null; envVariables_ = other.envVariables_; bitField0_ = (bitField0_ & ~0x00000004); - envVariablesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEnvVariablesFieldBuilder() - : null; + envVariablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEnvVariablesFieldBuilder() : null; } else { envVariablesBuilder_.addAllMessages(other.envVariables_); } @@ -1137,52 +1053,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.securitycenter.v1.File binary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.File, - com.google.cloud.securitycenter.v1.File.Builder, - com.google.cloud.securitycenter.v1.FileOrBuilder> - binaryBuilder_; + com.google.cloud.securitycenter.v1.File, com.google.cloud.securitycenter.v1.File.Builder, com.google.cloud.securitycenter.v1.FileOrBuilder> binaryBuilder_; /** - * - * *
      * File information for the process executable.
      * 
* * .google.cloud.securitycenter.v1.File binary = 3; - * * @return Whether the binary field is set. */ public boolean hasBinary() { return binaryBuilder_ != null || binary_ != null; } /** - * - * *
      * File information for the process executable.
      * 
* * .google.cloud.securitycenter.v1.File binary = 3; - * * @return The binary. */ public com.google.cloud.securitycenter.v1.File getBinary() { if (binaryBuilder_ == null) { - return binary_ == null - ? com.google.cloud.securitycenter.v1.File.getDefaultInstance() - : binary_; + return binary_ == null ? com.google.cloud.securitycenter.v1.File.getDefaultInstance() : binary_; } else { return binaryBuilder_.getMessage(); } } /** - * - * *
      * File information for the process executable.
      * 
@@ -1203,15 +1105,14 @@ public Builder setBinary(com.google.cloud.securitycenter.v1.File value) { return this; } /** - * - * *
      * File information for the process executable.
      * 
* * .google.cloud.securitycenter.v1.File binary = 3; */ - public Builder setBinary(com.google.cloud.securitycenter.v1.File.Builder builderForValue) { + public Builder setBinary( + com.google.cloud.securitycenter.v1.File.Builder builderForValue) { if (binaryBuilder_ == null) { binary_ = builderForValue.build(); onChanged(); @@ -1222,8 +1123,6 @@ public Builder setBinary(com.google.cloud.securitycenter.v1.File.Builder builder return this; } /** - * - * *
      * File information for the process executable.
      * 
@@ -1234,9 +1133,7 @@ public Builder mergeBinary(com.google.cloud.securitycenter.v1.File value) { if (binaryBuilder_ == null) { if (binary_ != null) { binary_ = - com.google.cloud.securitycenter.v1.File.newBuilder(binary_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.File.newBuilder(binary_).mergeFrom(value).buildPartial(); } else { binary_ = value; } @@ -1248,8 +1145,6 @@ public Builder mergeBinary(com.google.cloud.securitycenter.v1.File value) { return this; } /** - * - * *
      * File information for the process executable.
      * 
@@ -1268,8 +1163,6 @@ public Builder clearBinary() { return this; } /** - * - * *
      * File information for the process executable.
      * 
@@ -1277,13 +1170,11 @@ public Builder clearBinary() { * .google.cloud.securitycenter.v1.File binary = 3; */ public com.google.cloud.securitycenter.v1.File.Builder getBinaryBuilder() { - + onChanged(); return getBinaryFieldBuilder().getBuilder(); } /** - * - * *
      * File information for the process executable.
      * 
@@ -1294,14 +1185,11 @@ public com.google.cloud.securitycenter.v1.FileOrBuilder getBinaryOrBuilder() { if (binaryBuilder_ != null) { return binaryBuilder_.getMessageOrBuilder(); } else { - return binary_ == null - ? com.google.cloud.securitycenter.v1.File.getDefaultInstance() - : binary_; + return binary_ == null ? + com.google.cloud.securitycenter.v1.File.getDefaultInstance() : binary_; } } /** - * - * *
      * File information for the process executable.
      * 
@@ -1309,41 +1197,32 @@ public com.google.cloud.securitycenter.v1.FileOrBuilder getBinaryOrBuilder() { * .google.cloud.securitycenter.v1.File binary = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.File, - com.google.cloud.securitycenter.v1.File.Builder, - com.google.cloud.securitycenter.v1.FileOrBuilder> + com.google.cloud.securitycenter.v1.File, com.google.cloud.securitycenter.v1.File.Builder, com.google.cloud.securitycenter.v1.FileOrBuilder> getBinaryFieldBuilder() { if (binaryBuilder_ == null) { - binaryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.File, - com.google.cloud.securitycenter.v1.File.Builder, - com.google.cloud.securitycenter.v1.FileOrBuilder>( - getBinary(), getParentForChildren(), isClean()); + binaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.File, com.google.cloud.securitycenter.v1.File.Builder, com.google.cloud.securitycenter.v1.FileOrBuilder>( + getBinary(), + getParentForChildren(), + isClean()); binary_ = null; } return binaryBuilder_; } private java.util.List libraries_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureLibrariesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { libraries_ = new java.util.ArrayList(libraries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.File, - com.google.cloud.securitycenter.v1.File.Builder, - com.google.cloud.securitycenter.v1.FileOrBuilder> - librariesBuilder_; + com.google.cloud.securitycenter.v1.File, com.google.cloud.securitycenter.v1.File.Builder, com.google.cloud.securitycenter.v1.FileOrBuilder> librariesBuilder_; /** - * - * *
      * File information for libraries loaded by the process.
      * 
@@ -1358,8 +1237,6 @@ public java.util.List getLibrariesList( } } /** - * - * *
      * File information for libraries loaded by the process.
      * 
@@ -1374,8 +1251,6 @@ public int getLibrariesCount() { } } /** - * - * *
      * File information for libraries loaded by the process.
      * 
@@ -1390,15 +1265,14 @@ public com.google.cloud.securitycenter.v1.File getLibraries(int index) { } } /** - * - * *
      * File information for libraries loaded by the process.
      * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - public Builder setLibraries(int index, com.google.cloud.securitycenter.v1.File value) { + public Builder setLibraries( + int index, com.google.cloud.securitycenter.v1.File value) { if (librariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1412,8 +1286,6 @@ public Builder setLibraries(int index, com.google.cloud.securitycenter.v1.File v return this; } /** - * - * *
      * File information for libraries loaded by the process.
      * 
@@ -1432,8 +1304,6 @@ public Builder setLibraries( return this; } /** - * - * *
      * File information for libraries loaded by the process.
      * 
@@ -1454,15 +1324,14 @@ public Builder addLibraries(com.google.cloud.securitycenter.v1.File value) { return this; } /** - * - * *
      * File information for libraries loaded by the process.
      * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - public Builder addLibraries(int index, com.google.cloud.securitycenter.v1.File value) { + public Builder addLibraries( + int index, com.google.cloud.securitycenter.v1.File value) { if (librariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1476,15 +1345,14 @@ public Builder addLibraries(int index, com.google.cloud.securitycenter.v1.File v return this; } /** - * - * *
      * File information for libraries loaded by the process.
      * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - public Builder addLibraries(com.google.cloud.securitycenter.v1.File.Builder builderForValue) { + public Builder addLibraries( + com.google.cloud.securitycenter.v1.File.Builder builderForValue) { if (librariesBuilder_ == null) { ensureLibrariesIsMutable(); libraries_.add(builderForValue.build()); @@ -1495,8 +1363,6 @@ public Builder addLibraries(com.google.cloud.securitycenter.v1.File.Builder buil return this; } /** - * - * *
      * File information for libraries loaded by the process.
      * 
@@ -1515,8 +1381,6 @@ public Builder addLibraries( return this; } /** - * - * *
      * File information for libraries loaded by the process.
      * 
@@ -1527,7 +1391,8 @@ public Builder addAllLibraries( java.lang.Iterable values) { if (librariesBuilder_ == null) { ensureLibrariesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, libraries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, libraries_); onChanged(); } else { librariesBuilder_.addAllMessages(values); @@ -1535,8 +1400,6 @@ public Builder addAllLibraries( return this; } /** - * - * *
      * File information for libraries loaded by the process.
      * 
@@ -1554,8 +1417,6 @@ public Builder clearLibraries() { return this; } /** - * - * *
      * File information for libraries loaded by the process.
      * 
@@ -1573,44 +1434,39 @@ public Builder removeLibraries(int index) { return this; } /** - * - * *
      * File information for libraries loaded by the process.
      * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - public com.google.cloud.securitycenter.v1.File.Builder getLibrariesBuilder(int index) { + public com.google.cloud.securitycenter.v1.File.Builder getLibrariesBuilder( + int index) { return getLibrariesFieldBuilder().getBuilder(index); } /** - * - * *
      * File information for libraries loaded by the process.
      * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - public com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder(int index) { + public com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder( + int index) { if (librariesBuilder_ == null) { - return libraries_.get(index); - } else { + return libraries_.get(index); } else { return librariesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * File information for libraries loaded by the process.
      * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - public java.util.List - getLibrariesOrBuilderList() { + public java.util.List + getLibrariesOrBuilderList() { if (librariesBuilder_ != null) { return librariesBuilder_.getMessageOrBuilderList(); } else { @@ -1618,8 +1474,6 @@ public com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder(in } } /** - * - * *
      * File information for libraries loaded by the process.
      * 
@@ -1627,48 +1481,42 @@ public com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder(in * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ public com.google.cloud.securitycenter.v1.File.Builder addLibrariesBuilder() { - return getLibrariesFieldBuilder() - .addBuilder(com.google.cloud.securitycenter.v1.File.getDefaultInstance()); + return getLibrariesFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1.File.getDefaultInstance()); } /** - * - * *
      * File information for libraries loaded by the process.
      * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - public com.google.cloud.securitycenter.v1.File.Builder addLibrariesBuilder(int index) { - return getLibrariesFieldBuilder() - .addBuilder(index, com.google.cloud.securitycenter.v1.File.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.File.Builder addLibrariesBuilder( + int index) { + return getLibrariesFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1.File.getDefaultInstance()); } /** - * - * *
      * File information for libraries loaded by the process.
      * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - public java.util.List - getLibrariesBuilderList() { + public java.util.List + getLibrariesBuilderList() { return getLibrariesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.File, - com.google.cloud.securitycenter.v1.File.Builder, - com.google.cloud.securitycenter.v1.FileOrBuilder> + com.google.cloud.securitycenter.v1.File, com.google.cloud.securitycenter.v1.File.Builder, com.google.cloud.securitycenter.v1.FileOrBuilder> getLibrariesFieldBuilder() { if (librariesBuilder_ == null) { - librariesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.File, - com.google.cloud.securitycenter.v1.File.Builder, - com.google.cloud.securitycenter.v1.FileOrBuilder>( - libraries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + librariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.File, com.google.cloud.securitycenter.v1.File.Builder, com.google.cloud.securitycenter.v1.FileOrBuilder>( + libraries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); libraries_ = null; } return librariesBuilder_; @@ -1676,13 +1524,8 @@ public com.google.cloud.securitycenter.v1.File.Builder addLibrariesBuilder(int i private com.google.cloud.securitycenter.v1.File script_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.File, - com.google.cloud.securitycenter.v1.File.Builder, - com.google.cloud.securitycenter.v1.FileOrBuilder> - scriptBuilder_; + com.google.cloud.securitycenter.v1.File, com.google.cloud.securitycenter.v1.File.Builder, com.google.cloud.securitycenter.v1.FileOrBuilder> scriptBuilder_; /** - * - * *
      * When the process represents the invocation of a script,
      * `binary` provides information about the interpreter while `script`
@@ -1691,15 +1534,12 @@ public com.google.cloud.securitycenter.v1.File.Builder addLibrariesBuilder(int i
      * 
* * .google.cloud.securitycenter.v1.File script = 5; - * * @return Whether the script field is set. */ public boolean hasScript() { return scriptBuilder_ != null || script_ != null; } /** - * - * *
      * When the process represents the invocation of a script,
      * `binary` provides information about the interpreter while `script`
@@ -1708,21 +1548,16 @@ public boolean hasScript() {
      * 
* * .google.cloud.securitycenter.v1.File script = 5; - * * @return The script. */ public com.google.cloud.securitycenter.v1.File getScript() { if (scriptBuilder_ == null) { - return script_ == null - ? com.google.cloud.securitycenter.v1.File.getDefaultInstance() - : script_; + return script_ == null ? com.google.cloud.securitycenter.v1.File.getDefaultInstance() : script_; } else { return scriptBuilder_.getMessage(); } } /** - * - * *
      * When the process represents the invocation of a script,
      * `binary` provides information about the interpreter while `script`
@@ -1746,8 +1581,6 @@ public Builder setScript(com.google.cloud.securitycenter.v1.File value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When the process represents the invocation of a script,
      * `binary` provides information about the interpreter while `script`
@@ -1757,7 +1590,8 @@ public Builder setScript(com.google.cloud.securitycenter.v1.File value) {
      *
      * .google.cloud.securitycenter.v1.File script = 5;
      */
-    public Builder setScript(com.google.cloud.securitycenter.v1.File.Builder builderForValue) {
+    public Builder setScript(
+        com.google.cloud.securitycenter.v1.File.Builder builderForValue) {
       if (scriptBuilder_ == null) {
         script_ = builderForValue.build();
         onChanged();
@@ -1768,8 +1602,6 @@ public Builder setScript(com.google.cloud.securitycenter.v1.File.Builder builder
       return this;
     }
     /**
-     *
-     *
      * 
      * When the process represents the invocation of a script,
      * `binary` provides information about the interpreter while `script`
@@ -1783,9 +1615,7 @@ public Builder mergeScript(com.google.cloud.securitycenter.v1.File value) {
       if (scriptBuilder_ == null) {
         if (script_ != null) {
           script_ =
-              com.google.cloud.securitycenter.v1.File.newBuilder(script_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.securitycenter.v1.File.newBuilder(script_).mergeFrom(value).buildPartial();
         } else {
           script_ = value;
         }
@@ -1797,8 +1627,6 @@ public Builder mergeScript(com.google.cloud.securitycenter.v1.File value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When the process represents the invocation of a script,
      * `binary` provides information about the interpreter while `script`
@@ -1820,8 +1648,6 @@ public Builder clearScript() {
       return this;
     }
     /**
-     *
-     *
      * 
      * When the process represents the invocation of a script,
      * `binary` provides information about the interpreter while `script`
@@ -1832,13 +1658,11 @@ public Builder clearScript() {
      * .google.cloud.securitycenter.v1.File script = 5;
      */
     public com.google.cloud.securitycenter.v1.File.Builder getScriptBuilder() {
-
+      
       onChanged();
       return getScriptFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * When the process represents the invocation of a script,
      * `binary` provides information about the interpreter while `script`
@@ -1852,14 +1676,11 @@ public com.google.cloud.securitycenter.v1.FileOrBuilder getScriptOrBuilder() {
       if (scriptBuilder_ != null) {
         return scriptBuilder_.getMessageOrBuilder();
       } else {
-        return script_ == null
-            ? com.google.cloud.securitycenter.v1.File.getDefaultInstance()
-            : script_;
+        return script_ == null ?
+            com.google.cloud.securitycenter.v1.File.getDefaultInstance() : script_;
       }
     }
     /**
-     *
-     *
      * 
      * When the process represents the invocation of a script,
      * `binary` provides information about the interpreter while `script`
@@ -1870,68 +1691,55 @@ public com.google.cloud.securitycenter.v1.FileOrBuilder getScriptOrBuilder() {
      * .google.cloud.securitycenter.v1.File script = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.File,
-            com.google.cloud.securitycenter.v1.File.Builder,
-            com.google.cloud.securitycenter.v1.FileOrBuilder>
+        com.google.cloud.securitycenter.v1.File, com.google.cloud.securitycenter.v1.File.Builder, com.google.cloud.securitycenter.v1.FileOrBuilder> 
         getScriptFieldBuilder() {
       if (scriptBuilder_ == null) {
-        scriptBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.securitycenter.v1.File,
-                com.google.cloud.securitycenter.v1.File.Builder,
-                com.google.cloud.securitycenter.v1.FileOrBuilder>(
-                getScript(), getParentForChildren(), isClean());
+        scriptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.securitycenter.v1.File, com.google.cloud.securitycenter.v1.File.Builder, com.google.cloud.securitycenter.v1.FileOrBuilder>(
+                getScript(),
+                getParentForChildren(),
+                isClean());
         script_ = null;
       }
       return scriptBuilder_;
     }
 
-    private com.google.protobuf.LazyStringList args_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensureArgsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         args_ = new com.google.protobuf.LazyStringArrayList(args_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * Process arguments as JSON encoded strings.
      * 
* * repeated string args = 6; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_.getUnmodifiableView(); } /** - * - * *
      * Process arguments as JSON encoded strings.
      * 
* * repeated string args = 6; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
      * Process arguments as JSON encoded strings.
      * 
* * repeated string args = 6; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -1939,90 +1747,80 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
      * Process arguments as JSON encoded strings.
      * 
* * repeated string args = 6; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } /** - * - * *
      * Process arguments as JSON encoded strings.
      * 
* * repeated string args = 6; - * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs(int index, java.lang.String value) { + public Builder setArgs( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** - * - * *
      * Process arguments as JSON encoded strings.
      * 
* * repeated string args = 6; - * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs(java.lang.String value) { + public Builder addArgs( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** - * - * *
      * Process arguments as JSON encoded strings.
      * 
* * repeated string args = 6; - * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs(java.lang.Iterable values) { + public Builder addAllArgs( + java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, args_); onChanged(); return this; } /** - * - * *
      * Process arguments as JSON encoded strings.
      * 
* * repeated string args = 6; - * * @return This builder for chaining. */ public Builder clearArgs() { @@ -2032,38 +1830,33 @@ public Builder clearArgs() { return this; } /** - * - * *
      * Process arguments as JSON encoded strings.
      * 
* * repeated string args = 6; - * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { + public Builder addArgsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } - private boolean argumentsTruncated_; + private boolean argumentsTruncated_ ; /** - * - * *
      * True if `args` is incomplete.
      * 
* * bool arguments_truncated = 7; - * * @return The argumentsTruncated. */ @java.lang.Override @@ -2071,70 +1864,55 @@ public boolean getArgumentsTruncated() { return argumentsTruncated_; } /** - * - * *
      * True if `args` is incomplete.
      * 
* * bool arguments_truncated = 7; - * * @param value The argumentsTruncated to set. * @return This builder for chaining. */ public Builder setArgumentsTruncated(boolean value) { - + argumentsTruncated_ = value; onChanged(); return this; } /** - * - * *
      * True if `args` is incomplete.
      * 
* * bool arguments_truncated = 7; - * * @return This builder for chaining. */ public Builder clearArgumentsTruncated() { - + argumentsTruncated_ = false; onChanged(); return this; } private java.util.List envVariables_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEnvVariablesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - envVariables_ = - new java.util.ArrayList( - envVariables_); + envVariables_ = new java.util.ArrayList(envVariables_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.EnvironmentVariable, - com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder, - com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder> - envVariablesBuilder_; + com.google.cloud.securitycenter.v1.EnvironmentVariable, com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder, com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder> envVariablesBuilder_; /** - * - * *
      * Process environment variables.
      * 
* * repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8; */ - public java.util.List - getEnvVariablesList() { + public java.util.List getEnvVariablesList() { if (envVariablesBuilder_ == null) { return java.util.Collections.unmodifiableList(envVariables_); } else { @@ -2142,8 +1920,6 @@ private void ensureEnvVariablesIsMutable() { } } /** - * - * *
      * Process environment variables.
      * 
@@ -2158,8 +1934,6 @@ public int getEnvVariablesCount() { } } /** - * - * *
      * Process environment variables.
      * 
@@ -2174,8 +1948,6 @@ public com.google.cloud.securitycenter.v1.EnvironmentVariable getEnvVariables(in } } /** - * - * *
      * Process environment variables.
      * 
@@ -2197,8 +1969,6 @@ public Builder setEnvVariables( return this; } /** - * - * *
      * Process environment variables.
      * 
@@ -2217,8 +1987,6 @@ public Builder setEnvVariables( return this; } /** - * - * *
      * Process environment variables.
      * 
@@ -2239,8 +2007,6 @@ public Builder addEnvVariables(com.google.cloud.securitycenter.v1.EnvironmentVar return this; } /** - * - * *
      * Process environment variables.
      * 
@@ -2262,8 +2028,6 @@ public Builder addEnvVariables( return this; } /** - * - * *
      * Process environment variables.
      * 
@@ -2282,8 +2046,6 @@ public Builder addEnvVariables( return this; } /** - * - * *
      * Process environment variables.
      * 
@@ -2302,8 +2064,6 @@ public Builder addEnvVariables( return this; } /** - * - * *
      * Process environment variables.
      * 
@@ -2311,11 +2071,11 @@ public Builder addEnvVariables( * repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8; */ public Builder addAllEnvVariables( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (envVariablesBuilder_ == null) { ensureEnvVariablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, envVariables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, envVariables_); onChanged(); } else { envVariablesBuilder_.addAllMessages(values); @@ -2323,8 +2083,6 @@ public Builder addAllEnvVariables( return this; } /** - * - * *
      * Process environment variables.
      * 
@@ -2342,8 +2100,6 @@ public Builder clearEnvVariables() { return this; } /** - * - * *
      * Process environment variables.
      * 
@@ -2361,8 +2117,6 @@ public Builder removeEnvVariables(int index) { return this; } /** - * - * *
      * Process environment variables.
      * 
@@ -2374,8 +2128,6 @@ public com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder getEnvVari return getEnvVariablesFieldBuilder().getBuilder(index); } /** - * - * *
      * Process environment variables.
      * 
@@ -2385,22 +2137,19 @@ public com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder getEnvVari public com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder getEnvVariablesOrBuilder( int index) { if (envVariablesBuilder_ == null) { - return envVariables_.get(index); - } else { + return envVariables_.get(index); } else { return envVariablesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Process environment variables.
      * 
* * repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8; */ - public java.util.List - getEnvVariablesOrBuilderList() { + public java.util.List + getEnvVariablesOrBuilderList() { if (envVariablesBuilder_ != null) { return envVariablesBuilder_.getMessageOrBuilderList(); } else { @@ -2408,8 +2157,6 @@ public com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder getEnvVar } } /** - * - * *
      * Process environment variables.
      * 
@@ -2417,12 +2164,10 @@ public com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder getEnvVar * repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8; */ public com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder addEnvVariablesBuilder() { - return getEnvVariablesFieldBuilder() - .addBuilder(com.google.cloud.securitycenter.v1.EnvironmentVariable.getDefaultInstance()); + return getEnvVariablesFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1.EnvironmentVariable.getDefaultInstance()); } /** - * - * *
      * Process environment variables.
      * 
@@ -2431,51 +2176,42 @@ public com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder addEnvVari */ public com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder addEnvVariablesBuilder( int index) { - return getEnvVariablesFieldBuilder() - .addBuilder( - index, com.google.cloud.securitycenter.v1.EnvironmentVariable.getDefaultInstance()); + return getEnvVariablesFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1.EnvironmentVariable.getDefaultInstance()); } /** - * - * *
      * Process environment variables.
      * 
* * repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8; */ - public java.util.List - getEnvVariablesBuilderList() { + public java.util.List + getEnvVariablesBuilderList() { return getEnvVariablesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.EnvironmentVariable, - com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder, - com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder> + com.google.cloud.securitycenter.v1.EnvironmentVariable, com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder, com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder> getEnvVariablesFieldBuilder() { if (envVariablesBuilder_ == null) { - envVariablesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.EnvironmentVariable, - com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder, - com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder>( - envVariables_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + envVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.EnvironmentVariable, com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder, com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder>( + envVariables_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); envVariables_ = null; } return envVariablesBuilder_; } - private boolean envVariablesTruncated_; + private boolean envVariablesTruncated_ ; /** - * - * *
      * True if `env_variables` is incomplete.
      * 
* * bool env_variables_truncated = 9; - * * @return The envVariablesTruncated. */ @java.lang.Override @@ -2483,51 +2219,42 @@ public boolean getEnvVariablesTruncated() { return envVariablesTruncated_; } /** - * - * *
      * True if `env_variables` is incomplete.
      * 
* * bool env_variables_truncated = 9; - * * @param value The envVariablesTruncated to set. * @return This builder for chaining. */ public Builder setEnvVariablesTruncated(boolean value) { - + envVariablesTruncated_ = value; onChanged(); return this; } /** - * - * *
      * True if `env_variables` is incomplete.
      * 
* * bool env_variables_truncated = 9; - * * @return This builder for chaining. */ public Builder clearEnvVariablesTruncated() { - + envVariablesTruncated_ = false; onChanged(); return this; } - private long pid_; + private long pid_ ; /** - * - * *
      * The process id.
      * 
* * int64 pid = 10; - * * @return The pid. */ @java.lang.Override @@ -2535,51 +2262,42 @@ public long getPid() { return pid_; } /** - * - * *
      * The process id.
      * 
* * int64 pid = 10; - * * @param value The pid to set. * @return This builder for chaining. */ public Builder setPid(long value) { - + pid_ = value; onChanged(); return this; } /** - * - * *
      * The process id.
      * 
* * int64 pid = 10; - * * @return This builder for chaining. */ public Builder clearPid() { - + pid_ = 0L; onChanged(); return this; } - private long parentPid_; + private long parentPid_ ; /** - * - * *
      * The parent process id.
      * 
* * int64 parent_pid = 11; - * * @return The parentPid. */ @java.lang.Override @@ -2587,43 +2305,37 @@ public long getParentPid() { return parentPid_; } /** - * - * *
      * The parent process id.
      * 
* * int64 parent_pid = 11; - * * @param value The parentPid to set. * @return This builder for chaining. */ public Builder setParentPid(long value) { - + parentPid_ = value; onChanged(); return this; } /** - * - * *
      * The parent process id.
      * 
* * int64 parent_pid = 11; - * * @return This builder for chaining. */ public Builder clearParentPid() { - + parentPid_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2633,12 +2345,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Process) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Process) private static final com.google.cloud.securitycenter.v1.Process DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Process(); } @@ -2647,16 +2359,16 @@ public static com.google.cloud.securitycenter.v1.Process getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Process parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Process(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Process parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Process(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2671,4 +2383,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Process getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessOrBuilder.java similarity index 83% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessOrBuilder.java index 00904a14f..2314f8b8b 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/process.proto package com.google.cloud.securitycenter.v1; -public interface ProcessOrBuilder - extends +public interface ProcessOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Process) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * File information for the process executable.
    * 
* * .google.cloud.securitycenter.v1.File binary = 3; - * * @return Whether the binary field is set. */ boolean hasBinary(); /** - * - * *
    * File information for the process executable.
    * 
* * .google.cloud.securitycenter.v1.File binary = 3; - * * @return The binary. */ com.google.cloud.securitycenter.v1.File getBinary(); /** - * - * *
    * File information for the process executable.
    * 
@@ -59,18 +35,15 @@ public interface ProcessOrBuilder com.google.cloud.securitycenter.v1.FileOrBuilder getBinaryOrBuilder(); /** - * - * *
    * File information for libraries loaded by the process.
    * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - java.util.List getLibrariesList(); + java.util.List + getLibrariesList(); /** - * - * *
    * File information for libraries loaded by the process.
    * 
@@ -79,8 +52,6 @@ public interface ProcessOrBuilder */ com.google.cloud.securitycenter.v1.File getLibraries(int index); /** - * - * *
    * File information for libraries loaded by the process.
    * 
@@ -89,30 +60,25 @@ public interface ProcessOrBuilder */ int getLibrariesCount(); /** - * - * *
    * File information for libraries loaded by the process.
    * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - java.util.List + java.util.List getLibrariesOrBuilderList(); /** - * - * *
    * File information for libraries loaded by the process.
    * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder(int index); + com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder( + int index); /** - * - * *
    * When the process represents the invocation of a script,
    * `binary` provides information about the interpreter while `script`
@@ -121,13 +87,10 @@ public interface ProcessOrBuilder
    * 
* * .google.cloud.securitycenter.v1.File script = 5; - * * @return Whether the script field is set. */ boolean hasScript(); /** - * - * *
    * When the process represents the invocation of a script,
    * `binary` provides information about the interpreter while `script`
@@ -136,13 +99,10 @@ public interface ProcessOrBuilder
    * 
* * .google.cloud.securitycenter.v1.File script = 5; - * * @return The script. */ com.google.cloud.securitycenter.v1.File getScript(); /** - * - * *
    * When the process represents the invocation of a script,
    * `binary` provides information about the interpreter while `script`
@@ -155,82 +115,66 @@ public interface ProcessOrBuilder
   com.google.cloud.securitycenter.v1.FileOrBuilder getScriptOrBuilder();
 
   /**
-   *
-   *
    * 
    * Process arguments as JSON encoded strings.
    * 
* * repeated string args = 6; - * * @return A list containing the args. */ - java.util.List getArgsList(); + java.util.List + getArgsList(); /** - * - * *
    * Process arguments as JSON encoded strings.
    * 
* * repeated string args = 6; - * * @return The count of args. */ int getArgsCount(); /** - * - * *
    * Process arguments as JSON encoded strings.
    * 
* * repeated string args = 6; - * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** - * - * *
    * Process arguments as JSON encoded strings.
    * 
* * repeated string args = 6; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString getArgsBytes(int index); + com.google.protobuf.ByteString + getArgsBytes(int index); /** - * - * *
    * True if `args` is incomplete.
    * 
* * bool arguments_truncated = 7; - * * @return The argumentsTruncated. */ boolean getArgumentsTruncated(); /** - * - * *
    * Process environment variables.
    * 
* * repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8; */ - java.util.List getEnvVariablesList(); + java.util.List + getEnvVariablesList(); /** - * - * *
    * Process environment variables.
    * 
@@ -239,8 +183,6 @@ public interface ProcessOrBuilder */ com.google.cloud.securitycenter.v1.EnvironmentVariable getEnvVariables(int index); /** - * - * *
    * Process environment variables.
    * 
@@ -249,19 +191,15 @@ public interface ProcessOrBuilder */ int getEnvVariablesCount(); /** - * - * *
    * Process environment variables.
    * 
* * repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8; */ - java.util.List + java.util.List getEnvVariablesOrBuilderList(); /** - * - * *
    * Process environment variables.
    * 
@@ -272,40 +210,31 @@ com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder getEnvVariablesO int index); /** - * - * *
    * True if `env_variables` is incomplete.
    * 
* * bool env_variables_truncated = 9; - * * @return The envVariablesTruncated. */ boolean getEnvVariablesTruncated(); /** - * - * *
    * The process id.
    * 
* * int64 pid = 10; - * * @return The pid. */ long getPid(); /** - * - * *
    * The parent process id.
    * 
* * int64 parent_pid = 11; - * * @return The parentPid. */ long getParentPid(); diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessProto.java new file mode 100644 index 000000000..c54291135 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessProto.java @@ -0,0 +1,78 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/process.proto + +package com.google.cloud.securitycenter.v1; + +public final class ProcessProto { + private ProcessProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Process_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Process_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/securitycenter/v1/process" + + ".proto\022\036google.cloud.securitycenter.v1\032)" + + "google/cloud/securitycenter/v1/file.prot" + + "o\"\347\002\n\007Process\0224\n\006binary\030\003 \001(\0132$.google.c" + + "loud.securitycenter.v1.File\0227\n\tlibraries" + + "\030\004 \003(\0132$.google.cloud.securitycenter.v1." + + "File\0224\n\006script\030\005 \001(\0132$.google.cloud.secu" + + "ritycenter.v1.File\022\014\n\004args\030\006 \003(\t\022\033\n\023argu" + + "ments_truncated\030\007 \001(\010\022J\n\renv_variables\030\010" + + " \003(\01323.google.cloud.securitycenter.v1.En" + + "vironmentVariable\022\037\n\027env_variables_trunc" + + "ated\030\t \001(\010\022\013\n\003pid\030\n \001(\003\022\022\n\nparent_pid\030\013 " + + "\001(\003\"0\n\023EnvironmentVariable\022\014\n\004name\030\001 \001(\t" + + "\022\013\n\003val\030\002 \001(\tB\350\001\n\"com.google.cloud.secur" + + "itycenter.v1B\014ProcessProtoP\001ZLgoogle.gol" + + "ang.org/genproto/googleapis/cloud/securi" + + "tycenter/v1;securitycenter\252\002\036Google.Clou" + + "d.SecurityCenter.V1\312\002\036Google\\Cloud\\Secur" + + "ityCenter\\V1\352\002!Google::Cloud::SecurityCe" + + "nter::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.securitycenter.v1.FileProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_Process_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Process_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Process_descriptor, + new java.lang.String[] { "Binary", "Libraries", "Script", "Args", "ArgumentsTruncated", "EnvVariables", "EnvVariablesTruncated", "Pid", "ParentPid", }); + internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor, + new java.lang.String[] { "Name", "Val", }); + com.google.cloud.securitycenter.v1.FileProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProjectName.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProjectName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProjectName.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProjectName.java diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Reference.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Reference.java similarity index 70% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Reference.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Reference.java index d925c90fa..219124e77 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Reference.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Reference.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/vulnerability.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Additional Links
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Reference} */ -public final class Reference extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Reference extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Reference) ReferenceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Reference.newBuilder() to construct. private Reference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Reference() { source_ = ""; uri_ = ""; @@ -44,15 +26,16 @@ private Reference() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Reference(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Reference( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private Reference( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - source_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + source_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + uri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +80,34 @@ private Reference( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto - .internal_static_google_cloud_securitycenter_v1_Reference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Reference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto - .internal_static_google_cloud_securitycenter_v1_Reference_fieldAccessorTable + return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Reference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Reference.class, - com.google.cloud.securitycenter.v1.Reference.Builder.class); + com.google.cloud.securitycenter.v1.Reference.class, com.google.cloud.securitycenter.v1.Reference.Builder.class); } public static final int SOURCE_FIELD_NUMBER = 1; private volatile java.lang.Object source_; /** - * - * *
    * Source of the reference e.g. NVD
    * 
* * string source = 1; - * * @return The source. */ @java.lang.Override @@ -140,29 +116,29 @@ public java.lang.String getSource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; } } /** - * - * *
    * Source of the reference e.g. NVD
    * 
* * string source = 1; - * * @return The bytes for source. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceBytes() { + public com.google.protobuf.ByteString + getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); source_ = b; return b; } else { @@ -173,15 +149,12 @@ public com.google.protobuf.ByteString getSourceBytes() { public static final int URI_FIELD_NUMBER = 2; private volatile java.lang.Object uri_; /** - * - * *
    * Uri for the mentioned source e.g.
    * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
    * 
* * string uri = 2; - * * @return The uri. */ @java.lang.Override @@ -190,30 +163,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * Uri for the mentioned source e.g.
    * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
    * 
* * string uri = 2; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -222,7 +195,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,7 +206,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_); } @@ -264,16 +237,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Reference)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Reference other = - (com.google.cloud.securitycenter.v1.Reference) obj; + com.google.cloud.securitycenter.v1.Reference other = (com.google.cloud.securitycenter.v1.Reference) obj; - if (!getSource().equals(other.getSource())) return false; - if (!getUri().equals(other.getUri())) return false; + if (!getSource() + .equals(other.getSource())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -294,127 +268,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Reference parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Reference parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Reference parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Reference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Reference parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Reference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Reference parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Reference parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Reference parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.Reference parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.Reference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Reference parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Reference parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Reference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.Reference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Additional Links
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Reference} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Reference) com.google.cloud.securitycenter.v1.ReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto - .internal_static_google_cloud_securitycenter_v1_Reference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Reference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto - .internal_static_google_cloud_securitycenter_v1_Reference_fieldAccessorTable + return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Reference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Reference.class, - com.google.cloud.securitycenter.v1.Reference.Builder.class); + com.google.cloud.securitycenter.v1.Reference.class, com.google.cloud.securitycenter.v1.Reference.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.Reference.newBuilder() @@ -422,15 +387,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -442,9 +408,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto - .internal_static_google_cloud_securitycenter_v1_Reference_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Reference_descriptor; } @java.lang.Override @@ -463,8 +429,7 @@ public com.google.cloud.securitycenter.v1.Reference build() { @java.lang.Override public com.google.cloud.securitycenter.v1.Reference buildPartial() { - com.google.cloud.securitycenter.v1.Reference result = - new com.google.cloud.securitycenter.v1.Reference(this); + com.google.cloud.securitycenter.v1.Reference result = new com.google.cloud.securitycenter.v1.Reference(this); result.source_ = source_; result.uri_ = uri_; onBuilt(); @@ -475,39 +440,38 @@ public com.google.cloud.securitycenter.v1.Reference buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.Reference) { - return mergeFrom((com.google.cloud.securitycenter.v1.Reference) other); + return mergeFrom((com.google.cloud.securitycenter.v1.Reference)other); } else { super.mergeFrom(other); return this; @@ -555,20 +519,18 @@ public Builder mergeFrom( private java.lang.Object source_ = ""; /** - * - * *
      * Source of the reference e.g. NVD
      * 
* * string source = 1; - * * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; @@ -577,21 +539,20 @@ public java.lang.String getSource() { } } /** - * - * *
      * Source of the reference e.g. NVD
      * 
* * string source = 1; - * * @return The bytes for source. */ - public com.google.protobuf.ByteString getSourceBytes() { + public com.google.protobuf.ByteString + getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); source_ = b; return b; } else { @@ -599,61 +560,54 @@ public com.google.protobuf.ByteString getSourceBytes() { } } /** - * - * *
      * Source of the reference e.g. NVD
      * 
* * string source = 1; - * * @param value The source to set. * @return This builder for chaining. */ - public Builder setSource(java.lang.String value) { + public Builder setSource( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + source_ = value; onChanged(); return this; } /** - * - * *
      * Source of the reference e.g. NVD
      * 
* * string source = 1; - * * @return This builder for chaining. */ public Builder clearSource() { - + source_ = getDefaultInstance().getSource(); onChanged(); return this; } /** - * - * *
      * Source of the reference e.g. NVD
      * 
* * string source = 1; - * * @param value The bytes for source to set. * @return This builder for chaining. */ - public Builder setSourceBytes(com.google.protobuf.ByteString value) { + public Builder setSourceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; onChanged(); return this; @@ -661,21 +615,19 @@ public Builder setSourceBytes(com.google.protobuf.ByteString value) { private java.lang.Object uri_ = ""; /** - * - * *
      * Uri for the mentioned source e.g.
      * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
      * 
* * string uri = 2; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -684,22 +636,21 @@ public java.lang.String getUri() { } } /** - * - * *
      * Uri for the mentioned source e.g.
      * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
      * 
* * string uri = 2; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -707,71 +658,64 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Uri for the mentioned source e.g.
      * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
      * 
* * string uri = 2; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * Uri for the mentioned source e.g.
      * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
      * 
* * string uri = 2; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Uri for the mentioned source e.g.
      * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
      * 
* * string uri = 2; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -781,12 +725,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Reference) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Reference) private static final com.google.cloud.securitycenter.v1.Reference DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Reference(); } @@ -795,16 +739,16 @@ public static com.google.cloud.securitycenter.v1.Reference getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Reference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Reference(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Reference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Reference(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -819,4 +763,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Reference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ReferenceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ReferenceOrBuilder.java similarity index 57% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ReferenceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ReferenceOrBuilder.java index 312f166af..a90d5bbcd 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ReferenceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ReferenceOrBuilder.java @@ -1,77 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/vulnerability.proto package com.google.cloud.securitycenter.v1; -public interface ReferenceOrBuilder - extends +public interface ReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Reference) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Source of the reference e.g. NVD
    * 
* * string source = 1; - * * @return The source. */ java.lang.String getSource(); /** - * - * *
    * Source of the reference e.g. NVD
    * 
* * string source = 1; - * * @return The bytes for source. */ - com.google.protobuf.ByteString getSourceBytes(); + com.google.protobuf.ByteString + getSourceBytes(); /** - * - * *
    * Uri for the mentioned source e.g.
    * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
    * 
* * string uri = 2; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Uri for the mentioned source e.g.
    * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
    * 
* * string uri = 2; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java similarity index 71% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java index 02c50d5a6..3cf3bd6e9 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/resource.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Information related to the Google Cloud resource.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Resource} */ -public final class Resource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Resource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Resource) ResourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Resource() { name_ = ""; displayName_ = ""; @@ -50,15 +32,16 @@ private Resource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Resource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Resource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -78,73 +61,64 @@ private Resource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - project_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + project_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - projectDisplayName_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + projectDisplayName_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - parentDisplayName_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + parentDisplayName_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); - type_ = s; - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - folders_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - folders_.add( - input.readMessage( - com.google.cloud.securitycenter.v1.Folder.parser(), extensionRegistry)); - break; + type_ = s; + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + folders_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + folders_.add( + input.readMessage(com.google.cloud.securitycenter.v1.Folder.parser(), extensionRegistry)); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + displayName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -152,7 +126,8 @@ private Resource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { folders_ = java.util.Collections.unmodifiableList(folders_); @@ -161,34 +136,28 @@ private Resource( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.ResourceProto - .internal_static_google_cloud_securitycenter_v1_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.ResourceProto.internal_static_google_cloud_securitycenter_v1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ResourceProto - .internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable + return com.google.cloud.securitycenter.v1.ResourceProto.internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Resource.class, - com.google.cloud.securitycenter.v1.Resource.Builder.class); + com.google.cloud.securitycenter.v1.Resource.class, com.google.cloud.securitycenter.v1.Resource.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The full resource name of the resource. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -197,30 +166,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The full resource name of the resource. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -231,14 +200,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 8; private volatile java.lang.Object displayName_; /** - * - * *
    * The human readable name of the resource.
    * 
* * string display_name = 8; - * * @return The displayName. */ @java.lang.Override @@ -247,29 +213,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * The human readable name of the resource.
    * 
* * string display_name = 8; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -280,14 +246,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int TYPE_FIELD_NUMBER = 6; private volatile java.lang.Object type_; /** - * - * *
    * The full resource type of the resource.
    * 
* * string type = 6; - * * @return The type. */ @java.lang.Override @@ -296,29 +259,29 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** - * - * *
    * The full resource type of the resource.
    * 
* * string type = 6; - * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -329,14 +292,11 @@ public com.google.protobuf.ByteString getTypeBytes() { public static final int PROJECT_FIELD_NUMBER = 2; private volatile java.lang.Object project_; /** - * - * *
    * The full resource name of project that the resource belongs to.
    * 
* * string project = 2; - * * @return The project. */ @java.lang.Override @@ -345,29 +305,29 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** - * - * *
    * The full resource name of project that the resource belongs to.
    * 
* * string project = 2; - * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -378,14 +338,11 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int PROJECT_DISPLAY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object projectDisplayName_; /** - * - * *
    * The project ID that the resource belongs to.
    * 
* * string project_display_name = 3; - * * @return The projectDisplayName. */ @java.lang.Override @@ -394,29 +351,29 @@ public java.lang.String getProjectDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectDisplayName_ = s; return s; } } /** - * - * *
    * The project ID that the resource belongs to.
    * 
* * string project_display_name = 3; - * * @return The bytes for projectDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectDisplayNameBytes() { + public com.google.protobuf.ByteString + getProjectDisplayNameBytes() { java.lang.Object ref = projectDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectDisplayName_ = b; return b; } else { @@ -427,14 +384,11 @@ public com.google.protobuf.ByteString getProjectDisplayNameBytes() { public static final int PARENT_FIELD_NUMBER = 4; private volatile java.lang.Object parent_; /** - * - * *
    * The full resource name of resource's parent.
    * 
* * string parent = 4; - * * @return The parent. */ @java.lang.Override @@ -443,29 +397,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * The full resource name of resource's parent.
    * 
* * string parent = 4; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -476,14 +430,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PARENT_DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object parentDisplayName_; /** - * - * *
    * The human readable name of resource's parent.
    * 
* * string parent_display_name = 5; - * * @return The parentDisplayName. */ @java.lang.Override @@ -492,29 +443,29 @@ public java.lang.String getParentDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDisplayName_ = s; return s; } } /** - * - * *
    * The human readable name of resource's parent.
    * 
* * string parent_display_name = 5; - * * @return The bytes for parentDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString getParentDisplayNameBytes() { + public com.google.protobuf.ByteString + getParentDisplayNameBytes() { java.lang.Object ref = parentDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentDisplayName_ = b; return b; } else { @@ -525,94 +476,74 @@ public com.google.protobuf.ByteString getParentDisplayNameBytes() { public static final int FOLDERS_FIELD_NUMBER = 7; private java.util.List folders_; /** - * - * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getFoldersList() { return folders_; } /** - * - * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getFoldersOrBuilderList() { return folders_; } /** - * - * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getFoldersCount() { return folders_.size(); } /** - * - * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.securitycenter.v1.Folder getFolders(int index) { return folders_.get(index); } /** - * - * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index) { + public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder( + int index) { return folders_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -624,7 +555,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -677,7 +609,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, type_); } for (int i = 0; i < folders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, folders_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, folders_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, displayName_); @@ -690,22 +623,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Resource)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Resource other = - (com.google.cloud.securitycenter.v1.Resource) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getType().equals(other.getType())) return false; - if (!getProject().equals(other.getProject())) return false; - if (!getProjectDisplayName().equals(other.getProjectDisplayName())) return false; - if (!getParent().equals(other.getParent())) return false; - if (!getParentDisplayName().equals(other.getParentDisplayName())) return false; - if (!getFoldersList().equals(other.getFoldersList())) return false; + com.google.cloud.securitycenter.v1.Resource other = (com.google.cloud.securitycenter.v1.Resource) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getType() + .equals(other.getType())) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getProjectDisplayName() + .equals(other.getProjectDisplayName())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getParentDisplayName() + .equals(other.getParentDisplayName())) return false; + if (!getFoldersList() + .equals(other.getFoldersList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -740,127 +680,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Resource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Resource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Resource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Resource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Resource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Resource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Resource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Resource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Resource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.Resource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.Resource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Resource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Resource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Resource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.Resource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information related to the Google Cloud resource.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Resource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Resource) com.google.cloud.securitycenter.v1.ResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.ResourceProto - .internal_static_google_cloud_securitycenter_v1_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.ResourceProto.internal_static_google_cloud_securitycenter_v1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ResourceProto - .internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable + return com.google.cloud.securitycenter.v1.ResourceProto.internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Resource.class, - com.google.cloud.securitycenter.v1.Resource.Builder.class); + com.google.cloud.securitycenter.v1.Resource.class, com.google.cloud.securitycenter.v1.Resource.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.Resource.newBuilder() @@ -868,17 +799,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFoldersFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -906,9 +837,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.ResourceProto - .internal_static_google_cloud_securitycenter_v1_Resource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.ResourceProto.internal_static_google_cloud_securitycenter_v1_Resource_descriptor; } @java.lang.Override @@ -927,8 +858,7 @@ public com.google.cloud.securitycenter.v1.Resource build() { @java.lang.Override public com.google.cloud.securitycenter.v1.Resource buildPartial() { - com.google.cloud.securitycenter.v1.Resource result = - new com.google.cloud.securitycenter.v1.Resource(this); + com.google.cloud.securitycenter.v1.Resource result = new com.google.cloud.securitycenter.v1.Resource(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -954,39 +884,38 @@ public com.google.cloud.securitycenter.v1.Resource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.Resource) { - return mergeFrom((com.google.cloud.securitycenter.v1.Resource) other); + return mergeFrom((com.google.cloud.securitycenter.v1.Resource)other); } else { super.mergeFrom(other); return this; @@ -1041,10 +970,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Resource other) { foldersBuilder_ = null; folders_ = other.folders_; bitField0_ = (bitField0_ & ~0x00000001); - foldersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFoldersFieldBuilder() - : null; + foldersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFoldersFieldBuilder() : null; } else { foldersBuilder_.addAllMessages(other.folders_); } @@ -1078,26 +1006,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The full resource name of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1106,22 +1031,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The full resource name of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1129,64 +1053,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The full resource name of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The full resource name of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The full resource name of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1194,20 +1111,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * The human readable name of the resource.
      * 
* * string display_name = 8; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1216,21 +1131,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The human readable name of the resource.
      * 
* * string display_name = 8; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1238,61 +1152,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The human readable name of the resource.
      * 
* * string display_name = 8; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * The human readable name of the resource.
      * 
* * string display_name = 8; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * The human readable name of the resource.
      * 
* * string display_name = 8; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1300,20 +1207,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object type_ = ""; /** - * - * *
      * The full resource type of the resource.
      * 
* * string type = 6; - * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -1322,21 +1227,20 @@ public java.lang.String getType() { } } /** - * - * *
      * The full resource type of the resource.
      * 
* * string type = 6; - * * @return The bytes for type. */ - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -1344,61 +1248,54 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
      * The full resource type of the resource.
      * 
* * string type = 6; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(java.lang.String value) { + public Builder setType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** - * - * *
      * The full resource type of the resource.
      * 
* * string type = 6; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** - * - * *
      * The full resource type of the resource.
      * 
* * string type = 6; - * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; @@ -1406,20 +1303,18 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object project_ = ""; /** - * - * *
      * The full resource name of project that the resource belongs to.
      * 
* * string project = 2; - * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -1428,21 +1323,20 @@ public java.lang.String getProject() { } } /** - * - * *
      * The full resource name of project that the resource belongs to.
      * 
* * string project = 2; - * * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -1450,61 +1344,54 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
      * The full resource name of project that the resource belongs to.
      * 
* * string project = 2; - * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { + public Builder setProject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** - * - * *
      * The full resource name of project that the resource belongs to.
      * 
* * string project = 2; - * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** - * - * *
      * The full resource name of project that the resource belongs to.
      * 
* * string project = 2; - * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; @@ -1512,20 +1399,18 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectDisplayName_ = ""; /** - * - * *
      * The project ID that the resource belongs to.
      * 
* * string project_display_name = 3; - * * @return The projectDisplayName. */ public java.lang.String getProjectDisplayName() { java.lang.Object ref = projectDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectDisplayName_ = s; return s; @@ -1534,21 +1419,20 @@ public java.lang.String getProjectDisplayName() { } } /** - * - * *
      * The project ID that the resource belongs to.
      * 
* * string project_display_name = 3; - * * @return The bytes for projectDisplayName. */ - public com.google.protobuf.ByteString getProjectDisplayNameBytes() { + public com.google.protobuf.ByteString + getProjectDisplayNameBytes() { java.lang.Object ref = projectDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectDisplayName_ = b; return b; } else { @@ -1556,61 +1440,54 @@ public com.google.protobuf.ByteString getProjectDisplayNameBytes() { } } /** - * - * *
      * The project ID that the resource belongs to.
      * 
* * string project_display_name = 3; - * * @param value The projectDisplayName to set. * @return This builder for chaining. */ - public Builder setProjectDisplayName(java.lang.String value) { + public Builder setProjectDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectDisplayName_ = value; onChanged(); return this; } /** - * - * *
      * The project ID that the resource belongs to.
      * 
* * string project_display_name = 3; - * * @return This builder for chaining. */ public Builder clearProjectDisplayName() { - + projectDisplayName_ = getDefaultInstance().getProjectDisplayName(); onChanged(); return this; } /** - * - * *
      * The project ID that the resource belongs to.
      * 
* * string project_display_name = 3; - * * @param value The bytes for projectDisplayName to set. * @return This builder for chaining. */ - public Builder setProjectDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setProjectDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectDisplayName_ = value; onChanged(); return this; @@ -1618,20 +1495,18 @@ public Builder setProjectDisplayNameBytes(com.google.protobuf.ByteString value) private java.lang.Object parent_ = ""; /** - * - * *
      * The full resource name of resource's parent.
      * 
* * string parent = 4; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1640,21 +1515,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * The full resource name of resource's parent.
      * 
* * string parent = 4; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1662,61 +1536,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * The full resource name of resource's parent.
      * 
* * string parent = 4; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * The full resource name of resource's parent.
      * 
* * string parent = 4; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * The full resource name of resource's parent.
      * 
* * string parent = 4; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1724,20 +1591,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object parentDisplayName_ = ""; /** - * - * *
      * The human readable name of resource's parent.
      * 
* * string parent_display_name = 5; - * * @return The parentDisplayName. */ public java.lang.String getParentDisplayName() { java.lang.Object ref = parentDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDisplayName_ = s; return s; @@ -1746,21 +1611,20 @@ public java.lang.String getParentDisplayName() { } } /** - * - * *
      * The human readable name of resource's parent.
      * 
* * string parent_display_name = 5; - * * @return The bytes for parentDisplayName. */ - public com.google.protobuf.ByteString getParentDisplayNameBytes() { + public com.google.protobuf.ByteString + getParentDisplayNameBytes() { java.lang.Object ref = parentDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentDisplayName_ = b; return b; } else { @@ -1768,94 +1632,79 @@ public com.google.protobuf.ByteString getParentDisplayNameBytes() { } } /** - * - * *
      * The human readable name of resource's parent.
      * 
* * string parent_display_name = 5; - * * @param value The parentDisplayName to set. * @return This builder for chaining. */ - public Builder setParentDisplayName(java.lang.String value) { + public Builder setParentDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parentDisplayName_ = value; onChanged(); return this; } /** - * - * *
      * The human readable name of resource's parent.
      * 
* * string parent_display_name = 5; - * * @return This builder for chaining. */ public Builder clearParentDisplayName() { - + parentDisplayName_ = getDefaultInstance().getParentDisplayName(); onChanged(); return this; } /** - * - * *
      * The human readable name of resource's parent.
      * 
* * string parent_display_name = 5; - * * @param value The bytes for parentDisplayName to set. * @return This builder for chaining. */ - public Builder setParentDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setParentDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentDisplayName_ = value; onChanged(); return this; } private java.util.List folders_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { folders_ = new java.util.ArrayList(folders_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Folder, - com.google.cloud.securitycenter.v1.Folder.Builder, - com.google.cloud.securitycenter.v1.FolderOrBuilder> - foldersBuilder_; + com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder> foldersBuilder_; /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getFoldersList() { if (foldersBuilder_ == null) { @@ -1865,17 +1714,13 @@ public java.util.List getFoldersList( } } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getFoldersCount() { if (foldersBuilder_ == null) { @@ -1885,17 +1730,13 @@ public int getFoldersCount() { } } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) { if (foldersBuilder_ == null) { @@ -1905,19 +1746,16 @@ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) { } } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setFolders(int index, com.google.cloud.securitycenter.v1.Folder value) { + public Builder setFolders( + int index, com.google.cloud.securitycenter.v1.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1931,17 +1769,13 @@ public Builder setFolders(int index, com.google.cloud.securitycenter.v1.Folder v return this; } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setFolders( int index, com.google.cloud.securitycenter.v1.Folder.Builder builderForValue) { @@ -1955,17 +1789,13 @@ public Builder setFolders( return this; } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addFolders(com.google.cloud.securitycenter.v1.Folder value) { if (foldersBuilder_ == null) { @@ -1981,19 +1811,16 @@ public Builder addFolders(com.google.cloud.securitycenter.v1.Folder value) { return this; } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addFolders(int index, com.google.cloud.securitycenter.v1.Folder value) { + public Builder addFolders( + int index, com.google.cloud.securitycenter.v1.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2007,19 +1834,16 @@ public Builder addFolders(int index, com.google.cloud.securitycenter.v1.Folder v return this; } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addFolders(com.google.cloud.securitycenter.v1.Folder.Builder builderForValue) { + public Builder addFolders( + com.google.cloud.securitycenter.v1.Folder.Builder builderForValue) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); folders_.add(builderForValue.build()); @@ -2030,17 +1854,13 @@ public Builder addFolders(com.google.cloud.securitycenter.v1.Folder.Builder buil return this; } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addFolders( int index, com.google.cloud.securitycenter.v1.Folder.Builder builderForValue) { @@ -2054,23 +1874,20 @@ public Builder addFolders( return this; } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllFolders( java.lang.Iterable values) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, folders_); onChanged(); } else { foldersBuilder_.addAllMessages(values); @@ -2078,17 +1895,13 @@ public Builder addAllFolders( return this; } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearFolders() { if (foldersBuilder_ == null) { @@ -2101,17 +1914,13 @@ public Builder clearFolders() { return this; } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeFolders(int index) { if (foldersBuilder_ == null) { @@ -2124,56 +1933,45 @@ public Builder removeFolders(int index) { return this; } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.securitycenter.v1.Folder.Builder getFoldersBuilder(int index) { + public com.google.cloud.securitycenter.v1.Folder.Builder getFoldersBuilder( + int index) { return getFoldersFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index) { + public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder( + int index) { if (foldersBuilder_ == null) { - return folders_.get(index); - } else { + return folders_.get(index); } else { return foldersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getFoldersOrBuilderList() { + public java.util.List + getFoldersOrBuilderList() { if (foldersBuilder_ != null) { return foldersBuilder_.getMessageOrBuilderList(); } else { @@ -2181,76 +1979,62 @@ public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(in } } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder() { - return getFoldersFieldBuilder() - .addBuilder(com.google.cloud.securitycenter.v1.Folder.getDefaultInstance()); + return getFoldersFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1.Folder.getDefaultInstance()); } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder(int index) { - return getFoldersFieldBuilder() - .addBuilder(index, com.google.cloud.securitycenter.v1.Folder.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder( + int index) { + return getFoldersFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1.Folder.getDefaultInstance()); } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getFoldersBuilderList() { + public java.util.List + getFoldersBuilderList() { return getFoldersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Folder, - com.google.cloud.securitycenter.v1.Folder.Builder, - com.google.cloud.securitycenter.v1.FolderOrBuilder> + com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder> getFoldersFieldBuilder() { if (foldersBuilder_ == null) { - foldersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Folder, - com.google.cloud.securitycenter.v1.Folder.Builder, - com.google.cloud.securitycenter.v1.FolderOrBuilder>( - folders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + foldersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder>( + folders_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); folders_ = null; } return foldersBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2260,12 +2044,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Resource) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Resource) private static final com.google.cloud.securitycenter.v1.Resource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Resource(); } @@ -2274,16 +2058,16 @@ public static com.google.cloud.securitycenter.v1.Resource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Resource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Resource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Resource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Resource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2298,4 +2082,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Resource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java similarity index 68% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java index 012396ecf..0614493ac 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java @@ -1,274 +1,205 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/resource.proto package com.google.cloud.securitycenter.v1; -public interface ResourceOrBuilder - extends +public interface ResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Resource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The full resource name of the resource. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The full resource name of the resource. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The human readable name of the resource.
    * 
* * string display_name = 8; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The human readable name of the resource.
    * 
* * string display_name = 8; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * The full resource type of the resource.
    * 
* * string type = 6; - * * @return The type. */ java.lang.String getType(); /** - * - * *
    * The full resource type of the resource.
    * 
* * string type = 6; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
    * The full resource name of project that the resource belongs to.
    * 
* * string project = 2; - * * @return The project. */ java.lang.String getProject(); /** - * - * *
    * The full resource name of project that the resource belongs to.
    * 
* * string project = 2; - * * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); /** - * - * *
    * The project ID that the resource belongs to.
    * 
* * string project_display_name = 3; - * * @return The projectDisplayName. */ java.lang.String getProjectDisplayName(); /** - * - * *
    * The project ID that the resource belongs to.
    * 
* * string project_display_name = 3; - * * @return The bytes for projectDisplayName. */ - com.google.protobuf.ByteString getProjectDisplayNameBytes(); + com.google.protobuf.ByteString + getProjectDisplayNameBytes(); /** - * - * *
    * The full resource name of resource's parent.
    * 
* * string parent = 4; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * The full resource name of resource's parent.
    * 
* * string parent = 4; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The human readable name of resource's parent.
    * 
* * string parent_display_name = 5; - * * @return The parentDisplayName. */ java.lang.String getParentDisplayName(); /** - * - * *
    * The human readable name of resource's parent.
    * 
* * string parent_display_name = 5; - * * @return The bytes for parentDisplayName. */ - com.google.protobuf.ByteString getParentDisplayNameBytes(); + com.google.protobuf.ByteString + getParentDisplayNameBytes(); /** - * - * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getFoldersList(); + java.util.List + getFoldersList(); /** - * - * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.securitycenter.v1.Folder getFolders(int index); /** - * - * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getFoldersCount(); /** - * - * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getFoldersOrBuilderList(); /** - * - * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index); + com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder( + int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java new file mode 100644 index 000000000..4431fc83d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java @@ -0,0 +1,70 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/resource.proto + +package com.google.cloud.securitycenter.v1; + +public final class ResourceProto { + private ResourceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Resource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/securitycenter/v1/resourc" + + "e.proto\022\036google.cloud.securitycenter.v1\032" + + "\037google/api/field_behavior.proto\032+google" + + "/cloud/securitycenter/v1/folder.proto\"\326\001" + + "\n\010Resource\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name" + + "\030\010 \001(\t\022\014\n\004type\030\006 \001(\t\022\017\n\007project\030\002 \001(\t\022\034\n" + + "\024project_display_name\030\003 \001(\t\022\016\n\006parent\030\004 " + + "\001(\t\022\033\n\023parent_display_name\030\005 \001(\t\022<\n\007fold" + + "ers\030\007 \003(\0132&.google.cloud.securitycenter." + + "v1.FolderB\003\340A\003B\351\001\n\"com.google.cloud.secu" + + "ritycenter.v1B\rResourceProtoP\001ZLgoogle.g" + + "olang.org/genproto/googleapis/cloud/secu" + + "ritycenter/v1;securitycenter\252\002\036Google.Cl" + + "oud.SecurityCenter.V1\312\002\036Google\\Cloud\\Sec" + + "urityCenter\\V1\352\002!Google::Cloud::Security" + + "Center::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_Resource_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Resource_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Type", "Project", "ProjectDisplayName", "Parent", "ParentDisplayName", "Folders", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java similarity index 66% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java index b12029674..64d944653 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for running asset discovery for an organization.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.RunAssetDiscoveryRequest} */ -public final class RunAssetDiscoveryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RunAssetDiscoveryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) RunAssetDiscoveryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RunAssetDiscoveryRequest.newBuilder() to construct. private RunAssetDiscoveryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RunAssetDiscoveryRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RunAssetDiscoveryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RunAssetDiscoveryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private RunAssetDiscoveryRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parent_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private RunAssetDiscoveryRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.class, - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.Builder.class); + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.class, com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the organization to run asset discovery for. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Name of the organization to run asset discovery for. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest other = - (com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) obj; + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest other = (com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for running asset discovery for an organization.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.RunAssetDiscoveryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.class, - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.Builder.class); + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.class, com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor; } @java.lang.Override @@ -400,8 +364,7 @@ public com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest buildPartial() { - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest result = - new com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest(this); + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest result = new com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -411,39 +374,38 @@ public com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest)other); } else { super.mergeFrom(other); return this; @@ -451,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest other) { - if (other == com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -476,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -489,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -514,24 +470,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -539,77 +492,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -619,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) private static final com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest(); } @@ -633,16 +573,16 @@ public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunAssetDiscoveryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunAssetDiscoveryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunAssetDiscoveryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunAssetDiscoveryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java new file mode 100644 index 000000000..47f3cc4f2 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface RunAssetDiscoveryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the organization to run asset discovery for. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Name of the organization to run asset discovery for. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java similarity index 70% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java index 43ba55b88..87d3ace86 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/run_asset_discovery_response.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Response of asset discovery run
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.RunAssetDiscoveryResponse} */ -public final class RunAssetDiscoveryResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RunAssetDiscoveryResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) RunAssetDiscoveryResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RunAssetDiscoveryResponse.newBuilder() to construct. private RunAssetDiscoveryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RunAssetDiscoveryResponse() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RunAssetDiscoveryResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RunAssetDiscoveryResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,35 +53,32 @@ private RunAssetDiscoveryResponse( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; + state_ = rawValue; + break; + } + case 18: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (duration_ != null) { - subBuilder = duration_.toBuilder(); - } - duration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(duration_); - duration_ = subBuilder.buildPartial(); - } - - break; + duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,41 +86,36 @@ private RunAssetDiscoveryResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass - .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass - .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.class, - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.Builder.class); + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.class, com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.Builder.class); } /** - * - * *
    * The state of an asset discovery run.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Asset discovery run state was unspecified.
      * 
@@ -149,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Asset discovery run completed successfully.
      * 
@@ -159,8 +132,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ COMPLETED(1), /** - * - * *
      * Asset discovery run was cancelled with tasks still pending, as another
      * run for the same organization was started with a higher priority.
@@ -170,8 +141,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     SUPERSEDED(2),
     /**
-     *
-     *
      * 
      * Asset discovery run was killed and terminated.
      * 
@@ -183,8 +152,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Asset discovery run state was unspecified.
      * 
@@ -193,8 +160,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Asset discovery run completed successfully.
      * 
@@ -203,8 +168,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPLETED_VALUE = 1; /** - * - * *
      * Asset discovery run was cancelled with tasks still pending, as another
      * run for the same organization was started with a higher priority.
@@ -214,8 +177,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SUPERSEDED_VALUE = 2;
     /**
-     *
-     *
      * 
      * Asset discovery run was killed and terminated.
      * 
@@ -224,6 +185,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TERMINATED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -248,53 +210,50 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return COMPLETED; - case 2: - return SUPERSEDED; - case 3: - return TERMINATED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return COMPLETED; + case 2: return SUPERSEDED; + case 3: return TERMINATED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -314,52 +273,38 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** - * - * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getState() { + @java.lang.Override public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State result = - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.valueOf(state_); - return result == null - ? com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State result = com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.valueOf(state_); + return result == null ? com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.UNRECOGNIZED : result; } public static final int DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration duration_; /** - * - * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; - * * @return Whether the duration field is set. */ @java.lang.Override @@ -367,14 +312,11 @@ public boolean hasDuration() { return duration_ != null; } /** - * - * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; - * * @return The duration. */ @java.lang.Override @@ -382,8 +324,6 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** - * - * *
    * The duration between asset discovery run start and end
    * 
@@ -396,7 +336,6 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -408,10 +347,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (duration_ != null) { @@ -426,13 +364,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDuration()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -442,18 +380,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse other = - (com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) obj; + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse other = (com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) obj; if (state_ != other.state_) return false; if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration().equals(other.getDuration())) return false; + if (!getDuration() + .equals(other.getDuration())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -478,127 +416,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response of asset discovery run
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.RunAssetDiscoveryResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass - .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass - .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.class, - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.Builder.class); + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.class, com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.newBuilder() @@ -606,15 +534,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -630,14 +559,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass - .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.getDefaultInstance(); } @@ -652,8 +580,7 @@ public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse buildPartial() { - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse result = - new com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse(this); + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse result = new com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse(this); result.state_ = state_; if (durationBuilder_ == null) { result.duration_ = duration_; @@ -668,39 +595,38 @@ public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse)other); } else { super.mergeFrom(other); return this; @@ -708,9 +634,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse other) { - if (other - == com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -736,8 +660,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -749,93 +672,73 @@ public Builder mergeFrom( private int state_ = 0; /** - * - * *
      * The state of an asset discovery run.
      * 
* * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of an asset discovery run.
      * 
* * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The state of an asset discovery run.
      * 
* * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State result = - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.valueOf(state_); - return result == null - ? com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State result = com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.valueOf(state_); + return result == null ? com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of an asset discovery run.
      * 
* * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState( - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State value) { + public Builder setState(com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of an asset discovery run.
      * 
* * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -843,33 +746,24 @@ public Builder clearState() { private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - durationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; /** - * - * *
      * The duration between asset discovery run start and end
      * 
* * .google.protobuf.Duration duration = 2; - * * @return Whether the duration field is set. */ public boolean hasDuration() { return durationBuilder_ != null || duration_ != null; } /** - * - * *
      * The duration between asset discovery run start and end
      * 
* * .google.protobuf.Duration duration = 2; - * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -880,8 +774,6 @@ public com.google.protobuf.Duration getDuration() { } } /** - * - * *
      * The duration between asset discovery run start and end
      * 
@@ -902,15 +794,14 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * The duration between asset discovery run start and end
      * 
* * .google.protobuf.Duration duration = 2; */ - public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); onChanged(); @@ -921,8 +812,6 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
      * The duration between asset discovery run start and end
      * 
@@ -933,7 +822,7 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (duration_ != null) { duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); } else { duration_ = value; } @@ -945,8 +834,6 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * The duration between asset discovery run start and end
      * 
@@ -965,8 +852,6 @@ public Builder clearDuration() { return this; } /** - * - * *
      * The duration between asset discovery run start and end
      * 
@@ -974,13 +859,11 @@ public Builder clearDuration() { * .google.protobuf.Duration duration = 2; */ public com.google.protobuf.Duration.Builder getDurationBuilder() { - + onChanged(); return getDurationFieldBuilder().getBuilder(); } /** - * - * *
      * The duration between asset discovery run start and end
      * 
@@ -991,12 +874,11 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** - * - * *
      * The duration between asset discovery run start and end
      * 
@@ -1004,24 +886,21 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { * .google.protobuf.Duration duration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDuration(), getParentForChildren(), isClean()); + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); duration_ = null; } return durationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1031,13 +910,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) - private static final com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse(); } @@ -1046,16 +924,16 @@ public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunAssetDiscoveryResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunAssetDiscoveryResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunAssetDiscoveryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunAssetDiscoveryResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1070,4 +948,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOrBuilder.java index 2ea9e475f..763ecd855 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOrBuilder.java @@ -1,80 +1,50 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/run_asset_discovery_response.proto package com.google.cloud.securitycenter.v1; -public interface RunAssetDiscoveryResponseOrBuilder - extends +public interface RunAssetDiscoveryResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; - * * @return The state. */ com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getState(); /** - * - * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; - * * @return Whether the duration field is set. */ boolean hasDuration(); /** - * - * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; - * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** - * - * *
    * The duration between asset discovery run start and end
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java new file mode 100644 index 000000000..df2adbd0a --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/run_asset_discovery_response.proto + +package com.google.cloud.securitycenter.v1; + +public final class RunAssetDiscoveryResponseOuterClass { + private RunAssetDiscoveryResponseOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nAgoogle/cloud/securitycenter/v1/run_ass" + + "et_discovery_response.proto\022\036google.clou" + + "d.securitycenter.v1\032\036google/protobuf/dur" + + "ation.proto\"\347\001\n\031RunAssetDiscoveryRespons" + + "e\022N\n\005state\030\001 \001(\0162?.google.cloud.security" + + "center.v1.RunAssetDiscoveryResponse.Stat" + + "e\022+\n\010duration\030\002 \001(\0132\031.google.protobuf.Du" + + "ration\"M\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r" + + "\n\tCOMPLETED\020\001\022\016\n\nSUPERSEDED\020\002\022\016\n\nTERMINA" + + "TED\020\003B\332\001\n\"com.google.cloud.securitycente" + + "r.v1P\001ZLgoogle.golang.org/genproto/googl" + + "eapis/cloud/securitycenter/v1;securityce" + + "nter\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036" + + "Google\\Cloud\\SecurityCenter\\V1\352\002!Google:" + + ":Cloud::SecurityCenter::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor, + new java.lang.String[] { "State", "Duration", }); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java similarity index 72% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java index 33432547d..0335e4e01 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/security_marks.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * User specified security marks that are attached to the parent Security
  * Command Center resource. Security marks are scoped within a Security Command
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.SecurityMarks}
  */
-public final class SecurityMarks extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SecurityMarks extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.SecurityMarks)
     SecurityMarksOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SecurityMarks.newBuilder() to construct.
   private SecurityMarks(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SecurityMarks() {
     name_ = "";
     canonicalName_ = "";
@@ -47,15 +29,16 @@ private SecurityMarks() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SecurityMarks();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SecurityMarks(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,40 +58,38 @@ private SecurityMarks(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                marks_ =
-                    com.google.protobuf.MapField.newMapField(MarksDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry marks__ =
-                  input.readMessage(
-                      MarksDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              marks_.getMutableMap().put(marks__.getKey(), marks__.getValue());
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              marks_ = com.google.protobuf.MapField.newMapField(
+                  MarksDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            com.google.protobuf.MapEntry
+            marks__ = input.readMessage(
+                MarksDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            marks_.getMutableMap().put(
+                marks__.getKey(), marks__.getValue());
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              canonicalName_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            canonicalName_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -116,44 +97,41 @@ private SecurityMarks(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass
-        .internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 2:
         return internalGetMarks();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass
-        .internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.SecurityMarks.class,
-            com.google.cloud.securitycenter.v1.SecurityMarks.Builder.class);
+            com.google.cloud.securitycenter.v1.SecurityMarks.class, com.google.cloud.securitycenter.v1.SecurityMarks.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -163,7 +141,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -172,15 +149,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -190,15 +166,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -207,23 +184,24 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int MARKS_FIELD_NUMBER = 2; - private static final class MarksDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.securitycenter.v1.SecurityMarksOuterClass - .internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField marks_; - - private com.google.protobuf.MapField internalGetMarks() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> marks_; + private com.google.protobuf.MapField + internalGetMarks() { if (marks_ == null) { - return com.google.protobuf.MapField.emptyMapField(MarksDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MarksDefaultEntryHolder.defaultEntry); } return marks_; } @@ -232,8 +210,6 @@ public int getMarksCount() { return internalGetMarks().getMap().size(); } /** - * - * *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -246,22 +222,22 @@ public int getMarksCount() {
    *
    * map<string, string> marks = 2;
    */
+
   @java.lang.Override
-  public boolean containsMarks(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsMarks(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetMarks().getMap().containsKey(key);
   }
-  /** Use {@link #getMarksMap()} instead. */
+  /**
+   * Use {@link #getMarksMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMarks() {
     return getMarksMap();
   }
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -275,12 +251,11 @@ public java.util.Map getMarks() {
    * map<string, string> marks = 2;
    */
   @java.lang.Override
+
   public java.util.Map getMarksMap() {
     return internalGetMarks().getMap();
   }
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -294,16 +269,16 @@ public java.util.Map getMarksMap() {
    * map<string, string> marks = 2;
    */
   @java.lang.Override
-  public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetMarks().getMap();
+
+  public java.lang.String getMarksOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetMarks().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -317,11 +292,12 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String
    * map<string, string> marks = 2;
    */
   @java.lang.Override
-  public java.lang.String getMarksOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetMarks().getMap();
+
+  public java.lang.String getMarksOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetMarks().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -331,8 +307,6 @@ public java.lang.String getMarksOrThrow(java.lang.String key) {
   public static final int CANONICAL_NAME_FIELD_NUMBER = 3;
   private volatile java.lang.Object canonicalName_;
   /**
-   *
-   *
    * 
    * The canonical name of the marks.
    * Examples:
@@ -345,7 +319,6 @@ public java.lang.String getMarksOrThrow(java.lang.String key) {
    * 
* * string canonical_name = 3; - * * @return The canonicalName. */ @java.lang.Override @@ -354,15 +327,14 @@ public java.lang.String getCanonicalName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; } } /** - * - * *
    * The canonical name of the marks.
    * Examples:
@@ -375,15 +347,16 @@ public java.lang.String getCanonicalName() {
    * 
* * string canonical_name = 3; - * * @return The bytes for canonicalName. */ @java.lang.Override - public com.google.protobuf.ByteString getCanonicalNameBytes() { + public com.google.protobuf.ByteString + getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -392,7 +365,6 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -404,12 +376,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMarks(), MarksDefaultEntryHolder.defaultEntry, 2); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMarks(), + MarksDefaultEntryHolder.defaultEntry, + 2); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, canonicalName_); } @@ -425,15 +402,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - for (java.util.Map.Entry entry : - internalGetMarks().getMap().entrySet()) { - com.google.protobuf.MapEntry marks__ = - MarksDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, marks__); + for (java.util.Map.Entry entry + : internalGetMarks().getMap().entrySet()) { + com.google.protobuf.MapEntry + marks__ = MarksDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, marks__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, canonicalName_); @@ -446,17 +423,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.SecurityMarks)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.SecurityMarks other = - (com.google.cloud.securitycenter.v1.SecurityMarks) obj; + com.google.cloud.securitycenter.v1.SecurityMarks other = (com.google.cloud.securitycenter.v1.SecurityMarks) obj; - if (!getName().equals(other.getName())) return false; - if (!internalGetMarks().equals(other.internalGetMarks())) return false; - if (!getCanonicalName().equals(other.getCanonicalName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!internalGetMarks().equals( + other.internalGetMarks())) return false; + if (!getCanonicalName() + .equals(other.getCanonicalName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -481,104 +460,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.SecurityMarks parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.SecurityMarks parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.SecurityMarks parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.SecurityMarks prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * User specified security marks that are attached to the parent Security
    * Command Center resource. Security marks are scoped within a Security Command
@@ -588,43 +560,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.SecurityMarks}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.SecurityMarks)
       com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass
-          .internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 2:
           return internalGetMarks();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 2:
           return internalGetMutableMarks();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass
-          .internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.SecurityMarks.class,
-              com.google.cloud.securitycenter.v1.SecurityMarks.Builder.class);
+              com.google.cloud.securitycenter.v1.SecurityMarks.class, com.google.cloud.securitycenter.v1.SecurityMarks.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.SecurityMarks.newBuilder()
@@ -632,15 +604,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -653,9 +626,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass
-          .internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor;
     }
 
     @java.lang.Override
@@ -674,8 +647,7 @@ public com.google.cloud.securitycenter.v1.SecurityMarks build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.SecurityMarks buildPartial() {
-      com.google.cloud.securitycenter.v1.SecurityMarks result =
-          new com.google.cloud.securitycenter.v1.SecurityMarks(this);
+      com.google.cloud.securitycenter.v1.SecurityMarks result = new com.google.cloud.securitycenter.v1.SecurityMarks(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.marks_ = internalGetMarks();
@@ -689,39 +661,38 @@ public com.google.cloud.securitycenter.v1.SecurityMarks buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.SecurityMarks) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.SecurityMarks) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.SecurityMarks)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -729,13 +700,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1.SecurityMarks other) {
-      if (other == com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
       }
-      internalGetMutableMarks().mergeFrom(other.internalGetMarks());
+      internalGetMutableMarks().mergeFrom(
+          other.internalGetMarks());
       if (!other.getCanonicalName().isEmpty()) {
         canonicalName_ = other.canonicalName_;
         onChanged();
@@ -768,13 +739,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -784,13 +752,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -799,8 +767,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -810,14 +776,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -825,8 +792,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -836,22 +801,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -861,18 +824,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -882,36 +842,37 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField marks_; - - private com.google.protobuf.MapField internalGetMarks() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> marks_; + private com.google.protobuf.MapField + internalGetMarks() { if (marks_ == null) { - return com.google.protobuf.MapField.emptyMapField(MarksDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MarksDefaultEntryHolder.defaultEntry); } return marks_; } - private com.google.protobuf.MapField - internalGetMutableMarks() { - onChanged(); - ; + internalGetMutableMarks() { + onChanged();; if (marks_ == null) { - marks_ = com.google.protobuf.MapField.newMapField(MarksDefaultEntryHolder.defaultEntry); + marks_ = com.google.protobuf.MapField.newMapField( + MarksDefaultEntryHolder.defaultEntry); } if (!marks_.isMutable()) { marks_ = marks_.copy(); @@ -923,8 +884,6 @@ public int getMarksCount() { return internalGetMarks().getMap().size(); } /** - * - * *
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -937,22 +896,22 @@ public int getMarksCount() {
      *
      * map<string, string> marks = 2;
      */
+
     @java.lang.Override
-    public boolean containsMarks(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsMarks(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetMarks().getMap().containsKey(key);
     }
-    /** Use {@link #getMarksMap()} instead. */
+    /**
+     * Use {@link #getMarksMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMarks() {
       return getMarksMap();
     }
     /**
-     *
-     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -966,12 +925,11 @@ public java.util.Map getMarks() {
      * map<string, string> marks = 2;
      */
     @java.lang.Override
+
     public java.util.Map getMarksMap() {
       return internalGetMarks().getMap();
     }
     /**
-     *
-     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -985,16 +943,16 @@ public java.util.Map getMarksMap() {
      * map<string, string> marks = 2;
      */
     @java.lang.Override
-    public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetMarks().getMap();
+
+    public java.lang.String getMarksOrDefault(
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetMarks().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -1008,11 +966,12 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String
      * map<string, string> marks = 2;
      */
     @java.lang.Override
-    public java.lang.String getMarksOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetMarks().getMap();
+
+    public java.lang.String getMarksOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetMarks().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1020,12 +979,11 @@ public java.lang.String getMarksOrThrow(java.lang.String key) {
     }
 
     public Builder clearMarks() {
-      internalGetMutableMarks().getMutableMap().clear();
+      internalGetMutableMarks().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -1038,21 +996,23 @@ public Builder clearMarks() {
      *
      * map<string, string> marks = 2;
      */
-    public Builder removeMarks(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableMarks().getMutableMap().remove(key);
+
+    public Builder removeMarks(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableMarks().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableMarks() {
+    public java.util.Map
+    getMutableMarks() {
       return internalGetMutableMarks().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -1065,20 +1025,19 @@ public java.util.Map getMutableMarks() {
      *
      * map<string, string> marks = 2;
      */
-    public Builder putMarks(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putMarks(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableMarks().getMutableMap().put(key, value);
+      internalGetMutableMarks().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -1091,15 +1050,16 @@ public Builder putMarks(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> marks = 2;
      */
-    public Builder putAllMarks(java.util.Map values) {
-      internalGetMutableMarks().getMutableMap().putAll(values);
+
+    public Builder putAllMarks(
+        java.util.Map values) {
+      internalGetMutableMarks().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private java.lang.Object canonicalName_ = "";
     /**
-     *
-     *
      * 
      * The canonical name of the marks.
      * Examples:
@@ -1112,13 +1072,13 @@ public Builder putAllMarks(java.util.Map val
      * 
* * string canonical_name = 3; - * * @return The canonicalName. */ public java.lang.String getCanonicalName() { java.lang.Object ref = canonicalName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; @@ -1127,8 +1087,6 @@ public java.lang.String getCanonicalName() { } } /** - * - * *
      * The canonical name of the marks.
      * Examples:
@@ -1141,14 +1099,15 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 3; - * * @return The bytes for canonicalName. */ - public com.google.protobuf.ByteString getCanonicalNameBytes() { + public com.google.protobuf.ByteString + getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -1156,8 +1115,6 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() { } } /** - * - * *
      * The canonical name of the marks.
      * Examples:
@@ -1170,22 +1127,20 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() {
      * 
* * string canonical_name = 3; - * * @param value The canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalName(java.lang.String value) { + public Builder setCanonicalName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + canonicalName_ = value; onChanged(); return this; } /** - * - * *
      * The canonical name of the marks.
      * Examples:
@@ -1198,18 +1153,15 @@ public Builder setCanonicalName(java.lang.String value) {
      * 
* * string canonical_name = 3; - * * @return This builder for chaining. */ public Builder clearCanonicalName() { - + canonicalName_ = getDefaultInstance().getCanonicalName(); onChanged(); return this; } /** - * - * *
      * The canonical name of the marks.
      * Examples:
@@ -1222,23 +1174,23 @@ public Builder clearCanonicalName() {
      * 
* * string canonical_name = 3; - * * @param value The bytes for canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalNameBytes(com.google.protobuf.ByteString value) { + public Builder setCanonicalNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1248,12 +1200,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.SecurityMarks) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.SecurityMarks) private static final com.google.cloud.securitycenter.v1.SecurityMarks DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.SecurityMarks(); } @@ -1262,16 +1214,16 @@ public static com.google.cloud.securitycenter.v1.SecurityMarks getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecurityMarks parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecurityMarks(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityMarks parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecurityMarks(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1286,4 +1238,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.SecurityMarks getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java similarity index 81% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java index f5ff88380..79b8a6944 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/security_marks.proto package com.google.cloud.securitycenter.v1; -public interface SecurityMarksOrBuilder - extends +public interface SecurityMarksOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.SecurityMarks) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -35,13 +17,10 @@ public interface SecurityMarksOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -51,14 +30,12 @@ public interface SecurityMarksOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -73,8 +50,6 @@ public interface SecurityMarksOrBuilder
    */
   int getMarksCount();
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -87,13 +62,15 @@ public interface SecurityMarksOrBuilder
    *
    * map<string, string> marks = 2;
    */
-  boolean containsMarks(java.lang.String key);
-  /** Use {@link #getMarksMap()} instead. */
+  boolean containsMarks(
+      java.lang.String key);
+  /**
+   * Use {@link #getMarksMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getMarks();
+  java.util.Map
+  getMarks();
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -106,10 +83,9 @@ public interface SecurityMarksOrBuilder
    *
    * map<string, string> marks = 2;
    */
-  java.util.Map getMarksMap();
+  java.util.Map
+  getMarksMap();
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -124,13 +100,11 @@ public interface SecurityMarksOrBuilder
    */
 
   /* nullable */
-  java.lang.String getMarksOrDefault(
+java.lang.String getMarksOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -143,11 +117,11 @@ java.lang.String getMarksOrDefault(
    *
    * map<string, string> marks = 2;
    */
-  java.lang.String getMarksOrThrow(java.lang.String key);
+
+  java.lang.String getMarksOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * The canonical name of the marks.
    * Examples:
@@ -160,13 +134,10 @@ java.lang.String getMarksOrDefault(
    * 
* * string canonical_name = 3; - * * @return The canonicalName. */ java.lang.String getCanonicalName(); /** - * - * *
    * The canonical name of the marks.
    * Examples:
@@ -179,8 +150,8 @@ java.lang.String getMarksOrDefault(
    * 
* * string canonical_name = 3; - * * @return The bytes for canonicalName. */ - com.google.protobuf.ByteString getCanonicalNameBytes(); + com.google.protobuf.ByteString + getCanonicalNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java new file mode 100644 index 000000000..0f1dc5db6 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java @@ -0,0 +1,87 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/security_marks.proto + +package com.google.cloud.securitycenter.v1; + +public final class SecurityMarksOuterClass { + private SecurityMarksOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/securitycenter/v1/securit" + + "y_marks.proto\022\036google.cloud.securitycent" + + "er.v1\032\031google/api/resource.proto\"\325\004\n\rSec" + + "urityMarks\022\014\n\004name\030\001 \001(\t\022G\n\005marks\030\002 \003(\0132" + + "8.google.cloud.securitycenter.v1.Securit" + + "yMarks.MarksEntry\022\026\n\016canonical_name\030\003 \001(" + + "\t\032,\n\nMarksEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001:\246\003\352A\242\003\n+securitycenter.googleapi" + + "s.com/SecurityMarks\0229organizations/{orga" + + "nization}/assets/{asset}/securityMarks\022N" + + "organizations/{organization}/sources/{so" + + "urce}/findings/{finding}/securityMarks\022-" + + "folders/{folder}/assets/{asset}/security" + + "Marks\022/projects/{project}/assets/{asset}" + + "/securityMarks\022Bfolders/{folder}/sources" + + "/{source}/findings/{finding}/securityMar" + + "ks\022Dprojects/{project}/sources/{source}/" + + "findings/{finding}/securityMarksB\332\001\n\"com" + + ".google.cloud.securitycenter.v1P\001ZLgoogl" + + "e.golang.org/genproto/googleapis/cloud/s" + + "ecuritycenter/v1;securitycenter\252\002\036Google" + + ".Cloud.SecurityCenter.V1\312\002\036Google\\Cloud\\" + + "SecurityCenter\\V1\352\002!Google::Cloud::Secur" + + "ityCenter::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor, + new java.lang.String[] { "Name", "Marks", "CanonicalName", }); + internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_descriptor = + internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java new file mode 100644 index 000000000..8e93a9135 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java @@ -0,0 +1,1085 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public final class SecuritycenterService { + private SecuritycenterService() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_SetMuteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n;google/cloud/securitycenter/v1/securit" + + "ycenter_service.proto\022\036google.cloud.secu" + + "ritycenter.v1\032Agoogle/cloud/securitycent" + + "er/v1/run_asset_discovery_response.proto" + + "\032\034google/api/annotations.proto\032\027google/a" + + "pi/client.proto\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\032*goo" + + "gle/cloud/securitycenter/v1/asset.proto\032" + + "4google/cloud/securitycenter/v1/bigquery" + + "_export.proto\0324google/cloud/securitycent" + + "er/v1/external_system.proto\032,google/clou" + + "d/securitycenter/v1/finding.proto\032+googl" + + "e/cloud/securitycenter/v1/folder.proto\0320" + + "google/cloud/securitycenter/v1/mute_conf" + + "ig.proto\0328google/cloud/securitycenter/v1" + + "/notification_config.proto\032:google/cloud" + + "/securitycenter/v1/organization_settings" + + ".proto\0323google/cloud/securitycenter/v1/s" + + "ecurity_marks.proto\032+google/cloud/securi" + + "tycenter/v1/source.proto\032\036google/iam/v1/" + + "iam_policy.proto\032\032google/iam/v1/policy.p" + + "roto\032#google/longrunning/operations.prot" + + "o\032\036google/protobuf/duration.proto\032\033googl" + + "e/protobuf/empty.proto\032 google/protobuf/" + + "field_mask.proto\032\034google/protobuf/struct" + + ".proto\032\037google/protobuf/timestamp.proto\"" + + "a\n\027BulkMuteFindingsRequest\022\031\n\006parent\030\001 \001" + + "(\tB\t\340A\002\372A\003\n\001*\022\016\n\006filter\030\002 \001(\t\022\033\n\017mute_an" + + "notation\030\003 \001(\tB\002\030\001\"\032\n\030BulkMuteFindingsRe" + + "sponse\"\254\001\n\024CreateFindingRequest\022<\n\006paren" + + "t\030\001 \001(\tB,\340A\002\372A&\n$securitycenter.googleap" + + "is.com/Source\022\027\n\nfinding_id\030\002 \001(\tB\003\340A\002\022=" + + "\n\007finding\030\003 \001(\0132\'.google.cloud.securityc" + + "enter.v1.FindingB\003\340A\002\"\276\001\n\027CreateMuteConf" + + "igRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(secur" + + "itycenter.googleapis.com/MuteConfig\022D\n\013m" + + "ute_config\030\002 \001(\0132*.google.cloud.security" + + "center.v1.MuteConfigB\003\340A\002\022\033\n\016mute_config" + + "_id\030\003 \001(\tB\003\340A\002\"\331\001\n\037CreateNotificationCon" + + "figRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0clou" + + "dresourcemanager.googleapis.com/Organiza" + + "tion\022\026\n\tconfig_id\030\002 \001(\tB\003\340A\002\022T\n\023notifica" + + "tion_config\030\003 \001(\01322.google.cloud.securit" + + "ycenter.v1.NotificationConfigB\003\340A\002\"\234\001\n\023C" + + "reateSourceRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372" + + "A2\n0cloudresourcemanager.googleapis.com/" + + "Organization\022;\n\006source\030\002 \001(\0132&.google.cl" + + "oud.securitycenter.v1.SourceB\003\340A\002\"Y\n\027Del" + + "eteMuteConfigRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372" + + "A*\n(securitycenter.googleapis.com/MuteCo" + + "nfig\"i\n\037DeleteNotificationConfigRequest\022" + + "F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0securitycenter.go" + + "ogleapis.com/NotificationConfig\"^\n\030GetBi" + + "gQueryExportRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A" + + ".\n,securitycenter.googleapis.com/BigQuer" + + "yExport\"V\n\024GetMuteConfigRequest\022>\n\004name\030" + + "\001 \001(\tB0\340A\002\372A*\n(securitycenter.googleapis" + + ".com/MuteConfig\"f\n\034GetNotificationConfig" + + "Request\022F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0securityc" + + "enter.googleapis.com/NotificationConfig\"" + + "j\n\036GetOrganizationSettingsRequest\022H\n\004nam" + + "e\030\001 \001(\tB:\340A\002\372A4\n2securitycenter.googleap" + + "is.com/OrganizationSettings\"N\n\020GetSource" + + "Request\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$securityc" + + "enter.googleapis.com/Source\"\203\002\n\022GroupAss" + + "etsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#secu" + + "ritycenter.googleapis.com/Asset\022\016\n\006filte" + + "r\030\002 \001(\t\022\025\n\010group_by\030\003 \001(\tB\003\340A\002\0223\n\020compar" + + "e_duration\030\004 \001(\0132\031.google.protobuf.Durat" + + "ion\022-\n\tread_time\030\005 \001(\0132\032.google.protobuf" + + ".Timestamp\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpage_s" + + "ize\030\010 \001(\005\"\270\001\n\023GroupAssetsResponse\022E\n\020gro" + + "up_by_results\030\001 \003(\0132+.google.cloud.secur" + + "itycenter.v1.GroupResult\022-\n\tread_time\030\002 " + + "\001(\0132\032.google.protobuf.Timestamp\022\027\n\017next_" + + "page_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\206\002\n" + + "\024GroupFindingsRequest\022<\n\006parent\030\001 \001(\tB,\340" + + "A\002\372A&\n$securitycenter.googleapis.com/Sou" + + "rce\022\016\n\006filter\030\002 \001(\t\022\025\n\010group_by\030\003 \001(\tB\003\340" + + "A\002\022-\n\tread_time\030\004 \001(\0132\032.google.protobuf." + + "Timestamp\0223\n\020compare_duration\030\005 \001(\0132\031.go" + + "ogle.protobuf.Duration\022\022\n\npage_token\030\007 \001" + + "(\t\022\021\n\tpage_size\030\010 \001(\005\"\272\001\n\025GroupFindingsR" + + "esponse\022E\n\020group_by_results\030\001 \003(\0132+.goog" + + "le.cloud.securitycenter.v1.GroupResult\022-" + + "\n\tread_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_" + + "size\030\004 \001(\005\"\270\001\n\013GroupResult\022O\n\nproperties" + + "\030\001 \003(\0132;.google.cloud.securitycenter.v1." + + "GroupResult.PropertiesEntry\022\r\n\005count\030\002 \001" + + "(\003\032I\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005va" + + "lue\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\"\201\001" + + "\n\026ListMuteConfigsRequest\022@\n\006parent\030\001 \001(\t" + + "B0\340A\002\372A*\022(securitycenter.googleapis.com/" + + "MuteConfig\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\"t\n\027ListMuteConfigsResponse\022@\n\014" + + "mute_configs\030\001 \003(\0132*.google.cloud.securi" + + "tycenter.v1.MuteConfig\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"\221\001\n\036ListNotificationConfigsReque" + + "st\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0cloudresourc" + + "emanager.googleapis.com/Organization\022\022\n\n" + + "page_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"\214\001\n\037" + + "ListNotificationConfigsResponse\022P\n\024notif" + + "ication_configs\030\001 \003(\01322.google.cloud.sec" + + "uritycenter.v1.NotificationConfig\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"y\n\022ListSourcesRequest" + + "\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$securitycenter" + + ".googleapis.com/Source\022\022\n\npage_token\030\002 \001" + + "(\t\022\021\n\tpage_size\030\007 \001(\005\"g\n\023ListSourcesResp" + + "onse\0227\n\007sources\030\001 \003(\0132&.google.cloud.sec" + + "uritycenter.v1.Source\022\027\n\017next_page_token" + + "\030\002 \001(\t\"\255\002\n\021ListAssetsRequest\022;\n\006parent\030\001" + + " \001(\tB+\340A\002\372A%\022#securitycenter.googleapis." + + "com/Asset\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003 " + + "\001(\t\022-\n\tread_time\030\004 \001(\0132\032.google.protobuf" + + ".Timestamp\0223\n\020compare_duration\030\005 \001(\0132\031.g" + + "oogle.protobuf.Duration\022.\n\nfield_mask\030\007 " + + "\001(\0132\032.google.protobuf.FieldMask\022\022\n\npage_" + + "token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"\303\003\n\022ListA" + + "ssetsResponse\022`\n\023list_assets_results\030\001 \003" + + "(\0132C.google.cloud.securitycenter.v1.List" + + "AssetsResponse.ListAssetsResult\022-\n\tread_" + + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\027" + + "\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 " + + "\001(\005\032\356\001\n\020ListAssetsResult\0224\n\005asset\030\001 \001(\0132" + + "%.google.cloud.securitycenter.v1.Asset\022e" + + "\n\014state_change\030\002 \001(\0162O.google.cloud.secu" + + "ritycenter.v1.ListAssetsResponse.ListAss" + + "etsResult.StateChange\"=\n\013StateChange\022\n\n\006" + + "UNUSED\020\000\022\t\n\005ADDED\020\001\022\013\n\007REMOVED\020\002\022\n\n\006ACTI" + + "VE\020\003\"\260\002\n\023ListFindingsRequest\022<\n\006parent\030\001" + + " \001(\tB,\340A\002\372A&\n$securitycenter.googleapis." + + "com/Source\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003" + + " \001(\t\022-\n\tread_time\030\004 \001(\0132\032.google.protobu" + + "f.Timestamp\0223\n\020compare_duration\030\005 \001(\0132\031." + + "google.protobuf.Duration\022.\n\nfield_mask\030\007" + + " \001(\0132\032.google.protobuf.FieldMask\022\022\n\npage" + + "_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"\254\006\n\024List" + + "FindingsResponse\022f\n\025list_findings_result" + + "s\030\001 \003(\0132G.google.cloud.securitycenter.v1" + + ".ListFindingsResponse.ListFindingsResult" + + "\022-\n\tread_time\030\002 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntota" + + "l_size\030\004 \001(\005\032\317\004\n\022ListFindingsResult\0228\n\007f" + + "inding\030\001 \001(\0132\'.google.cloud.securitycent" + + "er.v1.Finding\022i\n\014state_change\030\002 \001(\0162S.go" + + "ogle.cloud.securitycenter.v1.ListFinding" + + "sResponse.ListFindingsResult.StateChange" + + "\022g\n\010resource\030\003 \001(\0132P.google.cloud.securi" + + "tycenter.v1.ListFindingsResponse.ListFin" + + "dingsResult.ResourceB\003\340A\003\032\333\001\n\010Resource\022\014" + + "\n\004name\030\001 \001(\t\022\024\n\014display_name\030\010 \001(\t\022\014\n\004ty" + + "pe\030\006 \001(\t\022\024\n\014project_name\030\002 \001(\t\022\034\n\024projec" + + "t_display_name\030\003 \001(\t\022\023\n\013parent_name\030\004 \001(" + + "\t\022\033\n\023parent_display_name\030\005 \001(\t\0227\n\007folder" + + "s\030\007 \003(\0132&.google.cloud.securitycenter.v1" + + ".Folder\"M\n\013StateChange\022\n\n\006UNUSED\020\000\022\013\n\007CH" + + "ANGED\020\001\022\r\n\tUNCHANGED\020\002\022\t\n\005ADDED\020\003\022\013\n\007REM" + + "OVED\020\004\"\315\001\n\026SetFindingStateRequest\022;\n\004nam" + + "e\030\001 \001(\tB-\340A\002\372A\'\n%securitycenter.googleap" + + "is.com/Finding\022A\n\005state\030\002 \001(\0162-.google.c" + + "loud.securitycenter.v1.Finding.StateB\003\340A" + + "\002\0223\n\nstart_time\030\003 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\002\"\216\001\n\016SetMuteRequest\022;\n\004nam" + + "e\030\001 \001(\tB-\340A\002\372A\'\n%securitycenter.googleap" + + "is.com/Finding\022?\n\004mute\030\002 \001(\0162,.google.cl" + + "oud.securitycenter.v1.Finding.MuteB\003\340A\002\"" + + "d\n\030RunAssetDiscoveryRequest\022H\n\006parent\030\001 " + + "\001(\tB8\340A\002\372A2\n0cloudresourcemanager.google" + + "apis.com/Organization\"\234\001\n\033UpdateExternal" + + "SystemRequest\022L\n\017external_system\030\001 \001(\0132." + + ".google.cloud.securitycenter.v1.External" + + "SystemB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMask\"\206\001\n\024UpdateFindingRe" + + "quest\022=\n\007finding\030\001 \001(\0132\'.google.cloud.se" + + "curitycenter.v1.FindingB\003\340A\002\022/\n\013update_m" + + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\220\001" + + "\n\027UpdateMuteConfigRequest\022D\n\013mute_config" + + "\030\001 \001(\0132*.google.cloud.securitycenter.v1." + + "MuteConfigB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.g" + + "oogle.protobuf.FieldMask\"\250\001\n\037UpdateNotif" + + "icationConfigRequest\022T\n\023notification_con" + + "fig\030\001 \001(\01322.google.cloud.securitycenter." + + "v1.NotificationConfigB\003\340A\002\022/\n\013update_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"\256\001\n!" + + "UpdateOrganizationSettingsRequest\022X\n\025org" + + "anization_settings\030\001 \001(\01324.google.cloud." + + "securitycenter.v1.OrganizationSettingsB\003" + + "\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMask\"\203\001\n\023UpdateSourceRequest\022;\n\006" + + "source\030\001 \001(\0132&.google.cloud.securitycent" + + "er.v1.SourceB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032" + + ".google.protobuf.FieldMask\"\311\001\n\032UpdateSec" + + "urityMarksRequest\022J\n\016security_marks\030\001 \001(" + + "\0132-.google.cloud.securitycenter.v1.Secur" + + "ityMarksB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.goo" + + "gle.protobuf.FieldMask\022.\n\nstart_time\030\003 \001" + + "(\0132\032.google.protobuf.Timestamp\"\324\001\n\033Creat" + + "eBigQueryExportRequest\022D\n\006parent\030\001 \001(\tB4" + + "\340A\002\372A.\022,securitycenter.googleapis.com/Bi" + + "gQueryExport\022M\n\020big_query_export\030\002 \001(\0132." + + ".google.cloud.securitycenter.v1.BigQuery" + + "ExportB\003\340A\002\022 \n\023big_query_export_id\030\003 \001(\t" + + "B\003\340A\002\"\235\001\n\033UpdateBigQueryExportRequest\022M\n" + + "\020big_query_export\030\001 \001(\0132..google.cloud.s" + + "ecuritycenter.v1.BigQueryExportB\003\340A\002\022/\n\013" + + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + + "dMask\"\211\001\n\032ListBigQueryExportsRequest\022D\n\006" + + "parent\030\001 \001(\tB4\340A\002\372A.\022,securitycenter.goo" + + "gleapis.com/BigQueryExport\022\021\n\tpage_size\030" + + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\201\001\n\033ListBigQue" + + "ryExportsResponse\022I\n\021big_query_exports\030\001" + + " \003(\0132..google.cloud.securitycenter.v1.Bi" + + "gQueryExport\022\027\n\017next_page_token\030\002 \001(\t\"a\n" + + "\033DeleteBigQueryExportRequest\022B\n\004name\030\001 \001" + + "(\tB4\340A\002\372A.\n,securitycenter.googleapis.co" + + "m/BigQueryExport2\247O\n\016SecurityCenter\022\342\002\n\020" + + "BulkMuteFindings\0227.google.cloud.security" + + "center.v1.BulkMuteFindingsRequest\032\035.goog" + + "le.longrunning.Operation\"\365\001\202\323\344\223\002\222\001\"./v1/" + + "{parent=organizations/*}/findings:bulkMu" + + "te:\001*Z-\"(/v1/{parent=folders/*}/findings" + + ":bulkMute:\001*Z.\")/v1/{parent=projects/*}/" + + "findings:bulkMute:\001*\332A\006parent\312AP\n7google" + + ".cloud.securitycenter.v1.BulkMuteFinding" + + "sResponse\022\025google.protobuf.Empty\022\261\001\n\014Cre" + + "ateSource\0223.google.cloud.securitycenter." + + "v1.CreateSourceRequest\032&.google.cloud.se" + + "curitycenter.v1.Source\"D\202\323\344\223\002.\"$/v1/{par" + + "ent=organizations/*}/sources:\006source\332A\rp" + + "arent,source\022\314\001\n\rCreateFinding\0224.google." + + "cloud.securitycenter.v1.CreateFindingReq" + + "uest\032\'.google.cloud.securitycenter.v1.Fi" + + "nding\"\\\202\323\344\223\002:\"//v1/{parent=organizations" + + "/*/sources/*}/findings:\007finding\332A\031parent" + + ",finding_id,finding\022\330\002\n\020CreateMuteConfig" + + "\0227.google.cloud.securitycenter.v1.Create" + + "MuteConfigRequest\032*.google.cloud.securit" + + "ycenter.v1.MuteConfig\"\336\001\202\323\344\223\002\236\001\"(/v1/{pa" + + "rent=organizations/*}/muteConfigs:\013mute_" + + "configZ1\"\"/v1/{parent=folders/*}/muteCon" + + "figs:\013mute_configZ2\"#/v1/{parent=project" + + "s/*}/muteConfigs:\013mute_config\332A\022parent,m" + + "ute_config\332A!parent,mute_config,mute_con" + + "fig_id\022\243\002\n\030CreateNotificationConfig\022?.go" + + "ogle.cloud.securitycenter.v1.CreateNotif" + + "icationConfigRequest\0322.google.cloud.secu" + + "ritycenter.v1.NotificationConfig\"\221\001\202\323\344\223\002" + + "G\"0/v1/{parent=organizations/*}/notifica" + + "tionConfigs:\023notification_config\332A$paren" + + "t,config_id,notification_config\332A\032parent" + + ",notification_config\022\352\001\n\020DeleteMuteConfi" + + "g\0227.google.cloud.securitycenter.v1.Delet" + + "eMuteConfigRequest\032\026.google.protobuf.Emp" + + "ty\"\204\001\202\323\344\223\002w*(/v1/{name=organizations/*/m" + + "uteConfigs/*}Z$*\"/v1/{name=folders/*/mut" + + "eConfigs/*}Z%*#/v1/{name=projects/*/mute" + + "Configs/*}\332A\004name\022\264\001\n\030DeleteNotification" + + "Config\022?.google.cloud.securitycenter.v1." + + "DeleteNotificationConfigRequest\032\026.google" + + ".protobuf.Empty\"?\202\323\344\223\0022*0/v1/{name=organ" + + "izations/*/notificationConfigs/*}\332A\004name" + + "\022\221\002\n\021GetBigQueryExport\0228.google.cloud.se" + + "curitycenter.v1.GetBigQueryExportRequest" + + "\032..google.cloud.securitycenter.v1.BigQue" + + "ryExport\"\221\001\202\323\344\223\002\203\001\022,/v1/{name=organizati" + + "ons/*/bigQueryExports/*}Z(\022&/v1/{name=fo" + + "lders/*/bigQueryExports/*}Z)\022\'/v1/{name=" + + "projects/*/bigQueryExports/*}\332A\004name\022\226\001\n" + + "\014GetIamPolicy\022\".google.iam.v1.GetIamPoli" + + "cyRequest\032\025.google.iam.v1.Policy\"K\202\323\344\223\002:" + + "\"5/v1/{resource=organizations/*/sources/" + + "*}:getIamPolicy:\001*\332A\010resource\022\370\001\n\rGetMut" + + "eConfig\0224.google.cloud.securitycenter.v1" + + ".GetMuteConfigRequest\032*.google.cloud.sec" + + "uritycenter.v1.MuteConfig\"\204\001\202\323\344\223\002w\022(/v1/" + + "{name=organizations/*/muteConfigs/*}Z$\022\"" + + "/v1/{name=folders/*/muteConfigs/*}Z%\022#/v" + + "1/{name=projects/*/muteConfigs/*}\332A\004name" + + "\022\312\001\n\025GetNotificationConfig\022<.google.clou" + + "d.securitycenter.v1.GetNotificationConfi" + + "gRequest\0322.google.cloud.securitycenter.v" + + "1.NotificationConfig\"?\202\323\344\223\0022\0220/v1/{name=" + + "organizations/*/notificationConfigs/*}\332A" + + "\004name\022\317\001\n\027GetOrganizationSettings\022>.goog" + + "le.cloud.securitycenter.v1.GetOrganizati" + + "onSettingsRequest\0324.google.cloud.securit" + + "ycenter.v1.OrganizationSettings\">\202\323\344\223\0021\022" + + "//v1/{name=organizations/*/organizationS" + + "ettings}\332A\004name\022\232\001\n\tGetSource\0220.google.c" + + "loud.securitycenter.v1.GetSourceRequest\032" + + "&.google.cloud.securitycenter.v1.Source\"" + + "3\202\323\344\223\002&\022$/v1/{name=organizations/*/sourc" + + "es/*}\332A\004name\022\203\002\n\013GroupAssets\0222.google.cl" + + "oud.securitycenter.v1.GroupAssetsRequest" + + "\0323.google.cloud.securitycenter.v1.GroupA" + + "ssetsResponse\"\212\001\202\323\344\223\002\203\001\")/v1/{parent=org" + + "anizations/*}/assets:group:\001*Z(\"#/v1/{pa" + + "rent=folders/*}/assets:group:\001*Z)\"$/v1/{" + + "parent=projects/*}/assets:group:\001*\022\277\002\n\rG" + + "roupFindings\0224.google.cloud.securitycent" + + "er.v1.GroupFindingsRequest\0325.google.clou" + + "d.securitycenter.v1.GroupFindingsRespons" + + "e\"\300\001\202\323\344\223\002\247\001\"5/v1/{parent=organizations/*" + + "/sources/*}/findings:group:\001*Z4\"//v1/{pa" + + "rent=folders/*/sources/*}/findings:group" + + ":\001*Z5\"0/v1/{parent=projects/*/sources/*}" + + "/findings:group:\001*\332A\017parent,group_by\022\343\001\n" + + "\nListAssets\0221.google.cloud.securitycente" + + "r.v1.ListAssetsRequest\0322.google.cloud.se" + + "curitycenter.v1.ListAssetsResponse\"n\202\323\344\223" + + "\002h\022#/v1/{parent=organizations/*}/assetsZ" + + "\037\022\035/v1/{parent=folders/*}/assetsZ \022\036/v1/" + + "{parent=projects/*}/assets\022\217\002\n\014ListFindi" + + "ngs\0223.google.cloud.securitycenter.v1.Lis" + + "tFindingsRequest\0324.google.cloud.security" + + "center.v1.ListFindingsResponse\"\223\001\202\323\344\223\002\214\001" + + "\022//v1/{parent=organizations/*/sources/*}" + + "/findingsZ+\022)/v1/{parent=folders/*/sourc" + + "es/*}/findingsZ,\022*/v1/{parent=projects/*" + + "/sources/*}/findings\022\213\002\n\017ListMuteConfigs" + + "\0226.google.cloud.securitycenter.v1.ListMu" + + "teConfigsRequest\0327.google.cloud.security" + + "center.v1.ListMuteConfigsResponse\"\206\001\202\323\344\223" + + "\002w\022(/v1/{parent=organizations/*}/muteCon" + + "figsZ$\022\"/v1/{parent=folders/*}/muteConfi" + + "gsZ%\022#/v1/{parent=projects/*}/muteConfig" + + "s\332A\006parent\022\335\001\n\027ListNotificationConfigs\022>" + + ".google.cloud.securitycenter.v1.ListNoti" + + "ficationConfigsRequest\032?.google.cloud.se" + + "curitycenter.v1.ListNotificationConfigsR" + + "esponse\"A\202\323\344\223\0022\0220/v1/{parent=organizatio" + + "ns/*}/notificationConfigs\332A\006parent\022\362\001\n\013L" + + "istSources\0222.google.cloud.securitycenter" + + ".v1.ListSourcesRequest\0323.google.cloud.se" + + "curitycenter.v1.ListSourcesResponse\"z\202\323\344" + + "\223\002k\022$/v1/{parent=organizations/*}/source" + + "sZ \022\036/v1/{parent=folders/*}/sourcesZ!\022\037/" + + "v1/{parent=projects/*}/sources\332A\006parent\022" + + "\207\002\n\021RunAssetDiscovery\0228.google.cloud.sec" + + "uritycenter.v1.RunAssetDiscoveryRequest\032" + + "\035.google.longrunning.Operation\"\230\001\202\323\344\223\0025\"" + + "0/v1/{parent=organizations/*}/assets:run" + + "Discovery:\001*\332A\006parent\312AQ\n8google.cloud.s" + + "ecuritycenter.v1.RunAssetDiscoveryRespon" + + "se\022\025google.protobuf.Empty\022\304\002\n\017SetFinding" + + "State\0226.google.cloud.securitycenter.v1.S" + + "etFindingStateRequest\032\'.google.cloud.sec" + + "uritycenter.v1.Finding\"\317\001\202\323\344\223\002\260\001\"8/v1/{n" + + "ame=organizations/*/sources/*/findings/*" + + "}:setState:\001*Z7\"2/v1/{name=folders/*/sou" + + "rces/*/findings/*}:setState:\001*Z8\"3/v1/{n" + + "ame=projects/*/sources/*/findings/*}:set" + + "State:\001*\332A\025name,state,start_time\022\245\002\n\007Set" + + "Mute\022..google.cloud.securitycenter.v1.Se" + + "tMuteRequest\032\'.google.cloud.securitycent" + + "er.v1.Finding\"\300\001\202\323\344\223\002\255\001\"7/v1/{name=organ" + + "izations/*/sources/*/findings/*}:setMute" + + ":\001*Z6\"1/v1/{name=folders/*/sources/*/fin" + + "dings/*}:setMute:\001*Z7\"2/v1/{name=project" + + "s/*/sources/*/findings/*}:setMute:\001*\332A\tn" + + "ame,mute\022\235\001\n\014SetIamPolicy\022\".google.iam.v" + + "1.SetIamPolicyRequest\032\025.google.iam.v1.Po" + + "licy\"R\202\323\344\223\002:\"5/v1/{resource=organization" + + "s/*/sources/*}:setIamPolicy:\001*\332A\017resourc" + + "e,policy\022\310\001\n\022TestIamPermissions\022(.google" + + ".iam.v1.TestIamPermissionsRequest\032).goog" + + "le.iam.v1.TestIamPermissionsResponse\"]\202\323" + + "\344\223\002@\";/v1/{resource=organizations/*/sour" + + "ces/*}:testIamPermissions:\001*\332A\024resource," + + "permissions\022\320\003\n\024UpdateExternalSystem\022;.g" + + "oogle.cloud.securitycenter.v1.UpdateExte" + + "rnalSystemRequest\032..google.cloud.securit" + + "ycenter.v1.ExternalSystem\"\312\002\202\323\344\223\002\245\0022Q/v1" + + "/{external_system.name=organizations/*/s" + + "ources/*/findings/*/externalSystems/*}:\017" + + "external_systemZ^2K/v1/{external_system." + + "name=folders/*/sources/*/findings/*/exte" + + "rnalSystems/*}:\017external_systemZ_2L/v1/{" + + "external_system.name=projects/*/sources/" + + "*/findings/*/externalSystems/*}:\017externa" + + "l_system\332A\033external_system,update_mask\022\301" + + "\002\n\rUpdateFinding\0224.google.cloud.security" + + "center.v1.UpdateFindingRequest\032\'.google." + + "cloud.securitycenter.v1.Finding\"\320\001\202\323\344\223\002\277" + + "\00127/v1/{finding.name=organizations/*/sou" + + "rces/*/findings/*}:\007findingZ<21/v1/{find" + + "ing.name=folders/*/sources/*/findings/*}" + + ":\007findingZ=22/v1/{finding.name=projects/" + + "*/sources/*/findings/*}:\007finding\332A\007findi" + + "ng\022\335\002\n\020UpdateMuteConfig\0227.google.cloud.s" + + "ecuritycenter.v1.UpdateMuteConfigRequest" + + "\032*.google.cloud.securitycenter.v1.MuteCo" + + "nfig\"\343\001\202\323\344\223\002\302\00124/v1/{mute_config.name=or" + + "ganizations/*/muteConfigs/*}:\013mute_confi" + + "gZ=2./v1/{mute_config.name=folders/*/mut" + + "eConfigs/*}:\013mute_configZ>2//v1/{mute_co" + + "nfig.name=projects/*/muteConfigs/*}:\013mut" + + "e_config\332A\027mute_config,update_mask\022\253\002\n\030U" + + "pdateNotificationConfig\022?.google.cloud.s", + "ecuritycenter.v1.UpdateNotificationConfi" + + "gRequest\0322.google.cloud.securitycenter.v" + + "1.NotificationConfig\"\231\001\202\323\344\223\002[2D/v1/{noti" + + "fication_config.name=organizations/*/not" + + "ificationConfigs/*}:\023notification_config" + + "\332A\023notification_config\332A\037notification_co" + + "nfig,update_mask\022\223\002\n\032UpdateOrganizationS" + + "ettings\022A.google.cloud.securitycenter.v1" + + ".UpdateOrganizationSettingsRequest\0324.goo" + + "gle.cloud.securitycenter.v1.Organization" + + "Settings\"|\202\323\344\223\002^2E/v1/{organization_sett" + + "ings.name=organizations/*/organizationSe" + + "ttings}:\025organization_settings\332A\025organiz" + + "ation_settings\022\261\001\n\014UpdateSource\0223.google" + + ".cloud.securitycenter.v1.UpdateSourceReq" + + "uest\032&.google.cloud.securitycenter.v1.So" + + "urce\"D\202\323\344\223\00252+/v1/{source.name=organizat" + + "ions/*/sources/*}:\006source\332A\006source\022\237\005\n\023U" + + "pdateSecurityMarks\022:.google.cloud.securi" + + "tycenter.v1.UpdateSecurityMarksRequest\032-" + + ".google.cloud.securitycenter.v1.Security" + + "Marks\"\234\004\202\323\344\223\002\204\0042@/v1/{security_marks.nam" + + "e=organizations/*/assets/*/securityMarks" + + "}:\016security_marksZL2:/v1/{security_marks" + + ".name=folders/*/assets/*/securityMarks}:" + + "\016security_marksZM2;/v1/{security_marks.n" + + "ame=projects/*/assets/*/securityMarks}:\016" + + "security_marksZ^2L/v1/{security_marks.na" + + "me=organizations/*/sources/*/findings/*/" + + "securityMarks}:\016security_marksZX2F/v1/{s" + + "ecurity_marks.name=folders/*/sources/*/f" + + "indings/*/securityMarks}:\016security_marks" + + "ZY2G/v1/{security_marks.name=projects/*/" + + "sources/*/findings/*/securityMarks}:\016sec" + + "urity_marks\332A\016security_marks\022\364\002\n\024CreateB" + + "igQueryExport\022;.google.cloud.securitycen" + + "ter.v1.CreateBigQueryExportRequest\032..goo" + + "gle.cloud.securitycenter.v1.BigQueryExpo" + + "rt\"\356\001\202\323\344\223\002\271\001\",/v1/{parent=organizations/" + + "*}/bigQueryExports:\020big_query_exportZ:\"&" + + "/v1/{parent=folders/*}/bigQueryExports:\020" + + "big_query_exportZ;\"\'/v1/{parent=projects" + + "/*}/bigQueryExports:\020big_query_export\332A+" + + "parent,big_query_export,big_query_export" + + "_id\022\377\001\n\024DeleteBigQueryExport\022;.google.cl" + + "oud.securitycenter.v1.DeleteBigQueryExpo" + + "rtRequest\032\026.google.protobuf.Empty\"\221\001\202\323\344\223" + + "\002\203\001*,/v1/{name=organizations/*/bigQueryE" + + "xports/*}Z(*&/v1/{name=folders/*/bigQuer" + + "yExports/*}Z)*\'/v1/{name=projects/*/bigQ" + + "ueryExports/*}\332A\004name\022\230\003\n\024UpdateBigQuery" + + "Export\022;.google.cloud.securitycenter.v1." + + "UpdateBigQueryExportRequest\032..google.clo" + + "ud.securitycenter.v1.BigQueryExport\"\222\002\202\323" + + "\344\223\002\354\0012=/v1/{big_query_export.name=organi" + + "zations/*/bigQueryExports/*}:\020big_query_" + + "exportZK27/v1/{big_query_export.name=fol" + + "ders/*/bigQueryExports/*}:\020big_query_exp" + + "ortZL28/v1/{big_query_export.name=projec" + + "ts/*/bigQueryExports/*}:\020big_query_expor" + + "t\332A\034big_query_export,update_mask\022\244\002\n\023Lis" + + "tBigQueryExports\022:.google.cloud.security" + + "center.v1.ListBigQueryExportsRequest\032;.g" + + "oogle.cloud.securitycenter.v1.ListBigQue" + + "ryExportsResponse\"\223\001\202\323\344\223\002\203\001\022,/v1/{parent" + + "=organizations/*}/bigQueryExportsZ(\022&/v1" + + "/{parent=folders/*}/bigQueryExportsZ)\022\'/" + + "v1/{parent=projects/*}/bigQueryExports\332A" + + "\006parent\032Q\312A\035securitycenter.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformB\332\001\n\"com.google.cloud.security" + + "center.v1P\001ZLgoogle.golang.org/genproto/" + + "googleapis/cloud/securitycenter/v1;secur" + + "itycenter\252\002\036Google.Cloud.SecurityCenter." + + "V1\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!Go" + + "ogle::Cloud::SecurityCenter::V1P\000b\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.securitycenter.v1.AssetOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.BigQueryExportProto.getDescriptor(), + com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(), + com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(), + com.google.cloud.securitycenter.v1.MuteConfigProto.getDescriptor(), + com.google.cloud.securitycenter.v1.NotificationConfigProto.getDescriptor(), + com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.SourceOuterClass.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "MuteAnnotation", }); + internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor, + new java.lang.String[] { "Parent", "FindingId", "Finding", }); + internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor, + new java.lang.String[] { "Parent", "MuteConfig", "MuteConfigId", }); + internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor, + new java.lang.String[] { "Parent", "ConfigId", "NotificationConfig", }); + internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor, + new java.lang.String[] { "Parent", "Source", }); + internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "GroupBy", "CompareDuration", "ReadTime", "PageToken", "PageSize", }); + internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor, + new java.lang.String[] { "GroupByResults", "ReadTime", "NextPageToken", "TotalSize", }); + internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "GroupBy", "ReadTime", "CompareDuration", "PageToken", "PageSize", }); + internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor, + new java.lang.String[] { "GroupByResults", "ReadTime", "NextPageToken", "TotalSize", }); + internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor, + new java.lang.String[] { "Properties", "Count", }); + internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor = + internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor, + new java.lang.String[] { "MuteConfigs", "NextPageToken", }); + internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor, + new java.lang.String[] { "NotificationConfigs", "NextPageToken", }); + internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor, + new java.lang.String[] { "Sources", "NextPageToken", }); + internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "OrderBy", "ReadTime", "CompareDuration", "FieldMask", "PageToken", "PageSize", }); + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor, + new java.lang.String[] { "ListAssetsResults", "ReadTime", "NextPageToken", "TotalSize", }); + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor = + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor, + new java.lang.String[] { "Asset", "StateChange", }); + internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "OrderBy", "ReadTime", "CompareDuration", "FieldMask", "PageToken", "PageSize", }); + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor, + new java.lang.String[] { "ListFindingsResults", "ReadTime", "NextPageToken", "TotalSize", }); + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor = + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor, + new java.lang.String[] { "Finding", "StateChange", "Resource", }); + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor = + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Type", "ProjectName", "ProjectDisplayName", "ParentName", "ParentDisplayName", "Folders", }); + internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor, + new java.lang.String[] { "Name", "State", "StartTime", }); + internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_securitycenter_v1_SetMuteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor, + new java.lang.String[] { "Name", "Mute", }); + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor, + new java.lang.String[] { "Parent", }); + internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor, + new java.lang.String[] { "ExternalSystem", "UpdateMask", }); + internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor, + new java.lang.String[] { "Finding", "UpdateMask", }); + internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor, + new java.lang.String[] { "MuteConfig", "UpdateMask", }); + internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor, + new java.lang.String[] { "NotificationConfig", "UpdateMask", }); + internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor, + new java.lang.String[] { "OrganizationSettings", "UpdateMask", }); + internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor, + new java.lang.String[] { "Source", "UpdateMask", }); + internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor, + new java.lang.String[] { "SecurityMarks", "UpdateMask", "StartTime", }); + internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor, + new java.lang.String[] { "Parent", "BigQueryExport", "BigQueryExportId", }); + internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor, + new java.lang.String[] { "BigQueryExport", "UpdateMask", }); + internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor, + new java.lang.String[] { "BigQueryExports", "NextPageToken", }); + internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor, + new java.lang.String[] { "Name", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.securitycenter.v1.AssetOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.BigQueryExportProto.getDescriptor(); + com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(); + com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(); + com.google.cloud.securitycenter.v1.MuteConfigProto.getDescriptor(); + com.google.cloud.securitycenter.v1.NotificationConfigProto.getDescriptor(); + com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.SourceOuterClass.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java similarity index 67% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java index 7e8d4f16b..e1ac6ef90 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for updating a finding's state.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.SetFindingStateRequest} */ -public final class SetFindingStateRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SetFindingStateRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.SetFindingStateRequest) SetFindingStateRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SetFindingStateRequest.newBuilder() to construct. private SetFindingStateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SetFindingStateRequest() { name_ = ""; state_ = 0; @@ -44,15 +26,16 @@ private SetFindingStateRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SetFindingStateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SetFindingStateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,42 +54,38 @@ private SetFindingStateRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; + state_ = rawValue; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - - break; + startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,33 +93,29 @@ private SetFindingStateRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.SetFindingStateRequest.class, - com.google.cloud.securitycenter.v1.SetFindingStateRequest.Builder.class); + com.google.cloud.securitycenter.v1.SetFindingStateRequest.class, com.google.cloud.securitycenter.v1.SetFindingStateRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -148,10 +123,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -160,15 +132,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -176,18 +147,17 @@ public java.lang.String getName() {
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -198,55 +168,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** - * - * *
    * Required. The desired State of the finding.
    * 
* - * - * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Required. The desired State of the finding.
    * 
* - * - * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The state. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.Finding.State getState() { + @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.State result = - com.google.cloud.securitycenter.v1.Finding.State.valueOf(state_); + com.google.cloud.securitycenter.v1.Finding.State result = com.google.cloud.securitycenter.v1.Finding.State.valueOf(state_); return result == null ? com.google.cloud.securitycenter.v1.Finding.State.UNRECOGNIZED : result; } public static final int START_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the startTime field is set. */ @java.lang.Override @@ -254,15 +207,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The startTime. */ @java.lang.Override @@ -270,14 +219,11 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -285,7 +231,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -297,7 +242,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -320,10 +266,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (state_ != com.google.cloud.securitycenter.v1.Finding.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStartTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -333,19 +281,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.SetFindingStateRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.SetFindingStateRequest other = - (com.google.cloud.securitycenter.v1.SetFindingStateRequest) obj; + com.google.cloud.securitycenter.v1.SetFindingStateRequest other = (com.google.cloud.securitycenter.v1.SetFindingStateRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -372,127 +321,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1.SetFindingStateRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1.SetFindingStateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for updating a finding's state.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.SetFindingStateRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.SetFindingStateRequest) com.google.cloud.securitycenter.v1.SetFindingStateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.SetFindingStateRequest.class, - com.google.cloud.securitycenter.v1.SetFindingStateRequest.Builder.class); + com.google.cloud.securitycenter.v1.SetFindingStateRequest.class, com.google.cloud.securitycenter.v1.SetFindingStateRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.SetFindingStateRequest.newBuilder() @@ -500,15 +439,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -526,9 +466,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; } @java.lang.Override @@ -547,8 +487,7 @@ public com.google.cloud.securitycenter.v1.SetFindingStateRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.SetFindingStateRequest buildPartial() { - com.google.cloud.securitycenter.v1.SetFindingStateRequest result = - new com.google.cloud.securitycenter.v1.SetFindingStateRequest(this); + com.google.cloud.securitycenter.v1.SetFindingStateRequest result = new com.google.cloud.securitycenter.v1.SetFindingStateRequest(this); result.name_ = name_; result.state_ = state_; if (startTimeBuilder_ == null) { @@ -564,39 +503,38 @@ public com.google.cloud.securitycenter.v1.SetFindingStateRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.SetFindingStateRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.SetFindingStateRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.SetFindingStateRequest)other); } else { super.mergeFrom(other); return this; @@ -604,8 +542,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.SetFindingStateRequest other) { - if (other == com.google.cloud.securitycenter.v1.SetFindingStateRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.SetFindingStateRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -635,8 +572,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.SetFindingStateRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.SetFindingStateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -648,8 +584,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -657,16 +591,14 @@ public Builder mergeFrom(
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -675,8 +607,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -684,17 +614,16 @@ public java.lang.String getName() {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -702,8 +631,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -711,25 +638,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -737,21 +660,16 @@ public Builder setName(java.lang.String value) {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -759,19 +677,17 @@ public Builder clearName() {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -779,75 +695,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Required. The desired State of the finding.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Required. The desired State of the finding.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Required. The desired State of the finding.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The state. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.State result = - com.google.cloud.securitycenter.v1.Finding.State.valueOf(state_); - return result == null - ? com.google.cloud.securitycenter.v1.Finding.State.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1.Finding.State result = com.google.cloud.securitycenter.v1.Finding.State.valueOf(state_); + return result == null ? com.google.cloud.securitycenter.v1.Finding.State.UNRECOGNIZED : result; } /** - * - * *
      * Required. The desired State of the finding.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The state to set. * @return This builder for chaining. */ @@ -855,26 +747,21 @@ public Builder setState(com.google.cloud.securitycenter.v1.Finding.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The desired State of the finding.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -882,35 +769,24 @@ public Builder clearState() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -921,14 +797,11 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -944,16 +817,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -964,20 +835,17 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -989,14 +857,11 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -1010,66 +875,55 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1079,12 +933,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.SetFindingStateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.SetFindingStateRequest) private static final com.google.cloud.securitycenter.v1.SetFindingStateRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.SetFindingStateRequest(); } @@ -1093,16 +947,16 @@ public static com.google.cloud.securitycenter.v1.SetFindingStateRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetFindingStateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetFindingStateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetFindingStateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetFindingStateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1117,4 +971,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.SetFindingStateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java index 1482a44f5..179a25a46 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface SetFindingStateRequestOrBuilder - extends +public interface SetFindingStateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.SetFindingStateRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -33,16 +15,11 @@ public interface SetFindingStateRequestOrBuilder
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -50,78 +27,55 @@ public interface SetFindingStateRequestOrBuilder
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The desired State of the finding.
    * 
* - * - * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Required. The desired State of the finding.
    * 
* - * - * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The state. */ com.google.cloud.securitycenter.v1.Finding.State getState(); /** - * - * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequest.java similarity index 67% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequest.java index 6848ee9e6..4c2066b7b 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for updating a finding's mute status.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.SetMuteRequest} */ -public final class SetMuteRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SetMuteRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.SetMuteRequest) SetMuteRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SetMuteRequest.newBuilder() to construct. private SetMuteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SetMuteRequest() { name_ = ""; mute_ = 0; @@ -44,15 +26,16 @@ private SetMuteRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SetMuteRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SetMuteRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private SetMuteRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - mute_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + mute_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,33 +80,29 @@ private SetMuteRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_SetMuteRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_SetMuteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.SetMuteRequest.class, - com.google.cloud.securitycenter.v1.SetMuteRequest.Builder.class); + com.google.cloud.securitycenter.v1.SetMuteRequest.class, com.google.cloud.securitycenter.v1.SetMuteRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -135,10 +112,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * "projects/{project_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -147,15 +121,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -165,18 +138,17 @@ public java.lang.String getName() {
    * "projects/{project_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -187,45 +159,31 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int MUTE_FIELD_NUMBER = 2; private int mute_; /** - * - * *
    * Required. The desired state of the Mute.
    * 
* - * - * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for mute. */ - @java.lang.Override - public int getMuteValue() { + @java.lang.Override public int getMuteValue() { return mute_; } /** - * - * *
    * Required. The desired state of the Mute.
    * 
* - * - * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The mute. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1.Finding.Mute getMute() { + @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.Mute getMute() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.Mute result = - com.google.cloud.securitycenter.v1.Finding.Mute.valueOf(mute_); + com.google.cloud.securitycenter.v1.Finding.Mute result = com.google.cloud.securitycenter.v1.Finding.Mute.valueOf(mute_); return result == null ? com.google.cloud.securitycenter.v1.Finding.Mute.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,7 +195,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -257,7 +216,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (mute_ != com.google.cloud.securitycenter.v1.Finding.Mute.MUTE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, mute_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, mute_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -267,15 +227,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.SetMuteRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.SetMuteRequest other = - (com.google.cloud.securitycenter.v1.SetMuteRequest) obj; + com.google.cloud.securitycenter.v1.SetMuteRequest other = (com.google.cloud.securitycenter.v1.SetMuteRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (mute_ != other.mute_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -298,126 +258,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.SetMuteRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.SetMuteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.SetMuteRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.SetMuteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for updating a finding's mute status.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.SetMuteRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.SetMuteRequest) com.google.cloud.securitycenter.v1.SetMuteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_SetMuteRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_SetMuteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.SetMuteRequest.class, - com.google.cloud.securitycenter.v1.SetMuteRequest.Builder.class); + com.google.cloud.securitycenter.v1.SetMuteRequest.class, com.google.cloud.securitycenter.v1.SetMuteRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.SetMuteRequest.newBuilder() @@ -425,15 +376,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -445,9 +397,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor; } @java.lang.Override @@ -466,8 +418,7 @@ public com.google.cloud.securitycenter.v1.SetMuteRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.SetMuteRequest buildPartial() { - com.google.cloud.securitycenter.v1.SetMuteRequest result = - new com.google.cloud.securitycenter.v1.SetMuteRequest(this); + com.google.cloud.securitycenter.v1.SetMuteRequest result = new com.google.cloud.securitycenter.v1.SetMuteRequest(this); result.name_ = name_; result.mute_ = mute_; onBuilt(); @@ -478,39 +429,38 @@ public com.google.cloud.securitycenter.v1.SetMuteRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.SetMuteRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.SetMuteRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.SetMuteRequest)other); } else { super.mergeFrom(other); return this; @@ -518,8 +468,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.SetMuteRequest other) { - if (other == com.google.cloud.securitycenter.v1.SetMuteRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.SetMuteRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -546,8 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.SetMuteRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.SetMuteRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -559,8 +507,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -570,16 +516,14 @@ public Builder mergeFrom(
      * "projects/{project_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -588,8 +532,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -599,17 +541,16 @@ public java.lang.String getName() {
      * "projects/{project_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -617,8 +558,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -628,25 +567,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * "projects/{project_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -656,21 +591,16 @@ public Builder setName(java.lang.String value) {
      * "projects/{project_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -680,19 +610,17 @@ public Builder clearName() {
      * "projects/{project_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -700,73 +628,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int mute_ = 0; /** - * - * *
      * Required. The desired state of the Mute.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for mute. */ - @java.lang.Override - public int getMuteValue() { + @java.lang.Override public int getMuteValue() { return mute_; } /** - * - * *
      * Required. The desired state of the Mute.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for mute to set. * @return This builder for chaining. */ public Builder setMuteValue(int value) { - + mute_ = value; onChanged(); return this; } /** - * - * *
      * Required. The desired state of the Mute.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The mute. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.Mute getMute() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.Mute result = - com.google.cloud.securitycenter.v1.Finding.Mute.valueOf(mute_); + com.google.cloud.securitycenter.v1.Finding.Mute result = com.google.cloud.securitycenter.v1.Finding.Mute.valueOf(mute_); return result == null ? com.google.cloud.securitycenter.v1.Finding.Mute.UNRECOGNIZED : result; } /** - * - * *
      * Required. The desired state of the Mute.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The mute to set. * @return This builder for chaining. */ @@ -774,33 +680,28 @@ public Builder setMute(com.google.cloud.securitycenter.v1.Finding.Mute value) { if (value == null) { throw new NullPointerException(); } - + mute_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The desired state of the Mute.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearMute() { - + mute_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -810,12 +711,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.SetMuteRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.SetMuteRequest) private static final com.google.cloud.securitycenter.v1.SetMuteRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.SetMuteRequest(); } @@ -824,16 +725,16 @@ public static com.google.cloud.securitycenter.v1.SetMuteRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetMuteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetMuteRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetMuteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetMuteRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -848,4 +749,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.SetMuteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequestOrBuilder.java index 317dcd3f1..17cbe3341 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface SetMuteRequestOrBuilder - extends +public interface SetMuteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.SetMuteRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -35,16 +17,11 @@ public interface SetMuteRequestOrBuilder
    * "projects/{project_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -54,39 +31,27 @@ public interface SetMuteRequestOrBuilder
    * "projects/{project_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The desired state of the Mute.
    * 
* - * - * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for mute. */ int getMuteValue(); /** - * - * *
    * Required. The desired state of the Mute.
    * 
* - * - * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The mute. */ com.google.cloud.securitycenter.v1.Finding.Mute getMute(); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java similarity index 76% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java index da2512d86..41dc218be 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/source.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Security Command Center finding source. A finding source
  * is an entity or a mechanism that can produce a finding. A source is like a
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.Source}
  */
-public final class Source extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Source extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Source)
     SourceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Source.newBuilder() to construct.
   private Source(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Source() {
     name_ = "";
     displayName_ = "";
@@ -49,15 +31,16 @@ private Source() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Source();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Source(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,41 +59,37 @@ private Source(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            displayName_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
-            }
-          case 114:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            description_ = s;
+            break;
+          }
+          case 114: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              canonicalName_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            canonicalName_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -118,33 +97,29 @@ private Source(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1.SourceOuterClass
-        .internal_static_google_cloud_securitycenter_v1_Source_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1_Source_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.SourceOuterClass
-        .internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.Source.class,
-            com.google.cloud.securitycenter.v1.Source.Builder.class);
+            com.google.cloud.securitycenter.v1.Source.class, com.google.cloud.securitycenter.v1.Source.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -153,7 +128,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -162,15 +136,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -179,15 +152,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -198,8 +172,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -209,7 +181,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -218,15 +189,14 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -236,15 +206,16 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -255,8 +226,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -268,7 +237,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -277,15 +245,14 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -297,15 +264,16 @@ public java.lang.String getDescription() {
    * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -316,8 +284,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CANONICAL_NAME_FIELD_NUMBER = 14; private volatile java.lang.Object canonicalName_; /** - * - * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}",
@@ -328,7 +294,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * 
* * string canonical_name = 14; - * * @return The canonicalName. */ @java.lang.Override @@ -337,15 +302,14 @@ public java.lang.String getCanonicalName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; } } /** - * - * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}",
@@ -356,15 +320,16 @@ public java.lang.String getCanonicalName() {
    * 
* * string canonical_name = 14; - * * @return The bytes for canonicalName. */ @java.lang.Override - public com.google.protobuf.ByteString getCanonicalNameBytes() { + public com.google.protobuf.ByteString + getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -373,7 +338,6 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -385,7 +349,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -427,18 +392,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Source)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Source other = - (com.google.cloud.securitycenter.v1.Source) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getCanonicalName().equals(other.getCanonicalName())) return false; + com.google.cloud.securitycenter.v1.Source other = (com.google.cloud.securitycenter.v1.Source) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getCanonicalName() + .equals(other.getCanonicalName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -463,104 +431,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Source parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Source parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Source parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Source parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Source parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Source parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.Source parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Source parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Source parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1.Source parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1.Source parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Source parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Source parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.Source parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.Source prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Security Command Center finding source. A finding source
    * is an entity or a mechanism that can produce a finding. A source is like a
@@ -570,23 +531,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.Source}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Source)
       com.google.cloud.securitycenter.v1.SourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1.SourceOuterClass
-          .internal_static_google_cloud_securitycenter_v1_Source_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1_Source_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.SourceOuterClass
-          .internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.Source.class,
-              com.google.cloud.securitycenter.v1.Source.Builder.class);
+              com.google.cloud.securitycenter.v1.Source.class, com.google.cloud.securitycenter.v1.Source.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.Source.newBuilder()
@@ -594,15 +553,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -618,9 +578,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.SourceOuterClass
-          .internal_static_google_cloud_securitycenter_v1_Source_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1_Source_descriptor;
     }
 
     @java.lang.Override
@@ -639,8 +599,7 @@ public com.google.cloud.securitycenter.v1.Source build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.Source buildPartial() {
-      com.google.cloud.securitycenter.v1.Source result =
-          new com.google.cloud.securitycenter.v1.Source(this);
+      com.google.cloud.securitycenter.v1.Source result = new com.google.cloud.securitycenter.v1.Source(this);
       result.name_ = name_;
       result.displayName_ = displayName_;
       result.description_ = description_;
@@ -653,39 +612,38 @@ public com.google.cloud.securitycenter.v1.Source buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.Source) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.Source) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.Source)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -741,8 +699,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -751,13 +707,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -766,8 +722,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -776,14 +730,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -791,8 +746,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -801,22 +754,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -825,18 +776,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -845,16 +793,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -862,8 +810,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -873,13 +819,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -888,8 +834,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -899,14 +843,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -914,8 +859,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -925,22 +868,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -950,18 +891,15 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -971,16 +909,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -988,8 +926,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -1001,13 +937,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1016,8 +952,6 @@ public java.lang.String getDescription() { } } /** - * - * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -1029,14 +963,15 @@ public java.lang.String getDescription() {
      * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1044,8 +979,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -1057,22 +990,20 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -1084,18 +1015,15 @@ public Builder setDescription(java.lang.String value) {
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -1107,16 +1035,16 @@ public Builder clearDescription() {
      * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1124,8 +1052,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object canonicalName_ = ""; /** - * - * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}",
@@ -1136,13 +1062,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * string canonical_name = 14; - * * @return The canonicalName. */ public java.lang.String getCanonicalName() { java.lang.Object ref = canonicalName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; @@ -1151,8 +1077,6 @@ public java.lang.String getCanonicalName() { } } /** - * - * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}",
@@ -1163,14 +1087,15 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 14; - * * @return The bytes for canonicalName. */ - public com.google.protobuf.ByteString getCanonicalNameBytes() { + public com.google.protobuf.ByteString + getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -1178,8 +1103,6 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() { } } /** - * - * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}",
@@ -1190,22 +1113,20 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() {
      * 
* * string canonical_name = 14; - * * @param value The canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalName(java.lang.String value) { + public Builder setCanonicalName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + canonicalName_ = value; onChanged(); return this; } /** - * - * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}",
@@ -1216,18 +1137,15 @@ public Builder setCanonicalName(java.lang.String value) {
      * 
* * string canonical_name = 14; - * * @return This builder for chaining. */ public Builder clearCanonicalName() { - + canonicalName_ = getDefaultInstance().getCanonicalName(); onChanged(); return this; } /** - * - * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}",
@@ -1238,23 +1156,23 @@ public Builder clearCanonicalName() {
      * 
* * string canonical_name = 14; - * * @param value The bytes for canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalNameBytes(com.google.protobuf.ByteString value) { + public Builder setCanonicalNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1264,12 +1182,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Source) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Source) private static final com.google.cloud.securitycenter.v1.Source DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Source(); } @@ -1278,16 +1196,16 @@ public static com.google.cloud.securitycenter.v1.Source getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Source parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Source(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Source parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Source(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1302,4 +1220,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Source getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java similarity index 79% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java index beec91c95..72b15202d 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/source.proto package com.google.cloud.securitycenter.v1; -public interface SourceOrBuilder - extends +public interface SourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Source) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -34,13 +16,10 @@ public interface SourceOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -49,14 +28,12 @@ public interface SourceOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -66,13 +43,10 @@ public interface SourceOrBuilder
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -82,14 +56,12 @@ public interface SourceOrBuilder
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -101,13 +73,10 @@ public interface SourceOrBuilder
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -119,14 +88,12 @@ public interface SourceOrBuilder
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}",
@@ -137,13 +104,10 @@ public interface SourceOrBuilder
    * 
* * string canonical_name = 14; - * * @return The canonicalName. */ java.lang.String getCanonicalName(); /** - * - * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}",
@@ -154,8 +118,8 @@ public interface SourceOrBuilder
    * 
* * string canonical_name = 14; - * * @return The bytes for canonicalName. */ - com.google.protobuf.ByteString getCanonicalNameBytes(); + com.google.protobuf.ByteString + getCanonicalNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java new file mode 100644 index 000000000..8d7196a14 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java @@ -0,0 +1,67 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/source.proto + +package com.google.cloud.securitycenter.v1; + +public final class SourceOuterClass { + private SourceOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Source_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/securitycenter/v1/source." + + "proto\022\036google.cloud.securitycenter.v1\032\031g" + + "oogle/api/resource.proto\"\375\001\n\006Source\022\014\n\004n" + + "ame\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013descr" + + "iption\030\003 \001(\t\022\026\n\016canonical_name\030\016 \001(\t:\241\001\352" + + "A\235\001\n$securitycenter.googleapis.com/Sourc" + + "e\022-organizations/{organization}/sources/" + + "{source}\022!folders/{folder}/sources/{sour" + + "ce}\022#projects/{project}/sources/{source}" + + "B\332\001\n\"com.google.cloud.securitycenter.v1P" + + "\001ZLgoogle.golang.org/genproto/googleapis" + + "/cloud/securitycenter/v1;securitycenter\252" + + "\002\036Google.Cloud.SecurityCenter.V1\312\002\036Googl" + + "e\\Cloud\\SecurityCenter\\V1\352\002!Google::Clou" + + "d::SecurityCenter::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_Source_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Source_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Description", "CanonicalName", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequest.java similarity index 65% rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequest.java rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequest.java index 0419d7c0b..1d117245a 100644 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** - * - * *
  * Request message for updating a BigQuery export.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateBigQueryExportRequest} */ -public final class UpdateBigQueryExportRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateBigQueryExportRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateBigQueryExportRequest) UpdateBigQueryExportRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateBigQueryExportRequest.newBuilder() to construct. private UpdateBigQueryExportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateBigQueryExportRequest() {} + private UpdateBigQueryExportRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateBigQueryExportRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateBigQueryExportRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,39 @@ private UpdateBigQueryExportRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1.BigQueryExport.Builder subBuilder = null; - if (bigQueryExport_ != null) { - subBuilder = bigQueryExport_.toBuilder(); - } - bigQueryExport_ = - input.readMessage( - com.google.cloud.securitycenter.v1.BigQueryExport.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bigQueryExport_); - bigQueryExport_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1.BigQueryExport.Builder subBuilder = null; + if (bigQueryExport_ != null) { + subBuilder = bigQueryExport_.toBuilder(); + } + bigQueryExport_ = input.readMessage(com.google.cloud.securitycenter.v1.BigQueryExport.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bigQueryExport_); + bigQueryExport_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,41 +92,34 @@ private UpdateBigQueryExportRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.class, - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.class, com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.Builder.class); } public static final int BIG_QUERY_EXPORT_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.BigQueryExport bigQueryExport_; /** - * - * *
    * Required. The BigQuery export being updated.
    * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the bigQueryExport field is set. */ @java.lang.Override @@ -156,34 +127,23 @@ public boolean hasBigQueryExport() { return bigQueryExport_ != null; } /** - * - * *
    * Required. The BigQuery export being updated.
    * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bigQueryExport. */ @java.lang.Override public com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExport() { - return bigQueryExport_ == null - ? com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() - : bigQueryExport_; + return bigQueryExport_ == null ? com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() : bigQueryExport_; } /** - * - * *
    * Required. The BigQuery export being updated.
    * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExportOrBuilder() { @@ -193,15 +153,12 @@ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExp public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -209,15 +166,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -225,8 +179,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
@@ -240,7 +192,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -252,7 +203,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (bigQueryExport_ != null) {
       output.writeMessage(1, getBigQueryExport());
     }
@@ -269,10 +221,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (bigQueryExport_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBigQueryExport());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getBigQueryExport());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -282,21 +236,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest other =
-        (com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest) obj;
+    com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest other = (com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest) obj;
 
     if (hasBigQueryExport() != other.hasBigQueryExport()) return false;
     if (hasBigQueryExport()) {
-      if (!getBigQueryExport().equals(other.getBigQueryExport())) return false;
+      if (!getBigQueryExport()
+          .equals(other.getBigQueryExport())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -323,127 +278,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for updating a BigQuery export.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateBigQueryExportRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateBigQueryExportRequest) com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.class, - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.class, com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.newBuilder() @@ -451,15 +396,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -479,14 +425,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.getDefaultInstance(); } @@ -501,8 +446,7 @@ public com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest buildPartial() { - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest result = - new com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest(this); + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest result = new com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest(this); if (bigQueryExportBuilder_ == null) { result.bigQueryExport_ = bigQueryExport_; } else { @@ -521,39 +465,38 @@ public com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest)other); } else { super.mergeFrom(other); return this; @@ -561,9 +504,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest other) { - if (other - == com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.getDefaultInstance()) return this; if (other.hasBigQueryExport()) { mergeBigQueryExport(other.getBigQueryExport()); } @@ -589,9 +530,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -603,58 +542,39 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.BigQueryExport bigQueryExport_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.BigQueryExport, - com.google.cloud.securitycenter.v1.BigQueryExport.Builder, - com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> - bigQueryExportBuilder_; + com.google.cloud.securitycenter.v1.BigQueryExport, com.google.cloud.securitycenter.v1.BigQueryExport.Builder, com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> bigQueryExportBuilder_; /** - * - * *
      * Required. The BigQuery export being updated.
      * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the bigQueryExport field is set. */ public boolean hasBigQueryExport() { return bigQueryExportBuilder_ != null || bigQueryExport_ != null; } /** - * - * *
      * Required. The BigQuery export being updated.
      * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bigQueryExport. */ public com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExport() { if (bigQueryExportBuilder_ == null) { - return bigQueryExport_ == null - ? com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() - : bigQueryExport_; + return bigQueryExport_ == null ? com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() : bigQueryExport_; } else { return bigQueryExportBuilder_.getMessage(); } } /** - * - * *
      * Required. The BigQuery export being updated.
      * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBigQueryExport(com.google.cloud.securitycenter.v1.BigQueryExport value) { if (bigQueryExportBuilder_ == null) { @@ -670,15 +590,11 @@ public Builder setBigQueryExport(com.google.cloud.securitycenter.v1.BigQueryExpo return this; } /** - * - * *
      * Required. The BigQuery export being updated.
      * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBigQueryExport( com.google.cloud.securitycenter.v1.BigQueryExport.Builder builderForValue) { @@ -692,23 +608,17 @@ public Builder setBigQueryExport( return this; } /** - * - * *
      * Required. The BigQuery export being updated.
      * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBigQueryExport(com.google.cloud.securitycenter.v1.BigQueryExport value) { if (bigQueryExportBuilder_ == null) { if (bigQueryExport_ != null) { bigQueryExport_ = - com.google.cloud.securitycenter.v1.BigQueryExport.newBuilder(bigQueryExport_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.BigQueryExport.newBuilder(bigQueryExport_).mergeFrom(value).buildPartial(); } else { bigQueryExport_ = value; } @@ -720,15 +630,11 @@ public Builder mergeBigQueryExport(com.google.cloud.securitycenter.v1.BigQueryEx return this; } /** - * - * *
      * Required. The BigQuery export being updated.
      * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBigQueryExport() { if (bigQueryExportBuilder_ == null) { @@ -742,64 +648,48 @@ public Builder clearBigQueryExport() { return this; } /** - * - * *
      * Required. The BigQuery export being updated.
      * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1.BigQueryExport.Builder getBigQueryExportBuilder() { - + onChanged(); return getBigQueryExportFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The BigQuery export being updated.
      * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExportOrBuilder() { if (bigQueryExportBuilder_ != null) { return bigQueryExportBuilder_.getMessageOrBuilder(); } else { - return bigQueryExport_ == null - ? com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() - : bigQueryExport_; + return bigQueryExport_ == null ? + com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() : bigQueryExport_; } } /** - * - * *
      * Required. The BigQuery export being updated.
      * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.BigQueryExport, - com.google.cloud.securitycenter.v1.BigQueryExport.Builder, - com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> + com.google.cloud.securitycenter.v1.BigQueryExport, com.google.cloud.securitycenter.v1.BigQueryExport.Builder, com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> getBigQueryExportFieldBuilder() { if (bigQueryExportBuilder_ == null) { - bigQueryExportBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.BigQueryExport, - com.google.cloud.securitycenter.v1.BigQueryExport.Builder, - com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder>( - getBigQueryExport(), getParentForChildren(), isClean()); + bigQueryExportBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.BigQueryExport, com.google.cloud.securitycenter.v1.BigQueryExport.Builder, com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder>( + getBigQueryExport(), + getParentForChildren(), + isClean()); bigQueryExport_ = null; } return bigQueryExportBuilder_; @@ -807,49 +697,36 @@ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExp private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -871,8 +748,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -880,7 +755,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -891,8 +767,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -904,7 +778,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -916,8 +790,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -937,8 +809,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -947,13 +817,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -965,14 +833,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -981,24 +846,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1008,32 +870,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.UpdateBigQueryExportRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateBigQueryExportRequest)
-  private static final com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest();
   }
 
-  public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest
-      getDefaultInstance() {
+  public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateBigQueryExportRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateBigQueryExportRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateBigQueryExportRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateBigQueryExportRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1045,8 +905,9 @@ public com.google.protobuf.Parser getParserForType(
   }
 
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest
-      getDefaultInstanceForType() {
+  public com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequestOrBuilder.java
similarity index 59%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequestOrBuilder.java
index 6052ae1fb..c413bbc08 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequestOrBuilder.java
@@ -1,98 +1,60 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface UpdateBigQueryExportRequestOrBuilder
-    extends
+public interface UpdateBigQueryExportRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateBigQueryExportRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The BigQuery export being updated.
    * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the bigQueryExport field is set. */ boolean hasBigQueryExport(); /** - * - * *
    * Required. The BigQuery export being updated.
    * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bigQueryExport. */ com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExport(); /** - * - * *
    * Required. The BigQuery export being updated.
    * 
* - * - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExportOrBuilder(); /** - * - * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequest.java
similarity index 65%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequest.java
index 5d6c86baf..a40cfec2a 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequest.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
 /**
- *
- *
  * 
  * Request message for updating a ExternalSystem resource.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateExternalSystemRequest} */ -public final class UpdateExternalSystemRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateExternalSystemRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateExternalSystemRequest) UpdateExternalSystemRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateExternalSystemRequest.newBuilder() to construct. private UpdateExternalSystemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateExternalSystemRequest() {} + private UpdateExternalSystemRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateExternalSystemRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateExternalSystemRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,39 @@ private UpdateExternalSystemRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1.ExternalSystem.Builder subBuilder = null; - if (externalSystem_ != null) { - subBuilder = externalSystem_.toBuilder(); - } - externalSystem_ = - input.readMessage( - com.google.cloud.securitycenter.v1.ExternalSystem.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(externalSystem_); - externalSystem_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1.ExternalSystem.Builder subBuilder = null; + if (externalSystem_ != null) { + subBuilder = externalSystem_.toBuilder(); + } + externalSystem_ = input.readMessage(com.google.cloud.securitycenter.v1.ExternalSystem.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(externalSystem_); + externalSystem_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,41 +92,34 @@ private UpdateExternalSystemRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.class, - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.class, com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.Builder.class); } public static final int EXTERNAL_SYSTEM_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.ExternalSystem externalSystem_; /** - * - * *
    * Required. The external system resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the externalSystem field is set. */ @java.lang.Override @@ -156,34 +127,23 @@ public boolean hasExternalSystem() { return externalSystem_ != null; } /** - * - * *
    * Required. The external system resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The externalSystem. */ @java.lang.Override public com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystem() { - return externalSystem_ == null - ? com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance() - : externalSystem_; + return externalSystem_ == null ? com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance() : externalSystem_; } /** - * - * *
    * Required. The external system resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder getExternalSystemOrBuilder() { @@ -193,15 +153,12 @@ public com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder getExternalSys public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The FieldMask to use when updating the external system resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -209,15 +166,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The FieldMask to use when updating the external system resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -225,8 +179,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The FieldMask to use when updating the external system resource.
    * If empty all mutable fields will be updated.
@@ -240,7 +192,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -252,7 +203,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (externalSystem_ != null) {
       output.writeMessage(1, getExternalSystem());
     }
@@ -269,10 +221,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (externalSystem_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExternalSystem());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getExternalSystem());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -282,21 +236,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest other =
-        (com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest) obj;
+    com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest other = (com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest) obj;
 
     if (hasExternalSystem() != other.hasExternalSystem()) return false;
     if (hasExternalSystem()) {
-      if (!getExternalSystem().equals(other.getExternalSystem())) return false;
+      if (!getExternalSystem()
+          .equals(other.getExternalSystem())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -323,127 +278,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for updating a ExternalSystem resource.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateExternalSystemRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateExternalSystemRequest) com.google.cloud.securitycenter.v1.UpdateExternalSystemRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.class, - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.class, com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.newBuilder() @@ -451,15 +396,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -479,14 +425,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.getDefaultInstance(); } @@ -501,8 +446,7 @@ public com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest buildPartial() { - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest result = - new com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest(this); + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest result = new com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest(this); if (externalSystemBuilder_ == null) { result.externalSystem_ = externalSystem_; } else { @@ -521,39 +465,38 @@ public com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest)other); } else { super.mergeFrom(other); return this; @@ -561,9 +504,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest other) { - if (other - == com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.getDefaultInstance()) return this; if (other.hasExternalSystem()) { mergeExternalSystem(other.getExternalSystem()); } @@ -589,9 +530,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -603,58 +542,39 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.ExternalSystem externalSystem_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.ExternalSystem, - com.google.cloud.securitycenter.v1.ExternalSystem.Builder, - com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder> - externalSystemBuilder_; + com.google.cloud.securitycenter.v1.ExternalSystem, com.google.cloud.securitycenter.v1.ExternalSystem.Builder, com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder> externalSystemBuilder_; /** - * - * *
      * Required. The external system resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the externalSystem field is set. */ public boolean hasExternalSystem() { return externalSystemBuilder_ != null || externalSystem_ != null; } /** - * - * *
      * Required. The external system resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The externalSystem. */ public com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystem() { if (externalSystemBuilder_ == null) { - return externalSystem_ == null - ? com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance() - : externalSystem_; + return externalSystem_ == null ? com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance() : externalSystem_; } else { return externalSystemBuilder_.getMessage(); } } /** - * - * *
      * Required. The external system resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setExternalSystem(com.google.cloud.securitycenter.v1.ExternalSystem value) { if (externalSystemBuilder_ == null) { @@ -670,15 +590,11 @@ public Builder setExternalSystem(com.google.cloud.securitycenter.v1.ExternalSyst return this; } /** - * - * *
      * Required. The external system resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setExternalSystem( com.google.cloud.securitycenter.v1.ExternalSystem.Builder builderForValue) { @@ -692,23 +608,17 @@ public Builder setExternalSystem( return this; } /** - * - * *
      * Required. The external system resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeExternalSystem(com.google.cloud.securitycenter.v1.ExternalSystem value) { if (externalSystemBuilder_ == null) { if (externalSystem_ != null) { externalSystem_ = - com.google.cloud.securitycenter.v1.ExternalSystem.newBuilder(externalSystem_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.ExternalSystem.newBuilder(externalSystem_).mergeFrom(value).buildPartial(); } else { externalSystem_ = value; } @@ -720,15 +630,11 @@ public Builder mergeExternalSystem(com.google.cloud.securitycenter.v1.ExternalSy return this; } /** - * - * *
      * Required. The external system resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearExternalSystem() { if (externalSystemBuilder_ == null) { @@ -742,64 +648,48 @@ public Builder clearExternalSystem() { return this; } /** - * - * *
      * Required. The external system resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1.ExternalSystem.Builder getExternalSystemBuilder() { - + onChanged(); return getExternalSystemFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The external system resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder getExternalSystemOrBuilder() { if (externalSystemBuilder_ != null) { return externalSystemBuilder_.getMessageOrBuilder(); } else { - return externalSystem_ == null - ? com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance() - : externalSystem_; + return externalSystem_ == null ? + com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance() : externalSystem_; } } /** - * - * *
      * Required. The external system resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.ExternalSystem, - com.google.cloud.securitycenter.v1.ExternalSystem.Builder, - com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder> + com.google.cloud.securitycenter.v1.ExternalSystem, com.google.cloud.securitycenter.v1.ExternalSystem.Builder, com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder> getExternalSystemFieldBuilder() { if (externalSystemBuilder_ == null) { - externalSystemBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.ExternalSystem, - com.google.cloud.securitycenter.v1.ExternalSystem.Builder, - com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder>( - getExternalSystem(), getParentForChildren(), isClean()); + externalSystemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.ExternalSystem, com.google.cloud.securitycenter.v1.ExternalSystem.Builder, com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder>( + getExternalSystem(), + getParentForChildren(), + isClean()); externalSystem_ = null; } return externalSystemBuilder_; @@ -807,49 +697,36 @@ public com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder getExternalSys private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The FieldMask to use when updating the external system resource.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The FieldMask to use when updating the external system resource.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The FieldMask to use when updating the external system resource.
      * If empty all mutable fields will be updated.
@@ -871,8 +748,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the external system resource.
      * If empty all mutable fields will be updated.
@@ -880,7 +755,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -891,8 +767,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the external system resource.
      * If empty all mutable fields will be updated.
@@ -904,7 +778,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -916,8 +790,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the external system resource.
      * If empty all mutable fields will be updated.
@@ -937,8 +809,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the external system resource.
      * If empty all mutable fields will be updated.
@@ -947,13 +817,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the external system resource.
      * If empty all mutable fields will be updated.
@@ -965,14 +833,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the external system resource.
      * If empty all mutable fields will be updated.
@@ -981,24 +846,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1008,32 +870,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.UpdateExternalSystemRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateExternalSystemRequest)
-  private static final com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest();
   }
 
-  public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest
-      getDefaultInstance() {
+  public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateExternalSystemRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateExternalSystemRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateExternalSystemRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateExternalSystemRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1045,8 +905,9 @@ public com.google.protobuf.Parser getParserForType(
   }
 
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest
-      getDefaultInstanceForType() {
+  public com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequestOrBuilder.java
similarity index 60%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequestOrBuilder.java
index ec7973e53..eed9320b3 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequestOrBuilder.java
@@ -1,98 +1,60 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface UpdateExternalSystemRequestOrBuilder
-    extends
+public interface UpdateExternalSystemRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateExternalSystemRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The external system resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the externalSystem field is set. */ boolean hasExternalSystem(); /** - * - * *
    * Required. The external system resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The externalSystem. */ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystem(); /** - * - * *
    * Required. The external system resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder getExternalSystemOrBuilder(); /** - * - * *
    * The FieldMask to use when updating the external system resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the external system resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the external system resource.
    * If empty all mutable fields will be updated.
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java
similarity index 72%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java
index 3adf7f4c0..8c997ae41 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
 /**
- *
- *
  * 
  * Request message for updating or creating a finding.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateFindingRequest} */ -public final class UpdateFindingRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateFindingRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateFindingRequest) UpdateFindingRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateFindingRequest.newBuilder() to construct. private UpdateFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateFindingRequest() {} + private UpdateFindingRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateFindingRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1.Finding.Builder subBuilder = null; - if (finding_ != null) { - subBuilder = finding_.toBuilder(); - } - finding_ = - input.readMessage( - com.google.cloud.securitycenter.v1.Finding.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(finding_); - finding_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1.Finding.Builder subBuilder = null; + if (finding_ != null) { + subBuilder = finding_.toBuilder(); + } + finding_ = input.readMessage(com.google.cloud.securitycenter.v1.Finding.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finding_); + finding_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,33 +92,29 @@ private UpdateFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateFindingRequest.class, - com.google.cloud.securitycenter.v1.UpdateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateFindingRequest.class, com.google.cloud.securitycenter.v1.UpdateFindingRequest.Builder.class); } public static final int FINDING_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.Finding finding_; /** - * - * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -148,10 +123,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * characters in length.
    * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the finding field is set. */ @java.lang.Override @@ -159,8 +131,6 @@ public boolean hasFinding() { return finding_ != null; } /** - * - * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -169,21 +139,14 @@ public boolean hasFinding() {
    * characters in length.
    * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding getFinding() { - return finding_ == null - ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; } /** - * - * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -192,9 +155,7 @@ public com.google.cloud.securitycenter.v1.Finding getFinding() {
    * characters in length.
    * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { @@ -204,8 +165,6 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -216,7 +175,6 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder()
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -224,8 +182,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -236,7 +192,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -244,8 +199,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -263,7 +216,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -275,7 +227,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (finding_ != null) {
       output.writeMessage(1, getFinding());
     }
@@ -292,10 +245,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (finding_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFinding());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getFinding());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -305,21 +260,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.UpdateFindingRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.UpdateFindingRequest other =
-        (com.google.cloud.securitycenter.v1.UpdateFindingRequest) obj;
+    com.google.cloud.securitycenter.v1.UpdateFindingRequest other = (com.google.cloud.securitycenter.v1.UpdateFindingRequest) obj;
 
     if (hasFinding() != other.hasFinding()) return false;
     if (hasFinding()) {
-      if (!getFinding().equals(other.getFinding())) return false;
+      if (!getFinding()
+          .equals(other.getFinding())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -346,127 +302,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.securitycenter.v1.UpdateFindingRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.securitycenter.v1.UpdateFindingRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for updating or creating a finding.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateFindingRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateFindingRequest) com.google.cloud.securitycenter.v1.UpdateFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateFindingRequest.class, - com.google.cloud.securitycenter.v1.UpdateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateFindingRequest.class, com.google.cloud.securitycenter.v1.UpdateFindingRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.UpdateFindingRequest.newBuilder() @@ -474,15 +420,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -502,9 +449,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor; } @java.lang.Override @@ -523,8 +470,7 @@ public com.google.cloud.securitycenter.v1.UpdateFindingRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.UpdateFindingRequest buildPartial() { - com.google.cloud.securitycenter.v1.UpdateFindingRequest result = - new com.google.cloud.securitycenter.v1.UpdateFindingRequest(this); + com.google.cloud.securitycenter.v1.UpdateFindingRequest result = new com.google.cloud.securitycenter.v1.UpdateFindingRequest(this); if (findingBuilder_ == null) { result.finding_ = finding_; } else { @@ -543,39 +489,38 @@ public com.google.cloud.securitycenter.v1.UpdateFindingRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.UpdateFindingRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.UpdateFindingRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.UpdateFindingRequest)other); } else { super.mergeFrom(other); return this; @@ -583,8 +528,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.UpdateFindingRequest other) { - if (other == com.google.cloud.securitycenter.v1.UpdateFindingRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.UpdateFindingRequest.getDefaultInstance()) return this; if (other.hasFinding()) { mergeFinding(other.getFinding()); } @@ -610,8 +554,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.UpdateFindingRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.UpdateFindingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -623,13 +566,8 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Finding, - com.google.cloud.securitycenter.v1.Finding.Builder, - com.google.cloud.securitycenter.v1.FindingOrBuilder> - findingBuilder_; + com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder> findingBuilder_; /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -638,18 +576,13 @@ public Builder mergeFrom(
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -658,24 +591,17 @@ public boolean hasFinding() {
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The finding. */ public com.google.cloud.securitycenter.v1.Finding getFinding() { if (findingBuilder_ == null) { - return finding_ == null - ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; } else { return findingBuilder_.getMessage(); } } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -684,9 +610,7 @@ public com.google.cloud.securitycenter.v1.Finding getFinding() {
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) { if (findingBuilder_ == null) { @@ -702,8 +626,6 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) { return this; } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -712,11 +634,10 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) {
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setFinding(com.google.cloud.securitycenter.v1.Finding.Builder builderForValue) { + public Builder setFinding( + com.google.cloud.securitycenter.v1.Finding.Builder builderForValue) { if (findingBuilder_ == null) { finding_ = builderForValue.build(); onChanged(); @@ -727,8 +648,6 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding.Builder bui return this; } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -737,17 +656,13 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding.Builder bui
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) { if (findingBuilder_ == null) { if (finding_ != null) { finding_ = - com.google.cloud.securitycenter.v1.Finding.newBuilder(finding_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.Finding.newBuilder(finding_).mergeFrom(value).buildPartial(); } else { finding_ = value; } @@ -759,8 +674,6 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) { return this; } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -769,9 +682,7 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) {
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFinding() { if (findingBuilder_ == null) { @@ -785,8 +696,6 @@ public Builder clearFinding() { return this; } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -795,18 +704,14 @@ public Builder clearFinding() {
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() { - + onChanged(); return getFindingFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -815,22 +720,17 @@ public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() {
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { if (findingBuilder_ != null) { return findingBuilder_.getMessageOrBuilder(); } else { - return finding_ == null - ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? + com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; } } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -839,22 +739,17 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder()
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Finding, - com.google.cloud.securitycenter.v1.Finding.Builder, - com.google.cloud.securitycenter.v1.FindingOrBuilder> + com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder> getFindingFieldBuilder() { if (findingBuilder_ == null) { - findingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Finding, - com.google.cloud.securitycenter.v1.Finding.Builder, - com.google.cloud.securitycenter.v1.FindingOrBuilder>( - getFinding(), getParentForChildren(), isClean()); + findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder>( + getFinding(), + getParentForChildren(), + isClean()); finding_ = null; } return findingBuilder_; @@ -862,13 +757,8 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -879,15 +769,12 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder()
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -898,21 +785,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -938,8 +820,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -951,7 +831,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -962,8 +843,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -979,7 +858,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -991,8 +870,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -1016,8 +893,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -1030,13 +905,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -1052,14 +925,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -1072,24 +942,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1099,12 +966,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.UpdateFindingRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateFindingRequest)
   private static final com.google.cloud.securitycenter.v1.UpdateFindingRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.UpdateFindingRequest();
   }
@@ -1113,16 +980,16 @@ public static com.google.cloud.securitycenter.v1.UpdateFindingRequest getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateFindingRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateFindingRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateFindingRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateFindingRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1137,4 +1004,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.securitycenter.v1.UpdateFindingRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java
similarity index 74%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java
index bfb5e72b7..6c25c8982 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface UpdateFindingRequestOrBuilder
-    extends
+public interface UpdateFindingRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateFindingRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -34,16 +16,11 @@ public interface UpdateFindingRequestOrBuilder
    * characters in length.
    * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the finding field is set. */ boolean hasFinding(); /** - * - * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -52,16 +29,11 @@ public interface UpdateFindingRequestOrBuilder
    * characters in length.
    * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The finding. */ com.google.cloud.securitycenter.v1.Finding getFinding(); /** - * - * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -70,15 +42,11 @@ public interface UpdateFindingRequestOrBuilder
    * characters in length.
    * 
* - * - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder(); /** - * - * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -89,13 +57,10 @@ public interface UpdateFindingRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -106,13 +71,10 @@ public interface UpdateFindingRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequest.java
similarity index 66%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequest.java
index a9f17cc9e..1e9308012 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequest.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
 /**
- *
- *
  * 
  * Request message for updating a mute config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateMuteConfigRequest} */ -public final class UpdateMuteConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateMuteConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateMuteConfigRequest) UpdateMuteConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateMuteConfigRequest.newBuilder() to construct. private UpdateMuteConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateMuteConfigRequest() {} + private UpdateMuteConfigRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateMuteConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateMuteConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateMuteConfigRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1.MuteConfig.Builder subBuilder = null; - if (muteConfig_ != null) { - subBuilder = muteConfig_.toBuilder(); - } - muteConfig_ = - input.readMessage( - com.google.cloud.securitycenter.v1.MuteConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(muteConfig_); - muteConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1.MuteConfig.Builder subBuilder = null; + if (muteConfig_ != null) { + subBuilder = muteConfig_.toBuilder(); + } + muteConfig_ = input.readMessage(com.google.cloud.securitycenter.v1.MuteConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(muteConfig_); + muteConfig_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,41 +92,34 @@ private UpdateMuteConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.class, - com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.class, com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.Builder.class); } public static final int MUTE_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.MuteConfig muteConfig_; /** - * - * *
    * Required. The mute config being updated.
    * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the muteConfig field is set. */ @java.lang.Override @@ -155,34 +127,23 @@ public boolean hasMuteConfig() { return muteConfig_ != null; } /** - * - * *
    * Required. The mute config being updated.
    * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The muteConfig. */ @java.lang.Override public com.google.cloud.securitycenter.v1.MuteConfig getMuteConfig() { - return muteConfig_ == null - ? com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() - : muteConfig_; + return muteConfig_ == null ? com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() : muteConfig_; } /** - * - * *
    * Required. The mute config being updated.
    * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBuilder() { @@ -192,15 +153,12 @@ public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBui public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -208,15 +166,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -224,8 +179,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
@@ -239,7 +192,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -251,7 +203,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (muteConfig_ != null) {
       output.writeMessage(1, getMuteConfig());
     }
@@ -268,10 +221,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (muteConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMuteConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getMuteConfig());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -281,21 +236,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest other =
-        (com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest) obj;
+    com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest other = (com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest) obj;
 
     if (hasMuteConfig() != other.hasMuteConfig()) return false;
     if (hasMuteConfig()) {
-      if (!getMuteConfig().equals(other.getMuteConfig())) return false;
+      if (!getMuteConfig()
+          .equals(other.getMuteConfig())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -322,127 +278,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for updating a mute config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateMuteConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateMuteConfigRequest) com.google.cloud.securitycenter.v1.UpdateMuteConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.class, - com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.class, com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.newBuilder() @@ -450,15 +396,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +425,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor; } @java.lang.Override @@ -499,8 +446,7 @@ public com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest result = - new com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest(this); + com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest result = new com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest(this); if (muteConfigBuilder_ == null) { result.muteConfig_ = muteConfig_; } else { @@ -519,39 +465,38 @@ public com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -559,8 +504,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest other) { - if (other == com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.getDefaultInstance()) return this; if (other.hasMuteConfig()) { mergeMuteConfig(other.getMuteConfig()); } @@ -586,8 +530,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -599,58 +542,39 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.MuteConfig muteConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.MuteConfig, - com.google.cloud.securitycenter.v1.MuteConfig.Builder, - com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> - muteConfigBuilder_; + com.google.cloud.securitycenter.v1.MuteConfig, com.google.cloud.securitycenter.v1.MuteConfig.Builder, com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> muteConfigBuilder_; /** - * - * *
      * Required. The mute config being updated.
      * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the muteConfig field is set. */ public boolean hasMuteConfig() { return muteConfigBuilder_ != null || muteConfig_ != null; } /** - * - * *
      * Required. The mute config being updated.
      * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The muteConfig. */ public com.google.cloud.securitycenter.v1.MuteConfig getMuteConfig() { if (muteConfigBuilder_ == null) { - return muteConfig_ == null - ? com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() - : muteConfig_; + return muteConfig_ == null ? com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() : muteConfig_; } else { return muteConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The mute config being updated.
      * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMuteConfig(com.google.cloud.securitycenter.v1.MuteConfig value) { if (muteConfigBuilder_ == null) { @@ -666,15 +590,11 @@ public Builder setMuteConfig(com.google.cloud.securitycenter.v1.MuteConfig value return this; } /** - * - * *
      * Required. The mute config being updated.
      * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMuteConfig( com.google.cloud.securitycenter.v1.MuteConfig.Builder builderForValue) { @@ -688,23 +608,17 @@ public Builder setMuteConfig( return this; } /** - * - * *
      * Required. The mute config being updated.
      * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeMuteConfig(com.google.cloud.securitycenter.v1.MuteConfig value) { if (muteConfigBuilder_ == null) { if (muteConfig_ != null) { muteConfig_ = - com.google.cloud.securitycenter.v1.MuteConfig.newBuilder(muteConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.MuteConfig.newBuilder(muteConfig_).mergeFrom(value).buildPartial(); } else { muteConfig_ = value; } @@ -716,15 +630,11 @@ public Builder mergeMuteConfig(com.google.cloud.securitycenter.v1.MuteConfig val return this; } /** - * - * *
      * Required. The mute config being updated.
      * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearMuteConfig() { if (muteConfigBuilder_ == null) { @@ -738,64 +648,48 @@ public Builder clearMuteConfig() { return this; } /** - * - * *
      * Required. The mute config being updated.
      * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1.MuteConfig.Builder getMuteConfigBuilder() { - + onChanged(); return getMuteConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The mute config being updated.
      * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBuilder() { if (muteConfigBuilder_ != null) { return muteConfigBuilder_.getMessageOrBuilder(); } else { - return muteConfig_ == null - ? com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() - : muteConfig_; + return muteConfig_ == null ? + com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() : muteConfig_; } } /** - * - * *
      * Required. The mute config being updated.
      * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.MuteConfig, - com.google.cloud.securitycenter.v1.MuteConfig.Builder, - com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> + com.google.cloud.securitycenter.v1.MuteConfig, com.google.cloud.securitycenter.v1.MuteConfig.Builder, com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> getMuteConfigFieldBuilder() { if (muteConfigBuilder_ == null) { - muteConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.MuteConfig, - com.google.cloud.securitycenter.v1.MuteConfig.Builder, - com.google.cloud.securitycenter.v1.MuteConfigOrBuilder>( - getMuteConfig(), getParentForChildren(), isClean()); + muteConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.MuteConfig, com.google.cloud.securitycenter.v1.MuteConfig.Builder, com.google.cloud.securitycenter.v1.MuteConfigOrBuilder>( + getMuteConfig(), + getParentForChildren(), + isClean()); muteConfig_ = null; } return muteConfigBuilder_; @@ -803,49 +697,36 @@ public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBui private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -867,8 +748,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -876,7 +755,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -887,8 +767,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -900,7 +778,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -912,8 +790,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -933,8 +809,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -943,13 +817,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -961,14 +833,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -977,24 +846,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1004,12 +870,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.UpdateMuteConfigRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateMuteConfigRequest)
   private static final com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest();
   }
@@ -1018,16 +884,16 @@ public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateMuteConfigRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateMuteConfigRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateMuteConfigRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateMuteConfigRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1042,4 +908,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequestOrBuilder.java
similarity index 59%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequestOrBuilder.java
index 0958ce3d1..ecaef6971 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequestOrBuilder.java
@@ -1,98 +1,60 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface UpdateMuteConfigRequestOrBuilder
-    extends
+public interface UpdateMuteConfigRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateMuteConfigRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The mute config being updated.
    * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the muteConfig field is set. */ boolean hasMuteConfig(); /** - * - * *
    * Required. The mute config being updated.
    * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The muteConfig. */ com.google.cloud.securitycenter.v1.MuteConfig getMuteConfig(); /** - * - * *
    * Required. The mute config being updated.
    * 
* - * - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBuilder(); /** - * - * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java
similarity index 63%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java
index 697a426ed..e56f4b773 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java
@@ -1,56 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
 /**
- *
- *
  * 
  * Request message for updating a notification config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateNotificationConfigRequest} */ -public final class UpdateNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateNotificationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateNotificationConfigRequest) UpdateNotificationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateNotificationConfigRequest.newBuilder() to construct. - private UpdateNotificationConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateNotificationConfigRequest() {} + private UpdateNotificationConfigRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateNotificationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateNotificationConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,45 +52,39 @@ private UpdateNotificationConfigRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1.NotificationConfig.Builder subBuilder = null; - if (notificationConfig_ != null) { - subBuilder = notificationConfig_.toBuilder(); - } - notificationConfig_ = - input.readMessage( - com.google.cloud.securitycenter.v1.NotificationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(notificationConfig_); - notificationConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1.NotificationConfig.Builder subBuilder = null; + if (notificationConfig_ != null) { + subBuilder = notificationConfig_.toBuilder(); + } + notificationConfig_ = input.readMessage(com.google.cloud.securitycenter.v1.NotificationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(notificationConfig_); + notificationConfig_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,41 +92,34 @@ private UpdateNotificationConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.class, - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.class, com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.Builder.class); } public static final int NOTIFICATION_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.NotificationConfig notificationConfig_; /** - * - * *
    * Required. The notification config to update.
    * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationConfig field is set. */ @java.lang.Override @@ -157,53 +127,38 @@ public boolean hasNotificationConfig() { return notificationConfig_ != null; } /** - * - * *
    * Required. The notification config to update.
    * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationConfig. */ @java.lang.Override public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig() { - return notificationConfig_ == null - ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() : notificationConfig_; } /** - * - * *
    * Required. The notification config to update.
    * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder - getNotificationConfigOrBuilder() { + public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { return getNotificationConfig(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -211,15 +166,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -227,8 +179,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
@@ -242,7 +192,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -254,7 +203,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (notificationConfig_ != null) {
       output.writeMessage(1, getNotificationConfig());
     }
@@ -271,10 +221,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (notificationConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNotificationConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getNotificationConfig());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -284,21 +236,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest other =
-        (com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest) obj;
+    com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest other = (com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest) obj;
 
     if (hasNotificationConfig() != other.hasNotificationConfig()) return false;
     if (hasNotificationConfig()) {
-      if (!getNotificationConfig().equals(other.getNotificationConfig())) return false;
+      if (!getNotificationConfig()
+          .equals(other.getNotificationConfig())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -325,145 +278,134 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest
-      parseDelimitedFrom(
-          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+  public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for updating a notification config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateNotificationConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateNotificationConfigRequest) com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.class, - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.class, com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.newBuilder() + // Construct using com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -483,16 +425,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -506,8 +446,7 @@ public com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest build( @java.lang.Override public com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest result = - new com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest(this); + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest result = new com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest(this); if (notificationConfigBuilder_ == null) { result.notificationConfig_ = notificationConfig_; } else { @@ -526,51 +465,46 @@ public com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest) { - return mergeFrom( - (com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest other) { - if (other - == com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest other) { + if (other == com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.getDefaultInstance()) return this; if (other.hasNotificationConfig()) { mergeNotificationConfig(other.getNotificationConfig()); } @@ -596,9 +530,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -610,61 +542,41 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.NotificationConfig notificationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig, - com.google.cloud.securitycenter.v1.NotificationConfig.Builder, - com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> - notificationConfigBuilder_; + com.google.cloud.securitycenter.v1.NotificationConfig, com.google.cloud.securitycenter.v1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> notificationConfigBuilder_; /** - * - * *
      * Required. The notification config to update.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationConfig field is set. */ public boolean hasNotificationConfig() { return notificationConfigBuilder_ != null || notificationConfig_ != null; } /** - * - * *
      * Required. The notification config to update.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationConfig. */ public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig() { if (notificationConfigBuilder_ == null) { - return notificationConfig_ == null - ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() : notificationConfig_; } else { return notificationConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The notification config to update.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setNotificationConfig( - com.google.cloud.securitycenter.v1.NotificationConfig value) { + public Builder setNotificationConfig(com.google.cloud.securitycenter.v1.NotificationConfig value) { if (notificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -678,15 +590,11 @@ public Builder setNotificationConfig( return this; } /** - * - * *
      * Required. The notification config to update.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNotificationConfig( com.google.cloud.securitycenter.v1.NotificationConfig.Builder builderForValue) { @@ -700,24 +608,17 @@ public Builder setNotificationConfig( return this; } /** - * - * *
      * Required. The notification config to update.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeNotificationConfig( - com.google.cloud.securitycenter.v1.NotificationConfig value) { + public Builder mergeNotificationConfig(com.google.cloud.securitycenter.v1.NotificationConfig value) { if (notificationConfigBuilder_ == null) { if (notificationConfig_ != null) { notificationConfig_ = - com.google.cloud.securitycenter.v1.NotificationConfig.newBuilder(notificationConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.NotificationConfig.newBuilder(notificationConfig_).mergeFrom(value).buildPartial(); } else { notificationConfig_ = value; } @@ -729,15 +630,11 @@ public Builder mergeNotificationConfig( return this; } /** - * - * *
      * Required. The notification config to update.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearNotificationConfig() { if (notificationConfigBuilder_ == null) { @@ -751,66 +648,48 @@ public Builder clearNotificationConfig() { return this; } /** - * - * *
      * Required. The notification config to update.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycenter.v1.NotificationConfig.Builder - getNotificationConfigBuilder() { - + public com.google.cloud.securitycenter.v1.NotificationConfig.Builder getNotificationConfigBuilder() { + onChanged(); return getNotificationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The notification config to update.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder - getNotificationConfigOrBuilder() { + public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { if (notificationConfigBuilder_ != null) { return notificationConfigBuilder_.getMessageOrBuilder(); } else { - return notificationConfig_ == null - ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? + com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() : notificationConfig_; } } /** - * - * *
      * Required. The notification config to update.
      * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig, - com.google.cloud.securitycenter.v1.NotificationConfig.Builder, - com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> + com.google.cloud.securitycenter.v1.NotificationConfig, com.google.cloud.securitycenter.v1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> getNotificationConfigFieldBuilder() { if (notificationConfigBuilder_ == null) { - notificationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig, - com.google.cloud.securitycenter.v1.NotificationConfig.Builder, - com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder>( - getNotificationConfig(), getParentForChildren(), isClean()); + notificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.NotificationConfig, com.google.cloud.securitycenter.v1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder>( + getNotificationConfig(), + getParentForChildren(), + isClean()); notificationConfig_ = null; } return notificationConfigBuilder_; @@ -818,49 +697,36 @@ public Builder clearNotificationConfig() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -882,8 +748,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -891,7 +755,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -902,8 +767,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -915,7 +778,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -927,8 +790,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -948,8 +809,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -958,13 +817,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -976,14 +833,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -992,24 +846,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1019,32 +870,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.UpdateNotificationConfigRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateNotificationConfigRequest)
-  private static final com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest();
   }
 
-  public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest
-      getDefaultInstance() {
+  public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateNotificationConfigRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateNotificationConfigRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateNotificationConfigRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateNotificationConfigRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1056,8 +905,9 @@ public com.google.protobuf.Parser getParserForT
   }
 
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest
-      getDefaultInstanceForType() {
+  public com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequestOrBuilder.java
similarity index 60%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequestOrBuilder.java
index 92c077ca2..8a2ac64e8 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequestOrBuilder.java
@@ -1,98 +1,60 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface UpdateNotificationConfigRequestOrBuilder
-    extends
+public interface UpdateNotificationConfigRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateNotificationConfigRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The notification config to update.
    * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationConfig field is set. */ boolean hasNotificationConfig(); /** - * - * *
    * Required. The notification config to update.
    * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationConfig. */ com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig(); /** - * - * *
    * Required. The notification config to update.
    * 
* - * - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder(); /** - * - * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java
similarity index 63%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java
index 4b1333e49..1c92cb473 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java
@@ -1,56 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
 /**
- *
- *
  * 
  * Request message for updating an organization's settings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest} */ -public final class UpdateOrganizationSettingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateOrganizationSettingsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) UpdateOrganizationSettingsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateOrganizationSettingsRequest.newBuilder() to construct. - private UpdateOrganizationSettingsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateOrganizationSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateOrganizationSettingsRequest() {} + private UpdateOrganizationSettingsRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateOrganizationSettingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateOrganizationSettingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,45 +52,39 @@ private UpdateOrganizationSettingsRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1.OrganizationSettings.Builder subBuilder = null; - if (organizationSettings_ != null) { - subBuilder = organizationSettings_.toBuilder(); - } - organizationSettings_ = - input.readMessage( - com.google.cloud.securitycenter.v1.OrganizationSettings.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(organizationSettings_); - organizationSettings_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1.OrganizationSettings.Builder subBuilder = null; + if (organizationSettings_ != null) { + subBuilder = organizationSettings_.toBuilder(); + } + organizationSettings_ = input.readMessage(com.google.cloud.securitycenter.v1.OrganizationSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(organizationSettings_); + organizationSettings_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,41 +92,34 @@ private UpdateOrganizationSettingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.class, - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.Builder.class); } public static final int ORGANIZATION_SETTINGS_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.OrganizationSettings organizationSettings_; /** - * - * *
    * Required. The organization settings resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the organizationSettings field is set. */ @java.lang.Override @@ -157,53 +127,38 @@ public boolean hasOrganizationSettings() { return organizationSettings_ != null; } /** - * - * *
    * Required. The organization settings resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The organizationSettings. */ @java.lang.Override public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSettings() { - return organizationSettings_ == null - ? com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance() - : organizationSettings_; + return organizationSettings_ == null ? com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance() : organizationSettings_; } /** - * - * *
    * Required. The organization settings resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder - getOrganizationSettingsOrBuilder() { + public com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder() { return getOrganizationSettings(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -211,15 +166,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -227,8 +179,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
@@ -242,7 +192,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -254,7 +203,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (organizationSettings_ != null) {
       output.writeMessage(1, getOrganizationSettings());
     }
@@ -271,11 +221,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (organizationSettings_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOrganizationSettings());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getOrganizationSettings());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -285,21 +236,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest other =
-        (com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) obj;
+    com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest other = (com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) obj;
 
     if (hasOrganizationSettings() != other.hasOrganizationSettings()) return false;
     if (hasOrganizationSettings()) {
-      if (!getOrganizationSettings().equals(other.getOrganizationSettings())) return false;
+      if (!getOrganizationSettings()
+          .equals(other.getOrganizationSettings())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -326,145 +278,134 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest
-      parseDelimitedFrom(
-          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+  public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for updating an organization's settings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.class, - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.newBuilder() + // Construct using com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -484,16 +425,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.getDefaultInstance(); } @java.lang.Override @@ -507,8 +446,7 @@ public com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest buil @java.lang.Override public com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest buildPartial() { - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest result = - new com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest(this); + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest result = new com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest(this); if (organizationSettingsBuilder_ == null) { result.organizationSettings_ = organizationSettings_; } else { @@ -527,51 +465,46 @@ public com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) { - return mergeFrom( - (com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest other) { - if (other - == com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest other) { + if (other == com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.getDefaultInstance()) return this; if (other.hasOrganizationSettings()) { mergeOrganizationSettings(other.getOrganizationSettings()); } @@ -597,9 +530,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -611,61 +542,41 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.OrganizationSettings organizationSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.OrganizationSettings, - com.google.cloud.securitycenter.v1.OrganizationSettings.Builder, - com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder> - organizationSettingsBuilder_; + com.google.cloud.securitycenter.v1.OrganizationSettings, com.google.cloud.securitycenter.v1.OrganizationSettings.Builder, com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder> organizationSettingsBuilder_; /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the organizationSettings field is set. */ public boolean hasOrganizationSettings() { return organizationSettingsBuilder_ != null || organizationSettings_ != null; } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The organizationSettings. */ public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSettings() { if (organizationSettingsBuilder_ == null) { - return organizationSettings_ == null - ? com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance() - : organizationSettings_; + return organizationSettings_ == null ? com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance() : organizationSettings_; } else { return organizationSettingsBuilder_.getMessage(); } } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setOrganizationSettings( - com.google.cloud.securitycenter.v1.OrganizationSettings value) { + public Builder setOrganizationSettings(com.google.cloud.securitycenter.v1.OrganizationSettings value) { if (organizationSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -679,15 +590,11 @@ public Builder setOrganizationSettings( return this; } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOrganizationSettings( com.google.cloud.securitycenter.v1.OrganizationSettings.Builder builderForValue) { @@ -701,25 +608,17 @@ public Builder setOrganizationSettings( return this; } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeOrganizationSettings( - com.google.cloud.securitycenter.v1.OrganizationSettings value) { + public Builder mergeOrganizationSettings(com.google.cloud.securitycenter.v1.OrganizationSettings value) { if (organizationSettingsBuilder_ == null) { if (organizationSettings_ != null) { organizationSettings_ = - com.google.cloud.securitycenter.v1.OrganizationSettings.newBuilder( - organizationSettings_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.OrganizationSettings.newBuilder(organizationSettings_).mergeFrom(value).buildPartial(); } else { organizationSettings_ = value; } @@ -731,15 +630,11 @@ public Builder mergeOrganizationSettings( return this; } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOrganizationSettings() { if (organizationSettingsBuilder_ == null) { @@ -753,66 +648,48 @@ public Builder clearOrganizationSettings() { return this; } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycenter.v1.OrganizationSettings.Builder - getOrganizationSettingsBuilder() { - + public com.google.cloud.securitycenter.v1.OrganizationSettings.Builder getOrganizationSettingsBuilder() { + onChanged(); return getOrganizationSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder - getOrganizationSettingsOrBuilder() { + public com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder() { if (organizationSettingsBuilder_ != null) { return organizationSettingsBuilder_.getMessageOrBuilder(); } else { - return organizationSettings_ == null - ? com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance() - : organizationSettings_; + return organizationSettings_ == null ? + com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance() : organizationSettings_; } } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.OrganizationSettings, - com.google.cloud.securitycenter.v1.OrganizationSettings.Builder, - com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder> + com.google.cloud.securitycenter.v1.OrganizationSettings, com.google.cloud.securitycenter.v1.OrganizationSettings.Builder, com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder> getOrganizationSettingsFieldBuilder() { if (organizationSettingsBuilder_ == null) { - organizationSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.OrganizationSettings, - com.google.cloud.securitycenter.v1.OrganizationSettings.Builder, - com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder>( - getOrganizationSettings(), getParentForChildren(), isClean()); + organizationSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.OrganizationSettings, com.google.cloud.securitycenter.v1.OrganizationSettings.Builder, com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder>( + getOrganizationSettings(), + getParentForChildren(), + isClean()); organizationSettings_ = null; } return organizationSettingsBuilder_; @@ -820,49 +697,36 @@ public Builder clearOrganizationSettings() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -884,8 +748,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -893,7 +755,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -904,8 +767,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -917,7 +778,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -929,8 +790,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -950,8 +809,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -960,13 +817,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -978,14 +833,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -994,24 +846,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1021,32 +870,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest)
-  private static final com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest();
   }
 
-  public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest
-      getDefaultInstance() {
+  public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateOrganizationSettingsRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateOrganizationSettingsRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateOrganizationSettingsRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateOrganizationSettingsRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1058,8 +905,9 @@ public com.google.protobuf.Parser getParserFo
   }
 
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest
-      getDefaultInstanceForType() {
+  public com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java
similarity index 58%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java
index f1e161f58..1d2d4dacf 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java
@@ -1,99 +1,60 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface UpdateOrganizationSettingsRequestOrBuilder
-    extends
+public interface UpdateOrganizationSettingsRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The organization settings resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the organizationSettings field is set. */ boolean hasOrganizationSettings(); /** - * - * *
    * Required. The organization settings resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The organizationSettings. */ com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSettings(); /** - * - * *
    * Required. The organization settings resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder - getOrganizationSettingsOrBuilder(); + com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder(); /** - * - * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java
similarity index 70%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java
index 05a69aefa..757855ee2 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
 /**
- *
- *
  * 
  * Request message for updating a SecurityMarks resource.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateSecurityMarksRequest} */ -public final class UpdateSecurityMarksRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateSecurityMarksRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) UpdateSecurityMarksRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSecurityMarksRequest.newBuilder() to construct. private UpdateSecurityMarksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateSecurityMarksRequest() {} + private UpdateSecurityMarksRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSecurityMarksRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateSecurityMarksRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,59 +52,52 @@ private UpdateSecurityMarksRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1.SecurityMarks.Builder subBuilder = null; - if (securityMarks_ != null) { - subBuilder = securityMarks_.toBuilder(); - } - securityMarks_ = - input.readMessage( - com.google.cloud.securitycenter.v1.SecurityMarks.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(securityMarks_); - securityMarks_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1.SecurityMarks.Builder subBuilder = null; + if (securityMarks_ != null) { + subBuilder = securityMarks_.toBuilder(); + } + securityMarks_ = input.readMessage(com.google.cloud.securitycenter.v1.SecurityMarks.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(securityMarks_); + securityMarks_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -128,41 +105,34 @@ private UpdateSecurityMarksRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.class, - com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.class, com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.Builder.class); } public static final int SECURITY_MARKS_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_; /** - * - * *
    * Required. The security marks resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the securityMarks field is set. */ @java.lang.Override @@ -170,34 +140,23 @@ public boolean hasSecurityMarks() { return securityMarks_ != null; } /** - * - * *
    * Required. The security marks resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The securityMarks. */ @java.lang.Override public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() : securityMarks_; } /** - * - * *
    * Required. The security marks resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { @@ -207,8 +166,6 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -217,7 +174,6 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -225,8 +181,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -235,7 +189,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -243,8 +196,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -262,8 +213,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int START_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Timestamp startTime_;
   /**
-   *
-   *
    * 
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
@@ -272,7 +221,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -280,8 +228,6 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
@@ -290,7 +236,6 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return The startTime. */ @java.lang.Override @@ -298,8 +243,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
@@ -315,7 +258,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -327,7 +269,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (securityMarks_ != null) {
       output.writeMessage(1, getSecurityMarks());
     }
@@ -347,13 +290,16 @@ public int getSerializedSize() {
 
     size = 0;
     if (securityMarks_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSecurityMarks());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getSecurityMarks());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     if (startTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getStartTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -363,25 +309,27 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest other =
-        (com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) obj;
+    com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest other = (com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) obj;
 
     if (hasSecurityMarks() != other.hasSecurityMarks()) return false;
     if (hasSecurityMarks()) {
-      if (!getSecurityMarks().equals(other.getSecurityMarks())) return false;
+      if (!getSecurityMarks()
+          .equals(other.getSecurityMarks())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (hasStartTime() != other.hasStartTime()) return false;
     if (hasStartTime()) {
-      if (!getStartTime().equals(other.getStartTime())) return false;
+      if (!getStartTime()
+          .equals(other.getStartTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -412,127 +360,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for updating a SecurityMarks resource.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateSecurityMarksRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.class, - com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.class, com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.newBuilder() @@ -540,15 +478,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -574,14 +513,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.getDefaultInstance(); } @@ -596,8 +534,7 @@ public com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest buildPartial() { - com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest result = - new com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest(this); + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest result = new com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest(this); if (securityMarksBuilder_ == null) { result.securityMarks_ = securityMarks_; } else { @@ -621,39 +558,38 @@ public com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest)other); } else { super.mergeFrom(other); return this; @@ -661,9 +597,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest other) { - if (other - == com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.getDefaultInstance()) return this; if (other.hasSecurityMarks()) { mergeSecurityMarks(other.getSecurityMarks()); } @@ -692,9 +626,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -706,58 +638,39 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.SecurityMarks, - com.google.cloud.securitycenter.v1.SecurityMarks.Builder, - com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> - securityMarksBuilder_; + com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> securityMarksBuilder_; /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The securityMarks. */ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() : securityMarks_; } else { return securityMarksBuilder_.getMessage(); } } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks value) { if (securityMarksBuilder_ == null) { @@ -773,15 +686,11 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks return this; } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSecurityMarks( com.google.cloud.securitycenter.v1.SecurityMarks.Builder builderForValue) { @@ -795,23 +704,17 @@ public Builder setSecurityMarks( return this; } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks value) { if (securityMarksBuilder_ == null) { if (securityMarks_ != null) { securityMarks_ = - com.google.cloud.securitycenter.v1.SecurityMarks.newBuilder(securityMarks_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.SecurityMarks.newBuilder(securityMarks_).mergeFrom(value).buildPartial(); } else { securityMarks_ = value; } @@ -823,15 +726,11 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMar return this; } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -845,64 +744,48 @@ public Builder clearSecurityMarks() { return this; } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1.SecurityMarks.Builder getSecurityMarksBuilder() { - + onChanged(); return getSecurityMarksFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { if (securityMarksBuilder_ != null) { return securityMarksBuilder_.getMessageOrBuilder(); } else { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? + com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() : securityMarks_; } } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.SecurityMarks, - com.google.cloud.securitycenter.v1.SecurityMarks.Builder, - com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> + com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> getSecurityMarksFieldBuilder() { if (securityMarksBuilder_ == null) { - securityMarksBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.SecurityMarks, - com.google.cloud.securitycenter.v1.SecurityMarks.Builder, - com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>( - getSecurityMarks(), getParentForChildren(), isClean()); + securityMarksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>( + getSecurityMarks(), + getParentForChildren(), + isClean()); securityMarks_ = null; } return securityMarksBuilder_; @@ -910,13 +793,8 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -925,15 +803,12 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -942,21 +817,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -980,8 +850,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -991,7 +859,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -1002,8 +871,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -1017,7 +884,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -1029,8 +896,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -1052,8 +917,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -1064,13 +927,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -1084,14 +945,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -1102,17 +960,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
@@ -1120,13 +975,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
 
     private com.google.protobuf.Timestamp startTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        startTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
     /**
-     *
-     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1135,15 +985,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1152,7 +999,6 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1163,8 +1009,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1188,8 +1032,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1199,7 +1041,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp start_time = 3;
      */
-    public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setStartTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
         onChanged();
@@ -1210,8 +1053,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1225,7 +1066,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       if (startTimeBuilder_ == null) {
         if (startTime_ != null) {
           startTime_ =
-              com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
         } else {
           startTime_ = value;
         }
@@ -1237,8 +1078,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1260,8 +1099,6 @@ public Builder clearStartTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1272,13 +1109,11 @@ public Builder clearStartTime() {
      * .google.protobuf.Timestamp start_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
-
+      
       onChanged();
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1292,12 +1127,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
       if (startTimeBuilder_ != null) {
         return startTimeBuilder_.getMessageOrBuilder();
       } else {
-        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+        return startTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1308,24 +1142,21 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * .google.protobuf.Timestamp start_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getStartTimeFieldBuilder() {
       if (startTimeBuilder_ == null) {
-        startTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getStartTime(), getParentForChildren(), isClean());
+        startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getStartTime(),
+                getParentForChildren(),
+                isClean());
         startTime_ = null;
       }
       return startTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1335,13 +1166,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.UpdateSecurityMarksRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateSecurityMarksRequest)
-  private static final com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest();
   }
@@ -1350,16 +1180,16 @@ public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest getD
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateSecurityMarksRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateSecurityMarksRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateSecurityMarksRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateSecurityMarksRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1374,4 +1204,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java
similarity index 74%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java
index 8ba41d2c2..8d3fc0de0 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java
@@ -1,72 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface UpdateSecurityMarksRequestOrBuilder
-    extends
+public interface UpdateSecurityMarksRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateSecurityMarksRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The security marks resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** - * - * *
    * Required. The security marks resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The securityMarks. */ com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks(); /** - * - * *
    * Required. The security marks resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder(); /** - * - * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -75,13 +43,10 @@ public interface UpdateSecurityMarksRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -90,13 +55,10 @@ public interface UpdateSecurityMarksRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -109,8 +71,6 @@ public interface UpdateSecurityMarksRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
@@ -119,13 +79,10 @@ public interface UpdateSecurityMarksRequestOrBuilder
    * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
@@ -134,13 +91,10 @@ public interface UpdateSecurityMarksRequestOrBuilder
    * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java
similarity index 66%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java
index 43a9af707..acfc0b8e2 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
 /**
- *
- *
  * 
  * Request message for updating a source.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateSourceRequest} */ -public final class UpdateSourceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateSourceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateSourceRequest) UpdateSourceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSourceRequest.newBuilder() to construct. private UpdateSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateSourceRequest() {} + private UpdateSourceRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateSourceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateSourceRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1.Source.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.securitycenter.v1.Source.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = input.readMessage(com.google.cloud.securitycenter.v1.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,41 +92,34 @@ private UpdateSourceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateSourceRequest.class, - com.google.cloud.securitycenter.v1.UpdateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateSourceRequest.class, com.google.cloud.securitycenter.v1.UpdateSourceRequest.Builder.class); } public static final int SOURCE_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.Source source_; /** - * - * *
    * Required. The source resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the source field is set. */ @java.lang.Override @@ -155,34 +127,23 @@ public boolean hasSource() { return source_ != null; } /** - * - * *
    * Required. The source resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The source. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Source getSource() { - return source_ == null - ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() : source_; } /** - * - * *
    * Required. The source resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { @@ -192,15 +153,12 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -208,15 +166,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -224,8 +179,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
@@ -239,7 +192,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -251,7 +203,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (source_ != null) {
       output.writeMessage(1, getSource());
     }
@@ -268,10 +221,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (source_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSource());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getSource());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -281,21 +236,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.UpdateSourceRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.UpdateSourceRequest other =
-        (com.google.cloud.securitycenter.v1.UpdateSourceRequest) obj;
+    com.google.cloud.securitycenter.v1.UpdateSourceRequest other = (com.google.cloud.securitycenter.v1.UpdateSourceRequest) obj;
 
     if (hasSource() != other.hasSource()) return false;
     if (hasSource()) {
-      if (!getSource().equals(other.getSource())) return false;
+      if (!getSource()
+          .equals(other.getSource())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -322,127 +278,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.securitycenter.v1.UpdateSourceRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.securitycenter.v1.UpdateSourceRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for updating a source.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateSourceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateSourceRequest) com.google.cloud.securitycenter.v1.UpdateSourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateSourceRequest.class, - com.google.cloud.securitycenter.v1.UpdateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateSourceRequest.class, com.google.cloud.securitycenter.v1.UpdateSourceRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.UpdateSourceRequest.newBuilder() @@ -450,15 +396,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +425,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; } @java.lang.Override @@ -499,8 +446,7 @@ public com.google.cloud.securitycenter.v1.UpdateSourceRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.UpdateSourceRequest buildPartial() { - com.google.cloud.securitycenter.v1.UpdateSourceRequest result = - new com.google.cloud.securitycenter.v1.UpdateSourceRequest(this); + com.google.cloud.securitycenter.v1.UpdateSourceRequest result = new com.google.cloud.securitycenter.v1.UpdateSourceRequest(this); if (sourceBuilder_ == null) { result.source_ = source_; } else { @@ -519,39 +465,38 @@ public com.google.cloud.securitycenter.v1.UpdateSourceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.UpdateSourceRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.UpdateSourceRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1.UpdateSourceRequest)other); } else { super.mergeFrom(other); return this; @@ -559,8 +504,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.UpdateSourceRequest other) { - if (other == com.google.cloud.securitycenter.v1.UpdateSourceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.UpdateSourceRequest.getDefaultInstance()) return this; if (other.hasSource()) { mergeSource(other.getSource()); } @@ -586,8 +530,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1.UpdateSourceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1.UpdateSourceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -599,58 +542,39 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.Source source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Source, - com.google.cloud.securitycenter.v1.Source.Builder, - com.google.cloud.securitycenter.v1.SourceOrBuilder> - sourceBuilder_; + com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, com.google.cloud.securitycenter.v1.SourceOrBuilder> sourceBuilder_; /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The source. */ public com.google.cloud.securitycenter.v1.Source getSource() { if (sourceBuilder_ == null) { - return source_ == null - ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSource(com.google.cloud.securitycenter.v1.Source value) { if (sourceBuilder_ == null) { @@ -666,17 +590,14 @@ public Builder setSource(com.google.cloud.securitycenter.v1.Source value) { return this; } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSource(com.google.cloud.securitycenter.v1.Source.Builder builderForValue) { + public Builder setSource( + com.google.cloud.securitycenter.v1.Source.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -687,23 +608,17 @@ public Builder setSource(com.google.cloud.securitycenter.v1.Source.Builder build return this; } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSource(com.google.cloud.securitycenter.v1.Source value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = - com.google.cloud.securitycenter.v1.Source.newBuilder(source_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1.Source.newBuilder(source_).mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -715,15 +630,11 @@ public Builder mergeSource(com.google.cloud.securitycenter.v1.Source value) { return this; } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSource() { if (sourceBuilder_ == null) { @@ -737,64 +648,48 @@ public Builder clearSource() { return this; } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1.Source.Builder getSourceBuilder() { - + onChanged(); return getSourceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { - return source_ == null - ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() - : source_; + return source_ == null ? + com.google.cloud.securitycenter.v1.Source.getDefaultInstance() : source_; } } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Source, - com.google.cloud.securitycenter.v1.Source.Builder, - com.google.cloud.securitycenter.v1.SourceOrBuilder> + com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, com.google.cloud.securitycenter.v1.SourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { - sourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Source, - com.google.cloud.securitycenter.v1.Source.Builder, - com.google.cloud.securitycenter.v1.SourceOrBuilder>( - getSource(), getParentForChildren(), isClean()); + sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, com.google.cloud.securitycenter.v1.SourceOrBuilder>( + getSource(), + getParentForChildren(), + isClean()); source_ = null; } return sourceBuilder_; @@ -802,49 +697,36 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -866,8 +748,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -875,7 +755,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -886,8 +767,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -899,7 +778,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -911,8 +790,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -932,8 +809,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -942,13 +817,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -960,14 +833,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -976,24 +846,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1003,12 +870,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.UpdateSourceRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateSourceRequest)
   private static final com.google.cloud.securitycenter.v1.UpdateSourceRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.UpdateSourceRequest();
   }
@@ -1017,16 +884,16 @@ public static com.google.cloud.securitycenter.v1.UpdateSourceRequest getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateSourceRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateSourceRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateSourceRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateSourceRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1041,4 +908,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.securitycenter.v1.UpdateSourceRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java
similarity index 60%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java
index f1da14e4a..b2769979c 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java
@@ -1,98 +1,60 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface UpdateSourceRequestOrBuilder
-    extends
+public interface UpdateSourceRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateSourceRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The source resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the source field is set. */ boolean hasSource(); /** - * - * *
    * Required. The source resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The source. */ com.google.cloud.securitycenter.v1.Source getSource(); /** - * - * *
    * Required. The source resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder(); /** - * - * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Vulnerability.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Vulnerability.java
similarity index 70%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Vulnerability.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Vulnerability.java
index 7c626e238..896831510 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Vulnerability.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Vulnerability.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/vulnerability.proto
 
 package com.google.cloud.securitycenter.v1;
 
 /**
- *
- *
  * 
  * Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Vulnerability} */ -public final class Vulnerability extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Vulnerability extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Vulnerability) VulnerabilityOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Vulnerability.newBuilder() to construct. private Vulnerability(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Vulnerability() {} + private Vulnerability() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Vulnerability(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Vulnerability( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,29 +52,26 @@ private Vulnerability( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1.Cve.Builder subBuilder = null; - if (cve_ != null) { - subBuilder = cve_.toBuilder(); - } - cve_ = - input.readMessage( - com.google.cloud.securitycenter.v1.Cve.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cve_); - cve_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1.Cve.Builder subBuilder = null; + if (cve_ != null) { + subBuilder = cve_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + cve_ = input.readMessage(com.google.cloud.securitycenter.v1.Cve.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cve_); + cve_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,40 +79,35 @@ private Vulnerability( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto - .internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto - .internal_static_google_cloud_securitycenter_v1_Vulnerability_fieldAccessorTable + return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Vulnerability_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Vulnerability.class, - com.google.cloud.securitycenter.v1.Vulnerability.Builder.class); + com.google.cloud.securitycenter.v1.Vulnerability.class, com.google.cloud.securitycenter.v1.Vulnerability.Builder.class); } public static final int CVE_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.Cve cve_; /** - * - * *
    * CVE stands for Common Vulnerabilities and Exposures
    * (https://cve.mitre.org/about/)
    * 
* * .google.cloud.securitycenter.v1.Cve cve = 1; - * * @return Whether the cve field is set. */ @java.lang.Override @@ -139,15 +115,12 @@ public boolean hasCve() { return cve_ != null; } /** - * - * *
    * CVE stands for Common Vulnerabilities and Exposures
    * (https://cve.mitre.org/about/)
    * 
* * .google.cloud.securitycenter.v1.Cve cve = 1; - * * @return The cve. */ @java.lang.Override @@ -155,8 +128,6 @@ public com.google.cloud.securitycenter.v1.Cve getCve() { return cve_ == null ? com.google.cloud.securitycenter.v1.Cve.getDefaultInstance() : cve_; } /** - * - * *
    * CVE stands for Common Vulnerabilities and Exposures
    * (https://cve.mitre.org/about/)
@@ -170,7 +141,6 @@ public com.google.cloud.securitycenter.v1.CveOrBuilder getCveOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -182,7 +152,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (cve_ != null) {
       output.writeMessage(1, getCve());
     }
@@ -196,7 +167,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (cve_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCve());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getCve());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -206,17 +178,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.Vulnerability)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.Vulnerability other =
-        (com.google.cloud.securitycenter.v1.Vulnerability) obj;
+    com.google.cloud.securitycenter.v1.Vulnerability other = (com.google.cloud.securitycenter.v1.Vulnerability) obj;
 
     if (hasCve() != other.hasCve()) return false;
     if (hasCve()) {
-      if (!getCve().equals(other.getCve())) return false;
+      if (!getCve()
+          .equals(other.getCve())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -238,127 +210,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1.Vulnerability parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1.Vulnerability parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.Vulnerability parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.securitycenter.v1.Vulnerability prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Vulnerability} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Vulnerability) com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto - .internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto - .internal_static_google_cloud_securitycenter_v1_Vulnerability_fieldAccessorTable + return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Vulnerability_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Vulnerability.class, - com.google.cloud.securitycenter.v1.Vulnerability.Builder.class); + com.google.cloud.securitycenter.v1.Vulnerability.class, com.google.cloud.securitycenter.v1.Vulnerability.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.Vulnerability.newBuilder() @@ -366,15 +329,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -388,9 +352,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto - .internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor; } @java.lang.Override @@ -409,8 +373,7 @@ public com.google.cloud.securitycenter.v1.Vulnerability build() { @java.lang.Override public com.google.cloud.securitycenter.v1.Vulnerability buildPartial() { - com.google.cloud.securitycenter.v1.Vulnerability result = - new com.google.cloud.securitycenter.v1.Vulnerability(this); + com.google.cloud.securitycenter.v1.Vulnerability result = new com.google.cloud.securitycenter.v1.Vulnerability(this); if (cveBuilder_ == null) { result.cve_ = cve_; } else { @@ -424,39 +387,38 @@ public com.google.cloud.securitycenter.v1.Vulnerability buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.Vulnerability) { - return mergeFrom((com.google.cloud.securitycenter.v1.Vulnerability) other); + return mergeFrom((com.google.cloud.securitycenter.v1.Vulnerability)other); } else { super.mergeFrom(other); return this; @@ -464,8 +426,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.Vulnerability other) { - if (other == com.google.cloud.securitycenter.v1.Vulnerability.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1.Vulnerability.getDefaultInstance()) return this; if (other.hasCve()) { mergeCve(other.getCve()); } @@ -500,35 +461,26 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.Cve cve_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Cve, - com.google.cloud.securitycenter.v1.Cve.Builder, - com.google.cloud.securitycenter.v1.CveOrBuilder> - cveBuilder_; + com.google.cloud.securitycenter.v1.Cve, com.google.cloud.securitycenter.v1.Cve.Builder, com.google.cloud.securitycenter.v1.CveOrBuilder> cveBuilder_; /** - * - * *
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
      * 
* * .google.cloud.securitycenter.v1.Cve cve = 1; - * * @return Whether the cve field is set. */ public boolean hasCve() { return cveBuilder_ != null || cve_ != null; } /** - * - * *
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
      * 
* * .google.cloud.securitycenter.v1.Cve cve = 1; - * * @return The cve. */ public com.google.cloud.securitycenter.v1.Cve getCve() { @@ -539,8 +491,6 @@ public com.google.cloud.securitycenter.v1.Cve getCve() { } } /** - * - * *
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
@@ -562,8 +512,6 @@ public Builder setCve(com.google.cloud.securitycenter.v1.Cve value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
@@ -571,7 +519,8 @@ public Builder setCve(com.google.cloud.securitycenter.v1.Cve value) {
      *
      * .google.cloud.securitycenter.v1.Cve cve = 1;
      */
-    public Builder setCve(com.google.cloud.securitycenter.v1.Cve.Builder builderForValue) {
+    public Builder setCve(
+        com.google.cloud.securitycenter.v1.Cve.Builder builderForValue) {
       if (cveBuilder_ == null) {
         cve_ = builderForValue.build();
         onChanged();
@@ -582,8 +531,6 @@ public Builder setCve(com.google.cloud.securitycenter.v1.Cve.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
@@ -595,9 +542,7 @@ public Builder mergeCve(com.google.cloud.securitycenter.v1.Cve value) {
       if (cveBuilder_ == null) {
         if (cve_ != null) {
           cve_ =
-              com.google.cloud.securitycenter.v1.Cve.newBuilder(cve_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.securitycenter.v1.Cve.newBuilder(cve_).mergeFrom(value).buildPartial();
         } else {
           cve_ = value;
         }
@@ -609,8 +554,6 @@ public Builder mergeCve(com.google.cloud.securitycenter.v1.Cve value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
@@ -630,8 +573,6 @@ public Builder clearCve() {
       return this;
     }
     /**
-     *
-     *
      * 
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
@@ -640,13 +581,11 @@ public Builder clearCve() {
      * .google.cloud.securitycenter.v1.Cve cve = 1;
      */
     public com.google.cloud.securitycenter.v1.Cve.Builder getCveBuilder() {
-
+      
       onChanged();
       return getCveFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
@@ -658,12 +597,11 @@ public com.google.cloud.securitycenter.v1.CveOrBuilder getCveOrBuilder() {
       if (cveBuilder_ != null) {
         return cveBuilder_.getMessageOrBuilder();
       } else {
-        return cve_ == null ? com.google.cloud.securitycenter.v1.Cve.getDefaultInstance() : cve_;
+        return cve_ == null ?
+            com.google.cloud.securitycenter.v1.Cve.getDefaultInstance() : cve_;
       }
     }
     /**
-     *
-     *
      * 
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
@@ -672,24 +610,21 @@ public com.google.cloud.securitycenter.v1.CveOrBuilder getCveOrBuilder() {
      * .google.cloud.securitycenter.v1.Cve cve = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Cve,
-            com.google.cloud.securitycenter.v1.Cve.Builder,
-            com.google.cloud.securitycenter.v1.CveOrBuilder>
+        com.google.cloud.securitycenter.v1.Cve, com.google.cloud.securitycenter.v1.Cve.Builder, com.google.cloud.securitycenter.v1.CveOrBuilder> 
         getCveFieldBuilder() {
       if (cveBuilder_ == null) {
-        cveBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.securitycenter.v1.Cve,
-                com.google.cloud.securitycenter.v1.Cve.Builder,
-                com.google.cloud.securitycenter.v1.CveOrBuilder>(
-                getCve(), getParentForChildren(), isClean());
+        cveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.securitycenter.v1.Cve, com.google.cloud.securitycenter.v1.Cve.Builder, com.google.cloud.securitycenter.v1.CveOrBuilder>(
+                getCve(),
+                getParentForChildren(),
+                isClean());
         cve_ = null;
       }
       return cveBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -699,12 +634,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Vulnerability)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Vulnerability)
   private static final com.google.cloud.securitycenter.v1.Vulnerability DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Vulnerability();
   }
@@ -713,16 +648,16 @@ public static com.google.cloud.securitycenter.v1.Vulnerability getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Vulnerability parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Vulnerability(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Vulnerability parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Vulnerability(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -737,4 +672,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.securitycenter.v1.Vulnerability getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityOrBuilder.java
similarity index 61%
rename from proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityOrBuilder.java
index 334ae34fe..1bd25afca 100644
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityOrBuilder.java
@@ -1,57 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/vulnerability.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface VulnerabilityOrBuilder
-    extends
+public interface VulnerabilityOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Vulnerability)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * CVE stands for Common Vulnerabilities and Exposures
    * (https://cve.mitre.org/about/)
    * 
* * .google.cloud.securitycenter.v1.Cve cve = 1; - * * @return Whether the cve field is set. */ boolean hasCve(); /** - * - * *
    * CVE stands for Common Vulnerabilities and Exposures
    * (https://cve.mitre.org/about/)
    * 
* * .google.cloud.securitycenter.v1.Cve cve = 1; - * * @return The cve. */ com.google.cloud.securitycenter.v1.Cve getCve(); /** - * - * *
    * CVE stands for Common Vulnerabilities and Exposures
    * (https://cve.mitre.org/about/)
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityProto.java
new file mode 100644
index 000000000..646db76f6
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityProto.java
@@ -0,0 +1,127 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/securitycenter/v1/vulnerability.proto
+
+package com.google.cloud.securitycenter.v1;
+
+public final class VulnerabilityProto {
+  private VulnerabilityProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1_Vulnerability_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1_Cve_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1_Cve_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1_Reference_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1_Reference_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1_Cvssv3_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n2google/cloud/securitycenter/v1/vulnera" +
+      "bility.proto\022\036google.cloud.securitycente" +
+      "r.v1\"A\n\rVulnerability\0220\n\003cve\030\001 \001(\0132#.goo" +
+      "gle.cloud.securitycenter.v1.Cve\"\250\001\n\003Cve\022" +
+      "\n\n\002id\030\001 \001(\t\022=\n\nreferences\030\002 \003(\0132).google" +
+      ".cloud.securitycenter.v1.Reference\0226\n\006cv" +
+      "ssv3\030\003 \001(\0132&.google.cloud.securitycenter" +
+      ".v1.Cvssv3\022\036\n\026upstream_fix_available\030\004 \001" +
+      "(\010\"(\n\tReference\022\016\n\006source\030\001 \001(\t\022\013\n\003uri\030\002" +
+      " \001(\t\"\261\n\n\006Cvssv3\022\022\n\nbase_score\030\001 \001(\001\022J\n\ra" +
+      "ttack_vector\030\005 \001(\01623.google.cloud.securi" +
+      "tycenter.v1.Cvssv3.AttackVector\022R\n\021attac" +
+      "k_complexity\030\006 \001(\01627.google.cloud.securi" +
+      "tycenter.v1.Cvssv3.AttackComplexity\022V\n\023p" +
+      "rivileges_required\030\007 \001(\01629.google.cloud." +
+      "securitycenter.v1.Cvssv3.PrivilegesRequi" +
+      "red\022P\n\020user_interaction\030\010 \001(\01626.google.c" +
+      "loud.securitycenter.v1.Cvssv3.UserIntera" +
+      "ction\022;\n\005scope\030\t \001(\0162,.google.cloud.secu" +
+      "ritycenter.v1.Cvssv3.Scope\022M\n\026confidenti" +
+      "ality_impact\030\n \001(\0162-.google.cloud.securi" +
+      "tycenter.v1.Cvssv3.Impact\022G\n\020integrity_i" +
+      "mpact\030\013 \001(\0162-.google.cloud.securitycente" +
+      "r.v1.Cvssv3.Impact\022J\n\023availability_impac" +
+      "t\030\014 \001(\0162-.google.cloud.securitycenter.v1" +
+      ".Cvssv3.Impact\"\231\001\n\014AttackVector\022\035\n\031ATTAC" +
+      "K_VECTOR_UNSPECIFIED\020\000\022\031\n\025ATTACK_VECTOR_" +
+      "NETWORK\020\001\022\032\n\026ATTACK_VECTOR_ADJACENT\020\002\022\027\n" +
+      "\023ATTACK_VECTOR_LOCAL\020\003\022\032\n\026ATTACK_VECTOR_" +
+      "PHYSICAL\020\004\"l\n\020AttackComplexity\022!\n\035ATTACK" +
+      "_COMPLEXITY_UNSPECIFIED\020\000\022\031\n\025ATTACK_COMP" +
+      "LEXITY_LOW\020\001\022\032\n\026ATTACK_COMPLEXITY_HIGH\020\002" +
+      "\"\222\001\n\022PrivilegesRequired\022#\n\037PRIVILEGES_RE" +
+      "QUIRED_UNSPECIFIED\020\000\022\034\n\030PRIVILEGES_REQUI" +
+      "RED_NONE\020\001\022\033\n\027PRIVILEGES_REQUIRED_LOW\020\002\022" +
+      "\034\n\030PRIVILEGES_REQUIRED_HIGH\020\003\"m\n\017UserInt" +
+      "eraction\022 \n\034USER_INTERACTION_UNSPECIFIED" +
+      "\020\000\022\031\n\025USER_INTERACTION_NONE\020\001\022\035\n\031USER_IN" +
+      "TERACTION_REQUIRED\020\002\"F\n\005Scope\022\025\n\021SCOPE_U" +
+      "NSPECIFIED\020\000\022\023\n\017SCOPE_UNCHANGED\020\001\022\021\n\rSCO" +
+      "PE_CHANGED\020\002\"R\n\006Impact\022\026\n\022IMPACT_UNSPECI" +
+      "FIED\020\000\022\017\n\013IMPACT_HIGH\020\001\022\016\n\nIMPACT_LOW\020\002\022" +
+      "\017\n\013IMPACT_NONE\020\003B\356\001\n\"com.google.cloud.se" +
+      "curitycenter.v1B\022VulnerabilityProtoP\001ZLg" +
+      "oogle.golang.org/genproto/googleapis/clo" +
+      "ud/securitycenter/v1;securitycenter\252\002\036Go" +
+      "ogle.Cloud.SecurityCenter.V1\312\002\036Google\\Cl" +
+      "oud\\SecurityCenter\\V1\352\002!Google::Cloud::S" +
+      "ecurityCenter::V1b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+        });
+    internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_securitycenter_v1_Vulnerability_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor,
+        new java.lang.String[] { "Cve", });
+    internal_static_google_cloud_securitycenter_v1_Cve_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_securitycenter_v1_Cve_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_securitycenter_v1_Cve_descriptor,
+        new java.lang.String[] { "Id", "References", "Cvssv3", "UpstreamFixAvailable", });
+    internal_static_google_cloud_securitycenter_v1_Reference_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_securitycenter_v1_Reference_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_securitycenter_v1_Reference_descriptor,
+        new java.lang.String[] { "Source", "Uri", });
+    internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_securitycenter_v1_Cvssv3_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor,
+        new java.lang.String[] { "BaseScore", "AttackVector", "AttackComplexity", "PrivilegesRequired", "UserInteraction", "Scope", "ConfidentialityImpact", "IntegrityImpact", "AvailabilityImpact", });
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/access.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/access.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/access.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/access.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/bigquery_export.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/bigquery_export.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/bigquery_export.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/bigquery_export.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/compliance.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/compliance.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/compliance.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/compliance.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/connection.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/connection.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/connection.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/connection.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/exfiltration.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/exfiltration.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/exfiltration.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/exfiltration.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/external_system.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/external_system.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/external_system.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/external_system.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/file.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/file.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/file.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/file.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/folder.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/folder.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/folder.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/folder.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/iam_binding.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/iam_binding.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/iam_binding.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/iam_binding.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/indicator.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/indicator.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/indicator.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/indicator.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mitre_attack.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mitre_attack.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mitre_attack.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mitre_attack.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mute_config.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mute_config.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mute_config.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mute_config.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_config.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_config.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_config.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_config.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/process.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/process.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/process.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/process.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/resource.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/resource.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/resource.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/resource.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto
diff --git a/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/vulnerability.proto b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/vulnerability.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/vulnerability.proto
rename to owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/vulnerability.proto
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/AsyncBulkMuteFindings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/AsyncBulkMuteFindings.java
new file mode 100644
index 000000000..c6442a81f
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/AsyncBulkMuteFindings.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_bulkmutefindings_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest;
+import com.google.cloud.securitycenter.v1.FolderName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.longrunning.Operation;
+
+public class AsyncBulkMuteFindings {
+
+  public static void main(String[] args) throws Exception {
+    asyncBulkMuteFindings();
+  }
+
+  public static void asyncBulkMuteFindings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      BulkMuteFindingsRequest request =
+          BulkMuteFindingsRequest.newBuilder()
+              .setParent(FolderName.of("[FOLDER]").toString())
+              .setFilter("filter-1274492040")
+              .setMuteAnnotation("muteAnnotation-2111042008")
+              .build();
+      ApiFuture future =
+          securityCenterClient.bulkMuteFindingsCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_bulkmutefindings_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/AsyncBulkMuteFindingsLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/AsyncBulkMuteFindingsLRO.java
new file mode 100644
index 000000000..59ec5b8c8
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/AsyncBulkMuteFindingsLRO.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_bulkmutefindings_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest;
+import com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse;
+import com.google.cloud.securitycenter.v1.FolderName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.Empty;
+
+public class AsyncBulkMuteFindingsLRO {
+
+  public static void main(String[] args) throws Exception {
+    asyncBulkMuteFindingsLRO();
+  }
+
+  public static void asyncBulkMuteFindingsLRO() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      BulkMuteFindingsRequest request =
+          BulkMuteFindingsRequest.newBuilder()
+              .setParent(FolderName.of("[FOLDER]").toString())
+              .setFilter("filter-1274492040")
+              .setMuteAnnotation("muteAnnotation-2111042008")
+              .build();
+      OperationFuture future =
+          securityCenterClient.bulkMuteFindingsOperationCallable().futureCall(request);
+      // Do something.
+      BulkMuteFindingsResponse response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_bulkmutefindings_lro_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindings.java
new file mode 100644
index 000000000..2a6f935d9
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindings.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_bulkmutefindings_sync]
+import com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest;
+import com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse;
+import com.google.cloud.securitycenter.v1.FolderName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncBulkMuteFindings {
+
+  public static void main(String[] args) throws Exception {
+    syncBulkMuteFindings();
+  }
+
+  public static void syncBulkMuteFindings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      BulkMuteFindingsRequest request =
+          BulkMuteFindingsRequest.newBuilder()
+              .setParent(FolderName.of("[FOLDER]").toString())
+              .setFilter("filter-1274492040")
+              .setMuteAnnotation("muteAnnotation-2111042008")
+              .build();
+      BulkMuteFindingsResponse response = securityCenterClient.bulkMuteFindingsAsync(request).get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_bulkmutefindings_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindingsResourcename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindingsResourcename.java
new file mode 100644
index 000000000..c4de3b477
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindingsResourcename.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_bulkmutefindings_resourcename_sync]
+import com.google.api.resourcenames.ResourceName;
+import com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse;
+import com.google.cloud.securitycenter.v1.FolderName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncBulkMuteFindingsResourcename {
+
+  public static void main(String[] args) throws Exception {
+    syncBulkMuteFindingsResourcename();
+  }
+
+  public static void syncBulkMuteFindingsResourcename() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ResourceName parent = FolderName.of("[FOLDER]");
+      BulkMuteFindingsResponse response = securityCenterClient.bulkMuteFindingsAsync(parent).get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_bulkmutefindings_resourcename_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindingsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindingsString.java
new file mode 100644
index 000000000..b439aa324
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindingsString.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_bulkmutefindings_string_sync]
+import com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse;
+import com.google.cloud.securitycenter.v1.FolderName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncBulkMuteFindingsString {
+
+  public static void main(String[] args) throws Exception {
+    syncBulkMuteFindingsString();
+  }
+
+  public static void syncBulkMuteFindingsString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = FolderName.of("[FOLDER]").toString();
+      BulkMuteFindingsResponse response = securityCenterClient.bulkMuteFindingsAsync(parent).get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_bulkmutefindings_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java
new file mode 100644
index 000000000..0303ea32a
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_create_setcredentialsprovider_sync]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SecurityCenterSettings;
+import com.google.cloud.securitycenter.v1.myCredentials;
+
+public class SyncCreateSetCredentialsProvider {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetCredentialsProvider();
+  }
+
+  public static void syncCreateSetCredentialsProvider() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    SecurityCenterSettings securityCenterSettings =
+        SecurityCenterSettings.newBuilder()
+            .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+            .build();
+    SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings);
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_create_setcredentialsprovider_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java
new file mode 100644
index 000000000..444ebf044
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_create_setcredentialsprovider1_sync]
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SecurityCenterSettings;
+
+public class SyncCreateSetCredentialsProvider1 {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetCredentialsProvider1();
+  }
+
+  public static void syncCreateSetCredentialsProvider1() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    SecurityCenterSettings securityCenterSettings =
+        SecurityCenterSettings.newBuilder()
+            .setTransportChannelProvider(
+                SecurityCenterSettings.defaultHttpJsonTransportProviderBuilder().build())
+            .build();
+    SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings);
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_create_setcredentialsprovider1_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetEndpoint.java
new file mode 100644
index 000000000..996234420
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetEndpoint.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_create_setendpoint_sync]
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SecurityCenterSettings;
+import com.google.cloud.securitycenter.v1.myEndpoint;
+
+public class SyncCreateSetEndpoint {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetEndpoint();
+  }
+
+  public static void syncCreateSetEndpoint() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    SecurityCenterSettings securityCenterSettings =
+        SecurityCenterSettings.newBuilder().setEndpoint(myEndpoint).build();
+    SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings);
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_create_setendpoint_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/AsyncCreateBigQueryExport.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/AsyncCreateBigQueryExport.java
new file mode 100644
index 000000000..944fae5bc
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/AsyncCreateBigQueryExport.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createbigqueryexport_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.BigQueryExport;
+import com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class AsyncCreateBigQueryExport {
+
+  public static void main(String[] args) throws Exception {
+    asyncCreateBigQueryExport();
+  }
+
+  public static void asyncCreateBigQueryExport() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      CreateBigQueryExportRequest request =
+          CreateBigQueryExportRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setBigQueryExport(BigQueryExport.newBuilder().build())
+              .setBigQueryExportId("bigQueryExportId1024198583")
+              .build();
+      ApiFuture future =
+          securityCenterClient.createBigQueryExportCallable().futureCall(request);
+      // Do something.
+      BigQueryExport response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createbigqueryexport_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExport.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExport.java
new file mode 100644
index 000000000..5a3e85856
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExport.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createbigqueryexport_sync]
+import com.google.cloud.securitycenter.v1.BigQueryExport;
+import com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncCreateBigQueryExport {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateBigQueryExport();
+  }
+
+  public static void syncCreateBigQueryExport() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      CreateBigQueryExportRequest request =
+          CreateBigQueryExportRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setBigQueryExport(BigQueryExport.newBuilder().build())
+              .setBigQueryExportId("bigQueryExportId1024198583")
+              .build();
+      BigQueryExport response = securityCenterClient.createBigQueryExport(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createbigqueryexport_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportFoldernameBigqueryexportString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportFoldernameBigqueryexportString.java
new file mode 100644
index 000000000..f30a70db0
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportFoldernameBigqueryexportString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createbigqueryexport_foldernamebigqueryexportstring_sync]
+import com.google.cloud.securitycenter.v1.BigQueryExport;
+import com.google.cloud.securitycenter.v1.FolderName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncCreateBigQueryExportFoldernameBigqueryexportString {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateBigQueryExportFoldernameBigqueryexportString();
+  }
+
+  public static void syncCreateBigQueryExportFoldernameBigqueryexportString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      FolderName parent = FolderName.of("[FOLDER]");
+      BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build();
+      String bigQueryExportId = "bigQueryExportId1024198583";
+      BigQueryExport response =
+          securityCenterClient.createBigQueryExport(parent, bigQueryExport, bigQueryExportId);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createbigqueryexport_foldernamebigqueryexportstring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportOrganizationnameBigqueryexportString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportOrganizationnameBigqueryexportString.java
new file mode 100644
index 000000000..22ebe1bb0
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportOrganizationnameBigqueryexportString.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createbigqueryexport_organizationnamebigqueryexportstring_sync]
+import com.google.cloud.securitycenter.v1.BigQueryExport;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncCreateBigQueryExportOrganizationnameBigqueryexportString {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateBigQueryExportOrganizationnameBigqueryexportString();
+  }
+
+  public static void syncCreateBigQueryExportOrganizationnameBigqueryexportString()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+      BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build();
+      String bigQueryExportId = "bigQueryExportId1024198583";
+      BigQueryExport response =
+          securityCenterClient.createBigQueryExport(parent, bigQueryExport, bigQueryExportId);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createbigqueryexport_organizationnamebigqueryexportstring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportProjectnameBigqueryexportString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportProjectnameBigqueryexportString.java
new file mode 100644
index 000000000..6488ecab7
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportProjectnameBigqueryexportString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createbigqueryexport_projectnamebigqueryexportstring_sync]
+import com.google.cloud.securitycenter.v1.BigQueryExport;
+import com.google.cloud.securitycenter.v1.ProjectName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncCreateBigQueryExportProjectnameBigqueryexportString {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateBigQueryExportProjectnameBigqueryexportString();
+  }
+
+  public static void syncCreateBigQueryExportProjectnameBigqueryexportString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ProjectName parent = ProjectName.of("[PROJECT]");
+      BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build();
+      String bigQueryExportId = "bigQueryExportId1024198583";
+      BigQueryExport response =
+          securityCenterClient.createBigQueryExport(parent, bigQueryExport, bigQueryExportId);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createbigqueryexport_projectnamebigqueryexportstring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportStringBigqueryexportString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportStringBigqueryexportString.java
new file mode 100644
index 000000000..ea7afc7e4
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportStringBigqueryexportString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createbigqueryexport_stringbigqueryexportstring_sync]
+import com.google.cloud.securitycenter.v1.BigQueryExport;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncCreateBigQueryExportStringBigqueryexportString {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateBigQueryExportStringBigqueryexportString();
+  }
+
+  public static void syncCreateBigQueryExportStringBigqueryexportString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = OrganizationName.of("[ORGANIZATION]").toString();
+      BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build();
+      String bigQueryExportId = "bigQueryExportId1024198583";
+      BigQueryExport response =
+          securityCenterClient.createBigQueryExport(parent, bigQueryExport, bigQueryExportId);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createbigqueryexport_stringbigqueryexportstring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/AsyncCreateFinding.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/AsyncCreateFinding.java
new file mode 100644
index 000000000..fdc81fbc3
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/AsyncCreateFinding.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createfinding_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.CreateFindingRequest;
+import com.google.cloud.securitycenter.v1.Finding;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+
+public class AsyncCreateFinding {
+
+  public static void main(String[] args) throws Exception {
+    asyncCreateFinding();
+  }
+
+  public static void asyncCreateFinding() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      CreateFindingRequest request =
+          CreateFindingRequest.newBuilder()
+              .setParent(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setFindingId("findingId439150212")
+              .setFinding(Finding.newBuilder().build())
+              .build();
+      ApiFuture future = securityCenterClient.createFindingCallable().futureCall(request);
+      // Do something.
+      Finding response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createfinding_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFinding.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFinding.java
new file mode 100644
index 000000000..1b85f4867
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFinding.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createfinding_sync]
+import com.google.cloud.securitycenter.v1.CreateFindingRequest;
+import com.google.cloud.securitycenter.v1.Finding;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+
+public class SyncCreateFinding {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateFinding();
+  }
+
+  public static void syncCreateFinding() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      CreateFindingRequest request =
+          CreateFindingRequest.newBuilder()
+              .setParent(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setFindingId("findingId439150212")
+              .setFinding(Finding.newBuilder().build())
+              .build();
+      Finding response = securityCenterClient.createFinding(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createfinding_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java
new file mode 100644
index 000000000..68f11acc8
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createfinding_sourcenamestringfinding_sync]
+import com.google.cloud.securitycenter.v1.Finding;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+
+public class SyncCreateFindingSourcenameStringFinding {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateFindingSourcenameStringFinding();
+  }
+
+  public static void syncCreateFindingSourcenameStringFinding() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+      String findingId = "findingId439150212";
+      Finding finding = Finding.newBuilder().build();
+      Finding response = securityCenterClient.createFinding(parent, findingId, finding);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createfinding_sourcenamestringfinding_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java
new file mode 100644
index 000000000..140966924
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createfinding_stringstringfinding_sync]
+import com.google.cloud.securitycenter.v1.Finding;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+
+public class SyncCreateFindingStringStringFinding {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateFindingStringStringFinding();
+  }
+
+  public static void syncCreateFindingStringStringFinding() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString();
+      String findingId = "findingId439150212";
+      Finding finding = Finding.newBuilder().build();
+      Finding response = securityCenterClient.createFinding(parent, findingId, finding);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createfinding_stringstringfinding_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/AsyncCreateMuteConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/AsyncCreateMuteConfig.java
new file mode 100644
index 000000000..57c32d9fe
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/AsyncCreateMuteConfig.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createmuteconfig_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.CreateMuteConfigRequest;
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class AsyncCreateMuteConfig {
+
+  public static void main(String[] args) throws Exception {
+    asyncCreateMuteConfig();
+  }
+
+  public static void asyncCreateMuteConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      CreateMuteConfigRequest request =
+          CreateMuteConfigRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setMuteConfig(MuteConfig.newBuilder().build())
+              .setMuteConfigId("muteConfigId1689669942")
+              .build();
+      ApiFuture future =
+          securityCenterClient.createMuteConfigCallable().futureCall(request);
+      // Do something.
+      MuteConfig response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createmuteconfig_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfig.java
new file mode 100644
index 000000000..c8711891c
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfig.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createmuteconfig_sync]
+import com.google.cloud.securitycenter.v1.CreateMuteConfigRequest;
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncCreateMuteConfig {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateMuteConfig();
+  }
+
+  public static void syncCreateMuteConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      CreateMuteConfigRequest request =
+          CreateMuteConfigRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setMuteConfig(MuteConfig.newBuilder().build())
+              .setMuteConfigId("muteConfigId1689669942")
+              .build();
+      MuteConfig response = securityCenterClient.createMuteConfig(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createmuteconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfig.java
new file mode 100644
index 000000000..28ed3bb0f
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfig.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createmuteconfig_foldernamemuteconfig_sync]
+import com.google.cloud.securitycenter.v1.FolderName;
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncCreateMuteConfigFoldernameMuteconfig {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateMuteConfigFoldernameMuteconfig();
+  }
+
+  public static void syncCreateMuteConfigFoldernameMuteconfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      FolderName parent = FolderName.of("[FOLDER]");
+      MuteConfig muteConfig = MuteConfig.newBuilder().build();
+      MuteConfig response = securityCenterClient.createMuteConfig(parent, muteConfig);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createmuteconfig_foldernamemuteconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfigString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfigString.java
new file mode 100644
index 000000000..514cd1d91
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfigString.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createmuteconfig_foldernamemuteconfigstring_sync]
+import com.google.cloud.securitycenter.v1.FolderName;
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncCreateMuteConfigFoldernameMuteconfigString {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateMuteConfigFoldernameMuteconfigString();
+  }
+
+  public static void syncCreateMuteConfigFoldernameMuteconfigString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      FolderName parent = FolderName.of("[FOLDER]");
+      MuteConfig muteConfig = MuteConfig.newBuilder().build();
+      String muteConfigId = "muteConfigId1689669942";
+      MuteConfig response = securityCenterClient.createMuteConfig(parent, muteConfig, muteConfigId);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createmuteconfig_foldernamemuteconfigstring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfig.java
new file mode 100644
index 000000000..89c4e8b64
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfig.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createmuteconfig_organizationnamemuteconfig_sync]
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncCreateMuteConfigOrganizationnameMuteconfig {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateMuteConfigOrganizationnameMuteconfig();
+  }
+
+  public static void syncCreateMuteConfigOrganizationnameMuteconfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+      MuteConfig muteConfig = MuteConfig.newBuilder().build();
+      MuteConfig response = securityCenterClient.createMuteConfig(parent, muteConfig);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createmuteconfig_organizationnamemuteconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfigString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfigString.java
new file mode 100644
index 000000000..5148cacc0
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfigString.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createmuteconfig_organizationnamemuteconfigstring_sync]
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncCreateMuteConfigOrganizationnameMuteconfigString {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateMuteConfigOrganizationnameMuteconfigString();
+  }
+
+  public static void syncCreateMuteConfigOrganizationnameMuteconfigString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+      MuteConfig muteConfig = MuteConfig.newBuilder().build();
+      String muteConfigId = "muteConfigId1689669942";
+      MuteConfig response = securityCenterClient.createMuteConfig(parent, muteConfig, muteConfigId);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createmuteconfig_organizationnamemuteconfigstring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfig.java
new file mode 100644
index 000000000..ca1ba18a6
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfig.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createmuteconfig_projectnamemuteconfig_sync]
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.ProjectName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncCreateMuteConfigProjectnameMuteconfig {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateMuteConfigProjectnameMuteconfig();
+  }
+
+  public static void syncCreateMuteConfigProjectnameMuteconfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ProjectName parent = ProjectName.of("[PROJECT]");
+      MuteConfig muteConfig = MuteConfig.newBuilder().build();
+      MuteConfig response = securityCenterClient.createMuteConfig(parent, muteConfig);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createmuteconfig_projectnamemuteconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfigString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfigString.java
new file mode 100644
index 000000000..ec328ffad
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfigString.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createmuteconfig_projectnamemuteconfigstring_sync]
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.ProjectName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncCreateMuteConfigProjectnameMuteconfigString {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateMuteConfigProjectnameMuteconfigString();
+  }
+
+  public static void syncCreateMuteConfigProjectnameMuteconfigString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ProjectName parent = ProjectName.of("[PROJECT]");
+      MuteConfig muteConfig = MuteConfig.newBuilder().build();
+      String muteConfigId = "muteConfigId1689669942";
+      MuteConfig response = securityCenterClient.createMuteConfig(parent, muteConfig, muteConfigId);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createmuteconfig_projectnamemuteconfigstring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigStringMuteconfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigStringMuteconfig.java
new file mode 100644
index 000000000..35ef03af3
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigStringMuteconfig.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createmuteconfig_stringmuteconfig_sync]
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncCreateMuteConfigStringMuteconfig {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateMuteConfigStringMuteconfig();
+  }
+
+  public static void syncCreateMuteConfigStringMuteconfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = OrganizationName.of("[ORGANIZATION]").toString();
+      MuteConfig muteConfig = MuteConfig.newBuilder().build();
+      MuteConfig response = securityCenterClient.createMuteConfig(parent, muteConfig);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createmuteconfig_stringmuteconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigStringMuteconfigString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigStringMuteconfigString.java
new file mode 100644
index 000000000..dcc0b2caf
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigStringMuteconfigString.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createmuteconfig_stringmuteconfigstring_sync]
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncCreateMuteConfigStringMuteconfigString {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateMuteConfigStringMuteconfigString();
+  }
+
+  public static void syncCreateMuteConfigStringMuteconfigString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = OrganizationName.of("[ORGANIZATION]").toString();
+      MuteConfig muteConfig = MuteConfig.newBuilder().build();
+      String muteConfigId = "muteConfigId1689669942";
+      MuteConfig response = securityCenterClient.createMuteConfig(parent, muteConfig, muteConfigId);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createmuteconfig_stringmuteconfigstring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/AsyncCreateNotificationConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/AsyncCreateNotificationConfig.java
new file mode 100644
index 000000000..e180cb232
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/AsyncCreateNotificationConfig.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createnotificationconfig_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest;
+import com.google.cloud.securitycenter.v1.NotificationConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class AsyncCreateNotificationConfig {
+
+  public static void main(String[] args) throws Exception {
+    asyncCreateNotificationConfig();
+  }
+
+  public static void asyncCreateNotificationConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      CreateNotificationConfigRequest request =
+          CreateNotificationConfigRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setConfigId("configId-580140035")
+              .setNotificationConfig(NotificationConfig.newBuilder().build())
+              .build();
+      ApiFuture future =
+          securityCenterClient.createNotificationConfigCallable().futureCall(request);
+      // Do something.
+      NotificationConfig response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createnotificationconfig_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfig.java
new file mode 100644
index 000000000..c6547af1d
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfig.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createnotificationconfig_sync]
+import com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest;
+import com.google.cloud.securitycenter.v1.NotificationConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncCreateNotificationConfig {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateNotificationConfig();
+  }
+
+  public static void syncCreateNotificationConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      CreateNotificationConfigRequest request =
+          CreateNotificationConfigRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setConfigId("configId-580140035")
+              .setNotificationConfig(NotificationConfig.newBuilder().build())
+              .build();
+      NotificationConfig response = securityCenterClient.createNotificationConfig(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createnotificationconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java
new file mode 100644
index 000000000..edcb7cdfb
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createnotificationconfig_organizationnamenotificationconfig_sync]
+import com.google.cloud.securitycenter.v1.NotificationConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncCreateNotificationConfigOrganizationnameNotificationconfig {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateNotificationConfigOrganizationnameNotificationconfig();
+  }
+
+  public static void syncCreateNotificationConfigOrganizationnameNotificationconfig()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+      NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
+      NotificationConfig response =
+          securityCenterClient.createNotificationConfig(parent, notificationConfig);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createnotificationconfig_organizationnamenotificationconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java
new file mode 100644
index 000000000..bd283204e
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createnotificationconfig_organizationnamestringnotificationconfig_sync]
+import com.google.cloud.securitycenter.v1.NotificationConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncCreateNotificationConfigOrganizationnameStringNotificationconfig {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateNotificationConfigOrganizationnameStringNotificationconfig();
+  }
+
+  public static void syncCreateNotificationConfigOrganizationnameStringNotificationconfig()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+      String configId = "configId-580140035";
+      NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
+      NotificationConfig response =
+          securityCenterClient.createNotificationConfig(parent, configId, notificationConfig);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createnotificationconfig_organizationnamestringnotificationconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java
new file mode 100644
index 000000000..44f21752a
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createnotificationconfig_stringnotificationconfig_sync]
+import com.google.cloud.securitycenter.v1.NotificationConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncCreateNotificationConfigStringNotificationconfig {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateNotificationConfigStringNotificationconfig();
+  }
+
+  public static void syncCreateNotificationConfigStringNotificationconfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = OrganizationName.of("[ORGANIZATION]").toString();
+      NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
+      NotificationConfig response =
+          securityCenterClient.createNotificationConfig(parent, notificationConfig);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createnotificationconfig_stringnotificationconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java
new file mode 100644
index 000000000..8e27ff79f
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createnotificationconfig_stringstringnotificationconfig_sync]
+import com.google.cloud.securitycenter.v1.NotificationConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncCreateNotificationConfigStringStringNotificationconfig {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateNotificationConfigStringStringNotificationconfig();
+  }
+
+  public static void syncCreateNotificationConfigStringStringNotificationconfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = OrganizationName.of("[ORGANIZATION]").toString();
+      String configId = "configId-580140035";
+      NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
+      NotificationConfig response =
+          securityCenterClient.createNotificationConfig(parent, configId, notificationConfig);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createnotificationconfig_stringstringnotificationconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/AsyncCreateSource.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/AsyncCreateSource.java
new file mode 100644
index 000000000..2e2d2bcf0
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/AsyncCreateSource.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createsource_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.CreateSourceRequest;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.Source;
+
+public class AsyncCreateSource {
+
+  public static void main(String[] args) throws Exception {
+    asyncCreateSource();
+  }
+
+  public static void asyncCreateSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      CreateSourceRequest request =
+          CreateSourceRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setSource(Source.newBuilder().build())
+              .build();
+      ApiFuture future = securityCenterClient.createSourceCallable().futureCall(request);
+      // Do something.
+      Source response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createsource_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSource.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSource.java
new file mode 100644
index 000000000..2eddbe703
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSource.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createsource_sync]
+import com.google.cloud.securitycenter.v1.CreateSourceRequest;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.Source;
+
+public class SyncCreateSource {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSource();
+  }
+
+  public static void syncCreateSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      CreateSourceRequest request =
+          CreateSourceRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setSource(Source.newBuilder().build())
+              .build();
+      Source response = securityCenterClient.createSource(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createsource_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java
new file mode 100644
index 000000000..9a9a94d4a
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createsource_organizationnamesource_sync]
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.Source;
+
+public class SyncCreateSourceOrganizationnameSource {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSourceOrganizationnameSource();
+  }
+
+  public static void syncCreateSourceOrganizationnameSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+      Source source = Source.newBuilder().build();
+      Source response = securityCenterClient.createSource(parent, source);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createsource_organizationnamesource_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSourceStringSource.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSourceStringSource.java
new file mode 100644
index 000000000..f3d5cfd39
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSourceStringSource.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_createsource_stringsource_sync]
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.Source;
+
+public class SyncCreateSourceStringSource {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSourceStringSource();
+  }
+
+  public static void syncCreateSourceStringSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = OrganizationName.of("[ORGANIZATION]").toString();
+      Source source = Source.newBuilder().build();
+      Source response = securityCenterClient.createSource(parent, source);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_createsource_stringsource_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/AsyncDeleteBigQueryExport.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/AsyncDeleteBigQueryExport.java
new file mode 100644
index 000000000..865d5cc4e
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/AsyncDeleteBigQueryExport.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_deletebigqueryexport_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.BigQueryExportName;
+import com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.Empty;
+
+public class AsyncDeleteBigQueryExport {
+
+  public static void main(String[] args) throws Exception {
+    asyncDeleteBigQueryExport();
+  }
+
+  public static void asyncDeleteBigQueryExport() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      DeleteBigQueryExportRequest request =
+          DeleteBigQueryExportRequest.newBuilder()
+              .setName(
+                  BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]")
+                      .toString())
+              .build();
+      ApiFuture future =
+          securityCenterClient.deleteBigQueryExportCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_deletebigqueryexport_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExport.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExport.java
new file mode 100644
index 000000000..8cc22eda3
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExport.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_deletebigqueryexport_sync]
+import com.google.cloud.securitycenter.v1.BigQueryExportName;
+import com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteBigQueryExport {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteBigQueryExport();
+  }
+
+  public static void syncDeleteBigQueryExport() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      DeleteBigQueryExportRequest request =
+          DeleteBigQueryExportRequest.newBuilder()
+              .setName(
+                  BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]")
+                      .toString())
+              .build();
+      securityCenterClient.deleteBigQueryExport(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_deletebigqueryexport_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportBigqueryexportname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportBigqueryexportname.java
new file mode 100644
index 000000000..52fcdd720
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportBigqueryexportname.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_deletebigqueryexport_bigqueryexportname_sync]
+import com.google.cloud.securitycenter.v1.BigQueryExportName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteBigQueryExportBigqueryexportname {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteBigQueryExportBigqueryexportname();
+  }
+
+  public static void syncDeleteBigQueryExportBigqueryexportname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      BigQueryExportName name =
+          BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]");
+      securityCenterClient.deleteBigQueryExport(name);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_deletebigqueryexport_bigqueryexportname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportString.java
new file mode 100644
index 000000000..e45486337
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportString.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_deletebigqueryexport_string_sync]
+import com.google.cloud.securitycenter.v1.BigQueryExportName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteBigQueryExportString {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteBigQueryExportString();
+  }
+
+  public static void syncDeleteBigQueryExportString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String name =
+          BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]").toString();
+      securityCenterClient.deleteBigQueryExport(name);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_deletebigqueryexport_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/AsyncDeleteMuteConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/AsyncDeleteMuteConfig.java
new file mode 100644
index 000000000..e04486687
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/AsyncDeleteMuteConfig.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_deletemuteconfig_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest;
+import com.google.cloud.securitycenter.v1.MuteConfigName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.Empty;
+
+public class AsyncDeleteMuteConfig {
+
+  public static void main(String[] args) throws Exception {
+    asyncDeleteMuteConfig();
+  }
+
+  public static void asyncDeleteMuteConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      DeleteMuteConfigRequest request =
+          DeleteMuteConfigRequest.newBuilder()
+              .setName(
+                  MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]")
+                      .toString())
+              .build();
+      ApiFuture future = securityCenterClient.deleteMuteConfigCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_deletemuteconfig_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfig.java
new file mode 100644
index 000000000..bb4c5559e
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfig.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_deletemuteconfig_sync]
+import com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest;
+import com.google.cloud.securitycenter.v1.MuteConfigName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteMuteConfig {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteMuteConfig();
+  }
+
+  public static void syncDeleteMuteConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      DeleteMuteConfigRequest request =
+          DeleteMuteConfigRequest.newBuilder()
+              .setName(
+                  MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]")
+                      .toString())
+              .build();
+      securityCenterClient.deleteMuteConfig(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_deletemuteconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigMuteconfigname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigMuteconfigname.java
new file mode 100644
index 000000000..2e5c46b8d
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigMuteconfigname.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_deletemuteconfig_muteconfigname_sync]
+import com.google.cloud.securitycenter.v1.MuteConfigName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteMuteConfigMuteconfigname {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteMuteConfigMuteconfigname();
+  }
+
+  public static void syncDeleteMuteConfigMuteconfigname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      MuteConfigName name =
+          MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]");
+      securityCenterClient.deleteMuteConfig(name);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_deletemuteconfig_muteconfigname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigString.java
new file mode 100644
index 000000000..c61122977
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigString.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_deletemuteconfig_string_sync]
+import com.google.cloud.securitycenter.v1.MuteConfigName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteMuteConfigString {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteMuteConfigString();
+  }
+
+  public static void syncDeleteMuteConfigString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String name =
+          MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]").toString();
+      securityCenterClient.deleteMuteConfig(name);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_deletemuteconfig_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/AsyncDeleteNotificationConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/AsyncDeleteNotificationConfig.java
new file mode 100644
index 000000000..a2569af3d
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/AsyncDeleteNotificationConfig.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_deletenotificationconfig_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest;
+import com.google.cloud.securitycenter.v1.NotificationConfigName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.Empty;
+
+public class AsyncDeleteNotificationConfig {
+
+  public static void main(String[] args) throws Exception {
+    asyncDeleteNotificationConfig();
+  }
+
+  public static void asyncDeleteNotificationConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      DeleteNotificationConfigRequest request =
+          DeleteNotificationConfigRequest.newBuilder()
+              .setName(
+                  NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString())
+              .build();
+      ApiFuture future =
+          securityCenterClient.deleteNotificationConfigCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_deletenotificationconfig_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java
new file mode 100644
index 000000000..91b0cd3f4
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_deletenotificationconfig_sync]
+import com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest;
+import com.google.cloud.securitycenter.v1.NotificationConfigName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteNotificationConfig {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteNotificationConfig();
+  }
+
+  public static void syncDeleteNotificationConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      DeleteNotificationConfigRequest request =
+          DeleteNotificationConfigRequest.newBuilder()
+              .setName(
+                  NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString())
+              .build();
+      securityCenterClient.deleteNotificationConfig(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_deletenotificationconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java
new file mode 100644
index 000000000..cc1c094c6
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_deletenotificationconfig_notificationconfigname_sync]
+import com.google.cloud.securitycenter.v1.NotificationConfigName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteNotificationConfigNotificationconfigname {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteNotificationConfigNotificationconfigname();
+  }
+
+  public static void syncDeleteNotificationConfigNotificationconfigname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      NotificationConfigName name =
+          NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]");
+      securityCenterClient.deleteNotificationConfig(name);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_deletenotificationconfig_notificationconfigname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java
new file mode 100644
index 000000000..55d9040a3
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_deletenotificationconfig_string_sync]
+import com.google.cloud.securitycenter.v1.NotificationConfigName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteNotificationConfigString {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteNotificationConfigString();
+  }
+
+  public static void syncDeleteNotificationConfigString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String name = NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString();
+      securityCenterClient.deleteNotificationConfig(name);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_deletenotificationconfig_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/AsyncGetBigQueryExport.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/AsyncGetBigQueryExport.java
new file mode 100644
index 000000000..abcc7c333
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/AsyncGetBigQueryExport.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getbigqueryexport_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.BigQueryExport;
+import com.google.cloud.securitycenter.v1.BigQueryExportName;
+import com.google.cloud.securitycenter.v1.GetBigQueryExportRequest;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class AsyncGetBigQueryExport {
+
+  public static void main(String[] args) throws Exception {
+    asyncGetBigQueryExport();
+  }
+
+  public static void asyncGetBigQueryExport() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GetBigQueryExportRequest request =
+          GetBigQueryExportRequest.newBuilder()
+              .setName(
+                  BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]")
+                      .toString())
+              .build();
+      ApiFuture future =
+          securityCenterClient.getBigQueryExportCallable().futureCall(request);
+      // Do something.
+      BigQueryExport response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getbigqueryexport_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExport.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExport.java
new file mode 100644
index 000000000..d84f188fa
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExport.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getbigqueryexport_sync]
+import com.google.cloud.securitycenter.v1.BigQueryExport;
+import com.google.cloud.securitycenter.v1.BigQueryExportName;
+import com.google.cloud.securitycenter.v1.GetBigQueryExportRequest;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncGetBigQueryExport {
+
+  public static void main(String[] args) throws Exception {
+    syncGetBigQueryExport();
+  }
+
+  public static void syncGetBigQueryExport() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GetBigQueryExportRequest request =
+          GetBigQueryExportRequest.newBuilder()
+              .setName(
+                  BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]")
+                      .toString())
+              .build();
+      BigQueryExport response = securityCenterClient.getBigQueryExport(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getbigqueryexport_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExportBigqueryexportname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExportBigqueryexportname.java
new file mode 100644
index 000000000..7dd4b0b6b
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExportBigqueryexportname.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getbigqueryexport_bigqueryexportname_sync]
+import com.google.cloud.securitycenter.v1.BigQueryExport;
+import com.google.cloud.securitycenter.v1.BigQueryExportName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncGetBigQueryExportBigqueryexportname {
+
+  public static void main(String[] args) throws Exception {
+    syncGetBigQueryExportBigqueryexportname();
+  }
+
+  public static void syncGetBigQueryExportBigqueryexportname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      BigQueryExportName name =
+          BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]");
+      BigQueryExport response = securityCenterClient.getBigQueryExport(name);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getbigqueryexport_bigqueryexportname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExportString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExportString.java
new file mode 100644
index 000000000..6181d5736
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExportString.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getbigqueryexport_string_sync]
+import com.google.cloud.securitycenter.v1.BigQueryExport;
+import com.google.cloud.securitycenter.v1.BigQueryExportName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncGetBigQueryExportString {
+
+  public static void main(String[] args) throws Exception {
+    syncGetBigQueryExportString();
+  }
+
+  public static void syncGetBigQueryExportString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String name =
+          BigQueryExportName.ofOrganizationExportName("[ORGANIZATION]", "[EXPORT]").toString();
+      BigQueryExport response = securityCenterClient.getBigQueryExport(name);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getbigqueryexport_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java
new file mode 100644
index 000000000..ab71ffe61
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getiampolicy_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+
+public class AsyncGetIamPolicy {
+
+  public static void main(String[] args) throws Exception {
+    asyncGetIamPolicy();
+  }
+
+  public static void asyncGetIamPolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      ApiFuture future = securityCenterClient.getIamPolicyCallable().futureCall(request);
+      // Do something.
+      Policy response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getiampolicy_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java
new file mode 100644
index 000000000..b31046286
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getiampolicy_sync]
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+
+public class SyncGetIamPolicy {
+
+  public static void main(String[] args) throws Exception {
+    syncGetIamPolicy();
+  }
+
+  public static void syncGetIamPolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      Policy response = securityCenterClient.getIamPolicy(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getiampolicy_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java
new file mode 100644
index 000000000..bd0143685
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getiampolicy_resourcename_sync]
+import com.google.api.resourcenames.ResourceName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+import com.google.iam.v1.Policy;
+
+public class SyncGetIamPolicyResourcename {
+
+  public static void main(String[] args) throws Exception {
+    syncGetIamPolicyResourcename();
+  }
+
+  public static void syncGetIamPolicyResourcename() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+      Policy response = securityCenterClient.getIamPolicy(resource);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getiampolicy_resourcename_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java
new file mode 100644
index 000000000..3db986cd8
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getiampolicy_string_sync]
+import com.google.cloud.securitycenter.v1.FolderName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.iam.v1.Policy;
+
+public class SyncGetIamPolicyString {
+
+  public static void main(String[] args) throws Exception {
+    syncGetIamPolicyString();
+  }
+
+  public static void syncGetIamPolicyString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String resource = FolderName.of("[FOLDER]").toString();
+      Policy response = securityCenterClient.getIamPolicy(resource);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getiampolicy_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/AsyncGetMuteConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/AsyncGetMuteConfig.java
new file mode 100644
index 000000000..c5ddeda13
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/AsyncGetMuteConfig.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getmuteconfig_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.GetMuteConfigRequest;
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.MuteConfigName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class AsyncGetMuteConfig {
+
+  public static void main(String[] args) throws Exception {
+    asyncGetMuteConfig();
+  }
+
+  public static void asyncGetMuteConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GetMuteConfigRequest request =
+          GetMuteConfigRequest.newBuilder()
+              .setName(
+                  MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]")
+                      .toString())
+              .build();
+      ApiFuture future =
+          securityCenterClient.getMuteConfigCallable().futureCall(request);
+      // Do something.
+      MuteConfig response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getmuteconfig_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfig.java
new file mode 100644
index 000000000..9b9292da7
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfig.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getmuteconfig_sync]
+import com.google.cloud.securitycenter.v1.GetMuteConfigRequest;
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.MuteConfigName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncGetMuteConfig {
+
+  public static void main(String[] args) throws Exception {
+    syncGetMuteConfig();
+  }
+
+  public static void syncGetMuteConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GetMuteConfigRequest request =
+          GetMuteConfigRequest.newBuilder()
+              .setName(
+                  MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]")
+                      .toString())
+              .build();
+      MuteConfig response = securityCenterClient.getMuteConfig(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getmuteconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfigMuteconfigname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfigMuteconfigname.java
new file mode 100644
index 000000000..c14b7e199
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfigMuteconfigname.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getmuteconfig_muteconfigname_sync]
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.MuteConfigName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncGetMuteConfigMuteconfigname {
+
+  public static void main(String[] args) throws Exception {
+    syncGetMuteConfigMuteconfigname();
+  }
+
+  public static void syncGetMuteConfigMuteconfigname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      MuteConfigName name =
+          MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]");
+      MuteConfig response = securityCenterClient.getMuteConfig(name);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getmuteconfig_muteconfigname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfigString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfigString.java
new file mode 100644
index 000000000..cad370c97
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfigString.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getmuteconfig_string_sync]
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.MuteConfigName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncGetMuteConfigString {
+
+  public static void main(String[] args) throws Exception {
+    syncGetMuteConfigString();
+  }
+
+  public static void syncGetMuteConfigString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String name =
+          MuteConfigName.ofOrganizationMuteConfigName("[ORGANIZATION]", "[MUTE_CONFIG]").toString();
+      MuteConfig response = securityCenterClient.getMuteConfig(name);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getmuteconfig_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/AsyncGetNotificationConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/AsyncGetNotificationConfig.java
new file mode 100644
index 000000000..47acef37f
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/AsyncGetNotificationConfig.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getnotificationconfig_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.GetNotificationConfigRequest;
+import com.google.cloud.securitycenter.v1.NotificationConfig;
+import com.google.cloud.securitycenter.v1.NotificationConfigName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class AsyncGetNotificationConfig {
+
+  public static void main(String[] args) throws Exception {
+    asyncGetNotificationConfig();
+  }
+
+  public static void asyncGetNotificationConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GetNotificationConfigRequest request =
+          GetNotificationConfigRequest.newBuilder()
+              .setName(
+                  NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString())
+              .build();
+      ApiFuture future =
+          securityCenterClient.getNotificationConfigCallable().futureCall(request);
+      // Do something.
+      NotificationConfig response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getnotificationconfig_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfig.java
new file mode 100644
index 000000000..2bb7672b1
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfig.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getnotificationconfig_sync]
+import com.google.cloud.securitycenter.v1.GetNotificationConfigRequest;
+import com.google.cloud.securitycenter.v1.NotificationConfig;
+import com.google.cloud.securitycenter.v1.NotificationConfigName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncGetNotificationConfig {
+
+  public static void main(String[] args) throws Exception {
+    syncGetNotificationConfig();
+  }
+
+  public static void syncGetNotificationConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GetNotificationConfigRequest request =
+          GetNotificationConfigRequest.newBuilder()
+              .setName(
+                  NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString())
+              .build();
+      NotificationConfig response = securityCenterClient.getNotificationConfig(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getnotificationconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java
new file mode 100644
index 000000000..507e2bad8
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getnotificationconfig_notificationconfigname_sync]
+import com.google.cloud.securitycenter.v1.NotificationConfig;
+import com.google.cloud.securitycenter.v1.NotificationConfigName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncGetNotificationConfigNotificationconfigname {
+
+  public static void main(String[] args) throws Exception {
+    syncGetNotificationConfigNotificationconfigname();
+  }
+
+  public static void syncGetNotificationConfigNotificationconfigname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      NotificationConfigName name =
+          NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]");
+      NotificationConfig response = securityCenterClient.getNotificationConfig(name);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getnotificationconfig_notificationconfigname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigString.java
new file mode 100644
index 000000000..9969bd782
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigString.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getnotificationconfig_string_sync]
+import com.google.cloud.securitycenter.v1.NotificationConfig;
+import com.google.cloud.securitycenter.v1.NotificationConfigName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncGetNotificationConfigString {
+
+  public static void main(String[] args) throws Exception {
+    syncGetNotificationConfigString();
+  }
+
+  public static void syncGetNotificationConfigString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String name = NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString();
+      NotificationConfig response = securityCenterClient.getNotificationConfig(name);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getnotificationconfig_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java
new file mode 100644
index 000000000..69bb59b2a
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getorganizationsettings_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest;
+import com.google.cloud.securitycenter.v1.OrganizationSettings;
+import com.google.cloud.securitycenter.v1.OrganizationSettingsName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class AsyncGetOrganizationSettings {
+
+  public static void main(String[] args) throws Exception {
+    asyncGetOrganizationSettings();
+  }
+
+  public static void asyncGetOrganizationSettings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GetOrganizationSettingsRequest request =
+          GetOrganizationSettingsRequest.newBuilder()
+              .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString())
+              .build();
+      ApiFuture future =
+          securityCenterClient.getOrganizationSettingsCallable().futureCall(request);
+      // Do something.
+      OrganizationSettings response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getorganizationsettings_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java
new file mode 100644
index 000000000..941a0314d
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getorganizationsettings_sync]
+import com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest;
+import com.google.cloud.securitycenter.v1.OrganizationSettings;
+import com.google.cloud.securitycenter.v1.OrganizationSettingsName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncGetOrganizationSettings {
+
+  public static void main(String[] args) throws Exception {
+    syncGetOrganizationSettings();
+  }
+
+  public static void syncGetOrganizationSettings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GetOrganizationSettingsRequest request =
+          GetOrganizationSettingsRequest.newBuilder()
+              .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString())
+              .build();
+      OrganizationSettings response = securityCenterClient.getOrganizationSettings(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getorganizationsettings_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java
new file mode 100644
index 000000000..dc5076afa
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getorganizationsettings_organizationsettingsname_sync]
+import com.google.cloud.securitycenter.v1.OrganizationSettings;
+import com.google.cloud.securitycenter.v1.OrganizationSettingsName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncGetOrganizationSettingsOrganizationsettingsname {
+
+  public static void main(String[] args) throws Exception {
+    syncGetOrganizationSettingsOrganizationsettingsname();
+  }
+
+  public static void syncGetOrganizationSettingsOrganizationsettingsname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationSettingsName name = OrganizationSettingsName.of("[ORGANIZATION]");
+      OrganizationSettings response = securityCenterClient.getOrganizationSettings(name);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getorganizationsettings_organizationsettingsname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java
new file mode 100644
index 000000000..7c6cde6ad
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getorganizationsettings_string_sync]
+import com.google.cloud.securitycenter.v1.OrganizationSettings;
+import com.google.cloud.securitycenter.v1.OrganizationSettingsName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncGetOrganizationSettingsString {
+
+  public static void main(String[] args) throws Exception {
+    syncGetOrganizationSettingsString();
+  }
+
+  public static void syncGetOrganizationSettingsString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String name = OrganizationSettingsName.of("[ORGANIZATION]").toString();
+      OrganizationSettings response = securityCenterClient.getOrganizationSettings(name);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getorganizationsettings_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/AsyncGetSource.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/AsyncGetSource.java
new file mode 100644
index 000000000..226f27795
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/AsyncGetSource.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getsource_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.GetSourceRequest;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.Source;
+import com.google.cloud.securitycenter.v1.SourceName;
+
+public class AsyncGetSource {
+
+  public static void main(String[] args) throws Exception {
+    asyncGetSource();
+  }
+
+  public static void asyncGetSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GetSourceRequest request =
+          GetSourceRequest.newBuilder()
+              .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .build();
+      ApiFuture future = securityCenterClient.getSourceCallable().futureCall(request);
+      // Do something.
+      Source response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getsource_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSource.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSource.java
new file mode 100644
index 000000000..c32bc11c6
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSource.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getsource_sync]
+import com.google.cloud.securitycenter.v1.GetSourceRequest;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.Source;
+import com.google.cloud.securitycenter.v1.SourceName;
+
+public class SyncGetSource {
+
+  public static void main(String[] args) throws Exception {
+    syncGetSource();
+  }
+
+  public static void syncGetSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GetSourceRequest request =
+          GetSourceRequest.newBuilder()
+              .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .build();
+      Source response = securityCenterClient.getSource(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getsource_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSourceSourcename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSourceSourcename.java
new file mode 100644
index 000000000..3b9ecdbc1
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSourceSourcename.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getsource_sourcename_sync]
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.Source;
+import com.google.cloud.securitycenter.v1.SourceName;
+
+public class SyncGetSourceSourcename {
+
+  public static void main(String[] args) throws Exception {
+    syncGetSourceSourcename();
+  }
+
+  public static void syncGetSourceSourcename() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SourceName name = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+      Source response = securityCenterClient.getSource(name);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getsource_sourcename_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSourceString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSourceString.java
new file mode 100644
index 000000000..c2e7f94fa
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSourceString.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_getsource_string_sync]
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.Source;
+import com.google.cloud.securitycenter.v1.SourceName;
+
+public class SyncGetSourceString {
+
+  public static void main(String[] args) throws Exception {
+    syncGetSourceString();
+  }
+
+  public static void syncGetSourceString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String name = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString();
+      Source response = securityCenterClient.getSource(name);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_getsource_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/AsyncGroupAssets.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/AsyncGroupAssets.java
new file mode 100644
index 000000000..895702ced
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/AsyncGroupAssets.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_groupassets_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.GroupAssetsRequest;
+import com.google.cloud.securitycenter.v1.GroupResult;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.Duration;
+import com.google.protobuf.Timestamp;
+
+public class AsyncGroupAssets {
+
+  public static void main(String[] args) throws Exception {
+    asyncGroupAssets();
+  }
+
+  public static void asyncGroupAssets() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GroupAssetsRequest request =
+          GroupAssetsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setFilter("filter-1274492040")
+              .setGroupBy("groupBy293428022")
+              .setCompareDuration(Duration.newBuilder().build())
+              .setReadTime(Timestamp.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      ApiFuture future =
+          securityCenterClient.groupAssetsPagedCallable().futureCall(request);
+      // Do something.
+      for (GroupResult element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_groupassets_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java
new file mode 100644
index 000000000..e00f13d02
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java
@@ -0,0 +1,64 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_groupassets_paged_async]
+import com.google.cloud.securitycenter.v1.GroupAssetsRequest;
+import com.google.cloud.securitycenter.v1.GroupAssetsResponse;
+import com.google.cloud.securitycenter.v1.GroupResult;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.common.base.Strings;
+import com.google.protobuf.Duration;
+import com.google.protobuf.Timestamp;
+
+public class AsyncGroupAssetsPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncGroupAssetsPaged();
+  }
+
+  public static void asyncGroupAssetsPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GroupAssetsRequest request =
+          GroupAssetsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setFilter("filter-1274492040")
+              .setGroupBy("groupBy293428022")
+              .setCompareDuration(Duration.newBuilder().build())
+              .setReadTime(Timestamp.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      while (true) {
+        GroupAssetsResponse response = securityCenterClient.groupAssetsCallable().call(request);
+        for (GroupResult element : response.getGroupByResultsList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_groupassets_paged_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/SyncGroupAssets.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/SyncGroupAssets.java
new file mode 100644
index 000000000..3a2053188
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/SyncGroupAssets.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_groupassets_sync]
+import com.google.cloud.securitycenter.v1.GroupAssetsRequest;
+import com.google.cloud.securitycenter.v1.GroupResult;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.Duration;
+import com.google.protobuf.Timestamp;
+
+public class SyncGroupAssets {
+
+  public static void main(String[] args) throws Exception {
+    syncGroupAssets();
+  }
+
+  public static void syncGroupAssets() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GroupAssetsRequest request =
+          GroupAssetsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setFilter("filter-1274492040")
+              .setGroupBy("groupBy293428022")
+              .setCompareDuration(Duration.newBuilder().build())
+              .setReadTime(Timestamp.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      for (GroupResult element : securityCenterClient.groupAssets(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_groupassets_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/AsyncGroupFindings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/AsyncGroupFindings.java
new file mode 100644
index 000000000..c13adfe19
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/AsyncGroupFindings.java
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_groupfindings_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.GroupFindingsRequest;
+import com.google.cloud.securitycenter.v1.GroupResult;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+import com.google.protobuf.Duration;
+import com.google.protobuf.Timestamp;
+
+public class AsyncGroupFindings {
+
+  public static void main(String[] args) throws Exception {
+    asyncGroupFindings();
+  }
+
+  public static void asyncGroupFindings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GroupFindingsRequest request =
+          GroupFindingsRequest.newBuilder()
+              .setParent(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setFilter("filter-1274492040")
+              .setGroupBy("groupBy293428022")
+              .setReadTime(Timestamp.newBuilder().build())
+              .setCompareDuration(Duration.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      ApiFuture future =
+          securityCenterClient.groupFindingsPagedCallable().futureCall(request);
+      // Do something.
+      for (GroupResult element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_groupfindings_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java
new file mode 100644
index 000000000..d236895d6
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java
@@ -0,0 +1,65 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_groupfindings_paged_async]
+import com.google.cloud.securitycenter.v1.GroupFindingsRequest;
+import com.google.cloud.securitycenter.v1.GroupFindingsResponse;
+import com.google.cloud.securitycenter.v1.GroupResult;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+import com.google.common.base.Strings;
+import com.google.protobuf.Duration;
+import com.google.protobuf.Timestamp;
+
+public class AsyncGroupFindingsPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncGroupFindingsPaged();
+  }
+
+  public static void asyncGroupFindingsPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GroupFindingsRequest request =
+          GroupFindingsRequest.newBuilder()
+              .setParent(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setFilter("filter-1274492040")
+              .setGroupBy("groupBy293428022")
+              .setReadTime(Timestamp.newBuilder().build())
+              .setCompareDuration(Duration.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      while (true) {
+        GroupFindingsResponse response = securityCenterClient.groupFindingsCallable().call(request);
+        for (GroupResult element : response.getGroupByResultsList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_groupfindings_paged_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindings.java
new file mode 100644
index 000000000..bd0dcd08b
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindings.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_groupfindings_sync]
+import com.google.cloud.securitycenter.v1.GroupFindingsRequest;
+import com.google.cloud.securitycenter.v1.GroupResult;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+import com.google.protobuf.Duration;
+import com.google.protobuf.Timestamp;
+
+public class SyncGroupFindings {
+
+  public static void main(String[] args) throws Exception {
+    syncGroupFindings();
+  }
+
+  public static void syncGroupFindings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GroupFindingsRequest request =
+          GroupFindingsRequest.newBuilder()
+              .setParent(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setFilter("filter-1274492040")
+              .setGroupBy("groupBy293428022")
+              .setReadTime(Timestamp.newBuilder().build())
+              .setCompareDuration(Duration.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      for (GroupResult element : securityCenterClient.groupFindings(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_groupfindings_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java
new file mode 100644
index 000000000..8603c1231
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_groupfindings_sourcenamestring_sync]
+import com.google.cloud.securitycenter.v1.GroupResult;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+
+public class SyncGroupFindingsSourcenameString {
+
+  public static void main(String[] args) throws Exception {
+    syncGroupFindingsSourcenameString();
+  }
+
+  public static void syncGroupFindingsSourcenameString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+      String groupBy = "groupBy293428022";
+      for (GroupResult element : securityCenterClient.groupFindings(parent, groupBy).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_groupfindings_sourcenamestring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java
new file mode 100644
index 000000000..5eda0bedd
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_groupfindings_stringstring_sync]
+import com.google.cloud.securitycenter.v1.GroupResult;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+
+public class SyncGroupFindingsStringString {
+
+  public static void main(String[] args) throws Exception {
+    syncGroupFindingsStringString();
+  }
+
+  public static void syncGroupFindingsStringString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString();
+      String groupBy = "groupBy293428022";
+      for (GroupResult element : securityCenterClient.groupFindings(parent, groupBy).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_groupfindings_stringstring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/AsyncListAssets.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/AsyncListAssets.java
new file mode 100644
index 000000000..04cb213bf
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/AsyncListAssets.java
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listassets_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.ListAssetsRequest;
+import com.google.cloud.securitycenter.v1.ListAssetsResponse;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.Duration;
+import com.google.protobuf.FieldMask;
+import com.google.protobuf.Timestamp;
+
+public class AsyncListAssets {
+
+  public static void main(String[] args) throws Exception {
+    asyncListAssets();
+  }
+
+  public static void asyncListAssets() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListAssetsRequest request =
+          ListAssetsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setFilter("filter-1274492040")
+              .setOrderBy("orderBy-1207110587")
+              .setReadTime(Timestamp.newBuilder().build())
+              .setCompareDuration(Duration.newBuilder().build())
+              .setFieldMask(FieldMask.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      ApiFuture future =
+          securityCenterClient.listAssetsPagedCallable().futureCall(request);
+      // Do something.
+      for (ListAssetsResponse.ListAssetsResult element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listassets_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/AsyncListAssetsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/AsyncListAssetsPaged.java
new file mode 100644
index 000000000..98397f364
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/AsyncListAssetsPaged.java
@@ -0,0 +1,65 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listassets_paged_async]
+import com.google.cloud.securitycenter.v1.ListAssetsRequest;
+import com.google.cloud.securitycenter.v1.ListAssetsResponse;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.common.base.Strings;
+import com.google.protobuf.Duration;
+import com.google.protobuf.FieldMask;
+import com.google.protobuf.Timestamp;
+
+public class AsyncListAssetsPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncListAssetsPaged();
+  }
+
+  public static void asyncListAssetsPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListAssetsRequest request =
+          ListAssetsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setFilter("filter-1274492040")
+              .setOrderBy("orderBy-1207110587")
+              .setReadTime(Timestamp.newBuilder().build())
+              .setCompareDuration(Duration.newBuilder().build())
+              .setFieldMask(FieldMask.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      while (true) {
+        ListAssetsResponse response = securityCenterClient.listAssetsCallable().call(request);
+        for (ListAssetsResponse.ListAssetsResult element : response.getListAssetsResultsList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listassets_paged_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/SyncListAssets.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/SyncListAssets.java
new file mode 100644
index 000000000..7b483d008
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/SyncListAssets.java
@@ -0,0 +1,56 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listassets_sync]
+import com.google.cloud.securitycenter.v1.ListAssetsRequest;
+import com.google.cloud.securitycenter.v1.ListAssetsResponse;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.Duration;
+import com.google.protobuf.FieldMask;
+import com.google.protobuf.Timestamp;
+
+public class SyncListAssets {
+
+  public static void main(String[] args) throws Exception {
+    syncListAssets();
+  }
+
+  public static void syncListAssets() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListAssetsRequest request =
+          ListAssetsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setFilter("filter-1274492040")
+              .setOrderBy("orderBy-1207110587")
+              .setReadTime(Timestamp.newBuilder().build())
+              .setCompareDuration(Duration.newBuilder().build())
+              .setFieldMask(FieldMask.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      for (ListAssetsResponse.ListAssetsResult element :
+          securityCenterClient.listAssets(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listassets_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/AsyncListBigQueryExports.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/AsyncListBigQueryExports.java
new file mode 100644
index 000000000..729a83509
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/AsyncListBigQueryExports.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listbigqueryexports_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.BigQueryExport;
+import com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class AsyncListBigQueryExports {
+
+  public static void main(String[] args) throws Exception {
+    asyncListBigQueryExports();
+  }
+
+  public static void asyncListBigQueryExports() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListBigQueryExportsRequest request =
+          ListBigQueryExportsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      ApiFuture future =
+          securityCenterClient.listBigQueryExportsPagedCallable().futureCall(request);
+      // Do something.
+      for (BigQueryExport element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listbigqueryexports_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/AsyncListBigQueryExportsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/AsyncListBigQueryExportsPaged.java
new file mode 100644
index 000000000..5e8de8ccb
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/AsyncListBigQueryExportsPaged.java
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listbigqueryexports_paged_async]
+import com.google.cloud.securitycenter.v1.BigQueryExport;
+import com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest;
+import com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.common.base.Strings;
+
+public class AsyncListBigQueryExportsPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncListBigQueryExportsPaged();
+  }
+
+  public static void asyncListBigQueryExportsPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListBigQueryExportsRequest request =
+          ListBigQueryExportsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      while (true) {
+        ListBigQueryExportsResponse response =
+            securityCenterClient.listBigQueryExportsCallable().call(request);
+        for (BigQueryExport element : response.getBigQueryExportsList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listbigqueryexports_paged_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExports.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExports.java
new file mode 100644
index 000000000..8ff14d0e0
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExports.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listbigqueryexports_sync]
+import com.google.cloud.securitycenter.v1.BigQueryExport;
+import com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncListBigQueryExports {
+
+  public static void main(String[] args) throws Exception {
+    syncListBigQueryExports();
+  }
+
+  public static void syncListBigQueryExports() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListBigQueryExportsRequest request =
+          ListBigQueryExportsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      for (BigQueryExport element :
+          securityCenterClient.listBigQueryExports(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listbigqueryexports_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsFoldername.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsFoldername.java
new file mode 100644
index 000000000..0b4607868
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsFoldername.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listbigqueryexports_foldername_sync]
+import com.google.cloud.securitycenter.v1.BigQueryExport;
+import com.google.cloud.securitycenter.v1.FolderName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncListBigQueryExportsFoldername {
+
+  public static void main(String[] args) throws Exception {
+    syncListBigQueryExportsFoldername();
+  }
+
+  public static void syncListBigQueryExportsFoldername() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      FolderName parent = FolderName.of("[FOLDER]");
+      for (BigQueryExport element : securityCenterClient.listBigQueryExports(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listbigqueryexports_foldername_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsOrganizationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsOrganizationname.java
new file mode 100644
index 000000000..470fbb52b
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsOrganizationname.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listbigqueryexports_organizationname_sync]
+import com.google.cloud.securitycenter.v1.BigQueryExport;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncListBigQueryExportsOrganizationname {
+
+  public static void main(String[] args) throws Exception {
+    syncListBigQueryExportsOrganizationname();
+  }
+
+  public static void syncListBigQueryExportsOrganizationname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+      for (BigQueryExport element : securityCenterClient.listBigQueryExports(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listbigqueryexports_organizationname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsProjectname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsProjectname.java
new file mode 100644
index 000000000..ce8c0514f
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsProjectname.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listbigqueryexports_projectname_sync]
+import com.google.cloud.securitycenter.v1.BigQueryExport;
+import com.google.cloud.securitycenter.v1.ProjectName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncListBigQueryExportsProjectname {
+
+  public static void main(String[] args) throws Exception {
+    syncListBigQueryExportsProjectname();
+  }
+
+  public static void syncListBigQueryExportsProjectname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ProjectName parent = ProjectName.of("[PROJECT]");
+      for (BigQueryExport element : securityCenterClient.listBigQueryExports(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listbigqueryexports_projectname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsString.java
new file mode 100644
index 000000000..ae18f64e7
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsString.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listbigqueryexports_string_sync]
+import com.google.cloud.securitycenter.v1.BigQueryExport;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncListBigQueryExportsString {
+
+  public static void main(String[] args) throws Exception {
+    syncListBigQueryExportsString();
+  }
+
+  public static void syncListBigQueryExportsString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = OrganizationName.of("[ORGANIZATION]").toString();
+      for (BigQueryExport element : securityCenterClient.listBigQueryExports(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listbigqueryexports_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/AsyncListFindings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/AsyncListFindings.java
new file mode 100644
index 000000000..be6119324
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/AsyncListFindings.java
@@ -0,0 +1,60 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listfindings_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.ListFindingsRequest;
+import com.google.cloud.securitycenter.v1.ListFindingsResponse;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+import com.google.protobuf.Duration;
+import com.google.protobuf.FieldMask;
+import com.google.protobuf.Timestamp;
+
+public class AsyncListFindings {
+
+  public static void main(String[] args) throws Exception {
+    asyncListFindings();
+  }
+
+  public static void asyncListFindings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListFindingsRequest request =
+          ListFindingsRequest.newBuilder()
+              .setParent(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setFilter("filter-1274492040")
+              .setOrderBy("orderBy-1207110587")
+              .setReadTime(Timestamp.newBuilder().build())
+              .setCompareDuration(Duration.newBuilder().build())
+              .setFieldMask(FieldMask.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      ApiFuture future =
+          securityCenterClient.listFindingsPagedCallable().futureCall(request);
+      // Do something.
+      for (ListFindingsResponse.ListFindingsResult element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listfindings_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/AsyncListFindingsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/AsyncListFindingsPaged.java
new file mode 100644
index 000000000..e6bd21b89
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/AsyncListFindingsPaged.java
@@ -0,0 +1,67 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listfindings_paged_async]
+import com.google.cloud.securitycenter.v1.ListFindingsRequest;
+import com.google.cloud.securitycenter.v1.ListFindingsResponse;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+import com.google.common.base.Strings;
+import com.google.protobuf.Duration;
+import com.google.protobuf.FieldMask;
+import com.google.protobuf.Timestamp;
+
+public class AsyncListFindingsPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncListFindingsPaged();
+  }
+
+  public static void asyncListFindingsPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListFindingsRequest request =
+          ListFindingsRequest.newBuilder()
+              .setParent(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setFilter("filter-1274492040")
+              .setOrderBy("orderBy-1207110587")
+              .setReadTime(Timestamp.newBuilder().build())
+              .setCompareDuration(Duration.newBuilder().build())
+              .setFieldMask(FieldMask.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      while (true) {
+        ListFindingsResponse response = securityCenterClient.listFindingsCallable().call(request);
+        for (ListFindingsResponse.ListFindingsResult element :
+            response.getListFindingsResultsList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listfindings_paged_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/SyncListFindings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/SyncListFindings.java
new file mode 100644
index 000000000..e715c470d
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/SyncListFindings.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listfindings_sync]
+import com.google.cloud.securitycenter.v1.ListFindingsRequest;
+import com.google.cloud.securitycenter.v1.ListFindingsResponse;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+import com.google.protobuf.Duration;
+import com.google.protobuf.FieldMask;
+import com.google.protobuf.Timestamp;
+
+public class SyncListFindings {
+
+  public static void main(String[] args) throws Exception {
+    syncListFindings();
+  }
+
+  public static void syncListFindings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListFindingsRequest request =
+          ListFindingsRequest.newBuilder()
+              .setParent(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setFilter("filter-1274492040")
+              .setOrderBy("orderBy-1207110587")
+              .setReadTime(Timestamp.newBuilder().build())
+              .setCompareDuration(Duration.newBuilder().build())
+              .setFieldMask(FieldMask.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      for (ListFindingsResponse.ListFindingsResult element :
+          securityCenterClient.listFindings(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listfindings_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/AsyncListMuteConfigs.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/AsyncListMuteConfigs.java
new file mode 100644
index 000000000..aacc5b034
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/AsyncListMuteConfigs.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listmuteconfigs_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.ListMuteConfigsRequest;
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class AsyncListMuteConfigs {
+
+  public static void main(String[] args) throws Exception {
+    asyncListMuteConfigs();
+  }
+
+  public static void asyncListMuteConfigs() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListMuteConfigsRequest request =
+          ListMuteConfigsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      ApiFuture future =
+          securityCenterClient.listMuteConfigsPagedCallable().futureCall(request);
+      // Do something.
+      for (MuteConfig element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listmuteconfigs_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/AsyncListMuteConfigsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/AsyncListMuteConfigsPaged.java
new file mode 100644
index 000000000..0fe17ccbc
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/AsyncListMuteConfigsPaged.java
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listmuteconfigs_paged_async]
+import com.google.cloud.securitycenter.v1.ListMuteConfigsRequest;
+import com.google.cloud.securitycenter.v1.ListMuteConfigsResponse;
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.common.base.Strings;
+
+public class AsyncListMuteConfigsPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncListMuteConfigsPaged();
+  }
+
+  public static void asyncListMuteConfigsPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListMuteConfigsRequest request =
+          ListMuteConfigsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      while (true) {
+        ListMuteConfigsResponse response =
+            securityCenterClient.listMuteConfigsCallable().call(request);
+        for (MuteConfig element : response.getMuteConfigsList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listmuteconfigs_paged_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigs.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigs.java
new file mode 100644
index 000000000..c4a7f38a8
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigs.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listmuteconfigs_sync]
+import com.google.cloud.securitycenter.v1.ListMuteConfigsRequest;
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncListMuteConfigs {
+
+  public static void main(String[] args) throws Exception {
+    syncListMuteConfigs();
+  }
+
+  public static void syncListMuteConfigs() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListMuteConfigsRequest request =
+          ListMuteConfigsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      for (MuteConfig element : securityCenterClient.listMuteConfigs(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listmuteconfigs_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsFoldername.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsFoldername.java
new file mode 100644
index 000000000..e2dcb46d2
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsFoldername.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listmuteconfigs_foldername_sync]
+import com.google.cloud.securitycenter.v1.FolderName;
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncListMuteConfigsFoldername {
+
+  public static void main(String[] args) throws Exception {
+    syncListMuteConfigsFoldername();
+  }
+
+  public static void syncListMuteConfigsFoldername() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      FolderName parent = FolderName.of("[FOLDER]");
+      for (MuteConfig element : securityCenterClient.listMuteConfigs(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listmuteconfigs_foldername_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsOrganizationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsOrganizationname.java
new file mode 100644
index 000000000..d1c9e4ade
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsOrganizationname.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listmuteconfigs_organizationname_sync]
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncListMuteConfigsOrganizationname {
+
+  public static void main(String[] args) throws Exception {
+    syncListMuteConfigsOrganizationname();
+  }
+
+  public static void syncListMuteConfigsOrganizationname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+      for (MuteConfig element : securityCenterClient.listMuteConfigs(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listmuteconfigs_organizationname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsProjectname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsProjectname.java
new file mode 100644
index 000000000..eaa075bf5
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsProjectname.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listmuteconfigs_projectname_sync]
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.ProjectName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncListMuteConfigsProjectname {
+
+  public static void main(String[] args) throws Exception {
+    syncListMuteConfigsProjectname();
+  }
+
+  public static void syncListMuteConfigsProjectname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ProjectName parent = ProjectName.of("[PROJECT]");
+      for (MuteConfig element : securityCenterClient.listMuteConfigs(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listmuteconfigs_projectname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsString.java
new file mode 100644
index 000000000..6ead853dd
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsString.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listmuteconfigs_string_sync]
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncListMuteConfigsString {
+
+  public static void main(String[] args) throws Exception {
+    syncListMuteConfigsString();
+  }
+
+  public static void syncListMuteConfigsString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = OrganizationName.of("[ORGANIZATION]").toString();
+      for (MuteConfig element : securityCenterClient.listMuteConfigs(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listmuteconfigs_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigs.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigs.java
new file mode 100644
index 000000000..8b89ce519
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigs.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listnotificationconfigs_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest;
+import com.google.cloud.securitycenter.v1.NotificationConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class AsyncListNotificationConfigs {
+
+  public static void main(String[] args) throws Exception {
+    asyncListNotificationConfigs();
+  }
+
+  public static void asyncListNotificationConfigs() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListNotificationConfigsRequest request =
+          ListNotificationConfigsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      ApiFuture future =
+          securityCenterClient.listNotificationConfigsPagedCallable().futureCall(request);
+      // Do something.
+      for (NotificationConfig element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listnotificationconfigs_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigsPaged.java
new file mode 100644
index 000000000..7edab2ebf
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigsPaged.java
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listnotificationconfigs_paged_async]
+import com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest;
+import com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse;
+import com.google.cloud.securitycenter.v1.NotificationConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.common.base.Strings;
+
+public class AsyncListNotificationConfigsPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncListNotificationConfigsPaged();
+  }
+
+  public static void asyncListNotificationConfigsPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListNotificationConfigsRequest request =
+          ListNotificationConfigsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      while (true) {
+        ListNotificationConfigsResponse response =
+            securityCenterClient.listNotificationConfigsCallable().call(request);
+        for (NotificationConfig element : response.getNotificationConfigsList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listnotificationconfigs_paged_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigs.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigs.java
new file mode 100644
index 000000000..18009cc65
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigs.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listnotificationconfigs_sync]
+import com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest;
+import com.google.cloud.securitycenter.v1.NotificationConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncListNotificationConfigs {
+
+  public static void main(String[] args) throws Exception {
+    syncListNotificationConfigs();
+  }
+
+  public static void syncListNotificationConfigs() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListNotificationConfigsRequest request =
+          ListNotificationConfigsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      for (NotificationConfig element :
+          securityCenterClient.listNotificationConfigs(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listnotificationconfigs_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java
new file mode 100644
index 000000000..b33eb99a6
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listnotificationconfigs_organizationname_sync]
+import com.google.cloud.securitycenter.v1.NotificationConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncListNotificationConfigsOrganizationname {
+
+  public static void main(String[] args) throws Exception {
+    syncListNotificationConfigsOrganizationname();
+  }
+
+  public static void syncListNotificationConfigsOrganizationname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+      for (NotificationConfig element :
+          securityCenterClient.listNotificationConfigs(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listnotificationconfigs_organizationname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsString.java
new file mode 100644
index 000000000..1a5ff84cc
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listnotificationconfigs_string_sync]
+import com.google.cloud.securitycenter.v1.NotificationConfig;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncListNotificationConfigsString {
+
+  public static void main(String[] args) throws Exception {
+    syncListNotificationConfigsString();
+  }
+
+  public static void syncListNotificationConfigsString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = OrganizationName.of("[ORGANIZATION]").toString();
+      for (NotificationConfig element :
+          securityCenterClient.listNotificationConfigs(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listnotificationconfigs_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/AsyncListSources.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/AsyncListSources.java
new file mode 100644
index 000000000..7e852d5a5
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/AsyncListSources.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listsources_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.ListSourcesRequest;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.Source;
+
+public class AsyncListSources {
+
+  public static void main(String[] args) throws Exception {
+    asyncListSources();
+  }
+
+  public static void asyncListSources() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListSourcesRequest request =
+          ListSourcesRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      ApiFuture future =
+          securityCenterClient.listSourcesPagedCallable().futureCall(request);
+      // Do something.
+      for (Source element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listsources_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/AsyncListSourcesPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/AsyncListSourcesPaged.java
new file mode 100644
index 000000000..6af7f38e2
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/AsyncListSourcesPaged.java
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listsources_paged_async]
+import com.google.cloud.securitycenter.v1.ListSourcesRequest;
+import com.google.cloud.securitycenter.v1.ListSourcesResponse;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.Source;
+import com.google.common.base.Strings;
+
+public class AsyncListSourcesPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncListSourcesPaged();
+  }
+
+  public static void asyncListSourcesPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListSourcesRequest request =
+          ListSourcesRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      while (true) {
+        ListSourcesResponse response = securityCenterClient.listSourcesCallable().call(request);
+        for (Source element : response.getSourcesList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listsources_paged_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSources.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSources.java
new file mode 100644
index 000000000..354c82f92
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSources.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listsources_sync]
+import com.google.cloud.securitycenter.v1.ListSourcesRequest;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.Source;
+
+public class SyncListSources {
+
+  public static void main(String[] args) throws Exception {
+    syncListSources();
+  }
+
+  public static void syncListSources() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListSourcesRequest request =
+          ListSourcesRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      for (Source element : securityCenterClient.listSources(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listsources_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesFoldername.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesFoldername.java
new file mode 100644
index 000000000..44087573a
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesFoldername.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listsources_foldername_sync]
+import com.google.cloud.securitycenter.v1.FolderName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.Source;
+
+public class SyncListSourcesFoldername {
+
+  public static void main(String[] args) throws Exception {
+    syncListSourcesFoldername();
+  }
+
+  public static void syncListSourcesFoldername() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      FolderName parent = FolderName.of("[FOLDER]");
+      for (Source element : securityCenterClient.listSources(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listsources_foldername_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java
new file mode 100644
index 000000000..2ae71e950
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listsources_organizationname_sync]
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.Source;
+
+public class SyncListSourcesOrganizationname {
+
+  public static void main(String[] args) throws Exception {
+    syncListSourcesOrganizationname();
+  }
+
+  public static void syncListSourcesOrganizationname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+      for (Source element : securityCenterClient.listSources(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listsources_organizationname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesProjectname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesProjectname.java
new file mode 100644
index 000000000..1d4bbc0bf
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesProjectname.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listsources_projectname_sync]
+import com.google.cloud.securitycenter.v1.ProjectName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.Source;
+
+public class SyncListSourcesProjectname {
+
+  public static void main(String[] args) throws Exception {
+    syncListSourcesProjectname();
+  }
+
+  public static void syncListSourcesProjectname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ProjectName parent = ProjectName.of("[PROJECT]");
+      for (Source element : securityCenterClient.listSources(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listsources_projectname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesString.java
new file mode 100644
index 000000000..8b48eaa0e
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesString.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_listsources_string_sync]
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.Source;
+
+public class SyncListSourcesString {
+
+  public static void main(String[] args) throws Exception {
+    syncListSourcesString();
+  }
+
+  public static void syncListSourcesString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = OrganizationName.of("[ORGANIZATION]").toString();
+      for (Source element : securityCenterClient.listSources(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_listsources_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java
new file mode 100644
index 000000000..a0dc92c9f
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_runassetdiscovery_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.longrunning.Operation;
+
+public class AsyncRunAssetDiscovery {
+
+  public static void main(String[] args) throws Exception {
+    asyncRunAssetDiscovery();
+  }
+
+  public static void asyncRunAssetDiscovery() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      RunAssetDiscoveryRequest request =
+          RunAssetDiscoveryRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .build();
+      ApiFuture future =
+          securityCenterClient.runAssetDiscoveryCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_runassetdiscovery_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java
new file mode 100644
index 000000000..6e296b223
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_runassetdiscovery_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest;
+import com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.Empty;
+
+public class AsyncRunAssetDiscoveryLRO {
+
+  public static void main(String[] args) throws Exception {
+    asyncRunAssetDiscoveryLRO();
+  }
+
+  public static void asyncRunAssetDiscoveryLRO() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      RunAssetDiscoveryRequest request =
+          RunAssetDiscoveryRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .build();
+      OperationFuture future =
+          securityCenterClient.runAssetDiscoveryOperationCallable().futureCall(request);
+      // Do something.
+      RunAssetDiscoveryResponse response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_runassetdiscovery_lro_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java
new file mode 100644
index 000000000..9ee05cbe4
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_runassetdiscovery_sync]
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest;
+import com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncRunAssetDiscovery {
+
+  public static void main(String[] args) throws Exception {
+    syncRunAssetDiscovery();
+  }
+
+  public static void syncRunAssetDiscovery() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      RunAssetDiscoveryRequest request =
+          RunAssetDiscoveryRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .build();
+      RunAssetDiscoveryResponse response =
+          securityCenterClient.runAssetDiscoveryAsync(request).get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_runassetdiscovery_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java
new file mode 100644
index 000000000..a63bae642
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_runassetdiscovery_organizationname_sync]
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncRunAssetDiscoveryOrganizationname {
+
+  public static void main(String[] args) throws Exception {
+    syncRunAssetDiscoveryOrganizationname();
+  }
+
+  public static void syncRunAssetDiscoveryOrganizationname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+      RunAssetDiscoveryResponse response =
+          securityCenterClient.runAssetDiscoveryAsync(parent).get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_runassetdiscovery_organizationname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java
new file mode 100644
index 000000000..dbc42e284
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_runassetdiscovery_string_sync]
+import com.google.cloud.securitycenter.v1.OrganizationName;
+import com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncRunAssetDiscoveryString {
+
+  public static void main(String[] args) throws Exception {
+    syncRunAssetDiscoveryString();
+  }
+
+  public static void syncRunAssetDiscoveryString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = OrganizationName.of("[ORGANIZATION]").toString();
+      RunAssetDiscoveryResponse response =
+          securityCenterClient.runAssetDiscoveryAsync(parent).get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_runassetdiscovery_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/AsyncSetFindingState.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/AsyncSetFindingState.java
new file mode 100644
index 000000000..8651049b8
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/AsyncSetFindingState.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_setfindingstate_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.Finding;
+import com.google.cloud.securitycenter.v1.FindingName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SetFindingStateRequest;
+import com.google.protobuf.Timestamp;
+
+public class AsyncSetFindingState {
+
+  public static void main(String[] args) throws Exception {
+    asyncSetFindingState();
+  }
+
+  public static void asyncSetFindingState() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SetFindingStateRequest request =
+          SetFindingStateRequest.newBuilder()
+              .setName(
+                  FindingName.ofOrganizationSourceFindingName(
+                          "[ORGANIZATION]", "[SOURCE]", "[FINDING]")
+                      .toString())
+              .setStartTime(Timestamp.newBuilder().build())
+              .build();
+      ApiFuture future =
+          securityCenterClient.setFindingStateCallable().futureCall(request);
+      // Do something.
+      Finding response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_setfindingstate_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingState.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingState.java
new file mode 100644
index 000000000..6079e61e8
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingState.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_setfindingstate_sync]
+import com.google.cloud.securitycenter.v1.Finding;
+import com.google.cloud.securitycenter.v1.FindingName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SetFindingStateRequest;
+import com.google.protobuf.Timestamp;
+
+public class SyncSetFindingState {
+
+  public static void main(String[] args) throws Exception {
+    syncSetFindingState();
+  }
+
+  public static void syncSetFindingState() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SetFindingStateRequest request =
+          SetFindingStateRequest.newBuilder()
+              .setName(
+                  FindingName.ofOrganizationSourceFindingName(
+                          "[ORGANIZATION]", "[SOURCE]", "[FINDING]")
+                      .toString())
+              .setStartTime(Timestamp.newBuilder().build())
+              .build();
+      Finding response = securityCenterClient.setFindingState(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_setfindingstate_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java
new file mode 100644
index 000000000..1557c8549
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_setfindingstate_findingnamefindingstatetimestamp_sync]
+import com.google.cloud.securitycenter.v1.Finding;
+import com.google.cloud.securitycenter.v1.FindingName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.Timestamp;
+
+public class SyncSetFindingStateFindingnameFindingstateTimestamp {
+
+  public static void main(String[] args) throws Exception {
+    syncSetFindingStateFindingnameFindingstateTimestamp();
+  }
+
+  public static void syncSetFindingStateFindingnameFindingstateTimestamp() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      FindingName name =
+          FindingName.ofOrganizationSourceFindingName("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
+      Finding.State state = Finding.State.forNumber(0);
+      Timestamp startTime = Timestamp.newBuilder().build();
+      Finding response = securityCenterClient.setFindingState(name, state, startTime);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_setfindingstate_findingnamefindingstatetimestamp_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java
new file mode 100644
index 000000000..424140bf6
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_setfindingstate_stringfindingstatetimestamp_sync]
+import com.google.cloud.securitycenter.v1.Finding;
+import com.google.cloud.securitycenter.v1.FindingName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.Timestamp;
+
+public class SyncSetFindingStateStringFindingstateTimestamp {
+
+  public static void main(String[] args) throws Exception {
+    syncSetFindingStateStringFindingstateTimestamp();
+  }
+
+  public static void syncSetFindingStateStringFindingstateTimestamp() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String name =
+          FindingName.ofOrganizationSourceFindingName("[ORGANIZATION]", "[SOURCE]", "[FINDING]")
+              .toString();
+      Finding.State state = Finding.State.forNumber(0);
+      Timestamp startTime = Timestamp.newBuilder().build();
+      Finding response = securityCenterClient.setFindingState(name, state, startTime);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_setfindingstate_stringfindingstatetimestamp_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java
new file mode 100644
index 000000000..61af4e960
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_setiampolicy_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.protobuf.FieldMask;
+
+public class AsyncSetIamPolicy {
+
+  public static void main(String[] args) throws Exception {
+    asyncSetIamPolicy();
+  }
+
+  public static void asyncSetIamPolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      ApiFuture future = securityCenterClient.setIamPolicyCallable().futureCall(request);
+      // Do something.
+      Policy response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_setiampolicy_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java
new file mode 100644
index 000000000..1ea1f69e7
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_setiampolicy_sync]
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.protobuf.FieldMask;
+
+public class SyncSetIamPolicy {
+
+  public static void main(String[] args) throws Exception {
+    syncSetIamPolicy();
+  }
+
+  public static void syncSetIamPolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      Policy response = securityCenterClient.setIamPolicy(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_setiampolicy_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
new file mode 100644
index 000000000..52e226016
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_setiampolicy_resourcenamepolicy_sync]
+import com.google.api.resourcenames.ResourceName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+import com.google.iam.v1.Policy;
+
+public class SyncSetIamPolicyResourcenamePolicy {
+
+  public static void main(String[] args) throws Exception {
+    syncSetIamPolicyResourcenamePolicy();
+  }
+
+  public static void syncSetIamPolicyResourcenamePolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+      Policy policy = Policy.newBuilder().build();
+      Policy response = securityCenterClient.setIamPolicy(resource, policy);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_setiampolicy_resourcenamepolicy_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
new file mode 100644
index 000000000..8f22b1998
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_setiampolicy_stringpolicy_sync]
+import com.google.cloud.securitycenter.v1.FolderName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.iam.v1.Policy;
+
+public class SyncSetIamPolicyStringPolicy {
+
+  public static void main(String[] args) throws Exception {
+    syncSetIamPolicyStringPolicy();
+  }
+
+  public static void syncSetIamPolicyStringPolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String resource = FolderName.of("[FOLDER]").toString();
+      Policy policy = Policy.newBuilder().build();
+      Policy response = securityCenterClient.setIamPolicy(resource, policy);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_setiampolicy_stringpolicy_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/AsyncSetMute.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/AsyncSetMute.java
new file mode 100644
index 000000000..a256f9716
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/AsyncSetMute.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_setmute_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.Finding;
+import com.google.cloud.securitycenter.v1.FindingName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SetMuteRequest;
+
+public class AsyncSetMute {
+
+  public static void main(String[] args) throws Exception {
+    asyncSetMute();
+  }
+
+  public static void asyncSetMute() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SetMuteRequest request =
+          SetMuteRequest.newBuilder()
+              .setName(
+                  FindingName.ofOrganizationSourceFindingName(
+                          "[ORGANIZATION]", "[SOURCE]", "[FINDING]")
+                      .toString())
+              .build();
+      ApiFuture future = securityCenterClient.setMuteCallable().futureCall(request);
+      // Do something.
+      Finding response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_setmute_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMute.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMute.java
new file mode 100644
index 000000000..dc5a6e116
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMute.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_setmute_sync]
+import com.google.cloud.securitycenter.v1.Finding;
+import com.google.cloud.securitycenter.v1.FindingName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SetMuteRequest;
+
+public class SyncSetMute {
+
+  public static void main(String[] args) throws Exception {
+    syncSetMute();
+  }
+
+  public static void syncSetMute() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SetMuteRequest request =
+          SetMuteRequest.newBuilder()
+              .setName(
+                  FindingName.ofOrganizationSourceFindingName(
+                          "[ORGANIZATION]", "[SOURCE]", "[FINDING]")
+                      .toString())
+              .build();
+      Finding response = securityCenterClient.setMute(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_setmute_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMuteFindingnameFindingmute.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMuteFindingnameFindingmute.java
new file mode 100644
index 000000000..1ddedd5c3
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMuteFindingnameFindingmute.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_setmute_findingnamefindingmute_sync]
+import com.google.cloud.securitycenter.v1.Finding;
+import com.google.cloud.securitycenter.v1.FindingName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncSetMuteFindingnameFindingmute {
+
+  public static void main(String[] args) throws Exception {
+    syncSetMuteFindingnameFindingmute();
+  }
+
+  public static void syncSetMuteFindingnameFindingmute() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      FindingName name =
+          FindingName.ofOrganizationSourceFindingName("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
+      Finding.Mute mute = Finding.Mute.forNumber(0);
+      Finding response = securityCenterClient.setMute(name, mute);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_setmute_findingnamefindingmute_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMuteStringFindingmute.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMuteStringFindingmute.java
new file mode 100644
index 000000000..ec0536366
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMuteStringFindingmute.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_setmute_stringfindingmute_sync]
+import com.google.cloud.securitycenter.v1.Finding;
+import com.google.cloud.securitycenter.v1.FindingName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncSetMuteStringFindingmute {
+
+  public static void main(String[] args) throws Exception {
+    syncSetMuteStringFindingmute();
+  }
+
+  public static void syncSetMuteStringFindingmute() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String name =
+          FindingName.ofOrganizationSourceFindingName("[ORGANIZATION]", "[SOURCE]", "[FINDING]")
+              .toString();
+      Finding.Mute mute = Finding.Mute.forNumber(0);
+      Finding response = securityCenterClient.setMute(name, mute);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_setmute_stringfindingmute_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java
new file mode 100644
index 000000000..876842dac
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_testiampermissions_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
+import java.util.ArrayList;
+
+public class AsyncTestIamPermissions {
+
+  public static void main(String[] args) throws Exception {
+    asyncTestIamPermissions();
+  }
+
+  public static void asyncTestIamPermissions() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      ApiFuture future =
+          securityCenterClient.testIamPermissionsCallable().futureCall(request);
+      // Do something.
+      TestIamPermissionsResponse response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_testiampermissions_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java
new file mode 100644
index 000000000..503f5defa
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_testiampermissions_sync]
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
+import java.util.ArrayList;
+
+public class SyncTestIamPermissions {
+
+  public static void main(String[] args) throws Exception {
+    syncTestIamPermissions();
+  }
+
+  public static void syncTestIamPermissions() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      TestIamPermissionsResponse response = securityCenterClient.testIamPermissions(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_testiampermissions_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
new file mode 100644
index 000000000..6099c89e4
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_testiampermissions_resourcenameliststring_sync]
+import com.google.api.resourcenames.ResourceName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SourceName;
+import com.google.iam.v1.TestIamPermissionsResponse;
+import java.util.ArrayList;
+import java.util.List;
+
+public class SyncTestIamPermissionsResourcenameListstring {
+
+  public static void main(String[] args) throws Exception {
+    syncTestIamPermissionsResourcenameListstring();
+  }
+
+  public static void syncTestIamPermissionsResourcenameListstring() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+      List permissions = new ArrayList<>();
+      TestIamPermissionsResponse response =
+          securityCenterClient.testIamPermissions(resource, permissions);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_testiampermissions_resourcenameliststring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
new file mode 100644
index 000000000..501f4b5b7
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_testiampermissions_stringliststring_sync]
+import com.google.cloud.securitycenter.v1.FolderName;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.iam.v1.TestIamPermissionsResponse;
+import java.util.ArrayList;
+import java.util.List;
+
+public class SyncTestIamPermissionsStringListstring {
+
+  public static void main(String[] args) throws Exception {
+    syncTestIamPermissionsStringListstring();
+  }
+
+  public static void syncTestIamPermissionsStringListstring() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String resource = FolderName.of("[FOLDER]").toString();
+      List permissions = new ArrayList<>();
+      TestIamPermissionsResponse response =
+          securityCenterClient.testIamPermissions(resource, permissions);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_testiampermissions_stringliststring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/AsyncUpdateBigQueryExport.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/AsyncUpdateBigQueryExport.java
new file mode 100644
index 000000000..a83c7bee8
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/AsyncUpdateBigQueryExport.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updatebigqueryexport_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.BigQueryExport;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest;
+import com.google.protobuf.FieldMask;
+
+public class AsyncUpdateBigQueryExport {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateBigQueryExport();
+  }
+
+  public static void asyncUpdateBigQueryExport() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateBigQueryExportRequest request =
+          UpdateBigQueryExportRequest.newBuilder()
+              .setBigQueryExport(BigQueryExport.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      ApiFuture future =
+          securityCenterClient.updateBigQueryExportCallable().futureCall(request);
+      // Do something.
+      BigQueryExport response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updatebigqueryexport_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/SyncUpdateBigQueryExport.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/SyncUpdateBigQueryExport.java
new file mode 100644
index 000000000..5fc0c7c31
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/SyncUpdateBigQueryExport.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updatebigqueryexport_sync]
+import com.google.cloud.securitycenter.v1.BigQueryExport;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateBigQueryExport {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateBigQueryExport();
+  }
+
+  public static void syncUpdateBigQueryExport() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateBigQueryExportRequest request =
+          UpdateBigQueryExportRequest.newBuilder()
+              .setBigQueryExport(BigQueryExport.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      BigQueryExport response = securityCenterClient.updateBigQueryExport(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updatebigqueryexport_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/SyncUpdateBigQueryExportBigqueryexportFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/SyncUpdateBigQueryExportBigqueryexportFieldmask.java
new file mode 100644
index 000000000..4ee5fb78c
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/SyncUpdateBigQueryExportBigqueryexportFieldmask.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updatebigqueryexport_bigqueryexportfieldmask_sync]
+import com.google.cloud.securitycenter.v1.BigQueryExport;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateBigQueryExportBigqueryexportFieldmask {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateBigQueryExportBigqueryexportFieldmask();
+  }
+
+  public static void syncUpdateBigQueryExportBigqueryexportFieldmask() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      BigQueryExport bigQueryExport = BigQueryExport.newBuilder().build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
+      BigQueryExport response =
+          securityCenterClient.updateBigQueryExport(bigQueryExport, updateMask);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updatebigqueryexport_bigqueryexportfieldmask_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/AsyncUpdateExternalSystem.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/AsyncUpdateExternalSystem.java
new file mode 100644
index 000000000..1106adfe1
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/AsyncUpdateExternalSystem.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updateexternalsystem_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.ExternalSystem;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest;
+import com.google.protobuf.FieldMask;
+
+public class AsyncUpdateExternalSystem {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateExternalSystem();
+  }
+
+  public static void asyncUpdateExternalSystem() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateExternalSystemRequest request =
+          UpdateExternalSystemRequest.newBuilder()
+              .setExternalSystem(ExternalSystem.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      ApiFuture future =
+          securityCenterClient.updateExternalSystemCallable().futureCall(request);
+      // Do something.
+      ExternalSystem response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updateexternalsystem_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/SyncUpdateExternalSystem.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/SyncUpdateExternalSystem.java
new file mode 100644
index 000000000..174f667e7
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/SyncUpdateExternalSystem.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updateexternalsystem_sync]
+import com.google.cloud.securitycenter.v1.ExternalSystem;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateExternalSystem {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateExternalSystem();
+  }
+
+  public static void syncUpdateExternalSystem() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateExternalSystemRequest request =
+          UpdateExternalSystemRequest.newBuilder()
+              .setExternalSystem(ExternalSystem.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      ExternalSystem response = securityCenterClient.updateExternalSystem(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updateexternalsystem_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/SyncUpdateExternalSystemExternalsystemFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/SyncUpdateExternalSystemExternalsystemFieldmask.java
new file mode 100644
index 000000000..3c0041128
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/SyncUpdateExternalSystemExternalsystemFieldmask.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updateexternalsystem_externalsystemfieldmask_sync]
+import com.google.cloud.securitycenter.v1.ExternalSystem;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateExternalSystemExternalsystemFieldmask {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateExternalSystemExternalsystemFieldmask();
+  }
+
+  public static void syncUpdateExternalSystemExternalsystemFieldmask() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ExternalSystem externalSystem = ExternalSystem.newBuilder().build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
+      ExternalSystem response =
+          securityCenterClient.updateExternalSystem(externalSystem, updateMask);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updateexternalsystem_externalsystemfieldmask_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/AsyncUpdateFinding.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/AsyncUpdateFinding.java
new file mode 100644
index 000000000..613572319
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/AsyncUpdateFinding.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updatefinding_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.Finding;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.UpdateFindingRequest;
+import com.google.protobuf.FieldMask;
+
+public class AsyncUpdateFinding {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateFinding();
+  }
+
+  public static void asyncUpdateFinding() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateFindingRequest request =
+          UpdateFindingRequest.newBuilder()
+              .setFinding(Finding.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      ApiFuture future = securityCenterClient.updateFindingCallable().futureCall(request);
+      // Do something.
+      Finding response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updatefinding_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/SyncUpdateFinding.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/SyncUpdateFinding.java
new file mode 100644
index 000000000..b0c7f133c
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/SyncUpdateFinding.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updatefinding_sync]
+import com.google.cloud.securitycenter.v1.Finding;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.UpdateFindingRequest;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateFinding {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateFinding();
+  }
+
+  public static void syncUpdateFinding() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateFindingRequest request =
+          UpdateFindingRequest.newBuilder()
+              .setFinding(Finding.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      Finding response = securityCenterClient.updateFinding(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updatefinding_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java
new file mode 100644
index 000000000..81831009a
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updatefinding_finding_sync]
+import com.google.cloud.securitycenter.v1.Finding;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncUpdateFindingFinding {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateFindingFinding();
+  }
+
+  public static void syncUpdateFindingFinding() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      Finding finding = Finding.newBuilder().build();
+      Finding response = securityCenterClient.updateFinding(finding);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updatefinding_finding_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/AsyncUpdateMuteConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/AsyncUpdateMuteConfig.java
new file mode 100644
index 000000000..dfca37599
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/AsyncUpdateMuteConfig.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updatemuteconfig_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest;
+import com.google.protobuf.FieldMask;
+
+public class AsyncUpdateMuteConfig {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateMuteConfig();
+  }
+
+  public static void asyncUpdateMuteConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateMuteConfigRequest request =
+          UpdateMuteConfigRequest.newBuilder()
+              .setMuteConfig(MuteConfig.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      ApiFuture future =
+          securityCenterClient.updateMuteConfigCallable().futureCall(request);
+      // Do something.
+      MuteConfig response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updatemuteconfig_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/SyncUpdateMuteConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/SyncUpdateMuteConfig.java
new file mode 100644
index 000000000..a4af570e4
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/SyncUpdateMuteConfig.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updatemuteconfig_sync]
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateMuteConfig {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateMuteConfig();
+  }
+
+  public static void syncUpdateMuteConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateMuteConfigRequest request =
+          UpdateMuteConfigRequest.newBuilder()
+              .setMuteConfig(MuteConfig.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      MuteConfig response = securityCenterClient.updateMuteConfig(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updatemuteconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/SyncUpdateMuteConfigMuteconfigFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/SyncUpdateMuteConfigMuteconfigFieldmask.java
new file mode 100644
index 000000000..112f89bb7
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/SyncUpdateMuteConfigMuteconfigFieldmask.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updatemuteconfig_muteconfigfieldmask_sync]
+import com.google.cloud.securitycenter.v1.MuteConfig;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateMuteConfigMuteconfigFieldmask {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateMuteConfigMuteconfigFieldmask();
+  }
+
+  public static void syncUpdateMuteConfigMuteconfigFieldmask() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      MuteConfig muteConfig = MuteConfig.newBuilder().build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
+      MuteConfig response = securityCenterClient.updateMuteConfig(muteConfig, updateMask);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updatemuteconfig_muteconfigfieldmask_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/AsyncUpdateNotificationConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/AsyncUpdateNotificationConfig.java
new file mode 100644
index 000000000..988888ec1
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/AsyncUpdateNotificationConfig.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updatenotificationconfig_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.NotificationConfig;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest;
+import com.google.protobuf.FieldMask;
+
+public class AsyncUpdateNotificationConfig {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateNotificationConfig();
+  }
+
+  public static void asyncUpdateNotificationConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateNotificationConfigRequest request =
+          UpdateNotificationConfigRequest.newBuilder()
+              .setNotificationConfig(NotificationConfig.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      ApiFuture future =
+          securityCenterClient.updateNotificationConfigCallable().futureCall(request);
+      // Do something.
+      NotificationConfig response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updatenotificationconfig_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfig.java
new file mode 100644
index 000000000..527c4b068
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfig.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updatenotificationconfig_sync]
+import com.google.cloud.securitycenter.v1.NotificationConfig;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateNotificationConfig {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateNotificationConfig();
+  }
+
+  public static void syncUpdateNotificationConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateNotificationConfigRequest request =
+          UpdateNotificationConfigRequest.newBuilder()
+              .setNotificationConfig(NotificationConfig.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      NotificationConfig response = securityCenterClient.updateNotificationConfig(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updatenotificationconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java
new file mode 100644
index 000000000..6b31ecd76
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updatenotificationconfig_notificationconfig_sync]
+import com.google.cloud.securitycenter.v1.NotificationConfig;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncUpdateNotificationConfigNotificationconfig {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateNotificationConfigNotificationconfig();
+  }
+
+  public static void syncUpdateNotificationConfigNotificationconfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
+      NotificationConfig response =
+          securityCenterClient.updateNotificationConfig(notificationConfig);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updatenotificationconfig_notificationconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java
new file mode 100644
index 000000000..72ec82a7d
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updatenotificationconfig_notificationconfigfieldmask_sync]
+import com.google.cloud.securitycenter.v1.NotificationConfig;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateNotificationConfigNotificationconfigFieldmask {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateNotificationConfigNotificationconfigFieldmask();
+  }
+
+  public static void syncUpdateNotificationConfigNotificationconfigFieldmask() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
+      NotificationConfig response =
+          securityCenterClient.updateNotificationConfig(notificationConfig, updateMask);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updatenotificationconfig_notificationconfigfieldmask_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java
new file mode 100644
index 000000000..80cb585f0
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updateorganizationsettings_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.OrganizationSettings;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest;
+import com.google.protobuf.FieldMask;
+
+public class AsyncUpdateOrganizationSettings {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateOrganizationSettings();
+  }
+
+  public static void asyncUpdateOrganizationSettings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateOrganizationSettingsRequest request =
+          UpdateOrganizationSettingsRequest.newBuilder()
+              .setOrganizationSettings(OrganizationSettings.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      ApiFuture future =
+          securityCenterClient.updateOrganizationSettingsCallable().futureCall(request);
+      // Do something.
+      OrganizationSettings response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updateorganizationsettings_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java
new file mode 100644
index 000000000..7004bb783
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updateorganizationsettings_sync]
+import com.google.cloud.securitycenter.v1.OrganizationSettings;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateOrganizationSettings {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateOrganizationSettings();
+  }
+
+  public static void syncUpdateOrganizationSettings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateOrganizationSettingsRequest request =
+          UpdateOrganizationSettingsRequest.newBuilder()
+              .setOrganizationSettings(OrganizationSettings.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      OrganizationSettings response = securityCenterClient.updateOrganizationSettings(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updateorganizationsettings_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java
new file mode 100644
index 000000000..59b7db298
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updateorganizationsettings_organizationsettings_sync]
+import com.google.cloud.securitycenter.v1.OrganizationSettings;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+
+public class SyncUpdateOrganizationSettingsOrganizationsettings {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateOrganizationSettingsOrganizationsettings();
+  }
+
+  public static void syncUpdateOrganizationSettingsOrganizationsettings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationSettings organizationSettings = OrganizationSettings.newBuilder().build();
+      OrganizationSettings response =
+          securityCenterClient.updateOrganizationSettings(organizationSettings);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updateorganizationsettings_organizationsettings_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java
new file mode 100644
index 000000000..2283acd79
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updatesecuritymarks_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SecurityMarks;
+import com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest;
+import com.google.protobuf.FieldMask;
+import com.google.protobuf.Timestamp;
+
+public class AsyncUpdateSecurityMarks {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateSecurityMarks();
+  }
+
+  public static void asyncUpdateSecurityMarks() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateSecurityMarksRequest request =
+          UpdateSecurityMarksRequest.newBuilder()
+              .setSecurityMarks(SecurityMarks.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .setStartTime(Timestamp.newBuilder().build())
+              .build();
+      ApiFuture future =
+          securityCenterClient.updateSecurityMarksCallable().futureCall(request);
+      // Do something.
+      SecurityMarks response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updatesecuritymarks_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java
new file mode 100644
index 000000000..2ff9cd041
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updatesecuritymarks_sync]
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SecurityMarks;
+import com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest;
+import com.google.protobuf.FieldMask;
+import com.google.protobuf.Timestamp;
+
+public class SyncUpdateSecurityMarks {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateSecurityMarks();
+  }
+
+  public static void syncUpdateSecurityMarks() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateSecurityMarksRequest request =
+          UpdateSecurityMarksRequest.newBuilder()
+              .setSecurityMarks(SecurityMarks.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .setStartTime(Timestamp.newBuilder().build())
+              .build();
+      SecurityMarks response = securityCenterClient.updateSecurityMarks(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updatesecuritymarks_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java
new file mode 100644
index 000000000..5db60660e
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updatesecuritymarks_securitymarks_sync]
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.SecurityMarks;
+
+public class SyncUpdateSecurityMarksSecuritymarks {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateSecurityMarksSecuritymarks();
+  }
+
+  public static void syncUpdateSecurityMarksSecuritymarks() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SecurityMarks securityMarks = SecurityMarks.newBuilder().build();
+      SecurityMarks response = securityCenterClient.updateSecurityMarks(securityMarks);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updatesecuritymarks_securitymarks_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/AsyncUpdateSource.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/AsyncUpdateSource.java
new file mode 100644
index 000000000..2c2bf2e9f
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/AsyncUpdateSource.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updatesource_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.Source;
+import com.google.cloud.securitycenter.v1.UpdateSourceRequest;
+import com.google.protobuf.FieldMask;
+
+public class AsyncUpdateSource {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateSource();
+  }
+
+  public static void asyncUpdateSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateSourceRequest request =
+          UpdateSourceRequest.newBuilder()
+              .setSource(Source.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      ApiFuture future = securityCenterClient.updateSourceCallable().futureCall(request);
+      // Do something.
+      Source response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updatesource_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/SyncUpdateSource.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/SyncUpdateSource.java
new file mode 100644
index 000000000..d38c0e678
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/SyncUpdateSource.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updatesource_sync]
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.Source;
+import com.google.cloud.securitycenter.v1.UpdateSourceRequest;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateSource {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateSource();
+  }
+
+  public static void syncUpdateSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateSourceRequest request =
+          UpdateSourceRequest.newBuilder()
+              .setSource(Source.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      Source response = securityCenterClient.updateSource(request);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updatesource_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/SyncUpdateSourceSource.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/SyncUpdateSourceSource.java
new file mode 100644
index 000000000..95a923ad7
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/SyncUpdateSourceSource.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycenterclient_updatesource_source_sync]
+import com.google.cloud.securitycenter.v1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1.Source;
+
+public class SyncUpdateSourceSource {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateSourceSource();
+  }
+
+  public static void syncUpdateSourceSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      Source source = Source.newBuilder().build();
+      Source response = securityCenterClient.updateSource(source);
+    }
+  }
+}
+// [END securitycenter_v1_generated_securitycenterclient_updatesource_source_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycentersettings/createsource/SyncCreateSource.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycentersettings/createsource/SyncCreateSource.java
new file mode 100644
index 000000000..2f743d249
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycentersettings/createsource/SyncCreateSource.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.samples;
+
+// [START securitycenter_v1_generated_securitycentersettings_createsource_sync]
+import com.google.cloud.securitycenter.v1.SecurityCenterSettings;
+import java.time.Duration;
+
+public class SyncCreateSource {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSource();
+  }
+
+  public static void syncCreateSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    SecurityCenterSettings.Builder securityCenterSettingsBuilder =
+        SecurityCenterSettings.newBuilder();
+    securityCenterSettingsBuilder
+        .createSourceSettings()
+        .setRetrySettings(
+            securityCenterSettingsBuilder
+                .createSourceSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    SecurityCenterSettings securityCenterSettings = securityCenterSettingsBuilder.build();
+  }
+}
+// [END securitycenter_v1_generated_securitycentersettings_createsource_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java
new file mode 100644
index 000000000..52d7f414c
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1.stub.samples;
+
+// [START securitycenter_v1_generated_securitycenterstubsettings_createsource_sync]
+import com.google.cloud.securitycenter.v1.stub.SecurityCenterStubSettings;
+import java.time.Duration;
+
+public class SyncCreateSource {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSource();
+  }
+
+  public static void syncCreateSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    SecurityCenterStubSettings.Builder securityCenterSettingsBuilder =
+        SecurityCenterStubSettings.newBuilder();
+    securityCenterSettingsBuilder
+        .createSourceSettings()
+        .setRetrySettings(
+            securityCenterSettingsBuilder
+                .createSourceSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    SecurityCenterStubSettings securityCenterSettings = securityCenterSettingsBuilder.build();
+  }
+}
+// [END securitycenter_v1_generated_securitycenterstubsettings_createsource_sync]
diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java
similarity index 97%
rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java
rename to owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java
index 1c7404ec4..716f555ef 100644
--- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java
+++ b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java
@@ -20,6 +20,7 @@
 import com.google.api.core.ApiFutures;
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.longrunning.OperationsClient;
 import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
@@ -37,7 +38,6 @@
 import com.google.iam.v1.TestIamPermissionsRequest;
 import com.google.iam.v1.TestIamPermissionsResponse;
 import com.google.longrunning.Operation;
-import com.google.longrunning.OperationsClient;
 import com.google.protobuf.Empty;
 import com.google.protobuf.Timestamp;
 import java.io.IOException;
@@ -69,13 +69,13 @@
  * methods:
  *
  * 
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -110,6 +110,20 @@ * SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings); * }
* + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * SecurityCenterSettings securityCenterSettings =
+ *     SecurityCenterSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             SecurityCenterSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi @@ -117,7 +131,8 @@ public class SecurityCenterClient implements BackgroundResource { private final SecurityCenterSettings settings; private final SecurityCenterStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of SecurityCenterClient with default settings. */ public static final SecurityCenterClient create() throws IOException { @@ -149,13 +164,17 @@ public static final SecurityCenterClient create(SecurityCenterStub stub) { protected SecurityCenterClient(SecurityCenterSettings settings) throws IOException { this.settings = settings; this.stub = ((SecurityCenterStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected SecurityCenterClient(SecurityCenterStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final SecurityCenterSettings getSettings() { @@ -170,10 +189,18 @@ public SecurityCenterStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a source. @@ -848,10 +875,10 @@ public final UnaryCallable groupAssetsC * fields. For example: "parent,resource_name". *

The following fields are supported: *

    - *
  • resource_name - *
  • category - *
  • state - *
  • parent + *
  • resource_name + *
  • category + *
  • state + *
  • parent *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -894,10 +921,10 @@ public final GroupFindingsPagedResponse groupFindings(SourceName parent, String * fields. For example: "parent,resource_name". *

The following fields are supported: *

    - *
  • resource_name - *
  • category - *
  • state - *
  • parent + *
  • resource_name + *
  • category + *
  • state + *
  • parent *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -2239,10 +2266,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class GroupAssetsPagedResponse extends AbstractPagedListResponse< - GroupAssetsRequest, - GroupAssetsResponse, - GroupResult, - GroupAssetsPage, + GroupAssetsRequest, GroupAssetsResponse, GroupResult, GroupAssetsPage, GroupAssetsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2289,10 +2313,7 @@ public ApiFuture createPageAsync( public static class GroupAssetsFixedSizeCollection extends AbstractFixedSizeCollection< - GroupAssetsRequest, - GroupAssetsResponse, - GroupResult, - GroupAssetsPage, + GroupAssetsRequest, GroupAssetsResponse, GroupResult, GroupAssetsPage, GroupAssetsFixedSizeCollection> { private GroupAssetsFixedSizeCollection(List pages, int collectionSize) { @@ -2312,10 +2333,7 @@ protected GroupAssetsFixedSizeCollection createCollection( public static class GroupFindingsPagedResponse extends AbstractPagedListResponse< - GroupFindingsRequest, - GroupFindingsResponse, - GroupResult, - GroupFindingsPage, + GroupFindingsRequest, GroupFindingsResponse, GroupResult, GroupFindingsPage, GroupFindingsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2365,10 +2383,7 @@ public ApiFuture createPageAsync( public static class GroupFindingsFixedSizeCollection extends AbstractFixedSizeCollection< - GroupFindingsRequest, - GroupFindingsResponse, - GroupResult, - GroupFindingsPage, + GroupFindingsRequest, GroupFindingsResponse, GroupResult, GroupFindingsPage, GroupFindingsFixedSizeCollection> { private GroupFindingsFixedSizeCollection(List pages, int collectionSize) { @@ -2388,11 +2403,8 @@ protected GroupFindingsFixedSizeCollection createCollection( public static class ListAssetsPagedResponse extends AbstractPagedListResponse< - ListAssetsRequest, - ListAssetsResponse, - ListAssetsResponse.ListAssetsResult, - ListAssetsPage, - ListAssetsFixedSizeCollection> { + ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult, + ListAssetsPage, ListAssetsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -2411,9 +2423,7 @@ private ListAssetsPagedResponse(ListAssetsPage page) { public static class ListAssetsPage extends AbstractPage< - ListAssetsRequest, - ListAssetsResponse, - ListAssetsResponse.ListAssetsResult, + ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult, ListAssetsPage> { private ListAssetsPage( @@ -2446,11 +2456,8 @@ public ApiFuture createPageAsync( public static class ListAssetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListAssetsRequest, - ListAssetsResponse, - ListAssetsResponse.ListAssetsResult, - ListAssetsPage, - ListAssetsFixedSizeCollection> { + ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult, + ListAssetsPage, ListAssetsFixedSizeCollection> { private ListAssetsFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); @@ -2469,10 +2476,7 @@ protected ListAssetsFixedSizeCollection createCollection( public static class ListFindingsPagedResponse extends AbstractPagedListResponse< - ListFindingsRequest, - ListFindingsResponse, - Finding, - ListFindingsPage, + ListFindingsRequest, ListFindingsResponse, Finding, ListFindingsPage, ListFindingsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2521,10 +2525,7 @@ public ApiFuture createPageAsync( public static class ListFindingsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFindingsRequest, - ListFindingsResponse, - Finding, - ListFindingsPage, + ListFindingsRequest, ListFindingsResponse, Finding, ListFindingsPage, ListFindingsFixedSizeCollection> { private ListFindingsFixedSizeCollection(List pages, int collectionSize) { @@ -2544,10 +2545,7 @@ protected ListFindingsFixedSizeCollection createCollection( public static class ListSourcesPagedResponse extends AbstractPagedListResponse< - ListSourcesRequest, - ListSourcesResponse, - Source, - ListSourcesPage, + ListSourcesRequest, ListSourcesResponse, Source, ListSourcesPage, ListSourcesFixedSizeCollection> { public static ApiFuture createAsync( @@ -2594,10 +2592,7 @@ public ApiFuture createPageAsync( public static class ListSourcesFixedSizeCollection extends AbstractFixedSizeCollection< - ListSourcesRequest, - ListSourcesResponse, - Source, - ListSourcesPage, + ListSourcesRequest, ListSourcesResponse, Source, ListSourcesPage, ListSourcesFixedSizeCollection> { private ListSourcesFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterSettings.java b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterSettings.java similarity index 93% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterSettings.java rename to owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterSettings.java index b9fff807b..88ae66df0 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterSettings.java @@ -27,11 +27,13 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.securitycenter.v1beta1.stub.SecurityCenterStubSettings; @@ -53,10 +55,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (securitycenter.googleapis.com) and default port (443) are + *
  • The default service address (securitycenter.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -215,11 +217,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return SecurityCenterStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return SecurityCenterStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SecurityCenterStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return SecurityCenterStubSettings.defaultTransportChannelProvider(); } @@ -229,11 +238,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return SecurityCenterStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -271,6 +286,11 @@ private static Builder createDefault() { return new Builder(SecurityCenterStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(SecurityCenterStubSettings.newHttpJsonBuilder()); + } + public SecurityCenterStubSettings.Builder getStubSettingsBuilder() { return ((SecurityCenterStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/gapic_metadata.json b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/gapic_metadata.json similarity index 100% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/gapic_metadata.json rename to owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/gapic_metadata.json diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/package-info.java b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/package-info.java similarity index 100% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/package-info.java rename to owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/package-info.java diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterCallableFactory.java similarity index 100% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterCallableFactory.java rename to owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterCallableFactory.java diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterStub.java b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterStub.java similarity index 99% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterStub.java rename to owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterStub.java index a3b3b9f98..bd9a214fd 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterStub.java @@ -66,6 +66,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/HttpJsonSecurityCenterCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/HttpJsonSecurityCenterCallableFactory.java new file mode 100644 index 000000000..7a018a9b8 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/HttpJsonSecurityCenterCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the SecurityCenter service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSecurityCenterCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/HttpJsonSecurityCenterStub.java b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/HttpJsonSecurityCenterStub.java new file mode 100644 index 000000000..3456d22fe --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/HttpJsonSecurityCenterStub.java @@ -0,0 +1,1215 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.stub; + +import static com.google.cloud.securitycenter.v1beta1.SecurityCenterClient.GroupAssetsPagedResponse; +import static com.google.cloud.securitycenter.v1beta1.SecurityCenterClient.GroupFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1beta1.SecurityCenterClient.ListAssetsPagedResponse; +import static com.google.cloud.securitycenter.v1beta1.SecurityCenterClient.ListFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1beta1.SecurityCenterClient.ListSourcesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.securitycenter.v1beta1.CreateFindingRequest; +import com.google.cloud.securitycenter.v1beta1.CreateSourceRequest; +import com.google.cloud.securitycenter.v1beta1.Finding; +import com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1beta1.GetSourceRequest; +import com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest; +import com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse; +import com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest; +import com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse; +import com.google.cloud.securitycenter.v1beta1.ListAssetsRequest; +import com.google.cloud.securitycenter.v1beta1.ListAssetsResponse; +import com.google.cloud.securitycenter.v1beta1.ListFindingsRequest; +import com.google.cloud.securitycenter.v1beta1.ListFindingsResponse; +import com.google.cloud.securitycenter.v1beta1.ListSourcesRequest; +import com.google.cloud.securitycenter.v1beta1.ListSourcesResponse; +import com.google.cloud.securitycenter.v1beta1.OrganizationSettings; +import com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest; +import com.google.cloud.securitycenter.v1beta1.SecurityMarks; +import com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest; +import com.google.cloud.securitycenter.v1beta1.Source; +import com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest; +import com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest; +import com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the SecurityCenter service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSecurityCenterStub extends SecurityCenterStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder().add(Empty.getDescriptor()).build(); + + private static final ApiMethodDescriptor + createSourceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1beta1.SecurityCenter/CreateSource") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=organizations/*}/sources", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("source", request.getSource())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Source.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createFindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1beta1.SecurityCenter/CreateFinding") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=organizations/*/sources/*}/findings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "findingId", request.getFindingId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("finding", request.getFinding())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Finding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1beta1.SecurityCenter/GetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{resource=organizations/*/sources/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getOrganizationSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1beta1.SecurityCenter/GetOrganizationSettings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=organizations/*/organizationSettings}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(OrganizationSettings.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getSourceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1beta1.SecurityCenter/GetSource") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=organizations/*/sources/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Source.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + groupAssetsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1beta1.SecurityCenter/GroupAssets") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=organizations/*}/assets:group", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(GroupAssetsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + groupFindingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1beta1.SecurityCenter/GroupFindings") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=organizations/*/sources/*}/findings:group", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(GroupFindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listAssetsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1beta1.SecurityCenter/ListAssets") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=organizations/*}/assets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "compareDuration", request.getCompareDuration()); + serializer.putQueryParam(fields, "fieldMask", request.getFieldMask()); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "readTime", request.getReadTime()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAssetsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listFindingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1beta1.SecurityCenter/ListFindings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=organizations/*/sources/*}/findings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "fieldMask", request.getFieldMask()); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "readTime", request.getReadTime()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListFindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listSourcesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1beta1.SecurityCenter/ListSources") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=organizations/*}/sources", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSourcesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + runAssetDiscoveryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1beta1.SecurityCenter/RunAssetDiscovery") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=organizations/*}/assets:runDiscovery", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (RunAssetDiscoveryRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + setFindingStateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1beta1.SecurityCenter/SetFindingState") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=organizations/*/sources/*/findings/*}:setState", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Finding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1beta1.SecurityCenter/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{resource=organizations/*/sources/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1beta1.SecurityCenter/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{resource=organizations/*/sources/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateFindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1beta1.SecurityCenter/UpdateFinding") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{finding.name=organizations/*/sources/*/findings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "finding.name", request.getFinding().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("finding", request.getFinding())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Finding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateOrganizationSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1beta1.SecurityCenter/UpdateOrganizationSettings") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{organizationSettings.name=organizations/*/organizationSettings}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "organizationSettings.name", + request.getOrganizationSettings().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "organizationSettings", request.getOrganizationSettings())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(OrganizationSettings.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateSourceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1beta1.SecurityCenter/UpdateSource") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{source.name=organizations/*/sources/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "source.name", request.getSource().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("source", request.getSource())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Source.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateSecurityMarksMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1beta1.SecurityCenter/UpdateSecurityMarks") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{securityMarks.name=organizations/*/assets/*/securityMarks}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "securityMarks.name", request.getSecurityMarks().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1beta1/{securityMarks.name=organizations/*/sources/*/findings/*/securityMarks}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "startTime", request.getStartTime()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("securityMarks", request.getSecurityMarks())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SecurityMarks.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createSourceCallable; + private final UnaryCallable createFindingCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + getOrganizationSettingsCallable; + private final UnaryCallable getSourceCallable; + private final UnaryCallable groupAssetsCallable; + private final UnaryCallable + groupAssetsPagedCallable; + private final UnaryCallable groupFindingsCallable; + private final UnaryCallable + groupFindingsPagedCallable; + private final UnaryCallable listAssetsCallable; + private final UnaryCallable listAssetsPagedCallable; + private final UnaryCallable listFindingsCallable; + private final UnaryCallable + listFindingsPagedCallable; + private final UnaryCallable listSourcesCallable; + private final UnaryCallable + listSourcesPagedCallable; + private final UnaryCallable runAssetDiscoveryCallable; + private final OperationCallable + runAssetDiscoveryOperationCallable; + private final UnaryCallable setFindingStateCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + private final UnaryCallable updateFindingCallable; + private final UnaryCallable + updateOrganizationSettingsCallable; + private final UnaryCallable updateSourceCallable; + private final UnaryCallable + updateSecurityMarksCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSecurityCenterStub create(SecurityCenterStubSettings settings) + throws IOException { + return new HttpJsonSecurityCenterStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSecurityCenterStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSecurityCenterStub( + SecurityCenterStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSecurityCenterStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSecurityCenterStub( + SecurityCenterStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonSecurityCenterStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSecurityCenterStub( + SecurityCenterStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonSecurityCenterCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSecurityCenterStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSecurityCenterStub( + SecurityCenterStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings createSourceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSourceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createFindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createFindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getOrganizationSettingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getOrganizationSettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getSourceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSourceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings groupAssetsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(groupAssetsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + groupFindingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(groupFindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listAssetsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAssetsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listFindingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listFindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listSourcesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSourcesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings runAssetDiscoveryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(runAssetDiscoveryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setFindingStateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setFindingStateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateFindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateFindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateOrganizationSettingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(updateOrganizationSettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateSourceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSourceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateSecurityMarksTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSecurityMarksMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createSourceCallable = + callableFactory.createUnaryCallable( + createSourceTransportSettings, settings.createSourceSettings(), clientContext); + this.createFindingCallable = + callableFactory.createUnaryCallable( + createFindingTransportSettings, settings.createFindingSettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.getOrganizationSettingsCallable = + callableFactory.createUnaryCallable( + getOrganizationSettingsTransportSettings, + settings.getOrganizationSettingsSettings(), + clientContext); + this.getSourceCallable = + callableFactory.createUnaryCallable( + getSourceTransportSettings, settings.getSourceSettings(), clientContext); + this.groupAssetsCallable = + callableFactory.createUnaryCallable( + groupAssetsTransportSettings, settings.groupAssetsSettings(), clientContext); + this.groupAssetsPagedCallable = + callableFactory.createPagedCallable( + groupAssetsTransportSettings, settings.groupAssetsSettings(), clientContext); + this.groupFindingsCallable = + callableFactory.createUnaryCallable( + groupFindingsTransportSettings, settings.groupFindingsSettings(), clientContext); + this.groupFindingsPagedCallable = + callableFactory.createPagedCallable( + groupFindingsTransportSettings, settings.groupFindingsSettings(), clientContext); + this.listAssetsCallable = + callableFactory.createUnaryCallable( + listAssetsTransportSettings, settings.listAssetsSettings(), clientContext); + this.listAssetsPagedCallable = + callableFactory.createPagedCallable( + listAssetsTransportSettings, settings.listAssetsSettings(), clientContext); + this.listFindingsCallable = + callableFactory.createUnaryCallable( + listFindingsTransportSettings, settings.listFindingsSettings(), clientContext); + this.listFindingsPagedCallable = + callableFactory.createPagedCallable( + listFindingsTransportSettings, settings.listFindingsSettings(), clientContext); + this.listSourcesCallable = + callableFactory.createUnaryCallable( + listSourcesTransportSettings, settings.listSourcesSettings(), clientContext); + this.listSourcesPagedCallable = + callableFactory.createPagedCallable( + listSourcesTransportSettings, settings.listSourcesSettings(), clientContext); + this.runAssetDiscoveryCallable = + callableFactory.createUnaryCallable( + runAssetDiscoveryTransportSettings, + settings.runAssetDiscoverySettings(), + clientContext); + this.runAssetDiscoveryOperationCallable = + callableFactory.createOperationCallable( + runAssetDiscoveryTransportSettings, + settings.runAssetDiscoveryOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.setFindingStateCallable = + callableFactory.createUnaryCallable( + setFindingStateTransportSettings, settings.setFindingStateSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + this.updateFindingCallable = + callableFactory.createUnaryCallable( + updateFindingTransportSettings, settings.updateFindingSettings(), clientContext); + this.updateOrganizationSettingsCallable = + callableFactory.createUnaryCallable( + updateOrganizationSettingsTransportSettings, + settings.updateOrganizationSettingsSettings(), + clientContext); + this.updateSourceCallable = + callableFactory.createUnaryCallable( + updateSourceTransportSettings, settings.updateSourceSettings(), clientContext); + this.updateSecurityMarksCallable = + callableFactory.createUnaryCallable( + updateSecurityMarksTransportSettings, + settings.updateSecurityMarksSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createSourceMethodDescriptor); + methodDescriptors.add(createFindingMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(getOrganizationSettingsMethodDescriptor); + methodDescriptors.add(getSourceMethodDescriptor); + methodDescriptors.add(groupAssetsMethodDescriptor); + methodDescriptors.add(groupFindingsMethodDescriptor); + methodDescriptors.add(listAssetsMethodDescriptor); + methodDescriptors.add(listFindingsMethodDescriptor); + methodDescriptors.add(listSourcesMethodDescriptor); + methodDescriptors.add(runAssetDiscoveryMethodDescriptor); + methodDescriptors.add(setFindingStateMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + methodDescriptors.add(updateFindingMethodDescriptor); + methodDescriptors.add(updateOrganizationSettingsMethodDescriptor); + methodDescriptors.add(updateSourceMethodDescriptor); + methodDescriptors.add(updateSecurityMarksMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable createSourceCallable() { + return createSourceCallable; + } + + @Override + public UnaryCallable createFindingCallable() { + return createFindingCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + getOrganizationSettingsCallable() { + return getOrganizationSettingsCallable; + } + + @Override + public UnaryCallable getSourceCallable() { + return getSourceCallable; + } + + @Override + public UnaryCallable groupAssetsCallable() { + return groupAssetsCallable; + } + + @Override + public UnaryCallable groupAssetsPagedCallable() { + return groupAssetsPagedCallable; + } + + @Override + public UnaryCallable groupFindingsCallable() { + return groupFindingsCallable; + } + + @Override + public UnaryCallable + groupFindingsPagedCallable() { + return groupFindingsPagedCallable; + } + + @Override + public UnaryCallable listAssetsCallable() { + return listAssetsCallable; + } + + @Override + public UnaryCallable listAssetsPagedCallable() { + return listAssetsPagedCallable; + } + + @Override + public UnaryCallable listFindingsCallable() { + return listFindingsCallable; + } + + @Override + public UnaryCallable listFindingsPagedCallable() { + return listFindingsPagedCallable; + } + + @Override + public UnaryCallable listSourcesCallable() { + return listSourcesCallable; + } + + @Override + public UnaryCallable listSourcesPagedCallable() { + return listSourcesPagedCallable; + } + + @Override + public UnaryCallable runAssetDiscoveryCallable() { + return runAssetDiscoveryCallable; + } + + @Override + public OperationCallable + runAssetDiscoveryOperationCallable() { + return runAssetDiscoveryOperationCallable; + } + + @Override + public UnaryCallable setFindingStateCallable() { + return setFindingStateCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public UnaryCallable updateFindingCallable() { + return updateFindingCallable; + } + + @Override + public UnaryCallable + updateOrganizationSettingsCallable() { + return updateOrganizationSettingsCallable; + } + + @Override + public UnaryCallable updateSourceCallable() { + return updateSourceCallable; + } + + @Override + public UnaryCallable updateSecurityMarksCallable() { + return updateSecurityMarksCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStub.java b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStub.java similarity index 98% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStub.java rename to owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStub.java index 4947c7f6d..1072f47bb 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStub.java @@ -71,7 +71,11 @@ public abstract class SecurityCenterStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public UnaryCallable createSourceCallable() { diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java similarity index 95% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java rename to owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java index 67255e571..1354f2c1e 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java @@ -32,6 +32,9 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; @@ -96,10 +99,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (securitycenter.googleapis.com) and default port (443) are + *
  • The default service address (securitycenter.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -544,6 +547,11 @@ public SecurityCenterStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcSecurityCenterStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSecurityCenterStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -576,18 +584,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(SecurityCenterStubSettings.class)) @@ -595,11 +610,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SecurityCenterStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SecurityCenterStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -852,6 +886,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createSourceSettings() diff --git a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenter.java b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenter.java similarity index 100% rename from google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenter.java rename to owl-bot-staging/v1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenter.java diff --git a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenterImpl.java b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenterImpl.java similarity index 100% rename from google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenterImpl.java rename to owl-bot-staging/v1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenterImpl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientHttpJsonTest.java b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientHttpJsonTest.java new file mode 100644 index 000000000..3577b9916 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientHttpJsonTest.java @@ -0,0 +1,1623 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1; + +import static com.google.cloud.securitycenter.v1beta1.SecurityCenterClient.GroupAssetsPagedResponse; +import static com.google.cloud.securitycenter.v1beta1.SecurityCenterClient.GroupFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1beta1.SecurityCenterClient.ListAssetsPagedResponse; +import static com.google.cloud.securitycenter.v1beta1.SecurityCenterClient.ListFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1beta1.SecurityCenterClient.ListSourcesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.securitycenter.v1beta1.stub.HttpJsonSecurityCenterStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.Policy; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Duration; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.protobuf.Value; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SecurityCenterClientHttpJsonTest { + private static MockHttpService mockService; + private static SecurityCenterClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSecurityCenterStub.getMethodDescriptors(), + SecurityCenterSettings.getDefaultEndpoint()); + SecurityCenterSettings settings = + SecurityCenterSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SecurityCenterSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SecurityCenterClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createSourceTest() throws Exception { + Source expectedResponse = + Source.newBuilder() + .setName(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + Source source = Source.newBuilder().build(); + + Source actualResponse = client.createSource(parent, source); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSourceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + Source source = Source.newBuilder().build(); + client.createSource(parent, source); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSourceTest2() throws Exception { + Source expectedResponse = + Source.newBuilder() + .setName(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8287"; + Source source = Source.newBuilder().build(); + + Source actualResponse = client.createSource(parent, source); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSourceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + Source source = Source.newBuilder().build(); + client.createSource(parent, source); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFindingTest() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName(FindingName.of("[ORGANIZATION]", "[SOURCE]", "[FINDING]").toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + String findingId = "findingId439150212"; + Finding finding = Finding.newBuilder().build(); + + Finding actualResponse = client.createFinding(parent, findingId, finding); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createFindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + String findingId = "findingId439150212"; + Finding finding = Finding.newBuilder().build(); + client.createFinding(parent, findingId, finding); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFindingTest2() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName(FindingName.of("[ORGANIZATION]", "[SOURCE]", "[FINDING]").toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8741/sources/source-8741"; + String findingId = "findingId439150212"; + Finding finding = Finding.newBuilder().build(); + + Finding actualResponse = client.createFinding(parent, findingId, finding); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createFindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8741/sources/source-8741"; + String findingId = "findingId439150212"; + Finding finding = Finding.newBuilder().build(); + client.createFinding(parent, findingId, finding); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "organizations/organization-3393/sources/source-3393"; + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "organizations/organization-3393/sources/source-3393"; + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOrganizationSettingsTest() throws Exception { + OrganizationSettings expectedResponse = + OrganizationSettings.newBuilder() + .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString()) + .setEnableAssetDiscovery(true) + .setAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationSettingsName name = OrganizationSettingsName.of("[ORGANIZATION]"); + + OrganizationSettings actualResponse = client.getOrganizationSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getOrganizationSettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationSettingsName name = OrganizationSettingsName.of("[ORGANIZATION]"); + client.getOrganizationSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOrganizationSettingsTest2() throws Exception { + OrganizationSettings expectedResponse = + OrganizationSettings.newBuilder() + .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString()) + .setEnableAssetDiscovery(true) + .setAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-9995/organizationSettings"; + + OrganizationSettings actualResponse = client.getOrganizationSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getOrganizationSettingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "organizations/organization-9995/organizationSettings"; + client.getOrganizationSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSourceTest() throws Exception { + Source expectedResponse = + Source.newBuilder() + .setName(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .build(); + mockService.addResponse(expectedResponse); + + SourceName name = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + + Source actualResponse = client.getSource(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSourceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SourceName name = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + client.getSource(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSourceTest2() throws Exception { + Source expectedResponse = + Source.newBuilder() + .setName(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-7292/sources/source-7292"; + + Source actualResponse = client.getSource(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSourceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "organizations/organization-7292/sources/source-7292"; + client.getSource(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void groupAssetsTest() throws Exception { + GroupResult responsesElement = GroupResult.newBuilder().build(); + GroupAssetsResponse expectedResponse = + GroupAssetsResponse.newBuilder() + .setNextPageToken("") + .addAllGroupByResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + GroupAssetsRequest request = + GroupAssetsRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setFilter("filter-1274492040") + .setGroupBy("groupBy293428022") + .setCompareDuration(Duration.newBuilder().build()) + .setReadTime(Timestamp.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + + GroupAssetsPagedResponse pagedListResponse = client.groupAssets(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGroupByResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void groupAssetsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GroupAssetsRequest request = + GroupAssetsRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setFilter("filter-1274492040") + .setGroupBy("groupBy293428022") + .setCompareDuration(Duration.newBuilder().build()) + .setReadTime(Timestamp.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + client.groupAssets(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void groupFindingsTest() throws Exception { + GroupResult responsesElement = GroupResult.newBuilder().build(); + GroupFindingsResponse expectedResponse = + GroupFindingsResponse.newBuilder() + .setNextPageToken("") + .addAllGroupByResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + String groupBy = "groupBy293428022"; + + GroupFindingsPagedResponse pagedListResponse = client.groupFindings(parent, groupBy); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGroupByResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void groupFindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + String groupBy = "groupBy293428022"; + client.groupFindings(parent, groupBy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void groupFindingsTest2() throws Exception { + GroupResult responsesElement = GroupResult.newBuilder().build(); + GroupFindingsResponse expectedResponse = + GroupFindingsResponse.newBuilder() + .setNextPageToken("") + .addAllGroupByResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8741/sources/source-8741"; + String groupBy = "groupBy293428022"; + + GroupFindingsPagedResponse pagedListResponse = client.groupFindings(parent, groupBy); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGroupByResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void groupFindingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8741/sources/source-8741"; + String groupBy = "groupBy293428022"; + client.groupFindings(parent, groupBy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAssetsTest() throws Exception { + ListAssetsResponse.ListAssetsResult responsesElement = + ListAssetsResponse.ListAssetsResult.newBuilder().build(); + ListAssetsResponse expectedResponse = + ListAssetsResponse.newBuilder() + .setNextPageToken("") + .addAllListAssetsResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListAssetsRequest request = + ListAssetsRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReadTime(Timestamp.newBuilder().build()) + .setCompareDuration(Duration.newBuilder().build()) + .setFieldMask(FieldMask.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + + ListAssetsPagedResponse pagedListResponse = client.listAssets(request); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getListAssetsResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAssetsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListAssetsRequest request = + ListAssetsRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReadTime(Timestamp.newBuilder().build()) + .setCompareDuration(Duration.newBuilder().build()) + .setFieldMask(FieldMask.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + client.listAssets(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFindingsTest() throws Exception { + Finding responsesElement = Finding.newBuilder().build(); + ListFindingsResponse expectedResponse = + ListFindingsResponse.newBuilder() + .setNextPageToken("") + .addAllFindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListFindingsRequest request = + ListFindingsRequest.newBuilder() + .setParent(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReadTime(Timestamp.newBuilder().build()) + .setFieldMask(FieldMask.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + + ListFindingsPagedResponse pagedListResponse = client.listFindings(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFindingsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listFindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListFindingsRequest request = + ListFindingsRequest.newBuilder() + .setParent(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReadTime(Timestamp.newBuilder().build()) + .setFieldMask(FieldMask.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + client.listFindings(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSourcesTest() throws Exception { + Source responsesElement = Source.newBuilder().build(); + ListSourcesResponse expectedResponse = + ListSourcesResponse.newBuilder() + .setNextPageToken("") + .addAllSources(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + + ListSourcesPagedResponse pagedListResponse = client.listSources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSourcesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSourcesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + client.listSources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSourcesTest2() throws Exception { + Source responsesElement = Source.newBuilder().build(); + ListSourcesResponse expectedResponse = + ListSourcesResponse.newBuilder() + .setNextPageToken("") + .addAllSources(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8287"; + + ListSourcesPagedResponse pagedListResponse = client.listSources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSourcesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSourcesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + client.listSources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void runAssetDiscoveryTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("runAssetDiscoveryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + + client.runAssetDiscoveryAsync(parent).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runAssetDiscoveryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + client.runAssetDiscoveryAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void runAssetDiscoveryTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("runAssetDiscoveryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "organizations/organization-8287"; + + client.runAssetDiscoveryAsync(parent).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runAssetDiscoveryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + client.runAssetDiscoveryAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void setFindingStateTest() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName(FindingName.of("[ORGANIZATION]", "[SOURCE]", "[FINDING]").toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + FindingName name = FindingName.of("[ORGANIZATION]", "[SOURCE]", "[FINDING]"); + Finding.State state = Finding.State.forNumber(0); + Timestamp startTime = Timestamp.newBuilder().build(); + + Finding actualResponse = client.setFindingState(name, state, startTime); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setFindingStateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FindingName name = FindingName.of("[ORGANIZATION]", "[SOURCE]", "[FINDING]"); + Finding.State state = Finding.State.forNumber(0); + Timestamp startTime = Timestamp.newBuilder().build(); + client.setFindingState(name, state, startTime); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setFindingStateTest2() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName(FindingName.of("[ORGANIZATION]", "[SOURCE]", "[FINDING]").toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-9392/sources/source-9392/findings/finding-9392"; + Finding.State state = Finding.State.forNumber(0); + Timestamp startTime = Timestamp.newBuilder().build(); + + Finding actualResponse = client.setFindingState(name, state, startTime); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setFindingStateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "organizations/organization-9392/sources/source-9392/findings/finding-9392"; + Finding.State state = Finding.State.forNumber(0); + Timestamp startTime = Timestamp.newBuilder().build(); + client.setFindingState(name, state, startTime); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "organizations/organization-3393/sources/source-3393"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "organizations/organization-3393/sources/source-3393"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest2() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String resource = "organizations/organization-3393/sources/source-3393"; + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "organizations/organization-3393/sources/source-3393"; + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateFindingTest() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName(FindingName.of("[ORGANIZATION]", "[SOURCE]", "[FINDING]").toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Finding finding = + Finding.newBuilder() + .setName(FindingName.of("[ORGANIZATION]", "[SOURCE]", "[FINDING]").toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + + Finding actualResponse = client.updateFinding(finding); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateFindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Finding finding = + Finding.newBuilder() + .setName(FindingName.of("[ORGANIZATION]", "[SOURCE]", "[FINDING]").toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + client.updateFinding(finding); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateOrganizationSettingsTest() throws Exception { + OrganizationSettings expectedResponse = + OrganizationSettings.newBuilder() + .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString()) + .setEnableAssetDiscovery(true) + .setAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationSettings organizationSettings = + OrganizationSettings.newBuilder() + .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString()) + .setEnableAssetDiscovery(true) + .setAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig.newBuilder().build()) + .build(); + + OrganizationSettings actualResponse = client.updateOrganizationSettings(organizationSettings); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateOrganizationSettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationSettings organizationSettings = + OrganizationSettings.newBuilder() + .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString()) + .setEnableAssetDiscovery(true) + .setAssetDiscoveryConfig( + OrganizationSettings.AssetDiscoveryConfig.newBuilder().build()) + .build(); + client.updateOrganizationSettings(organizationSettings); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSourceTest() throws Exception { + Source expectedResponse = + Source.newBuilder() + .setName(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .build(); + mockService.addResponse(expectedResponse); + + Source source = + Source.newBuilder() + .setName(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .build(); + + Source actualResponse = client.updateSource(source); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateSourceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Source source = + Source.newBuilder() + .setName(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .build(); + client.updateSource(source); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSecurityMarksTest() throws Exception { + SecurityMarks expectedResponse = + SecurityMarks.newBuilder() + .setName("name3373707") + .putAllMarks(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + SecurityMarks securityMarks = + SecurityMarks.newBuilder() + .setName("organizations/organization-5924/assets/asset-5924/securityMarks") + .putAllMarks(new HashMap()) + .build(); + + SecurityMarks actualResponse = client.updateSecurityMarks(securityMarks); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateSecurityMarksExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SecurityMarks securityMarks = + SecurityMarks.newBuilder() + .setName("organizations/organization-5924/assets/asset-5924/securityMarks") + .putAllMarks(new HashMap()) + .build(); + client.updateSecurityMarks(securityMarks); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientTest.java b/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientTest.java similarity index 100% rename from google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientTest.java rename to owl-bot-staging/v1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientTest.java diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java new file mode 100644 index 000000000..ad339d3bd --- /dev/null +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java @@ -0,0 +1,1813 @@ +package com.google.cloud.securitycenter.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * V1 Beta APIs for Security Center service.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SecurityCenterGrpc { + + private SecurityCenterGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.securitycenter.v1beta1.SecurityCenter"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateSourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSource", + requestType = com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.Source.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSourceMethod() { + io.grpc.MethodDescriptor getCreateSourceMethod; + if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { + SecurityCenterGrpc.getCreateSourceMethod = getCreateSourceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("CreateSource")) + .build(); + } + } + } + return getCreateSourceMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFinding", + requestType = com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateFindingMethod() { + io.grpc.MethodDescriptor getCreateFindingMethod; + if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { + SecurityCenterGrpc.getCreateFindingMethod = getCreateFindingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("CreateFinding")) + .build(); + } + } + } + return getCreateFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { + io.grpc.MethodDescriptor getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { + SecurityCenterGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetOrganizationSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOrganizationSettings", + requestType = com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.OrganizationSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetOrganizationSettingsMethod() { + io.grpc.MethodDescriptor getGetOrganizationSettingsMethod; + if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) == null) { + SecurityCenterGrpc.getGetOrganizationSettingsMethod = getGetOrganizationSettingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOrganizationSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetOrganizationSettings")) + .build(); + } + } + } + return getGetOrganizationSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSource", + requestType = com.google.cloud.securitycenter.v1beta1.GetSourceRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.Source.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSourceMethod() { + io.grpc.MethodDescriptor getGetSourceMethod; + if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { + SecurityCenterGrpc.getGetSourceMethod = getGetSourceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.GetSourceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetSource")) + .build(); + } + } + } + return getGetSourceMethod; + } + + private static volatile io.grpc.MethodDescriptor getGroupAssetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GroupAssets", + requestType = com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGroupAssetsMethod() { + io.grpc.MethodDescriptor getGroupAssetsMethod; + if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { + SecurityCenterGrpc.getGroupAssetsMethod = getGroupAssetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GroupAssets")) + .build(); + } + } + } + return getGroupAssetsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGroupFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GroupFindings", + requestType = com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGroupFindingsMethod() { + io.grpc.MethodDescriptor getGroupFindingsMethod; + if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { + SecurityCenterGrpc.getGroupFindingsMethod = getGroupFindingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GroupFindings")) + .build(); + } + } + } + return getGroupFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListAssetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAssets", + requestType = com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListAssetsMethod() { + io.grpc.MethodDescriptor getListAssetsMethod; + if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { + SecurityCenterGrpc.getListAssetsMethod = getListAssetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListAssets")) + .build(); + } + } + } + return getListAssetsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindings", + requestType = com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFindingsMethod() { + io.grpc.MethodDescriptor getListFindingsMethod; + if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { + SecurityCenterGrpc.getListFindingsMethod = getListFindingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListFindings")) + .build(); + } + } + } + return getListFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSources", + requestType = com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSourcesMethod() { + io.grpc.MethodDescriptor getListSourcesMethod; + if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { + SecurityCenterGrpc.getListSourcesMethod = getListSourcesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListSources")) + .build(); + } + } + } + return getListSourcesMethod; + } + + private static volatile io.grpc.MethodDescriptor getRunAssetDiscoveryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RunAssetDiscovery", + requestType = com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRunAssetDiscoveryMethod() { + io.grpc.MethodDescriptor getRunAssetDiscoveryMethod; + if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { + SecurityCenterGrpc.getRunAssetDiscoveryMethod = getRunAssetDiscoveryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunAssetDiscovery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("RunAssetDiscovery")) + .build(); + } + } + } + return getRunAssetDiscoveryMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetFindingStateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetFindingState", + requestType = com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetFindingStateMethod() { + io.grpc.MethodDescriptor getSetFindingStateMethod; + if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { + SecurityCenterGrpc.getSetFindingStateMethod = getSetFindingStateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetFindingState")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("SetFindingState")) + .build(); + } + } + } + return getSetFindingStateMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { + io.grpc.MethodDescriptor getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { + SecurityCenterGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) == null) { + SecurityCenterGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFinding", + requestType = com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateFindingMethod() { + io.grpc.MethodDescriptor getUpdateFindingMethod; + if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { + SecurityCenterGrpc.getUpdateFindingMethod = getUpdateFindingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateFinding")) + .build(); + } + } + } + return getUpdateFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateOrganizationSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateOrganizationSettings", + requestType = com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.OrganizationSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateOrganizationSettingsMethod() { + io.grpc.MethodDescriptor getUpdateOrganizationSettingsMethod; + if ((getUpdateOrganizationSettingsMethod = SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateOrganizationSettingsMethod = SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) == null) { + SecurityCenterGrpc.getUpdateOrganizationSettingsMethod = getUpdateOrganizationSettingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateOrganizationSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateOrganizationSettings")) + .build(); + } + } + } + return getUpdateOrganizationSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSource", + requestType = com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.Source.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSourceMethod() { + io.grpc.MethodDescriptor getUpdateSourceMethod; + if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { + SecurityCenterGrpc.getUpdateSourceMethod = getUpdateSourceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateSource")) + .build(); + } + } + } + return getUpdateSourceMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSecurityMarksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSecurityMarks", + requestType = com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.SecurityMarks.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSecurityMarksMethod() { + io.grpc.MethodDescriptor getUpdateSecurityMarksMethod; + if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) == null) { + SecurityCenterGrpc.getUpdateSecurityMarksMethod = getUpdateSecurityMarksMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSecurityMarks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateSecurityMarks")) + .build(); + } + } + } + return getUpdateSecurityMarksMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SecurityCenterStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterStub(channel, callOptions); + } + }; + return SecurityCenterStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SecurityCenterBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterBlockingStub(channel, callOptions); + } + }; + return SecurityCenterBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SecurityCenterFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterFutureStub(channel, callOptions); + } + }; + return SecurityCenterFutureStub.newStub(factory, channel); + } + + /** + *
+   * V1 Beta APIs for Security Center service.
+   * 
+ */ + public static abstract class SecurityCenterImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a source.
+     * 
+ */ + public void createSource(com.google.cloud.securitycenter.v1beta1.CreateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSourceMethod(), responseObserver); + } + + /** + *
+     * Creates a finding. The corresponding source must exist for finding creation
+     * to succeed.
+     * 
+ */ + public void createFinding(com.google.cloud.securitycenter.v1beta1.CreateFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFindingMethod(), responseObserver); + } + + /** + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Gets the settings for an organization.
+     * 
+ */ + public void getOrganizationSettings(com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOrganizationSettingsMethod(), responseObserver); + } + + /** + *
+     * Gets a source.
+     * 
+ */ + public void getSource(com.google.cloud.securitycenter.v1beta1.GetSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSourceMethod(), responseObserver); + } + + /** + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public void groupAssets(com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGroupAssetsMethod(), responseObserver); + } + + /** + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public void groupFindings(com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGroupFindingsMethod(), responseObserver); + } + + /** + *
+     * Lists an organization's assets.
+     * 
+ */ + public void listAssets(com.google.cloud.securitycenter.v1beta1.ListAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver); + } + + /** + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public void listFindings(com.google.cloud.securitycenter.v1beta1.ListFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingsMethod(), responseObserver); + } + + /** + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public void listSources(com.google.cloud.securitycenter.v1beta1.ListSourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSourcesMethod(), responseObserver); + } + + /** + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public void runAssetDiscovery(com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunAssetDiscoveryMethod(), responseObserver); + } + + /** + *
+     * Updates the state of a finding.
+     * 
+ */ + public void setFindingState(com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetFindingStateMethod(), responseObserver); + } + + /** + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); + } + + /** + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public void updateFinding(com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFindingMethod(), responseObserver); + } + + /** + *
+     * Updates an organization's settings.
+     * 
+ */ + public void updateOrganizationSettings(com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateOrganizationSettingsMethod(), responseObserver); + } + + /** + *
+     * Updates a source.
+     * 
+ */ + public void updateSource(com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSourceMethod(), responseObserver); + } + + /** + *
+     * Updates security marks.
+     * 
+ */ + public void updateSecurityMarks(com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSecurityMarksMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateSourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest, + com.google.cloud.securitycenter.v1beta1.Source>( + this, METHODID_CREATE_SOURCE))) + .addMethod( + getCreateFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest, + com.google.cloud.securitycenter.v1beta1.Finding>( + this, METHODID_CREATE_FINDING))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getGetOrganizationSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings>( + this, METHODID_GET_ORGANIZATION_SETTINGS))) + .addMethod( + getGetSourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.GetSourceRequest, + com.google.cloud.securitycenter.v1beta1.Source>( + this, METHODID_GET_SOURCE))) + .addMethod( + getGroupAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse>( + this, METHODID_GROUP_ASSETS))) + .addMethod( + getGroupFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse>( + this, METHODID_GROUP_FINDINGS))) + .addMethod( + getListAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest, + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse>( + this, METHODID_LIST_ASSETS))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest, + com.google.cloud.securitycenter.v1beta1.ListFindingsResponse>( + this, METHODID_LIST_FINDINGS))) + .addMethod( + getListSourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest, + com.google.cloud.securitycenter.v1beta1.ListSourcesResponse>( + this, METHODID_LIST_SOURCES))) + .addMethod( + getRunAssetDiscoveryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation>( + this, METHODID_RUN_ASSET_DISCOVERY))) + .addMethod( + getSetFindingStateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1beta1.Finding>( + this, METHODID_SET_FINDING_STATE))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) + .addMethod( + getUpdateFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1beta1.Finding>( + this, METHODID_UPDATE_FINDING))) + .addMethod( + getUpdateOrganizationSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings>( + this, METHODID_UPDATE_ORGANIZATION_SETTINGS))) + .addMethod( + getUpdateSourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1beta1.Source>( + this, METHODID_UPDATE_SOURCE))) + .addMethod( + getUpdateSecurityMarksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1beta1.SecurityMarks>( + this, METHODID_UPDATE_SECURITY_MARKS))) + .build(); + } + } + + /** + *
+   * V1 Beta APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterStub extends io.grpc.stub.AbstractAsyncStub { + private SecurityCenterStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterStub(channel, callOptions); + } + + /** + *
+     * Creates a source.
+     * 
+ */ + public void createSource(com.google.cloud.securitycenter.v1beta1.CreateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSourceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a finding. The corresponding source must exist for finding creation
+     * to succeed.
+     * 
+ */ + public void createFinding(com.google.cloud.securitycenter.v1beta1.CreateFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFindingMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the settings for an organization.
+     * 
+ */ + public void getOrganizationSettings(com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a source.
+     * 
+ */ + public void getSource(com.google.cloud.securitycenter.v1beta1.GetSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSourceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public void groupAssets(com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public void groupFindings(com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists an organization's assets.
+     * 
+ */ + public void listAssets(com.google.cloud.securitycenter.v1beta1.ListAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public void listFindings(com.google.cloud.securitycenter.v1beta1.ListFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public void listSources(com.google.cloud.securitycenter.v1beta1.ListSourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSourcesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public void runAssetDiscovery(com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the state of a finding.
+     * 
+ */ + public void setFindingState(com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public void updateFinding(com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an organization's settings.
+     * 
+ */ + public void updateOrganizationSettings(com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a source.
+     * 
+ */ + public void updateSource(com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates security marks.
+     * 
+ */ + public void updateSecurityMarks(com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * V1 Beta APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private SecurityCenterBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.Source createSource(com.google.cloud.securitycenter.v1beta1.CreateSourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSourceMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a finding. The corresponding source must exist for finding creation
+     * to succeed.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.Finding createFinding(com.google.cloud.securitycenter.v1beta1.CreateFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFindingMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the settings for an organization.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizationSettings(com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetOrganizationSettingsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.Source getSource(com.google.cloud.securitycenter.v1beta1.GetSourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSourceMethod(), getCallOptions(), request); + } + + /** + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse groupAssets(com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGroupAssetsMethod(), getCallOptions(), request); + } + + /** + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse groupFindings(com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGroupFindingsMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists an organization's assets.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse listAssets(com.google.cloud.securitycenter.v1beta1.ListAssetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAssetsMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse listFindings(com.google.cloud.securitycenter.v1beta1.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingsMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.ListSourcesResponse listSources(com.google.cloud.securitycenter.v1beta1.ListSourcesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSourcesMethod(), getCallOptions(), request); + } + + /** + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public com.google.longrunning.Operation runAssetDiscovery(com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunAssetDiscoveryMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the state of a finding.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.Finding setFindingState(com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetFindingStateMethod(), getCallOptions(), request); + } + + /** + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.Finding updateFinding(com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFindingMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an organization's settings.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings updateOrganizationSettings(com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateOrganizationSettingsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.Source updateSource(com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSourceMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates security marks.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.SecurityMarks updateSecurityMarks(com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSecurityMarksMethod(), getCallOptions(), request); + } + } + + /** + *
+   * V1 Beta APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterFutureStub extends io.grpc.stub.AbstractFutureStub { + private SecurityCenterFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSource( + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSourceMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a finding. The corresponding source must exist for finding creation
+     * to succeed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createFinding( + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFindingMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the settings for an organization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getOrganizationSettings( + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSource( + com.google.cloud.securitycenter.v1beta1.GetSourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSourceMethod(), getCallOptions()), request); + } + + /** + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture groupAssets( + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), request); + } + + /** + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture groupFindings( + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists an organization's assets.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listAssets( + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAssetsMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listFindings( + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSources( + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSourcesMethod(), getCallOptions()), request); + } + + /** + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture runAssetDiscovery( + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the state of a finding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setFindingState( + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), request); + } + + /** + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateFinding( + com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an organization's settings.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateOrganizationSettings( + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSource( + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates security marks.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSecurityMarks( + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SOURCE = 0; + private static final int METHODID_CREATE_FINDING = 1; + private static final int METHODID_GET_IAM_POLICY = 2; + private static final int METHODID_GET_ORGANIZATION_SETTINGS = 3; + private static final int METHODID_GET_SOURCE = 4; + private static final int METHODID_GROUP_ASSETS = 5; + private static final int METHODID_GROUP_FINDINGS = 6; + private static final int METHODID_LIST_ASSETS = 7; + private static final int METHODID_LIST_FINDINGS = 8; + private static final int METHODID_LIST_SOURCES = 9; + private static final int METHODID_RUN_ASSET_DISCOVERY = 10; + private static final int METHODID_SET_FINDING_STATE = 11; + private static final int METHODID_SET_IAM_POLICY = 12; + private static final int METHODID_TEST_IAM_PERMISSIONS = 13; + private static final int METHODID_UPDATE_FINDING = 14; + private static final int METHODID_UPDATE_ORGANIZATION_SETTINGS = 15; + private static final int METHODID_UPDATE_SOURCE = 16; + private static final int METHODID_UPDATE_SECURITY_MARKS = 17; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SecurityCenterImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SecurityCenterImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SOURCE: + serviceImpl.createSource((com.google.cloud.securitycenter.v1beta1.CreateSourceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_FINDING: + serviceImpl.createFinding((com.google.cloud.securitycenter.v1beta1.CreateFindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ORGANIZATION_SETTINGS: + serviceImpl.getOrganizationSettings((com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SOURCE: + serviceImpl.getSource((com.google.cloud.securitycenter.v1beta1.GetSourceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GROUP_ASSETS: + serviceImpl.groupAssets((com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GROUP_FINDINGS: + serviceImpl.groupFindings((com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ASSETS: + serviceImpl.listAssets((com.google.cloud.securitycenter.v1beta1.ListAssetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FINDINGS: + serviceImpl.listFindings((com.google.cloud.securitycenter.v1beta1.ListFindingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SOURCES: + serviceImpl.listSources((com.google.cloud.securitycenter.v1beta1.ListSourcesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RUN_ASSET_DISCOVERY: + serviceImpl.runAssetDiscovery((com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_FINDING_STATE: + serviceImpl.setFindingState((com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FINDING: + serviceImpl.updateFinding((com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ORGANIZATION_SETTINGS: + serviceImpl.updateOrganizationSettings((com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SOURCE: + serviceImpl.updateSource((com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SECURITY_MARKS: + serviceImpl.updateSecurityMarks((com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class SecurityCenterBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SecurityCenterBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SecurityCenter"); + } + } + + private static final class SecurityCenterFileDescriptorSupplier + extends SecurityCenterBaseDescriptorSupplier { + SecurityCenterFileDescriptorSupplier() {} + } + + private static final class SecurityCenterMethodDescriptorSupplier + extends SecurityCenterBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SecurityCenterMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SecurityCenterGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SecurityCenterFileDescriptorSupplier()) + .addMethod(getCreateSourceMethod()) + .addMethod(getCreateFindingMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getGetOrganizationSettingsMethod()) + .addMethod(getGetSourceMethod()) + .addMethod(getGroupAssetsMethod()) + .addMethod(getGroupFindingsMethod()) + .addMethod(getListAssetsMethod()) + .addMethod(getListFindingsMethod()) + .addMethod(getListSourcesMethod()) + .addMethod(getRunAssetDiscoveryMethod()) + .addMethod(getSetFindingStateMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .addMethod(getUpdateFindingMethod()) + .addMethod(getUpdateOrganizationSettingsMethod()) + .addMethod(getUpdateSourceMethod()) + .addMethod(getUpdateSecurityMarksMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java similarity index 72% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java index 9f9908c4d..b06b26f5b 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/asset.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Security Command Center representation of a Google Cloud
  * resource.
@@ -32,31 +15,31 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1beta1.Asset}
  */
-public final class Asset extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Asset extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.Asset)
     AssetOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Asset.newBuilder() to construct.
   private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Asset() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Asset();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Asset(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,104 +59,84 @@ private Asset(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder subBuilder = null;
+            if (securityCenterProperties_ != null) {
+              subBuilder = securityCenterProperties_.toBuilder();
+            }
+            securityCenterProperties_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(securityCenterProperties_);
+              securityCenterProperties_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder
-                  subBuilder = null;
-              if (securityCenterProperties_ != null) {
-                subBuilder = securityCenterProperties_.toBuilder();
-              }
-              securityCenterProperties_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(securityCenterProperties_);
-                securityCenterProperties_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 58: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              resourceProperties_ = com.google.protobuf.MapField.newMapField(
+                  ResourcePropertiesDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 58:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                resourceProperties_ =
-                    com.google.protobuf.MapField.newMapField(
-                        ResourcePropertiesDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry
-                  resourceProperties__ =
-                      input.readMessage(
-                          ResourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
-                          extensionRegistry);
-              resourceProperties_
-                  .getMutableMap()
-                  .put(resourceProperties__.getKey(), resourceProperties__.getValue());
-              break;
+            com.google.protobuf.MapEntry
+            resourceProperties__ = input.readMessage(
+                ResourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            resourceProperties_.getMutableMap().put(
+                resourceProperties__.getKey(), resourceProperties__.getValue());
+            break;
+          }
+          case 66: {
+            com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder subBuilder = null;
+            if (securityMarks_ != null) {
+              subBuilder = securityMarks_.toBuilder();
             }
-          case 66:
-            {
-              com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder subBuilder = null;
-              if (securityMarks_ != null) {
-                subBuilder = securityMarks_.toBuilder();
-              }
-              securityMarks_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1beta1.SecurityMarks.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(securityMarks_);
-                securityMarks_ = subBuilder.buildPartial();
-              }
-
-              break;
+            securityMarks_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.SecurityMarks.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(securityMarks_);
+              securityMarks_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 74: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
+            }
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 82:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 82: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -181,47 +144,43 @@ private Asset(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1beta1.AssetOuterClass
-        .internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 7:
         return internalGetResourceProperties();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1beta1.AssetOuterClass
-        .internal_static_google_cloud_securitycenter_v1beta1_Asset_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1beta1.Asset.class,
-            com.google.cloud.securitycenter.v1beta1.Asset.Builder.class);
+            com.google.cloud.securitycenter.v1beta1.Asset.class, com.google.cloud.securitycenter.v1beta1.Asset.Builder.class);
   }
 
-  public interface SecurityCenterPropertiesOrBuilder
-      extends
+  public interface SecurityCenterPropertiesOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Immutable. The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -229,13 +188,10 @@ public interface SecurityCenterPropertiesOrBuilder
      * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceName. */ java.lang.String getResourceName(); /** - * - * *
      * Immutable. The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -243,14 +199,12 @@ public interface SecurityCenterPropertiesOrBuilder
      * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString getResourceNameBytes(); + com.google.protobuf.ByteString + getResourceNameBytes(); /** - * - * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -259,13 +213,10 @@ public interface SecurityCenterPropertiesOrBuilder
      * 
* * string resource_type = 2; - * * @return The resourceType. */ java.lang.String getResourceType(); /** - * - * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -274,119 +225,97 @@ public interface SecurityCenterPropertiesOrBuilder
      * 
* * string resource_type = 2; - * * @return The bytes for resourceType. */ - com.google.protobuf.ByteString getResourceTypeBytes(); + com.google.protobuf.ByteString + getResourceTypeBytes(); /** - * - * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; - * * @return The resourceParent. */ java.lang.String getResourceParent(); /** - * - * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; - * * @return The bytes for resourceParent. */ - com.google.protobuf.ByteString getResourceParentBytes(); + com.google.protobuf.ByteString + getResourceParentBytes(); /** - * - * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; - * * @return The resourceProject. */ java.lang.String getResourceProject(); /** - * - * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; - * * @return The bytes for resourceProject. */ - com.google.protobuf.ByteString getResourceProjectBytes(); + com.google.protobuf.ByteString + getResourceProjectBytes(); /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @return A list containing the resourceOwners. */ - java.util.List getResourceOwnersList(); + java.util.List + getResourceOwnersList(); /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @return The count of resourceOwners. */ int getResourceOwnersCount(); /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ java.lang.String getResourceOwners(int index); /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ - com.google.protobuf.ByteString getResourceOwnersBytes(int index); + com.google.protobuf.ByteString + getResourceOwnersBytes(int index); } /** - * - * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
@@ -394,16 +323,15 @@ public interface SecurityCenterPropertiesOrBuilder
    *
    * Protobuf type {@code google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties}
    */
-  public static final class SecurityCenterProperties extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class SecurityCenterProperties extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties)
       SecurityCenterPropertiesOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use SecurityCenterProperties.newBuilder() to construct.
     private SecurityCenterProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private SecurityCenterProperties() {
       resourceName_ = "";
       resourceType_ = "";
@@ -414,15 +342,16 @@ private SecurityCenterProperties() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new SecurityCenterProperties();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private SecurityCenterProperties(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -442,51 +371,46 @@ private SecurityCenterProperties(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                resourceName_ = s;
-                break;
-              }
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              resourceName_ = s;
+              break;
+            }
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                resourceType_ = s;
-                break;
-              }
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              resourceType_ = s;
+              break;
+            }
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                resourceParent_ = s;
-                break;
-              }
-            case 34:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              resourceParent_ = s;
+              break;
+            }
+            case 34: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                resourceProject_ = s;
-                break;
-              }
-            case 42:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  resourceOwners_ = new com.google.protobuf.LazyStringArrayList();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                resourceOwners_.add(s);
-                break;
+              resourceProject_ = s;
+              break;
+            }
+            case 42: {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                resourceOwners_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              resourceOwners_.add(s);
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -494,7 +418,8 @@ private SecurityCenterProperties(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           resourceOwners_ = resourceOwners_.getUnmodifiableView();
@@ -503,27 +428,22 @@ private SecurityCenterProperties(
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1beta1.AssetOuterClass
-          .internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1beta1.AssetOuterClass
-          .internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.class,
-              com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder.class);
+              com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.class, com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder.class);
     }
 
     public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
     private volatile java.lang.Object resourceName_;
     /**
-     *
-     *
      * 
      * Immutable. The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -531,7 +451,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceName. */ @java.lang.Override @@ -540,15 +459,14 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** - * - * *
      * Immutable. The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -556,15 +474,16 @@ public java.lang.String getResourceName() {
      * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -575,8 +494,6 @@ public com.google.protobuf.ByteString getResourceNameBytes() { public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object resourceType_; /** - * - * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -585,7 +502,6 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
      * 
* * string resource_type = 2; - * * @return The resourceType. */ @java.lang.Override @@ -594,15 +510,14 @@ public java.lang.String getResourceType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; } } /** - * - * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -611,15 +526,16 @@ public java.lang.String getResourceType() {
      * 
* * string resource_type = 2; - * * @return The bytes for resourceType. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceTypeBytes() { + public com.google.protobuf.ByteString + getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceType_ = b; return b; } else { @@ -630,15 +546,12 @@ public com.google.protobuf.ByteString getResourceTypeBytes() { public static final int RESOURCE_PARENT_FIELD_NUMBER = 3; private volatile java.lang.Object resourceParent_; /** - * - * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; - * * @return The resourceParent. */ @java.lang.Override @@ -647,30 +560,30 @@ public java.lang.String getResourceParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParent_ = s; return s; } } /** - * - * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; - * * @return The bytes for resourceParent. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceParentBytes() { + public com.google.protobuf.ByteString + getResourceParentBytes() { java.lang.Object ref = resourceParent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceParent_ = b; return b; } else { @@ -681,15 +594,12 @@ public com.google.protobuf.ByteString getResourceParentBytes() { public static final int RESOURCE_PROJECT_FIELD_NUMBER = 4; private volatile java.lang.Object resourceProject_; /** - * - * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; - * * @return The resourceProject. */ @java.lang.Override @@ -698,30 +608,30 @@ public java.lang.String getResourceProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProject_ = s; return s; } } /** - * - * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; - * * @return The bytes for resourceProject. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceProjectBytes() { + public com.google.protobuf.ByteString + getResourceProjectBytes() { java.lang.Object ref = resourceProject_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceProject_ = b; return b; } else { @@ -732,42 +642,34 @@ public com.google.protobuf.ByteString getResourceProjectBytes() { public static final int RESOURCE_OWNERS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList resourceOwners_; /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @return A list containing the resourceOwners. */ - public com.google.protobuf.ProtocolStringList getResourceOwnersList() { + public com.google.protobuf.ProtocolStringList + getResourceOwnersList() { return resourceOwners_; } /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @return The count of resourceOwners. */ public int getResourceOwnersCount() { return resourceOwners_.size(); } /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ @@ -775,23 +677,20 @@ public java.lang.String getResourceOwners(int index) { return resourceOwners_.get(index); } /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ - public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { + public com.google.protobuf.ByteString + getResourceOwnersBytes(int index) { return resourceOwners_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -803,7 +702,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); } @@ -856,20 +756,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties)) { + if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties other = - (com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties) obj; - - if (!getResourceName().equals(other.getResourceName())) return false; - if (!getResourceType().equals(other.getResourceType())) return false; - if (!getResourceParent().equals(other.getResourceParent())) return false; - if (!getResourceProject().equals(other.getResourceProject())) return false; - if (!getResourceOwnersList().equals(other.getResourceOwnersList())) return false; + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties other = (com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties) obj; + + if (!getResourceName() + .equals(other.getResourceName())) return false; + if (!getResourceType() + .equals(other.getResourceType())) return false; + if (!getResourceParent() + .equals(other.getResourceParent())) return false; + if (!getResourceProject() + .equals(other.getResourceProject())) return false; + if (!getResourceOwnersList() + .equals(other.getResourceOwnersList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -899,95 +802,87 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -997,8 +892,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
@@ -1006,42 +899,38 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties)
         com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.securitycenter.v1beta1.AssetOuterClass
-            .internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.securitycenter.v1beta1.AssetOuterClass
-            .internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_fieldAccessorTable
+        return com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.class,
-                com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder
-                    .class);
+                com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.class, com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.newBuilder()
+      // Construct using com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1059,22 +948,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.securitycenter.v1beta1.AssetOuterClass
-            .internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties
-          getDefaultInstanceForType() {
-        return com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties
-            .getDefaultInstance();
+      public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties getDefaultInstanceForType() {
+        return com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties build() {
-        com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties result =
-            buildPartial();
+        com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -1083,8 +969,7 @@ public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties bu
 
       @java.lang.Override
       public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties buildPartial() {
-        com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties result =
-            new com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties(this);
+        com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties result = new com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties(this);
         int from_bitField0_ = bitField0_;
         result.resourceName_ = resourceName_;
         result.resourceType_ = resourceType_;
@@ -1103,54 +988,46 @@ public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties bu
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other
-            instanceof com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties) {
-          return mergeFrom(
-              (com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties) other);
+        if (other instanceof com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties) {
+          return mergeFrom((com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties other) {
-        if (other
-            == com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties other) {
+        if (other == com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.getDefaultInstance()) return this;
         if (!other.getResourceName().isEmpty()) {
           resourceName_ = other.resourceName_;
           onChanged();
@@ -1196,9 +1073,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1207,13 +1082,10 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int bitField0_;
 
       private java.lang.Object resourceName_ = "";
       /**
-       *
-       *
        * 
        * Immutable. The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1221,13 +1093,13 @@ public Builder mergeFrom(
        * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -1236,8 +1108,6 @@ public java.lang.String getResourceName() { } } /** - * - * *
        * Immutable. The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1245,14 +1115,15 @@ public java.lang.String getResourceName() {
        * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -1260,8 +1131,6 @@ public com.google.protobuf.ByteString getResourceNameBytes() { } } /** - * - * *
        * Immutable. The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1269,22 +1138,20 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
        * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName(java.lang.String value) { + public Builder setResourceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceName_ = value; onChanged(); return this; } /** - * - * *
        * Immutable. The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1292,18 +1159,15 @@ public Builder setResourceName(java.lang.String value) {
        * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearResourceName() { - + resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** - * - * *
        * Immutable. The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1311,16 +1175,16 @@ public Builder clearResourceName() {
        * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; onChanged(); return this; @@ -1328,8 +1192,6 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceType_ = ""; /** - * - * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1338,13 +1200,13 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) {
        * 
* * string resource_type = 2; - * * @return The resourceType. */ public java.lang.String getResourceType() { java.lang.Object ref = resourceType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; @@ -1353,8 +1215,6 @@ public java.lang.String getResourceType() { } } /** - * - * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1363,14 +1223,15 @@ public java.lang.String getResourceType() {
        * 
* * string resource_type = 2; - * * @return The bytes for resourceType. */ - public com.google.protobuf.ByteString getResourceTypeBytes() { + public com.google.protobuf.ByteString + getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceType_ = b; return b; } else { @@ -1378,8 +1239,6 @@ public com.google.protobuf.ByteString getResourceTypeBytes() { } } /** - * - * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1388,22 +1247,20 @@ public com.google.protobuf.ByteString getResourceTypeBytes() {
        * 
* * string resource_type = 2; - * * @param value The resourceType to set. * @return This builder for chaining. */ - public Builder setResourceType(java.lang.String value) { + public Builder setResourceType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceType_ = value; onChanged(); return this; } /** - * - * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1412,18 +1269,15 @@ public Builder setResourceType(java.lang.String value) {
        * 
* * string resource_type = 2; - * * @return This builder for chaining. */ public Builder clearResourceType() { - + resourceType_ = getDefaultInstance().getResourceType(); onChanged(); return this; } /** - * - * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1432,16 +1286,16 @@ public Builder clearResourceType() {
        * 
* * string resource_type = 2; - * * @param value The bytes for resourceType to set. * @return This builder for chaining. */ - public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { + public Builder setResourceTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceType_ = value; onChanged(); return this; @@ -1449,21 +1303,19 @@ public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceParent_ = ""; /** - * - * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; - * * @return The resourceParent. */ public java.lang.String getResourceParent() { java.lang.Object ref = resourceParent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParent_ = s; return s; @@ -1472,22 +1324,21 @@ public java.lang.String getResourceParent() { } } /** - * - * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; - * * @return The bytes for resourceParent. */ - public com.google.protobuf.ByteString getResourceParentBytes() { + public com.google.protobuf.ByteString + getResourceParentBytes() { java.lang.Object ref = resourceParent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceParent_ = b; return b; } else { @@ -1495,64 +1346,57 @@ public com.google.protobuf.ByteString getResourceParentBytes() { } } /** - * - * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; - * * @param value The resourceParent to set. * @return This builder for chaining. */ - public Builder setResourceParent(java.lang.String value) { + public Builder setResourceParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceParent_ = value; onChanged(); return this; } /** - * - * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; - * * @return This builder for chaining. */ public Builder clearResourceParent() { - + resourceParent_ = getDefaultInstance().getResourceParent(); onChanged(); return this; } /** - * - * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; - * * @param value The bytes for resourceParent to set. * @return This builder for chaining. */ - public Builder setResourceParentBytes(com.google.protobuf.ByteString value) { + public Builder setResourceParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceParent_ = value; onChanged(); return this; @@ -1560,21 +1404,19 @@ public Builder setResourceParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceProject_ = ""; /** - * - * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; - * * @return The resourceProject. */ public java.lang.String getResourceProject() { java.lang.Object ref = resourceProject_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProject_ = s; return s; @@ -1583,22 +1425,21 @@ public java.lang.String getResourceProject() { } } /** - * - * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; - * * @return The bytes for resourceProject. */ - public com.google.protobuf.ByteString getResourceProjectBytes() { + public com.google.protobuf.ByteString + getResourceProjectBytes() { java.lang.Object ref = resourceProject_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceProject_ = b; return b; } else { @@ -1606,115 +1447,98 @@ public com.google.protobuf.ByteString getResourceProjectBytes() { } } /** - * - * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; - * * @param value The resourceProject to set. * @return This builder for chaining. */ - public Builder setResourceProject(java.lang.String value) { + public Builder setResourceProject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceProject_ = value; onChanged(); return this; } /** - * - * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; - * * @return This builder for chaining. */ public Builder clearResourceProject() { - + resourceProject_ = getDefaultInstance().getResourceProject(); onChanged(); return this; } /** - * - * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; - * * @param value The bytes for resourceProject to set. * @return This builder for chaining. */ - public Builder setResourceProjectBytes(com.google.protobuf.ByteString value) { + public Builder setResourceProjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceProject_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList resourceOwners_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList resourceOwners_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureResourceOwnersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resourceOwners_ = new com.google.protobuf.LazyStringArrayList(resourceOwners_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @return A list containing the resourceOwners. */ - public com.google.protobuf.ProtocolStringList getResourceOwnersList() { + public com.google.protobuf.ProtocolStringList + getResourceOwnersList() { return resourceOwners_.getUnmodifiableView(); } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @return The count of resourceOwners. */ public int getResourceOwnersCount() { return resourceOwners_.size(); } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ @@ -1722,90 +1546,80 @@ public java.lang.String getResourceOwners(int index) { return resourceOwners_.get(index); } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ - public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { + public com.google.protobuf.ByteString + getResourceOwnersBytes(int index) { return resourceOwners_.getByteString(index); } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @param index The index to set the value at. * @param value The resourceOwners to set. * @return This builder for chaining. */ - public Builder setResourceOwners(int index, java.lang.String value) { + public Builder setResourceOwners( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceOwnersIsMutable(); + throw new NullPointerException(); + } + ensureResourceOwnersIsMutable(); resourceOwners_.set(index, value); onChanged(); return this; } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @param value The resourceOwners to add. * @return This builder for chaining. */ - public Builder addResourceOwners(java.lang.String value) { + public Builder addResourceOwners( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceOwnersIsMutable(); + throw new NullPointerException(); + } + ensureResourceOwnersIsMutable(); resourceOwners_.add(value); onChanged(); return this; } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @param values The resourceOwners to add. * @return This builder for chaining. */ - public Builder addAllResourceOwners(java.lang.Iterable values) { + public Builder addAllResourceOwners( + java.lang.Iterable values) { ensureResourceOwnersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceOwners_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceOwners_); onChanged(); return this; } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @return This builder for chaining. */ public Builder clearResourceOwners() { @@ -1815,28 +1629,25 @@ public Builder clearResourceOwners() { return this; } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @param value The bytes of the resourceOwners to add. * @return This builder for chaining. */ - public Builder addResourceOwnersBytes(com.google.protobuf.ByteString value) { + public Builder addResourceOwnersBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureResourceOwnersIsMutable(); resourceOwners_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1849,33 +1660,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties) - private static final com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties(); + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties(); } - public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecurityCenterProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecurityCenterProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityCenterProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecurityCenterProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1887,17 +1695,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1906,7 +1712,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1915,15 +1720,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1932,15 +1736,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1949,20 +1754,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int SECURITY_CENTER_PROPERTIES_FIELD_NUMBER = 2; - private com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties - securityCenterProperties_; + private com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties securityCenterProperties_; /** - * - * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * - * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * @return Whether the securityCenterProperties field is set. */ @java.lang.Override @@ -1970,65 +1769,47 @@ public boolean hasSecurityCenterProperties() { return securityCenterProperties_ != null; } /** - * - * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * - * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * @return The securityCenterProperties. */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties - getSecurityCenterProperties() { - return securityCenterProperties_ == null - ? com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties - .getDefaultInstance() - : securityCenterProperties_; + public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties getSecurityCenterProperties() { + return securityCenterProperties_ == null ? com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.getDefaultInstance() : securityCenterProperties_; } /** - * - * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder - getSecurityCenterPropertiesOrBuilder() { + public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder() { return getSecurityCenterProperties(); } public static final int RESOURCE_PROPERTIES_FIELD_NUMBER = 7; - private static final class ResourcePropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.Value> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1beta1.AssetOuterClass - .internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); } - - private com.google.protobuf.MapField - resourceProperties_; - + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> resourceProperties_; private com.google.protobuf.MapField - internalGetResourceProperties() { + internalGetResourceProperties() { if (resourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( ResourcePropertiesDefaultEntryHolder.defaultEntry); @@ -2040,8 +1821,6 @@ public int getResourcePropertiesCount() { return internalGetResourceProperties().getMap().size(); } /** - * - * *
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -2049,22 +1828,22 @@ public int getResourcePropertiesCount() {
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
+
   @java.lang.Override
-  public boolean containsResourceProperties(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsResourceProperties(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetResourceProperties().getMap().containsKey(key);
   }
-  /** Use {@link #getResourcePropertiesMap()} instead. */
+  /**
+   * Use {@link #getResourcePropertiesMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getResourceProperties() {
     return getResourcePropertiesMap();
   }
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -2073,12 +1852,11 @@ public java.util.Map getResourcePro
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
   @java.lang.Override
+
   public java.util.Map getResourcePropertiesMap() {
     return internalGetResourceProperties().getMap();
   }
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -2087,18 +1865,16 @@ public java.util.Map getResourcePro
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
   @java.lang.Override
+
   public com.google.protobuf.Value getResourcePropertiesOrDefault(
-      java.lang.String key, com.google.protobuf.Value defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+      java.lang.String key,
+      com.google.protobuf.Value defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetResourceProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -2107,10 +1883,10 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
   @java.lang.Override
-  public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+
+  public com.google.protobuf.Value getResourcePropertiesOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetResourceProperties().getMap();
     if (!map.containsKey(key)) {
@@ -2122,15 +1898,12 @@ public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String k
   public static final int SECURITY_MARKS_FIELD_NUMBER = 8;
   private com.google.cloud.securitycenter.v1beta1.SecurityMarks securityMarks_;
   /**
-   *
-   *
    * 
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; - * * @return Whether the securityMarks field is set. */ @java.lang.Override @@ -2138,26 +1911,19 @@ public boolean hasSecurityMarks() { return securityMarks_ != null; } /** - * - * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; - * * @return The securityMarks. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; } /** - * - * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
@@ -2166,22 +1932,18 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks()
    * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8;
    */
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder
-      getSecurityMarksOrBuilder() {
+  public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() {
     return getSecurityMarks();
   }
 
   public static final int CREATE_TIME_FIELD_NUMBER = 9;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -2189,14 +1951,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; - * * @return The createTime. */ @java.lang.Override @@ -2204,8 +1963,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time at which the asset was created in Security Command Center.
    * 
@@ -2220,15 +1977,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The time at which the asset was last updated, added, or deleted in Security
    * Command Center.
    * 
* * .google.protobuf.Timestamp update_time = 10; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -2236,15 +1990,12 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * The time at which the asset was last updated, added, or deleted in Security
    * Command Center.
    * 
* * .google.protobuf.Timestamp update_time = 10; - * * @return The updateTime. */ @java.lang.Override @@ -2252,8 +2003,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The time at which the asset was last updated, added, or deleted in Security
    * Command Center.
@@ -2267,7 +2016,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -2279,14 +2027,16 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
     if (securityCenterProperties_ != null) {
       output.writeMessage(2, getSecurityCenterProperties());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
         output,
         internalGetResourceProperties(),
         ResourcePropertiesDefaultEntryHolder.defaultEntry,
@@ -2313,29 +2063,30 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (securityCenterProperties_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, getSecurityCenterProperties());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getSecurityCenterProperties());
     }
-    for (java.util.Map.Entry entry :
-        internalGetResourceProperties().getMap().entrySet()) {
+    for (java.util.Map.Entry entry
+         : internalGetResourceProperties().getMap().entrySet()) {
       com.google.protobuf.MapEntry
-          resourceProperties__ =
-              ResourcePropertiesDefaultEntryHolder.defaultEntry
-                  .newBuilderForType()
-                  .setKey(entry.getKey())
-                  .setValue(entry.getValue())
-                  .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, resourceProperties__);
+      resourceProperties__ = ResourcePropertiesDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(7, resourceProperties__);
     }
     if (securityMarks_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSecurityMarks());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, getSecurityMarks());
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, getCreateTime());
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, getUpdateTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -2345,32 +2096,36 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.Asset)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1beta1.Asset other =
-        (com.google.cloud.securitycenter.v1beta1.Asset) obj;
+    com.google.cloud.securitycenter.v1beta1.Asset other = (com.google.cloud.securitycenter.v1beta1.Asset) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasSecurityCenterProperties() != other.hasSecurityCenterProperties()) return false;
     if (hasSecurityCenterProperties()) {
-      if (!getSecurityCenterProperties().equals(other.getSecurityCenterProperties())) return false;
+      if (!getSecurityCenterProperties()
+          .equals(other.getSecurityCenterProperties())) return false;
     }
-    if (!internalGetResourceProperties().equals(other.internalGetResourceProperties()))
-      return false;
+    if (!internalGetResourceProperties().equals(
+        other.internalGetResourceProperties())) return false;
     if (hasSecurityMarks() != other.hasSecurityMarks()) return false;
     if (hasSecurityMarks()) {
-      if (!getSecurityMarks().equals(other.getSecurityMarks())) return false;
+      if (!getSecurityMarks()
+          .equals(other.getSecurityMarks())) return false;
     }
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime().equals(other.getCreateTime())) return false;
+      if (!getCreateTime()
+          .equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+      if (!getUpdateTime()
+          .equals(other.getUpdateTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -2410,104 +2165,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1beta1.Asset parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1beta1.Asset parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.Asset parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.Asset prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Security Command Center representation of a Google Cloud
    * resource.
@@ -2519,43 +2267,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1beta1.Asset}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.Asset)
       com.google.cloud.securitycenter.v1beta1.AssetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1beta1.AssetOuterClass
-          .internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 7:
           return internalGetResourceProperties();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 7:
           return internalGetMutableResourceProperties();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1beta1.AssetOuterClass
-          .internal_static_google_cloud_securitycenter_v1beta1_Asset_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1beta1.Asset.class,
-              com.google.cloud.securitycenter.v1beta1.Asset.Builder.class);
+              com.google.cloud.securitycenter.v1beta1.Asset.class, com.google.cloud.securitycenter.v1beta1.Asset.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1beta1.Asset.newBuilder()
@@ -2563,15 +2311,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2606,9 +2355,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1beta1.AssetOuterClass
-          .internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor;
     }
 
     @java.lang.Override
@@ -2627,8 +2376,7 @@ public com.google.cloud.securitycenter.v1beta1.Asset build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1beta1.Asset buildPartial() {
-      com.google.cloud.securitycenter.v1beta1.Asset result =
-          new com.google.cloud.securitycenter.v1beta1.Asset(this);
+      com.google.cloud.securitycenter.v1beta1.Asset result = new com.google.cloud.securitycenter.v1beta1.Asset(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (securityCenterPropertiesBuilder_ == null) {
@@ -2661,39 +2409,38 @@ public com.google.cloud.securitycenter.v1beta1.Asset buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1beta1.Asset) {
-        return mergeFrom((com.google.cloud.securitycenter.v1beta1.Asset) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1beta1.Asset)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2709,7 +2456,8 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.Asset other) {
       if (other.hasSecurityCenterProperties()) {
         mergeSecurityCenterProperties(other.getSecurityCenterProperties());
       }
-      internalGetMutableResourceProperties().mergeFrom(other.internalGetResourceProperties());
+      internalGetMutableResourceProperties().mergeFrom(
+          other.internalGetResourceProperties());
       if (other.hasSecurityMarks()) {
         mergeSecurityMarks(other.getSecurityMarks());
       }
@@ -2747,13 +2495,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2762,13 +2507,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2777,8 +2522,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2787,14 +2530,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2802,8 +2546,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2812,22 +2554,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2836,18 +2576,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2856,84 +2593,61 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties - securityCenterProperties_; + private com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties securityCenterProperties_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties, - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder, - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder> - securityCenterPropertiesBuilder_; + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder> securityCenterPropertiesBuilder_; /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * - * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * @return Whether the securityCenterProperties field is set. */ public boolean hasSecurityCenterProperties() { return securityCenterPropertiesBuilder_ != null || securityCenterProperties_ != null; } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * - * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * @return The securityCenterProperties. */ - public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties - getSecurityCenterProperties() { + public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties getSecurityCenterProperties() { if (securityCenterPropertiesBuilder_ == null) { - return securityCenterProperties_ == null - ? com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties - .getDefaultInstance() - : securityCenterProperties_; + return securityCenterProperties_ == null ? com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.getDefaultInstance() : securityCenterProperties_; } else { return securityCenterPropertiesBuilder_.getMessage(); } } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; */ - public Builder setSecurityCenterProperties( - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties value) { + public Builder setSecurityCenterProperties(com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties value) { if (securityCenterPropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2947,20 +2661,15 @@ public Builder setSecurityCenterProperties( return this; } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; */ public Builder setSecurityCenterProperties( - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder - builderForValue) { + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder builderForValue) { if (securityCenterPropertiesBuilder_ == null) { securityCenterProperties_ = builderForValue.build(); onChanged(); @@ -2971,26 +2680,18 @@ public Builder setSecurityCenterProperties( return this; } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; */ - public Builder mergeSecurityCenterProperties( - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties value) { + public Builder mergeSecurityCenterProperties(com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties value) { if (securityCenterPropertiesBuilder_ == null) { if (securityCenterProperties_ != null) { securityCenterProperties_ = - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.newBuilder( - securityCenterProperties_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.newBuilder(securityCenterProperties_).mergeFrom(value).buildPartial(); } else { securityCenterProperties_ = value; } @@ -3002,16 +2703,12 @@ public Builder mergeSecurityCenterProperties( return this; } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; */ public Builder clearSecurityCenterProperties() { if (securityCenterPropertiesBuilder_ == null) { @@ -3025,95 +2722,72 @@ public Builder clearSecurityCenterProperties() { return this; } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; */ - public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder - getSecurityCenterPropertiesBuilder() { - + public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder getSecurityCenterPropertiesBuilder() { + onChanged(); return getSecurityCenterPropertiesFieldBuilder().getBuilder(); } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; */ - public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder - getSecurityCenterPropertiesOrBuilder() { + public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder() { if (securityCenterPropertiesBuilder_ != null) { return securityCenterPropertiesBuilder_.getMessageOrBuilder(); } else { - return securityCenterProperties_ == null - ? com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties - .getDefaultInstance() - : securityCenterProperties_; + return securityCenterProperties_ == null ? + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.getDefaultInstance() : securityCenterProperties_; } } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties, - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder, - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder> + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder> getSecurityCenterPropertiesFieldBuilder() { if (securityCenterPropertiesBuilder_ == null) { - securityCenterPropertiesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties, - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder, - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder>( - getSecurityCenterProperties(), getParentForChildren(), isClean()); + securityCenterPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder>( + getSecurityCenterProperties(), + getParentForChildren(), + isClean()); securityCenterProperties_ = null; } return securityCenterPropertiesBuilder_; } + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> resourceProperties_; private com.google.protobuf.MapField - resourceProperties_; - - private com.google.protobuf.MapField - internalGetResourceProperties() { + internalGetResourceProperties() { if (resourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( ResourcePropertiesDefaultEntryHolder.defaultEntry); } return resourceProperties_; } - private com.google.protobuf.MapField - internalGetMutableResourceProperties() { - onChanged(); - ; + internalGetMutableResourceProperties() { + onChanged();; if (resourceProperties_ == null) { - resourceProperties_ = - com.google.protobuf.MapField.newMapField( - ResourcePropertiesDefaultEntryHolder.defaultEntry); + resourceProperties_ = com.google.protobuf.MapField.newMapField( + ResourcePropertiesDefaultEntryHolder.defaultEntry); } if (!resourceProperties_.isMutable()) { resourceProperties_ = resourceProperties_.copy(); @@ -3125,8 +2799,6 @@ public int getResourcePropertiesCount() { return internalGetResourceProperties().getMap().size(); } /** - * - * *
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -3134,22 +2806,22 @@ public int getResourcePropertiesCount() {
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
+
     @java.lang.Override
-    public boolean containsResourceProperties(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsResourceProperties(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetResourceProperties().getMap().containsKey(key);
     }
-    /** Use {@link #getResourcePropertiesMap()} instead. */
+    /**
+     * Use {@link #getResourcePropertiesMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getResourceProperties() {
       return getResourcePropertiesMap();
     }
     /**
-     *
-     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -3158,12 +2830,11 @@ public java.util.Map getResourcePro
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
     @java.lang.Override
+
     public java.util.Map getResourcePropertiesMap() {
       return internalGetResourceProperties().getMap();
     }
     /**
-     *
-     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -3172,18 +2843,16 @@ public java.util.Map getResourcePro
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
     @java.lang.Override
+
     public com.google.protobuf.Value getResourcePropertiesOrDefault(
-        java.lang.String key, com.google.protobuf.Value defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+        java.lang.String key,
+        com.google.protobuf.Value defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetResourceProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -3192,10 +2861,10 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
     @java.lang.Override
-    public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+
+    public com.google.protobuf.Value getResourcePropertiesOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetResourceProperties().getMap();
       if (!map.containsKey(key)) {
@@ -3205,12 +2874,11 @@ public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String k
     }
 
     public Builder clearResourceProperties() {
-      internalGetMutableResourceProperties().getMutableMap().clear();
+      internalGetMutableResourceProperties().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -3218,22 +2886,23 @@ public Builder clearResourceProperties() {
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
-    public Builder removeResourceProperties(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableResourceProperties().getMutableMap().remove(key);
+
+    public Builder removeResourceProperties(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableResourceProperties().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
     public java.util.Map
-        getMutableResourceProperties() {
+    getMutableResourceProperties() {
       return internalGetMutableResourceProperties().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -3241,20 +2910,19 @@ public Builder removeResourceProperties(java.lang.String key) {
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
-    public Builder putResourceProperties(java.lang.String key, com.google.protobuf.Value value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putResourceProperties(
+        java.lang.String key,
+        com.google.protobuf.Value value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableResourceProperties().getMutableMap().put(key, value);
+      internalGetMutableResourceProperties().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -3262,57 +2930,46 @@ public Builder putResourceProperties(java.lang.String key, com.google.protobuf.V
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
+
     public Builder putAllResourceProperties(
         java.util.Map values) {
-      internalGetMutableResourceProperties().getMutableMap().putAll(values);
+      internalGetMutableResourceProperties().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private com.google.cloud.securitycenter.v1beta1.SecurityMarks securityMarks_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1beta1.SecurityMarks,
-            com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder,
-            com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder>
-        securityMarksBuilder_;
+        com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder> securityMarksBuilder_;
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
      * 
* * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; - * * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; } /** - * - * *
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
      * 
* * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; - * * @return The securityMarks. */ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; } else { return securityMarksBuilder_.getMessage(); } } /** - * - * *
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -3334,8 +2991,6 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1beta1.Security
       return this;
     }
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -3355,8 +3010,6 @@ public Builder setSecurityMarks(
       return this;
     }
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -3368,9 +3021,7 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1beta1.Securi
       if (securityMarksBuilder_ == null) {
         if (securityMarks_ != null) {
           securityMarks_ =
-              com.google.cloud.securitycenter.v1beta1.SecurityMarks.newBuilder(securityMarks_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.securitycenter.v1beta1.SecurityMarks.newBuilder(securityMarks_).mergeFrom(value).buildPartial();
         } else {
           securityMarks_ = value;
         }
@@ -3382,8 +3033,6 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1beta1.Securi
       return this;
     }
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -3403,8 +3052,6 @@ public Builder clearSecurityMarks() {
       return this;
     }
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -3413,13 +3060,11 @@ public Builder clearSecurityMarks() {
      * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8;
      */
     public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurityMarksBuilder() {
-
+      
       onChanged();
       return getSecurityMarksFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -3427,19 +3072,15 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurity
      *
      * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8;
      */
-    public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder
-        getSecurityMarksOrBuilder() {
+    public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() {
       if (securityMarksBuilder_ != null) {
         return securityMarksBuilder_.getMessageOrBuilder();
       } else {
-        return securityMarks_ == null
-            ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance()
-            : securityMarks_;
+        return securityMarks_ == null ?
+            com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() : securityMarks_;
       }
     }
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -3448,17 +3089,14 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurity
      * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1beta1.SecurityMarks,
-            com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder,
-            com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder>
+        com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder> 
         getSecurityMarksFieldBuilder() {
       if (securityMarksBuilder_ == null) {
-        securityMarksBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.securitycenter.v1beta1.SecurityMarks,
-                com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder,
-                com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder>(
-                getSecurityMarks(), getParentForChildren(), isClean());
+        securityMarksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder>(
+                getSecurityMarks(),
+                getParentForChildren(),
+                isClean());
         securityMarks_ = null;
       }
       return securityMarksBuilder_;
@@ -3466,47 +3104,34 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurity
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -3527,15 +3152,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3546,8 +3170,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -3558,7 +3180,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3570,8 +3192,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -3590,8 +3210,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -3599,13 +3217,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 9; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -3616,14 +3232,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -3631,17 +3244,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3649,49 +3259,36 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * The time at which the asset was last updated, added, or deleted in Security
      * Command Center.
      * 
* * .google.protobuf.Timestamp update_time = 10; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * The time at which the asset was last updated, added, or deleted in Security
      * Command Center.
      * 
* * .google.protobuf.Timestamp update_time = 10; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * The time at which the asset was last updated, added, or deleted in Security
      * Command Center.
@@ -3713,8 +3310,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the asset was last updated, added, or deleted in Security
      * Command Center.
@@ -3722,7 +3317,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 10;
      */
-    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setUpdateTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (updateTimeBuilder_ == null) {
         updateTime_ = builderForValue.build();
         onChanged();
@@ -3733,8 +3329,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the asset was last updated, added, or deleted in Security
      * Command Center.
@@ -3746,7 +3340,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       if (updateTimeBuilder_ == null) {
         if (updateTime_ != null) {
           updateTime_ =
-              com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
         } else {
           updateTime_ = value;
         }
@@ -3758,8 +3352,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the asset was last updated, added, or deleted in Security
      * Command Center.
@@ -3779,8 +3371,6 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the asset was last updated, added, or deleted in Security
      * Command Center.
@@ -3789,13 +3379,11 @@ public Builder clearUpdateTime() {
      * .google.protobuf.Timestamp update_time = 10;
      */
     public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
-
+      
       onChanged();
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time at which the asset was last updated, added, or deleted in Security
      * Command Center.
@@ -3807,14 +3395,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
       if (updateTimeBuilder_ != null) {
         return updateTimeBuilder_.getMessageOrBuilder();
       } else {
-        return updateTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : updateTime_;
+        return updateTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time at which the asset was last updated, added, or deleted in Security
      * Command Center.
@@ -3823,24 +3408,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_time = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getUpdateTimeFieldBuilder() {
       if (updateTimeBuilder_ == null) {
-        updateTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getUpdateTime(), getParentForChildren(), isClean());
+        updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getUpdateTime(),
+                getParentForChildren(),
+                isClean());
         updateTime_ = null;
       }
       return updateTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -3850,12 +3432,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.Asset)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.Asset)
   private static final com.google.cloud.securitycenter.v1beta1.Asset DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.Asset();
   }
@@ -3864,16 +3446,16 @@ public static com.google.cloud.securitycenter.v1beta1.Asset getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Asset parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Asset(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Asset parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Asset(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3888,4 +3470,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.securitycenter.v1beta1.Asset getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOrBuilder.java
similarity index 75%
rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOrBuilder.java
index f661721c9..0f7e2e844 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1beta1/asset.proto
 
 package com.google.cloud.securitycenter.v1beta1;
 
-public interface AssetOrBuilder
-    extends
+public interface AssetOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.Asset)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -34,13 +16,10 @@ public interface AssetOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -49,60 +28,42 @@ public interface AssetOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * - * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * @return Whether the securityCenterProperties field is set. */ boolean hasSecurityCenterProperties(); /** - * - * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * - * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * @return The securityCenterProperties. */ - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties - getSecurityCenterProperties(); + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties getSecurityCenterProperties(); /** - * - * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; */ - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder - getSecurityCenterPropertiesOrBuilder(); + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder(); /** - * - * *
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -112,8 +73,6 @@ public interface AssetOrBuilder
    */
   int getResourcePropertiesCount();
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -121,13 +80,15 @@ public interface AssetOrBuilder
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-  boolean containsResourceProperties(java.lang.String key);
-  /** Use {@link #getResourcePropertiesMap()} instead. */
+  boolean containsResourceProperties(
+      java.lang.String key);
+  /**
+   * Use {@link #getResourcePropertiesMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getResourceProperties();
+  java.util.Map
+  getResourceProperties();
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -135,10 +96,9 @@ public interface AssetOrBuilder
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-  java.util.Map getResourcePropertiesMap();
+  java.util.Map
+  getResourcePropertiesMap();
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -148,13 +108,11 @@ public interface AssetOrBuilder
    */
 
   /* nullable */
-  com.google.protobuf.Value getResourcePropertiesOrDefault(
+com.google.protobuf.Value getResourcePropertiesOrDefault(
       java.lang.String key,
       /* nullable */
-      com.google.protobuf.Value defaultValue);
+com.google.protobuf.Value defaultValue);
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -162,37 +120,31 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-  com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key);
+
+  com.google.protobuf.Value getResourcePropertiesOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; - * * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** - * - * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; - * * @return The securityMarks. */ com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks(); /** - * - * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
@@ -203,32 +155,24 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
   com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder();
 
   /**
-   *
-   *
    * 
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time at which the asset was created in Security Command Center.
    * 
@@ -238,34 +182,26 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time at which the asset was last updated, added, or deleted in Security
    * Command Center.
    * 
* * .google.protobuf.Timestamp update_time = 10; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The time at which the asset was last updated, added, or deleted in Security
    * Command Center.
    * 
* * .google.protobuf.Timestamp update_time = 10; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The time at which the asset was last updated, added, or deleted in Security
    * Command Center.
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java
new file mode 100644
index 000000000..ce17423cd
--- /dev/null
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java
@@ -0,0 +1,114 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/securitycenter/v1beta1/asset.proto
+
+package com.google.cloud.securitycenter.v1beta1;
+
+public final class AssetOuterClass {
+  private AssetOuterClass() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_Asset_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n/google/cloud/securitycenter/v1beta1/as" +
+      "set.proto\022#google.cloud.securitycenter.v" +
+      "1beta1\032\037google/api/field_behavior.proto\032" +
+      "\031google/api/resource.proto\0328google/cloud" +
+      "/securitycenter/v1beta1/security_marks.p" +
+      "roto\032\034google/protobuf/struct.proto\032\037goog" +
+      "le/protobuf/timestamp.proto\032\034google/api/" +
+      "annotations.proto\"\323\005\n\005Asset\022\014\n\004name\030\001 \001(" +
+      "\t\022g\n\032security_center_properties\030\002 \001(\0132C." +
+      "google.cloud.securitycenter.v1beta1.Asse" +
+      "t.SecurityCenterProperties\022_\n\023resource_p" +
+      "roperties\030\007 \003(\0132B.google.cloud.securityc" +
+      "enter.v1beta1.Asset.ResourcePropertiesEn" +
+      "try\022J\n\016security_marks\030\010 \001(\01322.google.clo" +
+      "ud.securitycenter.v1beta1.SecurityMarks\022" +
+      "/\n\013create_time\030\t \001(\0132\032.google.protobuf.T" +
+      "imestamp\022/\n\013update_time\030\n \001(\0132\032.google.p" +
+      "rotobuf.Timestamp\032\231\001\n\030SecurityCenterProp" +
+      "erties\022\032\n\rresource_name\030\001 \001(\tB\003\340A\005\022\025\n\rre" +
+      "source_type\030\002 \001(\t\022\027\n\017resource_parent\030\003 \001" +
+      "(\t\022\030\n\020resource_project\030\004 \001(\t\022\027\n\017resource" +
+      "_owners\030\005 \003(\t\032Q\n\027ResourcePropertiesEntry" +
+      "\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pr" +
+      "otobuf.Value:\0028\001:U\352AR\n#securitycenter.go" +
+      "ogleapis.com/Asset\022+organizations/{organ" +
+      "ization}/assets/{asset}B~\n\'com.google.cl" +
+      "oud.securitycenter.v1beta1P\001ZQgoogle.gol" +
+      "ang.org/genproto/googleapis/cloud/securi" +
+      "tycenter/v1beta1;securitycenterb\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor(),
+          com.google.protobuf.StructProto.getDescriptor(),
+          com.google.protobuf.TimestampProto.getDescriptor(),
+          com.google.api.AnnotationsProto.getDescriptor(),
+        });
+    internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_securitycenter_v1beta1_Asset_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor,
+        new java.lang.String[] { "Name", "SecurityCenterProperties", "ResourceProperties", "SecurityMarks", "CreateTime", "UpdateTime", });
+    internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor =
+      internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor,
+        new java.lang.String[] { "ResourceName", "ResourceType", "ResourceParent", "ResourceProject", "ResourceOwners", });
+    internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_descriptor =
+      internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor.getNestedTypes().get(1);
+    internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor();
+    com.google.protobuf.StructProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
+    com.google.api.AnnotationsProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java
similarity index 67%
rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java
index 44cad179d..89f1c3e50 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1beta1;
 
 /**
- *
- *
  * 
  * Request message for creating a finding.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.CreateFindingRequest} */ -public final class CreateFindingRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateFindingRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.CreateFindingRequest) CreateFindingRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateFindingRequest.newBuilder() to construct. private CreateFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateFindingRequest() { parent_ = ""; findingId_ = ""; @@ -44,15 +26,16 @@ private CreateFindingRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateFindingRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - findingId_ = s; - break; + findingId_ = s; + break; + } + case 26: { + com.google.cloud.securitycenter.v1beta1.Finding.Builder subBuilder = null; + if (finding_ != null) { + subBuilder = finding_.toBuilder(); } - case 26: - { - com.google.cloud.securitycenter.v1beta1.Finding.Builder subBuilder = null; - if (finding_ != null) { - subBuilder = finding_.toBuilder(); - } - finding_ = - input.readMessage( - com.google.cloud.securitycenter.v1beta1.Finding.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(finding_); - finding_ = subBuilder.buildPartial(); - } - - break; + finding_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.Finding.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finding_); + finding_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,42 +93,35 @@ private CreateFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.class, - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.class, com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -159,32 +130,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -195,8 +164,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FINDING_ID_FIELD_NUMBER = 2; private volatile java.lang.Object findingId_; /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
@@ -204,7 +171,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The findingId. */ @java.lang.Override @@ -213,15 +179,14 @@ public java.lang.String getFindingId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingId_ = s; return s; } } /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
@@ -229,15 +194,16 @@ public java.lang.String getFindingId() {
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for findingId. */ @java.lang.Override - public com.google.protobuf.ByteString getFindingIdBytes() { + public com.google.protobuf.ByteString + getFindingIdBytes() { java.lang.Object ref = findingId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingId_ = b; return b; } else { @@ -248,17 +214,12 @@ public com.google.protobuf.ByteString getFindingIdBytes() { public static final int FINDING_FIELD_NUMBER = 3; private com.google.cloud.securitycenter.v1beta1.Finding finding_; /** - * - * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the finding field is set. */ @java.lang.Override @@ -266,36 +227,25 @@ public boolean hasFinding() { return finding_ != null; } /** - * - * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.Finding getFinding() { - return finding_ == null - ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() : finding_; } /** - * - * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder() { @@ -303,7 +253,6 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuil } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,7 +264,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -341,7 +291,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, findingId_); } if (finding_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFinding()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getFinding()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -351,19 +302,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.CreateFindingRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest other = - (com.google.cloud.securitycenter.v1beta1.CreateFindingRequest) obj; + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest other = (com.google.cloud.securitycenter.v1beta1.CreateFindingRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFindingId().equals(other.getFindingId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFindingId() + .equals(other.getFindingId())) return false; if (hasFinding() != other.hasFinding()) return false; if (hasFinding()) { - if (!getFinding().equals(other.getFinding())) return false; + if (!getFinding() + .equals(other.getFinding())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -390,127 +343,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.CreateFindingRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for creating a finding.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.CreateFindingRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.CreateFindingRequest) com.google.cloud.securitycenter.v1beta1.CreateFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.class, - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.class, com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.newBuilder() @@ -518,15 +461,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -544,14 +488,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.CreateFindingRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.CreateFindingRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.getDefaultInstance(); } @@ -566,8 +509,7 @@ public com.google.cloud.securitycenter.v1beta1.CreateFindingRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.CreateFindingRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest result = - new com.google.cloud.securitycenter.v1beta1.CreateFindingRequest(this); + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest result = new com.google.cloud.securitycenter.v1beta1.CreateFindingRequest(this); result.parent_ = parent_; result.findingId_ = findingId_; if (findingBuilder_ == null) { @@ -583,39 +525,38 @@ public com.google.cloud.securitycenter.v1beta1.CreateFindingRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.CreateFindingRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.CreateFindingRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.CreateFindingRequest)other); } else { super.mergeFrom(other); return this; @@ -623,9 +564,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.CreateFindingRequest other) { - if (other - == com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -656,8 +595,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.CreateFindingRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.CreateFindingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -669,23 +607,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -694,24 +628,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -719,70 +650,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -790,8 +708,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object findingId_ = ""; /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
@@ -799,13 +715,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The findingId. */ public java.lang.String getFindingId() { java.lang.Object ref = findingId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingId_ = s; return s; @@ -814,8 +730,6 @@ public java.lang.String getFindingId() { } } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
@@ -823,14 +737,15 @@ public java.lang.String getFindingId() {
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for findingId. */ - public com.google.protobuf.ByteString getFindingIdBytes() { + public com.google.protobuf.ByteString + getFindingIdBytes() { java.lang.Object ref = findingId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingId_ = b; return b; } else { @@ -838,8 +753,6 @@ public com.google.protobuf.ByteString getFindingIdBytes() { } } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
@@ -847,22 +760,20 @@ public com.google.protobuf.ByteString getFindingIdBytes() {
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The findingId to set. * @return This builder for chaining. */ - public Builder setFindingId(java.lang.String value) { + public Builder setFindingId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + findingId_ = value; onChanged(); return this; } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
@@ -870,18 +781,15 @@ public Builder setFindingId(java.lang.String value) {
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFindingId() { - + findingId_ = getDefaultInstance().getFindingId(); onChanged(); return this; } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
@@ -889,16 +797,16 @@ public Builder clearFindingId() {
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for findingId to set. * @return This builder for chaining. */ - public Builder setFindingIdBytes(com.google.protobuf.ByteString value) { + public Builder setFindingIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingId_ = value; onChanged(); return this; @@ -906,61 +814,42 @@ public Builder setFindingIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.securitycenter.v1beta1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Finding, - com.google.cloud.securitycenter.v1beta1.Finding.Builder, - com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> - findingBuilder_; + com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> findingBuilder_; /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The finding. */ public com.google.cloud.securitycenter.v1beta1.Finding getFinding() { if (findingBuilder_ == null) { - return finding_ == null - ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() : finding_; } else { return findingBuilder_.getMessage(); } } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFinding(com.google.cloud.securitycenter.v1beta1.Finding value) { if (findingBuilder_ == null) { @@ -976,16 +865,12 @@ public Builder setFinding(com.google.cloud.securitycenter.v1beta1.Finding value) return this; } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFinding( com.google.cloud.securitycenter.v1beta1.Finding.Builder builderForValue) { @@ -999,24 +884,18 @@ public Builder setFinding( return this; } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeFinding(com.google.cloud.securitycenter.v1beta1.Finding value) { if (findingBuilder_ == null) { if (finding_ != null) { finding_ = - com.google.cloud.securitycenter.v1beta1.Finding.newBuilder(finding_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1beta1.Finding.newBuilder(finding_).mergeFrom(value).buildPartial(); } else { finding_ = value; } @@ -1028,16 +907,12 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1beta1.Finding valu return this; } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFinding() { if (findingBuilder_ == null) { @@ -1051,74 +926,58 @@ public Builder clearFinding() { return this; } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1beta1.Finding.Builder getFindingBuilder() { - + onChanged(); return getFindingFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder() { if (findingBuilder_ != null) { return findingBuilder_.getMessageOrBuilder(); } else { - return finding_ == null - ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? + com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() : finding_; } } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Finding, - com.google.cloud.securitycenter.v1beta1.Finding.Builder, - com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> + com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> getFindingFieldBuilder() { if (findingBuilder_ == null) { - findingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Finding, - com.google.cloud.securitycenter.v1beta1.Finding.Builder, - com.google.cloud.securitycenter.v1beta1.FindingOrBuilder>( - getFinding(), getParentForChildren(), isClean()); + findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, com.google.cloud.securitycenter.v1beta1.FindingOrBuilder>( + getFinding(), + getParentForChildren(), + isClean()); finding_ = null; } return findingBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1128,13 +987,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.CreateFindingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.CreateFindingRequest) - private static final com.google.cloud.securitycenter.v1beta1.CreateFindingRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1beta1.CreateFindingRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.CreateFindingRequest(); } @@ -1143,16 +1001,16 @@ public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFindingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFindingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFindingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1167,4 +1025,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.CreateFindingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequestOrBuilder.java index 0588ab58c..e36c4f7a6 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface CreateFindingRequestOrBuilder - extends +public interface CreateFindingRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.CreateFindingRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
@@ -64,13 +37,10 @@ public interface CreateFindingRequestOrBuilder
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The findingId. */ java.lang.String getFindingId(); /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
@@ -78,52 +48,38 @@ public interface CreateFindingRequestOrBuilder
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for findingId. */ - com.google.protobuf.ByteString getFindingIdBytes(); + com.google.protobuf.ByteString + getFindingIdBytes(); /** - * - * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the finding field is set. */ boolean hasFinding(); /** - * - * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The finding. */ com.google.cloud.securitycenter.v1beta1.Finding getFinding(); /** - * - * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java similarity index 65% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java index 3f1d7cbe9..39979200c 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Request message for creating a source.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.CreateSourceRequest} */ -public final class CreateSourceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSourceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.CreateSourceRequest) CreateSourceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSourceRequest.newBuilder() to construct. private CreateSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSourceRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateSourceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,36 +53,32 @@ private CreateSourceRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.securitycenter.v1beta1.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); } - case 18: - { - com.google.cloud.securitycenter.v1beta1.Source.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.securitycenter.v1beta1.Source.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); - } - - break; + source_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,42 +86,35 @@ private CreateSourceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.class, - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.class, com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -151,32 +123,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -187,17 +157,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SOURCE_FIELD_NUMBER = 2; private com.google.cloud.securitycenter.v1beta1.Source source_; /** - * - * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the source field is set. */ @java.lang.Override @@ -205,36 +170,25 @@ public boolean hasSource() { return source_ != null; } /** - * - * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The source. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.Source getSource() { - return source_ == null - ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() : source_; } /** - * - * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder() { @@ -242,7 +196,6 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilde } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -254,7 +207,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -274,7 +228,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (source_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -284,18 +239,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.CreateSourceRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest other = - (com.google.cloud.securitycenter.v1beta1.CreateSourceRequest) obj; + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest other = (com.google.cloud.securitycenter.v1beta1.CreateSourceRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasSource() != other.hasSource()) return false; if (hasSource()) { - if (!getSource().equals(other.getSource())) return false; + if (!getSource() + .equals(other.getSource())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -320,127 +276,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.CreateSourceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for creating a source.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.CreateSourceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.CreateSourceRequest) com.google.cloud.securitycenter.v1beta1.CreateSourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.class, - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.class, com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.newBuilder() @@ -448,15 +394,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -472,9 +419,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_descriptor; } @java.lang.Override @@ -493,8 +440,7 @@ public com.google.cloud.securitycenter.v1beta1.CreateSourceRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.CreateSourceRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest result = - new com.google.cloud.securitycenter.v1beta1.CreateSourceRequest(this); + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest result = new com.google.cloud.securitycenter.v1beta1.CreateSourceRequest(this); result.parent_ = parent_; if (sourceBuilder_ == null) { result.source_ = source_; @@ -509,39 +455,38 @@ public com.google.cloud.securitycenter.v1beta1.CreateSourceRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.CreateSourceRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.CreateSourceRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.CreateSourceRequest)other); } else { super.mergeFrom(other); return this; @@ -549,8 +494,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.CreateSourceRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -577,8 +521,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.CreateSourceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.CreateSourceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -590,23 +533,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -615,24 +554,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -640,70 +576,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -711,61 +634,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.securitycenter.v1beta1.Source source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Source, - com.google.cloud.securitycenter.v1beta1.Source.Builder, - com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> - sourceBuilder_; + com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> sourceBuilder_; /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The source. */ public com.google.cloud.securitycenter.v1beta1.Source getSource() { if (sourceBuilder_ == null) { - return source_ == null - ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSource(com.google.cloud.securitycenter.v1beta1.Source value) { if (sourceBuilder_ == null) { @@ -781,16 +685,12 @@ public Builder setSource(com.google.cloud.securitycenter.v1beta1.Source value) { return this; } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSource( com.google.cloud.securitycenter.v1beta1.Source.Builder builderForValue) { @@ -804,24 +704,18 @@ public Builder setSource( return this; } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSource(com.google.cloud.securitycenter.v1beta1.Source value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = - com.google.cloud.securitycenter.v1beta1.Source.newBuilder(source_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1beta1.Source.newBuilder(source_).mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -833,16 +727,12 @@ public Builder mergeSource(com.google.cloud.securitycenter.v1beta1.Source value) return this; } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSource() { if (sourceBuilder_ == null) { @@ -856,74 +746,58 @@ public Builder clearSource() { return this; } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1beta1.Source.Builder getSourceBuilder() { - + onChanged(); return getSourceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { - return source_ == null - ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() - : source_; + return source_ == null ? + com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() : source_; } } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Source, - com.google.cloud.securitycenter.v1beta1.Source.Builder, - com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> + com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { - sourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Source, - com.google.cloud.securitycenter.v1beta1.Source.Builder, - com.google.cloud.securitycenter.v1beta1.SourceOrBuilder>( - getSource(), getParentForChildren(), isClean()); + sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, com.google.cloud.securitycenter.v1beta1.SourceOrBuilder>( + getSource(), + getParentForChildren(), + isClean()); source_ = null; } return sourceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -933,12 +807,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.CreateSourceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.CreateSourceRequest) private static final com.google.cloud.securitycenter.v1beta1.CreateSourceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.CreateSourceRequest(); } @@ -947,16 +821,16 @@ public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSourceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateSourceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateSourceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -971,4 +845,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.CreateSourceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequestOrBuilder.java similarity index 51% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequestOrBuilder.java index e73abe85c..bf75fdaad 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequestOrBuilder.java @@ -1,100 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface CreateSourceRequestOrBuilder - extends +public interface CreateSourceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.CreateSourceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the source field is set. */ boolean hasSource(); /** - * - * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The source. */ com.google.cloud.securitycenter.v1beta1.Source getSource(); /** - * - * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java similarity index 74% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java index 1d1192986..b8a813a60 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/finding.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Security Command Center finding.
  * A finding is a record of assessment data (security, risk, health or privacy)
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1beta1.Finding}
  */
-public final class Finding extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Finding extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.Finding)
     FindingOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Finding.newBuilder() to construct.
   private Finding(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Finding() {
     name_ = "";
     parent_ = "";
@@ -52,15 +34,16 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Finding();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Finding(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -80,120 +63,101 @@ private Finding(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            parent_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              resourceName_ = s;
-              break;
-            }
-          case 32:
-            {
-              int rawValue = input.readEnum();
+            resourceName_ = s;
+            break;
+          }
+          case 32: {
+            int rawValue = input.readEnum();
 
-              state_ = rawValue;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            state_ = rawValue;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              category_ = s;
-              break;
-            }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            category_ = s;
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              externalUri_ = s;
-              break;
+            externalUri_ = s;
+            break;
+          }
+          case 58: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              sourceProperties_ = com.google.protobuf.MapField.newMapField(
+                  SourcePropertiesDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 58:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                sourceProperties_ =
-                    com.google.protobuf.MapField.newMapField(
-                        SourcePropertiesDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry
-                  sourceProperties__ =
-                      input.readMessage(
-                          SourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
-                          extensionRegistry);
-              sourceProperties_
-                  .getMutableMap()
-                  .put(sourceProperties__.getKey(), sourceProperties__.getValue());
-              break;
+            com.google.protobuf.MapEntry
+            sourceProperties__ = input.readMessage(
+                SourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            sourceProperties_.getMutableMap().put(
+                sourceProperties__.getKey(), sourceProperties__.getValue());
+            break;
+          }
+          case 66: {
+            com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder subBuilder = null;
+            if (securityMarks_ != null) {
+              subBuilder = securityMarks_.toBuilder();
             }
-          case 66:
-            {
-              com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder subBuilder = null;
-              if (securityMarks_ != null) {
-                subBuilder = securityMarks_.toBuilder();
-              }
-              securityMarks_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1beta1.SecurityMarks.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(securityMarks_);
-                securityMarks_ = subBuilder.buildPartial();
-              }
-
-              break;
+            securityMarks_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.SecurityMarks.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(securityMarks_);
+              securityMarks_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (eventTime_ != null) {
-                subBuilder = eventTime_.toBuilder();
-              }
-              eventTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(eventTime_);
-                eventTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 74: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (eventTime_ != null) {
+              subBuilder = eventTime_.toBuilder();
+            }
+            eventTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(eventTime_);
+              eventTime_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          case 82: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 82:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -201,52 +165,48 @@ private Finding(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1beta1.FindingOuterClass
-        .internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 7:
         return internalGetSourceProperties();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1beta1.FindingOuterClass
-        .internal_static_google_cloud_securitycenter_v1beta1_Finding_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Finding_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1beta1.Finding.class,
-            com.google.cloud.securitycenter.v1beta1.Finding.Builder.class);
+            com.google.cloud.securitycenter.v1beta1.Finding.class, com.google.cloud.securitycenter.v1beta1.Finding.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The state of the finding.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1beta1.Finding.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified state.
      * 
@@ -255,8 +215,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The finding requires attention and has not been addressed yet.
      * 
@@ -265,8 +223,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(1), /** - * - * *
      * The finding has been fixed, triaged as a non-issue or otherwise addressed
      * and is no longer active.
@@ -279,8 +235,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified state.
      * 
@@ -289,8 +243,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The finding requires attention and has not been addressed yet.
      * 
@@ -299,8 +251,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 1; /** - * - * *
      * The finding has been fixed, triaged as a non-issue or otherwise addressed
      * and is no longer active.
@@ -310,6 +260,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INACTIVE_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -334,49 +285,49 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return ACTIVE;
-        case 2:
-          return INACTIVE;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return ACTIVE;
+        case 2: return INACTIVE;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.securitycenter.v1beta1.Finding.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -396,8 +347,6 @@ private State(int value) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -406,7 +355,6 @@ private State(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -415,15 +363,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -432,15 +379,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -451,8 +399,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PARENT_FIELD_NUMBER = 2; private volatile java.lang.Object parent_; /** - * - * *
    * Immutable. The relative resource name of the source the finding belongs to.
    * See:
@@ -463,7 +409,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The parent. */ @java.lang.Override @@ -472,15 +417,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Immutable. The relative resource name of the source the finding belongs to.
    * See:
@@ -491,15 +435,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -510,8 +455,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int RESOURCE_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object resourceName_; /** - * - * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -522,7 +465,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string resource_name = 3; - * * @return The resourceName. */ @java.lang.Override @@ -531,15 +473,14 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** - * - * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -550,15 +491,16 @@ public java.lang.String getResourceName() {
    * 
* * string resource_name = 3; - * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -569,46 +511,33 @@ public com.google.protobuf.ByteString getResourceNameBytes() { public static final int STATE_FIELD_NUMBER = 4; private int state_; /** - * - * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.Finding.State getState() { + @java.lang.Override public com.google.cloud.securitycenter.v1beta1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1beta1.Finding.State result = - com.google.cloud.securitycenter.v1beta1.Finding.State.valueOf(state_); - return result == null - ? com.google.cloud.securitycenter.v1beta1.Finding.State.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1beta1.Finding.State result = com.google.cloud.securitycenter.v1beta1.Finding.State.valueOf(state_); + return result == null ? com.google.cloud.securitycenter.v1beta1.Finding.State.UNRECOGNIZED : result; } public static final int CATEGORY_FIELD_NUMBER = 5; private volatile java.lang.Object category_; /** - * - * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -616,7 +545,6 @@ public com.google.cloud.securitycenter.v1beta1.Finding.State getState() {
    * 
* * string category = 5; - * * @return The category. */ @java.lang.Override @@ -625,15 +553,14 @@ public java.lang.String getCategory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; } } /** - * - * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -641,15 +568,16 @@ public java.lang.String getCategory() {
    * 
* * string category = 5; - * * @return The bytes for category. */ @java.lang.Override - public com.google.protobuf.ByteString getCategoryBytes() { + public com.google.protobuf.ByteString + getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); category_ = b; return b; } else { @@ -660,8 +588,6 @@ public com.google.protobuf.ByteString getCategoryBytes() { public static final int EXTERNAL_URI_FIELD_NUMBER = 6; private volatile java.lang.Object externalUri_; /** - * - * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -669,7 +595,6 @@ public com.google.protobuf.ByteString getCategoryBytes() {
    * 
* * string external_uri = 6; - * * @return The externalUri. */ @java.lang.Override @@ -678,15 +603,14 @@ public java.lang.String getExternalUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalUri_ = s; return s; } } /** - * - * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -694,15 +618,16 @@ public java.lang.String getExternalUri() {
    * 
* * string external_uri = 6; - * * @return The bytes for externalUri. */ @java.lang.Override - public com.google.protobuf.ByteString getExternalUriBytes() { + public com.google.protobuf.ByteString + getExternalUriBytes() { java.lang.Object ref = externalUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); externalUri_ = b; return b; } else { @@ -711,25 +636,21 @@ public com.google.protobuf.ByteString getExternalUriBytes() { } public static final int SOURCE_PROPERTIES_FIELD_NUMBER = 7; - private static final class SourcePropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.Value> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1beta1.FindingOuterClass - .internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); - } - - private com.google.protobuf.MapField - sourceProperties_; - + .newDefaultInstance( + com.google.cloud.securitycenter.v1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> sourceProperties_; private com.google.protobuf.MapField - internalGetSourceProperties() { + internalGetSourceProperties() { if (sourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( SourcePropertiesDefaultEntryHolder.defaultEntry); @@ -741,8 +662,6 @@ public int getSourcePropertiesCount() { return internalGetSourceProperties().getMap().size(); } /** - * - * *
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -752,22 +671,22 @@ public int getSourcePropertiesCount() {
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
+
   @java.lang.Override
-  public boolean containsSourceProperties(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsSourceProperties(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetSourceProperties().getMap().containsKey(key);
   }
-  /** Use {@link #getSourcePropertiesMap()} instead. */
+  /**
+   * Use {@link #getSourcePropertiesMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getSourceProperties() {
     return getSourcePropertiesMap();
   }
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -778,12 +697,11 @@ public java.util.Map getSourcePrope
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
   @java.lang.Override
+
   public java.util.Map getSourcePropertiesMap() {
     return internalGetSourceProperties().getMap();
   }
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -794,18 +712,16 @@ public java.util.Map getSourcePrope
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
   @java.lang.Override
+
   public com.google.protobuf.Value getSourcePropertiesOrDefault(
-      java.lang.String key, com.google.protobuf.Value defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+      java.lang.String key,
+      com.google.protobuf.Value defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetSourceProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -816,10 +732,10 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault(
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
   @java.lang.Override
-  public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+
+  public com.google.protobuf.Value getSourcePropertiesOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetSourceProperties().getMap();
     if (!map.containsKey(key)) {
@@ -831,18 +747,13 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key
   public static final int SECURITY_MARKS_FIELD_NUMBER = 8;
   private com.google.cloud.securitycenter.v1beta1.SecurityMarks securityMarks_;
   /**
-   *
-   *
    * 
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the securityMarks field is set. */ @java.lang.Override @@ -850,50 +761,36 @@ public boolean hasSecurityMarks() { return securityMarks_ != null; } /** - * - * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The securityMarks. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; } /** - * - * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder - getSecurityMarksOrBuilder() { + public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { return getSecurityMarks(); } public static final int EVENT_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp eventTime_; /** - * - * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -903,7 +800,6 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks()
    * 
* * .google.protobuf.Timestamp event_time = 9; - * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -911,8 +807,6 @@ public boolean hasEventTime() { return eventTime_ != null; } /** - * - * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -922,7 +816,6 @@ public boolean hasEventTime() {
    * 
* * .google.protobuf.Timestamp event_time = 9; - * * @return The eventTime. */ @java.lang.Override @@ -930,8 +823,6 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** - * - * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -950,14 +841,11 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
   public static final int CREATE_TIME_FIELD_NUMBER = 10;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -965,14 +853,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return The createTime. */ @java.lang.Override @@ -980,8 +865,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time at which the finding was created in Security Command Center.
    * 
@@ -994,7 +877,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1006,7 +888,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1016,8 +899,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceName_); } - if (state_ - != com.google.cloud.securitycenter.v1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.securitycenter.v1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(4, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { @@ -1026,8 +908,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, externalUri_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetSourceProperties(), SourcePropertiesDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetSourceProperties(), + SourcePropertiesDefaultEntryHolder.defaultEntry, + 7); if (securityMarks_ != null) { output.writeMessage(8, getSecurityMarks()); } @@ -1055,9 +941,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceName_); } - if (state_ - != com.google.cloud.securitycenter.v1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + if (state_ != com.google.cloud.securitycenter.v1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, category_); @@ -1065,24 +951,27 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, externalUri_); } - for (java.util.Map.Entry entry : - internalGetSourceProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry sourceProperties__ = - SourcePropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, sourceProperties__); + for (java.util.Map.Entry entry + : internalGetSourceProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry + sourceProperties__ = SourcePropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, sourceProperties__); } if (securityMarks_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSecurityMarks()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSecurityMarks()); } if (eventTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getEventTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getEventTime()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getCreateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1092,32 +981,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.Finding)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.Finding other = - (com.google.cloud.securitycenter.v1beta1.Finding) obj; + com.google.cloud.securitycenter.v1beta1.Finding other = (com.google.cloud.securitycenter.v1beta1.Finding) obj; - if (!getName().equals(other.getName())) return false; - if (!getParent().equals(other.getParent())) return false; - if (!getResourceName().equals(other.getResourceName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getResourceName() + .equals(other.getResourceName())) return false; if (state_ != other.state_) return false; - if (!getCategory().equals(other.getCategory())) return false; - if (!getExternalUri().equals(other.getExternalUri())) return false; - if (!internalGetSourceProperties().equals(other.internalGetSourceProperties())) return false; + if (!getCategory() + .equals(other.getCategory())) return false; + if (!getExternalUri() + .equals(other.getExternalUri())) return false; + if (!internalGetSourceProperties().equals( + other.internalGetSourceProperties())) return false; if (hasSecurityMarks() != other.hasSecurityMarks()) return false; if (hasSecurityMarks()) { - if (!getSecurityMarks().equals(other.getSecurityMarks())) return false; + if (!getSecurityMarks() + .equals(other.getSecurityMarks())) return false; } if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { - if (!getEventTime().equals(other.getEventTime())) return false; + if (!getEventTime() + .equals(other.getEventTime())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1163,104 +1060,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.Finding parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.Finding parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.Finding parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.Finding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Security Command Center finding.
    * A finding is a record of assessment data (security, risk, health or privacy)
@@ -1271,43 +1161,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1beta1.Finding}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.Finding)
       com.google.cloud.securitycenter.v1beta1.FindingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1beta1.FindingOuterClass
-          .internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 7:
           return internalGetSourceProperties();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 7:
           return internalGetMutableSourceProperties();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1beta1.FindingOuterClass
-          .internal_static_google_cloud_securitycenter_v1beta1_Finding_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Finding_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1beta1.Finding.class,
-              com.google.cloud.securitycenter.v1beta1.Finding.Builder.class);
+              com.google.cloud.securitycenter.v1beta1.Finding.class, com.google.cloud.securitycenter.v1beta1.Finding.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1beta1.Finding.newBuilder()
@@ -1315,15 +1205,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1362,9 +1253,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1beta1.FindingOuterClass
-          .internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor;
     }
 
     @java.lang.Override
@@ -1383,8 +1274,7 @@ public com.google.cloud.securitycenter.v1beta1.Finding build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1beta1.Finding buildPartial() {
-      com.google.cloud.securitycenter.v1beta1.Finding result =
-          new com.google.cloud.securitycenter.v1beta1.Finding(this);
+      com.google.cloud.securitycenter.v1beta1.Finding result = new com.google.cloud.securitycenter.v1beta1.Finding(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.parent_ = parent_;
@@ -1417,39 +1307,38 @@ public com.google.cloud.securitycenter.v1beta1.Finding buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1beta1.Finding) {
-        return mergeFrom((com.google.cloud.securitycenter.v1beta1.Finding) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1beta1.Finding)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1457,8 +1346,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.Finding other) {
-      if (other == com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1482,7 +1370,8 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.Finding other)
         externalUri_ = other.externalUri_;
         onChanged();
       }
-      internalGetMutableSourceProperties().mergeFrom(other.internalGetSourceProperties());
+      internalGetMutableSourceProperties().mergeFrom(
+          other.internalGetSourceProperties());
       if (other.hasSecurityMarks()) {
         mergeSecurityMarks(other.getSecurityMarks());
       }
@@ -1520,13 +1409,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1535,13 +1421,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1550,8 +1436,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1560,14 +1444,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1575,8 +1460,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1585,22 +1468,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1609,18 +1490,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1629,16 +1507,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1646,8 +1524,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object parent_ = ""; /** - * - * *
      * Immutable. The relative resource name of the source the finding belongs to.
      * See:
@@ -1658,13 +1534,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1673,8 +1549,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Immutable. The relative resource name of the source the finding belongs to.
      * See:
@@ -1685,14 +1559,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1700,8 +1575,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Immutable. The relative resource name of the source the finding belongs to.
      * See:
@@ -1712,22 +1585,20 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. The relative resource name of the source the finding belongs to.
      * See:
@@ -1738,18 +1609,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Immutable. The relative resource name of the source the finding belongs to.
      * See:
@@ -1760,16 +1628,16 @@ public Builder clearParent() {
      * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1777,8 +1645,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceName_ = ""; /** - * - * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -1789,13 +1655,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string resource_name = 3; - * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -1804,8 +1670,6 @@ public java.lang.String getResourceName() { } } /** - * - * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -1816,14 +1680,15 @@ public java.lang.String getResourceName() {
      * 
* * string resource_name = 3; - * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -1831,8 +1696,6 @@ public com.google.protobuf.ByteString getResourceNameBytes() { } } /** - * - * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -1843,22 +1706,20 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
      * 
* * string resource_name = 3; - * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName(java.lang.String value) { + public Builder setResourceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceName_ = value; onChanged(); return this; } /** - * - * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -1869,18 +1730,15 @@ public Builder setResourceName(java.lang.String value) {
      * 
* * string resource_name = 3; - * * @return This builder for chaining. */ public Builder clearResourceName() { - + resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** - * - * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -1891,16 +1749,16 @@ public Builder clearResourceName() {
      * 
* * string resource_name = 3; - * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; onChanged(); return this; @@ -1908,67 +1766,51 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; - * * @return The state. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1beta1.Finding.State result = - com.google.cloud.securitycenter.v1beta1.Finding.State.valueOf(state_); - return result == null - ? com.google.cloud.securitycenter.v1beta1.Finding.State.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1beta1.Finding.State result = com.google.cloud.securitycenter.v1beta1.Finding.State.valueOf(state_); + return result == null ? com.google.cloud.securitycenter.v1beta1.Finding.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1976,24 +1818,21 @@ public Builder setState(com.google.cloud.securitycenter.v1beta1.Finding.State va if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2001,8 +1840,6 @@ public Builder clearState() { private java.lang.Object category_ = ""; /** - * - * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2010,13 +1847,13 @@ public Builder clearState() {
      * 
* * string category = 5; - * * @return The category. */ public java.lang.String getCategory() { java.lang.Object ref = category_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; @@ -2025,8 +1862,6 @@ public java.lang.String getCategory() { } } /** - * - * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2034,14 +1869,15 @@ public java.lang.String getCategory() {
      * 
* * string category = 5; - * * @return The bytes for category. */ - public com.google.protobuf.ByteString getCategoryBytes() { + public com.google.protobuf.ByteString + getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); category_ = b; return b; } else { @@ -2049,8 +1885,6 @@ public com.google.protobuf.ByteString getCategoryBytes() { } } /** - * - * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2058,22 +1892,20 @@ public com.google.protobuf.ByteString getCategoryBytes() {
      * 
* * string category = 5; - * * @param value The category to set. * @return This builder for chaining. */ - public Builder setCategory(java.lang.String value) { + public Builder setCategory( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + category_ = value; onChanged(); return this; } /** - * - * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2081,18 +1913,15 @@ public Builder setCategory(java.lang.String value) {
      * 
* * string category = 5; - * * @return This builder for chaining. */ public Builder clearCategory() { - + category_ = getDefaultInstance().getCategory(); onChanged(); return this; } /** - * - * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2100,16 +1929,16 @@ public Builder clearCategory() {
      * 
* * string category = 5; - * * @param value The bytes for category to set. * @return This builder for chaining. */ - public Builder setCategoryBytes(com.google.protobuf.ByteString value) { + public Builder setCategoryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + category_ = value; onChanged(); return this; @@ -2117,8 +1946,6 @@ public Builder setCategoryBytes(com.google.protobuf.ByteString value) { private java.lang.Object externalUri_ = ""; /** - * - * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -2126,13 +1953,13 @@ public Builder setCategoryBytes(com.google.protobuf.ByteString value) {
      * 
* * string external_uri = 6; - * * @return The externalUri. */ public java.lang.String getExternalUri() { java.lang.Object ref = externalUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalUri_ = s; return s; @@ -2141,8 +1968,6 @@ public java.lang.String getExternalUri() { } } /** - * - * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -2150,14 +1975,15 @@ public java.lang.String getExternalUri() {
      * 
* * string external_uri = 6; - * * @return The bytes for externalUri. */ - public com.google.protobuf.ByteString getExternalUriBytes() { + public com.google.protobuf.ByteString + getExternalUriBytes() { java.lang.Object ref = externalUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); externalUri_ = b; return b; } else { @@ -2165,8 +1991,6 @@ public com.google.protobuf.ByteString getExternalUriBytes() { } } /** - * - * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -2174,22 +1998,20 @@ public com.google.protobuf.ByteString getExternalUriBytes() {
      * 
* * string external_uri = 6; - * * @param value The externalUri to set. * @return This builder for chaining. */ - public Builder setExternalUri(java.lang.String value) { + public Builder setExternalUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalUri_ = value; onChanged(); return this; } /** - * - * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -2197,18 +2019,15 @@ public Builder setExternalUri(java.lang.String value) {
      * 
* * string external_uri = 6; - * * @return This builder for chaining. */ public Builder clearExternalUri() { - + externalUri_ = getDefaultInstance().getExternalUri(); onChanged(); return this; } /** - * - * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -2216,41 +2035,37 @@ public Builder clearExternalUri() {
      * 
* * string external_uri = 6; - * * @param value The bytes for externalUri to set. * @return This builder for chaining. */ - public Builder setExternalUriBytes(com.google.protobuf.ByteString value) { + public Builder setExternalUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalUri_ = value; onChanged(); return this; } + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> sourceProperties_; private com.google.protobuf.MapField - sourceProperties_; - - private com.google.protobuf.MapField - internalGetSourceProperties() { + internalGetSourceProperties() { if (sourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( SourcePropertiesDefaultEntryHolder.defaultEntry); } return sourceProperties_; } - private com.google.protobuf.MapField - internalGetMutableSourceProperties() { - onChanged(); - ; + internalGetMutableSourceProperties() { + onChanged();; if (sourceProperties_ == null) { - sourceProperties_ = - com.google.protobuf.MapField.newMapField( - SourcePropertiesDefaultEntryHolder.defaultEntry); + sourceProperties_ = com.google.protobuf.MapField.newMapField( + SourcePropertiesDefaultEntryHolder.defaultEntry); } if (!sourceProperties_.isMutable()) { sourceProperties_ = sourceProperties_.copy(); @@ -2262,8 +2077,6 @@ public int getSourcePropertiesCount() { return internalGetSourceProperties().getMap().size(); } /** - * - * *
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2273,22 +2086,22 @@ public int getSourcePropertiesCount() {
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
+
     @java.lang.Override
-    public boolean containsSourceProperties(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsSourceProperties(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetSourceProperties().getMap().containsKey(key);
     }
-    /** Use {@link #getSourcePropertiesMap()} instead. */
+    /**
+     * Use {@link #getSourcePropertiesMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getSourceProperties() {
       return getSourcePropertiesMap();
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2299,12 +2112,11 @@ public java.util.Map getSourcePrope
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
     @java.lang.Override
+
     public java.util.Map getSourcePropertiesMap() {
       return internalGetSourceProperties().getMap();
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2315,18 +2127,16 @@ public java.util.Map getSourcePrope
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
     @java.lang.Override
+
     public com.google.protobuf.Value getSourcePropertiesOrDefault(
-        java.lang.String key, com.google.protobuf.Value defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+        java.lang.String key,
+        com.google.protobuf.Value defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetSourceProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2337,10 +2147,10 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault(
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
     @java.lang.Override
-    public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+
+    public com.google.protobuf.Value getSourcePropertiesOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetSourceProperties().getMap();
       if (!map.containsKey(key)) {
@@ -2350,12 +2160,11 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key
     }
 
     public Builder clearSourceProperties() {
-      internalGetMutableSourceProperties().getMutableMap().clear();
+      internalGetMutableSourceProperties().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2365,21 +2174,23 @@ public Builder clearSourceProperties() {
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
-    public Builder removeSourceProperties(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableSourceProperties().getMutableMap().remove(key);
+
+    public Builder removeSourceProperties(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableSourceProperties().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableSourceProperties() {
+    public java.util.Map
+    getMutableSourceProperties() {
       return internalGetMutableSourceProperties().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2389,20 +2200,19 @@ public java.util.Map getMutableSour
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
-    public Builder putSourceProperties(java.lang.String key, com.google.protobuf.Value value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putSourceProperties(
+        java.lang.String key,
+        com.google.protobuf.Value value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableSourceProperties().getMutableMap().put(key, value);
+      internalGetMutableSourceProperties().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2412,72 +2222,55 @@ public Builder putSourceProperties(java.lang.String key, com.google.protobuf.Val
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
+
     public Builder putAllSourceProperties(
         java.util.Map values) {
-      internalGetMutableSourceProperties().getMutableMap().putAll(values);
+      internalGetMutableSourceProperties().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private com.google.cloud.securitycenter.v1beta1.SecurityMarks securityMarks_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1beta1.SecurityMarks,
-            com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder,
-            com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder>
-        securityMarksBuilder_;
+        com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder> securityMarksBuilder_;
     /**
-     *
-     *
      * 
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The securityMarks. */ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; } else { return securityMarksBuilder_.getMessage(); } } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { @@ -2493,17 +2286,13 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1beta1.Security return this; } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSecurityMarks( com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder builderForValue) { @@ -2517,25 +2306,19 @@ public Builder setSecurityMarks( return this; } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { if (securityMarks_ != null) { securityMarks_ = - com.google.cloud.securitycenter.v1beta1.SecurityMarks.newBuilder(securityMarks_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1beta1.SecurityMarks.newBuilder(securityMarks_).mergeFrom(value).buildPartial(); } else { securityMarks_ = value; } @@ -2547,17 +2330,13 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1beta1.Securi return this; } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -2571,71 +2350,54 @@ public Builder clearSecurityMarks() { return this; } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurityMarksBuilder() { - + onChanged(); return getSecurityMarksFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder - getSecurityMarksOrBuilder() { + public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { if (securityMarksBuilder_ != null) { return securityMarksBuilder_.getMessageOrBuilder(); } else { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? + com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; } } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.SecurityMarks, - com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, - com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder> + com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder> getSecurityMarksFieldBuilder() { if (securityMarksBuilder_ == null) { - securityMarksBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.SecurityMarks, - com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, - com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder>( - getSecurityMarks(), getParentForChildren(), isClean()); + securityMarksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder>( + getSecurityMarks(), + getParentForChildren(), + isClean()); securityMarks_ = null; } return securityMarksBuilder_; @@ -2643,13 +2405,8 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurity private com.google.protobuf.Timestamp eventTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - eventTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_; /** - * - * *
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2659,15 +2416,12 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurity
      * 
* * .google.protobuf.Timestamp event_time = 9; - * * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return eventTimeBuilder_ != null || eventTime_ != null; } /** - * - * *
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2677,7 +2431,6 @@ public boolean hasEventTime() {
      * 
* * .google.protobuf.Timestamp event_time = 9; - * * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { @@ -2688,8 +2441,6 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** - * - * *
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2714,8 +2465,6 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2726,7 +2475,8 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp event_time = 9;
      */
-    public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEventTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (eventTimeBuilder_ == null) {
         eventTime_ = builderForValue.build();
         onChanged();
@@ -2737,8 +2487,6 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2753,7 +2501,7 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       if (eventTimeBuilder_ == null) {
         if (eventTime_ != null) {
           eventTime_ =
-              com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial();
         } else {
           eventTime_ = value;
         }
@@ -2765,8 +2513,6 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2789,8 +2535,6 @@ public Builder clearEventTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2802,13 +2546,11 @@ public Builder clearEventTime() {
      * .google.protobuf.Timestamp event_time = 9;
      */
     public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() {
-
+      
       onChanged();
       return getEventTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2823,12 +2565,11 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
       if (eventTimeBuilder_ != null) {
         return eventTimeBuilder_.getMessageOrBuilder();
       } else {
-        return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+        return eventTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2840,17 +2581,14 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
      * .google.protobuf.Timestamp event_time = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEventTimeFieldBuilder() {
       if (eventTimeBuilder_ == null) {
-        eventTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEventTime(), getParentForChildren(), isClean());
+        eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEventTime(),
+                getParentForChildren(),
+                isClean());
         eventTime_ = null;
       }
       return eventTimeBuilder_;
@@ -2858,47 +2596,34 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -2919,15 +2644,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2938,8 +2662,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -2950,7 +2672,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2962,8 +2684,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -2982,8 +2702,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -2991,13 +2709,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 10; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -3008,14 +2724,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -3023,24 +2736,21 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3050,12 +2760,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.Finding) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.Finding) private static final com.google.cloud.securitycenter.v1beta1.Finding DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.Finding(); } @@ -3064,16 +2774,16 @@ public static com.google.cloud.securitycenter.v1beta1.Finding getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Finding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Finding(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Finding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Finding(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3088,4 +2798,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingName.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingName.java diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOrBuilder.java similarity index 82% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOrBuilder.java index 9348f15a8..a31758c32 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/finding.proto package com.google.cloud.securitycenter.v1beta1; -public interface FindingOrBuilder - extends +public interface FindingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.Finding) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -34,13 +16,10 @@ public interface FindingOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -49,14 +28,12 @@ public interface FindingOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Immutable. The relative resource name of the source the finding belongs to.
    * See:
@@ -67,13 +44,10 @@ public interface FindingOrBuilder
    * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Immutable. The relative resource name of the source the finding belongs to.
    * See:
@@ -84,14 +58,12 @@ public interface FindingOrBuilder
    * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -102,13 +74,10 @@ public interface FindingOrBuilder
    * 
* * string resource_name = 3; - * * @return The resourceName. */ java.lang.String getResourceName(); /** - * - * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -119,39 +88,31 @@ public interface FindingOrBuilder
    * 
* * string resource_name = 3; - * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString getResourceNameBytes(); + com.google.protobuf.ByteString + getResourceNameBytes(); /** - * - * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; - * * @return The state. */ com.google.cloud.securitycenter.v1beta1.Finding.State getState(); /** - * - * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -159,13 +120,10 @@ public interface FindingOrBuilder
    * 
* * string category = 5; - * * @return The category. */ java.lang.String getCategory(); /** - * - * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -173,14 +131,12 @@ public interface FindingOrBuilder
    * 
* * string category = 5; - * * @return The bytes for category. */ - com.google.protobuf.ByteString getCategoryBytes(); + com.google.protobuf.ByteString + getCategoryBytes(); /** - * - * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -188,13 +144,10 @@ public interface FindingOrBuilder
    * 
* * string external_uri = 6; - * * @return The externalUri. */ java.lang.String getExternalUri(); /** - * - * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -202,14 +155,12 @@ public interface FindingOrBuilder
    * 
* * string external_uri = 6; - * * @return The bytes for externalUri. */ - com.google.protobuf.ByteString getExternalUriBytes(); + com.google.protobuf.ByteString + getExternalUriBytes(); /** - * - * *
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -221,8 +172,6 @@ public interface FindingOrBuilder
    */
   int getSourcePropertiesCount();
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -232,13 +181,15 @@ public interface FindingOrBuilder
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-  boolean containsSourceProperties(java.lang.String key);
-  /** Use {@link #getSourcePropertiesMap()} instead. */
+  boolean containsSourceProperties(
+      java.lang.String key);
+  /**
+   * Use {@link #getSourcePropertiesMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getSourceProperties();
+  java.util.Map
+  getSourceProperties();
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -248,10 +199,9 @@ public interface FindingOrBuilder
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-  java.util.Map getSourcePropertiesMap();
+  java.util.Map
+  getSourcePropertiesMap();
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -263,13 +213,11 @@ public interface FindingOrBuilder
    */
 
   /* nullable */
-  com.google.protobuf.Value getSourcePropertiesOrDefault(
+com.google.protobuf.Value getSourcePropertiesOrDefault(
       java.lang.String key,
       /* nullable */
-      com.google.protobuf.Value defaultValue);
+com.google.protobuf.Value defaultValue);
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -279,58 +227,44 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-  com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key);
+
+  com.google.protobuf.Value getSourcePropertiesOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** - * - * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The securityMarks. */ com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks(); /** - * - * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder(); /** - * - * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -340,13 +274,10 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    * 
* * .google.protobuf.Timestamp event_time = 9; - * * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** - * - * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -356,13 +287,10 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    * 
* * .google.protobuf.Timestamp event_time = 9; - * * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** - * - * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -376,32 +304,24 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
   com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time at which the finding was created in Security Command Center.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java new file mode 100644 index 000000000..9c7ffdb94 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java @@ -0,0 +1,103 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1beta1/finding.proto + +package com.google.cloud.securitycenter.v1beta1; + +public final class FindingOuterClass { + private FindingOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1beta1_Finding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/securitycenter/v1beta1/fi" + + "nding.proto\022#google.cloud.securitycenter" + + ".v1beta1\032\034google/api/annotations.proto\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\0328google/cloud/securit" + + "ycenter/v1beta1/security_marks.proto\032\034go" + + "ogle/protobuf/struct.proto\032\037google/proto" + + "buf/timestamp.proto\"\270\005\n\007Finding\022\014\n\004name\030" + + "\001 \001(\t\022\023\n\006parent\030\002 \001(\tB\003\340A\005\022\025\n\rresource_n" + + "ame\030\003 \001(\t\022A\n\005state\030\004 \001(\01622.google.cloud." + + "securitycenter.v1beta1.Finding.State\022\020\n\010" + + "category\030\005 \001(\t\022\024\n\014external_uri\030\006 \001(\t\022]\n\021" + + "source_properties\030\007 \003(\0132B.google.cloud.s" + + "ecuritycenter.v1beta1.Finding.SourceProp" + + "ertiesEntry\022O\n\016security_marks\030\010 \001(\01322.go" + + "ogle.cloud.securitycenter.v1beta1.Securi" + + "tyMarksB\003\340A\003\022.\n\nevent_time\030\t \001(\0132\032.googl" + + "e.protobuf.Timestamp\022/\n\013create_time\030\n \001(" + + "\0132\032.google.protobuf.Timestamp\032O\n\025SourceP" + + "ropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001" + + "(\0132\026.google.protobuf.Value:\0028\001\"8\n\005State\022" + + "\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010IN" + + "ACTIVE\020\002:l\352Ai\n%securitycenter.googleapis" + + ".com/Finding\022@organizations/{organizatio" + + "n}/sources/{source}/findings/{finding}B~" + + "\n\'com.google.cloud.securitycenter.v1beta" + + "1P\001ZQgoogle.golang.org/genproto/googleap" + + "is/cloud/securitycenter/v1beta1;security" + + "centerb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1beta1_Finding_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor, + new java.lang.String[] { "Name", "Parent", "ResourceName", "State", "Category", "ExternalUri", "SourceProperties", "SecurityMarks", "EventTime", "CreateTime", }); + internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_descriptor = + internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java similarity index 63% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java index 1ba59c8e4..c2c506bbd 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Request message for getting organization settings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest} */ -public final class GetOrganizationSettingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetOrganizationSettingsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) GetOrganizationSettingsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetOrganizationSettingsRequest.newBuilder() to construct. - private GetOrganizationSettingsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetOrganizationSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetOrganizationSettingsRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetOrganizationSettingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetOrganizationSettingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,20 +53,19 @@ private GetOrganizationSettingsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,42 +73,35 @@ private GetOrganizationSettingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.class, - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the organization to get organization settings for. Its format is
    * "organizations/[organization_id]/organizationSettings".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the organization to get organization settings for. Its format is
    * "organizations/[organization_id]/organizationSettings".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -170,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -206,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest other = - (com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) obj; + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest other = (com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for getting organization settings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.class, - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.newBuilder() + // Construct using com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -382,22 +343,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest build() { - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest result = - buildPartial(); + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -406,8 +364,7 @@ public com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest bu @java.lang.Override public com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest result = - new com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest(this); + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest result = new com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest(this); result.name_ = name_; onBuilt(); return result; @@ -417,51 +374,46 @@ public com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) { - return mergeFrom( - (com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest other) { - if (other - == com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest other) { + if (other == com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -485,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -499,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -524,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -549,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -629,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) - private static final com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest(); } - public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOrganizationSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetOrganizationSettingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrganizationSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetOrganizationSettingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -666,8 +594,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java new file mode 100644 index 000000000..b65dc8b6b --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1beta1; + +public interface GetOrganizationSettingsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the organization to get organization settings for. Its format is
+   * "organizations/[organization_id]/organizationSettings".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the organization to get organization settings for. Its format is
+   * "organizations/[organization_id]/organizationSettings".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java similarity index 67% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java index e89e2224e..e80502a38 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Request message for getting a source.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GetSourceRequest} */ -public final class GetSourceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSourceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.GetSourceRequest) GetSourceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSourceRequest.newBuilder() to construct. private GetSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSourceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetSourceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetSourceRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetSourceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GetSourceRequest.class, - com.google.cloud.securitycenter.v1beta1.GetSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.GetSourceRequest.class, com.google.cloud.securitycenter.v1beta1.GetSourceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Relative resource name of the source. Its format is
    * "organizations/[organization_id]/source/[source_id]".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Relative resource name of the source. Its format is
    * "organizations/[organization_id]/source/[source_id]".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.GetSourceRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.GetSourceRequest other = - (com.google.cloud.securitycenter.v1beta1.GetSourceRequest) obj; + com.google.cloud.securitycenter.v1beta1.GetSourceRequest other = (com.google.cloud.securitycenter.v1beta1.GetSourceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.GetSourceRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.GetSourceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for getting a source.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GetSourceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.GetSourceRequest) com.google.cloud.securitycenter.v1beta1.GetSourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GetSourceRequest.class, - com.google.cloud.securitycenter.v1beta1.GetSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.GetSourceRequest.class, com.google.cloud.securitycenter.v1beta1.GetSourceRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.GetSourceRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_descriptor; } @java.lang.Override @@ -400,8 +364,7 @@ public com.google.cloud.securitycenter.v1beta1.GetSourceRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.GetSourceRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.GetSourceRequest result = - new com.google.cloud.securitycenter.v1beta1.GetSourceRequest(this); + com.google.cloud.securitycenter.v1beta1.GetSourceRequest result = new com.google.cloud.securitycenter.v1beta1.GetSourceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -411,39 +374,38 @@ public com.google.cloud.securitycenter.v1beta1.GetSourceRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.GetSourceRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.GetSourceRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.GetSourceRequest)other); } else { super.mergeFrom(other); return this; @@ -451,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.GetSourceRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.GetSourceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1beta1.GetSourceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -476,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.GetSourceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.GetSourceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -489,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -514,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -539,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -619,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.GetSourceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.GetSourceRequest) private static final com.google.cloud.securitycenter.v1beta1.GetSourceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.GetSourceRequest(); } @@ -633,16 +573,16 @@ public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSourceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSourceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSourceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.GetSourceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java new file mode 100644 index 000000000..6648e12aa --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1beta1; + +public interface GetSourceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.GetSourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Relative resource name of the source. Its format is
+   * "organizations/[organization_id]/source/[source_id]".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Relative resource name of the source. Its format is
+   * "organizations/[organization_id]/source/[source_id]".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java similarity index 81% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java index e13332f02..645a99017 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Request message for grouping by assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GroupAssetsRequest} */ -public final class GroupAssetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GroupAssetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.GroupAssetsRequest) GroupAssetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GroupAssetsRequest.newBuilder() to construct. private GroupAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GroupAssetsRequest() { parent_ = ""; filter_ = ""; @@ -46,15 +28,16 @@ private GroupAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GroupAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GroupAssetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,76 +56,68 @@ private GroupAssetsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - groupBy_ = s; - break; - } - case 34: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (compareDuration_ != null) { - subBuilder = compareDuration_.toBuilder(); - } - compareDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compareDuration_); - compareDuration_ = subBuilder.buildPartial(); - } - - break; + groupBy_ = s; + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + compareDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 64: - { - pageSize_ = input.readInt32(); - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 64: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -150,42 +125,35 @@ private GroupAssetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.class, - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.class, com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -194,32 +162,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -230,8 +196,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -256,7 +220,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -265,15 +228,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -298,15 +260,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -317,8 +280,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int GROUP_BY_FIELD_NUMBER = 3; private volatile java.lang.Object groupBy_; /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -333,7 +294,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The groupBy. */ @java.lang.Override @@ -342,15 +302,14 @@ public java.lang.String getGroupBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; } } /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -365,15 +324,16 @@ public java.lang.String getGroupBy() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for groupBy. */ @java.lang.Override - public com.google.protobuf.ByteString getGroupByBytes() { + public com.google.protobuf.ByteString + getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); groupBy_ = b; return b; } else { @@ -384,8 +344,6 @@ public com.google.protobuf.ByteString getGroupByBytes() { public static final int COMPARE_DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration compareDuration_; /** - * - * *
    * When compare_duration is set, the Asset's "state" property is updated to
    * indicate whether the asset was added, removed, or remained present during
@@ -407,7 +365,6 @@ public com.google.protobuf.ByteString getGroupByBytes() {
    * 
* * .google.protobuf.Duration compare_duration = 4; - * * @return Whether the compareDuration field is set. */ @java.lang.Override @@ -415,8 +372,6 @@ public boolean hasCompareDuration() { return compareDuration_ != null; } /** - * - * *
    * When compare_duration is set, the Asset's "state" property is updated to
    * indicate whether the asset was added, removed, or remained present during
@@ -438,18 +393,13 @@ public boolean hasCompareDuration() {
    * 
* * .google.protobuf.Duration compare_duration = 4; - * * @return The compareDuration. */ @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { - return compareDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : compareDuration_; + return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; } /** - * - * *
    * When compare_duration is set, the Asset's "state" property is updated to
    * indicate whether the asset was added, removed, or remained present during
@@ -480,8 +430,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
   public static final int READ_TIME_FIELD_NUMBER = 5;
   private com.google.protobuf.Timestamp readTime_;
   /**
-   *
-   *
    * 
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -490,7 +438,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
    * 
* * .google.protobuf.Timestamp read_time = 5; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -498,8 +445,6 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -508,7 +453,6 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 5; - * * @return The readTime. */ @java.lang.Override @@ -516,8 +460,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -535,8 +477,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int PAGE_TOKEN_FIELD_NUMBER = 7;
   private volatile java.lang.Object pageToken_;
   /**
-   *
-   *
    * 
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -544,7 +484,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * string page_token = 7; - * * @return The pageToken. */ @java.lang.Override @@ -553,15 +492,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -569,15 +507,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 7; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -588,15 +527,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 8; private int pageSize_; /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 8; - * * @return The pageSize. */ @java.lang.Override @@ -605,7 +541,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -617,7 +552,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -658,16 +594,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, groupBy_); } if (compareDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCompareDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCompareDuration()); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(8, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -677,27 +616,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest other = - (com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest) obj; + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest other = (com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getGroupBy().equals(other.getGroupBy())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getGroupBy() + .equals(other.getGroupBy())) return false; if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - if (!getCompareDuration().equals(other.getCompareDuration())) return false; + if (!getCompareDuration() + .equals(other.getCompareDuration())) return false; } if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -733,127 +678,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for grouping by assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GroupAssetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.GroupAssetsRequest) com.google.cloud.securitycenter.v1beta1.GroupAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.class, - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.class, com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.newBuilder() @@ -861,15 +796,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -899,9 +835,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_descriptor; } @java.lang.Override @@ -920,8 +856,7 @@ public com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest result = - new com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest(this); + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest result = new com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.groupBy_ = groupBy_; @@ -945,39 +880,38 @@ public com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest)other); } else { super.mergeFrom(other); return this; @@ -985,8 +919,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1031,8 +964,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1044,23 +976,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1069,24 +997,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1094,70 +1019,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1165,8 +1077,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1191,13 +1101,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1206,8 +1116,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1232,14 +1140,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1247,8 +1156,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1273,22 +1180,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1313,18 +1218,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1349,16 +1251,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1366,8 +1268,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object groupBy_ = ""; /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1382,13 +1282,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The groupBy. */ public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; @@ -1397,8 +1297,6 @@ public java.lang.String getGroupBy() { } } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1413,14 +1311,15 @@ public java.lang.String getGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for groupBy. */ - public com.google.protobuf.ByteString getGroupByBytes() { + public com.google.protobuf.ByteString + getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); groupBy_ = b; return b; } else { @@ -1428,8 +1327,6 @@ public com.google.protobuf.ByteString getGroupByBytes() { } } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1444,22 +1341,20 @@ public com.google.protobuf.ByteString getGroupByBytes() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The groupBy to set. * @return This builder for chaining. */ - public Builder setGroupBy(java.lang.String value) { + public Builder setGroupBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + groupBy_ = value; onChanged(); return this; } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1474,18 +1369,15 @@ public Builder setGroupBy(java.lang.String value) {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearGroupBy() { - + groupBy_ = getDefaultInstance().getGroupBy(); onChanged(); return this; } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1500,16 +1392,16 @@ public Builder clearGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for groupBy to set. * @return This builder for chaining. */ - public Builder setGroupByBytes(com.google.protobuf.ByteString value) { + public Builder setGroupByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + groupBy_ = value; onChanged(); return this; @@ -1517,13 +1409,8 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Duration compareDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - compareDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> compareDurationBuilder_; /** - * - * *
      * When compare_duration is set, the Asset's "state" property is updated to
      * indicate whether the asset was added, removed, or remained present during
@@ -1545,15 +1432,12 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Duration compare_duration = 4; - * * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; } /** - * - * *
      * When compare_duration is set, the Asset's "state" property is updated to
      * indicate whether the asset was added, removed, or remained present during
@@ -1575,21 +1459,16 @@ public boolean hasCompareDuration() {
      * 
* * .google.protobuf.Duration compare_duration = 4; - * * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { - return compareDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : compareDuration_; + return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; } else { return compareDurationBuilder_.getMessage(); } } /** - * - * *
      * When compare_duration is set, the Asset's "state" property is updated to
      * indicate whether the asset was added, removed, or remained present during
@@ -1626,8 +1505,6 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the Asset's "state" property is updated to
      * indicate whether the asset was added, removed, or remained present during
@@ -1650,7 +1527,8 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration compare_duration = 4;
      */
-    public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setCompareDuration(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (compareDurationBuilder_ == null) {
         compareDuration_ = builderForValue.build();
         onChanged();
@@ -1661,8 +1539,6 @@ public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the Asset's "state" property is updated to
      * indicate whether the asset was added, removed, or remained present during
@@ -1689,9 +1565,7 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       if (compareDurationBuilder_ == null) {
         if (compareDuration_ != null) {
           compareDuration_ =
-              com.google.protobuf.Duration.newBuilder(compareDuration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(compareDuration_).mergeFrom(value).buildPartial();
         } else {
           compareDuration_ = value;
         }
@@ -1703,8 +1577,6 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the Asset's "state" property is updated to
      * indicate whether the asset was added, removed, or remained present during
@@ -1739,8 +1611,6 @@ public Builder clearCompareDuration() {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the Asset's "state" property is updated to
      * indicate whether the asset was added, removed, or remained present during
@@ -1764,13 +1634,11 @@ public Builder clearCompareDuration() {
      * .google.protobuf.Duration compare_duration = 4;
      */
     public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
-
+      
       onChanged();
       return getCompareDurationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the Asset's "state" property is updated to
      * indicate whether the asset was added, removed, or remained present during
@@ -1797,14 +1665,11 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
       if (compareDurationBuilder_ != null) {
         return compareDurationBuilder_.getMessageOrBuilder();
       } else {
-        return compareDuration_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : compareDuration_;
+        return compareDuration_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : compareDuration_;
       }
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the Asset's "state" property is updated to
      * indicate whether the asset was added, removed, or remained present during
@@ -1828,17 +1693,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * .google.protobuf.Duration compare_duration = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getCompareDurationFieldBuilder() {
       if (compareDurationBuilder_ == null) {
-        compareDurationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getCompareDuration(), getParentForChildren(), isClean());
+        compareDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getCompareDuration(),
+                getParentForChildren(),
+                isClean());
         compareDuration_ = null;
       }
       return compareDurationBuilder_;
@@ -1846,13 +1708,8 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
 
     private com.google.protobuf.Timestamp readTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        readTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_;
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1861,15 +1718,12 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * 
* * .google.protobuf.Timestamp read_time = 5; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1878,7 +1732,6 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 5; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1889,8 +1742,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1914,8 +1765,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1925,7 +1774,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 5;
      */
-    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1936,8 +1786,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1951,7 +1799,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -1963,8 +1811,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1986,8 +1832,6 @@ public Builder clearReadTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1998,13 +1842,11 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-
+      
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2018,12 +1860,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2034,17 +1875,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(), getParentForChildren(), isClean());
+        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(),
+                getParentForChildren(),
+                isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -2052,8 +1890,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private java.lang.Object pageToken_ = "";
     /**
-     *
-     *
      * 
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2061,13 +1897,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * string page_token = 7; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2076,8 +1912,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2085,14 +1919,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 7; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2100,8 +1935,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2109,22 +1942,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 7; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2132,18 +1963,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 7; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2151,32 +1979,29 @@ public Builder clearPageToken() {
      * 
* * string page_token = 7; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; - * * @return The pageSize. */ @java.lang.Override @@ -2184,45 +2009,39 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2232,12 +2051,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.GroupAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.GroupAssetsRequest) private static final com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest(); } @@ -2246,16 +2065,16 @@ public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupAssetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAssetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2270,4 +2089,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequestOrBuilder.java similarity index 88% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequestOrBuilder.java index 3b333d7b4..055c69f6b 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface GroupAssetsRequestOrBuilder - extends +public interface GroupAssetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.GroupAssetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -81,13 +54,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -112,14 +82,12 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -134,13 +102,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The groupBy. */ java.lang.String getGroupBy(); /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -155,14 +120,12 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for groupBy. */ - com.google.protobuf.ByteString getGroupByBytes(); + com.google.protobuf.ByteString + getGroupByBytes(); /** - * - * *
    * When compare_duration is set, the Asset's "state" property is updated to
    * indicate whether the asset was added, removed, or remained present during
@@ -184,13 +147,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * .google.protobuf.Duration compare_duration = 4; - * * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** - * - * *
    * When compare_duration is set, the Asset's "state" property is updated to
    * indicate whether the asset was added, removed, or remained present during
@@ -212,13 +172,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * .google.protobuf.Duration compare_duration = 4; - * * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** - * - * *
    * When compare_duration is set, the Asset's "state" property is updated to
    * indicate whether the asset was added, removed, or remained present during
@@ -244,8 +201,6 @@ public interface GroupAssetsRequestOrBuilder
   com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -254,13 +209,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 5; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -269,13 +221,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 5; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -288,8 +237,6 @@ public interface GroupAssetsRequestOrBuilder
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -297,13 +244,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * string page_token = 7; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -311,21 +255,18 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * string page_token = 7; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 8; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java similarity index 77% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java index 7f227aeda..efabc922a 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Response message for grouping by assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GroupAssetsResponse} */ -public final class GroupAssetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GroupAssetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.GroupAssetsResponse) GroupAssetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GroupAssetsResponse.newBuilder() to construct. private GroupAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GroupAssetsResponse() { groupByResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private GroupAssetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GroupAssetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GroupAssetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,48 +55,41 @@ private GroupAssetsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - groupByResults_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - groupByResults_.add( - input.readMessage( - com.google.cloud.securitycenter.v1beta1.GroupResult.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + groupByResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + groupByResults_.add( + input.readMessage(com.google.cloud.securitycenter.v1beta1.GroupResult.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -121,7 +97,8 @@ private GroupAssetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); @@ -130,27 +107,22 @@ private GroupAssetsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.class, - com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.class, com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.Builder.class); } public static final int GROUP_BY_RESULTS_FIELD_NUMBER = 1; private java.util.List groupByResults_; /** - * - * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -160,13 +132,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
   @java.lang.Override
-  public java.util.List
-      getGroupByResultsList() {
+  public java.util.List getGroupByResultsList() {
     return groupByResults_;
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -176,13 +145,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getGroupByResultsOrBuilderList() {
     return groupByResults_;
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -196,8 +163,6 @@ public int getGroupByResultsCount() {
     return groupByResults_.size();
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -211,8 +176,6 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult getGroupByResults(int
     return groupByResults_.get(index);
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -230,14 +193,11 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe
   public static final int READ_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Timestamp readTime_;
   /**
-   *
-   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -245,14 +205,11 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ @java.lang.Override @@ -260,8 +217,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used for executing the groupBy request.
    * 
@@ -276,15 +231,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -293,30 +245,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -325,7 +277,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -337,7 +288,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < groupByResults_.size(); i++) { output.writeMessage(1, groupByResults_.get(i)); } @@ -357,10 +309,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < groupByResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, groupByResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, groupByResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); @@ -373,20 +327,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse other = - (com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse) obj; + com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse other = (com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse) obj; - if (!getGroupByResultsList().equals(other.getGroupByResultsList())) return false; + if (!getGroupByResultsList() + .equals(other.getGroupByResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -414,127 +370,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for grouping by assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GroupAssetsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.GroupAssetsResponse) com.google.cloud.securitycenter.v1beta1.GroupAssetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.class, - com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.class, com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.newBuilder() @@ -542,17 +488,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getGroupByResultsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -574,9 +520,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_descriptor; } @java.lang.Override @@ -595,8 +541,7 @@ public com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse buildPartial() { - com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse result = - new com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse(this); + com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse result = new com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse(this); int from_bitField0_ = bitField0_; if (groupByResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -621,39 +566,38 @@ public com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse)other); } else { super.mergeFrom(other); return this; @@ -661,8 +605,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse other) { - if (other == com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.getDefaultInstance()) return this; if (groupByResultsBuilder_ == null) { if (!other.groupByResults_.isEmpty()) { if (groupByResults_.isEmpty()) { @@ -681,10 +624,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.GroupAssetsResp groupByResultsBuilder_ = null; groupByResults_ = other.groupByResults_; bitField0_ = (bitField0_ & ~0x00000001); - groupByResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGroupByResultsFieldBuilder() - : null; + groupByResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGroupByResultsFieldBuilder() : null; } else { groupByResultsBuilder_.addAllMessages(other.groupByResults_); } @@ -716,8 +658,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -726,30 +667,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List groupByResults_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureGroupByResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - groupByResults_ = - new java.util.ArrayList( - groupByResults_); + groupByResults_ = new java.util.ArrayList(groupByResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.GroupResult, - com.google.cloud.securitycenter.v1beta1.GroupResult.Builder, - com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder> - groupByResultsBuilder_; + com.google.cloud.securitycenter.v1beta1.GroupResult, com.google.cloud.securitycenter.v1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder> groupByResultsBuilder_; /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -758,8 +690,7 @@ private void ensureGroupByResultsIsMutable() {
      *
      * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
      */
-    public java.util.List
-        getGroupByResultsList() {
+    public java.util.List getGroupByResultsList() {
       if (groupByResultsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(groupByResults_);
       } else {
@@ -767,8 +698,6 @@ private void ensureGroupByResultsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -785,8 +714,6 @@ public int getGroupByResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -803,8 +730,6 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult getGroupByResults(int
       }
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -828,8 +753,6 @@ public Builder setGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -850,8 +773,6 @@ public Builder setGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -874,8 +795,6 @@ public Builder addGroupByResults(com.google.cloud.securitycenter.v1beta1.GroupRe
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -899,8 +818,6 @@ public Builder addGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -921,8 +838,6 @@ public Builder addGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -943,8 +858,6 @@ public Builder addGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -957,7 +870,8 @@ public Builder addAllGroupByResults(
         java.lang.Iterable values) {
       if (groupByResultsBuilder_ == null) {
         ensureGroupByResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupByResults_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, groupByResults_);
         onChanged();
       } else {
         groupByResultsBuilder_.addAllMessages(values);
@@ -965,8 +879,6 @@ public Builder addAllGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -986,8 +898,6 @@ public Builder clearGroupByResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1007,8 +917,6 @@ public Builder removeGroupByResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1022,8 +930,6 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder getGroupByRes
       return getGroupByResultsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1035,14 +941,11 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder getGroupByRes
     public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOrBuilder(
         int index) {
       if (groupByResultsBuilder_ == null) {
-        return groupByResults_.get(index);
-      } else {
+        return groupByResults_.get(index);  } else {
         return groupByResultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1051,8 +954,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe
      *
      * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
      */
-    public java.util.List
-        getGroupByResultsOrBuilderList() {
+    public java.util.List 
+         getGroupByResultsOrBuilderList() {
       if (groupByResultsBuilder_ != null) {
         return groupByResultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1060,8 +963,6 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe
       }
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1071,12 +972,10 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe
      * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
      */
     public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByResultsBuilder() {
-      return getGroupByResultsFieldBuilder()
-          .addBuilder(com.google.cloud.securitycenter.v1beta1.GroupResult.getDefaultInstance());
+      return getGroupByResultsFieldBuilder().addBuilder(
+          com.google.cloud.securitycenter.v1beta1.GroupResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1087,13 +986,10 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByRes
      */
     public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByResultsBuilder(
         int index) {
-      return getGroupByResultsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.securitycenter.v1beta1.GroupResult.getDefaultInstance());
+      return getGroupByResultsFieldBuilder().addBuilder(
+          index, com.google.cloud.securitycenter.v1beta1.GroupResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1102,22 +998,16 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByRes
      *
      * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
      */
-    public java.util.List
-        getGroupByResultsBuilderList() {
+    public java.util.List 
+         getGroupByResultsBuilderList() {
       return getGroupByResultsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1beta1.GroupResult,
-            com.google.cloud.securitycenter.v1beta1.GroupResult.Builder,
-            com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder>
+        com.google.cloud.securitycenter.v1beta1.GroupResult, com.google.cloud.securitycenter.v1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder> 
         getGroupByResultsFieldBuilder() {
       if (groupByResultsBuilder_ == null) {
-        groupByResultsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.securitycenter.v1beta1.GroupResult,
-                com.google.cloud.securitycenter.v1beta1.GroupResult.Builder,
-                com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder>(
+        groupByResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.securitycenter.v1beta1.GroupResult, com.google.cloud.securitycenter.v1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder>(
                 groupByResults_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1129,33 +1019,24 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByRes
 
     private com.google.protobuf.Timestamp readTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        readTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_;
     /**
-     *
-     *
      * 
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1166,8 +1047,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1188,15 +1067,14 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -1207,8 +1085,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1219,7 +1095,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -1231,8 +1107,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1251,8 +1125,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1260,13 +1132,11 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1277,12 +1147,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1290,17 +1159,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getReadTime(), getParentForChildren(), isClean()); + readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getReadTime(), + getParentForChildren(), + isClean()); readTime_ = null; } return readTimeBuilder_; @@ -1308,21 +1174,19 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1331,22 +1195,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1354,71 +1217,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1428,12 +1284,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.GroupAssetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.GroupAssetsResponse) private static final com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse(); } @@ -1442,16 +1298,16 @@ public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupAssetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupAssetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAssetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAssetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1466,4 +1322,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponseOrBuilder.java similarity index 80% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponseOrBuilder.java index fae6c9b13..336a15cd9 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface GroupAssetsResponseOrBuilder - extends +public interface GroupAssetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.GroupAssetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -34,10 +16,9 @@ public interface GroupAssetsResponseOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
-  java.util.List getGroupByResultsList();
+  java.util.List 
+      getGroupByResultsList();
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -48,8 +29,6 @@ public interface GroupAssetsResponseOrBuilder
    */
   com.google.cloud.securitycenter.v1beta1.GroupResult getGroupByResults(int index);
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -60,8 +39,6 @@ public interface GroupAssetsResponseOrBuilder
    */
   int getGroupByResultsCount();
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -70,11 +47,9 @@ public interface GroupAssetsResponseOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
-  java.util.List
+  java.util.List 
       getGroupByResultsOrBuilderList();
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -87,32 +62,24 @@ com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOr
       int index);
 
   /**
-   *
-   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used for executing the groupBy request.
    * 
@@ -122,29 +89,24 @@ com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOr com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java similarity index 77% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java index 2e2303e29..199d440b4 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Request message for grouping by findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GroupFindingsRequest} */ -public final class GroupFindingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GroupFindingsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.GroupFindingsRequest) GroupFindingsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GroupFindingsRequest.newBuilder() to construct. private GroupFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GroupFindingsRequest() { parent_ = ""; filter_ = ""; @@ -46,15 +28,16 @@ private GroupFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GroupFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GroupFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,61 +56,55 @@ private GroupFindingsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - groupBy_ = s; - break; + groupBy_ = s; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 48: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 48: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -135,33 +112,29 @@ private GroupFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.class, - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.class, com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To groupBy across
@@ -169,10 +142,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * organizations/{organization_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -181,15 +151,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To groupBy across
@@ -197,18 +166,17 @@ public java.lang.String getParent() {
    * organizations/{organization_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -219,8 +187,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -243,7 +209,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -252,15 +217,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -283,15 +247,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -302,8 +267,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int GROUP_BY_FIELD_NUMBER = 3; private volatile java.lang.Object groupBy_; /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state`). The string value should follow SQL syntax: comma separated list
@@ -317,7 +280,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The groupBy. */ @java.lang.Override @@ -326,15 +288,14 @@ public java.lang.String getGroupBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; } } /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state`). The string value should follow SQL syntax: comma separated list
@@ -348,15 +309,16 @@ public java.lang.String getGroupBy() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for groupBy. */ @java.lang.Override - public com.google.protobuf.ByteString getGroupByBytes() { + public com.google.protobuf.ByteString + getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); groupBy_ = b; return b; } else { @@ -367,8 +329,6 @@ public com.google.protobuf.ByteString getGroupByBytes() { public static final int READ_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp readTime_; /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -377,7 +337,6 @@ public com.google.protobuf.ByteString getGroupByBytes() {
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -385,8 +344,6 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -395,7 +352,6 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ @java.lang.Override @@ -403,8 +359,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -422,8 +376,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int PAGE_TOKEN_FIELD_NUMBER = 5;
   private volatile java.lang.Object pageToken_;
   /**
-   *
-   *
    * 
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -431,7 +383,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * string page_token = 5; - * * @return The pageToken. */ @java.lang.Override @@ -440,15 +391,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -456,15 +406,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 5; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -475,15 +426,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 6; private int pageSize_; /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 6; - * * @return The pageSize. */ @java.lang.Override @@ -492,7 +440,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -504,7 +451,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -542,13 +490,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, groupBy_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -558,23 +508,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest other = - (com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest) obj; + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest other = (com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getGroupBy().equals(other.getGroupBy())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getGroupBy() + .equals(other.getGroupBy())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -606,127 +561,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for grouping by findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GroupFindingsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.GroupFindingsRequest) com.google.cloud.securitycenter.v1beta1.GroupFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.class, - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.class, com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.newBuilder() @@ -734,15 +679,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -766,14 +712,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.getDefaultInstance(); } @@ -788,8 +733,7 @@ public com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest result = - new com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest(this); + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest result = new com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.groupBy_ = groupBy_; @@ -808,39 +752,38 @@ public com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest)other); } else { super.mergeFrom(other); return this; @@ -848,9 +791,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest other) { - if (other - == com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -892,8 +833,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -905,8 +845,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To groupBy across
@@ -914,16 +852,14 @@ public Builder mergeFrom(
      * organizations/{organization_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -932,8 +868,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To groupBy across
@@ -941,17 +875,16 @@ public java.lang.String getParent() {
      * organizations/{organization_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -959,8 +892,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To groupBy across
@@ -968,25 +899,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * organizations/{organization_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To groupBy across
@@ -994,21 +921,16 @@ public Builder setParent(java.lang.String value) {
      * organizations/{organization_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To groupBy across
@@ -1016,19 +938,17 @@ public Builder clearParent() {
      * organizations/{organization_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1036,8 +956,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1060,13 +978,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1075,8 +993,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1099,14 +1015,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1114,8 +1031,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1138,22 +1053,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1176,18 +1089,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1210,16 +1120,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1227,8 +1137,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object groupBy_ = ""; /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state`). The string value should follow SQL syntax: comma separated list
@@ -1242,13 +1150,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The groupBy. */ public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; @@ -1257,8 +1165,6 @@ public java.lang.String getGroupBy() { } } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state`). The string value should follow SQL syntax: comma separated list
@@ -1272,14 +1178,15 @@ public java.lang.String getGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for groupBy. */ - public com.google.protobuf.ByteString getGroupByBytes() { + public com.google.protobuf.ByteString + getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); groupBy_ = b; return b; } else { @@ -1287,8 +1194,6 @@ public com.google.protobuf.ByteString getGroupByBytes() { } } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state`). The string value should follow SQL syntax: comma separated list
@@ -1302,22 +1207,20 @@ public com.google.protobuf.ByteString getGroupByBytes() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The groupBy to set. * @return This builder for chaining. */ - public Builder setGroupBy(java.lang.String value) { + public Builder setGroupBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + groupBy_ = value; onChanged(); return this; } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state`). The string value should follow SQL syntax: comma separated list
@@ -1331,18 +1234,15 @@ public Builder setGroupBy(java.lang.String value) {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearGroupBy() { - + groupBy_ = getDefaultInstance().getGroupBy(); onChanged(); return this; } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state`). The string value should follow SQL syntax: comma separated list
@@ -1356,16 +1256,16 @@ public Builder clearGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for groupBy to set. * @return This builder for chaining. */ - public Builder setGroupByBytes(com.google.protobuf.ByteString value) { + public Builder setGroupByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + groupBy_ = value; onChanged(); return this; @@ -1373,13 +1273,8 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1388,15 +1283,12 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1405,7 +1297,6 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1416,8 +1307,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1441,8 +1330,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1452,7 +1339,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 4;
      */
-    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1463,8 +1351,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1478,7 +1364,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -1490,8 +1376,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1513,8 +1397,6 @@ public Builder clearReadTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1525,13 +1407,11 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-
+      
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1545,12 +1425,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1561,17 +1440,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(), getParentForChildren(), isClean());
+        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(),
+                getParentForChildren(),
+                isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -1579,8 +1455,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private java.lang.Object pageToken_ = "";
     /**
-     *
-     *
      * 
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -1588,13 +1462,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * string page_token = 5; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1603,8 +1477,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -1612,14 +1484,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 5; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1627,8 +1500,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -1636,22 +1507,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 5; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -1659,18 +1528,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 5; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -1678,32 +1544,29 @@ public Builder clearPageToken() {
      * 
* * string page_token = 5; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 6; - * * @return The pageSize. */ @java.lang.Override @@ -1711,45 +1574,39 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 6; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 6; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1759,13 +1616,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.GroupFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.GroupFindingsRequest) - private static final com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest(); } @@ -1774,16 +1630,16 @@ public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1798,4 +1654,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequestOrBuilder.java similarity index 82% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequestOrBuilder.java index f44953805..55a7aa08e 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface GroupFindingsRequestOrBuilder - extends +public interface GroupFindingsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.GroupFindingsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To groupBy across
@@ -33,16 +15,11 @@ public interface GroupFindingsRequestOrBuilder
    * organizations/{organization_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To groupBy across
@@ -50,17 +27,13 @@ public interface GroupFindingsRequestOrBuilder
    * organizations/{organization_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -83,13 +56,10 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -112,14 +82,12 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state`). The string value should follow SQL syntax: comma separated list
@@ -133,13 +101,10 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The groupBy. */ java.lang.String getGroupBy(); /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state`). The string value should follow SQL syntax: comma separated list
@@ -153,14 +118,12 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for groupBy. */ - com.google.protobuf.ByteString getGroupByBytes(); + com.google.protobuf.ByteString + getGroupByBytes(); /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -169,13 +132,10 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -184,13 +144,10 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -203,8 +160,6 @@ public interface GroupFindingsRequestOrBuilder
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -212,13 +167,10 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * string page_token = 5; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -226,21 +178,18 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * string page_token = 5; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 6; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java similarity index 77% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java index 2a4ec6929..0fbcb545f 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Response message for group by findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GroupFindingsResponse} */ -public final class GroupFindingsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GroupFindingsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.GroupFindingsResponse) GroupFindingsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GroupFindingsResponse.newBuilder() to construct. private GroupFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GroupFindingsResponse() { groupByResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private GroupFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GroupFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GroupFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,48 +55,41 @@ private GroupFindingsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - groupByResults_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - groupByResults_.add( - input.readMessage( - com.google.cloud.securitycenter.v1beta1.GroupResult.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + groupByResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + groupByResults_.add( + input.readMessage(com.google.cloud.securitycenter.v1beta1.GroupResult.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -121,7 +97,8 @@ private GroupFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); @@ -130,27 +107,22 @@ private GroupFindingsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.class, - com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.class, com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.Builder.class); } public static final int GROUP_BY_RESULTS_FIELD_NUMBER = 1; private java.util.List groupByResults_; /** - * - * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -160,13 +132,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
   @java.lang.Override
-  public java.util.List
-      getGroupByResultsList() {
+  public java.util.List getGroupByResultsList() {
     return groupByResults_;
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -176,13 +145,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getGroupByResultsOrBuilderList() {
     return groupByResults_;
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -196,8 +163,6 @@ public int getGroupByResultsCount() {
     return groupByResults_.size();
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -211,8 +176,6 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult getGroupByResults(int
     return groupByResults_.get(index);
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -230,14 +193,11 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe
   public static final int READ_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Timestamp readTime_;
   /**
-   *
-   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -245,14 +205,11 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ @java.lang.Override @@ -260,8 +217,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used for executing the groupBy request.
    * 
@@ -276,15 +231,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -293,30 +245,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -325,7 +277,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -337,7 +288,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < groupByResults_.size(); i++) { output.writeMessage(1, groupByResults_.get(i)); } @@ -357,10 +309,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < groupByResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, groupByResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, groupByResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); @@ -373,20 +327,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse other = - (com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse) obj; + com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse other = (com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse) obj; - if (!getGroupByResultsList().equals(other.getGroupByResultsList())) return false; + if (!getGroupByResultsList() + .equals(other.getGroupByResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -414,127 +370,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for group by findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GroupFindingsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.GroupFindingsResponse) com.google.cloud.securitycenter.v1beta1.GroupFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.class, - com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.class, com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.newBuilder() @@ -542,17 +488,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getGroupByResultsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -574,14 +520,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.getDefaultInstance(); } @@ -596,8 +541,7 @@ public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse buildPartial() { - com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse result = - new com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse(this); + com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse result = new com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse(this); int from_bitField0_ = bitField0_; if (groupByResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -622,39 +566,38 @@ public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse)other); } else { super.mergeFrom(other); return this; @@ -662,9 +605,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse other) { - if (other - == com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.getDefaultInstance()) return this; if (groupByResultsBuilder_ == null) { if (!other.groupByResults_.isEmpty()) { if (groupByResults_.isEmpty()) { @@ -683,10 +624,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.GroupFindingsRe groupByResultsBuilder_ = null; groupByResults_ = other.groupByResults_; bitField0_ = (bitField0_ & ~0x00000001); - groupByResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGroupByResultsFieldBuilder() - : null; + groupByResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGroupByResultsFieldBuilder() : null; } else { groupByResultsBuilder_.addAllMessages(other.groupByResults_); } @@ -718,9 +658,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -729,30 +667,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List groupByResults_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureGroupByResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - groupByResults_ = - new java.util.ArrayList( - groupByResults_); + groupByResults_ = new java.util.ArrayList(groupByResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.GroupResult, - com.google.cloud.securitycenter.v1beta1.GroupResult.Builder, - com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder> - groupByResultsBuilder_; + com.google.cloud.securitycenter.v1beta1.GroupResult, com.google.cloud.securitycenter.v1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder> groupByResultsBuilder_; /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -761,8 +690,7 @@ private void ensureGroupByResultsIsMutable() {
      *
      * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
      */
-    public java.util.List
-        getGroupByResultsList() {
+    public java.util.List getGroupByResultsList() {
       if (groupByResultsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(groupByResults_);
       } else {
@@ -770,8 +698,6 @@ private void ensureGroupByResultsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -788,8 +714,6 @@ public int getGroupByResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -806,8 +730,6 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult getGroupByResults(int
       }
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -831,8 +753,6 @@ public Builder setGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -853,8 +773,6 @@ public Builder setGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -877,8 +795,6 @@ public Builder addGroupByResults(com.google.cloud.securitycenter.v1beta1.GroupRe
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -902,8 +818,6 @@ public Builder addGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -924,8 +838,6 @@ public Builder addGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -946,8 +858,6 @@ public Builder addGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -960,7 +870,8 @@ public Builder addAllGroupByResults(
         java.lang.Iterable values) {
       if (groupByResultsBuilder_ == null) {
         ensureGroupByResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupByResults_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, groupByResults_);
         onChanged();
       } else {
         groupByResultsBuilder_.addAllMessages(values);
@@ -968,8 +879,6 @@ public Builder addAllGroupByResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -989,8 +898,6 @@ public Builder clearGroupByResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1010,8 +917,6 @@ public Builder removeGroupByResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1025,8 +930,6 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder getGroupByRes
       return getGroupByResultsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1038,14 +941,11 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder getGroupByRes
     public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOrBuilder(
         int index) {
       if (groupByResultsBuilder_ == null) {
-        return groupByResults_.get(index);
-      } else {
+        return groupByResults_.get(index);  } else {
         return groupByResultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1054,8 +954,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe
      *
      * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
      */
-    public java.util.List
-        getGroupByResultsOrBuilderList() {
+    public java.util.List 
+         getGroupByResultsOrBuilderList() {
       if (groupByResultsBuilder_ != null) {
         return groupByResultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1063,8 +963,6 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe
       }
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1074,12 +972,10 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe
      * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
      */
     public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByResultsBuilder() {
-      return getGroupByResultsFieldBuilder()
-          .addBuilder(com.google.cloud.securitycenter.v1beta1.GroupResult.getDefaultInstance());
+      return getGroupByResultsFieldBuilder().addBuilder(
+          com.google.cloud.securitycenter.v1beta1.GroupResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1090,13 +986,10 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByRes
      */
     public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByResultsBuilder(
         int index) {
-      return getGroupByResultsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.securitycenter.v1beta1.GroupResult.getDefaultInstance());
+      return getGroupByResultsFieldBuilder().addBuilder(
+          index, com.google.cloud.securitycenter.v1beta1.GroupResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1105,22 +998,16 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByRes
      *
      * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
      */
-    public java.util.List
-        getGroupByResultsBuilderList() {
+    public java.util.List 
+         getGroupByResultsBuilderList() {
       return getGroupByResultsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1beta1.GroupResult,
-            com.google.cloud.securitycenter.v1beta1.GroupResult.Builder,
-            com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder>
+        com.google.cloud.securitycenter.v1beta1.GroupResult, com.google.cloud.securitycenter.v1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder> 
         getGroupByResultsFieldBuilder() {
       if (groupByResultsBuilder_ == null) {
-        groupByResultsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.securitycenter.v1beta1.GroupResult,
-                com.google.cloud.securitycenter.v1beta1.GroupResult.Builder,
-                com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder>(
+        groupByResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.securitycenter.v1beta1.GroupResult, com.google.cloud.securitycenter.v1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder>(
                 groupByResults_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1132,33 +1019,24 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByRes
 
     private com.google.protobuf.Timestamp readTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        readTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_;
     /**
-     *
-     *
      * 
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1169,8 +1047,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1191,15 +1067,14 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -1210,8 +1085,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1222,7 +1095,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -1234,8 +1107,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1254,8 +1125,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1263,13 +1132,11 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1280,12 +1147,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1293,17 +1159,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getReadTime(), getParentForChildren(), isClean()); + readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getReadTime(), + getParentForChildren(), + isClean()); readTime_ = null; } return readTimeBuilder_; @@ -1311,21 +1174,19 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1334,22 +1195,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1357,71 +1217,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1431,13 +1284,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.GroupFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.GroupFindingsResponse) - private static final com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse(); } @@ -1446,16 +1298,16 @@ public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1470,4 +1322,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponseOrBuilder.java similarity index 80% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponseOrBuilder.java index b92034829..28cc19d6b 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface GroupFindingsResponseOrBuilder - extends +public interface GroupFindingsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.GroupFindingsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -34,10 +16,9 @@ public interface GroupFindingsResponseOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
-  java.util.List getGroupByResultsList();
+  java.util.List 
+      getGroupByResultsList();
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -48,8 +29,6 @@ public interface GroupFindingsResponseOrBuilder
    */
   com.google.cloud.securitycenter.v1beta1.GroupResult getGroupByResults(int index);
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -60,8 +39,6 @@ public interface GroupFindingsResponseOrBuilder
    */
   int getGroupByResultsCount();
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -70,11 +47,9 @@ public interface GroupFindingsResponseOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
-  java.util.List
+  java.util.List 
       getGroupByResultsOrBuilderList();
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -87,32 +62,24 @@ com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOr
       int index);
 
   /**
-   *
-   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used for executing the groupBy request.
    * 
@@ -122,29 +89,24 @@ com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOr com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java similarity index 64% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java index 20df380de..52f27629d 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Result containing the properties and count of a groupBy request.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GroupResult} */ -public final class GroupResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GroupResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.GroupResult) GroupResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GroupResult.newBuilder() to construct. private GroupResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GroupResult() {} + private GroupResult() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GroupResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GroupResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,34 +53,31 @@ private GroupResult( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + properties_ = com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 16: - { - count_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + properties__ = input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + properties_.getMutableMap().put( + properties__.getKey(), properties__.getValue()); + break; + } + case 16: { + + count_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,60 +85,57 @@ private GroupResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupResult_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetProperties(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GroupResult.class, - com.google.cloud.securitycenter.v1beta1.GroupResult.Builder.class); + com.google.cloud.securitycenter.v1beta1.GroupResult.class, com.google.cloud.securitycenter.v1beta1.GroupResult.Builder.class); } public static final int PROPERTIES_FIELD_NUMBER = 1; - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.Value> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupResult_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); - } - - private com.google.protobuf.MapField properties_; - + .newDefaultInstance( + com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupResult_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> properties_; private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -166,30 +144,28 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -197,12 +173,11 @@ public java.util.Map getProperties( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -210,18 +185,16 @@ public java.util.Map getPropertiesM * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override + public com.google.protobuf.Value getPropertiesOrDefault( - java.lang.String key, com.google.protobuf.Value defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.protobuf.Value defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -229,10 +202,10 @@ public com.google.protobuf.Value getPropertiesOrDefault( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public com.google.protobuf.Value getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { @@ -244,14 +217,11 @@ public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { public static final int COUNT_FIELD_NUMBER = 2; private long count_; /** - * - * *
    * Total count of resources for the given properties.
    * 
* * int64 count = 2; - * * @return The count. */ @java.lang.Override @@ -260,7 +230,6 @@ public long getCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,9 +241,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetProperties(), + PropertiesDefaultEntryHolder.defaultEntry, + 1); if (count_ != 0L) { output.writeInt64(2, count_); } @@ -287,18 +261,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, properties__); + for (java.util.Map.Entry entry + : internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry + properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, properties__); } if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, count_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, count_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -308,16 +283,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.GroupResult)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.GroupResult other = - (com.google.cloud.securitycenter.v1beta1.GroupResult) obj; + com.google.cloud.securitycenter.v1beta1.GroupResult other = (com.google.cloud.securitycenter.v1beta1.GroupResult) obj; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (getCount() != other.getCount()) return false; + if (!internalGetProperties().equals( + other.internalGetProperties())) return false; + if (getCount() + != other.getCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -334,153 +310,147 @@ public int hashCode() { hash = (53 * hash) + internalGetProperties().hashCode(); } hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.GroupResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.GroupResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GroupResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.GroupResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Result containing the properties and count of a groupBy request.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GroupResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.GroupResult) com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupResult_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetProperties(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 1: return internalGetMutableProperties(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GroupResult.class, - com.google.cloud.securitycenter.v1beta1.GroupResult.Builder.class); + com.google.cloud.securitycenter.v1beta1.GroupResult.class, com.google.cloud.securitycenter.v1beta1.GroupResult.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.GroupResult.newBuilder() @@ -488,15 +458,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -507,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_GroupResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupResult_descriptor; } @java.lang.Override @@ -528,8 +499,7 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.GroupResult buildPartial() { - com.google.cloud.securitycenter.v1beta1.GroupResult result = - new com.google.cloud.securitycenter.v1beta1.GroupResult(this); + com.google.cloud.securitycenter.v1beta1.GroupResult result = new com.google.cloud.securitycenter.v1beta1.GroupResult(this); int from_bitField0_ = bitField0_; result.properties_ = internalGetProperties(); result.properties_.makeImmutable(); @@ -542,39 +512,38 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.GroupResult) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.GroupResult) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.GroupResult)other); } else { super.mergeFrom(other); return this; @@ -582,9 +551,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.GroupResult other) { - if (other == com.google.cloud.securitycenter.v1beta1.GroupResult.getDefaultInstance()) - return this; - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); + if (other == com.google.cloud.securitycenter.v1beta1.GroupResult.getDefaultInstance()) return this; + internalGetMutableProperties().mergeFrom( + other.internalGetProperties()); if (other.getCount() != 0L) { setCount(other.getCount()); } @@ -607,8 +576,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.GroupResult) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.GroupResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -617,27 +585,24 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.MapField properties_; - + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> properties_; private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; + internalGetMutableProperties() { + onChanged();; if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); + properties_ = com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -649,30 +614,28 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
@@ -680,12 +643,11 @@ public java.util.Map getProperties( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
@@ -693,18 +655,16 @@ public java.util.Map getPropertiesM * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override + public com.google.protobuf.Value getPropertiesOrDefault( - java.lang.String key, com.google.protobuf.Value defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.protobuf.Value defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
@@ -712,10 +672,10 @@ public com.google.protobuf.Value getPropertiesOrDefault( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public com.google.protobuf.Value getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { @@ -725,75 +685,74 @@ public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); + internalGetMutableProperties().getMutableMap() + .clear(); return this; } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); + + public Builder removeProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableProperties().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableProperties() { + public java.util.Map + getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ - public Builder putProperties(java.lang.String key, com.google.protobuf.Value value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putProperties( + java.lang.String key, + com.google.protobuf.Value value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableProperties().getMutableMap().put(key, value); + internalGetMutableProperties().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ + public Builder putAllProperties( java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); + internalGetMutableProperties().getMutableMap() + .putAll(values); return this; } - private long count_; + private long count_ ; /** - * - * *
      * Total count of resources for the given properties.
      * 
* * int64 count = 2; - * * @return The count. */ @java.lang.Override @@ -801,43 +760,37 @@ public long getCount() { return count_; } /** - * - * *
      * Total count of resources for the given properties.
      * 
* * int64 count = 2; - * * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(long value) { - + count_ = value; onChanged(); return this; } /** - * - * *
      * Total count of resources for the given properties.
      * 
* * int64 count = 2; - * * @return This builder for chaining. */ public Builder clearCount() { - + count_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -847,12 +800,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.GroupResult) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.GroupResult) private static final com.google.cloud.securitycenter.v1beta1.GroupResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.GroupResult(); } @@ -861,16 +814,16 @@ public static com.google.cloud.securitycenter.v1beta1.GroupResult getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -885,4 +838,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.GroupResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResultOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResultOrBuilder.java similarity index 56% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResultOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResultOrBuilder.java index d840041a0..031df5b49 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResultOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResultOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface GroupResultOrBuilder - extends +public interface GroupResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.GroupResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -34,31 +16,30 @@ public interface GroupResultOrBuilder */ int getPropertiesCount(); /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ + boolean containsProperties( + java.lang.String key); + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Deprecated - java.util.Map getProperties(); + java.util.Map + getProperties(); /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - java.util.Map getPropertiesMap(); + java.util.Map + getPropertiesMap(); /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -67,30 +48,27 @@ public interface GroupResultOrBuilder */ /* nullable */ - com.google.protobuf.Value getPropertiesOrDefault( +com.google.protobuf.Value getPropertiesOrDefault( java.lang.String key, /* nullable */ - com.google.protobuf.Value defaultValue); +com.google.protobuf.Value defaultValue); /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key); + + com.google.protobuf.Value getPropertiesOrThrow( + java.lang.String key); /** - * - * *
    * Total count of resources for the given properties.
    * 
* * int64 count = 2; - * * @return The count. */ long getCount(); diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java similarity index 80% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java index d2ee0fce9..6597dbc2a 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Request message for listing assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListAssetsRequest} */ -public final class ListAssetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAssetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.ListAssetsRequest) ListAssetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAssetsRequest.newBuilder() to construct. private ListAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAssetsRequest() { parent_ = ""; filter_ = ""; @@ -46,15 +28,16 @@ private ListAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAssetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,91 +56,81 @@ private ListAssetsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; + orderBy_ = s; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - case 42: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (compareDuration_ != null) { - subBuilder = compareDuration_.toBuilder(); - } - compareDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compareDuration_); - compareDuration_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 42: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); } - case 58: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (fieldMask_ != null) { - subBuilder = fieldMask_.toBuilder(); - } - fieldMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fieldMask_); - fieldMask_ = subBuilder.buildPartial(); - } - - break; + compareDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; + break; + } + case 58: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); } - case 72: - { - pageSize_ = input.readInt32(); - break; + fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 72: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -165,42 +138,35 @@ private ListAssetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.class, - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.class, com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -209,32 +175,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -245,8 +209,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -271,7 +233,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -280,15 +241,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -313,15 +273,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -332,8 +293,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 3; private volatile java.lang.Object orderBy_; /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -346,7 +305,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 3; - * * @return The orderBy. */ @java.lang.Override @@ -355,15 +313,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -376,15 +333,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 3; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -395,8 +353,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int READ_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp readTime_; /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -405,7 +361,6 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -413,8 +368,6 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -423,7 +376,6 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ @java.lang.Override @@ -431,8 +383,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -450,8 +400,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int COMPARE_DURATION_FIELD_NUMBER = 5;
   private com.google.protobuf.Duration compareDuration_;
   /**
-   *
-   *
    * 
    * When compare_duration is set, the ListAssetResult's "state" attribute is
    * updated to indicate whether the asset was added, removed, or remained
@@ -475,7 +423,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ @java.lang.Override @@ -483,8 +430,6 @@ public boolean hasCompareDuration() { return compareDuration_ != null; } /** - * - * *
    * When compare_duration is set, the ListAssetResult's "state" attribute is
    * updated to indicate whether the asset was added, removed, or remained
@@ -508,18 +453,13 @@ public boolean hasCompareDuration() {
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { - return compareDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : compareDuration_; + return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; } /** - * - * *
    * When compare_duration is set, the ListAssetResult's "state" attribute is
    * updated to indicate whether the asset was added, removed, or remained
@@ -552,17 +492,13 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
   public static final int FIELD_MASK_FIELD_NUMBER = 7;
   private com.google.protobuf.FieldMask fieldMask_;
   /**
-   *
-   *
    * 
    * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -570,17 +506,13 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** - * - * *
    * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The fieldMask. */ @java.lang.Override @@ -588,16 +520,13 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** - * - * *
    * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { @@ -607,8 +536,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { public static final int PAGE_TOKEN_FIELD_NUMBER = 8; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -616,7 +543,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
    * 
* * string page_token = 8; - * * @return The pageToken. */ @java.lang.Override @@ -625,15 +551,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -641,15 +566,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 8; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -660,15 +586,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 9; private int pageSize_; /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 9; - * * @return The pageSize. */ @java.lang.Override @@ -677,7 +600,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -689,7 +611,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -733,19 +656,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, orderBy_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getReadTime()); } if (compareDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCompareDuration()); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFieldMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getFieldMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -755,31 +682,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.ListAssetsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest other = - (com.google.cloud.securitycenter.v1beta1.ListAssetsRequest) obj; + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest other = (com.google.cloud.securitycenter.v1beta1.ListAssetsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - if (!getCompareDuration().equals(other.getCompareDuration())) return false; + if (!getCompareDuration() + .equals(other.getCompareDuration())) return false; } if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - if (!getFieldMask().equals(other.getFieldMask())) return false; + if (!getFieldMask() + .equals(other.getFieldMask())) return false; } - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -819,127 +753,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.ListAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for listing assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListAssetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.ListAssetsRequest) com.google.cloud.securitycenter.v1beta1.ListAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.class, - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.class, com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.newBuilder() @@ -947,15 +871,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -991,9 +916,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_descriptor; } @java.lang.Override @@ -1012,8 +937,7 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.ListAssetsRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest result = - new com.google.cloud.securitycenter.v1beta1.ListAssetsRequest(this); + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest result = new com.google.cloud.securitycenter.v1beta1.ListAssetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.orderBy_ = orderBy_; @@ -1042,39 +966,38 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.ListAssetsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListAssetsRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListAssetsRequest)other); } else { super.mergeFrom(other); return this; @@ -1082,8 +1005,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.ListAssetsRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1131,8 +1053,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.ListAssetsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.ListAssetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1144,23 +1065,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1169,24 +1086,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1194,70 +1108,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1265,8 +1166,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1291,13 +1190,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1306,8 +1205,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1332,14 +1229,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1347,8 +1245,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1373,22 +1269,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1413,18 +1307,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1449,16 +1340,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1466,8 +1357,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1480,13 +1369,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 3; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1495,8 +1384,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1509,14 +1396,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1524,8 +1412,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1538,22 +1424,20 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 3; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1566,18 +1450,15 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 3; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1590,16 +1471,16 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 3; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; @@ -1607,13 +1488,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1622,15 +1498,12 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1639,7 +1512,6 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1650,8 +1522,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1675,8 +1545,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1686,7 +1554,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 4;
      */
-    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1697,8 +1566,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1712,7 +1579,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -1724,8 +1591,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1747,8 +1612,6 @@ public Builder clearReadTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1759,13 +1622,11 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-
+      
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1779,12 +1640,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1795,17 +1655,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(), getParentForChildren(), isClean());
+        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(),
+                getParentForChildren(),
+                isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -1813,13 +1670,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private com.google.protobuf.Duration compareDuration_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        compareDurationBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> compareDurationBuilder_;
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetResult's "state" attribute is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1843,15 +1695,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; } /** - * - * *
      * When compare_duration is set, the ListAssetResult's "state" attribute is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1875,21 +1724,16 @@ public boolean hasCompareDuration() {
      * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { - return compareDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : compareDuration_; + return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; } else { return compareDurationBuilder_.getMessage(); } } /** - * - * *
      * When compare_duration is set, the ListAssetResult's "state" attribute is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1928,8 +1772,6 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetResult's "state" attribute is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1954,7 +1796,8 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration compare_duration = 5;
      */
-    public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setCompareDuration(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (compareDurationBuilder_ == null) {
         compareDuration_ = builderForValue.build();
         onChanged();
@@ -1965,8 +1808,6 @@ public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetResult's "state" attribute is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1995,9 +1836,7 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       if (compareDurationBuilder_ == null) {
         if (compareDuration_ != null) {
           compareDuration_ =
-              com.google.protobuf.Duration.newBuilder(compareDuration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(compareDuration_).mergeFrom(value).buildPartial();
         } else {
           compareDuration_ = value;
         }
@@ -2009,8 +1848,6 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetResult's "state" attribute is
      * updated to indicate whether the asset was added, removed, or remained
@@ -2047,8 +1884,6 @@ public Builder clearCompareDuration() {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetResult's "state" attribute is
      * updated to indicate whether the asset was added, removed, or remained
@@ -2074,13 +1909,11 @@ public Builder clearCompareDuration() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
-
+      
       onChanged();
       return getCompareDurationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetResult's "state" attribute is
      * updated to indicate whether the asset was added, removed, or remained
@@ -2109,14 +1942,11 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
       if (compareDurationBuilder_ != null) {
         return compareDurationBuilder_.getMessageOrBuilder();
       } else {
-        return compareDuration_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : compareDuration_;
+        return compareDuration_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : compareDuration_;
       }
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetResult's "state" attribute is
      * updated to indicate whether the asset was added, removed, or remained
@@ -2142,17 +1972,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getCompareDurationFieldBuilder() {
       if (compareDurationBuilder_ == null) {
-        compareDurationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getCompareDuration(), getParentForChildren(), isClean());
+        compareDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getCompareDuration(),
+                getParentForChildren(),
+                isClean());
         compareDuration_ = null;
       }
       return compareDurationBuilder_;
@@ -2160,39 +1987,28 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
 
     private com.google.protobuf.FieldMask fieldMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
-        fieldMaskBuilder_;
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> fieldMaskBuilder_;
     /**
-     *
-     *
      * 
      * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** - * - * *
      * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -2203,16 +2019,13 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** - * - * *
      * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { @@ -2228,18 +2041,16 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setFieldMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { fieldMask_ = builderForValue.build(); onChanged(); @@ -2250,22 +2061,19 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu return this; } /** - * - * *
      * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { if (fieldMask_ != null) { fieldMask_ = - com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); } else { fieldMask_ = value; } @@ -2277,16 +2085,13 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearFieldMask() { if (fieldMaskBuilder_ == null) { @@ -2300,65 +2105,54 @@ public Builder clearFieldMask() { return this; } /** - * - * *
      * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { - + onChanged(); return getFieldMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { if (fieldMaskBuilder_ != null) { return fieldMaskBuilder_.getMessageOrBuilder(); } else { - return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + return fieldMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } } /** - * - * *
      * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getFieldMaskFieldBuilder() { if (fieldMaskBuilder_ == null) { - fieldMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getFieldMask(), getParentForChildren(), isClean()); + fieldMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getFieldMask(), + getParentForChildren(), + isClean()); fieldMask_ = null; } return fieldMaskBuilder_; @@ -2366,8 +2160,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2375,13 +2167,13 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * 
* * string page_token = 8; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2390,8 +2182,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2399,14 +2189,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 8; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2414,8 +2205,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2423,22 +2212,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 8; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2446,18 +2233,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 8; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2465,32 +2249,29 @@ public Builder clearPageToken() {
      * 
* * string page_token = 8; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; - * * @return The pageSize. */ @java.lang.Override @@ -2498,45 +2279,39 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2546,12 +2321,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.ListAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.ListAssetsRequest) private static final com.google.cloud.securitycenter.v1beta1.ListAssetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.ListAssetsRequest(); } @@ -2560,16 +2335,16 @@ public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2584,4 +2359,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.ListAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequestOrBuilder.java similarity index 88% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequestOrBuilder.java index c236ec9e9..66b9c2ddf 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface ListAssetsRequestOrBuilder - extends +public interface ListAssetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.ListAssetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -81,13 +54,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -112,14 +82,12 @@ public interface ListAssetsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -132,13 +100,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * string order_by = 3; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -151,14 +116,12 @@ public interface ListAssetsRequestOrBuilder
    * 
* * string order_by = 3; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -167,13 +130,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -182,13 +142,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -201,8 +158,6 @@ public interface ListAssetsRequestOrBuilder
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * When compare_duration is set, the ListAssetResult's "state" attribute is
    * updated to indicate whether the asset was added, removed, or remained
@@ -226,13 +181,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** - * - * *
    * When compare_duration is set, the ListAssetResult's "state" attribute is
    * updated to indicate whether the asset was added, removed, or remained
@@ -256,13 +208,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** - * - * *
    * When compare_duration is set, the ListAssetResult's "state" attribute is
    * updated to indicate whether the asset was added, removed, or remained
@@ -290,52 +239,39 @@ public interface ListAssetsRequestOrBuilder
   com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** - * - * *
    * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** - * - * *
    * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); /** - * - * *
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -343,13 +279,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * string page_token = 8; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -357,21 +290,18 @@ public interface ListAssetsRequestOrBuilder
    * 
* * string page_token = 8; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 9; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java similarity index 65% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java index 7d5b5249a..4228e9e4c 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Response message for listing assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListAssetsResponse} */ -public final class ListAssetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAssetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.ListAssetsResponse) ListAssetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAssetsResponse.newBuilder() to construct. private ListAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAssetsResponse() { listAssetsResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListAssetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAssetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAssetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,56 +55,46 @@ private ListAssetsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - listAssetsResults_ = - new java.util.ArrayList< - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse - .ListAssetsResult>(); - mutable_bitField0_ |= 0x00000001; - } - listAssetsResults_.add( - input.readMessage( - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - .parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + listAssetsResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; + listAssetsResults_.add( + input.readMessage(com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 32: - { - totalSize_ = input.readInt32(); - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 32: { + + totalSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -129,7 +102,8 @@ private ListAssetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { listAssetsResults_ = java.util.Collections.unmodifiableList(listAssetsResults_); @@ -138,54 +112,42 @@ private ListAssetsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.class, - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.class, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.Builder.class); } - public interface ListAssetsResultOrBuilder - extends + public interface ListAssetsResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1beta1.Asset asset = 1; - * * @return Whether the asset field is set. */ boolean hasAsset(); /** - * - * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1beta1.Asset asset = 1; - * * @return The asset. */ com.google.cloud.securitycenter.v1beta1.Asset getAsset(); /** - * - * *
      * Asset matching the search request.
      * 
@@ -195,68 +157,56 @@ public interface ListAssetsResultOrBuilder com.google.cloud.securitycenter.v1beta1.AssetOrBuilder getAssetOrBuilder(); /** - * - * *
      * State of the asset.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; - * - * + * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
      * State of the asset.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; - * - * + * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; * @return The state. */ com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State getState(); } /** - * - * *
    * Result containing the Asset and its State.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult} */ - public static final class ListAssetsResult extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ListAssetsResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) ListAssetsResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAssetsResult.newBuilder() to construct. private ListAssetsResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAssetsResult() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAssetsResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAssetsResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -275,36 +225,32 @@ private ListAssetsResult( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1beta1.Asset.Builder subBuilder = null; - if (asset_ != null) { - subBuilder = asset_.toBuilder(); - } - asset_ = - input.readMessage( - com.google.cloud.securitycenter.v1beta1.Asset.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(asset_); - asset_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1beta1.Asset.Builder subBuilder = null; + if (asset_ != null) { + subBuilder = asset_.toBuilder(); } - case 16: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; + asset_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.Asset.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(asset_); + asset_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 16: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -312,32 +258,27 @@ private ListAssetsResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.class, - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder - .class); + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.class, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder.class); } /** - * - * *
      * State of the asset.
      * When querying across two points in time this describes
@@ -346,13 +287,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * be: UNUSED
      * 
* - * Protobuf enum {@code - * google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State} + * Protobuf enum {@code google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unspecified state.
        * 
@@ -361,8 +300,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
        * Request did not specify use of this field in the result.
        * 
@@ -371,8 +308,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ UNUSED(1), /** - * - * *
        * Asset was added between the points in time.
        * 
@@ -381,8 +316,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ADDED(2), /** - * - * *
        * Asset was removed between the points in time.
        * 
@@ -391,8 +324,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ REMOVED(3), /** - * - * *
        * Asset was active at both point(s) in time.
        * 
@@ -404,8 +335,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unspecified state.
        * 
@@ -414,8 +343,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Request did not specify use of this field in the result.
        * 
@@ -424,8 +351,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNUSED_VALUE = 1; /** - * - * *
        * Asset was added between the points in time.
        * 
@@ -434,8 +359,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADDED_VALUE = 2; /** - * - * *
        * Asset was removed between the points in time.
        * 
@@ -444,8 +367,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REMOVED_VALUE = 3; /** - * - * *
        * Asset was active at both point(s) in time.
        * 
@@ -454,6 +375,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -478,56 +400,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return UNUSED; - case 2: - return ADDED; - case 3: - return REMOVED; - case 4: - return ACTIVE; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return UNUSED; + case 2: return ADDED; + case 3: return REMOVED; + case 4: return ACTIVE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - .getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -547,14 +464,11 @@ private State(int value) { public static final int ASSET_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1beta1.Asset asset_; /** - * - * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1beta1.Asset asset = 1; - * * @return Whether the asset field is set. */ @java.lang.Override @@ -562,25 +476,18 @@ public boolean hasAsset() { return asset_ != null; } /** - * - * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1beta1.Asset asset = 1; - * * @return The asset. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.Asset getAsset() { - return asset_ == null - ? com.google.cloud.securitycenter.v1beta1.Asset.getDefaultInstance() - : asset_; + return asset_ == null ? com.google.cloud.securitycenter.v1beta1.Asset.getDefaultInstance() : asset_; } /** - * - * *
      * Asset matching the search request.
      * 
@@ -595,50 +502,31 @@ public com.google.cloud.securitycenter.v1beta1.AssetOrBuilder getAssetOrBuilder( public static final int STATE_FIELD_NUMBER = 2; private int state_; /** - * - * *
      * State of the asset.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; - * - * + * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * State of the asset.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; - * - * + * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; * @return The state. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State - getState() { + @java.lang.Override public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State result = - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State.valueOf( - state_); - return result == null - ? com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State - .UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State result = com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State.valueOf(state_); + return result == null ? com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -650,14 +538,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (asset_ != null) { output.writeMessage(1, getAsset()); } - if (state_ - != com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State - .STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } unknownFields.writeTo(output); @@ -670,13 +556,12 @@ public int getSerializedSize() { size = 0; if (asset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAsset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAsset()); } - if (state_ - != com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State - .STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + if (state_ != com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -686,18 +571,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult)) { + if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult other = - (com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) obj; + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult other = (com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) obj; if (hasAsset() != other.hasAsset()) return false; if (hasAsset()) { - if (!getAsset().equals(other.getAsset())) return false; + if (!getAsset() + .equals(other.getAsset())) return false; } if (state_ != other.state_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -722,101 +606,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -826,50 +697,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Result containing the Asset and its State.
      * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.class, - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder - .class); + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.class, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.newBuilder() + // Construct using com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -885,22 +750,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult build() { - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult result = - buildPartial(); + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -908,10 +770,8 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResu } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - buildPartial() { - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult result = - new com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult(this); + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult buildPartial() { + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult result = new com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult(this); if (assetBuilder_ == null) { result.asset_ = asset_; } else { @@ -926,55 +786,46 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) { - return mergeFrom( - (com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) other); + if (other instanceof com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) { + return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult other) { - if (other - == com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult other) { + if (other == com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.getDefaultInstance()) return this; if (other.hasAsset()) { mergeAsset(other.getAsset()); } @@ -996,14 +847,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parsedMessage = - null; + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1015,47 +863,34 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1beta1.Asset asset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Asset, - com.google.cloud.securitycenter.v1beta1.Asset.Builder, - com.google.cloud.securitycenter.v1beta1.AssetOrBuilder> - assetBuilder_; + com.google.cloud.securitycenter.v1beta1.Asset, com.google.cloud.securitycenter.v1beta1.Asset.Builder, com.google.cloud.securitycenter.v1beta1.AssetOrBuilder> assetBuilder_; /** - * - * *
        * Asset matching the search request.
        * 
* * .google.cloud.securitycenter.v1beta1.Asset asset = 1; - * * @return Whether the asset field is set. */ public boolean hasAsset() { return assetBuilder_ != null || asset_ != null; } /** - * - * *
        * Asset matching the search request.
        * 
* * .google.cloud.securitycenter.v1beta1.Asset asset = 1; - * * @return The asset. */ public com.google.cloud.securitycenter.v1beta1.Asset getAsset() { if (assetBuilder_ == null) { - return asset_ == null - ? com.google.cloud.securitycenter.v1beta1.Asset.getDefaultInstance() - : asset_; + return asset_ == null ? com.google.cloud.securitycenter.v1beta1.Asset.getDefaultInstance() : asset_; } else { return assetBuilder_.getMessage(); } } /** - * - * *
        * Asset matching the search request.
        * 
@@ -1076,8 +911,6 @@ public Builder setAsset(com.google.cloud.securitycenter.v1beta1.Asset value) { return this; } /** - * - * *
        * Asset matching the search request.
        * 
@@ -1096,8 +929,6 @@ public Builder setAsset( return this; } /** - * - * *
        * Asset matching the search request.
        * 
@@ -1108,9 +939,7 @@ public Builder mergeAsset(com.google.cloud.securitycenter.v1beta1.Asset value) { if (assetBuilder_ == null) { if (asset_ != null) { asset_ = - com.google.cloud.securitycenter.v1beta1.Asset.newBuilder(asset_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1beta1.Asset.newBuilder(asset_).mergeFrom(value).buildPartial(); } else { asset_ = value; } @@ -1122,8 +951,6 @@ public Builder mergeAsset(com.google.cloud.securitycenter.v1beta1.Asset value) { return this; } /** - * - * *
        * Asset matching the search request.
        * 
@@ -1142,8 +969,6 @@ public Builder clearAsset() { return this; } /** - * - * *
        * Asset matching the search request.
        * 
@@ -1151,13 +976,11 @@ public Builder clearAsset() { * .google.cloud.securitycenter.v1beta1.Asset asset = 1; */ public com.google.cloud.securitycenter.v1beta1.Asset.Builder getAssetBuilder() { - + onChanged(); return getAssetFieldBuilder().getBuilder(); } /** - * - * *
        * Asset matching the search request.
        * 
@@ -1168,14 +991,11 @@ public com.google.cloud.securitycenter.v1beta1.AssetOrBuilder getAssetOrBuilder( if (assetBuilder_ != null) { return assetBuilder_.getMessageOrBuilder(); } else { - return asset_ == null - ? com.google.cloud.securitycenter.v1beta1.Asset.getDefaultInstance() - : asset_; + return asset_ == null ? + com.google.cloud.securitycenter.v1beta1.Asset.getDefaultInstance() : asset_; } } /** - * - * *
        * Asset matching the search request.
        * 
@@ -1183,17 +1003,14 @@ public com.google.cloud.securitycenter.v1beta1.AssetOrBuilder getAssetOrBuilder( * .google.cloud.securitycenter.v1beta1.Asset asset = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Asset, - com.google.cloud.securitycenter.v1beta1.Asset.Builder, - com.google.cloud.securitycenter.v1beta1.AssetOrBuilder> + com.google.cloud.securitycenter.v1beta1.Asset, com.google.cloud.securitycenter.v1beta1.Asset.Builder, com.google.cloud.securitycenter.v1beta1.AssetOrBuilder> getAssetFieldBuilder() { if (assetBuilder_ == null) { - assetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Asset, - com.google.cloud.securitycenter.v1beta1.Asset.Builder, - com.google.cloud.securitycenter.v1beta1.AssetOrBuilder>( - getAsset(), getParentForChildren(), isClean()); + assetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.Asset, com.google.cloud.securitycenter.v1beta1.Asset.Builder, com.google.cloud.securitycenter.v1beta1.AssetOrBuilder>( + getAsset(), + getParentForChildren(), + isClean()); asset_ = null; } return assetBuilder_; @@ -1201,111 +1018,77 @@ public com.google.cloud.securitycenter.v1beta1.AssetOrBuilder getAssetOrBuilder( private int state_ = 0; /** - * - * *
        * State of the asset.
        * 
* - * - * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; - * - * + * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
        * State of the asset.
        * 
* - * - * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; - * - * + * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
        * State of the asset.
        * 
* - * - * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; - * - * + * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; * @return The state. */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State - getState() { + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State result = - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State - .valueOf(state_); - return result == null - ? com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State - .UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State result = com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State.valueOf(state_); + return result == null ? com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State.UNRECOGNIZED : result; } /** - * - * *
        * State of the asset.
        * 
* - * - * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; - * - * + * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; * @param value The state to set. * @return This builder for chaining. */ - public Builder setState( - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State value) { + public Builder setState(com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * State of the asset.
        * 
* - * - * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; - * - * + * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1318,33 +1101,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) - private static final com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult(); + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult(); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1356,109 +1136,80 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int LIST_ASSETS_RESULTS_FIELD_NUMBER = 1; - private java.util.List< - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult> - listAssetsResults_; + private java.util.List listAssetsResults_; /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ @java.lang.Override - public java.util.List - getListAssetsResultsList() { + public java.util.List getListAssetsResultsList() { return listAssetsResults_; } /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder> + public java.util.List getListAssetsResultsOrBuilderList() { return listAssetsResults_; } /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ @java.lang.Override public int getListAssetsResultsCount() { return listAssetsResults_.size(); } /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - getListAssetsResults(int index) { + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult getListAssetsResults(int index) { return listAssetsResults_.get(index); } /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder - getListAssetsResultsOrBuilder(int index) { + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder( + int index) { return listAssetsResults_.get(index); } public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -1466,14 +1217,11 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ @java.lang.Override @@ -1481,8 +1229,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used for executing the list request.
    * 
@@ -1497,15 +1243,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -1514,30 +1257,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1548,14 +1291,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_; /** - * - * *
    * The total number of assets matching the query.
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -1564,7 +1304,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1576,7 +1315,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < listAssetsResults_.size(); i++) { output.writeMessage(1, listAssetsResults_.get(i)); } @@ -1599,17 +1339,19 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < listAssetsResults_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, listAssetsResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, listAssetsResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1619,21 +1361,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.ListAssetsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse other = - (com.google.cloud.securitycenter.v1beta1.ListAssetsResponse) obj; + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse other = (com.google.cloud.securitycenter.v1beta1.ListAssetsResponse) obj; - if (!getListAssetsResultsList().equals(other.getListAssetsResultsList())) return false; + if (!getListAssetsResultsList() + .equals(other.getListAssetsResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1663,127 +1408,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.ListAssetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for listing assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListAssetsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.ListAssetsResponse) com.google.cloud.securitycenter.v1beta1.ListAssetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.class, - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.class, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.newBuilder() @@ -1791,17 +1526,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getListAssetsResultsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1825,9 +1560,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_descriptor; } @java.lang.Override @@ -1846,8 +1581,7 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse buildPartial() { - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse result = - new com.google.cloud.securitycenter.v1beta1.ListAssetsResponse(this); + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse result = new com.google.cloud.securitycenter.v1beta1.ListAssetsResponse(this); int from_bitField0_ = bitField0_; if (listAssetsResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1873,39 +1607,38 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.ListAssetsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListAssetsResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListAssetsResponse)other); } else { super.mergeFrom(other); return this; @@ -1913,8 +1646,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.ListAssetsResponse other) { - if (other == com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.getDefaultInstance()) return this; if (listAssetsResultsBuilder_ == null) { if (!other.listAssetsResults_.isEmpty()) { if (listAssetsResults_.isEmpty()) { @@ -1933,10 +1665,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.ListAssetsRespo listAssetsResultsBuilder_ = null; listAssetsResults_ = other.listAssetsResults_; bitField0_ = (bitField0_ & ~0x00000001); - listAssetsResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getListAssetsResultsFieldBuilder() - : null; + listAssetsResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getListAssetsResultsFieldBuilder() : null; } else { listAssetsResultsBuilder_.addAllMessages(other.listAssetsResults_); } @@ -1971,8 +1702,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.ListAssetsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.ListAssetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1981,43 +1711,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List< - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult> - listAssetsResults_ = java.util.Collections.emptyList(); - + private java.util.List listAssetsResults_ = + java.util.Collections.emptyList(); private void ensureListAssetsResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - listAssetsResults_ = - new java.util.ArrayList< - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult>( - listAssetsResults_); + listAssetsResults_ = new java.util.ArrayList(listAssetsResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult, - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder, - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder> - listAssetsResultsBuilder_; + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder> listAssetsResultsBuilder_; /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public java.util.List< - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult> - getListAssetsResultsList() { + public java.util.List getListAssetsResultsList() { if (listAssetsResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(listAssetsResults_); } else { @@ -2025,15 +1740,11 @@ private void ensureListAssetsResultsIsMutable() { } } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public int getListAssetsResultsCount() { if (listAssetsResultsBuilder_ == null) { @@ -2043,18 +1754,13 @@ public int getListAssetsResultsCount() { } } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - getListAssetsResults(int index) { + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult getListAssetsResults(int index) { if (listAssetsResultsBuilder_ == null) { return listAssetsResults_.get(index); } else { @@ -2062,19 +1768,14 @@ public int getListAssetsResultsCount() { } } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder setListAssetsResults( - int index, - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult value) { + int index, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult value) { if (listAssetsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2088,20 +1789,14 @@ public Builder setListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder setListAssetsResults( - int index, - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder - builderForValue) { + int index, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder builderForValue) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); listAssetsResults_.set(index, builderForValue.build()); @@ -2112,18 +1807,13 @@ public Builder setListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public Builder addListAssetsResults( - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult value) { + public Builder addListAssetsResults(com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult value) { if (listAssetsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2137,19 +1827,14 @@ public Builder addListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder addListAssetsResults( - int index, - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult value) { + int index, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult value) { if (listAssetsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2163,19 +1848,14 @@ public Builder addListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder addListAssetsResults( - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder - builderForValue) { + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder builderForValue) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); listAssetsResults_.add(builderForValue.build()); @@ -2186,20 +1866,14 @@ public Builder addListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder addListAssetsResults( - int index, - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder - builderForValue) { + int index, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder builderForValue) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); listAssetsResults_.add(index, builderForValue.build()); @@ -2210,24 +1884,18 @@ public Builder addListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder addAllListAssetsResults( - java.lang.Iterable< - ? extends - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult> - values) { + java.lang.Iterable values) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listAssetsResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, listAssetsResults_); onChanged(); } else { listAssetsResultsBuilder_.addAllMessages(values); @@ -2235,15 +1903,11 @@ public Builder addAllListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder clearListAssetsResults() { if (listAssetsResultsBuilder_ == null) { @@ -2256,15 +1920,11 @@ public Builder clearListAssetsResults() { return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder removeListAssetsResults(int index) { if (listAssetsResultsBuilder_ == null) { @@ -2277,55 +1937,39 @@ public Builder removeListAssetsResults(int index) { return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder - getListAssetsResultsBuilder(int index) { + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder getListAssetsResultsBuilder( + int index) { return getListAssetsResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder - getListAssetsResultsOrBuilder(int index) { + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder( + int index) { if (listAssetsResultsBuilder_ == null) { - return listAssetsResults_.get(index); - } else { + return listAssetsResults_.get(index); } else { return listAssetsResultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public java.util.List< - ? extends - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse - .ListAssetsResultOrBuilder> - getListAssetsResultsOrBuilderList() { + public java.util.List + getListAssetsResultsOrBuilderList() { if (listAssetsResultsBuilder_ != null) { return listAssetsResultsBuilder_.getMessageOrBuilderList(); } else { @@ -2333,71 +1977,45 @@ public Builder removeListAssetsResults(int index) { } } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder - addListAssetsResultsBuilder() { - return getListAssetsResultsFieldBuilder() - .addBuilder( - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - .getDefaultInstance()); + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder addListAssetsResultsBuilder() { + return getListAssetsResultsFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.getDefaultInstance()); } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder - addListAssetsResultsBuilder(int index) { - return getListAssetsResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult - .getDefaultInstance()); + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder addListAssetsResultsBuilder( + int index) { + return getListAssetsResultsFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.getDefaultInstance()); } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public java.util.List< - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder> - getListAssetsResultsBuilderList() { + public java.util.List + getListAssetsResultsBuilderList() { return getListAssetsResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult, - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder, - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder> + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder> getListAssetsResultsFieldBuilder() { if (listAssetsResultsBuilder_ == null) { - listAssetsResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult, - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder, - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse - .ListAssetsResultOrBuilder>( + listAssetsResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder>( listAssetsResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2409,33 +2027,24 @@ public Builder removeListAssetsResults(int index) { private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -2446,8 +2055,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -2468,15 +2075,14 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -2487,8 +2093,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -2499,7 +2103,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -2511,8 +2115,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -2531,8 +2133,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -2540,13 +2140,11 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -2557,12 +2155,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -2570,17 +2167,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getReadTime(), getParentForChildren(), isClean()); + readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getReadTime(), + getParentForChildren(), + isClean()); readTime_ = null; } return readTimeBuilder_; @@ -2588,21 +2182,19 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -2611,22 +2203,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -2634,79 +2225,69 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of assets matching the query.
      * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -2714,43 +2295,37 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of assets matching the query.
      * 
* * int32 total_size = 4; - * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** - * - * *
      * The total number of assets matching the query.
      * 
* * int32 total_size = 4; - * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2760,12 +2335,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.ListAssetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.ListAssetsResponse) private static final com.google.cloud.securitycenter.v1beta1.ListAssetsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.ListAssetsResponse(); } @@ -2774,16 +2349,16 @@ public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2798,4 +2373,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponseOrBuilder.java similarity index 56% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponseOrBuilder.java index 239cb51bd..78e935bca 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponseOrBuilder.java @@ -1,122 +1,75 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface ListAssetsResponseOrBuilder - extends +public interface ListAssetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.ListAssetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - java.util.List + java.util.List getListAssetsResultsList(); /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult getListAssetsResults( - int index); + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult getListAssetsResults(int index); /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ int getListAssetsResultsCount(); /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - java.util.List< - ? extends - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder> + java.util.List getListAssetsResultsOrBuilderList(); /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder - getListAssetsResultsOrBuilder(int index); + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder( + int index); /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used for executing the list request.
    * 
@@ -126,41 +79,33 @@ com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult getL com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of assets matching the query.
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ int getTotalSize(); diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java similarity index 77% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java index f2ae61083..385f90899 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Request message for listing findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListFindingsRequest} */ -public final class ListFindingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.ListFindingsRequest) ListFindingsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingsRequest.newBuilder() to construct. private ListFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingsRequest() { parent_ = ""; filter_ = ""; @@ -46,15 +28,16 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,76 +56,68 @@ private ListFindingsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + orderBy_ = s; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 42: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (fieldMask_ != null) { - subBuilder = fieldMask_.toBuilder(); - } - fieldMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fieldMask_); - fieldMask_ = subBuilder.buildPartial(); - } - - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; + break; + } + case 42: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); } - case 56: - { - pageSize_ = input.readInt32(); - break; + fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 56: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -150,33 +125,29 @@ private ListFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.class, - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.class, com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To list across all
@@ -184,10 +155,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * organizations/{organization_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -196,15 +164,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To list across all
@@ -212,18 +179,17 @@ public java.lang.String getParent() {
    * organizations/{organization_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -234,8 +200,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -258,7 +222,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -267,15 +230,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -298,15 +260,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -317,8 +280,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 3; private volatile java.lang.Object orderBy_; /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -331,7 +292,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 3; - * * @return The orderBy. */ @java.lang.Override @@ -340,15 +300,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -361,15 +320,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 3; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -380,8 +340,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int READ_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp readTime_; /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -390,7 +348,6 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -398,8 +355,6 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -408,7 +363,6 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ @java.lang.Override @@ -416,8 +370,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -435,16 +387,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int FIELD_MASK_FIELD_NUMBER = 5;
   private com.google.protobuf.FieldMask fieldMask_;
   /**
-   *
-   *
    * 
    * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -452,16 +400,12 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** - * - * *
    * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The fieldMask. */ @java.lang.Override @@ -469,15 +413,12 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** - * - * *
    * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { @@ -487,8 +428,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { public static final int PAGE_TOKEN_FIELD_NUMBER = 6; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -496,7 +435,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
    * 
* * string page_token = 6; - * * @return The pageToken. */ @java.lang.Override @@ -505,15 +443,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -521,15 +458,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -540,15 +478,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 7; private int pageSize_; /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 7; - * * @return The pageSize. */ @java.lang.Override @@ -557,7 +492,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -569,7 +503,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -610,16 +545,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, orderBy_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getReadTime()); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFieldMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getFieldMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -629,27 +567,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.ListFindingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest other = - (com.google.cloud.securitycenter.v1beta1.ListFindingsRequest) obj; + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest other = (com.google.cloud.securitycenter.v1beta1.ListFindingsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - if (!getFieldMask().equals(other.getFieldMask())) return false; + if (!getFieldMask() + .equals(other.getFieldMask())) return false; } - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -685,127 +629,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.ListFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for listing findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListFindingsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.ListFindingsRequest) com.google.cloud.securitycenter.v1beta1.ListFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.class, - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.class, com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.newBuilder() @@ -813,15 +747,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -851,9 +786,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_descriptor; } @java.lang.Override @@ -872,8 +807,7 @@ public com.google.cloud.securitycenter.v1beta1.ListFindingsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.ListFindingsRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest result = - new com.google.cloud.securitycenter.v1beta1.ListFindingsRequest(this); + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest result = new com.google.cloud.securitycenter.v1beta1.ListFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.orderBy_ = orderBy_; @@ -897,39 +831,38 @@ public com.google.cloud.securitycenter.v1beta1.ListFindingsRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.ListFindingsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListFindingsRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListFindingsRequest)other); } else { super.mergeFrom(other); return this; @@ -937,8 +870,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.ListFindingsRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -983,8 +915,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.ListFindingsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.ListFindingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -996,8 +927,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To list across all
@@ -1005,16 +934,14 @@ public Builder mergeFrom(
      * organizations/{organization_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1023,8 +950,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To list across all
@@ -1032,17 +957,16 @@ public java.lang.String getParent() {
      * organizations/{organization_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1050,8 +974,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To list across all
@@ -1059,25 +981,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * organizations/{organization_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To list across all
@@ -1085,21 +1003,16 @@ public Builder setParent(java.lang.String value) {
      * organizations/{organization_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To list across all
@@ -1107,19 +1020,17 @@ public Builder clearParent() {
      * organizations/{organization_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1127,8 +1038,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1151,13 +1060,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1166,8 +1075,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1190,14 +1097,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1205,8 +1113,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1229,22 +1135,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1267,18 +1171,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1301,16 +1202,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1318,8 +1219,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1332,13 +1231,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 3; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1347,8 +1246,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1361,14 +1258,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1376,8 +1274,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1390,22 +1286,20 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 3; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1418,18 +1312,15 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 3; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1442,16 +1333,16 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 3; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; @@ -1459,13 +1350,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1474,15 +1360,12 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1491,7 +1374,6 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1502,8 +1384,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1527,8 +1407,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1538,7 +1416,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 4;
      */
-    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1549,8 +1428,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1564,7 +1441,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -1576,8 +1453,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1599,8 +1474,6 @@ public Builder clearReadTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1611,13 +1484,11 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-
+      
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1631,12 +1502,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1647,17 +1517,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(), getParentForChildren(), isClean());
+        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(),
+                getParentForChildren(),
+                isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -1665,37 +1532,26 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private com.google.protobuf.FieldMask fieldMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
-        fieldMaskBuilder_;
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> fieldMaskBuilder_;
     /**
-     *
-     *
      * 
      * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** - * - * *
      * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -1706,15 +1562,12 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** - * - * *
      * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { @@ -1730,17 +1583,15 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setFieldMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { fieldMask_ = builderForValue.build(); onChanged(); @@ -1751,21 +1602,18 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu return this; } /** - * - * *
      * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { if (fieldMask_ != null) { fieldMask_ = - com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); } else { fieldMask_ = value; } @@ -1777,15 +1625,12 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearFieldMask() { if (fieldMaskBuilder_ == null) { @@ -1799,62 +1644,51 @@ public Builder clearFieldMask() { return this; } /** - * - * *
      * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { - + onChanged(); return getFieldMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { if (fieldMaskBuilder_ != null) { return fieldMaskBuilder_.getMessageOrBuilder(); } else { - return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + return fieldMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } } /** - * - * *
      * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getFieldMaskFieldBuilder() { if (fieldMaskBuilder_ == null) { - fieldMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getFieldMask(), getParentForChildren(), isClean()); + fieldMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getFieldMask(), + getParentForChildren(), + isClean()); fieldMask_ = null; } return fieldMaskBuilder_; @@ -1862,8 +1696,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -1871,13 +1703,13 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * 
* * string page_token = 6; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1886,8 +1718,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -1895,14 +1725,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1910,8 +1741,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -1919,22 +1748,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 6; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -1942,18 +1769,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 6; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -1961,32 +1785,29 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; - * * @return The pageSize. */ @java.lang.Override @@ -1994,45 +1815,39 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2042,12 +1857,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.ListFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.ListFindingsRequest) private static final com.google.cloud.securitycenter.v1beta1.ListFindingsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.ListFindingsRequest(); } @@ -2056,16 +1871,16 @@ public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2080,4 +1895,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.ListFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequestOrBuilder.java similarity index 83% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequestOrBuilder.java index 66067ba54..453408cef 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface ListFindingsRequestOrBuilder - extends +public interface ListFindingsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.ListFindingsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To list across all
@@ -33,16 +15,11 @@ public interface ListFindingsRequestOrBuilder
    * organizations/{organization_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To list across all
@@ -50,17 +27,13 @@ public interface ListFindingsRequestOrBuilder
    * organizations/{organization_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -83,13 +56,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -112,14 +82,12 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -132,13 +100,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string order_by = 3; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -151,14 +116,12 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string order_by = 3; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -167,13 +130,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -182,13 +142,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -201,49 +158,36 @@ public interface ListFindingsRequestOrBuilder
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** - * - * *
    * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** - * - * *
    * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); /** - * - * *
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -251,13 +195,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -265,21 +206,18 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 7; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java similarity index 74% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java index bb8ab56a0..e2fbcc2f9 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Response message for listing findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListFindingsResponse} */ -public final class ListFindingsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.ListFindingsResponse) ListFindingsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingsResponse.newBuilder() to construct. private ListFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingsResponse() { findings_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,52 +55,46 @@ private ListFindingsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findings_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - findings_.add( - input.readMessage( - com.google.cloud.securitycenter.v1beta1.Finding.parser(), extensionRegistry)); - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + findings_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; + findings_.add( + input.readMessage(com.google.cloud.securitycenter.v1beta1.Finding.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 32: - { - totalSize_ = input.readInt32(); - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 32: { + + totalSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,7 +102,8 @@ private ListFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { findings_ = java.util.Collections.unmodifiableList(findings_); @@ -134,27 +112,22 @@ private ListFindingsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.class, - com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.class, com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.Builder.class); } public static final int FINDINGS_FIELD_NUMBER = 1; private java.util.List findings_; /** - * - * *
    * Findings matching the list request.
    * 
@@ -166,8 +139,6 @@ public java.util.List getFindin return findings_; } /** - * - * *
    * Findings matching the list request.
    * 
@@ -175,13 +146,11 @@ public java.util.List getFindin * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFindingsOrBuilderList() { return findings_; } /** - * - * *
    * Findings matching the list request.
    * 
@@ -193,8 +162,6 @@ public int getFindingsCount() { return findings_.size(); } /** - * - * *
    * Findings matching the list request.
    * 
@@ -206,8 +173,6 @@ public com.google.cloud.securitycenter.v1beta1.Finding getFindings(int index) { return findings_.get(index); } /** - * - * *
    * Findings matching the list request.
    * 
@@ -215,21 +180,19 @@ public com.google.cloud.securitycenter.v1beta1.Finding getFindings(int index) { * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingsOrBuilder(int index) { + public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingsOrBuilder( + int index) { return findings_.get(index); } public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -237,14 +200,11 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ @java.lang.Override @@ -252,8 +212,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used for executing the list request.
    * 
@@ -268,15 +226,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -285,30 +240,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -319,14 +274,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_; /** - * - * *
    * The total number of findings matching the query.
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -335,7 +287,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,7 +298,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < findings_.size(); i++) { output.writeMessage(1, findings_.get(i)); } @@ -370,16 +322,19 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < findings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findings_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, findings_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -389,21 +344,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.ListFindingsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.ListFindingsResponse other = - (com.google.cloud.securitycenter.v1beta1.ListFindingsResponse) obj; + com.google.cloud.securitycenter.v1beta1.ListFindingsResponse other = (com.google.cloud.securitycenter.v1beta1.ListFindingsResponse) obj; - if (!getFindingsList().equals(other.getFindingsList())) return false; + if (!getFindingsList() + .equals(other.getFindingsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -433,127 +391,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.ListFindingsResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.ListFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for listing findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListFindingsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.ListFindingsResponse) com.google.cloud.securitycenter.v1beta1.ListFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.class, - com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.class, com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.newBuilder() @@ -561,17 +509,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFindingsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -595,14 +543,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.getDefaultInstance(); } @@ -617,8 +564,7 @@ public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse buildPartial() { - com.google.cloud.securitycenter.v1beta1.ListFindingsResponse result = - new com.google.cloud.securitycenter.v1beta1.ListFindingsResponse(this); + com.google.cloud.securitycenter.v1beta1.ListFindingsResponse result = new com.google.cloud.securitycenter.v1beta1.ListFindingsResponse(this); int from_bitField0_ = bitField0_; if (findingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -644,39 +590,38 @@ public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.ListFindingsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListFindingsResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListFindingsResponse)other); } else { super.mergeFrom(other); return this; @@ -684,9 +629,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.ListFindingsResponse other) { - if (other - == com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.getDefaultInstance()) return this; if (findingsBuilder_ == null) { if (!other.findings_.isEmpty()) { if (findings_.isEmpty()) { @@ -705,10 +648,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.ListFindingsRes findingsBuilder_ = null; findings_ = other.findings_; bitField0_ = (bitField0_ & ~0x00000001); - findingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFindingsFieldBuilder() - : null; + findingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFindingsFieldBuilder() : null; } else { findingsBuilder_.addAllMessages(other.findings_); } @@ -743,8 +685,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.ListFindingsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.ListFindingsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -753,29 +694,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List findings_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFindingsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - findings_ = - new java.util.ArrayList(findings_); + findings_ = new java.util.ArrayList(findings_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Finding, - com.google.cloud.securitycenter.v1beta1.Finding.Builder, - com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> - findingsBuilder_; + com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> findingsBuilder_; /** - * - * *
      * Findings matching the list request.
      * 
@@ -790,8 +723,6 @@ public java.util.List getFindin } } /** - * - * *
      * Findings matching the list request.
      * 
@@ -806,8 +737,6 @@ public int getFindingsCount() { } } /** - * - * *
      * Findings matching the list request.
      * 
@@ -822,15 +751,14 @@ public com.google.cloud.securitycenter.v1beta1.Finding getFindings(int index) { } } /** - * - * *
      * Findings matching the list request.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ - public Builder setFindings(int index, com.google.cloud.securitycenter.v1beta1.Finding value) { + public Builder setFindings( + int index, com.google.cloud.securitycenter.v1beta1.Finding value) { if (findingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -844,8 +772,6 @@ public Builder setFindings(int index, com.google.cloud.securitycenter.v1beta1.Fi return this; } /** - * - * *
      * Findings matching the list request.
      * 
@@ -864,8 +790,6 @@ public Builder setFindings( return this; } /** - * - * *
      * Findings matching the list request.
      * 
@@ -886,15 +810,14 @@ public Builder addFindings(com.google.cloud.securitycenter.v1beta1.Finding value return this; } /** - * - * *
      * Findings matching the list request.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ - public Builder addFindings(int index, com.google.cloud.securitycenter.v1beta1.Finding value) { + public Builder addFindings( + int index, com.google.cloud.securitycenter.v1beta1.Finding value) { if (findingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -908,8 +831,6 @@ public Builder addFindings(int index, com.google.cloud.securitycenter.v1beta1.Fi return this; } /** - * - * *
      * Findings matching the list request.
      * 
@@ -928,8 +849,6 @@ public Builder addFindings( return this; } /** - * - * *
      * Findings matching the list request.
      * 
@@ -948,8 +867,6 @@ public Builder addFindings( return this; } /** - * - * *
      * Findings matching the list request.
      * 
@@ -960,7 +877,8 @@ public Builder addAllFindings( java.lang.Iterable values) { if (findingsBuilder_ == null) { ensureFindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, findings_); onChanged(); } else { findingsBuilder_.addAllMessages(values); @@ -968,8 +886,6 @@ public Builder addAllFindings( return this; } /** - * - * *
      * Findings matching the list request.
      * 
@@ -987,8 +903,6 @@ public Builder clearFindings() { return this; } /** - * - * *
      * Findings matching the list request.
      * 
@@ -1006,20 +920,17 @@ public Builder removeFindings(int index) { return this; } /** - * - * *
      * Findings matching the list request.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ - public com.google.cloud.securitycenter.v1beta1.Finding.Builder getFindingsBuilder(int index) { + public com.google.cloud.securitycenter.v1beta1.Finding.Builder getFindingsBuilder( + int index) { return getFindingsFieldBuilder().getBuilder(index); } /** - * - * *
      * Findings matching the list request.
      * 
@@ -1029,22 +940,19 @@ public com.google.cloud.securitycenter.v1beta1.Finding.Builder getFindingsBuilde public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingsOrBuilder( int index) { if (findingsBuilder_ == null) { - return findings_.get(index); - } else { + return findings_.get(index); } else { return findingsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Findings matching the list request.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ - public java.util.List - getFindingsOrBuilderList() { + public java.util.List + getFindingsOrBuilderList() { if (findingsBuilder_ != null) { return findingsBuilder_.getMessageOrBuilderList(); } else { @@ -1052,8 +960,6 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingsOrBui } } /** - * - * *
      * Findings matching the list request.
      * 
@@ -1061,48 +967,42 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingsOrBui * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ public com.google.cloud.securitycenter.v1beta1.Finding.Builder addFindingsBuilder() { - return getFindingsFieldBuilder() - .addBuilder(com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance()); + return getFindingsFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance()); } /** - * - * *
      * Findings matching the list request.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ - public com.google.cloud.securitycenter.v1beta1.Finding.Builder addFindingsBuilder(int index) { - return getFindingsFieldBuilder() - .addBuilder(index, com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance()); + public com.google.cloud.securitycenter.v1beta1.Finding.Builder addFindingsBuilder( + int index) { + return getFindingsFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance()); } /** - * - * *
      * Findings matching the list request.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ - public java.util.List - getFindingsBuilderList() { + public java.util.List + getFindingsBuilderList() { return getFindingsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Finding, - com.google.cloud.securitycenter.v1beta1.Finding.Builder, - com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> + com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> getFindingsFieldBuilder() { if (findingsBuilder_ == null) { - findingsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Finding, - com.google.cloud.securitycenter.v1beta1.Finding.Builder, - com.google.cloud.securitycenter.v1beta1.FindingOrBuilder>( - findings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + findingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, com.google.cloud.securitycenter.v1beta1.FindingOrBuilder>( + findings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); findings_ = null; } return findingsBuilder_; @@ -1110,33 +1010,24 @@ public com.google.cloud.securitycenter.v1beta1.Finding.Builder addFindingsBuilde private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1147,8 +1038,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -1169,15 +1058,14 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -1188,8 +1076,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -1200,7 +1086,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -1212,8 +1098,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -1232,8 +1116,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -1241,13 +1123,11 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -1258,12 +1138,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -1271,17 +1150,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getReadTime(), getParentForChildren(), isClean()); + readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getReadTime(), + getParentForChildren(), + isClean()); readTime_ = null; } return readTimeBuilder_; @@ -1289,21 +1165,19 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1312,22 +1186,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1335,79 +1208,69 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of findings matching the query.
      * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -1415,43 +1278,37 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of findings matching the query.
      * 
* * int32 total_size = 4; - * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** - * - * *
      * The total number of findings matching the query.
      * 
* * int32 total_size = 4; - * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1461,13 +1318,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.ListFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.ListFindingsResponse) - private static final com.google.cloud.securitycenter.v1beta1.ListFindingsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1beta1.ListFindingsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.ListFindingsResponse(); } @@ -1476,16 +1332,16 @@ public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1500,4 +1356,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponseOrBuilder.java similarity index 75% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponseOrBuilder.java index cf4c8e3c0..baa1ed9f6 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface ListFindingsResponseOrBuilder - extends +public interface ListFindingsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.ListFindingsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Findings matching the list request.
    * 
* * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ - java.util.List getFindingsList(); + java.util.List + getFindingsList(); /** - * - * *
    * Findings matching the list request.
    * 
@@ -44,8 +25,6 @@ public interface ListFindingsResponseOrBuilder */ com.google.cloud.securitycenter.v1beta1.Finding getFindings(int index); /** - * - * *
    * Findings matching the list request.
    * 
@@ -54,54 +33,43 @@ public interface ListFindingsResponseOrBuilder */ int getFindingsCount(); /** - * - * *
    * Findings matching the list request.
    * 
* * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ - java.util.List + java.util.List getFindingsOrBuilderList(); /** - * - * *
    * Findings matching the list request.
    * 
* * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ - com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingsOrBuilder(int index); + com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingsOrBuilder( + int index); /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used for executing the list request.
    * 
@@ -111,41 +79,33 @@ public interface ListFindingsResponseOrBuilder com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of findings matching the query.
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ int getTotalSize(); diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java similarity index 70% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java index 61a7b27ad..f947e950a 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Request message for listing sources.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListSourcesRequest} */ -public final class ListSourcesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSourcesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.ListSourcesRequest) ListSourcesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSourcesRequest.newBuilder() to construct. private ListSourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSourcesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListSourcesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSourcesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSourcesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListSourcesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 56: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 56: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListSourcesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.class, - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.class, com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,8 +156,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -193,7 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -202,15 +171,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -218,15 +186,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -237,15 +206,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 7; private int pageSize_; /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 7; - * * @return The pageSize. */ @java.lang.Override @@ -254,7 +220,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,7 +231,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -292,7 +258,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -302,17 +269,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.ListSourcesRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest other = - (com.google.cloud.securitycenter.v1beta1.ListSourcesRequest) obj; + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest other = (com.google.cloud.securitycenter.v1beta1.ListSourcesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -336,127 +305,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.ListSourcesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for listing sources.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListSourcesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.ListSourcesRequest) com.google.cloud.securitycenter.v1beta1.ListSourcesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.class, - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.class, com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.newBuilder() @@ -464,15 +423,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -486,9 +446,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_descriptor; } @java.lang.Override @@ -507,8 +467,7 @@ public com.google.cloud.securitycenter.v1beta1.ListSourcesRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.ListSourcesRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest result = - new com.google.cloud.securitycenter.v1beta1.ListSourcesRequest(this); + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest result = new com.google.cloud.securitycenter.v1beta1.ListSourcesRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -520,39 +479,38 @@ public com.google.cloud.securitycenter.v1beta1.ListSourcesRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.ListSourcesRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListSourcesRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListSourcesRequest)other); } else { super.mergeFrom(other); return this; @@ -560,8 +518,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.ListSourcesRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -592,8 +549,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.ListSourcesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.ListSourcesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -605,23 +561,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -630,24 +582,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -655,70 +604,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -726,8 +662,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -735,13 +669,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -750,8 +684,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -759,14 +691,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -774,8 +707,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -783,22 +714,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -806,18 +735,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -825,32 +751,29 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; - * * @return The pageSize. */ @java.lang.Override @@ -858,45 +781,39 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -906,12 +823,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.ListSourcesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.ListSourcesRequest) private static final com.google.cloud.securitycenter.v1beta1.ListSourcesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.ListSourcesRequest(); } @@ -920,16 +837,16 @@ public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSourcesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSourcesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSourcesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSourcesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -944,4 +861,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.ListSourcesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequestOrBuilder.java index 2c7baf2a1..3b5abe2ff 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface ListSourcesRequestOrBuilder - extends +public interface ListSourcesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.ListSourcesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -64,13 +37,10 @@ public interface ListSourcesRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -78,21 +48,18 @@ public interface ListSourcesRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 7; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java similarity index 74% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java index 1810d29f5..d948303dd 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Response message for listing sources.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListSourcesResponse} */ -public final class ListSourcesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSourcesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.ListSourcesResponse) ListSourcesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSourcesResponse.newBuilder() to construct. private ListSourcesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSourcesResponse() { sources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListSourcesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSourcesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSourcesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private ListSourcesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sources_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - sources_.add( - input.readMessage( - com.google.cloud.securitycenter.v1beta1.Source.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + sources_.add( + input.readMessage(com.google.cloud.securitycenter.v1beta1.Source.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private ListSourcesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { sources_ = java.util.Collections.unmodifiableList(sources_); @@ -114,27 +94,22 @@ private ListSourcesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.class, - com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.class, com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.Builder.class); } public static final int SOURCES_FIELD_NUMBER = 1; private java.util.List sources_; /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -146,8 +121,6 @@ public java.util.List getSources return sources_; } /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -155,13 +128,11 @@ public java.util.List getSources * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSourcesOrBuilderList() { return sources_; } /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -173,8 +144,6 @@ public int getSourcesCount() { return sources_.size(); } /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.securitycenter.v1beta1.Source getSources(int index) { return sources_.get(index); } /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -195,22 +162,20 @@ public com.google.cloud.securitycenter.v1beta1.Source getSources(int index) { * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuilder(int index) { + public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuilder( + int index) { return sources_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -219,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -251,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < sources_.size(); i++) { output.writeMessage(1, sources_.get(i)); } @@ -280,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < sources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, sources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -293,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.ListSourcesResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.ListSourcesResponse other = - (com.google.cloud.securitycenter.v1beta1.ListSourcesResponse) obj; + com.google.cloud.securitycenter.v1beta1.ListSourcesResponse other = (com.google.cloud.securitycenter.v1beta1.ListSourcesResponse) obj; - if (!getSourcesList().equals(other.getSourcesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getSourcesList() + .equals(other.getSourcesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.ListSourcesResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.ListSourcesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for listing sources.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListSourcesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.ListSourcesResponse) com.google.cloud.securitycenter.v1beta1.ListSourcesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.class, - com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.class, com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.newBuilder() @@ -454,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getSourcesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_descriptor; } @java.lang.Override @@ -501,8 +458,7 @@ public com.google.cloud.securitycenter.v1beta1.ListSourcesResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.ListSourcesResponse buildPartial() { - com.google.cloud.securitycenter.v1beta1.ListSourcesResponse result = - new com.google.cloud.securitycenter.v1beta1.ListSourcesResponse(this); + com.google.cloud.securitycenter.v1beta1.ListSourcesResponse result = new com.google.cloud.securitycenter.v1beta1.ListSourcesResponse(this); int from_bitField0_ = bitField0_; if (sourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -522,39 +478,38 @@ public com.google.cloud.securitycenter.v1beta1.ListSourcesResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.ListSourcesResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListSourcesResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListSourcesResponse)other); } else { super.mergeFrom(other); return this; @@ -562,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.ListSourcesResponse other) { - if (other == com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.getDefaultInstance()) return this; if (sourcesBuilder_ == null) { if (!other.sources_.isEmpty()) { if (sources_.isEmpty()) { @@ -582,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.ListSourcesResp sourcesBuilder_ = null; sources_ = other.sources_; bitField0_ = (bitField0_ & ~0x00000001); - sourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSourcesFieldBuilder() - : null; + sourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSourcesFieldBuilder() : null; } else { sourcesBuilder_.addAllMessages(other.sources_); } @@ -614,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.ListSourcesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.ListSourcesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -624,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List sources_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - sources_ = - new java.util.ArrayList(sources_); + sources_ = new java.util.ArrayList(sources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Source, - com.google.cloud.securitycenter.v1beta1.Source.Builder, - com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> - sourcesBuilder_; + com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> sourcesBuilder_; /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -661,8 +605,6 @@ public java.util.List getSources } } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -677,8 +619,6 @@ public int getSourcesCount() { } } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -693,15 +633,14 @@ public com.google.cloud.securitycenter.v1beta1.Source getSources(int index) { } } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ - public Builder setSources(int index, com.google.cloud.securitycenter.v1beta1.Source value) { + public Builder setSources( + int index, com.google.cloud.securitycenter.v1beta1.Source value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -715,8 +654,6 @@ public Builder setSources(int index, com.google.cloud.securitycenter.v1beta1.Sou return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -735,8 +672,6 @@ public Builder setSources( return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -757,15 +692,14 @@ public Builder addSources(com.google.cloud.securitycenter.v1beta1.Source value) return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ - public Builder addSources(int index, com.google.cloud.securitycenter.v1beta1.Source value) { + public Builder addSources( + int index, com.google.cloud.securitycenter.v1beta1.Source value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -779,8 +713,6 @@ public Builder addSources(int index, com.google.cloud.securitycenter.v1beta1.Sou return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -799,8 +731,6 @@ public Builder addSources( return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -819,8 +749,6 @@ public Builder addSources( return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -831,7 +759,8 @@ public Builder addAllSources( java.lang.Iterable values) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sources_); onChanged(); } else { sourcesBuilder_.addAllMessages(values); @@ -839,8 +768,6 @@ public Builder addAllSources( return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -858,8 +785,6 @@ public Builder clearSources() { return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -877,44 +802,39 @@ public Builder removeSources(int index) { return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ - public com.google.cloud.securitycenter.v1beta1.Source.Builder getSourcesBuilder(int index) { + public com.google.cloud.securitycenter.v1beta1.Source.Builder getSourcesBuilder( + int index) { return getSourcesFieldBuilder().getBuilder(index); } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ - public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuilder(int index) { + public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuilder( + int index) { if (sourcesBuilder_ == null) { - return sources_.get(index); - } else { + return sources_.get(index); } else { return sourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ - public java.util.List - getSourcesOrBuilderList() { + public java.util.List + getSourcesOrBuilderList() { if (sourcesBuilder_ != null) { return sourcesBuilder_.getMessageOrBuilderList(); } else { @@ -922,8 +842,6 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuild } } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -931,48 +849,42 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuild * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ public com.google.cloud.securitycenter.v1beta1.Source.Builder addSourcesBuilder() { - return getSourcesFieldBuilder() - .addBuilder(com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance()); + return getSourcesFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance()); } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ - public com.google.cloud.securitycenter.v1beta1.Source.Builder addSourcesBuilder(int index) { - return getSourcesFieldBuilder() - .addBuilder(index, com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance()); + public com.google.cloud.securitycenter.v1beta1.Source.Builder addSourcesBuilder( + int index) { + return getSourcesFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance()); } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ - public java.util.List - getSourcesBuilderList() { + public java.util.List + getSourcesBuilderList() { return getSourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Source, - com.google.cloud.securitycenter.v1beta1.Source.Builder, - com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> + com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> getSourcesFieldBuilder() { if (sourcesBuilder_ == null) { - sourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Source, - com.google.cloud.securitycenter.v1beta1.Source.Builder, - com.google.cloud.securitycenter.v1beta1.SourceOrBuilder>( - sources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + sourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, com.google.cloud.securitycenter.v1beta1.SourceOrBuilder>( + sources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); sources_ = null; } return sourcesBuilder_; @@ -980,21 +892,19 @@ public com.google.cloud.securitycenter.v1beta1.Source.Builder addSourcesBuilder( private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1003,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1026,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1100,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.ListSourcesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.ListSourcesResponse) private static final com.google.cloud.securitycenter.v1beta1.ListSourcesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.ListSourcesResponse(); } @@ -1114,16 +1016,16 @@ public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSourcesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSourcesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSourcesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1138,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.ListSourcesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponseOrBuilder.java index c0ae559aa..d8f15ed3e 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface ListSourcesResponseOrBuilder - extends +public interface ListSourcesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.ListSourcesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Sources belonging to the requested parent.
    * 
* * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ - java.util.List getSourcesList(); + java.util.List + getSourcesList(); /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -44,8 +25,6 @@ public interface ListSourcesResponseOrBuilder */ com.google.cloud.securitycenter.v1beta1.Source getSources(int index); /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -54,51 +33,43 @@ public interface ListSourcesResponseOrBuilder */ int getSourcesCount(); /** - * - * *
    * Sources belonging to the requested parent.
    * 
* * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ - java.util.List + java.util.List getSourcesOrBuilderList(); /** - * - * *
    * Sources belonging to the requested parent.
    * 
* * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ - com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuilder(int index); + com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationName.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationName.java diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java similarity index 64% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java index 121a29e4c..b44e75b90 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/organization_settings.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * User specified settings that are attached to the Security Command
  * Center organization.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1beta1.OrganizationSettings}
  */
-public final class OrganizationSettings extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class OrganizationSettings extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.OrganizationSettings)
     OrganizationSettingsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use OrganizationSettings.newBuilder() to construct.
   private OrganizationSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private OrganizationSettings() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new OrganizationSettings();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private OrganizationSettings(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,45 +54,37 @@ private OrganizationSettings(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 16: {
+
+            enableAssetDiscovery_ = input.readBool();
+            break;
+          }
+          case 26: {
+            com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder subBuilder = null;
+            if (assetDiscoveryConfig_ != null) {
+              subBuilder = assetDiscoveryConfig_.toBuilder();
             }
-          case 16:
-            {
-              enableAssetDiscovery_ = input.readBool();
-              break;
+            assetDiscoveryConfig_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(assetDiscoveryConfig_);
+              assetDiscoveryConfig_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig
-                      .Builder
-                  subBuilder = null;
-              if (assetDiscoveryConfig_ != null) {
-                subBuilder = assetDiscoveryConfig_.toBuilder();
-              }
-              assetDiscoveryConfig_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1beta1.OrganizationSettings
-                          .AssetDiscoveryConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(assetDiscoveryConfig_);
-                assetDiscoveryConfig_ = subBuilder.buildPartial();
-              }
 
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -117,134 +92,106 @@ private OrganizationSettings(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass
-        .internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass
-        .internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1beta1.OrganizationSettings.class,
-            com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder.class);
+            com.google.cloud.securitycenter.v1beta1.OrganizationSettings.class, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder.class);
   }
 
-  public interface AssetDiscoveryConfigOrBuilder
-      extends
+  public interface AssetDiscoveryConfigOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @return A list containing the projectIds. */ - java.util.List getProjectIdsList(); + java.util.List + getProjectIdsList(); /** - * - * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @return The count of projectIds. */ int getProjectIdsCount(); /** - * - * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @param index The index of the element to return. * @return The projectIds at the given index. */ java.lang.String getProjectIds(int index); /** - * - * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @param index The index of the value to return. * @return The bytes of the projectIds at the given index. */ - com.google.protobuf.ByteString getProjectIdsBytes(int index); + com.google.protobuf.ByteString + getProjectIdsBytes(int index); /** - * - * *
      * The mode to use for filtering asset discovery.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return The enum numeric value on the wire for inclusionMode. */ int getInclusionModeValue(); /** - * - * *
      * The mode to use for filtering asset discovery.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return The inclusionMode. */ - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode - getInclusionMode(); + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode(); } /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* - * Protobuf type {@code - * google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig} + * Protobuf type {@code google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig} */ - public static final class AssetDiscoveryConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AssetDiscoveryConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) AssetDiscoveryConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AssetDiscoveryConfig.newBuilder() to construct. private AssetDiscoveryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AssetDiscoveryConfig() { projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; inclusionMode_ = 0; @@ -252,15 +199,16 @@ private AssetDiscoveryConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AssetDiscoveryConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AssetDiscoveryConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -280,30 +228,28 @@ private AssetDiscoveryConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - projectIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - projectIds_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + projectIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 16: - { - int rawValue = input.readEnum(); + projectIds_.add(s); + break; + } + case 16: { + int rawValue = input.readEnum(); - inclusionMode_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + inclusionMode_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -311,7 +257,8 @@ private AssetDiscoveryConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { projectIds_ = projectIds_.getUnmodifiableView(); @@ -320,27 +267,20 @@ private AssetDiscoveryConfig( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass - .internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass - .internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .class, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .Builder.class); + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.class, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder.class); } /** - * - * *
      * The mode of inclusion when running Asset Discovery.
      * Asset discovery can be limited by explicitly identifying projects to be
@@ -352,13 +292,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * discovery.
      * 
* - * Protobuf enum {@code - * google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode} + * Protobuf enum {@code google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode} */ - public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum { + public enum InclusionMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unspecified. Setting the mode with this value will disable
        * inclusion/exclusion filtering for Asset Discovery.
@@ -368,8 +306,6 @@ public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum {
        */
       INCLUSION_MODE_UNSPECIFIED(0),
       /**
-       *
-       *
        * 
        * Asset Discovery will capture only the resources within the projects
        * specified. All other resources will be ignored.
@@ -379,8 +315,6 @@ public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum {
        */
       INCLUDE_ONLY(1),
       /**
-       *
-       *
        * 
        * Asset Discovery will ignore all resources under the projects specified.
        * All other resources will be retrieved.
@@ -393,8 +327,6 @@ public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * Unspecified. Setting the mode with this value will disable
        * inclusion/exclusion filtering for Asset Discovery.
@@ -404,8 +336,6 @@ public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int INCLUSION_MODE_UNSPECIFIED_VALUE = 0;
       /**
-       *
-       *
        * 
        * Asset Discovery will capture only the resources within the projects
        * specified. All other resources will be ignored.
@@ -415,8 +345,6 @@ public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int INCLUDE_ONLY_VALUE = 1;
       /**
-       *
-       *
        * 
        * Asset Discovery will ignore all resources under the projects specified.
        * All other resources will be retrieved.
@@ -426,6 +354,7 @@ public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int EXCLUDE_VALUE = 2;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -450,46 +379,40 @@ public static InclusionMode valueOf(int value) {
        */
       public static InclusionMode forNumber(int value) {
         switch (value) {
-          case 0:
-            return INCLUSION_MODE_UNSPECIFIED;
-          case 1:
-            return INCLUDE_ONLY;
-          case 2:
-            return EXCLUDE;
-          default:
-            return null;
+          case 0: return INCLUSION_MODE_UNSPECIFIED;
+          case 1: return INCLUDE_ONLY;
+          case 2: return EXCLUDE;
+          default: return null;
         }
       }
 
-      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+      public static com.google.protobuf.Internal.EnumLiteMap
+          internalGetValueMap() {
         return internalValueMap;
       }
+      private static final com.google.protobuf.Internal.EnumLiteMap<
+          InclusionMode> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public InclusionMode findValueByNumber(int number) {
+                return InclusionMode.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap
-          internalValueMap =
-              new com.google.protobuf.Internal.EnumLiteMap() {
-                public InclusionMode findValueByNumber(int number) {
-                  return InclusionMode.forNumber(number);
-                }
-              };
-
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor
+          getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-
-      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+      public final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptorForType() {
         return getDescriptor();
       }
-
-      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-        return com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig
-            .getDescriptor()
-            .getEnumTypes()
-            .get(0);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final InclusionMode[] VALUES = values();
@@ -497,7 +420,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
       public static InclusionMode valueOf(
           com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException(
+            "EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -517,42 +441,34 @@ private InclusionMode(int value) {
     public static final int PROJECT_IDS_FIELD_NUMBER = 1;
     private com.google.protobuf.LazyStringList projectIds_;
     /**
-     *
-     *
      * 
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @return A list containing the projectIds. */ - public com.google.protobuf.ProtocolStringList getProjectIdsList() { + public com.google.protobuf.ProtocolStringList + getProjectIdsList() { return projectIds_; } /** - * - * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @return The count of projectIds. */ public int getProjectIdsCount() { return projectIds_.size(); } /** - * - * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @param index The index of the element to return. * @return The projectIds at the given index. */ @@ -560,71 +476,47 @@ public java.lang.String getProjectIds(int index) { return projectIds_.get(index); } /** - * - * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @param index The index of the value to return. * @return The bytes of the projectIds at the given index. */ - public com.google.protobuf.ByteString getProjectIdsBytes(int index) { + public com.google.protobuf.ByteString + getProjectIdsBytes(int index) { return projectIds_.getByteString(index); } public static final int INCLUSION_MODE_FIELD_NUMBER = 2; private int inclusionMode_; /** - * - * *
      * The mode to use for filtering asset discovery.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return The enum numeric value on the wire for inclusionMode. */ - @java.lang.Override - public int getInclusionModeValue() { + @java.lang.Override public int getInclusionModeValue() { return inclusionMode_; } /** - * - * *
      * The mode to use for filtering asset discovery.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return The inclusionMode. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode - getInclusionMode() { + @java.lang.Override public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode - result = - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode.valueOf(inclusionMode_); - return result == null - ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode result = com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.valueOf(inclusionMode_); + return result == null ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -636,14 +528,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < projectIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectIds_.getRaw(i)); } - if (inclusionMode_ - != com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode.INCLUSION_MODE_UNSPECIFIED - .getNumber()) { + if (inclusionMode_ != com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.INCLUSION_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, inclusionMode_); } unknownFields.writeTo(output); @@ -663,11 +553,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getProjectIdsList().size(); } - if (inclusionMode_ - != com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode.INCLUSION_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, inclusionMode_); + if (inclusionMode_ != com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.INCLUSION_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, inclusionMode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -677,17 +565,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig)) { + if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig other = - (com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) obj; + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig other = (com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) obj; - if (!getProjectIdsList().equals(other.getProjectIdsList())) return false; + if (!getProjectIdsList() + .equals(other.getProjectIdsList())) return false; if (inclusionMode_ != other.inclusionMode_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -711,102 +597,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -816,52 +688,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * Protobuf type {@code - * google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig} + * Protobuf type {@code google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass - .internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass - .internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .class, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .Builder.class); + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.class, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.newBuilder() + // Construct using com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -873,23 +737,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass - .internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - build() { - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig result = - buildPartial(); + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig build() { + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -897,11 +757,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - buildPartial() { - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig result = - new com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig( - this); + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig buildPartial() { + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig result = new com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { projectIds_ = projectIds_.getUnmodifiableView(); @@ -917,56 +774,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) { - return mergeFrom( - (com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) - other); + if (other instanceof com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) { + return mergeFrom((com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig other) { - if (other - == com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig other) { + if (other == com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance()) return this; if (!other.projectIds_.isEmpty()) { if (projectIds_.isEmpty()) { projectIds_ = other.projectIds_; @@ -995,14 +842,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - parsedMessage = null; + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1011,55 +855,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList projectIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureProjectIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { projectIds_ = new com.google.protobuf.LazyStringArrayList(projectIds_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @return A list containing the projectIds. */ - public com.google.protobuf.ProtocolStringList getProjectIdsList() { + public com.google.protobuf.ProtocolStringList + getProjectIdsList() { return projectIds_.getUnmodifiableView(); } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @return The count of projectIds. */ public int getProjectIdsCount() { return projectIds_.size(); } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @param index The index of the element to return. * @return The projectIds at the given index. */ @@ -1067,90 +900,80 @@ public java.lang.String getProjectIds(int index) { return projectIds_.get(index); } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @param index The index of the value to return. * @return The bytes of the projectIds at the given index. */ - public com.google.protobuf.ByteString getProjectIdsBytes(int index) { + public com.google.protobuf.ByteString + getProjectIdsBytes(int index) { return projectIds_.getByteString(index); } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @param index The index to set the value at. * @param value The projectIds to set. * @return This builder for chaining. */ - public Builder setProjectIds(int index, java.lang.String value) { + public Builder setProjectIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProjectIdsIsMutable(); + throw new NullPointerException(); + } + ensureProjectIdsIsMutable(); projectIds_.set(index, value); onChanged(); return this; } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @param value The projectIds to add. * @return This builder for chaining. */ - public Builder addProjectIds(java.lang.String value) { + public Builder addProjectIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProjectIdsIsMutable(); + throw new NullPointerException(); + } + ensureProjectIdsIsMutable(); projectIds_.add(value); onChanged(); return this; } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @param values The projectIds to add. * @return This builder for chaining. */ - public Builder addAllProjectIds(java.lang.Iterable values) { + public Builder addAllProjectIds( + java.lang.Iterable values) { ensureProjectIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projectIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, projectIds_); onChanged(); return this; } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @return This builder for chaining. */ public Builder clearProjectIds() { @@ -1160,22 +983,20 @@ public Builder clearProjectIds() { return this; } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @param value The bytes of the projectIds to add. * @return This builder for chaining. */ - public Builder addProjectIdsBytes(com.google.protobuf.ByteString value) { + public Builder addProjectIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureProjectIdsIsMutable(); projectIds_.add(value); onChanged(); @@ -1184,116 +1005,77 @@ public Builder addProjectIdsBytes(com.google.protobuf.ByteString value) { private int inclusionMode_ = 0; /** - * - * *
        * The mode to use for filtering asset discovery.
        * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return The enum numeric value on the wire for inclusionMode. */ - @java.lang.Override - public int getInclusionModeValue() { + @java.lang.Override public int getInclusionModeValue() { return inclusionMode_; } /** - * - * *
        * The mode to use for filtering asset discovery.
        * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @param value The enum numeric value on the wire for inclusionMode to set. * @return This builder for chaining. */ public Builder setInclusionModeValue(int value) { - + inclusionMode_ = value; onChanged(); return this; } /** - * - * *
        * The mode to use for filtering asset discovery.
        * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return The inclusionMode. */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode - getInclusionMode() { + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode - result = - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode.valueOf(inclusionMode_); - return result == null - ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode result = com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.valueOf(inclusionMode_); + return result == null ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.UNRECOGNIZED : result; } /** - * - * *
        * The mode to use for filtering asset discovery.
        * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @param value The inclusionMode to set. * @return This builder for chaining. */ - public Builder setInclusionMode( - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode - value) { + public Builder setInclusionMode(com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode value) { if (value == null) { throw new NullPointerException(); } - + inclusionMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * The mode to use for filtering asset discovery.
        * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return This builder for chaining. */ public Builder clearInclusionMode() { - + inclusionMode_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1306,34 +1088,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) - private static final com.google.cloud.securitycenter.v1beta1.OrganizationSettings - .AssetDiscoveryConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig(); + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig(); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssetDiscoveryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AssetDiscoveryConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetDiscoveryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AssetDiscoveryConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1345,17 +1123,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1364,7 +1140,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1373,15 +1148,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1390,15 +1164,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1409,8 +1184,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ENABLE_ASSET_DISCOVERY_FIELD_NUMBER = 2; private boolean enableAssetDiscovery_; /** - * - * *
    * A flag that indicates if Asset Discovery should be enabled. If the flag is
    * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -1419,7 +1192,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * bool enable_asset_discovery = 2; - * * @return The enableAssetDiscovery. */ @java.lang.Override @@ -1428,19 +1200,13 @@ public boolean getEnableAssetDiscovery() { } public static final int ASSET_DISCOVERY_CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - assetDiscoveryConfig_; + private com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig assetDiscoveryConfig_; /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * @return Whether the assetDiscoveryConfig field is set. */ @java.lang.Override @@ -1448,45 +1214,30 @@ public boolean hasAssetDiscoveryConfig() { return assetDiscoveryConfig_ != null; } /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * @return The assetDiscoveryConfig. */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - getAssetDiscoveryConfig() { - return assetDiscoveryConfig_ == null - ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .getDefaultInstance() - : assetDiscoveryConfig_; + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig() { + return assetDiscoveryConfig_ == null ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance() : assetDiscoveryConfig_; } /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder - getAssetDiscoveryConfigOrBuilder() { + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder() { return getAssetDiscoveryConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1498,7 +1249,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1521,11 +1273,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (enableAssetDiscovery_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableAssetDiscovery_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enableAssetDiscovery_); } if (assetDiscoveryConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAssetDiscoveryConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAssetDiscoveryConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1535,19 +1288,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.OrganizationSettings)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.OrganizationSettings other = - (com.google.cloud.securitycenter.v1beta1.OrganizationSettings) obj; + com.google.cloud.securitycenter.v1beta1.OrganizationSettings other = (com.google.cloud.securitycenter.v1beta1.OrganizationSettings) obj; - if (!getName().equals(other.getName())) return false; - if (getEnableAssetDiscovery() != other.getEnableAssetDiscovery()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getEnableAssetDiscovery() + != other.getEnableAssetDiscovery()) return false; if (hasAssetDiscoveryConfig() != other.hasAssetDiscoveryConfig()) return false; if (hasAssetDiscoveryConfig()) { - if (!getAssetDiscoveryConfig().equals(other.getAssetDiscoveryConfig())) return false; + if (!getAssetDiscoveryConfig() + .equals(other.getAssetDiscoveryConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1563,7 +1318,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ENABLE_ASSET_DISCOVERY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAssetDiscovery()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableAssetDiscovery()); if (hasAssetDiscoveryConfig()) { hash = (37 * hash) + ASSET_DISCOVERY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAssetDiscoveryConfig().hashCode(); @@ -1574,104 +1330,96 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.OrganizationSettings prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.OrganizationSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * User specified settings that are attached to the Security Command
    * Center organization.
@@ -1679,23 +1427,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1beta1.OrganizationSettings}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.OrganizationSettings)
       com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass
-          .internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass
-          .internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1beta1.OrganizationSettings.class,
-              com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder.class);
+              com.google.cloud.securitycenter.v1beta1.OrganizationSettings.class, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1beta1.OrganizationSettings.newBuilder()
@@ -1703,15 +1449,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1729,14 +1476,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass
-          .internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.securitycenter.v1beta1.OrganizationSettings
-        getDefaultInstanceForType() {
+    public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getDefaultInstanceForType() {
       return com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance();
     }
 
@@ -1751,8 +1497,7 @@ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1beta1.OrganizationSettings buildPartial() {
-      com.google.cloud.securitycenter.v1beta1.OrganizationSettings result =
-          new com.google.cloud.securitycenter.v1beta1.OrganizationSettings(this);
+      com.google.cloud.securitycenter.v1beta1.OrganizationSettings result = new com.google.cloud.securitycenter.v1beta1.OrganizationSettings(this);
       result.name_ = name_;
       result.enableAssetDiscovery_ = enableAssetDiscovery_;
       if (assetDiscoveryConfigBuilder_ == null) {
@@ -1768,39 +1513,38 @@ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings buildPartial
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1beta1.OrganizationSettings) {
-        return mergeFrom((com.google.cloud.securitycenter.v1beta1.OrganizationSettings) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1beta1.OrganizationSettings)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1808,9 +1552,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.OrganizationSettings other) {
-      if (other
-          == com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1840,8 +1582,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.securitycenter.v1beta1.OrganizationSettings) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.securitycenter.v1beta1.OrganizationSettings) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1853,8 +1594,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1863,13 +1602,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1878,8 +1617,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1888,14 +1625,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1903,8 +1641,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1913,22 +1649,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1937,18 +1671,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1957,25 +1688,23 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private boolean enableAssetDiscovery_; + private boolean enableAssetDiscovery_ ; /** - * - * *
      * A flag that indicates if Asset Discovery should be enabled. If the flag is
      * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -1984,7 +1713,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * bool enable_asset_discovery = 2; - * * @return The enableAssetDiscovery. */ @java.lang.Override @@ -1992,8 +1720,6 @@ public boolean getEnableAssetDiscovery() { return enableAssetDiscovery_; } /** - * - * *
      * A flag that indicates if Asset Discovery should be enabled. If the flag is
      * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -2002,19 +1728,16 @@ public boolean getEnableAssetDiscovery() {
      * 
* * bool enable_asset_discovery = 2; - * * @param value The enableAssetDiscovery to set. * @return This builder for chaining. */ public Builder setEnableAssetDiscovery(boolean value) { - + enableAssetDiscovery_ = value; onChanged(); return this; } /** - * - * *
      * A flag that indicates if Asset Discovery should be enabled. If the flag is
      * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -2023,78 +1746,52 @@ public Builder setEnableAssetDiscovery(boolean value) {
      * 
* * bool enable_asset_discovery = 2; - * * @return This builder for chaining. */ public Builder clearEnableAssetDiscovery() { - + enableAssetDiscovery_ = false; onChanged(); return this; } - private com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - assetDiscoveryConfig_; + private com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig assetDiscoveryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .Builder, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings - .AssetDiscoveryConfigOrBuilder> - assetDiscoveryConfigBuilder_; + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder> assetDiscoveryConfigBuilder_; /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * @return Whether the assetDiscoveryConfig field is set. */ public boolean hasAssetDiscoveryConfig() { return assetDiscoveryConfigBuilder_ != null || assetDiscoveryConfig_ != null; } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * @return The assetDiscoveryConfig. */ - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - getAssetDiscoveryConfig() { + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig() { if (assetDiscoveryConfigBuilder_ == null) { - return assetDiscoveryConfig_ == null - ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .getDefaultInstance() - : assetDiscoveryConfig_; + return assetDiscoveryConfig_ == null ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance() : assetDiscoveryConfig_; } else { return assetDiscoveryConfigBuilder_.getMessage(); } } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ - public Builder setAssetDiscoveryConfig( - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig value) { + public Builder setAssetDiscoveryConfig(com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig value) { if (assetDiscoveryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2108,19 +1805,14 @@ public Builder setAssetDiscoveryConfig( return this; } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ public Builder setAssetDiscoveryConfig( - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder - builderForValue) { + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder builderForValue) { if (assetDiscoveryConfigBuilder_ == null) { assetDiscoveryConfig_ = builderForValue.build(); onChanged(); @@ -2131,25 +1823,17 @@ public Builder setAssetDiscoveryConfig( return this; } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ - public Builder mergeAssetDiscoveryConfig( - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig value) { + public Builder mergeAssetDiscoveryConfig(com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig value) { if (assetDiscoveryConfigBuilder_ == null) { if (assetDiscoveryConfig_ != null) { assetDiscoveryConfig_ = - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .newBuilder(assetDiscoveryConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.newBuilder(assetDiscoveryConfig_).mergeFrom(value).buildPartial(); } else { assetDiscoveryConfig_ = value; } @@ -2161,15 +1845,11 @@ public Builder mergeAssetDiscoveryConfig( return this; } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ public Builder clearAssetDiscoveryConfig() { if (assetDiscoveryConfigBuilder_ == null) { @@ -2183,79 +1863,55 @@ public Builder clearAssetDiscoveryConfig() { return this; } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder - getAssetDiscoveryConfigBuilder() { - + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder getAssetDiscoveryConfigBuilder() { + onChanged(); return getAssetDiscoveryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings - .AssetDiscoveryConfigOrBuilder - getAssetDiscoveryConfigOrBuilder() { + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder() { if (assetDiscoveryConfigBuilder_ != null) { return assetDiscoveryConfigBuilder_.getMessageOrBuilder(); } else { - return assetDiscoveryConfig_ == null - ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .getDefaultInstance() - : assetDiscoveryConfig_; + return assetDiscoveryConfig_ == null ? + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance() : assetDiscoveryConfig_; } } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .Builder, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings - .AssetDiscoveryConfigOrBuilder> + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder> getAssetDiscoveryConfigFieldBuilder() { if (assetDiscoveryConfigBuilder_ == null) { - assetDiscoveryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - .Builder, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings - .AssetDiscoveryConfigOrBuilder>( - getAssetDiscoveryConfig(), getParentForChildren(), isClean()); + assetDiscoveryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder>( + getAssetDiscoveryConfig(), + getParentForChildren(), + isClean()); assetDiscoveryConfig_ = null; } return assetDiscoveryConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2265,13 +1921,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.OrganizationSettings) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.OrganizationSettings) - private static final com.google.cloud.securitycenter.v1beta1.OrganizationSettings - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1beta1.OrganizationSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.OrganizationSettings(); } @@ -2280,16 +1935,16 @@ public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrganizationSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrganizationSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrganizationSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OrganizationSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2304,4 +1959,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsName.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsName.java diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOrBuilder.java similarity index 59% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOrBuilder.java index ceb1dcb6f..1fc1d7570 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/organization_settings.proto package com.google.cloud.securitycenter.v1beta1; -public interface OrganizationSettingsOrBuilder - extends +public interface OrganizationSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.OrganizationSettings) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -34,13 +16,10 @@ public interface OrganizationSettingsOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -49,14 +28,12 @@ public interface OrganizationSettingsOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A flag that indicates if Asset Discovery should be enabled. If the flag is
    * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -65,51 +42,34 @@ public interface OrganizationSettingsOrBuilder
    * 
* * bool enable_asset_discovery = 2; - * * @return The enableAssetDiscovery. */ boolean getEnableAssetDiscovery(); /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * @return Whether the assetDiscoveryConfig field is set. */ boolean hasAssetDiscoveryConfig(); /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * @return The assetDiscoveryConfig. */ - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - getAssetDiscoveryConfig(); + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig(); /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder - getAssetDiscoveryConfigOrBuilder(); + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java new file mode 100644 index 000000000..90aa8d111 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java @@ -0,0 +1,86 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1beta1/organization_settings.proto + +package com.google.cloud.securitycenter.v1beta1; + +public final class OrganizationSettingsOuterClass { + private OrganizationSettingsOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n?google/cloud/securitycenter/v1beta1/or" + + "ganization_settings.proto\022#google.cloud." + + "securitycenter.v1beta1\032\031google/api/resou" + + "rce.proto\032\034google/api/annotations.proto\"" + + "\224\004\n\024OrganizationSettings\022\014\n\004name\030\001 \001(\t\022\036" + + "\n\026enable_asset_discovery\030\002 \001(\010\022n\n\026asset_" + + "discovery_config\030\003 \001(\0132N.google.cloud.se" + + "curitycenter.v1beta1.OrganizationSetting" + + "s.AssetDiscoveryConfig\032\361\001\n\024AssetDiscover" + + "yConfig\022\023\n\013project_ids\030\001 \003(\t\022t\n\016inclusio" + + "n_mode\030\002 \001(\0162\\.google.cloud.securitycent" + + "er.v1beta1.OrganizationSettings.AssetDis" + + "coveryConfig.InclusionMode\"N\n\rInclusionM" + + "ode\022\036\n\032INCLUSION_MODE_UNSPECIFIED\020\000\022\020\n\014I" + + "NCLUDE_ONLY\020\001\022\013\n\007EXCLUDE\020\002:j\352Ag\n2securit" + + "ycenter.googleapis.com/OrganizationSetti" + + "ngs\0221organizations/{organization}/organi" + + "zationSettingsB~\n\'com.google.cloud.secur" + + "itycenter.v1beta1P\001ZQgoogle.golang.org/g" + + "enproto/googleapis/cloud/securitycenter/" + + "v1beta1;securitycenterb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor, + new java.lang.String[] { "Name", "EnableAssetDiscovery", "AssetDiscoveryConfig", }); + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor = + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor, + new java.lang.String[] { "ProjectIds", "InclusionMode", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java similarity index 65% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java index 3a4b88495..dba202e53 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Request message for running asset discovery for an organization.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest} */ -public final class RunAssetDiscoveryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RunAssetDiscoveryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) RunAssetDiscoveryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RunAssetDiscoveryRequest.newBuilder() to construct. private RunAssetDiscoveryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RunAssetDiscoveryRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RunAssetDiscoveryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RunAssetDiscoveryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private RunAssetDiscoveryRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parent_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private RunAssetDiscoveryRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.class, - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.class, com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the organization to run asset discovery for. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Name of the organization to run asset discovery for. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest other = - (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) obj; + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest other = (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for running asset discovery for an organization.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.class, - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.class, com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest build() @java.lang.Override public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest result = - new com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest(this); + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest result = new com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -412,50 +374,46 @@ public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest other) { - if (other - == com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest other) { + if (other == com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -479,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -518,24 +470,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -543,77 +492,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -623,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) - private static final com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest(); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunAssetDiscoveryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunAssetDiscoveryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunAssetDiscoveryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunAssetDiscoveryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java new file mode 100644 index 000000000..50ed85564 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1beta1; + +public interface RunAssetDiscoveryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the organization to run asset discovery for. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Name of the organization to run asset discovery for. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java similarity index 68% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java index 19bffb91e..7cb7a4321 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Response of asset discovery run
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse} */ -public final class RunAssetDiscoveryResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RunAssetDiscoveryResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) RunAssetDiscoveryResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RunAssetDiscoveryResponse.newBuilder() to construct. private RunAssetDiscoveryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RunAssetDiscoveryResponse() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RunAssetDiscoveryResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RunAssetDiscoveryResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,35 +53,32 @@ private RunAssetDiscoveryResponse( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; + state_ = rawValue; + break; + } + case 18: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (duration_ != null) { - subBuilder = duration_.toBuilder(); - } - duration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(duration_); - duration_ = subBuilder.buildPartial(); - } - - break; + duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,41 +86,36 @@ private RunAssetDiscoveryResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass - .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass - .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.class, - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.class, com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.Builder.class); } /** - * - * *
    * The state of an asset discovery run.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Asset discovery run state was unspecified.
      * 
@@ -149,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Asset discovery run completed successfully.
      * 
@@ -159,8 +132,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ COMPLETED(1), /** - * - * *
      * Asset discovery run was cancelled with tasks still pending, as another
      * run for the same organization was started with a higher priority.
@@ -170,8 +141,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     SUPERSEDED(2),
     /**
-     *
-     *
      * 
      * Asset discovery run was killed and terminated.
      * 
@@ -183,8 +152,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Asset discovery run state was unspecified.
      * 
@@ -193,8 +160,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Asset discovery run completed successfully.
      * 
@@ -203,8 +168,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPLETED_VALUE = 1; /** - * - * *
      * Asset discovery run was cancelled with tasks still pending, as another
      * run for the same organization was started with a higher priority.
@@ -214,8 +177,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SUPERSEDED_VALUE = 2;
     /**
-     *
-     *
      * 
      * Asset discovery run was killed and terminated.
      * 
@@ -224,6 +185,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TERMINATED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -248,53 +210,50 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return COMPLETED; - case 2: - return SUPERSEDED; - case 3: - return TERMINATED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return COMPLETED; + case 2: return SUPERSEDED; + case 3: return TERMINATED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -314,52 +273,38 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** - * - * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State getState() { + @java.lang.Override public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State result = - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.valueOf(state_); - return result == null - ? com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State result = com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.valueOf(state_); + return result == null ? com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.UNRECOGNIZED : result; } public static final int DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration duration_; /** - * - * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; - * * @return Whether the duration field is set. */ @java.lang.Override @@ -367,14 +312,11 @@ public boolean hasDuration() { return duration_ != null; } /** - * - * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; - * * @return The duration. */ @java.lang.Override @@ -382,8 +324,6 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** - * - * *
    * The duration between asset discovery run start and end
    * 
@@ -396,7 +336,6 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -408,10 +347,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (duration_ != null) { @@ -426,13 +364,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDuration()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -442,18 +380,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse other = - (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) obj; + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse other = (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) obj; if (state_ != other.state_) return false; if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration().equals(other.getDuration())) return false; + if (!getDuration() + .equals(other.getDuration())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -478,145 +416,134 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response of asset discovery run
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass - .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass - .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.class, - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.class, com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.newBuilder() + // Construct using com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -632,14 +559,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass - .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.getDefaultInstance(); } @@ -654,8 +580,7 @@ public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse build() @java.lang.Override public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse buildPartial() { - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse result = - new com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse(this); + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse result = new com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse(this); result.state_ = state_; if (durationBuilder_ == null) { result.duration_ = duration_; @@ -670,50 +595,46 @@ public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse other) { - if (other - == com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse other) { + if (other == com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -739,9 +660,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -753,93 +672,73 @@ public Builder mergeFrom( private int state_ = 0; /** - * - * *
      * The state of an asset discovery run.
      * 
* * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of an asset discovery run.
      * 
* * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The state of an asset discovery run.
      * 
* * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State result = - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.valueOf(state_); - return result == null - ? com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State result = com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.valueOf(state_); + return result == null ? com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of an asset discovery run.
      * 
* * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State value) { + public Builder setState(com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of an asset discovery run.
      * 
* * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -847,33 +746,24 @@ public Builder clearState() { private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - durationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; /** - * - * *
      * The duration between asset discovery run start and end
      * 
* * .google.protobuf.Duration duration = 2; - * * @return Whether the duration field is set. */ public boolean hasDuration() { return durationBuilder_ != null || duration_ != null; } /** - * - * *
      * The duration between asset discovery run start and end
      * 
* * .google.protobuf.Duration duration = 2; - * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -884,8 +774,6 @@ public com.google.protobuf.Duration getDuration() { } } /** - * - * *
      * The duration between asset discovery run start and end
      * 
@@ -906,15 +794,14 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * The duration between asset discovery run start and end
      * 
* * .google.protobuf.Duration duration = 2; */ - public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); onChanged(); @@ -925,8 +812,6 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
      * The duration between asset discovery run start and end
      * 
@@ -937,7 +822,7 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (duration_ != null) { duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); } else { duration_ = value; } @@ -949,8 +834,6 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * The duration between asset discovery run start and end
      * 
@@ -969,8 +852,6 @@ public Builder clearDuration() { return this; } /** - * - * *
      * The duration between asset discovery run start and end
      * 
@@ -978,13 +859,11 @@ public Builder clearDuration() { * .google.protobuf.Duration duration = 2; */ public com.google.protobuf.Duration.Builder getDurationBuilder() { - + onChanged(); return getDurationFieldBuilder().getBuilder(); } /** - * - * *
      * The duration between asset discovery run start and end
      * 
@@ -995,12 +874,11 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** - * - * *
      * The duration between asset discovery run start and end
      * 
@@ -1008,24 +886,21 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { * .google.protobuf.Duration duration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDuration(), getParentForChildren(), isClean()); + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); duration_ = null; } return durationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1035,32 +910,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) - private static final com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse(); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunAssetDiscoveryResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunAssetDiscoveryResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunAssetDiscoveryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunAssetDiscoveryResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1072,8 +945,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOrBuilder.java index ed1a0229a..fe5bcc887 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOrBuilder.java @@ -1,80 +1,50 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto package com.google.cloud.securitycenter.v1beta1; -public interface RunAssetDiscoveryResponseOrBuilder - extends +public interface RunAssetDiscoveryResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; - * * @return The state. */ com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State getState(); /** - * - * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; - * * @return Whether the duration field is set. */ boolean hasDuration(); /** - * - * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; - * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** - * - * *
    * The duration between asset discovery run start and end
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOuterClass.java new file mode 100644 index 000000000..31e5906af --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOuterClass.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto + +package com.google.cloud.securitycenter.v1beta1; + +public final class RunAssetDiscoveryResponseOuterClass { + private RunAssetDiscoveryResponseOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nFgoogle/cloud/securitycenter/v1beta1/ru" + + "n_asset_discovery_response.proto\022#google" + + ".cloud.securitycenter.v1beta1\032\036google/pr" + + "otobuf/duration.proto\032\034google/api/annota" + + "tions.proto\"\354\001\n\031RunAssetDiscoveryRespons" + + "e\022S\n\005state\030\001 \001(\0162D.google.cloud.security" + + "center.v1beta1.RunAssetDiscoveryResponse" + + ".State\022+\n\010duration\030\002 \001(\0132\031.google.protob" + + "uf.Duration\"M\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\r\n\tCOMPLETED\020\001\022\016\n\nSUPERSEDED\020\002\022\016\n\nTE" + + "RMINATED\020\003B~\n\'com.google.cloud.securityc" + + "enter.v1beta1P\001ZQgoogle.golang.org/genpr" + + "oto/googleapis/cloud/securitycenter/v1be" + + "ta1;securitycenterb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor, + new java.lang.String[] { "State", "Duration", }); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java similarity index 69% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java index 8a49c5a33..a80e72d8f 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/security_marks.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * User specified security marks that are attached to the parent Security
  * Command Center resource. Security marks are scoped within a Security Command
@@ -30,31 +13,31 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1beta1.SecurityMarks}
  */
-public final class SecurityMarks extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SecurityMarks extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.SecurityMarks)
     SecurityMarksOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SecurityMarks.newBuilder() to construct.
   private SecurityMarks(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SecurityMarks() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SecurityMarks();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SecurityMarks(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,33 +57,32 @@ private SecurityMarks(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                marks_ =
-                    com.google.protobuf.MapField.newMapField(MarksDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry marks__ =
-                  input.readMessage(
-                      MarksDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              marks_.getMutableMap().put(marks__.getKey(), marks__.getValue());
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              marks_ = com.google.protobuf.MapField.newMapField(
+                  MarksDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            com.google.protobuf.MapEntry
+            marks__ = input.readMessage(
+                MarksDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            marks_.getMutableMap().put(
+                marks__.getKey(), marks__.getValue());
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -108,44 +90,41 @@ private SecurityMarks(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass
-        .internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 2:
         return internalGetMarks();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass
-        .internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1beta1.SecurityMarks.class,
-            com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder.class);
+            com.google.cloud.securitycenter.v1beta1.SecurityMarks.class, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -155,7 +134,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -164,15 +142,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -182,15 +159,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -199,23 +177,24 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int MARKS_FIELD_NUMBER = 2; - private static final class MarksDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass - .internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField marks_; - - private com.google.protobuf.MapField internalGetMarks() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> marks_; + private com.google.protobuf.MapField + internalGetMarks() { if (marks_ == null) { - return com.google.protobuf.MapField.emptyMapField(MarksDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MarksDefaultEntryHolder.defaultEntry); } return marks_; } @@ -224,8 +203,6 @@ public int getMarksCount() { return internalGetMarks().getMap().size(); } /** - * - * *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -238,22 +215,22 @@ public int getMarksCount() {
    *
    * map<string, string> marks = 2;
    */
+
   @java.lang.Override
-  public boolean containsMarks(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsMarks(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetMarks().getMap().containsKey(key);
   }
-  /** Use {@link #getMarksMap()} instead. */
+  /**
+   * Use {@link #getMarksMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMarks() {
     return getMarksMap();
   }
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -267,12 +244,11 @@ public java.util.Map getMarks() {
    * map<string, string> marks = 2;
    */
   @java.lang.Override
+
   public java.util.Map getMarksMap() {
     return internalGetMarks().getMap();
   }
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -286,16 +262,16 @@ public java.util.Map getMarksMap() {
    * map<string, string> marks = 2;
    */
   @java.lang.Override
-  public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetMarks().getMap();
+
+  public java.lang.String getMarksOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetMarks().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -309,11 +285,12 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String
    * map<string, string> marks = 2;
    */
   @java.lang.Override
-  public java.lang.String getMarksOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetMarks().getMap();
+
+  public java.lang.String getMarksOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetMarks().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -321,7 +298,6 @@ public java.lang.String getMarksOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -333,12 +309,17 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetMarks(), MarksDefaultEntryHolder.defaultEntry, 2);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetMarks(),
+        MarksDefaultEntryHolder.defaultEntry,
+        2);
     unknownFields.writeTo(output);
   }
 
@@ -351,15 +332,15 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
-    for (java.util.Map.Entry entry :
-        internalGetMarks().getMap().entrySet()) {
-      com.google.protobuf.MapEntry marks__ =
-          MarksDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, marks__);
+    for (java.util.Map.Entry entry
+         : internalGetMarks().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      marks__ = MarksDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, marks__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -369,16 +350,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.SecurityMarks)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1beta1.SecurityMarks other =
-        (com.google.cloud.securitycenter.v1beta1.SecurityMarks) obj;
+    com.google.cloud.securitycenter.v1beta1.SecurityMarks other = (com.google.cloud.securitycenter.v1beta1.SecurityMarks) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!internalGetMarks().equals(other.internalGetMarks())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!internalGetMarks().equals(
+        other.internalGetMarks())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -402,104 +384,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.securitycenter.v1beta1.SecurityMarks prototype) {
+  public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.SecurityMarks prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * User specified security marks that are attached to the parent Security
    * Command Center resource. Security marks are scoped within a Security Command
@@ -509,43 +483,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1beta1.SecurityMarks}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.SecurityMarks)
       com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass
-          .internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 2:
           return internalGetMarks();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 2:
           return internalGetMutableMarks();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass
-          .internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1beta1.SecurityMarks.class,
-              com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder.class);
+              com.google.cloud.securitycenter.v1beta1.SecurityMarks.class, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1beta1.SecurityMarks.newBuilder()
@@ -553,15 +527,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -572,9 +547,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass
-          .internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor;
     }
 
     @java.lang.Override
@@ -593,8 +568,7 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1beta1.SecurityMarks buildPartial() {
-      com.google.cloud.securitycenter.v1beta1.SecurityMarks result =
-          new com.google.cloud.securitycenter.v1beta1.SecurityMarks(this);
+      com.google.cloud.securitycenter.v1beta1.SecurityMarks result = new com.google.cloud.securitycenter.v1beta1.SecurityMarks(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.marks_ = internalGetMarks();
@@ -607,39 +581,38 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1beta1.SecurityMarks) {
-        return mergeFrom((com.google.cloud.securitycenter.v1beta1.SecurityMarks) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1beta1.SecurityMarks)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -647,13 +620,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.SecurityMarks other) {
-      if (other == com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
       }
-      internalGetMutableMarks().mergeFrom(other.internalGetMarks());
+      internalGetMutableMarks().mergeFrom(
+          other.internalGetMarks());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -673,8 +646,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.securitycenter.v1beta1.SecurityMarks) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.securitycenter.v1beta1.SecurityMarks) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -683,13 +655,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -699,13 +668,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -714,8 +683,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -725,14 +692,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -740,8 +708,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -751,22 +717,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -776,18 +740,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -797,36 +758,37 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField marks_; - - private com.google.protobuf.MapField internalGetMarks() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> marks_; + private com.google.protobuf.MapField + internalGetMarks() { if (marks_ == null) { - return com.google.protobuf.MapField.emptyMapField(MarksDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MarksDefaultEntryHolder.defaultEntry); } return marks_; } - private com.google.protobuf.MapField - internalGetMutableMarks() { - onChanged(); - ; + internalGetMutableMarks() { + onChanged();; if (marks_ == null) { - marks_ = com.google.protobuf.MapField.newMapField(MarksDefaultEntryHolder.defaultEntry); + marks_ = com.google.protobuf.MapField.newMapField( + MarksDefaultEntryHolder.defaultEntry); } if (!marks_.isMutable()) { marks_ = marks_.copy(); @@ -838,8 +800,6 @@ public int getMarksCount() { return internalGetMarks().getMap().size(); } /** - * - * *
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -852,22 +812,22 @@ public int getMarksCount() {
      *
      * map<string, string> marks = 2;
      */
+
     @java.lang.Override
-    public boolean containsMarks(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsMarks(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetMarks().getMap().containsKey(key);
     }
-    /** Use {@link #getMarksMap()} instead. */
+    /**
+     * Use {@link #getMarksMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMarks() {
       return getMarksMap();
     }
     /**
-     *
-     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -881,12 +841,11 @@ public java.util.Map getMarks() {
      * map<string, string> marks = 2;
      */
     @java.lang.Override
+
     public java.util.Map getMarksMap() {
       return internalGetMarks().getMap();
     }
     /**
-     *
-     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -900,16 +859,16 @@ public java.util.Map getMarksMap() {
      * map<string, string> marks = 2;
      */
     @java.lang.Override
-    public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetMarks().getMap();
+
+    public java.lang.String getMarksOrDefault(
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetMarks().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -923,11 +882,12 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String
      * map<string, string> marks = 2;
      */
     @java.lang.Override
-    public java.lang.String getMarksOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetMarks().getMap();
+
+    public java.lang.String getMarksOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetMarks().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -935,12 +895,11 @@ public java.lang.String getMarksOrThrow(java.lang.String key) {
     }
 
     public Builder clearMarks() {
-      internalGetMutableMarks().getMutableMap().clear();
+      internalGetMutableMarks().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -953,21 +912,23 @@ public Builder clearMarks() {
      *
      * map<string, string> marks = 2;
      */
-    public Builder removeMarks(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableMarks().getMutableMap().remove(key);
+
+    public Builder removeMarks(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableMarks().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableMarks() {
+    public java.util.Map
+    getMutableMarks() {
       return internalGetMutableMarks().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -980,20 +941,19 @@ public java.util.Map getMutableMarks() {
      *
      * map<string, string> marks = 2;
      */
-    public Builder putMarks(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putMarks(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableMarks().getMutableMap().put(key, value);
+      internalGetMutableMarks().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -1006,13 +966,16 @@ public Builder putMarks(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> marks = 2;
      */
-    public Builder putAllMarks(java.util.Map values) {
-      internalGetMutableMarks().getMutableMap().putAll(values);
+
+    public Builder putAllMarks(
+        java.util.Map values) {
+      internalGetMutableMarks().getMutableMap()
+          .putAll(values);
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1022,12 +985,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.SecurityMarks)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.SecurityMarks)
   private static final com.google.cloud.securitycenter.v1beta1.SecurityMarks DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.SecurityMarks();
   }
@@ -1036,16 +999,16 @@ public static com.google.cloud.securitycenter.v1beta1.SecurityMarks getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SecurityMarks parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new SecurityMarks(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SecurityMarks parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new SecurityMarks(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1060,4 +1023,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.securitycenter.v1beta1.SecurityMarks getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOrBuilder.java
similarity index 77%
rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOrBuilder.java
index 3e61920e9..cff945db7 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1beta1/security_marks.proto
 
 package com.google.cloud.securitycenter.v1beta1;
 
-public interface SecurityMarksOrBuilder
-    extends
+public interface SecurityMarksOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.SecurityMarks)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -35,13 +17,10 @@ public interface SecurityMarksOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -51,14 +30,12 @@ public interface SecurityMarksOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -73,8 +50,6 @@ public interface SecurityMarksOrBuilder
    */
   int getMarksCount();
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -87,13 +62,15 @@ public interface SecurityMarksOrBuilder
    *
    * map<string, string> marks = 2;
    */
-  boolean containsMarks(java.lang.String key);
-  /** Use {@link #getMarksMap()} instead. */
+  boolean containsMarks(
+      java.lang.String key);
+  /**
+   * Use {@link #getMarksMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getMarks();
+  java.util.Map
+  getMarks();
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -106,10 +83,9 @@ public interface SecurityMarksOrBuilder
    *
    * map<string, string> marks = 2;
    */
-  java.util.Map getMarksMap();
+  java.util.Map
+  getMarksMap();
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -124,13 +100,11 @@ public interface SecurityMarksOrBuilder
    */
 
   /* nullable */
-  java.lang.String getMarksOrDefault(
+java.lang.String getMarksOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -143,5 +117,7 @@ java.lang.String getMarksOrDefault(
    *
    * map<string, string> marks = 2;
    */
-  java.lang.String getMarksOrThrow(java.lang.String key);
+
+  java.lang.String getMarksOrThrow(
+      java.lang.String key);
 }
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java
new file mode 100644
index 000000000..6923ef366
--- /dev/null
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java
@@ -0,0 +1,81 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/securitycenter/v1beta1/security_marks.proto
+
+package com.google.cloud.securitycenter.v1beta1;
+
+public final class SecurityMarksOuterClass {
+  private SecurityMarksOuterClass() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n8google/cloud/securitycenter/v1beta1/se" +
+      "curity_marks.proto\022#google.cloud.securit" +
+      "ycenter.v1beta1\032\031google/api/resource.pro" +
+      "to\032\034google/api/annotations.proto\"\330\002\n\rSec" +
+      "urityMarks\022\014\n\004name\030\001 \001(\t\022L\n\005marks\030\002 \003(\0132" +
+      "=.google.cloud.securitycenter.v1beta1.Se" +
+      "curityMarks.MarksEntry\032,\n\nMarksEntry\022\013\n\003" +
+      "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\274\001\352A\270\001\n+sec" +
+      "uritycenter.googleapis.com/SecurityMarks" +
+      "\0229organizations/{organization}/assets/{a" +
+      "sset}/securityMarks\022Norganizations/{orga" +
+      "nization}/sources/{source}/findings/{fin" +
+      "ding}/securityMarksB~\n\'com.google.cloud." +
+      "securitycenter.v1beta1P\001ZQgoogle.golang." +
+      "org/genproto/googleapis/cloud/securityce" +
+      "nter/v1beta1;securitycenterb\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.api.AnnotationsProto.getDescriptor(),
+        });
+    internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor,
+        new java.lang.String[] { "Name", "Marks", });
+    internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_descriptor =
+      internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.api.AnnotationsProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java
new file mode 100644
index 000000000..b1013b358
--- /dev/null
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java
@@ -0,0 +1,554 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto
+
+package com.google.cloud.securitycenter.v1beta1;
+
+public final class SecuritycenterService {
+  private SecuritycenterService() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_GroupResult_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_GroupResult_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_GroupResult_PropertiesEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_GroupResult_PropertiesEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n@google/cloud/securitycenter/v1beta1/se" +
+      "curitycenter_service.proto\022#google.cloud" +
+      ".securitycenter.v1beta1\032\034google/api/anno" +
+      "tations.proto\032\027google/api/client.proto\032\037" +
+      "google/api/field_behavior.proto\032\031google/" +
+      "api/resource.proto\032/google/cloud/securit" +
+      "ycenter/v1beta1/asset.proto\0321google/clou" +
+      "d/securitycenter/v1beta1/finding.proto\032?" +
+      "google/cloud/securitycenter/v1beta1/orga" +
+      "nization_settings.proto\0328google/cloud/se" +
+      "curitycenter/v1beta1/security_marks.prot" +
+      "o\0320google/cloud/securitycenter/v1beta1/s" +
+      "ource.proto\032\036google/iam/v1/iam_policy.pr" +
+      "oto\032\032google/iam/v1/policy.proto\032#google/" +
+      "longrunning/operations.proto\032\036google/pro" +
+      "tobuf/duration.proto\032\033google/protobuf/em" +
+      "pty.proto\032 google/protobuf/field_mask.pr" +
+      "oto\032\034google/protobuf/struct.proto\032\037googl" +
+      "e/protobuf/timestamp.proto\"\261\001\n\024CreateFin" +
+      "dingRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$sec" +
+      "uritycenter.googleapis.com/Source\022\027\n\nfin" +
+      "ding_id\030\002 \001(\tB\003\340A\002\022B\n\007finding\030\003 \001(\0132,.go" +
+      "ogle.cloud.securitycenter.v1beta1.Findin" +
+      "gB\003\340A\002\"\241\001\n\023CreateSourceRequest\022H\n\006parent" +
+      "\030\001 \001(\tB8\340A\002\372A2\n0cloudresourcemanager.goo" +
+      "gleapis.com/Organization\022@\n\006source\030\002 \001(\013" +
+      "2+.google.cloud.securitycenter.v1beta1.S" +
+      "ourceB\003\340A\002\"j\n\036GetOrganizationSettingsReq" +
+      "uest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2securitycent" +
+      "er.googleapis.com/OrganizationSettings\"N" +
+      "\n\020GetSourceRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&" +
+      "\n$securitycenter.googleapis.com/Source\"\220" +
+      "\002\n\022GroupAssetsRequest\022H\n\006parent\030\001 \001(\tB8\340" +
+      "A\002\372A2\n0cloudresourcemanager.googleapis.c" +
+      "om/Organization\022\016\n\006filter\030\002 \001(\t\022\025\n\010group" +
+      "_by\030\003 \001(\tB\003\340A\002\0223\n\020compare_duration\030\004 \001(\013" +
+      "2\031.google.protobuf.Duration\022-\n\tread_time" +
+      "\030\005 \001(\0132\032.google.protobuf.Timestamp\022\022\n\npa" +
+      "ge_token\030\007 \001(\t\022\021\n\tpage_size\030\010 \001(\005\"\251\001\n\023Gr" +
+      "oupAssetsResponse\022J\n\020group_by_results\030\001 " +
+      "\003(\01320.google.cloud.securitycenter.v1beta" +
+      "1.GroupResult\022-\n\tread_time\030\002 \001(\0132\032.googl" +
+      "e.protobuf.Timestamp\022\027\n\017next_page_token\030" +
+      "\003 \001(\t\"\321\001\n\024GroupFindingsRequest\022<\n\006parent" +
+      "\030\001 \001(\tB,\340A\002\372A&\n$securitycenter.googleapi" +
+      "s.com/Source\022\016\n\006filter\030\002 \001(\t\022\025\n\010group_by" +
+      "\030\003 \001(\tB\003\340A\002\022-\n\tread_time\030\004 \001(\0132\032.google." +
+      "protobuf.Timestamp\022\022\n\npage_token\030\005 \001(\t\022\021" +
+      "\n\tpage_size\030\006 \001(\005\"\253\001\n\025GroupFindingsRespo" +
+      "nse\022J\n\020group_by_results\030\001 \003(\01320.google.c" +
+      "loud.securitycenter.v1beta1.GroupResult\022" +
+      "-\n\tread_time\030\002 \001(\0132\032.google.protobuf.Tim" +
+      "estamp\022\027\n\017next_page_token\030\003 \001(\t\"\275\001\n\013Grou" +
+      "pResult\022T\n\nproperties\030\001 \003(\0132@.google.clo" +
+      "ud.securitycenter.v1beta1.GroupResult.Pr" +
+      "opertiesEntry\022\r\n\005count\030\002 \001(\003\032I\n\017Properti" +
+      "esEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.go" +
+      "ogle.protobuf.Value:\0028\001\"\205\001\n\022ListSourcesR" +
+      "equest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0cloudres" +
+      "ourcemanager.googleapis.com/Organization" +
+      "\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\007 \001(\005\"" +
+      "l\n\023ListSourcesResponse\022<\n\007sources\030\001 \003(\0132" +
+      "+.google.cloud.securitycenter.v1beta1.So" +
+      "urce\022\027\n\017next_page_token\030\002 \001(\t\"\277\002\n\021ListAs" +
+      "setsRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0clo" +
+      "udresourcemanager.googleapis.com/Organiz" +
+      "ation\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022" +
+      "-\n\tread_time\030\004 \001(\0132\032.google.protobuf.Tim" +
+      "estamp\0223\n\020compare_duration\030\005 \001(\0132\031.googl" +
+      "e.protobuf.Duration\0223\n\nfield_mask\030\007 \001(\0132" +
+      "\032.google.protobuf.FieldMaskB\003\340A\001\022\022\n\npage" +
+      "_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"\326\003\n\022List" +
+      "AssetsResponse\022e\n\023list_assets_results\030\001 " +
+      "\003(\0132H.google.cloud.securitycenter.v1beta" +
+      "1.ListAssetsResponse.ListAssetsResult\022-\n" +
+      "\tread_time\030\002 \001(\0132\032.google.protobuf.Times" +
+      "tamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_s" +
+      "ize\030\004 \001(\005\032\374\001\n\020ListAssetsResult\0229\n\005asset\030" +
+      "\001 \001(\0132*.google.cloud.securitycenter.v1be" +
+      "ta1.Asset\022]\n\005state\030\002 \001(\0162N.google.cloud." +
+      "securitycenter.v1beta1.ListAssetsRespons" +
+      "e.ListAssetsResult.State\"N\n\005State\022\025\n\021STA" +
+      "TE_UNSPECIFIED\020\000\022\n\n\006UNUSED\020\001\022\t\n\005ADDED\020\002\022" +
+      "\013\n\007REMOVED\020\003\022\n\n\006ACTIVE\020\004\"\200\002\n\023ListFinding" +
+      "sRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$securi" +
+      "tycenter.googleapis.com/Source\022\016\n\006filter" +
+      "\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\tread_time\030\004 " +
+      "\001(\0132\032.google.protobuf.Timestamp\0223\n\nfield" +
+      "_mask\030\005 \001(\0132\032.google.protobuf.FieldMaskB" +
+      "\003\340A\001\022\022\n\npage_token\030\006 \001(\t\022\021\n\tpage_size\030\007 " +
+      "\001(\005\"\262\001\n\024ListFindingsResponse\022>\n\010findings" +
+      "\030\001 \003(\0132,.google.cloud.securitycenter.v1b" +
+      "eta1.Finding\022-\n\tread_time\030\002 \001(\0132\032.google" +
+      ".protobuf.Timestamp\022\027\n\017next_page_token\030\003" +
+      " \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\322\001\n\026SetFindingS" +
+      "tateRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%secur" +
+      "itycenter.googleapis.com/Finding\022F\n\005stat" +
+      "e\030\002 \001(\01622.google.cloud.securitycenter.v1" +
+      "beta1.Finding.StateB\003\340A\002\0223\n\nstart_time\030\003" +
+      " \001(\0132\032.google.protobuf.TimestampB\003\340A\002\"d\n" +
+      "\030RunAssetDiscoveryRequest\022H\n\006parent\030\001 \001(" +
+      "\tB8\340A\002\372A2\n0cloudresourcemanager.googleap" +
+      "is.com/Organization\"\213\001\n\024UpdateFindingReq" +
+      "uest\022B\n\007finding\030\001 \001(\0132,.google.cloud.sec" +
+      "uritycenter.v1beta1.FindingB\003\340A\002\022/\n\013upda" +
+      "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" +
+      "k\"\263\001\n!UpdateOrganizationSettingsRequest\022" +
+      "]\n\025organization_settings\030\001 \001(\01329.google." +
+      "cloud.securitycenter.v1beta1.Organizatio" +
+      "nSettingsB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.go" +
+      "ogle.protobuf.FieldMask\"\210\001\n\023UpdateSource" +
+      "Request\022@\n\006source\030\001 \001(\0132+.google.cloud.s" +
+      "ecuritycenter.v1beta1.SourceB\003\340A\002\022/\n\013upd" +
+      "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" +
+      "sk\"\316\001\n\032UpdateSecurityMarksRequest\022O\n\016sec" +
+      "urity_marks\030\001 \001(\01322.google.cloud.securit" +
+      "ycenter.v1beta1.SecurityMarksB\003\340A\002\022/\n\013up" +
+      "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" +
+      "ask\022.\n\nstart_time\030\003 \001(\0132\032.google.protobu" +
+      "f.Timestamp2\353\036\n\016SecurityCenter\022\300\001\n\014Creat" +
+      "eSource\0228.google.cloud.securitycenter.v1" +
+      "beta1.CreateSourceRequest\032+.google.cloud" +
+      ".securitycenter.v1beta1.Source\"I\202\323\344\223\0023\")" +
+      "/v1beta1/{parent=organizations/*}/source" +
+      "s:\006source\332A\rparent,source\022\333\001\n\rCreateFind" +
+      "ing\0229.google.cloud.securitycenter.v1beta" +
+      "1.CreateFindingRequest\032,.google.cloud.se" +
+      "curitycenter.v1beta1.Finding\"a\202\323\344\223\002?\"4/v" +
+      "1beta1/{parent=organizations/*/sources/*" +
+      "}/findings:\007finding\332A\031parent,finding_id," +
+      "finding\022\233\001\n\014GetIamPolicy\022\".google.iam.v1" +
+      ".GetIamPolicyRequest\032\025.google.iam.v1.Pol" +
+      "icy\"P\202\323\344\223\002?\":/v1beta1/{resource=organiza" +
+      "tions/*/sources/*}:getIamPolicy:\001*\332A\010res" +
+      "ource\022\336\001\n\027GetOrganizationSettings\022C.goog" +
+      "le.cloud.securitycenter.v1beta1.GetOrgan" +
+      "izationSettingsRequest\0329.google.cloud.se" +
+      "curitycenter.v1beta1.OrganizationSetting" +
+      "s\"C\202\323\344\223\0026\0224/v1beta1/{name=organizations/" +
+      "*/organizationSettings}\332A\004name\022\251\001\n\tGetSo" +
+      "urce\0225.google.cloud.securitycenter.v1bet" +
+      "a1.GetSourceRequest\032+.google.cloud.secur" +
+      "itycenter.v1beta1.Source\"8\202\323\344\223\002+\022)/v1bet" +
+      "a1/{name=organizations/*/sources/*}\332A\004na" +
+      "me\022\273\001\n\013GroupAssets\0227.google.cloud.securi" +
+      "tycenter.v1beta1.GroupAssetsRequest\0328.go" +
+      "ogle.cloud.securitycenter.v1beta1.GroupA" +
+      "ssetsResponse\"9\202\323\344\223\0023\"./v1beta1/{parent=" +
+      "organizations/*}/assets:group:\001*\022\337\001\n\rGro" +
+      "upFindings\0229.google.cloud.securitycenter" +
+      ".v1beta1.GroupFindingsRequest\032:.google.c" +
+      "loud.securitycenter.v1beta1.GroupFinding" +
+      "sResponse\"W\202\323\344\223\002?\":/v1beta1/{parent=orga" +
+      "nizations/*/sources/*}/findings:group:\001*" +
+      "\332A\017parent,group_by\022\257\001\n\nListAssets\0226.goog" +
+      "le.cloud.securitycenter.v1beta1.ListAsse" +
+      "tsRequest\0327.google.cloud.securitycenter." +
+      "v1beta1.ListAssetsResponse\"0\202\323\344\223\002*\022(/v1b" +
+      "eta1/{parent=organizations/*}/assets\022\301\001\n" +
+      "\014ListFindings\0228.google.cloud.securitycen" +
+      "ter.v1beta1.ListFindingsRequest\0329.google" +
+      ".cloud.securitycenter.v1beta1.ListFindin" +
+      "gsResponse\"<\202\323\344\223\0026\0224/v1beta1/{parent=org" +
+      "anizations/*/sources/*}/findings\022\274\001\n\013Lis" +
+      "tSources\0227.google.cloud.securitycenter.v" +
+      "1beta1.ListSourcesRequest\0328.google.cloud" +
+      ".securitycenter.v1beta1.ListSourcesRespo" +
+      "nse\":\202\323\344\223\002+\022)/v1beta1/{parent=organizati" +
+      "ons/*}/sources\332A\006parent\022\355\001\n\021RunAssetDisc" +
+      "overy\022=.google.cloud.securitycenter.v1be" +
+      "ta1.RunAssetDiscoveryRequest\032\035.google.lo" +
+      "ngrunning.Operation\"z\202\323\344\223\002:\"5/v1beta1/{p" +
+      "arent=organizations/*}/assets:runDiscove" +
+      "ry:\001*\332A\006parent\312A.\n\025google.protobuf.Empty" +
+      "\022\025google.protobuf.Empty\022\336\001\n\017SetFindingSt" +
+      "ate\022;.google.cloud.securitycenter.v1beta" +
+      "1.SetFindingStateRequest\032,.google.cloud." +
+      "securitycenter.v1beta1.Finding\"`\202\323\344\223\002B\"=" +
+      "/v1beta1/{name=organizations/*/sources/*" +
+      "/findings/*}:setState:\001*\332A\025name,state,st" +
+      "art_time\022\242\001\n\014SetIamPolicy\022\".google.iam.v" +
+      "1.SetIamPolicyRequest\032\025.google.iam.v1.Po" +
+      "licy\"W\202\323\344\223\002?\":/v1beta1/{resource=organiz" +
+      "ations/*/sources/*}:setIamPolicy:\001*\332A\017re" +
+      "source,policy\022\315\001\n\022TestIamPermissions\022(.g" +
+      "oogle.iam.v1.TestIamPermissionsRequest\032)" +
+      ".google.iam.v1.TestIamPermissionsRespons" +
+      "e\"b\202\323\344\223\002E\"@/v1beta1/{resource=organizati" +
+      "ons/*/sources/*}:testIamPermissions:\001*\332A" +
+      "\024resource,permissions\022\321\001\n\rUpdateFinding\022" +
+      "9.google.cloud.securitycenter.v1beta1.Up" +
+      "dateFindingRequest\032,.google.cloud.securi" +
+      "tycenter.v1beta1.Finding\"W\202\323\344\223\002G2
  * Request message for updating a finding's state.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.SetFindingStateRequest} */ -public final class SetFindingStateRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SetFindingStateRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.SetFindingStateRequest) SetFindingStateRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SetFindingStateRequest.newBuilder() to construct. private SetFindingStateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SetFindingStateRequest() { name_ = ""; state_ = 0; @@ -44,15 +26,16 @@ private SetFindingStateRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SetFindingStateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SetFindingStateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,42 +54,38 @@ private SetFindingStateRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; + state_ = rawValue; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - - break; + startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,33 +93,29 @@ private SetFindingStateRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.class, - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.class, com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -148,10 +123,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -160,15 +132,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -176,18 +147,17 @@ public java.lang.String getName() {
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -198,57 +168,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** - * - * *
    * Required. The desired State of the finding.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Required. The desired State of the finding.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The state. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.Finding.State getState() { + @java.lang.Override public com.google.cloud.securitycenter.v1beta1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1beta1.Finding.State result = - com.google.cloud.securitycenter.v1beta1.Finding.State.valueOf(state_); - return result == null - ? com.google.cloud.securitycenter.v1beta1.Finding.State.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1beta1.Finding.State result = com.google.cloud.securitycenter.v1beta1.Finding.State.valueOf(state_); + return result == null ? com.google.cloud.securitycenter.v1beta1.Finding.State.UNRECOGNIZED : result; } public static final int START_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the startTime field is set. */ @java.lang.Override @@ -256,15 +207,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The startTime. */ @java.lang.Override @@ -272,14 +219,11 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -287,7 +231,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -299,12 +242,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ - != com.google.cloud.securitycenter.v1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.securitycenter.v1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (startTime_ != null) { @@ -322,12 +265,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ - != com.google.cloud.securitycenter.v1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + if (state_ != com.google.cloud.securitycenter.v1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStartTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -337,19 +281,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest other = - (com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest) obj; + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest other = (com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -376,127 +321,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for updating a finding's state.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.SetFindingStateRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.SetFindingStateRequest) com.google.cloud.securitycenter.v1beta1.SetFindingStateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.class, - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.class, com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.newBuilder() @@ -504,15 +439,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -530,14 +466,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.getDefaultInstance(); } @@ -552,8 +487,7 @@ public com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest result = - new com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest(this); + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest result = new com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest(this); result.name_ = name_; result.state_ = state_; if (startTimeBuilder_ == null) { @@ -569,39 +503,38 @@ public com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest)other); } else { super.mergeFrom(other); return this; @@ -609,9 +542,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest other) { - if (other - == com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -641,9 +572,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -655,8 +584,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -664,16 +591,14 @@ public Builder mergeFrom(
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -682,8 +607,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -691,17 +614,16 @@ public java.lang.String getName() {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -709,8 +631,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -718,25 +638,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -744,21 +660,16 @@ public Builder setName(java.lang.String value) {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -766,19 +677,17 @@ public Builder clearName() {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -786,75 +695,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Required. The desired State of the finding.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Required. The desired State of the finding.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Required. The desired State of the finding.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The state. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1beta1.Finding.State result = - com.google.cloud.securitycenter.v1beta1.Finding.State.valueOf(state_); - return result == null - ? com.google.cloud.securitycenter.v1beta1.Finding.State.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1beta1.Finding.State result = com.google.cloud.securitycenter.v1beta1.Finding.State.valueOf(state_); + return result == null ? com.google.cloud.securitycenter.v1beta1.Finding.State.UNRECOGNIZED : result; } /** - * - * *
      * Required. The desired State of the finding.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The state to set. * @return This builder for chaining. */ @@ -862,26 +747,21 @@ public Builder setState(com.google.cloud.securitycenter.v1beta1.Finding.State va if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The desired State of the finding.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -889,35 +769,24 @@ public Builder clearState() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -928,14 +797,11 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -951,16 +817,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -971,20 +835,17 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -996,14 +857,11 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -1017,66 +875,55 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1086,32 +933,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.SetFindingStateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.SetFindingStateRequest) - private static final com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest(); } - public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetFindingStateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetFindingStateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetFindingStateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetFindingStateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1123,8 +968,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequestOrBuilder.java index 859bef668..9e1f70329 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface SetFindingStateRequestOrBuilder - extends +public interface SetFindingStateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.SetFindingStateRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -33,16 +15,11 @@ public interface SetFindingStateRequestOrBuilder
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -50,78 +27,55 @@ public interface SetFindingStateRequestOrBuilder
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The desired State of the finding.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Required. The desired State of the finding.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The state. */ com.google.cloud.securitycenter.v1beta1.Finding.State getState(); /** - * - * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java similarity index 76% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java index cdd7adf3f..cc7f903cd 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/source.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Security Command Center finding source. A finding source
  * is an entity or a mechanism that can produce a finding. A source is like a
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1beta1.Source}
  */
-public final class Source extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Source extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.Source)
     SourceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Source.newBuilder() to construct.
   private Source(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Source() {
     name_ = "";
     displayName_ = "";
@@ -47,15 +29,16 @@ private Source() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Source();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Source(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,34 +57,31 @@ private Source(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            displayName_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            description_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -109,33 +89,29 @@ private Source(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1beta1.SourceOuterClass
-        .internal_static_google_cloud_securitycenter_v1beta1_Source_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1beta1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Source_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1beta1.SourceOuterClass
-        .internal_static_google_cloud_securitycenter_v1beta1_Source_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1beta1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Source_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1beta1.Source.class,
-            com.google.cloud.securitycenter.v1beta1.Source.Builder.class);
+            com.google.cloud.securitycenter.v1beta1.Source.class, com.google.cloud.securitycenter.v1beta1.Source.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -144,7 +120,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -153,15 +128,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -170,15 +144,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -189,8 +164,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -200,7 +173,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -209,15 +181,14 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -227,15 +198,16 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -246,8 +218,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -259,7 +229,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -268,15 +237,14 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -288,15 +256,16 @@ public java.lang.String getDescription() {
    * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -305,7 +274,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,7 +285,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -353,17 +322,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.Source)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.Source other = - (com.google.cloud.securitycenter.v1beta1.Source) obj; + com.google.cloud.securitycenter.v1beta1.Source other = (com.google.cloud.securitycenter.v1beta1.Source) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -386,104 +357,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1beta1.Source parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1beta1.Source parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.Source parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.Source parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.Source parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.Source parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.Source parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.Source parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.Source parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.Source parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.Source parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.Source parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.Source parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.Source parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.Source prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Security Command Center finding source. A finding source
    * is an entity or a mechanism that can produce a finding. A source is like a
@@ -492,23 +456,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1beta1.Source}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.Source)
       com.google.cloud.securitycenter.v1beta1.SourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1beta1.SourceOuterClass
-          .internal_static_google_cloud_securitycenter_v1beta1_Source_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1beta1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Source_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1beta1.SourceOuterClass
-          .internal_static_google_cloud_securitycenter_v1beta1_Source_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1beta1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Source_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1beta1.Source.class,
-              com.google.cloud.securitycenter.v1beta1.Source.Builder.class);
+              com.google.cloud.securitycenter.v1beta1.Source.class, com.google.cloud.securitycenter.v1beta1.Source.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1beta1.Source.newBuilder()
@@ -516,15 +478,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -538,9 +501,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1beta1.SourceOuterClass
-          .internal_static_google_cloud_securitycenter_v1beta1_Source_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1beta1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Source_descriptor;
     }
 
     @java.lang.Override
@@ -559,8 +522,7 @@ public com.google.cloud.securitycenter.v1beta1.Source build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1beta1.Source buildPartial() {
-      com.google.cloud.securitycenter.v1beta1.Source result =
-          new com.google.cloud.securitycenter.v1beta1.Source(this);
+      com.google.cloud.securitycenter.v1beta1.Source result = new com.google.cloud.securitycenter.v1beta1.Source(this);
       result.name_ = name_;
       result.displayName_ = displayName_;
       result.description_ = description_;
@@ -572,39 +534,38 @@ public com.google.cloud.securitycenter.v1beta1.Source buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1beta1.Source) {
-        return mergeFrom((com.google.cloud.securitycenter.v1beta1.Source) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1beta1.Source)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -656,8 +617,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -666,13 +625,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -681,8 +640,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -691,14 +648,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -706,8 +664,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -716,22 +672,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -740,18 +694,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -760,16 +711,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -777,8 +728,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -788,13 +737,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -803,8 +752,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -814,14 +761,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -829,8 +777,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -840,22 +786,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -865,18 +809,15 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -886,16 +827,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -903,8 +844,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -916,13 +855,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -931,8 +870,6 @@ public java.lang.String getDescription() { } } /** - * - * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -944,14 +881,15 @@ public java.lang.String getDescription() {
      * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -959,8 +897,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -972,22 +908,20 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -999,18 +933,15 @@ public Builder setDescription(java.lang.String value) {
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -1022,23 +953,23 @@ public Builder clearDescription() {
      * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1048,12 +979,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.Source) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.Source) private static final com.google.cloud.securitycenter.v1beta1.Source DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.Source(); } @@ -1062,16 +993,16 @@ public static com.google.cloud.securitycenter.v1beta1.Source getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Source parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Source(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Source parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Source(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1086,4 +1017,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.Source getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceName.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceName.java diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java similarity index 76% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java index 71c8ad800..a375a84b3 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/source.proto package com.google.cloud.securitycenter.v1beta1; -public interface SourceOrBuilder - extends +public interface SourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.Source) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -34,13 +16,10 @@ public interface SourceOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -49,14 +28,12 @@ public interface SourceOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -66,13 +43,10 @@ public interface SourceOrBuilder
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -82,14 +56,12 @@ public interface SourceOrBuilder
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -101,13 +73,10 @@ public interface SourceOrBuilder
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -119,8 +88,8 @@ public interface SourceOrBuilder
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOuterClass.java new file mode 100644 index 000000000..ac52b7d73 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOuterClass.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1beta1/source.proto + +package com.google.cloud.securitycenter.v1beta1; + +public final class SourceOuterClass { + private SourceOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1beta1_Source_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1beta1_Source_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/securitycenter/v1beta1/so" + + "urce.proto\022#google.cloud.securitycenter." + + "v1beta1\032\031google/api/resource.proto\032\034goog" + + "le/api/annotations.proto\"\233\001\n\006Source\022\014\n\004n" + + "ame\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013descr" + + "iption\030\003 \001(\t:X\352AU\n$securitycenter.google" + + "apis.com/Source\022-organizations/{organiza" + + "tion}/sources/{source}B~\n\'com.google.clo" + + "ud.securitycenter.v1beta1P\001ZQgoogle.gola" + + "ng.org/genproto/googleapis/cloud/securit" + + "ycenter/v1beta1;securitycenterb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1beta1_Source_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1beta1_Source_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1beta1_Source_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Description", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java similarity index 69% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java index 87a2647b2..7e1fd800e 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Request message for updating or creating a finding.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.UpdateFindingRequest} */ -public final class UpdateFindingRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateFindingRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.UpdateFindingRequest) UpdateFindingRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateFindingRequest.newBuilder() to construct. private UpdateFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateFindingRequest() {} + private UpdateFindingRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateFindingRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1beta1.Finding.Builder subBuilder = null; - if (finding_ != null) { - subBuilder = finding_.toBuilder(); - } - finding_ = - input.readMessage( - com.google.cloud.securitycenter.v1beta1.Finding.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(finding_); - finding_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1beta1.Finding.Builder subBuilder = null; + if (finding_ != null) { + subBuilder = finding_.toBuilder(); + } + finding_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.Finding.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finding_); + finding_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,33 +92,29 @@ private UpdateFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.class, - com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.class, com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.Builder.class); } public static final int FINDING_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1beta1.Finding finding_; /** - * - * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -148,10 +123,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * characters in length.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the finding field is set. */ @java.lang.Override @@ -159,8 +131,6 @@ public boolean hasFinding() { return finding_ != null; } /** - * - * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -169,21 +139,14 @@ public boolean hasFinding() {
    * characters in length.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.Finding getFinding() { - return finding_ == null - ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() : finding_; } /** - * - * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -192,9 +155,7 @@ public com.google.cloud.securitycenter.v1beta1.Finding getFinding() {
    * characters in length.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder() { @@ -204,15 +165,12 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuil public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -220,15 +178,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -236,8 +191,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -251,7 +204,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -263,7 +215,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (finding_ != null) {
       output.writeMessage(1, getFinding());
     }
@@ -280,10 +233,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (finding_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFinding());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getFinding());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -293,21 +248,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest other =
-        (com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest) obj;
+    com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest other = (com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest) obj;
 
     if (hasFinding() != other.hasFinding()) return false;
     if (hasFinding()) {
-      if (!getFinding().equals(other.getFinding())) return false;
+      if (!getFinding()
+          .equals(other.getFinding())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -334,127 +290,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for updating or creating a finding.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.UpdateFindingRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.UpdateFindingRequest) com.google.cloud.securitycenter.v1beta1.UpdateFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.class, - com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.class, com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.newBuilder() @@ -462,15 +408,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -490,14 +437,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.getDefaultInstance(); } @@ -512,8 +458,7 @@ public com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest result = - new com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest(this); + com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest result = new com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest(this); if (findingBuilder_ == null) { result.finding_ = finding_; } else { @@ -532,39 +477,38 @@ public com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest)other); } else { super.mergeFrom(other); return this; @@ -572,9 +516,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest other) { - if (other - == com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.getDefaultInstance()) return this; if (other.hasFinding()) { mergeFinding(other.getFinding()); } @@ -600,8 +542,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -613,13 +554,8 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1beta1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Finding, - com.google.cloud.securitycenter.v1beta1.Finding.Builder, - com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> - findingBuilder_; + com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> findingBuilder_; /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -628,18 +564,13 @@ public Builder mergeFrom(
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -648,24 +579,17 @@ public boolean hasFinding() {
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The finding. */ public com.google.cloud.securitycenter.v1beta1.Finding getFinding() { if (findingBuilder_ == null) { - return finding_ == null - ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() : finding_; } else { return findingBuilder_.getMessage(); } } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -674,9 +598,7 @@ public com.google.cloud.securitycenter.v1beta1.Finding getFinding() {
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFinding(com.google.cloud.securitycenter.v1beta1.Finding value) { if (findingBuilder_ == null) { @@ -692,8 +614,6 @@ public Builder setFinding(com.google.cloud.securitycenter.v1beta1.Finding value) return this; } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -702,9 +622,7 @@ public Builder setFinding(com.google.cloud.securitycenter.v1beta1.Finding value)
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFinding( com.google.cloud.securitycenter.v1beta1.Finding.Builder builderForValue) { @@ -718,8 +636,6 @@ public Builder setFinding( return this; } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -728,17 +644,13 @@ public Builder setFinding(
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeFinding(com.google.cloud.securitycenter.v1beta1.Finding value) { if (findingBuilder_ == null) { if (finding_ != null) { finding_ = - com.google.cloud.securitycenter.v1beta1.Finding.newBuilder(finding_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1beta1.Finding.newBuilder(finding_).mergeFrom(value).buildPartial(); } else { finding_ = value; } @@ -750,8 +662,6 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1beta1.Finding valu return this; } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -760,9 +670,7 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1beta1.Finding valu
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFinding() { if (findingBuilder_ == null) { @@ -776,8 +684,6 @@ public Builder clearFinding() { return this; } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -786,18 +692,14 @@ public Builder clearFinding() {
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1beta1.Finding.Builder getFindingBuilder() { - + onChanged(); return getFindingFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -806,22 +708,17 @@ public com.google.cloud.securitycenter.v1beta1.Finding.Builder getFindingBuilder
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder() { if (findingBuilder_ != null) { return findingBuilder_.getMessageOrBuilder(); } else { - return finding_ == null - ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? + com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() : finding_; } } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -830,22 +727,17 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuil
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Finding, - com.google.cloud.securitycenter.v1beta1.Finding.Builder, - com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> + com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> getFindingFieldBuilder() { if (findingBuilder_ == null) { - findingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Finding, - com.google.cloud.securitycenter.v1beta1.Finding.Builder, - com.google.cloud.securitycenter.v1beta1.FindingOrBuilder>( - getFinding(), getParentForChildren(), isClean()); + findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, com.google.cloud.securitycenter.v1beta1.FindingOrBuilder>( + getFinding(), + getParentForChildren(), + isClean()); finding_ = null; } return findingBuilder_; @@ -853,49 +745,36 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuil private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -917,8 +796,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -926,7 +803,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -937,8 +815,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -950,7 +826,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -962,8 +838,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -983,8 +857,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -993,13 +865,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -1011,14 +881,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -1027,24 +894,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1054,13 +918,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.UpdateFindingRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.UpdateFindingRequest)
-  private static final com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest();
   }
@@ -1069,16 +932,16 @@ public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateFindingRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateFindingRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateFindingRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateFindingRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1093,4 +956,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequestOrBuilder.java
similarity index 69%
rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequestOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequestOrBuilder.java
index 18436bef9..a74372d80 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequestOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1beta1;
 
-public interface UpdateFindingRequestOrBuilder
-    extends
+public interface UpdateFindingRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.UpdateFindingRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -34,16 +16,11 @@ public interface UpdateFindingRequestOrBuilder
    * characters in length.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the finding field is set. */ boolean hasFinding(); /** - * - * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -52,16 +29,11 @@ public interface UpdateFindingRequestOrBuilder
    * characters in length.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The finding. */ com.google.cloud.securitycenter.v1beta1.Finding getFinding(); /** - * - * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -70,41 +42,31 @@ public interface UpdateFindingRequestOrBuilder
    * characters in length.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder(); /** - * - * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java
similarity index 61%
rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java
index 8c4da9897..608274a79 100644
--- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java
@@ -1,56 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1beta1;
 
 /**
- *
- *
  * 
  * Request message for updating an organization's settings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest} */ -public final class UpdateOrganizationSettingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateOrganizationSettingsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) UpdateOrganizationSettingsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateOrganizationSettingsRequest.newBuilder() to construct. - private UpdateOrganizationSettingsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateOrganizationSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateOrganizationSettingsRequest() {} + private UpdateOrganizationSettingsRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateOrganizationSettingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateOrganizationSettingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,46 +52,39 @@ private UpdateOrganizationSettingsRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder subBuilder = - null; - if (organizationSettings_ != null) { - subBuilder = organizationSettings_.toBuilder(); - } - organizationSettings_ = - input.readMessage( - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(organizationSettings_); - organizationSettings_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder subBuilder = null; + if (organizationSettings_ != null) { + subBuilder = organizationSettings_.toBuilder(); + } + organizationSettings_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.OrganizationSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(organizationSettings_); + organizationSettings_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,42 +92,34 @@ private UpdateOrganizationSettingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.class, - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.Builder - .class); + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.Builder.class); } public static final int ORGANIZATION_SETTINGS_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1beta1.OrganizationSettings organizationSettings_; /** - * - * *
    * Required. The organization settings resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the organizationSettings field is set. */ @java.lang.Override @@ -159,52 +127,37 @@ public boolean hasOrganizationSettings() { return organizationSettings_ != null; } /** - * - * *
    * Required. The organization settings resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The organizationSettings. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizationSettings() { - return organizationSettings_ == null - ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance() - : organizationSettings_; + return organizationSettings_ == null ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance() : organizationSettings_; } /** - * - * *
    * Required. The organization settings resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder - getOrganizationSettingsOrBuilder() { + public com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder() { return getOrganizationSettings(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The FieldMask to use when updating the settings resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -212,14 +165,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The FieldMask to use when updating the settings resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -227,8 +177,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The FieldMask to use when updating the settings resource.
    * 
@@ -241,7 +189,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (organizationSettings_ != null) { output.writeMessage(1, getOrganizationSettings()); } @@ -270,11 +218,12 @@ public int getSerializedSize() { size = 0; if (organizationSettings_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOrganizationSettings()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOrganizationSettings()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -284,22 +233,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest)) { + if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest other = - (com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) obj; + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest other = (com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) obj; if (hasOrganizationSettings() != other.hasOrganizationSettings()) return false; if (hasOrganizationSettings()) { - if (!getOrganizationSettings().equals(other.getOrganizationSettings())) return false; + if (!getOrganizationSettings() + .equals(other.getOrganizationSettings())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -326,146 +275,134 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for updating an organization's settings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.class, - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.Builder - .class); + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.newBuilder() + // Construct using com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -485,22 +422,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest build() { - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest result = - buildPartial(); + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -508,10 +442,8 @@ public com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest - buildPartial() { - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest result = - new com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest(this); + public com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest buildPartial() { + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest result = new com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest(this); if (organizationSettingsBuilder_ == null) { result.organizationSettings_ = organizationSettings_; } else { @@ -530,52 +462,46 @@ public com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) { - return mergeFrom( - (com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) other); + if (other instanceof com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest other) { - if (other - == com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest other) { + if (other == com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.getDefaultInstance()) return this; if (other.hasOrganizationSettings()) { mergeOrganizationSettings(other.getOrganizationSettings()); } @@ -597,14 +523,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parsedMessage = - null; + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -616,61 +539,41 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1beta1.OrganizationSettings organizationSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.OrganizationSettings, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder, - com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder> - organizationSettingsBuilder_; + com.google.cloud.securitycenter.v1beta1.OrganizationSettings, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder, com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder> organizationSettingsBuilder_; /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the organizationSettings field is set. */ public boolean hasOrganizationSettings() { return organizationSettingsBuilder_ != null || organizationSettings_ != null; } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The organizationSettings. */ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizationSettings() { if (organizationSettingsBuilder_ == null) { - return organizationSettings_ == null - ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance() - : organizationSettings_; + return organizationSettings_ == null ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance() : organizationSettings_; } else { return organizationSettingsBuilder_.getMessage(); } } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setOrganizationSettings( - com.google.cloud.securitycenter.v1beta1.OrganizationSettings value) { + public Builder setOrganizationSettings(com.google.cloud.securitycenter.v1beta1.OrganizationSettings value) { if (organizationSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -684,15 +587,11 @@ public Builder setOrganizationSettings( return this; } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOrganizationSettings( com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder builderForValue) { @@ -706,25 +605,17 @@ public Builder setOrganizationSettings( return this; } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeOrganizationSettings( - com.google.cloud.securitycenter.v1beta1.OrganizationSettings value) { + public Builder mergeOrganizationSettings(com.google.cloud.securitycenter.v1beta1.OrganizationSettings value) { if (organizationSettingsBuilder_ == null) { if (organizationSettings_ != null) { organizationSettings_ = - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.newBuilder( - organizationSettings_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.newBuilder(organizationSettings_).mergeFrom(value).buildPartial(); } else { organizationSettings_ = value; } @@ -736,15 +627,11 @@ public Builder mergeOrganizationSettings( return this; } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOrganizationSettings() { if (organizationSettingsBuilder_ == null) { @@ -758,66 +645,48 @@ public Builder clearOrganizationSettings() { return this; } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder - getOrganizationSettingsBuilder() { - + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder getOrganizationSettingsBuilder() { + onChanged(); return getOrganizationSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder - getOrganizationSettingsOrBuilder() { + public com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder() { if (organizationSettingsBuilder_ != null) { return organizationSettingsBuilder_.getMessageOrBuilder(); } else { - return organizationSettings_ == null - ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance() - : organizationSettings_; + return organizationSettings_ == null ? + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance() : organizationSettings_; } } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.OrganizationSettings, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder, - com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder> + com.google.cloud.securitycenter.v1beta1.OrganizationSettings, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder, com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder> getOrganizationSettingsFieldBuilder() { if (organizationSettingsBuilder_ == null) { - organizationSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.OrganizationSettings, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder, - com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder>( - getOrganizationSettings(), getParentForChildren(), isClean()); + organizationSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.OrganizationSettings, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder, com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder>( + getOrganizationSettings(), + getParentForChildren(), + isClean()); organizationSettings_ = null; } return organizationSettingsBuilder_; @@ -825,47 +694,34 @@ public Builder clearOrganizationSettings() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The FieldMask to use when updating the settings resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The FieldMask to use when updating the settings resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The FieldMask to use when updating the settings resource.
      * 
@@ -886,15 +742,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The FieldMask to use when updating the settings resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -905,8 +760,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The FieldMask to use when updating the settings resource.
      * 
@@ -917,7 +770,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -929,8 +782,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The FieldMask to use when updating the settings resource.
      * 
@@ -949,8 +800,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The FieldMask to use when updating the settings resource.
      * 
@@ -958,13 +807,11 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The FieldMask to use when updating the settings resource.
      * 
@@ -975,14 +822,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * The FieldMask to use when updating the settings resource.
      * 
@@ -990,24 +834,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1017,33 +858,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) - private static final com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest(); + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest(); } - public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateOrganizationSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateOrganizationSettingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateOrganizationSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateOrganizationSettingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1055,8 +893,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequestOrBuilder.java index 4865c6d01..d0e40699a 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequestOrBuilder.java @@ -1,97 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface UpdateOrganizationSettingsRequestOrBuilder - extends +public interface UpdateOrganizationSettingsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The organization settings resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the organizationSettings field is set. */ boolean hasOrganizationSettings(); /** - * - * *
    * Required. The organization settings resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The organizationSettings. */ com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizationSettings(); /** - * - * *
    * Required. The organization settings resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder - getOrganizationSettingsOrBuilder(); + com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder(); /** - * - * *
    * The FieldMask to use when updating the settings resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the settings resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the settings resource.
    * 
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java similarity index 66% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java index 81e3bf553..fa5ca6b7f 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Request message for updating a SecurityMarks resource.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest} */ -public final class UpdateSecurityMarksRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateSecurityMarksRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) UpdateSecurityMarksRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSecurityMarksRequest.newBuilder() to construct. private UpdateSecurityMarksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateSecurityMarksRequest() {} + private UpdateSecurityMarksRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSecurityMarksRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateSecurityMarksRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,60 +52,52 @@ private UpdateSecurityMarksRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder subBuilder = null; - if (securityMarks_ != null) { - subBuilder = securityMarks_.toBuilder(); - } - securityMarks_ = - input.readMessage( - com.google.cloud.securitycenter.v1beta1.SecurityMarks.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(securityMarks_); - securityMarks_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder subBuilder = null; + if (securityMarks_ != null) { + subBuilder = securityMarks_.toBuilder(); + } + securityMarks_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.SecurityMarks.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(securityMarks_); + securityMarks_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -129,41 +105,34 @@ private UpdateSecurityMarksRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.class, - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.class, com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.Builder.class); } public static final int SECURITY_MARKS_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1beta1.SecurityMarks securityMarks_; /** - * - * *
    * Required. The security marks resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the securityMarks field is set. */ @java.lang.Override @@ -171,52 +140,37 @@ public boolean hasSecurityMarks() { return securityMarks_ != null; } /** - * - * *
    * Required. The security marks resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The securityMarks. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; } /** - * - * *
    * Required. The security marks resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder - getSecurityMarksOrBuilder() { + public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { return getSecurityMarks(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The FieldMask to use when updating the security marks resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -224,14 +178,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The FieldMask to use when updating the security marks resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -239,8 +190,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The FieldMask to use when updating the security marks resource.
    * 
@@ -255,14 +204,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int START_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * The time at which the updated SecurityMarks take effect.
    * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -270,14 +216,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * The time at which the updated SecurityMarks take effect.
    * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return The startTime. */ @java.lang.Override @@ -285,8 +228,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * The time at which the updated SecurityMarks take effect.
    * 
@@ -299,7 +240,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,7 +251,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (securityMarks_ != null) { output.writeMessage(1, getSecurityMarks()); } @@ -331,13 +272,16 @@ public int getSerializedSize() { size = 0; if (securityMarks_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSecurityMarks()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSecurityMarks()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStartTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -347,25 +291,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest other = - (com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) obj; + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest other = (com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) obj; if (hasSecurityMarks() != other.hasSecurityMarks()) return false; if (hasSecurityMarks()) { - if (!getSecurityMarks().equals(other.getSecurityMarks())) return false; + if (!getSecurityMarks() + .equals(other.getSecurityMarks())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -396,145 +342,134 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for updating a SecurityMarks resource.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.class, - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.class, com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.newBuilder() + // Construct using com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -560,16 +495,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.getDefaultInstance(); } @java.lang.Override @@ -583,8 +516,7 @@ public com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest build( @java.lang.Override public com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest result = - new com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest(this); + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest result = new com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest(this); if (securityMarksBuilder_ == null) { result.securityMarks_ = securityMarks_; } else { @@ -608,51 +540,46 @@ public com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) { - return mergeFrom( - (com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest other) { - if (other - == com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest other) { + if (other == com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.getDefaultInstance()) return this; if (other.hasSecurityMarks()) { mergeSecurityMarks(other.getSecurityMarks()); } @@ -681,9 +608,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -695,58 +620,39 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1beta1.SecurityMarks securityMarks_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.SecurityMarks, - com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, - com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder> - securityMarksBuilder_; + com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder> securityMarksBuilder_; /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The securityMarks. */ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; } else { return securityMarksBuilder_.getMessage(); } } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { @@ -762,15 +668,11 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1beta1.Security return this; } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSecurityMarks( com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder builderForValue) { @@ -784,23 +686,17 @@ public Builder setSecurityMarks( return this; } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { if (securityMarks_ != null) { securityMarks_ = - com.google.cloud.securitycenter.v1beta1.SecurityMarks.newBuilder(securityMarks_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1beta1.SecurityMarks.newBuilder(securityMarks_).mergeFrom(value).buildPartial(); } else { securityMarks_ = value; } @@ -812,15 +708,11 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1beta1.Securi return this; } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -834,65 +726,48 @@ public Builder clearSecurityMarks() { return this; } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurityMarksBuilder() { - + onChanged(); return getSecurityMarksFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder - getSecurityMarksOrBuilder() { + public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { if (securityMarksBuilder_ != null) { return securityMarksBuilder_.getMessageOrBuilder(); } else { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? + com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; } } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.SecurityMarks, - com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, - com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder> + com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder> getSecurityMarksFieldBuilder() { if (securityMarksBuilder_ == null) { - securityMarksBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.SecurityMarks, - com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, - com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder>( - getSecurityMarks(), getParentForChildren(), isClean()); + securityMarksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder>( + getSecurityMarks(), + getParentForChildren(), + isClean()); securityMarks_ = null; } return securityMarksBuilder_; @@ -900,47 +775,34 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurity private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The FieldMask to use when updating the security marks resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The FieldMask to use when updating the security marks resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The FieldMask to use when updating the security marks resource.
      * 
@@ -961,15 +823,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The FieldMask to use when updating the security marks resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -980,8 +841,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The FieldMask to use when updating the security marks resource.
      * 
@@ -992,7 +851,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1004,8 +863,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The FieldMask to use when updating the security marks resource.
      * 
@@ -1024,8 +881,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The FieldMask to use when updating the security marks resource.
      * 
@@ -1033,13 +888,11 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The FieldMask to use when updating the security marks resource.
      * 
@@ -1050,14 +903,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * The FieldMask to use when updating the security marks resource.
      * 
@@ -1065,17 +915,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -1083,33 +930,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * The time at which the updated SecurityMarks take effect.
      * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * The time at which the updated SecurityMarks take effect.
      * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1120,8 +958,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * The time at which the updated SecurityMarks take effect.
      * 
@@ -1142,15 +978,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the updated SecurityMarks take effect.
      * 
* * .google.protobuf.Timestamp start_time = 3; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -1161,8 +996,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * The time at which the updated SecurityMarks take effect.
      * 
@@ -1173,7 +1006,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -1185,8 +1018,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the updated SecurityMarks take effect.
      * 
@@ -1205,8 +1036,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * The time at which the updated SecurityMarks take effect.
      * 
@@ -1214,13 +1043,11 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 3; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time at which the updated SecurityMarks take effect.
      * 
@@ -1231,12 +1058,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * The time at which the updated SecurityMarks take effect.
      * 
@@ -1244,24 +1070,21 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1271,32 +1094,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) - private static final com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest(); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSecurityMarksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateSecurityMarksRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSecurityMarksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateSecurityMarksRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1308,8 +1129,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequestOrBuilder.java index f3d3c75c7..34b565894 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequestOrBuilder.java @@ -1,96 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface UpdateSecurityMarksRequestOrBuilder - extends +public interface UpdateSecurityMarksRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The security marks resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** - * - * *
    * Required. The security marks resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The securityMarks. */ com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks(); /** - * - * *
    * Required. The security marks resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder(); /** - * - * *
    * The FieldMask to use when updating the security marks resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the security marks resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the security marks resource.
    * 
@@ -100,32 +62,24 @@ public interface UpdateSecurityMarksRequestOrBuilder com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * The time at which the updated SecurityMarks take effect.
    * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * The time at which the updated SecurityMarks take effect.
    * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * The time at which the updated SecurityMarks take effect.
    * 
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java similarity index 66% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java index f137b59f4..de19e7f71 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** - * - * *
  * Request message for updating a source.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.UpdateSourceRequest} */ -public final class UpdateSourceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateSourceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.UpdateSourceRequest) UpdateSourceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSourceRequest.newBuilder() to construct. private UpdateSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateSourceRequest() {} + private UpdateSourceRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateSourceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateSourceRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1beta1.Source.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.securitycenter.v1beta1.Source.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1beta1.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,41 +92,34 @@ private UpdateSourceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.class, - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.class, com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.Builder.class); } public static final int SOURCE_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1beta1.Source source_; /** - * - * *
    * Required. The source resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the source field is set. */ @java.lang.Override @@ -155,34 +127,23 @@ public boolean hasSource() { return source_ != null; } /** - * - * *
    * Required. The source resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The source. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.Source getSource() { - return source_ == null - ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() : source_; } /** - * - * *
    * Required. The source resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder() { @@ -192,14 +153,11 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilde public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The FieldMask to use when updating the source resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -207,14 +165,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The FieldMask to use when updating the source resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -222,8 +177,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The FieldMask to use when updating the source resource.
    * 
@@ -236,7 +189,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -248,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (source_ != null) { output.writeMessage(1, getSource()); } @@ -265,10 +218,12 @@ public int getSerializedSize() { size = 0; if (source_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSource()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -278,21 +233,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest other = - (com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest) obj; + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest other = (com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest) obj; if (hasSource() != other.hasSource()) return false; if (hasSource()) { - if (!getSource().equals(other.getSource())) return false; + if (!getSource() + .equals(other.getSource())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -319,127 +275,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for updating a source.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.UpdateSourceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.UpdateSourceRequest) com.google.cloud.securitycenter.v1beta1.UpdateSourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.class, - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.class, com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.newBuilder() @@ -447,15 +393,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -475,9 +422,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_descriptor; } @java.lang.Override @@ -496,8 +443,7 @@ public com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest result = - new com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest(this); + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest result = new com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest(this); if (sourceBuilder_ == null) { result.source_ = source_; } else { @@ -516,39 +462,38 @@ public com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest)other); } else { super.mergeFrom(other); return this; @@ -556,8 +501,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.getDefaultInstance()) return this; if (other.hasSource()) { mergeSource(other.getSource()); } @@ -583,8 +527,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -596,58 +539,39 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1beta1.Source source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Source, - com.google.cloud.securitycenter.v1beta1.Source.Builder, - com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> - sourceBuilder_; + com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> sourceBuilder_; /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The source. */ public com.google.cloud.securitycenter.v1beta1.Source getSource() { if (sourceBuilder_ == null) { - return source_ == null - ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSource(com.google.cloud.securitycenter.v1beta1.Source value) { if (sourceBuilder_ == null) { @@ -663,15 +587,11 @@ public Builder setSource(com.google.cloud.securitycenter.v1beta1.Source value) { return this; } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSource( com.google.cloud.securitycenter.v1beta1.Source.Builder builderForValue) { @@ -685,23 +605,17 @@ public Builder setSource( return this; } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSource(com.google.cloud.securitycenter.v1beta1.Source value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = - com.google.cloud.securitycenter.v1beta1.Source.newBuilder(source_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1beta1.Source.newBuilder(source_).mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -713,15 +627,11 @@ public Builder mergeSource(com.google.cloud.securitycenter.v1beta1.Source value) return this; } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSource() { if (sourceBuilder_ == null) { @@ -735,64 +645,48 @@ public Builder clearSource() { return this; } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1beta1.Source.Builder getSourceBuilder() { - + onChanged(); return getSourceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { - return source_ == null - ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() - : source_; + return source_ == null ? + com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() : source_; } } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Source, - com.google.cloud.securitycenter.v1beta1.Source.Builder, - com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> + com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { - sourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Source, - com.google.cloud.securitycenter.v1beta1.Source.Builder, - com.google.cloud.securitycenter.v1beta1.SourceOrBuilder>( - getSource(), getParentForChildren(), isClean()); + sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, com.google.cloud.securitycenter.v1beta1.SourceOrBuilder>( + getSource(), + getParentForChildren(), + isClean()); source_ = null; } return sourceBuilder_; @@ -800,47 +694,34 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilde private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The FieldMask to use when updating the source resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The FieldMask to use when updating the source resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The FieldMask to use when updating the source resource.
      * 
@@ -861,15 +742,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The FieldMask to use when updating the source resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -880,8 +760,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The FieldMask to use when updating the source resource.
      * 
@@ -892,7 +770,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -904,8 +782,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The FieldMask to use when updating the source resource.
      * 
@@ -924,8 +800,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The FieldMask to use when updating the source resource.
      * 
@@ -933,13 +807,11 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The FieldMask to use when updating the source resource.
      * 
@@ -950,14 +822,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * The FieldMask to use when updating the source resource.
      * 
@@ -965,24 +834,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -992,12 +858,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.UpdateSourceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.UpdateSourceRequest) private static final com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest(); } @@ -1006,16 +872,16 @@ public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSourceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateSourceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateSourceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1030,4 +896,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequestOrBuilder.java index d88053e72..a06db446e 100644 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequestOrBuilder.java @@ -1,96 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface UpdateSourceRequestOrBuilder - extends +public interface UpdateSourceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.UpdateSourceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The source resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the source field is set. */ boolean hasSource(); /** - * - * *
    * Required. The source resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The source. */ com.google.cloud.securitycenter.v1beta1.Source getSource(); /** - * - * *
    * Required. The source resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder(); /** - * - * *
    * The FieldMask to use when updating the source resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the source resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the source resource.
    * 
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/asset.proto b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/asset.proto similarity index 100% rename from proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/asset.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/asset.proto diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/finding.proto b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/finding.proto similarity index 100% rename from proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/finding.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/finding.proto diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/organization_settings.proto b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/organization_settings.proto similarity index 100% rename from proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/organization_settings.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/organization_settings.proto diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto similarity index 100% rename from proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/security_marks.proto b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/security_marks.proto similarity index 100% rename from proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/security_marks.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/security_marks.proto diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/securitycenter_service.proto b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/securitycenter_service.proto similarity index 100% rename from proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/securitycenter_service.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/securitycenter_service.proto diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/source.proto b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/source.proto similarity index 100% rename from proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/source.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/source.proto diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000..fad6f8db2 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterSettings; +import com.google.cloud.securitycenter.v1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SecurityCenterSettings securityCenterSettings = + SecurityCenterSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings); + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000..89f1d8669 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_create_setcredentialsprovider1_sync] +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SecurityCenterSettings securityCenterSettings = + SecurityCenterSettings.newBuilder() + .setTransportChannelProvider( + SecurityCenterSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings); + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000..44720964d --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_create_setendpoint_sync] +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterSettings; +import com.google.cloud.securitycenter.v1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SecurityCenterSettings securityCenterSettings = + SecurityCenterSettings.newBuilder().setEndpoint(myEndpoint).build(); + SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings); + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/AsyncCreateFinding.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/AsyncCreateFinding.java new file mode 100644 index 000000000..bd107b490 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/AsyncCreateFinding.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_createfinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1beta1.CreateFindingRequest; +import com.google.cloud.securitycenter.v1beta1.Finding; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; + +public class AsyncCreateFinding { + + public static void main(String[] args) throws Exception { + asyncCreateFinding(); + } + + public static void asyncCreateFinding() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + CreateFindingRequest request = + CreateFindingRequest.newBuilder() + .setParent(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setFindingId("findingId439150212") + .setFinding(Finding.newBuilder().build()) + .build(); + ApiFuture future = securityCenterClient.createFindingCallable().futureCall(request); + // Do something. + Finding response = future.get(); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_createfinding_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFinding.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFinding.java new file mode 100644 index 000000000..6b8a4227b --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFinding.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_createfinding_sync] +import com.google.cloud.securitycenter.v1beta1.CreateFindingRequest; +import com.google.cloud.securitycenter.v1beta1.Finding; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; + +public class SyncCreateFinding { + + public static void main(String[] args) throws Exception { + syncCreateFinding(); + } + + public static void syncCreateFinding() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + CreateFindingRequest request = + CreateFindingRequest.newBuilder() + .setParent(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setFindingId("findingId439150212") + .setFinding(Finding.newBuilder().build()) + .build(); + Finding response = securityCenterClient.createFinding(request); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_createfinding_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java new file mode 100644 index 000000000..d998974d4 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_createfinding_sourcenamestringfinding_sync] +import com.google.cloud.securitycenter.v1beta1.Finding; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; + +public class SyncCreateFindingSourcenameStringFinding { + + public static void main(String[] args) throws Exception { + syncCreateFindingSourcenameStringFinding(); + } + + public static void syncCreateFindingSourcenameStringFinding() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + String findingId = "findingId439150212"; + Finding finding = Finding.newBuilder().build(); + Finding response = securityCenterClient.createFinding(parent, findingId, finding); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_createfinding_sourcenamestringfinding_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java new file mode 100644 index 000000000..e0dfe8c53 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_createfinding_stringstringfinding_sync] +import com.google.cloud.securitycenter.v1beta1.Finding; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; + +public class SyncCreateFindingStringStringFinding { + + public static void main(String[] args) throws Exception { + syncCreateFindingStringStringFinding(); + } + + public static void syncCreateFindingStringStringFinding() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + String parent = SourceName.of("[ORGANIZATION]", "[SOURCE]").toString(); + String findingId = "findingId439150212"; + Finding finding = Finding.newBuilder().build(); + Finding response = securityCenterClient.createFinding(parent, findingId, finding); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_createfinding_stringstringfinding_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/AsyncCreateSource.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/AsyncCreateSource.java new file mode 100644 index 000000000..1b3229e95 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/AsyncCreateSource.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_createsource_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1beta1.CreateSourceRequest; +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.Source; + +public class AsyncCreateSource { + + public static void main(String[] args) throws Exception { + asyncCreateSource(); + } + + public static void asyncCreateSource() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + CreateSourceRequest request = + CreateSourceRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setSource(Source.newBuilder().build()) + .build(); + ApiFuture future = securityCenterClient.createSourceCallable().futureCall(request); + // Do something. + Source response = future.get(); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_createsource_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSource.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSource.java new file mode 100644 index 000000000..fae418991 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSource.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_createsource_sync] +import com.google.cloud.securitycenter.v1beta1.CreateSourceRequest; +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.Source; + +public class SyncCreateSource { + + public static void main(String[] args) throws Exception { + syncCreateSource(); + } + + public static void syncCreateSource() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + CreateSourceRequest request = + CreateSourceRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setSource(Source.newBuilder().build()) + .build(); + Source response = securityCenterClient.createSource(request); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_createsource_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java new file mode 100644 index 000000000..20c0ebe90 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_createsource_organizationnamesource_sync] +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.Source; + +public class SyncCreateSourceOrganizationnameSource { + + public static void main(String[] args) throws Exception { + syncCreateSourceOrganizationnameSource(); + } + + public static void syncCreateSourceOrganizationnameSource() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + Source source = Source.newBuilder().build(); + Source response = securityCenterClient.createSource(parent, source); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_createsource_organizationnamesource_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSourceStringSource.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSourceStringSource.java new file mode 100644 index 000000000..23dc8c491 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSourceStringSource.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_createsource_stringsource_sync] +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.Source; + +public class SyncCreateSourceStringSource { + + public static void main(String[] args) throws Exception { + syncCreateSourceStringSource(); + } + + public static void syncCreateSourceStringSource() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + String parent = OrganizationName.of("[ORGANIZATION]").toString(); + Source source = Source.newBuilder().build(); + Source response = securityCenterClient.createSource(parent, source); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_createsource_stringsource_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000..6f33f808a --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_getiampolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = securityCenterClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_getiampolicy_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000..7151eb372 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_getiampolicy_sync] +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = securityCenterClient.getIamPolicy(request); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_getiampolicy_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java new file mode 100644 index 000000000..ad52ceed9 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_getiampolicy_resourcename_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyResourcename { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyResourcename(); + } + + public static void syncGetIamPolicyResourcename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + Policy response = securityCenterClient.getIamPolicy(resource); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_getiampolicy_resourcename_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java new file mode 100644 index 000000000..e6949873d --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_getiampolicy_string_sync] +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyString { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyString(); + } + + public static void syncGetIamPolicyString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + String resource = OrganizationName.of("[ORGANIZATION]").toString(); + Policy response = securityCenterClient.getIamPolicy(resource); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_getiampolicy_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java new file mode 100644 index 000000000..ee4e41d85 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_getorganizationsettings_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1beta1.OrganizationSettings; +import com.google.cloud.securitycenter.v1beta1.OrganizationSettingsName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; + +public class AsyncGetOrganizationSettings { + + public static void main(String[] args) throws Exception { + asyncGetOrganizationSettings(); + } + + public static void asyncGetOrganizationSettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + GetOrganizationSettingsRequest request = + GetOrganizationSettingsRequest.newBuilder() + .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString()) + .build(); + ApiFuture future = + securityCenterClient.getOrganizationSettingsCallable().futureCall(request); + // Do something. + OrganizationSettings response = future.get(); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_getorganizationsettings_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java new file mode 100644 index 000000000..6a75281bb --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_getorganizationsettings_sync] +import com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1beta1.OrganizationSettings; +import com.google.cloud.securitycenter.v1beta1.OrganizationSettingsName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; + +public class SyncGetOrganizationSettings { + + public static void main(String[] args) throws Exception { + syncGetOrganizationSettings(); + } + + public static void syncGetOrganizationSettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + GetOrganizationSettingsRequest request = + GetOrganizationSettingsRequest.newBuilder() + .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString()) + .build(); + OrganizationSettings response = securityCenterClient.getOrganizationSettings(request); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_getorganizationsettings_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java new file mode 100644 index 000000000..818fdd430 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_getorganizationsettings_organizationsettingsname_sync] +import com.google.cloud.securitycenter.v1beta1.OrganizationSettings; +import com.google.cloud.securitycenter.v1beta1.OrganizationSettingsName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; + +public class SyncGetOrganizationSettingsOrganizationsettingsname { + + public static void main(String[] args) throws Exception { + syncGetOrganizationSettingsOrganizationsettingsname(); + } + + public static void syncGetOrganizationSettingsOrganizationsettingsname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + OrganizationSettingsName name = OrganizationSettingsName.of("[ORGANIZATION]"); + OrganizationSettings response = securityCenterClient.getOrganizationSettings(name); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_getorganizationsettings_organizationsettingsname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java new file mode 100644 index 000000000..91ad52288 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_getorganizationsettings_string_sync] +import com.google.cloud.securitycenter.v1beta1.OrganizationSettings; +import com.google.cloud.securitycenter.v1beta1.OrganizationSettingsName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; + +public class SyncGetOrganizationSettingsString { + + public static void main(String[] args) throws Exception { + syncGetOrganizationSettingsString(); + } + + public static void syncGetOrganizationSettingsString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + String name = OrganizationSettingsName.of("[ORGANIZATION]").toString(); + OrganizationSettings response = securityCenterClient.getOrganizationSettings(name); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_getorganizationsettings_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/AsyncGetSource.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/AsyncGetSource.java new file mode 100644 index 000000000..d39af64f0 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/AsyncGetSource.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_getsource_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1beta1.GetSourceRequest; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.Source; +import com.google.cloud.securitycenter.v1beta1.SourceName; + +public class AsyncGetSource { + + public static void main(String[] args) throws Exception { + asyncGetSource(); + } + + public static void asyncGetSource() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + GetSourceRequest request = + GetSourceRequest.newBuilder() + .setName(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .build(); + ApiFuture future = securityCenterClient.getSourceCallable().futureCall(request); + // Do something. + Source response = future.get(); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_getsource_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSource.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSource.java new file mode 100644 index 000000000..6d57e51f6 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSource.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_getsource_sync] +import com.google.cloud.securitycenter.v1beta1.GetSourceRequest; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.Source; +import com.google.cloud.securitycenter.v1beta1.SourceName; + +public class SyncGetSource { + + public static void main(String[] args) throws Exception { + syncGetSource(); + } + + public static void syncGetSource() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + GetSourceRequest request = + GetSourceRequest.newBuilder() + .setName(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .build(); + Source response = securityCenterClient.getSource(request); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_getsource_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSourceSourcename.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSourceSourcename.java new file mode 100644 index 000000000..815d8e553 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSourceSourcename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_getsource_sourcename_sync] +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.Source; +import com.google.cloud.securitycenter.v1beta1.SourceName; + +public class SyncGetSourceSourcename { + + public static void main(String[] args) throws Exception { + syncGetSourceSourcename(); + } + + public static void syncGetSourceSourcename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + SourceName name = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + Source response = securityCenterClient.getSource(name); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_getsource_sourcename_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSourceString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSourceString.java new file mode 100644 index 000000000..7f6a383e0 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSourceString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_getsource_string_sync] +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.Source; +import com.google.cloud.securitycenter.v1beta1.SourceName; + +public class SyncGetSourceString { + + public static void main(String[] args) throws Exception { + syncGetSourceString(); + } + + public static void syncGetSourceString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + String name = SourceName.of("[ORGANIZATION]", "[SOURCE]").toString(); + Source response = securityCenterClient.getSource(name); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_getsource_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/AsyncGroupAssets.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/AsyncGroupAssets.java new file mode 100644 index 000000000..6313d3866 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/AsyncGroupAssets.java @@ -0,0 +1,57 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_groupassets_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest; +import com.google.cloud.securitycenter.v1beta1.GroupResult; +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.protobuf.Duration; +import com.google.protobuf.Timestamp; + +public class AsyncGroupAssets { + + public static void main(String[] args) throws Exception { + asyncGroupAssets(); + } + + public static void asyncGroupAssets() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + GroupAssetsRequest request = + GroupAssetsRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setFilter("filter-1274492040") + .setGroupBy("groupBy293428022") + .setCompareDuration(Duration.newBuilder().build()) + .setReadTime(Timestamp.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + ApiFuture future = + securityCenterClient.groupAssetsPagedCallable().futureCall(request); + // Do something. + for (GroupResult element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_groupassets_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java new file mode 100644 index 000000000..57cb758be --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_groupassets_paged_async] +import com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest; +import com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse; +import com.google.cloud.securitycenter.v1beta1.GroupResult; +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.common.base.Strings; +import com.google.protobuf.Duration; +import com.google.protobuf.Timestamp; + +public class AsyncGroupAssetsPaged { + + public static void main(String[] args) throws Exception { + asyncGroupAssetsPaged(); + } + + public static void asyncGroupAssetsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + GroupAssetsRequest request = + GroupAssetsRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setFilter("filter-1274492040") + .setGroupBy("groupBy293428022") + .setCompareDuration(Duration.newBuilder().build()) + .setReadTime(Timestamp.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + while (true) { + GroupAssetsResponse response = securityCenterClient.groupAssetsCallable().call(request); + for (GroupResult element : response.getGroupByResultsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_groupassets_paged_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/SyncGroupAssets.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/SyncGroupAssets.java new file mode 100644 index 000000000..08bc766f2 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/SyncGroupAssets.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_groupassets_sync] +import com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest; +import com.google.cloud.securitycenter.v1beta1.GroupResult; +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.protobuf.Duration; +import com.google.protobuf.Timestamp; + +public class SyncGroupAssets { + + public static void main(String[] args) throws Exception { + syncGroupAssets(); + } + + public static void syncGroupAssets() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + GroupAssetsRequest request = + GroupAssetsRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setFilter("filter-1274492040") + .setGroupBy("groupBy293428022") + .setCompareDuration(Duration.newBuilder().build()) + .setReadTime(Timestamp.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + for (GroupResult element : securityCenterClient.groupAssets(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_groupassets_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/AsyncGroupFindings.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/AsyncGroupFindings.java new file mode 100644 index 000000000..8646cd7dd --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/AsyncGroupFindings.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_groupfindings_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest; +import com.google.cloud.securitycenter.v1beta1.GroupResult; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; +import com.google.protobuf.Timestamp; + +public class AsyncGroupFindings { + + public static void main(String[] args) throws Exception { + asyncGroupFindings(); + } + + public static void asyncGroupFindings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + GroupFindingsRequest request = + GroupFindingsRequest.newBuilder() + .setParent(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setFilter("filter-1274492040") + .setGroupBy("groupBy293428022") + .setReadTime(Timestamp.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + ApiFuture future = + securityCenterClient.groupFindingsPagedCallable().futureCall(request); + // Do something. + for (GroupResult element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_groupfindings_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java new file mode 100644 index 000000000..deedcbc9e --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_groupfindings_paged_async] +import com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest; +import com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse; +import com.google.cloud.securitycenter.v1beta1.GroupResult; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; +import com.google.common.base.Strings; +import com.google.protobuf.Timestamp; + +public class AsyncGroupFindingsPaged { + + public static void main(String[] args) throws Exception { + asyncGroupFindingsPaged(); + } + + public static void asyncGroupFindingsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + GroupFindingsRequest request = + GroupFindingsRequest.newBuilder() + .setParent(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setFilter("filter-1274492040") + .setGroupBy("groupBy293428022") + .setReadTime(Timestamp.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + while (true) { + GroupFindingsResponse response = securityCenterClient.groupFindingsCallable().call(request); + for (GroupResult element : response.getGroupByResultsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_groupfindings_paged_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindings.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindings.java new file mode 100644 index 000000000..16dbb8c45 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindings.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_groupfindings_sync] +import com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest; +import com.google.cloud.securitycenter.v1beta1.GroupResult; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; +import com.google.protobuf.Timestamp; + +public class SyncGroupFindings { + + public static void main(String[] args) throws Exception { + syncGroupFindings(); + } + + public static void syncGroupFindings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + GroupFindingsRequest request = + GroupFindingsRequest.newBuilder() + .setParent(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setFilter("filter-1274492040") + .setGroupBy("groupBy293428022") + .setReadTime(Timestamp.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + for (GroupResult element : securityCenterClient.groupFindings(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_groupfindings_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java new file mode 100644 index 000000000..4d3b46116 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_groupfindings_sourcenamestring_sync] +import com.google.cloud.securitycenter.v1beta1.GroupResult; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; + +public class SyncGroupFindingsSourcenameString { + + public static void main(String[] args) throws Exception { + syncGroupFindingsSourcenameString(); + } + + public static void syncGroupFindingsSourcenameString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + SourceName parent = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + String groupBy = "groupBy293428022"; + for (GroupResult element : securityCenterClient.groupFindings(parent, groupBy).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_groupfindings_sourcenamestring_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java new file mode 100644 index 000000000..23a8d703d --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_groupfindings_stringstring_sync] +import com.google.cloud.securitycenter.v1beta1.GroupResult; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; + +public class SyncGroupFindingsStringString { + + public static void main(String[] args) throws Exception { + syncGroupFindingsStringString(); + } + + public static void syncGroupFindingsStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + String parent = SourceName.of("[ORGANIZATION]", "[SOURCE]").toString(); + String groupBy = "groupBy293428022"; + for (GroupResult element : securityCenterClient.groupFindings(parent, groupBy).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_groupfindings_stringstring_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/AsyncListAssets.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/AsyncListAssets.java new file mode 100644 index 000000000..4d18047e4 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/AsyncListAssets.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_listassets_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1beta1.ListAssetsRequest; +import com.google.cloud.securitycenter.v1beta1.ListAssetsResponse; +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.protobuf.Duration; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; + +public class AsyncListAssets { + + public static void main(String[] args) throws Exception { + asyncListAssets(); + } + + public static void asyncListAssets() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + ListAssetsRequest request = + ListAssetsRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReadTime(Timestamp.newBuilder().build()) + .setCompareDuration(Duration.newBuilder().build()) + .setFieldMask(FieldMask.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + ApiFuture future = + securityCenterClient.listAssetsPagedCallable().futureCall(request); + // Do something. + for (ListAssetsResponse.ListAssetsResult element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_listassets_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/AsyncListAssetsPaged.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/AsyncListAssetsPaged.java new file mode 100644 index 000000000..377a46f1b --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/AsyncListAssetsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_listassets_paged_async] +import com.google.cloud.securitycenter.v1beta1.ListAssetsRequest; +import com.google.cloud.securitycenter.v1beta1.ListAssetsResponse; +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.common.base.Strings; +import com.google.protobuf.Duration; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; + +public class AsyncListAssetsPaged { + + public static void main(String[] args) throws Exception { + asyncListAssetsPaged(); + } + + public static void asyncListAssetsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + ListAssetsRequest request = + ListAssetsRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReadTime(Timestamp.newBuilder().build()) + .setCompareDuration(Duration.newBuilder().build()) + .setFieldMask(FieldMask.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + while (true) { + ListAssetsResponse response = securityCenterClient.listAssetsCallable().call(request); + for (ListAssetsResponse.ListAssetsResult element : response.getListAssetsResultsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_listassets_paged_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/SyncListAssets.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/SyncListAssets.java new file mode 100644 index 000000000..c7ac274b7 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/SyncListAssets.java @@ -0,0 +1,56 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_listassets_sync] +import com.google.cloud.securitycenter.v1beta1.ListAssetsRequest; +import com.google.cloud.securitycenter.v1beta1.ListAssetsResponse; +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.protobuf.Duration; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; + +public class SyncListAssets { + + public static void main(String[] args) throws Exception { + syncListAssets(); + } + + public static void syncListAssets() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + ListAssetsRequest request = + ListAssetsRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReadTime(Timestamp.newBuilder().build()) + .setCompareDuration(Duration.newBuilder().build()) + .setFieldMask(FieldMask.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + for (ListAssetsResponse.ListAssetsResult element : + securityCenterClient.listAssets(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_listassets_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/AsyncListFindings.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/AsyncListFindings.java new file mode 100644 index 000000000..5b3811773 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/AsyncListFindings.java @@ -0,0 +1,57 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_listfindings_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1beta1.Finding; +import com.google.cloud.securitycenter.v1beta1.ListFindingsRequest; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; + +public class AsyncListFindings { + + public static void main(String[] args) throws Exception { + asyncListFindings(); + } + + public static void asyncListFindings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + ListFindingsRequest request = + ListFindingsRequest.newBuilder() + .setParent(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReadTime(Timestamp.newBuilder().build()) + .setFieldMask(FieldMask.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + ApiFuture future = + securityCenterClient.listFindingsPagedCallable().futureCall(request); + // Do something. + for (Finding element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_listfindings_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/AsyncListFindingsPaged.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/AsyncListFindingsPaged.java new file mode 100644 index 000000000..f83e131a6 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/AsyncListFindingsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_listfindings_paged_async] +import com.google.cloud.securitycenter.v1beta1.Finding; +import com.google.cloud.securitycenter.v1beta1.ListFindingsRequest; +import com.google.cloud.securitycenter.v1beta1.ListFindingsResponse; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; +import com.google.common.base.Strings; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; + +public class AsyncListFindingsPaged { + + public static void main(String[] args) throws Exception { + asyncListFindingsPaged(); + } + + public static void asyncListFindingsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + ListFindingsRequest request = + ListFindingsRequest.newBuilder() + .setParent(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReadTime(Timestamp.newBuilder().build()) + .setFieldMask(FieldMask.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + while (true) { + ListFindingsResponse response = securityCenterClient.listFindingsCallable().call(request); + for (Finding element : response.getFindingsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_listfindings_paged_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/SyncListFindings.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/SyncListFindings.java new file mode 100644 index 000000000..01f5cf156 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/SyncListFindings.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_listfindings_sync] +import com.google.cloud.securitycenter.v1beta1.Finding; +import com.google.cloud.securitycenter.v1beta1.ListFindingsRequest; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; + +public class SyncListFindings { + + public static void main(String[] args) throws Exception { + syncListFindings(); + } + + public static void syncListFindings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + ListFindingsRequest request = + ListFindingsRequest.newBuilder() + .setParent(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setReadTime(Timestamp.newBuilder().build()) + .setFieldMask(FieldMask.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + for (Finding element : securityCenterClient.listFindings(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_listfindings_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/AsyncListSources.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/AsyncListSources.java new file mode 100644 index 000000000..df3cfd568 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/AsyncListSources.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_listsources_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1beta1.ListSourcesRequest; +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.Source; + +public class AsyncListSources { + + public static void main(String[] args) throws Exception { + asyncListSources(); + } + + public static void asyncListSources() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + ListSourcesRequest request = + ListSourcesRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + ApiFuture future = + securityCenterClient.listSourcesPagedCallable().futureCall(request); + // Do something. + for (Source element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_listsources_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/AsyncListSourcesPaged.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/AsyncListSourcesPaged.java new file mode 100644 index 000000000..9a5a85e63 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/AsyncListSourcesPaged.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_listsources_paged_async] +import com.google.cloud.securitycenter.v1beta1.ListSourcesRequest; +import com.google.cloud.securitycenter.v1beta1.ListSourcesResponse; +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.Source; +import com.google.common.base.Strings; + +public class AsyncListSourcesPaged { + + public static void main(String[] args) throws Exception { + asyncListSourcesPaged(); + } + + public static void asyncListSourcesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + ListSourcesRequest request = + ListSourcesRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + while (true) { + ListSourcesResponse response = securityCenterClient.listSourcesCallable().call(request); + for (Source element : response.getSourcesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_listsources_paged_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSources.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSources.java new file mode 100644 index 000000000..199a94c39 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSources.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_listsources_sync] +import com.google.cloud.securitycenter.v1beta1.ListSourcesRequest; +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.Source; + +public class SyncListSources { + + public static void main(String[] args) throws Exception { + syncListSources(); + } + + public static void syncListSources() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + ListSourcesRequest request = + ListSourcesRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + for (Source element : securityCenterClient.listSources(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_listsources_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java new file mode 100644 index 000000000..a4556b72c --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_listsources_organizationname_sync] +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.Source; + +public class SyncListSourcesOrganizationname { + + public static void main(String[] args) throws Exception { + syncListSourcesOrganizationname(); + } + + public static void syncListSourcesOrganizationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + for (Source element : securityCenterClient.listSources(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_listsources_organizationname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSourcesString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSourcesString.java new file mode 100644 index 000000000..21b53ccd7 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSourcesString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_listsources_string_sync] +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.Source; + +public class SyncListSourcesString { + + public static void main(String[] args) throws Exception { + syncListSourcesString(); + } + + public static void syncListSourcesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + String parent = OrganizationName.of("[ORGANIZATION]").toString(); + for (Source element : securityCenterClient.listSources(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_listsources_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java new file mode 100644 index 000000000..588a9573f --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_runassetdiscovery_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.longrunning.Operation; + +public class AsyncRunAssetDiscovery { + + public static void main(String[] args) throws Exception { + asyncRunAssetDiscovery(); + } + + public static void asyncRunAssetDiscovery() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + RunAssetDiscoveryRequest request = + RunAssetDiscoveryRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .build(); + ApiFuture future = + securityCenterClient.runAssetDiscoveryCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_runassetdiscovery_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java new file mode 100644 index 000000000..c788fe3c4 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_runassetdiscovery_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.protobuf.Empty; + +public class AsyncRunAssetDiscoveryLRO { + + public static void main(String[] args) throws Exception { + asyncRunAssetDiscoveryLRO(); + } + + public static void asyncRunAssetDiscoveryLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + RunAssetDiscoveryRequest request = + RunAssetDiscoveryRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .build(); + OperationFuture future = + securityCenterClient.runAssetDiscoveryOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_runassetdiscovery_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java new file mode 100644 index 000000000..be67bdf6b --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_runassetdiscovery_sync] +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.protobuf.Empty; + +public class SyncRunAssetDiscovery { + + public static void main(String[] args) throws Exception { + syncRunAssetDiscovery(); + } + + public static void syncRunAssetDiscovery() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + RunAssetDiscoveryRequest request = + RunAssetDiscoveryRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .build(); + securityCenterClient.runAssetDiscoveryAsync(request).get(); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_runassetdiscovery_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java new file mode 100644 index 000000000..43c993e74 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_runassetdiscovery_organizationname_sync] +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.protobuf.Empty; + +public class SyncRunAssetDiscoveryOrganizationname { + + public static void main(String[] args) throws Exception { + syncRunAssetDiscoveryOrganizationname(); + } + + public static void syncRunAssetDiscoveryOrganizationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + securityCenterClient.runAssetDiscoveryAsync(parent).get(); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_runassetdiscovery_organizationname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java new file mode 100644 index 000000000..1f7094c34 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_runassetdiscovery_string_sync] +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.protobuf.Empty; + +public class SyncRunAssetDiscoveryString { + + public static void main(String[] args) throws Exception { + syncRunAssetDiscoveryString(); + } + + public static void syncRunAssetDiscoveryString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + String parent = OrganizationName.of("[ORGANIZATION]").toString(); + securityCenterClient.runAssetDiscoveryAsync(parent).get(); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_runassetdiscovery_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/AsyncSetFindingState.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/AsyncSetFindingState.java new file mode 100644 index 000000000..9447b8345 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/AsyncSetFindingState.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_setfindingstate_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1beta1.Finding; +import com.google.cloud.securitycenter.v1beta1.FindingName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest; +import com.google.protobuf.Timestamp; + +public class AsyncSetFindingState { + + public static void main(String[] args) throws Exception { + asyncSetFindingState(); + } + + public static void asyncSetFindingState() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + SetFindingStateRequest request = + SetFindingStateRequest.newBuilder() + .setName(FindingName.of("[ORGANIZATION]", "[SOURCE]", "[FINDING]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .build(); + ApiFuture future = + securityCenterClient.setFindingStateCallable().futureCall(request); + // Do something. + Finding response = future.get(); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_setfindingstate_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingState.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingState.java new file mode 100644 index 000000000..c3e710d1c --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingState.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_setfindingstate_sync] +import com.google.cloud.securitycenter.v1beta1.Finding; +import com.google.cloud.securitycenter.v1beta1.FindingName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest; +import com.google.protobuf.Timestamp; + +public class SyncSetFindingState { + + public static void main(String[] args) throws Exception { + syncSetFindingState(); + } + + public static void syncSetFindingState() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + SetFindingStateRequest request = + SetFindingStateRequest.newBuilder() + .setName(FindingName.of("[ORGANIZATION]", "[SOURCE]", "[FINDING]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .build(); + Finding response = securityCenterClient.setFindingState(request); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_setfindingstate_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java new file mode 100644 index 000000000..e809b3853 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_setfindingstate_findingnamefindingstatetimestamp_sync] +import com.google.cloud.securitycenter.v1beta1.Finding; +import com.google.cloud.securitycenter.v1beta1.FindingName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.protobuf.Timestamp; + +public class SyncSetFindingStateFindingnameFindingstateTimestamp { + + public static void main(String[] args) throws Exception { + syncSetFindingStateFindingnameFindingstateTimestamp(); + } + + public static void syncSetFindingStateFindingnameFindingstateTimestamp() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + FindingName name = FindingName.of("[ORGANIZATION]", "[SOURCE]", "[FINDING]"); + Finding.State state = Finding.State.forNumber(0); + Timestamp startTime = Timestamp.newBuilder().build(); + Finding response = securityCenterClient.setFindingState(name, state, startTime); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_setfindingstate_findingnamefindingstatetimestamp_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java new file mode 100644 index 000000000..3f7313341 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_setfindingstate_stringfindingstatetimestamp_sync] +import com.google.cloud.securitycenter.v1beta1.Finding; +import com.google.cloud.securitycenter.v1beta1.FindingName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.protobuf.Timestamp; + +public class SyncSetFindingStateStringFindingstateTimestamp { + + public static void main(String[] args) throws Exception { + syncSetFindingStateStringFindingstateTimestamp(); + } + + public static void syncSetFindingStateStringFindingstateTimestamp() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + String name = FindingName.of("[ORGANIZATION]", "[SOURCE]", "[FINDING]").toString(); + Finding.State state = Finding.State.forNumber(0); + Timestamp startTime = Timestamp.newBuilder().build(); + Finding response = securityCenterClient.setFindingState(name, state, startTime); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_setfindingstate_stringfindingstatetimestamp_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000..5ac3cea3f --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_setiampolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = securityCenterClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_setiampolicy_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000..66e240abe --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_setiampolicy_sync] +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = securityCenterClient.setIamPolicy(request); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_setiampolicy_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java new file mode 100644 index 000000000..5ca6e1536 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_setiampolicy_resourcenamepolicy_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; +import com.google.iam.v1.Policy; + +public class SyncSetIamPolicyResourcenamePolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyResourcenamePolicy(); + } + + public static void syncSetIamPolicyResourcenamePolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + Policy policy = Policy.newBuilder().build(); + Policy response = securityCenterClient.setIamPolicy(resource, policy); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_setiampolicy_resourcenamepolicy_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java new file mode 100644 index 000000000..65586d877 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_setiampolicy_stringpolicy_sync] +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.iam.v1.Policy; + +public class SyncSetIamPolicyStringPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyStringPolicy(); + } + + public static void syncSetIamPolicyStringPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + String resource = OrganizationName.of("[ORGANIZATION]").toString(); + Policy policy = Policy.newBuilder().build(); + Policy response = securityCenterClient.setIamPolicy(resource, policy); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_setiampolicy_stringpolicy_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000..a8b19f01b --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_testiampermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + securityCenterClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_testiampermissions_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000..08e674d9c --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_testiampermissions_sync] +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(SourceName.of("[ORGANIZATION]", "[SOURCE]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = securityCenterClient.testIamPermissions(request); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_testiampermissions_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java new file mode 100644 index 000000000..cece044b7 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_testiampermissions_resourcenameliststring_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SourceName; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; +import java.util.List; + +public class SyncTestIamPermissionsResourcenameListstring { + + public static void main(String[] args) throws Exception { + syncTestIamPermissionsResourcenameListstring(); + } + + public static void syncTestIamPermissionsResourcenameListstring() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + ResourceName resource = SourceName.of("[ORGANIZATION]", "[SOURCE]"); + List permissions = new ArrayList<>(); + TestIamPermissionsResponse response = + securityCenterClient.testIamPermissions(resource, permissions); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_testiampermissions_resourcenameliststring_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java new file mode 100644 index 000000000..8ba110764 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_testiampermissions_stringliststring_sync] +import com.google.cloud.securitycenter.v1beta1.OrganizationName; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; +import java.util.List; + +public class SyncTestIamPermissionsStringListstring { + + public static void main(String[] args) throws Exception { + syncTestIamPermissionsStringListstring(); + } + + public static void syncTestIamPermissionsStringListstring() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + String resource = OrganizationName.of("[ORGANIZATION]").toString(); + List permissions = new ArrayList<>(); + TestIamPermissionsResponse response = + securityCenterClient.testIamPermissions(resource, permissions); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_testiampermissions_stringliststring_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/AsyncUpdateFinding.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/AsyncUpdateFinding.java new file mode 100644 index 000000000..238434985 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/AsyncUpdateFinding.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_updatefinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1beta1.Finding; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFinding { + + public static void main(String[] args) throws Exception { + asyncUpdateFinding(); + } + + public static void asyncUpdateFinding() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + UpdateFindingRequest request = + UpdateFindingRequest.newBuilder() + .setFinding(Finding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = securityCenterClient.updateFindingCallable().futureCall(request); + // Do something. + Finding response = future.get(); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_updatefinding_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/SyncUpdateFinding.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/SyncUpdateFinding.java new file mode 100644 index 000000000..7c311d9e1 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/SyncUpdateFinding.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_updatefinding_sync] +import com.google.cloud.securitycenter.v1beta1.Finding; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFinding { + + public static void main(String[] args) throws Exception { + syncUpdateFinding(); + } + + public static void syncUpdateFinding() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + UpdateFindingRequest request = + UpdateFindingRequest.newBuilder() + .setFinding(Finding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Finding response = securityCenterClient.updateFinding(request); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_updatefinding_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java new file mode 100644 index 000000000..da674e833 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_updatefinding_finding_sync] +import com.google.cloud.securitycenter.v1beta1.Finding; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; + +public class SyncUpdateFindingFinding { + + public static void main(String[] args) throws Exception { + syncUpdateFindingFinding(); + } + + public static void syncUpdateFindingFinding() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + Finding finding = Finding.newBuilder().build(); + Finding response = securityCenterClient.updateFinding(finding); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_updatefinding_finding_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java new file mode 100644 index 000000000..89a350a5c --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_updateorganizationsettings_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1beta1.OrganizationSettings; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateOrganizationSettings { + + public static void main(String[] args) throws Exception { + asyncUpdateOrganizationSettings(); + } + + public static void asyncUpdateOrganizationSettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + UpdateOrganizationSettingsRequest request = + UpdateOrganizationSettingsRequest.newBuilder() + .setOrganizationSettings(OrganizationSettings.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + securityCenterClient.updateOrganizationSettingsCallable().futureCall(request); + // Do something. + OrganizationSettings response = future.get(); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_updateorganizationsettings_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java new file mode 100644 index 000000000..ca9e61374 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_updateorganizationsettings_sync] +import com.google.cloud.securitycenter.v1beta1.OrganizationSettings; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateOrganizationSettings { + + public static void main(String[] args) throws Exception { + syncUpdateOrganizationSettings(); + } + + public static void syncUpdateOrganizationSettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + UpdateOrganizationSettingsRequest request = + UpdateOrganizationSettingsRequest.newBuilder() + .setOrganizationSettings(OrganizationSettings.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OrganizationSettings response = securityCenterClient.updateOrganizationSettings(request); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_updateorganizationsettings_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java new file mode 100644 index 000000000..9c8af6b38 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_updateorganizationsettings_organizationsettings_sync] +import com.google.cloud.securitycenter.v1beta1.OrganizationSettings; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; + +public class SyncUpdateOrganizationSettingsOrganizationsettings { + + public static void main(String[] args) throws Exception { + syncUpdateOrganizationSettingsOrganizationsettings(); + } + + public static void syncUpdateOrganizationSettingsOrganizationsettings() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + OrganizationSettings organizationSettings = OrganizationSettings.newBuilder().build(); + OrganizationSettings response = + securityCenterClient.updateOrganizationSettings(organizationSettings); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_updateorganizationsettings_organizationsettings_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java new file mode 100644 index 000000000..bb1bf78d0 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_updatesecuritymarks_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SecurityMarks; +import com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; + +public class AsyncUpdateSecurityMarks { + + public static void main(String[] args) throws Exception { + asyncUpdateSecurityMarks(); + } + + public static void asyncUpdateSecurityMarks() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + UpdateSecurityMarksRequest request = + UpdateSecurityMarksRequest.newBuilder() + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .build(); + ApiFuture future = + securityCenterClient.updateSecurityMarksCallable().futureCall(request); + // Do something. + SecurityMarks response = future.get(); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_updatesecuritymarks_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java new file mode 100644 index 000000000..b2b1fb54d --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_updatesecuritymarks_sync] +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SecurityMarks; +import com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; + +public class SyncUpdateSecurityMarks { + + public static void main(String[] args) throws Exception { + syncUpdateSecurityMarks(); + } + + public static void syncUpdateSecurityMarks() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + UpdateSecurityMarksRequest request = + UpdateSecurityMarksRequest.newBuilder() + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .build(); + SecurityMarks response = securityCenterClient.updateSecurityMarks(request); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_updatesecuritymarks_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java new file mode 100644 index 000000000..e4e31da05 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_updatesecuritymarks_securitymarks_sync] +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.SecurityMarks; + +public class SyncUpdateSecurityMarksSecuritymarks { + + public static void main(String[] args) throws Exception { + syncUpdateSecurityMarksSecuritymarks(); + } + + public static void syncUpdateSecurityMarksSecuritymarks() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + SecurityMarks securityMarks = SecurityMarks.newBuilder().build(); + SecurityMarks response = securityCenterClient.updateSecurityMarks(securityMarks); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_updatesecuritymarks_securitymarks_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/AsyncUpdateSource.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/AsyncUpdateSource.java new file mode 100644 index 000000000..784c7c0fe --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/AsyncUpdateSource.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_updatesource_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.Source; +import com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSource { + + public static void main(String[] args) throws Exception { + asyncUpdateSource(); + } + + public static void asyncUpdateSource() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + UpdateSourceRequest request = + UpdateSourceRequest.newBuilder() + .setSource(Source.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = securityCenterClient.updateSourceCallable().futureCall(request); + // Do something. + Source response = future.get(); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_updatesource_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/SyncUpdateSource.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/SyncUpdateSource.java new file mode 100644 index 000000000..68bb27920 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/SyncUpdateSource.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_updatesource_sync] +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.Source; +import com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSource { + + public static void main(String[] args) throws Exception { + syncUpdateSource(); + } + + public static void syncUpdateSource() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + UpdateSourceRequest request = + UpdateSourceRequest.newBuilder() + .setSource(Source.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Source response = securityCenterClient.updateSource(request); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_updatesource_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/SyncUpdateSourceSource.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/SyncUpdateSourceSource.java new file mode 100644 index 000000000..e5d3144cc --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/SyncUpdateSourceSource.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycenterclient_updatesource_source_sync] +import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1beta1.Source; + +public class SyncUpdateSourceSource { + + public static void main(String[] args) throws Exception { + syncUpdateSourceSource(); + } + + public static void syncUpdateSourceSource() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) { + Source source = Source.newBuilder().build(); + Source response = securityCenterClient.updateSource(source); + } + } +} +// [END securitycenter_v1beta1_generated_securitycenterclient_updatesource_source_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycentersettings/createsource/SyncCreateSource.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycentersettings/createsource/SyncCreateSource.java new file mode 100644 index 000000000..9a86b6633 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycentersettings/createsource/SyncCreateSource.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.samples; + +// [START securitycenter_v1beta1_generated_securitycentersettings_createsource_sync] +import com.google.cloud.securitycenter.v1beta1.SecurityCenterSettings; +import java.time.Duration; + +public class SyncCreateSource { + + public static void main(String[] args) throws Exception { + syncCreateSource(); + } + + public static void syncCreateSource() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SecurityCenterSettings.Builder securityCenterSettingsBuilder = + SecurityCenterSettings.newBuilder(); + securityCenterSettingsBuilder + .createSourceSettings() + .setRetrySettings( + securityCenterSettingsBuilder + .createSourceSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SecurityCenterSettings securityCenterSettings = securityCenterSettingsBuilder.build(); + } +} +// [END securitycenter_v1beta1_generated_securitycentersettings_createsource_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java new file mode 100644 index 000000000..cde1aaa10 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1beta1.stub.samples; + +// [START securitycenter_v1beta1_generated_securitycenterstubsettings_createsource_sync] +import com.google.cloud.securitycenter.v1beta1.stub.SecurityCenterStubSettings; +import java.time.Duration; + +public class SyncCreateSource { + + public static void main(String[] args) throws Exception { + syncCreateSource(); + } + + public static void syncCreateSource() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SecurityCenterStubSettings.Builder securityCenterSettingsBuilder = + SecurityCenterStubSettings.newBuilder(); + securityCenterSettingsBuilder + .createSourceSettings() + .setRetrySettings( + securityCenterSettingsBuilder + .createSourceSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SecurityCenterStubSettings securityCenterSettings = securityCenterSettingsBuilder.build(); + } +} +// [END securitycenter_v1beta1_generated_securitycenterstubsettings_createsource_sync] diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClient.java b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClient.java similarity index 97% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClient.java rename to owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClient.java index 65812b11c..fca58701a 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClient.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClient.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; @@ -37,7 +38,6 @@ import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; @@ -70,13 +70,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -111,6 +111,20 @@ * SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings); * }
* + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * SecurityCenterSettings securityCenterSettings =
+ *     SecurityCenterSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             SecurityCenterSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi @@ -118,7 +132,8 @@ public class SecurityCenterClient implements BackgroundResource { private final SecurityCenterSettings settings; private final SecurityCenterStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of SecurityCenterClient with default settings. */ public static final SecurityCenterClient create() throws IOException { @@ -150,13 +165,17 @@ public static final SecurityCenterClient create(SecurityCenterStub stub) { protected SecurityCenterClient(SecurityCenterSettings settings) throws IOException { this.settings = settings; this.stub = ((SecurityCenterStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected SecurityCenterClient(SecurityCenterStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final SecurityCenterSettings getSettings() { @@ -171,10 +190,18 @@ public SecurityCenterStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a source. @@ -1331,15 +1358,15 @@ public final UnaryCallable groupAssetsC * of fields. For example: "parent,resource_name". *

The following fields are supported: *

    - *
  • resource_name - *
  • category - *
  • state - *
  • parent - *
  • severity + *
  • resource_name + *
  • category + *
  • state + *
  • parent + *
  • severity *
*

The following fields are supported when compare_duration is set: *

    - *
  • state_change + *
  • state_change *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1386,15 +1413,15 @@ public final GroupFindingsPagedResponse groupFindings(SourceName parent, String * of fields. For example: "parent,resource_name". *

The following fields are supported: *

    - *
  • resource_name - *
  • category - *
  • state - *
  • parent - *
  • severity + *
  • resource_name + *
  • category + *
  • state + *
  • parent + *
  • severity *
*

The following fields are supported when compare_duration is set: *

    - *
  • state_change + *
  • state_change *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -3378,10 +3405,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class GroupAssetsPagedResponse extends AbstractPagedListResponse< - GroupAssetsRequest, - GroupAssetsResponse, - GroupResult, - GroupAssetsPage, + GroupAssetsRequest, GroupAssetsResponse, GroupResult, GroupAssetsPage, GroupAssetsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3428,10 +3452,7 @@ public ApiFuture createPageAsync( public static class GroupAssetsFixedSizeCollection extends AbstractFixedSizeCollection< - GroupAssetsRequest, - GroupAssetsResponse, - GroupResult, - GroupAssetsPage, + GroupAssetsRequest, GroupAssetsResponse, GroupResult, GroupAssetsPage, GroupAssetsFixedSizeCollection> { private GroupAssetsFixedSizeCollection(List pages, int collectionSize) { @@ -3451,10 +3472,7 @@ protected GroupAssetsFixedSizeCollection createCollection( public static class GroupFindingsPagedResponse extends AbstractPagedListResponse< - GroupFindingsRequest, - GroupFindingsResponse, - GroupResult, - GroupFindingsPage, + GroupFindingsRequest, GroupFindingsResponse, GroupResult, GroupFindingsPage, GroupFindingsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3504,10 +3522,7 @@ public ApiFuture createPageAsync( public static class GroupFindingsFixedSizeCollection extends AbstractFixedSizeCollection< - GroupFindingsRequest, - GroupFindingsResponse, - GroupResult, - GroupFindingsPage, + GroupFindingsRequest, GroupFindingsResponse, GroupResult, GroupFindingsPage, GroupFindingsFixedSizeCollection> { private GroupFindingsFixedSizeCollection(List pages, int collectionSize) { @@ -3527,11 +3542,8 @@ protected GroupFindingsFixedSizeCollection createCollection( public static class ListAssetsPagedResponse extends AbstractPagedListResponse< - ListAssetsRequest, - ListAssetsResponse, - ListAssetsResponse.ListAssetsResult, - ListAssetsPage, - ListAssetsFixedSizeCollection> { + ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult, + ListAssetsPage, ListAssetsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -3550,9 +3562,7 @@ private ListAssetsPagedResponse(ListAssetsPage page) { public static class ListAssetsPage extends AbstractPage< - ListAssetsRequest, - ListAssetsResponse, - ListAssetsResponse.ListAssetsResult, + ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult, ListAssetsPage> { private ListAssetsPage( @@ -3585,11 +3595,8 @@ public ApiFuture createPageAsync( public static class ListAssetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListAssetsRequest, - ListAssetsResponse, - ListAssetsResponse.ListAssetsResult, - ListAssetsPage, - ListAssetsFixedSizeCollection> { + ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult, + ListAssetsPage, ListAssetsFixedSizeCollection> { private ListAssetsFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); @@ -3608,11 +3615,8 @@ protected ListAssetsFixedSizeCollection createCollection( public static class ListFindingsPagedResponse extends AbstractPagedListResponse< - ListFindingsRequest, - ListFindingsResponse, - ListFindingsResponse.ListFindingsResult, - ListFindingsPage, - ListFindingsFixedSizeCollection> { + ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult, + ListFindingsPage, ListFindingsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< @@ -3634,9 +3638,7 @@ private ListFindingsPagedResponse(ListFindingsPage page) { public static class ListFindingsPage extends AbstractPage< - ListFindingsRequest, - ListFindingsResponse, - ListFindingsResponse.ListFindingsResult, + ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult, ListFindingsPage> { private ListFindingsPage( @@ -3672,11 +3674,8 @@ public ApiFuture createPageAsync( public static class ListFindingsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFindingsRequest, - ListFindingsResponse, - ListFindingsResponse.ListFindingsResult, - ListFindingsPage, - ListFindingsFixedSizeCollection> { + ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult, + ListFindingsPage, ListFindingsFixedSizeCollection> { private ListFindingsFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); @@ -3695,11 +3694,8 @@ protected ListFindingsFixedSizeCollection createCollection( public static class ListNotificationConfigsPagedResponse extends AbstractPagedListResponse< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, - NotificationConfig, - ListNotificationConfigsPage, - ListNotificationConfigsFixedSizeCollection> { + ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig, + ListNotificationConfigsPage, ListNotificationConfigsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< @@ -3721,9 +3717,7 @@ private ListNotificationConfigsPagedResponse(ListNotificationConfigsPage page) { public static class ListNotificationConfigsPage extends AbstractPage< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, - NotificationConfig, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig, ListNotificationConfigsPage> { private ListNotificationConfigsPage( @@ -3759,11 +3753,8 @@ public ApiFuture createPageAsync( public static class ListNotificationConfigsFixedSizeCollection extends AbstractFixedSizeCollection< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, - NotificationConfig, - ListNotificationConfigsPage, - ListNotificationConfigsFixedSizeCollection> { + ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig, + ListNotificationConfigsPage, ListNotificationConfigsFixedSizeCollection> { private ListNotificationConfigsFixedSizeCollection( List pages, int collectionSize) { @@ -3783,10 +3774,7 @@ protected ListNotificationConfigsFixedSizeCollection createCollection( public static class ListSourcesPagedResponse extends AbstractPagedListResponse< - ListSourcesRequest, - ListSourcesResponse, - Source, - ListSourcesPage, + ListSourcesRequest, ListSourcesResponse, Source, ListSourcesPage, ListSourcesFixedSizeCollection> { public static ApiFuture createAsync( @@ -3833,10 +3821,7 @@ public ApiFuture createPageAsync( public static class ListSourcesFixedSizeCollection extends AbstractFixedSizeCollection< - ListSourcesRequest, - ListSourcesResponse, - Source, - ListSourcesPage, + ListSourcesRequest, ListSourcesResponse, Source, ListSourcesPage, ListSourcesFixedSizeCollection> { private ListSourcesFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterSettings.java b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterSettings.java similarity index 94% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterSettings.java rename to owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterSettings.java index b831cccc7..92a983a26 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterSettings.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterSettings.java @@ -28,11 +28,13 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.securitycenter.v1p1beta1.stub.SecurityCenterStubSettings; @@ -54,10 +56,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (securitycenter.googleapis.com) and default port (443) are + *
  • The default service address (securitycenter.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -156,8 +158,7 @@ public UnaryCallSettings getSourceSettings() { /** Returns the object with the settings used for calls to listNotificationConfigs. */ public PagedCallSettings< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings() { return ((SecurityCenterStubSettings) getStubSettings()).listNotificationConfigsSettings(); @@ -249,11 +250,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return SecurityCenterStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return SecurityCenterStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SecurityCenterStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return SecurityCenterStubSettings.defaultTransportChannelProvider(); } @@ -263,11 +271,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return SecurityCenterStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -305,6 +319,11 @@ private static Builder createDefault() { return new Builder(SecurityCenterStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(SecurityCenterStubSettings.newHttpJsonBuilder()); + } + public SecurityCenterStubSettings.Builder getStubSettingsBuilder() { return ((SecurityCenterStubSettings.Builder) getStubSettings()); } @@ -394,8 +413,7 @@ public UnaryCallSettings.Builder getSourceSettings() { /** Returns the builder for the settings used for calls to listNotificationConfigs. */ public PagedCallSettings.Builder< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings() { return getStubSettingsBuilder().listNotificationConfigsSettings(); diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/gapic_metadata.json b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/gapic_metadata.json similarity index 100% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/gapic_metadata.json rename to owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/gapic_metadata.json diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/package-info.java b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/package-info.java similarity index 100% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/package-info.java rename to owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/package-info.java diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterCallableFactory.java b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterCallableFactory.java similarity index 100% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterCallableFactory.java rename to owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterCallableFactory.java diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java similarity index 99% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java rename to owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java index 9030034ef..2e239c14a 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java @@ -75,6 +75,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/HttpJsonSecurityCenterCallableFactory.java b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/HttpJsonSecurityCenterCallableFactory.java new file mode 100644 index 000000000..3c34c9820 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/HttpJsonSecurityCenterCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1p1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the SecurityCenter service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSecurityCenterCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/HttpJsonSecurityCenterStub.java b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/HttpJsonSecurityCenterStub.java new file mode 100644 index 000000000..8e4ef11fe --- /dev/null +++ b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/HttpJsonSecurityCenterStub.java @@ -0,0 +1,1560 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1p1beta1.stub; + +import static com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient.GroupAssetsPagedResponse; +import static com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient.GroupFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient.ListAssetsPagedResponse; +import static com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient.ListFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient.ListNotificationConfigsPagedResponse; +import static com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient.ListSourcesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest; +import com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest; +import com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest; +import com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest; +import com.google.cloud.securitycenter.v1p1beta1.Finding; +import com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest; +import com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest; +import com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest; +import com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse; +import com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest; +import com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse; +import com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest; +import com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse; +import com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest; +import com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse; +import com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest; +import com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse; +import com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest; +import com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse; +import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig; +import com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings; +import com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest; +import com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse; +import com.google.cloud.securitycenter.v1p1beta1.SecurityMarks; +import com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest; +import com.google.cloud.securitycenter.v1p1beta1.Source; +import com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest; +import com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest; +import com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest; +import com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the SecurityCenter service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSecurityCenterStub extends SecurityCenterStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(RunAssetDiscoveryResponse.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + createSourceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1p1beta1.SecurityCenter/CreateSource") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{parent=organizations/*}/sources", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("source", request.getSource())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Source.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createFindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1p1beta1.SecurityCenter/CreateFinding") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{parent=organizations/*/sources/*}/findings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "findingId", request.getFindingId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("finding", request.getFinding())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Finding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createNotificationConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1p1beta1.SecurityCenter/CreateNotificationConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{parent=organizations/*}/notificationConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "configId", request.getConfigId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("notificationConfig", request.getNotificationConfig())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(NotificationConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteNotificationConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1p1beta1.SecurityCenter/DeleteNotificationConfig") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{name=organizations/*/notificationConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1p1beta1.SecurityCenter/GetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{resource=organizations/*/sources/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getNotificationConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1p1beta1.SecurityCenter/GetNotificationConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{name=organizations/*/notificationConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(NotificationConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getOrganizationSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1p1beta1.SecurityCenter/GetOrganizationSettings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{name=organizations/*/organizationSettings}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(OrganizationSettings.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getSourceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1p1beta1.SecurityCenter/GetSource") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{name=organizations/*/sources/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Source.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + groupAssetsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1p1beta1.SecurityCenter/GroupAssets") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{parent=organizations/*}/assets:group", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1p1beta1/{parent=folders/*}/assets:group", + "/v1p1beta1/{parent=projects/*}/assets:group") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(GroupAssetsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + groupFindingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1p1beta1.SecurityCenter/GroupFindings") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{parent=organizations/*/sources/*}/findings:group", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1p1beta1/{parent=folders/*/sources/*}/findings:group", + "/v1p1beta1/{parent=projects/*/sources/*}/findings:group") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(GroupFindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listAssetsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1p1beta1.SecurityCenter/ListAssets") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{parent=organizations/*}/assets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1p1beta1/{parent=folders/*}/assets", + "/v1p1beta1/{parent=projects/*}/assets") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "compareDuration", request.getCompareDuration()); + serializer.putQueryParam(fields, "fieldMask", request.getFieldMask()); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "readTime", request.getReadTime()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAssetsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listFindingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1p1beta1.SecurityCenter/ListFindings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{parent=organizations/*/sources/*}/findings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1p1beta1/{parent=folders/*/sources/*}/findings", + "/v1p1beta1/{parent=projects/*/sources/*}/findings") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "compareDuration", request.getCompareDuration()); + serializer.putQueryParam(fields, "fieldMask", request.getFieldMask()); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "readTime", request.getReadTime()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListFindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListNotificationConfigsRequest, ListNotificationConfigsResponse> + listNotificationConfigsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1p1beta1.SecurityCenter/ListNotificationConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{parent=organizations/*}/notificationConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListNotificationConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listSourcesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.securitycenter.v1p1beta1.SecurityCenter/ListSources") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{parent=organizations/*}/sources", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1p1beta1/{parent=folders/*}/sources", + "/v1p1beta1/{parent=projects/*}/sources") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSourcesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + runAssetDiscoveryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1p1beta1.SecurityCenter/RunAssetDiscovery") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{parent=organizations/*}/assets:runDiscovery", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (RunAssetDiscoveryRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + setFindingStateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1p1beta1.SecurityCenter/SetFindingState") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{name=organizations/*/sources/*/findings/*}:setState", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1p1beta1/{name=folders/*/sources/*/findings/*}:setState", + "/v1p1beta1/{name=projects/*/sources/*/findings/*}:setState") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Finding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1p1beta1.SecurityCenter/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{resource=organizations/*/sources/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1p1beta1.SecurityCenter/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{resource=organizations/*/sources/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateFindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1p1beta1.SecurityCenter/UpdateFinding") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{finding.name=organizations/*/sources/*/findings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "finding.name", request.getFinding().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1p1beta1/{finding.name=folders/*/sources/*/findings/*}", + "/v1p1beta1/{finding.name=projects/*/sources/*/findings/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("finding", request.getFinding())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Finding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateNotificationConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1p1beta1.SecurityCenter/UpdateNotificationConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{notificationConfig.name=organizations/*/notificationConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "notificationConfig.name", + request.getNotificationConfig().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("notificationConfig", request.getNotificationConfig())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(NotificationConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateOrganizationSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1p1beta1.SecurityCenter/UpdateOrganizationSettings") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{organizationSettings.name=organizations/*/organizationSettings}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "organizationSettings.name", + request.getOrganizationSettings().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "organizationSettings", request.getOrganizationSettings())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(OrganizationSettings.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateSourceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1p1beta1.SecurityCenter/UpdateSource") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{source.name=organizations/*/sources/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "source.name", request.getSource().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("source", request.getSource())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Source.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateSecurityMarksMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1p1beta1.SecurityCenter/UpdateSecurityMarks") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{securityMarks.name=organizations/*/assets/*/securityMarks}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "securityMarks.name", request.getSecurityMarks().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1p1beta1/{securityMarks.name=folders/*/assets/*/securityMarks}", + "/v1p1beta1/{securityMarks.name=projects/*/assets/*/securityMarks}", + "/v1p1beta1/{securityMarks.name=organizations/*/sources/*/findings/*/securityMarks}", + "/v1p1beta1/{securityMarks.name=folders/*/sources/*/findings/*/securityMarks}", + "/v1p1beta1/{securityMarks.name=projects/*/sources/*/findings/*/securityMarks}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "startTime", request.getStartTime()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("securityMarks", request.getSecurityMarks())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SecurityMarks.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createSourceCallable; + private final UnaryCallable createFindingCallable; + private final UnaryCallable + createNotificationConfigCallable; + private final UnaryCallable + deleteNotificationConfigCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + getNotificationConfigCallable; + private final UnaryCallable + getOrganizationSettingsCallable; + private final UnaryCallable getSourceCallable; + private final UnaryCallable groupAssetsCallable; + private final UnaryCallable + groupAssetsPagedCallable; + private final UnaryCallable groupFindingsCallable; + private final UnaryCallable + groupFindingsPagedCallable; + private final UnaryCallable listAssetsCallable; + private final UnaryCallable listAssetsPagedCallable; + private final UnaryCallable listFindingsCallable; + private final UnaryCallable + listFindingsPagedCallable; + private final UnaryCallable + listNotificationConfigsCallable; + private final UnaryCallable + listNotificationConfigsPagedCallable; + private final UnaryCallable listSourcesCallable; + private final UnaryCallable + listSourcesPagedCallable; + private final UnaryCallable runAssetDiscoveryCallable; + private final OperationCallable + runAssetDiscoveryOperationCallable; + private final UnaryCallable setFindingStateCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + private final UnaryCallable updateFindingCallable; + private final UnaryCallable + updateNotificationConfigCallable; + private final UnaryCallable + updateOrganizationSettingsCallable; + private final UnaryCallable updateSourceCallable; + private final UnaryCallable + updateSecurityMarksCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSecurityCenterStub create(SecurityCenterStubSettings settings) + throws IOException { + return new HttpJsonSecurityCenterStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSecurityCenterStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSecurityCenterStub( + SecurityCenterStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSecurityCenterStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSecurityCenterStub( + SecurityCenterStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonSecurityCenterStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSecurityCenterStub( + SecurityCenterStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonSecurityCenterCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSecurityCenterStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSecurityCenterStub( + SecurityCenterStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings createSourceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSourceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createFindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createFindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createNotificationConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createNotificationConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteNotificationConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteNotificationConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getNotificationConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getNotificationConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getOrganizationSettingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getOrganizationSettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getSourceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSourceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings groupAssetsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(groupAssetsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + groupFindingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(groupFindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listAssetsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAssetsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listFindingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listFindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listNotificationConfigsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listNotificationConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listSourcesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSourcesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings runAssetDiscoveryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(runAssetDiscoveryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setFindingStateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setFindingStateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateFindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateFindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateNotificationConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateNotificationConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateOrganizationSettingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(updateOrganizationSettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateSourceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSourceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateSecurityMarksTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSecurityMarksMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createSourceCallable = + callableFactory.createUnaryCallable( + createSourceTransportSettings, settings.createSourceSettings(), clientContext); + this.createFindingCallable = + callableFactory.createUnaryCallable( + createFindingTransportSettings, settings.createFindingSettings(), clientContext); + this.createNotificationConfigCallable = + callableFactory.createUnaryCallable( + createNotificationConfigTransportSettings, + settings.createNotificationConfigSettings(), + clientContext); + this.deleteNotificationConfigCallable = + callableFactory.createUnaryCallable( + deleteNotificationConfigTransportSettings, + settings.deleteNotificationConfigSettings(), + clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.getNotificationConfigCallable = + callableFactory.createUnaryCallable( + getNotificationConfigTransportSettings, + settings.getNotificationConfigSettings(), + clientContext); + this.getOrganizationSettingsCallable = + callableFactory.createUnaryCallable( + getOrganizationSettingsTransportSettings, + settings.getOrganizationSettingsSettings(), + clientContext); + this.getSourceCallable = + callableFactory.createUnaryCallable( + getSourceTransportSettings, settings.getSourceSettings(), clientContext); + this.groupAssetsCallable = + callableFactory.createUnaryCallable( + groupAssetsTransportSettings, settings.groupAssetsSettings(), clientContext); + this.groupAssetsPagedCallable = + callableFactory.createPagedCallable( + groupAssetsTransportSettings, settings.groupAssetsSettings(), clientContext); + this.groupFindingsCallable = + callableFactory.createUnaryCallable( + groupFindingsTransportSettings, settings.groupFindingsSettings(), clientContext); + this.groupFindingsPagedCallable = + callableFactory.createPagedCallable( + groupFindingsTransportSettings, settings.groupFindingsSettings(), clientContext); + this.listAssetsCallable = + callableFactory.createUnaryCallable( + listAssetsTransportSettings, settings.listAssetsSettings(), clientContext); + this.listAssetsPagedCallable = + callableFactory.createPagedCallable( + listAssetsTransportSettings, settings.listAssetsSettings(), clientContext); + this.listFindingsCallable = + callableFactory.createUnaryCallable( + listFindingsTransportSettings, settings.listFindingsSettings(), clientContext); + this.listFindingsPagedCallable = + callableFactory.createPagedCallable( + listFindingsTransportSettings, settings.listFindingsSettings(), clientContext); + this.listNotificationConfigsCallable = + callableFactory.createUnaryCallable( + listNotificationConfigsTransportSettings, + settings.listNotificationConfigsSettings(), + clientContext); + this.listNotificationConfigsPagedCallable = + callableFactory.createPagedCallable( + listNotificationConfigsTransportSettings, + settings.listNotificationConfigsSettings(), + clientContext); + this.listSourcesCallable = + callableFactory.createUnaryCallable( + listSourcesTransportSettings, settings.listSourcesSettings(), clientContext); + this.listSourcesPagedCallable = + callableFactory.createPagedCallable( + listSourcesTransportSettings, settings.listSourcesSettings(), clientContext); + this.runAssetDiscoveryCallable = + callableFactory.createUnaryCallable( + runAssetDiscoveryTransportSettings, + settings.runAssetDiscoverySettings(), + clientContext); + this.runAssetDiscoveryOperationCallable = + callableFactory.createOperationCallable( + runAssetDiscoveryTransportSettings, + settings.runAssetDiscoveryOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.setFindingStateCallable = + callableFactory.createUnaryCallable( + setFindingStateTransportSettings, settings.setFindingStateSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + this.updateFindingCallable = + callableFactory.createUnaryCallable( + updateFindingTransportSettings, settings.updateFindingSettings(), clientContext); + this.updateNotificationConfigCallable = + callableFactory.createUnaryCallable( + updateNotificationConfigTransportSettings, + settings.updateNotificationConfigSettings(), + clientContext); + this.updateOrganizationSettingsCallable = + callableFactory.createUnaryCallable( + updateOrganizationSettingsTransportSettings, + settings.updateOrganizationSettingsSettings(), + clientContext); + this.updateSourceCallable = + callableFactory.createUnaryCallable( + updateSourceTransportSettings, settings.updateSourceSettings(), clientContext); + this.updateSecurityMarksCallable = + callableFactory.createUnaryCallable( + updateSecurityMarksTransportSettings, + settings.updateSecurityMarksSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createSourceMethodDescriptor); + methodDescriptors.add(createFindingMethodDescriptor); + methodDescriptors.add(createNotificationConfigMethodDescriptor); + methodDescriptors.add(deleteNotificationConfigMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(getNotificationConfigMethodDescriptor); + methodDescriptors.add(getOrganizationSettingsMethodDescriptor); + methodDescriptors.add(getSourceMethodDescriptor); + methodDescriptors.add(groupAssetsMethodDescriptor); + methodDescriptors.add(groupFindingsMethodDescriptor); + methodDescriptors.add(listAssetsMethodDescriptor); + methodDescriptors.add(listFindingsMethodDescriptor); + methodDescriptors.add(listNotificationConfigsMethodDescriptor); + methodDescriptors.add(listSourcesMethodDescriptor); + methodDescriptors.add(runAssetDiscoveryMethodDescriptor); + methodDescriptors.add(setFindingStateMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + methodDescriptors.add(updateFindingMethodDescriptor); + methodDescriptors.add(updateNotificationConfigMethodDescriptor); + methodDescriptors.add(updateOrganizationSettingsMethodDescriptor); + methodDescriptors.add(updateSourceMethodDescriptor); + methodDescriptors.add(updateSecurityMarksMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable createSourceCallable() { + return createSourceCallable; + } + + @Override + public UnaryCallable createFindingCallable() { + return createFindingCallable; + } + + @Override + public UnaryCallable + createNotificationConfigCallable() { + return createNotificationConfigCallable; + } + + @Override + public UnaryCallable deleteNotificationConfigCallable() { + return deleteNotificationConfigCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + getNotificationConfigCallable() { + return getNotificationConfigCallable; + } + + @Override + public UnaryCallable + getOrganizationSettingsCallable() { + return getOrganizationSettingsCallable; + } + + @Override + public UnaryCallable getSourceCallable() { + return getSourceCallable; + } + + @Override + public UnaryCallable groupAssetsCallable() { + return groupAssetsCallable; + } + + @Override + public UnaryCallable groupAssetsPagedCallable() { + return groupAssetsPagedCallable; + } + + @Override + public UnaryCallable groupFindingsCallable() { + return groupFindingsCallable; + } + + @Override + public UnaryCallable + groupFindingsPagedCallable() { + return groupFindingsPagedCallable; + } + + @Override + public UnaryCallable listAssetsCallable() { + return listAssetsCallable; + } + + @Override + public UnaryCallable listAssetsPagedCallable() { + return listAssetsPagedCallable; + } + + @Override + public UnaryCallable listFindingsCallable() { + return listFindingsCallable; + } + + @Override + public UnaryCallable listFindingsPagedCallable() { + return listFindingsPagedCallable; + } + + @Override + public UnaryCallable + listNotificationConfigsCallable() { + return listNotificationConfigsCallable; + } + + @Override + public UnaryCallable + listNotificationConfigsPagedCallable() { + return listNotificationConfigsPagedCallable; + } + + @Override + public UnaryCallable listSourcesCallable() { + return listSourcesCallable; + } + + @Override + public UnaryCallable listSourcesPagedCallable() { + return listSourcesPagedCallable; + } + + @Override + public UnaryCallable runAssetDiscoveryCallable() { + return runAssetDiscoveryCallable; + } + + @Override + public OperationCallable + runAssetDiscoveryOperationCallable() { + return runAssetDiscoveryOperationCallable; + } + + @Override + public UnaryCallable setFindingStateCallable() { + return setFindingStateCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public UnaryCallable updateFindingCallable() { + return updateFindingCallable; + } + + @Override + public UnaryCallable + updateNotificationConfigCallable() { + return updateNotificationConfigCallable; + } + + @Override + public UnaryCallable + updateOrganizationSettingsCallable() { + return updateOrganizationSettingsCallable; + } + + @Override + public UnaryCallable updateSourceCallable() { + return updateSourceCallable; + } + + @Override + public UnaryCallable updateSecurityMarksCallable() { + return updateSecurityMarksCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java similarity index 98% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java rename to owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java index d3a5bcc5f..930803f2b 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java @@ -80,7 +80,11 @@ public abstract class SecurityCenterStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public UnaryCallable createSourceCallable() { diff --git a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java similarity index 94% rename from google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java rename to owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java index 3c814f310..17e6c3c40 100644 --- a/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java @@ -33,6 +33,9 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; @@ -105,10 +108,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (securitycenter.googleapis.com) and default port (443) are + *
  • The default service address (securitycenter.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -163,8 +166,7 @@ public class SecurityCenterStubSettings extends StubSettings listFindingsSettings; private final PagedCallSettings< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings; private final PagedCallSettings @@ -300,8 +302,7 @@ public Iterable extractResources( ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult> LIST_FINDINGS_PAGE_STR_DESC = new PagedListDescriptor< - ListFindingsRequest, - ListFindingsResponse, + ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult>() { @Override public String emptyToken() { @@ -341,8 +342,7 @@ public Iterable extractResources( ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig> LIST_NOTIFICATION_CONFIGS_PAGE_STR_DESC = new PagedListDescriptor< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig>() { @Override public String emptyToken() { @@ -483,8 +483,7 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListFindingsRequest, - ListFindingsResponse, + ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult> pageContext = PageContext.create(callable, LIST_FINDINGS_PAGE_STR_DESC, request, context); @@ -493,13 +492,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> LIST_NOTIFICATION_CONFIGS_PAGE_STR_FACT = new PagedListResponseFactory< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -509,8 +506,7 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig> pageContext = PageContext.create( @@ -606,8 +602,7 @@ public UnaryCallSettings getSourceSettings() { /** Returns the object with the settings used for calls to listNotificationConfigs. */ public PagedCallSettings< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings() { return listNotificationConfigsSettings; @@ -680,6 +675,11 @@ public SecurityCenterStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcSecurityCenterStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSecurityCenterStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -712,18 +712,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(SecurityCenterStubSettings.class)) @@ -731,11 +738,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SecurityCenterStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SecurityCenterStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -805,8 +831,7 @@ public static class Builder extends StubSettings.Builder listFindingsSettings; private final PagedCallSettings.Builder< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings; private final PagedCallSettings.Builder< @@ -1028,6 +1053,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createSourceSettings() @@ -1260,8 +1298,7 @@ public UnaryCallSettings.Builder getSourceSettings() { /** Returns the builder for the settings used for calls to listNotificationConfigs. */ public PagedCallSettings.Builder< - ListNotificationConfigsRequest, - ListNotificationConfigsResponse, + ListNotificationConfigsRequest, ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings() { return listNotificationConfigsSettings; diff --git a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/MockSecurityCenter.java b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/MockSecurityCenter.java similarity index 100% rename from google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/MockSecurityCenter.java rename to owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/MockSecurityCenter.java diff --git a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/MockSecurityCenterImpl.java b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/MockSecurityCenterImpl.java similarity index 100% rename from google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/MockSecurityCenterImpl.java rename to owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/MockSecurityCenterImpl.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientHttpJsonTest.java b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientHttpJsonTest.java new file mode 100644 index 000000000..dce80265b --- /dev/null +++ b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientHttpJsonTest.java @@ -0,0 +1,2880 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1p1beta1; + +import static com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient.GroupAssetsPagedResponse; +import static com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient.GroupFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient.ListAssetsPagedResponse; +import static com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient.ListFindingsPagedResponse; +import static com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient.ListNotificationConfigsPagedResponse; +import static com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient.ListSourcesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.securitycenter.v1p1beta1.stub.HttpJsonSecurityCenterStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.Policy; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Duration; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.protobuf.Value; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SecurityCenterClientHttpJsonTest { + private static MockHttpService mockService; + private static SecurityCenterClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSecurityCenterStub.getMethodDescriptors(), + SecurityCenterSettings.getDefaultEndpoint()); + SecurityCenterSettings settings = + SecurityCenterSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SecurityCenterSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SecurityCenterClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createSourceTest() throws Exception { + Source expectedResponse = + Source.newBuilder() + .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + Source source = Source.newBuilder().build(); + + Source actualResponse = client.createSource(parent, source); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSourceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + Source source = Source.newBuilder().build(); + client.createSource(parent, source); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSourceTest2() throws Exception { + Source expectedResponse = + Source.newBuilder() + .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8287"; + Source source = Source.newBuilder().build(); + + Source actualResponse = client.createSource(parent, source); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSourceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + Source source = Source.newBuilder().build(); + client.createSource(parent, source); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFindingTest() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + Finding finding = Finding.newBuilder().build(); + String findingId = "findingId439150212"; + + Finding actualResponse = client.createFinding(parent, finding, findingId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createFindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + Finding finding = Finding.newBuilder().build(); + String findingId = "findingId439150212"; + client.createFinding(parent, finding, findingId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFindingTest2() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + String findingId = "findingId439150212"; + Finding finding = Finding.newBuilder().build(); + + Finding actualResponse = client.createFinding(parent, findingId, finding); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createFindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + String findingId = "findingId439150212"; + Finding finding = Finding.newBuilder().build(); + client.createFinding(parent, findingId, finding); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFindingTest3() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8741/sources/source-8741"; + Finding finding = Finding.newBuilder().build(); + String findingId = "findingId439150212"; + + Finding actualResponse = client.createFinding(parent, finding, findingId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createFindingExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8741/sources/source-8741"; + Finding finding = Finding.newBuilder().build(); + String findingId = "findingId439150212"; + client.createFinding(parent, finding, findingId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFindingTest4() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8741/sources/source-8741"; + String findingId = "findingId439150212"; + Finding finding = Finding.newBuilder().build(); + + Finding actualResponse = client.createFinding(parent, findingId, finding); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createFindingExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8741/sources/source-8741"; + String findingId = "findingId439150212"; + Finding finding = Finding.newBuilder().build(); + client.createFinding(parent, findingId, finding); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createNotificationConfigTest() throws Exception { + NotificationConfig expectedResponse = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + NotificationConfig notificationConfig = NotificationConfig.newBuilder().build(); + + NotificationConfig actualResponse = client.createNotificationConfig(parent, notificationConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createNotificationConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + NotificationConfig notificationConfig = NotificationConfig.newBuilder().build(); + client.createNotificationConfig(parent, notificationConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createNotificationConfigTest2() throws Exception { + NotificationConfig expectedResponse = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8287"; + NotificationConfig notificationConfig = NotificationConfig.newBuilder().build(); + + NotificationConfig actualResponse = client.createNotificationConfig(parent, notificationConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createNotificationConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + NotificationConfig notificationConfig = NotificationConfig.newBuilder().build(); + client.createNotificationConfig(parent, notificationConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createNotificationConfigTest3() throws Exception { + NotificationConfig expectedResponse = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + String configId = "configId-580140035"; + NotificationConfig notificationConfig = NotificationConfig.newBuilder().build(); + + NotificationConfig actualResponse = + client.createNotificationConfig(parent, configId, notificationConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createNotificationConfigExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + String configId = "configId-580140035"; + NotificationConfig notificationConfig = NotificationConfig.newBuilder().build(); + client.createNotificationConfig(parent, configId, notificationConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createNotificationConfigTest4() throws Exception { + NotificationConfig expectedResponse = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8287"; + String configId = "configId-580140035"; + NotificationConfig notificationConfig = NotificationConfig.newBuilder().build(); + + NotificationConfig actualResponse = + client.createNotificationConfig(parent, configId, notificationConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createNotificationConfigExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + String configId = "configId-580140035"; + NotificationConfig notificationConfig = NotificationConfig.newBuilder().build(); + client.createNotificationConfig(parent, configId, notificationConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteNotificationConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + NotificationConfigName name = + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"); + + client.deleteNotificationConfig(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteNotificationConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NotificationConfigName name = + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"); + client.deleteNotificationConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteNotificationConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-7374/notificationConfigs/notificationConfig-7374"; + + client.deleteNotificationConfig(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteNotificationConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "organizations/organization-7374/notificationConfigs/notificationConfig-7374"; + client.deleteNotificationConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "organizations/organization-3393/sources/source-3393"; + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "organizations/organization-3393/sources/source-3393"; + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNotificationConfigTest() throws Exception { + NotificationConfig expectedResponse = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + mockService.addResponse(expectedResponse); + + NotificationConfigName name = + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"); + + NotificationConfig actualResponse = client.getNotificationConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getNotificationConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NotificationConfigName name = + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]"); + client.getNotificationConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNotificationConfigTest2() throws Exception { + NotificationConfig expectedResponse = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-7374/notificationConfigs/notificationConfig-7374"; + + NotificationConfig actualResponse = client.getNotificationConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getNotificationConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "organizations/organization-7374/notificationConfigs/notificationConfig-7374"; + client.getNotificationConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOrganizationSettingsTest() throws Exception { + OrganizationSettings expectedResponse = + OrganizationSettings.newBuilder() + .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString()) + .setEnableAssetDiscovery(true) + .setAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationSettingsName name = OrganizationSettingsName.of("[ORGANIZATION]"); + + OrganizationSettings actualResponse = client.getOrganizationSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getOrganizationSettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationSettingsName name = OrganizationSettingsName.of("[ORGANIZATION]"); + client.getOrganizationSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOrganizationSettingsTest2() throws Exception { + OrganizationSettings expectedResponse = + OrganizationSettings.newBuilder() + .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString()) + .setEnableAssetDiscovery(true) + .setAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-9995/organizationSettings"; + + OrganizationSettings actualResponse = client.getOrganizationSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getOrganizationSettingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "organizations/organization-9995/organizationSettings"; + client.getOrganizationSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSourceTest() throws Exception { + Source expectedResponse = + Source.newBuilder() + .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + SourceName name = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + + Source actualResponse = client.getSource(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSourceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SourceName name = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + client.getSource(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSourceTest2() throws Exception { + Source expectedResponse = + Source.newBuilder() + .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-7292/sources/source-7292"; + + Source actualResponse = client.getSource(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSourceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "organizations/organization-7292/sources/source-7292"; + client.getSource(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void groupAssetsTest() throws Exception { + GroupResult responsesElement = GroupResult.newBuilder().build(); + GroupAssetsResponse expectedResponse = + GroupAssetsResponse.newBuilder() + .setNextPageToken("") + .addAllGroupByResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + GroupAssetsRequest request = + GroupAssetsRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setFilter("filter-1274492040") + .setGroupBy("groupBy293428022") + .setCompareDuration(Duration.newBuilder().build()) + .setReadTime(Timestamp.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + + GroupAssetsPagedResponse pagedListResponse = client.groupAssets(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGroupByResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void groupAssetsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GroupAssetsRequest request = + GroupAssetsRequest.newBuilder() + .setParent(OrganizationName.of("[ORGANIZATION]").toString()) + .setFilter("filter-1274492040") + .setGroupBy("groupBy293428022") + .setCompareDuration(Duration.newBuilder().build()) + .setReadTime(Timestamp.newBuilder().build()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + client.groupAssets(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void groupFindingsTest() throws Exception { + GroupResult responsesElement = GroupResult.newBuilder().build(); + GroupFindingsResponse expectedResponse = + GroupFindingsResponse.newBuilder() + .setNextPageToken("") + .addAllGroupByResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + String groupBy = "groupBy293428022"; + + GroupFindingsPagedResponse pagedListResponse = client.groupFindings(parent, groupBy); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGroupByResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void groupFindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + String groupBy = "groupBy293428022"; + client.groupFindings(parent, groupBy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void groupFindingsTest2() throws Exception { + GroupResult responsesElement = GroupResult.newBuilder().build(); + GroupFindingsResponse expectedResponse = + GroupFindingsResponse.newBuilder() + .setNextPageToken("") + .addAllGroupByResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8741/sources/source-8741"; + String groupBy = "groupBy293428022"; + + GroupFindingsPagedResponse pagedListResponse = client.groupFindings(parent, groupBy); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGroupByResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void groupFindingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8741/sources/source-8741"; + String groupBy = "groupBy293428022"; + client.groupFindings(parent, groupBy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAssetsTest() throws Exception { + ListAssetsResponse.ListAssetsResult responsesElement = + ListAssetsResponse.ListAssetsResult.newBuilder().build(); + ListAssetsResponse expectedResponse = + ListAssetsResponse.newBuilder() + .setNextPageToken("") + .addAllListAssetsResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + FolderName parent = FolderName.of("[FOLDER]"); + + ListAssetsPagedResponse pagedListResponse = client.listAssets(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getListAssetsResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAssetsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName parent = FolderName.of("[FOLDER]"); + client.listAssets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAssetsTest2() throws Exception { + ListAssetsResponse.ListAssetsResult responsesElement = + ListAssetsResponse.ListAssetsResult.newBuilder().build(); + ListAssetsResponse expectedResponse = + ListAssetsResponse.newBuilder() + .setNextPageToken("") + .addAllListAssetsResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + + ListAssetsPagedResponse pagedListResponse = client.listAssets(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getListAssetsResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAssetsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + client.listAssets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAssetsTest3() throws Exception { + ListAssetsResponse.ListAssetsResult responsesElement = + ListAssetsResponse.ListAssetsResult.newBuilder().build(); + ListAssetsResponse expectedResponse = + ListAssetsResponse.newBuilder() + .setNextPageToken("") + .addAllListAssetsResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListAssetsPagedResponse pagedListResponse = client.listAssets(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getListAssetsResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAssetsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listAssets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAssetsTest4() throws Exception { + ListAssetsResponse.ListAssetsResult responsesElement = + ListAssetsResponse.ListAssetsResult.newBuilder().build(); + ListAssetsResponse expectedResponse = + ListAssetsResponse.newBuilder() + .setNextPageToken("") + .addAllListAssetsResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8287"; + + ListAssetsPagedResponse pagedListResponse = client.listAssets(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getListAssetsResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAssetsExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + client.listAssets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFindingsTest() throws Exception { + ListFindingsResponse.ListFindingsResult responsesElement = + ListFindingsResponse.ListFindingsResult.newBuilder().build(); + ListFindingsResponse expectedResponse = + ListFindingsResponse.newBuilder() + .setNextPageToken("") + .addAllListFindingsResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + + ListFindingsPagedResponse pagedListResponse = client.listFindings(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getListFindingsResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listFindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + client.listFindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFindingsTest2() throws Exception { + ListFindingsResponse.ListFindingsResult responsesElement = + ListFindingsResponse.ListFindingsResult.newBuilder().build(); + ListFindingsResponse expectedResponse = + ListFindingsResponse.newBuilder() + .setNextPageToken("") + .addAllListFindingsResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8741/sources/source-8741"; + + ListFindingsPagedResponse pagedListResponse = client.listFindings(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getListFindingsResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listFindingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8741/sources/source-8741"; + client.listFindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNotificationConfigsTest() throws Exception { + NotificationConfig responsesElement = NotificationConfig.newBuilder().build(); + ListNotificationConfigsResponse expectedResponse = + ListNotificationConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllNotificationConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + + ListNotificationConfigsPagedResponse pagedListResponse = client.listNotificationConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNotificationConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listNotificationConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + client.listNotificationConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNotificationConfigsTest2() throws Exception { + NotificationConfig responsesElement = NotificationConfig.newBuilder().build(); + ListNotificationConfigsResponse expectedResponse = + ListNotificationConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllNotificationConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8287"; + + ListNotificationConfigsPagedResponse pagedListResponse = client.listNotificationConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNotificationConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listNotificationConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + client.listNotificationConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSourcesTest() throws Exception { + Source responsesElement = Source.newBuilder().build(); + ListSourcesResponse expectedResponse = + ListSourcesResponse.newBuilder() + .setNextPageToken("") + .addAllSources(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + FolderName parent = FolderName.of("[FOLDER]"); + + ListSourcesPagedResponse pagedListResponse = client.listSources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSourcesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSourcesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName parent = FolderName.of("[FOLDER]"); + client.listSources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSourcesTest2() throws Exception { + Source responsesElement = Source.newBuilder().build(); + ListSourcesResponse expectedResponse = + ListSourcesResponse.newBuilder() + .setNextPageToken("") + .addAllSources(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + + ListSourcesPagedResponse pagedListResponse = client.listSources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSourcesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSourcesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + client.listSources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSourcesTest3() throws Exception { + Source responsesElement = Source.newBuilder().build(); + ListSourcesResponse expectedResponse = + ListSourcesResponse.newBuilder() + .setNextPageToken("") + .addAllSources(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListSourcesPagedResponse pagedListResponse = client.listSources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSourcesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSourcesExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listSources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSourcesTest4() throws Exception { + Source responsesElement = Source.newBuilder().build(); + ListSourcesResponse expectedResponse = + ListSourcesResponse.newBuilder() + .setNextPageToken("") + .addAllSources(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-8287"; + + ListSourcesPagedResponse pagedListResponse = client.listSources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSourcesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSourcesExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + client.listSources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void runAssetDiscoveryTest() throws Exception { + RunAssetDiscoveryResponse expectedResponse = + RunAssetDiscoveryResponse.newBuilder().setDuration(Duration.newBuilder().build()).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("runAssetDiscoveryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + + RunAssetDiscoveryResponse actualResponse = client.runAssetDiscoveryAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runAssetDiscoveryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + client.runAssetDiscoveryAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void runAssetDiscoveryTest2() throws Exception { + RunAssetDiscoveryResponse expectedResponse = + RunAssetDiscoveryResponse.newBuilder().setDuration(Duration.newBuilder().build()).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("runAssetDiscoveryTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "organizations/organization-8287"; + + RunAssetDiscoveryResponse actualResponse = client.runAssetDiscoveryAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runAssetDiscoveryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-8287"; + client.runAssetDiscoveryAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void setFindingStateTest() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + FindingName name = + FindingName.ofOrganizationSourceFindingName("[ORGANIZATION]", "[SOURCE]", "[FINDING]"); + Finding.State state = Finding.State.forNumber(0); + Timestamp startTime = Timestamp.newBuilder().build(); + + Finding actualResponse = client.setFindingState(name, state, startTime); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setFindingStateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FindingName name = + FindingName.ofOrganizationSourceFindingName("[ORGANIZATION]", "[SOURCE]", "[FINDING]"); + Finding.State state = Finding.State.forNumber(0); + Timestamp startTime = Timestamp.newBuilder().build(); + client.setFindingState(name, state, startTime); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setFindingStateTest2() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-9392/sources/source-9392/findings/finding-9392"; + Finding.State state = Finding.State.forNumber(0); + Timestamp startTime = Timestamp.newBuilder().build(); + + Finding actualResponse = client.setFindingState(name, state, startTime); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setFindingStateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "organizations/organization-9392/sources/source-9392/findings/finding-9392"; + Finding.State state = Finding.State.forNumber(0); + Timestamp startTime = Timestamp.newBuilder().build(); + client.setFindingState(name, state, startTime); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "organizations/organization-3393/sources/source-3393"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "organizations/organization-3393/sources/source-3393"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest2() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String resource = "organizations/organization-3393/sources/source-3393"; + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "organizations/organization-3393/sources/source-3393"; + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateFindingTest() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + Finding finding = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .build(); + + Finding actualResponse = client.updateFinding(finding); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateFindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Finding finding = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .build(); + client.updateFinding(finding); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateFindingTest2() throws Exception { + Finding expectedResponse = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + Finding finding = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Finding actualResponse = client.updateFinding(finding, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateFindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Finding finding = + Finding.newBuilder() + .setName( + FindingName.ofOrganizationSourceFindingName( + "[ORGANIZATION]", "[SOURCE]", "[FINDING]") + .toString()) + .setParent("parent-995424086") + .setResourceName("resourceName-384566343") + .setCategory("category50511102") + .setExternalUri("externalUri-1153085023") + .putAllSourceProperties(new HashMap()) + .setSecurityMarks(SecurityMarks.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setCanonicalName("canonicalName2122381727") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFinding(finding, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateNotificationConfigTest() throws Exception { + NotificationConfig expectedResponse = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + mockService.addResponse(expectedResponse); + + NotificationConfig notificationConfig = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + + NotificationConfig actualResponse = client.updateNotificationConfig(notificationConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateNotificationConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NotificationConfig notificationConfig = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + client.updateNotificationConfig(notificationConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateNotificationConfigTest2() throws Exception { + NotificationConfig expectedResponse = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + mockService.addResponse(expectedResponse); + + NotificationConfig notificationConfig = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + NotificationConfig actualResponse = + client.updateNotificationConfig(notificationConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateNotificationConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NotificationConfig notificationConfig = + NotificationConfig.newBuilder() + .setName( + NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString()) + .setDescription("description-1724546052") + .setPubsubTopic("pubsubTopic255880396") + .setServiceAccount("serviceAccount1079137720") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateNotificationConfig(notificationConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateOrganizationSettingsTest() throws Exception { + OrganizationSettings expectedResponse = + OrganizationSettings.newBuilder() + .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString()) + .setEnableAssetDiscovery(true) + .setAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationSettings organizationSettings = + OrganizationSettings.newBuilder() + .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString()) + .setEnableAssetDiscovery(true) + .setAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig.newBuilder().build()) + .build(); + + OrganizationSettings actualResponse = client.updateOrganizationSettings(organizationSettings); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateOrganizationSettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationSettings organizationSettings = + OrganizationSettings.newBuilder() + .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString()) + .setEnableAssetDiscovery(true) + .setAssetDiscoveryConfig( + OrganizationSettings.AssetDiscoveryConfig.newBuilder().build()) + .build(); + client.updateOrganizationSettings(organizationSettings); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSourceTest() throws Exception { + Source expectedResponse = + Source.newBuilder() + .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + Source source = + Source.newBuilder() + .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCanonicalName("canonicalName2122381727") + .build(); + + Source actualResponse = client.updateSource(source); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateSourceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Source source = + Source.newBuilder() + .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCanonicalName("canonicalName2122381727") + .build(); + client.updateSource(source); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSourceTest2() throws Exception { + Source expectedResponse = + Source.newBuilder() + .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + Source source = + Source.newBuilder() + .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCanonicalName("canonicalName2122381727") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Source actualResponse = client.updateSource(source, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateSourceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Source source = + Source.newBuilder() + .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCanonicalName("canonicalName2122381727") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSource(source, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSecurityMarksTest() throws Exception { + SecurityMarks expectedResponse = + SecurityMarks.newBuilder() + .setName("name3373707") + .putAllMarks(new HashMap()) + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + SecurityMarks securityMarks = + SecurityMarks.newBuilder() + .setName("organizations/organization-5924/assets/asset-5924/securityMarks") + .putAllMarks(new HashMap()) + .setCanonicalName("canonicalName2122381727") + .build(); + + SecurityMarks actualResponse = client.updateSecurityMarks(securityMarks); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateSecurityMarksExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SecurityMarks securityMarks = + SecurityMarks.newBuilder() + .setName("organizations/organization-5924/assets/asset-5924/securityMarks") + .putAllMarks(new HashMap()) + .setCanonicalName("canonicalName2122381727") + .build(); + client.updateSecurityMarks(securityMarks); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSecurityMarksTest2() throws Exception { + SecurityMarks expectedResponse = + SecurityMarks.newBuilder() + .setName("name3373707") + .putAllMarks(new HashMap()) + .setCanonicalName("canonicalName2122381727") + .build(); + mockService.addResponse(expectedResponse); + + SecurityMarks securityMarks = + SecurityMarks.newBuilder() + .setName("organizations/organization-5924/assets/asset-5924/securityMarks") + .putAllMarks(new HashMap()) + .setCanonicalName("canonicalName2122381727") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + SecurityMarks actualResponse = client.updateSecurityMarks(securityMarks, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateSecurityMarksExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SecurityMarks securityMarks = + SecurityMarks.newBuilder() + .setName("organizations/organization-5924/assets/asset-5924/securityMarks") + .putAllMarks(new HashMap()) + .setCanonicalName("canonicalName2122381727") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSecurityMarks(securityMarks, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientTest.java b/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientTest.java similarity index 100% rename from google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientTest.java rename to owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientTest.java diff --git a/owl-bot-staging/v1p1beta1/grpc-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterGrpc.java b/owl-bot-staging/v1p1beta1/grpc-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterGrpc.java new file mode 100644 index 000000000..15cf06af3 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/grpc-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterGrpc.java @@ -0,0 +1,2255 @@ +package com.google.cloud.securitycenter.v1p1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * V1p1Beta1 APIs for Security Center service.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SecurityCenterGrpc { + + private SecurityCenterGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.securitycenter.v1p1beta1.SecurityCenter"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateSourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSource", + requestType = com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.Source.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSourceMethod() { + io.grpc.MethodDescriptor getCreateSourceMethod; + if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { + SecurityCenterGrpc.getCreateSourceMethod = getCreateSourceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("CreateSource")) + .build(); + } + } + } + return getCreateSourceMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFinding", + requestType = com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateFindingMethod() { + io.grpc.MethodDescriptor getCreateFindingMethod; + if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { + SecurityCenterGrpc.getCreateFindingMethod = getCreateFindingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("CreateFinding")) + .build(); + } + } + } + return getCreateFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateNotificationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateNotificationConfig", + requestType = com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateNotificationConfigMethod() { + io.grpc.MethodDescriptor getCreateNotificationConfigMethod; + if ((getCreateNotificationConfigMethod = SecurityCenterGrpc.getCreateNotificationConfigMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateNotificationConfigMethod = SecurityCenterGrpc.getCreateNotificationConfigMethod) == null) { + SecurityCenterGrpc.getCreateNotificationConfigMethod = getCreateNotificationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNotificationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("CreateNotificationConfig")) + .build(); + } + } + } + return getCreateNotificationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteNotificationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteNotificationConfig", + requestType = com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteNotificationConfigMethod() { + io.grpc.MethodDescriptor getDeleteNotificationConfigMethod; + if ((getDeleteNotificationConfigMethod = SecurityCenterGrpc.getDeleteNotificationConfigMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getDeleteNotificationConfigMethod = SecurityCenterGrpc.getDeleteNotificationConfigMethod) == null) { + SecurityCenterGrpc.getDeleteNotificationConfigMethod = getDeleteNotificationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNotificationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("DeleteNotificationConfig")) + .build(); + } + } + } + return getDeleteNotificationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { + io.grpc.MethodDescriptor getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { + SecurityCenterGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetNotificationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNotificationConfig", + requestType = com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetNotificationConfigMethod() { + io.grpc.MethodDescriptor getGetNotificationConfigMethod; + if ((getGetNotificationConfigMethod = SecurityCenterGrpc.getGetNotificationConfigMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetNotificationConfigMethod = SecurityCenterGrpc.getGetNotificationConfigMethod) == null) { + SecurityCenterGrpc.getGetNotificationConfigMethod = getGetNotificationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNotificationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetNotificationConfig")) + .build(); + } + } + } + return getGetNotificationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetOrganizationSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOrganizationSettings", + requestType = com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetOrganizationSettingsMethod() { + io.grpc.MethodDescriptor getGetOrganizationSettingsMethod; + if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) == null) { + SecurityCenterGrpc.getGetOrganizationSettingsMethod = getGetOrganizationSettingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOrganizationSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetOrganizationSettings")) + .build(); + } + } + } + return getGetOrganizationSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSource", + requestType = com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.Source.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSourceMethod() { + io.grpc.MethodDescriptor getGetSourceMethod; + if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { + SecurityCenterGrpc.getGetSourceMethod = getGetSourceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetSource")) + .build(); + } + } + } + return getGetSourceMethod; + } + + private static volatile io.grpc.MethodDescriptor getGroupAssetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GroupAssets", + requestType = com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGroupAssetsMethod() { + io.grpc.MethodDescriptor getGroupAssetsMethod; + if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { + SecurityCenterGrpc.getGroupAssetsMethod = getGroupAssetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GroupAssets")) + .build(); + } + } + } + return getGroupAssetsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGroupFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GroupFindings", + requestType = com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGroupFindingsMethod() { + io.grpc.MethodDescriptor getGroupFindingsMethod; + if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { + SecurityCenterGrpc.getGroupFindingsMethod = getGroupFindingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GroupFindings")) + .build(); + } + } + } + return getGroupFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListAssetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAssets", + requestType = com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListAssetsMethod() { + io.grpc.MethodDescriptor getListAssetsMethod; + if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { + SecurityCenterGrpc.getListAssetsMethod = getListAssetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListAssets")) + .build(); + } + } + } + return getListAssetsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindings", + requestType = com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFindingsMethod() { + io.grpc.MethodDescriptor getListFindingsMethod; + if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { + SecurityCenterGrpc.getListFindingsMethod = getListFindingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListFindings")) + .build(); + } + } + } + return getListFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListNotificationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNotificationConfigs", + requestType = com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListNotificationConfigsMethod() { + io.grpc.MethodDescriptor getListNotificationConfigsMethod; + if ((getListNotificationConfigsMethod = SecurityCenterGrpc.getListNotificationConfigsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListNotificationConfigsMethod = SecurityCenterGrpc.getListNotificationConfigsMethod) == null) { + SecurityCenterGrpc.getListNotificationConfigsMethod = getListNotificationConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNotificationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListNotificationConfigs")) + .build(); + } + } + } + return getListNotificationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSources", + requestType = com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSourcesMethod() { + io.grpc.MethodDescriptor getListSourcesMethod; + if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { + SecurityCenterGrpc.getListSourcesMethod = getListSourcesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListSources")) + .build(); + } + } + } + return getListSourcesMethod; + } + + private static volatile io.grpc.MethodDescriptor getRunAssetDiscoveryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RunAssetDiscovery", + requestType = com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRunAssetDiscoveryMethod() { + io.grpc.MethodDescriptor getRunAssetDiscoveryMethod; + if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { + SecurityCenterGrpc.getRunAssetDiscoveryMethod = getRunAssetDiscoveryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunAssetDiscovery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("RunAssetDiscovery")) + .build(); + } + } + } + return getRunAssetDiscoveryMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetFindingStateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetFindingState", + requestType = com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetFindingStateMethod() { + io.grpc.MethodDescriptor getSetFindingStateMethod; + if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { + SecurityCenterGrpc.getSetFindingStateMethod = getSetFindingStateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetFindingState")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("SetFindingState")) + .build(); + } + } + } + return getSetFindingStateMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { + io.grpc.MethodDescriptor getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { + SecurityCenterGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) == null) { + SecurityCenterGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFinding", + requestType = com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateFindingMethod() { + io.grpc.MethodDescriptor getUpdateFindingMethod; + if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { + SecurityCenterGrpc.getUpdateFindingMethod = getUpdateFindingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateFinding")) + .build(); + } + } + } + return getUpdateFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateNotificationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNotificationConfig", + requestType = com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateNotificationConfigMethod() { + io.grpc.MethodDescriptor getUpdateNotificationConfigMethod; + if ((getUpdateNotificationConfigMethod = SecurityCenterGrpc.getUpdateNotificationConfigMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateNotificationConfigMethod = SecurityCenterGrpc.getUpdateNotificationConfigMethod) == null) { + SecurityCenterGrpc.getUpdateNotificationConfigMethod = getUpdateNotificationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNotificationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateNotificationConfig")) + .build(); + } + } + } + return getUpdateNotificationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateOrganizationSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateOrganizationSettings", + requestType = com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateOrganizationSettingsMethod() { + io.grpc.MethodDescriptor getUpdateOrganizationSettingsMethod; + if ((getUpdateOrganizationSettingsMethod = SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateOrganizationSettingsMethod = SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) == null) { + SecurityCenterGrpc.getUpdateOrganizationSettingsMethod = getUpdateOrganizationSettingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateOrganizationSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateOrganizationSettings")) + .build(); + } + } + } + return getUpdateOrganizationSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSource", + requestType = com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.Source.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSourceMethod() { + io.grpc.MethodDescriptor getUpdateSourceMethod; + if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { + SecurityCenterGrpc.getUpdateSourceMethod = getUpdateSourceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateSource")) + .build(); + } + } + } + return getUpdateSourceMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSecurityMarksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSecurityMarks", + requestType = com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSecurityMarksMethod() { + io.grpc.MethodDescriptor getUpdateSecurityMarksMethod; + if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) == null) { + SecurityCenterGrpc.getUpdateSecurityMarksMethod = getUpdateSecurityMarksMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSecurityMarks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateSecurityMarks")) + .build(); + } + } + } + return getUpdateSecurityMarksMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SecurityCenterStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterStub(channel, callOptions); + } + }; + return SecurityCenterStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SecurityCenterBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterBlockingStub(channel, callOptions); + } + }; + return SecurityCenterBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SecurityCenterFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterFutureStub(channel, callOptions); + } + }; + return SecurityCenterFutureStub.newStub(factory, channel); + } + + /** + *
+   * V1p1Beta1 APIs for Security Center service.
+   * 
+ */ + public static abstract class SecurityCenterImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a source.
+     * 
+ */ + public void createSource(com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSourceMethod(), responseObserver); + } + + /** + *
+     * Creates a finding. The corresponding source must exist for finding
+     * creation to succeed.
+     * 
+ */ + public void createFinding(com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFindingMethod(), responseObserver); + } + + /** + *
+     * Creates a notification config.
+     * 
+ */ + public void createNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNotificationConfigMethod(), responseObserver); + } + + /** + *
+     * Deletes a notification config.
+     * 
+ */ + public void deleteNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNotificationConfigMethod(), responseObserver); + } + + /** + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Gets a notification config.
+     * 
+ */ + public void getNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNotificationConfigMethod(), responseObserver); + } + + /** + *
+     * Gets the settings for an organization.
+     * 
+ */ + public void getOrganizationSettings(com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOrganizationSettingsMethod(), responseObserver); + } + + /** + *
+     * Gets a source.
+     * 
+ */ + public void getSource(com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSourceMethod(), responseObserver); + } + + /** + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public void groupAssets(com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGroupAssetsMethod(), responseObserver); + } + + /** + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings,
+     * /v1/folders/{folder_id}/sources/-/findings,
+     * /v1/projects/{project_id}/sources/-/findings
+     * 
+ */ + public void groupFindings(com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGroupFindingsMethod(), responseObserver); + } + + /** + *
+     * Lists an organization's assets.
+     * 
+ */ + public void listAssets(com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver); + } + + /** + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public void listFindings(com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingsMethod(), responseObserver); + } + + /** + *
+     * Lists notification configs.
+     * 
+ */ + public void listNotificationConfigs(com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNotificationConfigsMethod(), responseObserver); + } + + /** + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public void listSources(com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSourcesMethod(), responseObserver); + } + + /** + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public void runAssetDiscovery(com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunAssetDiscoveryMethod(), responseObserver); + } + + /** + *
+     * Updates the state of a finding.
+     * 
+ */ + public void setFindingState(com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetFindingStateMethod(), responseObserver); + } + + /** + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); + } + + /** + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public void updateFinding(com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFindingMethod(), responseObserver); + } + + /** + *
+     * Updates a notification config. The following update
+     * fields are allowed: description, pubsub_topic, streaming_config.filter
+     * 
+ */ + public void updateNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNotificationConfigMethod(), responseObserver); + } + + /** + *
+     * Updates an organization's settings.
+     * 
+ */ + public void updateOrganizationSettings(com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateOrganizationSettingsMethod(), responseObserver); + } + + /** + *
+     * Updates a source.
+     * 
+ */ + public void updateSource(com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSourceMethod(), responseObserver); + } + + /** + *
+     * Updates security marks.
+     * 
+ */ + public void updateSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSecurityMarksMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateSourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest, + com.google.cloud.securitycenter.v1p1beta1.Source>( + this, METHODID_CREATE_SOURCE))) + .addMethod( + getCreateFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest, + com.google.cloud.securitycenter.v1p1beta1.Finding>( + this, METHODID_CREATE_FINDING))) + .addMethod( + getCreateNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig>( + this, METHODID_CREATE_NOTIFICATION_CONFIG))) + .addMethod( + getDeleteNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_NOTIFICATION_CONFIG))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getGetNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig>( + this, METHODID_GET_NOTIFICATION_CONFIG))) + .addMethod( + getGetOrganizationSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings>( + this, METHODID_GET_ORGANIZATION_SETTINGS))) + .addMethod( + getGetSourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest, + com.google.cloud.securitycenter.v1p1beta1.Source>( + this, METHODID_GET_SOURCE))) + .addMethod( + getGroupAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse>( + this, METHODID_GROUP_ASSETS))) + .addMethod( + getGroupFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse>( + this, METHODID_GROUP_FINDINGS))) + .addMethod( + getListAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse>( + this, METHODID_LIST_ASSETS))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse>( + this, METHODID_LIST_FINDINGS))) + .addMethod( + getListNotificationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest, + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse>( + this, METHODID_LIST_NOTIFICATION_CONFIGS))) + .addMethod( + getListSourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest, + com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse>( + this, METHODID_LIST_SOURCES))) + .addMethod( + getRunAssetDiscoveryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation>( + this, METHODID_RUN_ASSET_DISCOVERY))) + .addMethod( + getSetFindingStateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1p1beta1.Finding>( + this, METHODID_SET_FINDING_STATE))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) + .addMethod( + getUpdateFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1p1beta1.Finding>( + this, METHODID_UPDATE_FINDING))) + .addMethod( + getUpdateNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig>( + this, METHODID_UPDATE_NOTIFICATION_CONFIG))) + .addMethod( + getUpdateOrganizationSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings>( + this, METHODID_UPDATE_ORGANIZATION_SETTINGS))) + .addMethod( + getUpdateSourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1p1beta1.Source>( + this, METHODID_UPDATE_SOURCE))) + .addMethod( + getUpdateSecurityMarksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks>( + this, METHODID_UPDATE_SECURITY_MARKS))) + .build(); + } + } + + /** + *
+   * V1p1Beta1 APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterStub extends io.grpc.stub.AbstractAsyncStub { + private SecurityCenterStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterStub(channel, callOptions); + } + + /** + *
+     * Creates a source.
+     * 
+ */ + public void createSource(com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSourceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a finding. The corresponding source must exist for finding
+     * creation to succeed.
+     * 
+ */ + public void createFinding(com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFindingMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a notification config.
+     * 
+ */ + public void createNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a notification config.
+     * 
+ */ + public void deleteNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a notification config.
+     * 
+ */ + public void getNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the settings for an organization.
+     * 
+ */ + public void getOrganizationSettings(com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a source.
+     * 
+ */ + public void getSource(com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSourceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public void groupAssets(com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings,
+     * /v1/folders/{folder_id}/sources/-/findings,
+     * /v1/projects/{project_id}/sources/-/findings
+     * 
+ */ + public void groupFindings(com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists an organization's assets.
+     * 
+ */ + public void listAssets(com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public void listFindings(com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists notification configs.
+     * 
+ */ + public void listNotificationConfigs(com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public void listSources(com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSourcesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public void runAssetDiscovery(com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the state of a finding.
+     * 
+ */ + public void setFindingState(com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public void updateFinding(com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a notification config. The following update
+     * fields are allowed: description, pubsub_topic, streaming_config.filter
+     * 
+ */ + public void updateNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNotificationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an organization's settings.
+     * 
+ */ + public void updateOrganizationSettings(com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a source.
+     * 
+ */ + public void updateSource(com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates security marks.
+     * 
+ */ + public void updateSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * V1p1Beta1 APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private SecurityCenterBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.Source createSource(com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSourceMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a finding. The corresponding source must exist for finding
+     * creation to succeed.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.Finding createFinding(com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFindingMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a notification config.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig createNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNotificationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a notification config.
+     * 
+ */ + public com.google.protobuf.Empty deleteNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteNotificationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a notification config.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNotificationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the settings for an organization.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getOrganizationSettings(com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetOrganizationSettingsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.Source getSource(com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSourceMethod(), getCallOptions(), request); + } + + /** + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse groupAssets(com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGroupAssetsMethod(), getCallOptions(), request); + } + + /** + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings,
+     * /v1/folders/{folder_id}/sources/-/findings,
+     * /v1/projects/{project_id}/sources/-/findings
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse groupFindings(com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGroupFindingsMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists an organization's assets.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse listAssets(com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAssetsMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse listFindings(com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingsMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists notification configs.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse listNotificationConfigs(com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNotificationConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse listSources(com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSourcesMethod(), getCallOptions(), request); + } + + /** + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public com.google.longrunning.Operation runAssetDiscovery(com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunAssetDiscoveryMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the state of a finding.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.Finding setFindingState(com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetFindingStateMethod(), getCallOptions(), request); + } + + /** + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.Finding updateFinding(com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFindingMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a notification config. The following update
+     * fields are allowed: description, pubsub_topic, streaming_config.filter
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig updateNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNotificationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an organization's settings.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings updateOrganizationSettings(com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateOrganizationSettingsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.Source updateSource(com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSourceMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates security marks.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks updateSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSecurityMarksMethod(), getCallOptions(), request); + } + } + + /** + *
+   * V1p1Beta1 APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterFutureStub extends io.grpc.stub.AbstractFutureStub { + private SecurityCenterFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSource( + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSourceMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a finding. The corresponding source must exist for finding
+     * creation to succeed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createFinding( + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFindingMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a notification config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a notification config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a notification config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the settings for an organization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getOrganizationSettings( + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSource( + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSourceMethod(), getCallOptions()), request); + } + + /** + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture groupAssets( + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), request); + } + + /** + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings,
+     * /v1/folders/{folder_id}/sources/-/findings,
+     * /v1/projects/{project_id}/sources/-/findings
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture groupFindings( + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists an organization's assets.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listAssets( + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAssetsMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listFindings( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists notification configs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listNotificationConfigs( + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSources( + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSourcesMethod(), getCallOptions()), request); + } + + /** + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture runAssetDiscovery( + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the state of a finding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setFindingState( + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), request); + } + + /** + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateFinding( + com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a notification config. The following update
+     * fields are allowed: description, pubsub_topic, streaming_config.filter
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNotificationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an organization's settings.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateOrganizationSettings( + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSource( + com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates security marks.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSecurityMarks( + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SOURCE = 0; + private static final int METHODID_CREATE_FINDING = 1; + private static final int METHODID_CREATE_NOTIFICATION_CONFIG = 2; + private static final int METHODID_DELETE_NOTIFICATION_CONFIG = 3; + private static final int METHODID_GET_IAM_POLICY = 4; + private static final int METHODID_GET_NOTIFICATION_CONFIG = 5; + private static final int METHODID_GET_ORGANIZATION_SETTINGS = 6; + private static final int METHODID_GET_SOURCE = 7; + private static final int METHODID_GROUP_ASSETS = 8; + private static final int METHODID_GROUP_FINDINGS = 9; + private static final int METHODID_LIST_ASSETS = 10; + private static final int METHODID_LIST_FINDINGS = 11; + private static final int METHODID_LIST_NOTIFICATION_CONFIGS = 12; + private static final int METHODID_LIST_SOURCES = 13; + private static final int METHODID_RUN_ASSET_DISCOVERY = 14; + private static final int METHODID_SET_FINDING_STATE = 15; + private static final int METHODID_SET_IAM_POLICY = 16; + private static final int METHODID_TEST_IAM_PERMISSIONS = 17; + private static final int METHODID_UPDATE_FINDING = 18; + private static final int METHODID_UPDATE_NOTIFICATION_CONFIG = 19; + private static final int METHODID_UPDATE_ORGANIZATION_SETTINGS = 20; + private static final int METHODID_UPDATE_SOURCE = 21; + private static final int METHODID_UPDATE_SECURITY_MARKS = 22; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SecurityCenterImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SecurityCenterImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SOURCE: + serviceImpl.createSource((com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_FINDING: + serviceImpl.createFinding((com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_NOTIFICATION_CONFIG: + serviceImpl.createNotificationConfig((com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_NOTIFICATION_CONFIG: + serviceImpl.deleteNotificationConfig((com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_NOTIFICATION_CONFIG: + serviceImpl.getNotificationConfig((com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ORGANIZATION_SETTINGS: + serviceImpl.getOrganizationSettings((com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SOURCE: + serviceImpl.getSource((com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GROUP_ASSETS: + serviceImpl.groupAssets((com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GROUP_FINDINGS: + serviceImpl.groupFindings((com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ASSETS: + serviceImpl.listAssets((com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FINDINGS: + serviceImpl.listFindings((com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_NOTIFICATION_CONFIGS: + serviceImpl.listNotificationConfigs((com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SOURCES: + serviceImpl.listSources((com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RUN_ASSET_DISCOVERY: + serviceImpl.runAssetDiscovery((com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_FINDING_STATE: + serviceImpl.setFindingState((com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FINDING: + serviceImpl.updateFinding((com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_NOTIFICATION_CONFIG: + serviceImpl.updateNotificationConfig((com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ORGANIZATION_SETTINGS: + serviceImpl.updateOrganizationSettings((com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SOURCE: + serviceImpl.updateSource((com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SECURITY_MARKS: + serviceImpl.updateSecurityMarks((com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class SecurityCenterBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SecurityCenterBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SecurityCenter"); + } + } + + private static final class SecurityCenterFileDescriptorSupplier + extends SecurityCenterBaseDescriptorSupplier { + SecurityCenterFileDescriptorSupplier() {} + } + + private static final class SecurityCenterMethodDescriptorSupplier + extends SecurityCenterBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SecurityCenterMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SecurityCenterGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SecurityCenterFileDescriptorSupplier()) + .addMethod(getCreateSourceMethod()) + .addMethod(getCreateFindingMethod()) + .addMethod(getCreateNotificationConfigMethod()) + .addMethod(getDeleteNotificationConfigMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getGetNotificationConfigMethod()) + .addMethod(getGetOrganizationSettingsMethod()) + .addMethod(getGetSourceMethod()) + .addMethod(getGroupAssetsMethod()) + .addMethod(getGroupFindingsMethod()) + .addMethod(getListAssetsMethod()) + .addMethod(getListFindingsMethod()) + .addMethod(getListNotificationConfigsMethod()) + .addMethod(getListSourcesMethod()) + .addMethod(getRunAssetDiscoveryMethod()) + .addMethod(getSetFindingStateMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .addMethod(getUpdateFindingMethod()) + .addMethod(getUpdateNotificationConfigMethod()) + .addMethod(getUpdateOrganizationSettingsMethod()) + .addMethod(getUpdateSourceMethod()) + .addMethod(getUpdateSecurityMarksMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Asset.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Asset.java similarity index 74% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Asset.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Asset.java index 81a400935..ff90118a1 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Asset.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Asset.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/asset.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Security Command Center representation of a Google Cloud
  * resource.
@@ -32,16 +15,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset}
  */
-public final class Asset extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Asset extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.Asset)
     AssetOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Asset.newBuilder() to construct.
   private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Asset() {
     name_ = "";
     canonicalName_ = "";
@@ -49,15 +31,16 @@ private Asset() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Asset();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Asset(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,128 +60,103 @@ private Asset(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder subBuilder = null;
+            if (securityCenterProperties_ != null) {
+              subBuilder = securityCenterProperties_.toBuilder();
+            }
+            securityCenterProperties_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(securityCenterProperties_);
+              securityCenterProperties_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder
-                  subBuilder = null;
-              if (securityCenterProperties_ != null) {
-                subBuilder = securityCenterProperties_.toBuilder();
-              }
-              securityCenterProperties_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(securityCenterProperties_);
-                securityCenterProperties_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 58: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              resourceProperties_ = com.google.protobuf.MapField.newMapField(
+                  ResourcePropertiesDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 58:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                resourceProperties_ =
-                    com.google.protobuf.MapField.newMapField(
-                        ResourcePropertiesDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry
-                  resourceProperties__ =
-                      input.readMessage(
-                          ResourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
-                          extensionRegistry);
-              resourceProperties_
-                  .getMutableMap()
-                  .put(resourceProperties__.getKey(), resourceProperties__.getValue());
-              break;
+            com.google.protobuf.MapEntry
+            resourceProperties__ = input.readMessage(
+                ResourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            resourceProperties_.getMutableMap().put(
+                resourceProperties__.getKey(), resourceProperties__.getValue());
+            break;
+          }
+          case 66: {
+            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder subBuilder = null;
+            if (securityMarks_ != null) {
+              subBuilder = securityMarks_.toBuilder();
             }
-          case 66:
-            {
-              com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder subBuilder = null;
-              if (securityMarks_ != null) {
-                subBuilder = securityMarks_.toBuilder();
-              }
-              securityMarks_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(securityMarks_);
-                securityMarks_ = subBuilder.buildPartial();
-              }
-
-              break;
+            securityMarks_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(securityMarks_);
+              securityMarks_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 74: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 82:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 90:
-            {
-              com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder subBuilder = null;
-              if (iamPolicy_ != null) {
-                subBuilder = iamPolicy_.toBuilder();
-              }
-              iamPolicy_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(iamPolicy_);
-                iamPolicy_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 82: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
+            }
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 106:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              canonicalName_ = s;
-              break;
+            break;
+          }
+          case 90: {
+            com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder subBuilder = null;
+            if (iamPolicy_ != null) {
+              subBuilder = iamPolicy_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            iamPolicy_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(iamPolicy_);
+              iamPolicy_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          case 106: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            canonicalName_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -206,47 +164,43 @@ private Asset(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
-        .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 7:
         return internalGetResourceProperties();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
-        .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1p1beta1.Asset.class,
-            com.google.cloud.securitycenter.v1p1beta1.Asset.Builder.class);
+            com.google.cloud.securitycenter.v1p1beta1.Asset.class, com.google.cloud.securitycenter.v1p1beta1.Asset.Builder.class);
   }
 
-  public interface SecurityCenterPropertiesOrBuilder
-      extends
+  public interface SecurityCenterPropertiesOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -254,13 +208,10 @@ public interface SecurityCenterPropertiesOrBuilder
      * 
* * string resource_name = 1; - * * @return The resourceName. */ java.lang.String getResourceName(); /** - * - * *
      * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -268,14 +219,12 @@ public interface SecurityCenterPropertiesOrBuilder
      * 
* * string resource_name = 1; - * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString getResourceNameBytes(); + com.google.protobuf.ByteString + getResourceNameBytes(); /** - * - * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -284,13 +233,10 @@ public interface SecurityCenterPropertiesOrBuilder
      * 
* * string resource_type = 2; - * * @return The resourceType. */ java.lang.String getResourceType(); /** - * - * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -299,194 +245,157 @@ public interface SecurityCenterPropertiesOrBuilder
      * 
* * string resource_type = 2; - * * @return The bytes for resourceType. */ - com.google.protobuf.ByteString getResourceTypeBytes(); + com.google.protobuf.ByteString + getResourceTypeBytes(); /** - * - * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; - * * @return The resourceParent. */ java.lang.String getResourceParent(); /** - * - * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; - * * @return The bytes for resourceParent. */ - com.google.protobuf.ByteString getResourceParentBytes(); + com.google.protobuf.ByteString + getResourceParentBytes(); /** - * - * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; - * * @return The resourceProject. */ java.lang.String getResourceProject(); /** - * - * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; - * * @return The bytes for resourceProject. */ - com.google.protobuf.ByteString getResourceProjectBytes(); + com.google.protobuf.ByteString + getResourceProjectBytes(); /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @return A list containing the resourceOwners. */ - java.util.List getResourceOwnersList(); + java.util.List + getResourceOwnersList(); /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @return The count of resourceOwners. */ int getResourceOwnersCount(); /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ java.lang.String getResourceOwners(int index); /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ - com.google.protobuf.ByteString getResourceOwnersBytes(int index); + com.google.protobuf.ByteString + getResourceOwnersBytes(int index); /** - * - * *
      * The user defined display name for this resource.
      * 
* * string resource_display_name = 6; - * * @return The resourceDisplayName. */ java.lang.String getResourceDisplayName(); /** - * - * *
      * The user defined display name for this resource.
      * 
* * string resource_display_name = 6; - * * @return The bytes for resourceDisplayName. */ - com.google.protobuf.ByteString getResourceDisplayNameBytes(); + com.google.protobuf.ByteString + getResourceDisplayNameBytes(); /** - * - * *
      * The user defined display name for the parent of this resource.
      * 
* * string resource_parent_display_name = 7; - * * @return The resourceParentDisplayName. */ java.lang.String getResourceParentDisplayName(); /** - * - * *
      * The user defined display name for the parent of this resource.
      * 
* * string resource_parent_display_name = 7; - * * @return The bytes for resourceParentDisplayName. */ - com.google.protobuf.ByteString getResourceParentDisplayNameBytes(); + com.google.protobuf.ByteString + getResourceParentDisplayNameBytes(); /** - * - * *
      * The user defined display name for the project of this resource.
      * 
* * string resource_project_display_name = 8; - * * @return The resourceProjectDisplayName. */ java.lang.String getResourceProjectDisplayName(); /** - * - * *
      * The user defined display name for the project of this resource.
      * 
* * string resource_project_display_name = 8; - * * @return The bytes for resourceProjectDisplayName. */ - com.google.protobuf.ByteString getResourceProjectDisplayNameBytes(); + com.google.protobuf.ByteString + getResourceProjectDisplayNameBytes(); /** - * - * *
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -495,10 +404,9 @@ public interface SecurityCenterPropertiesOrBuilder
      *
      * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
      */
-    java.util.List getFoldersList();
+    java.util.List 
+        getFoldersList();
     /**
-     *
-     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -509,8 +417,6 @@ public interface SecurityCenterPropertiesOrBuilder
      */
     com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index);
     /**
-     *
-     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -521,8 +427,6 @@ public interface SecurityCenterPropertiesOrBuilder
      */
     int getFoldersCount();
     /**
-     *
-     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -531,11 +435,9 @@ public interface SecurityCenterPropertiesOrBuilder
      *
      * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
      */
-    java.util.List
+    java.util.List 
         getFoldersOrBuilderList();
     /**
-     *
-     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -544,11 +446,10 @@ public interface SecurityCenterPropertiesOrBuilder
      *
      * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
      */
-    com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder(int index);
+    com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder(
+        int index);
   }
   /**
-   *
-   *
    * 
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
@@ -556,16 +457,15 @@ public interface SecurityCenterPropertiesOrBuilder
    *
    * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties}
    */
-  public static final class SecurityCenterProperties extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class SecurityCenterProperties extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties)
       SecurityCenterPropertiesOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use SecurityCenterProperties.newBuilder() to construct.
     private SecurityCenterProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private SecurityCenterProperties() {
       resourceName_ = "";
       resourceType_ = "";
@@ -580,15 +480,16 @@ private SecurityCenterProperties() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new SecurityCenterProperties();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private SecurityCenterProperties(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -608,85 +509,73 @@ private SecurityCenterProperties(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                resourceName_ = s;
-                break;
-              }
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              resourceName_ = s;
+              break;
+            }
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                resourceType_ = s;
-                break;
-              }
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              resourceType_ = s;
+              break;
+            }
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                resourceParent_ = s;
-                break;
-              }
-            case 34:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              resourceParent_ = s;
+              break;
+            }
+            case 34: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                resourceProject_ = s;
-                break;
-              }
-            case 42:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  resourceOwners_ = new com.google.protobuf.LazyStringArrayList();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                resourceOwners_.add(s);
-                break;
+              resourceProject_ = s;
+              break;
+            }
+            case 42: {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                resourceOwners_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
               }
-            case 50:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              resourceOwners_.add(s);
+              break;
+            }
+            case 50: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                resourceDisplayName_ = s;
-                break;
-              }
-            case 58:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              resourceDisplayName_ = s;
+              break;
+            }
+            case 58: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                resourceParentDisplayName_ = s;
-                break;
-              }
-            case 66:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              resourceParentDisplayName_ = s;
+              break;
+            }
+            case 66: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                resourceProjectDisplayName_ = s;
-                break;
-              }
-            case 82:
-              {
-                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                  folders_ =
-                      new java.util.ArrayList();
-                  mutable_bitField0_ |= 0x00000002;
-                }
-                folders_.add(
-                    input.readMessage(
-                        com.google.cloud.securitycenter.v1p1beta1.Folder.parser(),
-                        extensionRegistry));
-                break;
+              resourceProjectDisplayName_ = s;
+              break;
+            }
+            case 82: {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                folders_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              folders_.add(
+                  input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Folder.parser(), extensionRegistry));
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -694,7 +583,8 @@ private SecurityCenterProperties(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           resourceOwners_ = resourceOwners_.getUnmodifiableView();
@@ -706,28 +596,22 @@ private SecurityCenterProperties(
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.class,
-              com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder
-                  .class);
+              com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.class, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder.class);
     }
 
     public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
     private volatile java.lang.Object resourceName_;
     /**
-     *
-     *
      * 
      * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -735,7 +619,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string resource_name = 1; - * * @return The resourceName. */ @java.lang.Override @@ -744,15 +627,14 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** - * - * *
      * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -760,15 +642,16 @@ public java.lang.String getResourceName() {
      * 
* * string resource_name = 1; - * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -779,8 +662,6 @@ public com.google.protobuf.ByteString getResourceNameBytes() { public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object resourceType_; /** - * - * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -789,7 +670,6 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
      * 
* * string resource_type = 2; - * * @return The resourceType. */ @java.lang.Override @@ -798,15 +678,14 @@ public java.lang.String getResourceType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; } } /** - * - * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -815,15 +694,16 @@ public java.lang.String getResourceType() {
      * 
* * string resource_type = 2; - * * @return The bytes for resourceType. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceTypeBytes() { + public com.google.protobuf.ByteString + getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceType_ = b; return b; } else { @@ -834,15 +714,12 @@ public com.google.protobuf.ByteString getResourceTypeBytes() { public static final int RESOURCE_PARENT_FIELD_NUMBER = 3; private volatile java.lang.Object resourceParent_; /** - * - * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; - * * @return The resourceParent. */ @java.lang.Override @@ -851,30 +728,30 @@ public java.lang.String getResourceParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParent_ = s; return s; } } /** - * - * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; - * * @return The bytes for resourceParent. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceParentBytes() { + public com.google.protobuf.ByteString + getResourceParentBytes() { java.lang.Object ref = resourceParent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceParent_ = b; return b; } else { @@ -885,15 +762,12 @@ public com.google.protobuf.ByteString getResourceParentBytes() { public static final int RESOURCE_PROJECT_FIELD_NUMBER = 4; private volatile java.lang.Object resourceProject_; /** - * - * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; - * * @return The resourceProject. */ @java.lang.Override @@ -902,30 +776,30 @@ public java.lang.String getResourceProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProject_ = s; return s; } } /** - * - * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; - * * @return The bytes for resourceProject. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceProjectBytes() { + public com.google.protobuf.ByteString + getResourceProjectBytes() { java.lang.Object ref = resourceProject_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceProject_ = b; return b; } else { @@ -936,42 +810,34 @@ public com.google.protobuf.ByteString getResourceProjectBytes() { public static final int RESOURCE_OWNERS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList resourceOwners_; /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @return A list containing the resourceOwners. */ - public com.google.protobuf.ProtocolStringList getResourceOwnersList() { + public com.google.protobuf.ProtocolStringList + getResourceOwnersList() { return resourceOwners_; } /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @return The count of resourceOwners. */ public int getResourceOwnersCount() { return resourceOwners_.size(); } /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ @@ -979,32 +845,27 @@ public java.lang.String getResourceOwners(int index) { return resourceOwners_.get(index); } /** - * - * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; - * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ - public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { + public com.google.protobuf.ByteString + getResourceOwnersBytes(int index) { return resourceOwners_.getByteString(index); } public static final int RESOURCE_DISPLAY_NAME_FIELD_NUMBER = 6; private volatile java.lang.Object resourceDisplayName_; /** - * - * *
      * The user defined display name for this resource.
      * 
* * string resource_display_name = 6; - * * @return The resourceDisplayName. */ @java.lang.Override @@ -1013,29 +874,29 @@ public java.lang.String getResourceDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceDisplayName_ = s; return s; } } /** - * - * *
      * The user defined display name for this resource.
      * 
* * string resource_display_name = 6; - * * @return The bytes for resourceDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceDisplayNameBytes() { + public com.google.protobuf.ByteString + getResourceDisplayNameBytes() { java.lang.Object ref = resourceDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceDisplayName_ = b; return b; } else { @@ -1046,14 +907,11 @@ public com.google.protobuf.ByteString getResourceDisplayNameBytes() { public static final int RESOURCE_PARENT_DISPLAY_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object resourceParentDisplayName_; /** - * - * *
      * The user defined display name for the parent of this resource.
      * 
* * string resource_parent_display_name = 7; - * * @return The resourceParentDisplayName. */ @java.lang.Override @@ -1062,29 +920,29 @@ public java.lang.String getResourceParentDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParentDisplayName_ = s; return s; } } /** - * - * *
      * The user defined display name for the parent of this resource.
      * 
* * string resource_parent_display_name = 7; - * * @return The bytes for resourceParentDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() { + public com.google.protobuf.ByteString + getResourceParentDisplayNameBytes() { java.lang.Object ref = resourceParentDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceParentDisplayName_ = b; return b; } else { @@ -1095,14 +953,11 @@ public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() { public static final int RESOURCE_PROJECT_DISPLAY_NAME_FIELD_NUMBER = 8; private volatile java.lang.Object resourceProjectDisplayName_; /** - * - * *
      * The user defined display name for the project of this resource.
      * 
* * string resource_project_display_name = 8; - * * @return The resourceProjectDisplayName. */ @java.lang.Override @@ -1111,29 +966,29 @@ public java.lang.String getResourceProjectDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProjectDisplayName_ = s; return s; } } /** - * - * *
      * The user defined display name for the project of this resource.
      * 
* * string resource_project_display_name = 8; - * * @return The bytes for resourceProjectDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceProjectDisplayNameBytes() { + public com.google.protobuf.ByteString + getResourceProjectDisplayNameBytes() { java.lang.Object ref = resourceProjectDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceProjectDisplayName_ = b; return b; } else { @@ -1144,8 +999,6 @@ public com.google.protobuf.ByteString getResourceProjectDisplayNameBytes() { public static final int FOLDERS_FIELD_NUMBER = 10; private java.util.List folders_; /** - * - * *
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -1159,8 +1012,6 @@ public java.util.List getFolde
       return folders_;
     }
     /**
-     *
-     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -1170,13 +1021,11 @@ public java.util.List getFolde
      * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
      */
     @java.lang.Override
-    public java.util.List
+    public java.util.List 
         getFoldersOrBuilderList() {
       return folders_;
     }
     /**
-     *
-     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -1190,8 +1039,6 @@ public int getFoldersCount() {
       return folders_.size();
     }
     /**
-     *
-     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -1205,8 +1052,6 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index) {
       return folders_.get(index);
     }
     /**
-     *
-     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -1222,7 +1067,6 @@ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBui
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -1234,7 +1078,8 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
       }
@@ -1295,16 +1140,14 @@ public int getSerializedSize() {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, resourceDisplayName_);
       }
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceParentDisplayName_)) {
-        size +=
-            com.google.protobuf.GeneratedMessageV3.computeStringSize(7, resourceParentDisplayName_);
+        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, resourceParentDisplayName_);
       }
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceProjectDisplayName_)) {
-        size +=
-            com.google.protobuf.GeneratedMessageV3.computeStringSize(
-                8, resourceProjectDisplayName_);
+        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, resourceProjectDisplayName_);
       }
       for (int i = 0; i < folders_.size(); i++) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, folders_.get(i));
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(10, folders_.get(i));
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -1314,26 +1157,31 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-        return true;
+       return true;
       }
-      if (!(obj
-          instanceof com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties)) {
+      if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties)) {
         return super.equals(obj);
       }
-      com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties other =
-          (com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties) obj;
-
-      if (!getResourceName().equals(other.getResourceName())) return false;
-      if (!getResourceType().equals(other.getResourceType())) return false;
-      if (!getResourceParent().equals(other.getResourceParent())) return false;
-      if (!getResourceProject().equals(other.getResourceProject())) return false;
-      if (!getResourceOwnersList().equals(other.getResourceOwnersList())) return false;
-      if (!getResourceDisplayName().equals(other.getResourceDisplayName())) return false;
-      if (!getResourceParentDisplayName().equals(other.getResourceParentDisplayName()))
-        return false;
-      if (!getResourceProjectDisplayName().equals(other.getResourceProjectDisplayName()))
-        return false;
-      if (!getFoldersList().equals(other.getFoldersList())) return false;
+      com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties other = (com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties) obj;
+
+      if (!getResourceName()
+          .equals(other.getResourceName())) return false;
+      if (!getResourceType()
+          .equals(other.getResourceType())) return false;
+      if (!getResourceParent()
+          .equals(other.getResourceParent())) return false;
+      if (!getResourceProject()
+          .equals(other.getResourceProject())) return false;
+      if (!getResourceOwnersList()
+          .equals(other.getResourceOwnersList())) return false;
+      if (!getResourceDisplayName()
+          .equals(other.getResourceDisplayName())) return false;
+      if (!getResourceParentDisplayName()
+          .equals(other.getResourceParentDisplayName())) return false;
+      if (!getResourceProjectDisplayName()
+          .equals(other.getResourceProjectDisplayName())) return false;
+      if (!getFoldersList()
+          .equals(other.getFoldersList())) return false;
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
     }
@@ -1372,101 +1220,88 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
-        parseFrom(java.nio.ByteBuffer data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
-        parseFrom(
-            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
-        parseFrom(com.google.protobuf.ByteString data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(
+        com.google.protobuf.ByteString data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
-        parseFrom(
-            com.google.protobuf.ByteString data,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(
+        com.google.protobuf.ByteString data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
-        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
-        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
-        parseFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
-        parseFrom(
-            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
-
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
-        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
-        parseDelimitedFrom(
-            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseDelimitedFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
-        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
-        parseFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
-    public static Builder newBuilder(
-        com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties prototype) {
+    public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -1476,8 +1311,6 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
@@ -1485,44 +1318,39 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties)
         com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
-            .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
-            .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_fieldAccessorTable
+        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.class,
-                com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder
-                    .class);
+                com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.class, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.newBuilder()
+      // Construct using com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
           getFoldersFieldBuilder();
         }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1552,22 +1380,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
-            .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
-          getDefaultInstanceForType() {
-        return com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
-            .getDefaultInstance();
+      public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties getDefaultInstanceForType() {
+        return com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties build() {
-        com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties result =
-            buildPartial();
+        com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -1575,10 +1400,8 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
       }
 
       @java.lang.Override
-      public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
-          buildPartial() {
-        com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties result =
-            new com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties(this);
+      public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties buildPartial() {
+        com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties result = new com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties(this);
         int from_bitField0_ = bitField0_;
         result.resourceName_ = resourceName_;
         result.resourceType_ = resourceType_;
@@ -1609,54 +1432,46 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other
-            instanceof com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties) {
-          return mergeFrom(
-              (com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties) other);
+        if (other instanceof com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties) {
+          return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties other) {
-        if (other
-            == com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties other) {
+        if (other == com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.getDefaultInstance()) return this;
         if (!other.getResourceName().isEmpty()) {
           resourceName_ = other.resourceName_;
           onChanged();
@@ -1713,10 +1528,9 @@ public Builder mergeFrom(
               foldersBuilder_ = null;
               folders_ = other.folders_;
               bitField0_ = (bitField0_ & ~0x00000002);
-              foldersBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getFoldersFieldBuilder()
-                      : null;
+              foldersBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getFoldersFieldBuilder() : null;
             } else {
               foldersBuilder_.addAllMessages(other.folders_);
             }
@@ -1737,14 +1551,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parsedMessage =
-            null;
+        com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1753,13 +1564,10 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int bitField0_;
 
       private java.lang.Object resourceName_ = "";
       /**
-       *
-       *
        * 
        * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1767,13 +1575,13 @@ public Builder mergeFrom(
        * 
* * string resource_name = 1; - * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -1782,8 +1590,6 @@ public java.lang.String getResourceName() { } } /** - * - * *
        * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1791,14 +1597,15 @@ public java.lang.String getResourceName() {
        * 
* * string resource_name = 1; - * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -1806,8 +1613,6 @@ public com.google.protobuf.ByteString getResourceNameBytes() { } } /** - * - * *
        * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1815,22 +1620,20 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
        * 
* * string resource_name = 1; - * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName(java.lang.String value) { + public Builder setResourceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceName_ = value; onChanged(); return this; } /** - * - * *
        * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1838,18 +1641,15 @@ public Builder setResourceName(java.lang.String value) {
        * 
* * string resource_name = 1; - * * @return This builder for chaining. */ public Builder clearResourceName() { - + resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** - * - * *
        * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1857,16 +1657,16 @@ public Builder clearResourceName() {
        * 
* * string resource_name = 1; - * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; onChanged(); return this; @@ -1874,8 +1674,6 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceType_ = ""; /** - * - * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1884,13 +1682,13 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) {
        * 
* * string resource_type = 2; - * * @return The resourceType. */ public java.lang.String getResourceType() { java.lang.Object ref = resourceType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; @@ -1899,8 +1697,6 @@ public java.lang.String getResourceType() { } } /** - * - * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1909,14 +1705,15 @@ public java.lang.String getResourceType() {
        * 
* * string resource_type = 2; - * * @return The bytes for resourceType. */ - public com.google.protobuf.ByteString getResourceTypeBytes() { + public com.google.protobuf.ByteString + getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceType_ = b; return b; } else { @@ -1924,8 +1721,6 @@ public com.google.protobuf.ByteString getResourceTypeBytes() { } } /** - * - * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1934,22 +1729,20 @@ public com.google.protobuf.ByteString getResourceTypeBytes() {
        * 
* * string resource_type = 2; - * * @param value The resourceType to set. * @return This builder for chaining. */ - public Builder setResourceType(java.lang.String value) { + public Builder setResourceType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceType_ = value; onChanged(); return this; } /** - * - * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1958,18 +1751,15 @@ public Builder setResourceType(java.lang.String value) {
        * 
* * string resource_type = 2; - * * @return This builder for chaining. */ public Builder clearResourceType() { - + resourceType_ = getDefaultInstance().getResourceType(); onChanged(); return this; } /** - * - * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1978,16 +1768,16 @@ public Builder clearResourceType() {
        * 
* * string resource_type = 2; - * * @param value The bytes for resourceType to set. * @return This builder for chaining. */ - public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { + public Builder setResourceTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceType_ = value; onChanged(); return this; @@ -1995,21 +1785,19 @@ public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceParent_ = ""; /** - * - * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; - * * @return The resourceParent. */ public java.lang.String getResourceParent() { java.lang.Object ref = resourceParent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParent_ = s; return s; @@ -2018,22 +1806,21 @@ public java.lang.String getResourceParent() { } } /** - * - * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; - * * @return The bytes for resourceParent. */ - public com.google.protobuf.ByteString getResourceParentBytes() { + public com.google.protobuf.ByteString + getResourceParentBytes() { java.lang.Object ref = resourceParent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceParent_ = b; return b; } else { @@ -2041,64 +1828,57 @@ public com.google.protobuf.ByteString getResourceParentBytes() { } } /** - * - * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; - * * @param value The resourceParent to set. * @return This builder for chaining. */ - public Builder setResourceParent(java.lang.String value) { + public Builder setResourceParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceParent_ = value; onChanged(); return this; } /** - * - * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; - * * @return This builder for chaining. */ public Builder clearResourceParent() { - + resourceParent_ = getDefaultInstance().getResourceParent(); onChanged(); return this; } /** - * - * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; - * * @param value The bytes for resourceParent to set. * @return This builder for chaining. */ - public Builder setResourceParentBytes(com.google.protobuf.ByteString value) { + public Builder setResourceParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceParent_ = value; onChanged(); return this; @@ -2106,21 +1886,19 @@ public Builder setResourceParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceProject_ = ""; /** - * - * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; - * * @return The resourceProject. */ public java.lang.String getResourceProject() { java.lang.Object ref = resourceProject_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProject_ = s; return s; @@ -2129,22 +1907,21 @@ public java.lang.String getResourceProject() { } } /** - * - * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; - * * @return The bytes for resourceProject. */ - public com.google.protobuf.ByteString getResourceProjectBytes() { + public com.google.protobuf.ByteString + getResourceProjectBytes() { java.lang.Object ref = resourceProject_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceProject_ = b; return b; } else { @@ -2152,115 +1929,98 @@ public com.google.protobuf.ByteString getResourceProjectBytes() { } } /** - * - * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; - * * @param value The resourceProject to set. * @return This builder for chaining. */ - public Builder setResourceProject(java.lang.String value) { + public Builder setResourceProject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceProject_ = value; onChanged(); return this; } /** - * - * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; - * * @return This builder for chaining. */ public Builder clearResourceProject() { - + resourceProject_ = getDefaultInstance().getResourceProject(); onChanged(); return this; } /** - * - * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; - * * @param value The bytes for resourceProject to set. * @return This builder for chaining. */ - public Builder setResourceProjectBytes(com.google.protobuf.ByteString value) { + public Builder setResourceProjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceProject_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList resourceOwners_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList resourceOwners_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureResourceOwnersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resourceOwners_ = new com.google.protobuf.LazyStringArrayList(resourceOwners_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @return A list containing the resourceOwners. */ - public com.google.protobuf.ProtocolStringList getResourceOwnersList() { + public com.google.protobuf.ProtocolStringList + getResourceOwnersList() { return resourceOwners_.getUnmodifiableView(); } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @return The count of resourceOwners. */ public int getResourceOwnersCount() { return resourceOwners_.size(); } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ @@ -2268,90 +2028,80 @@ public java.lang.String getResourceOwners(int index) { return resourceOwners_.get(index); } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ - public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { + public com.google.protobuf.ByteString + getResourceOwnersBytes(int index) { return resourceOwners_.getByteString(index); } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @param index The index to set the value at. * @param value The resourceOwners to set. * @return This builder for chaining. */ - public Builder setResourceOwners(int index, java.lang.String value) { + public Builder setResourceOwners( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceOwnersIsMutable(); + throw new NullPointerException(); + } + ensureResourceOwnersIsMutable(); resourceOwners_.set(index, value); onChanged(); return this; } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @param value The resourceOwners to add. * @return This builder for chaining. */ - public Builder addResourceOwners(java.lang.String value) { + public Builder addResourceOwners( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceOwnersIsMutable(); + throw new NullPointerException(); + } + ensureResourceOwnersIsMutable(); resourceOwners_.add(value); onChanged(); return this; } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @param values The resourceOwners to add. * @return This builder for chaining. */ - public Builder addAllResourceOwners(java.lang.Iterable values) { + public Builder addAllResourceOwners( + java.lang.Iterable values) { ensureResourceOwnersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceOwners_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceOwners_); onChanged(); return this; } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @return This builder for chaining. */ public Builder clearResourceOwners() { @@ -2361,22 +2111,20 @@ public Builder clearResourceOwners() { return this; } /** - * - * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; - * * @param value The bytes of the resourceOwners to add. * @return This builder for chaining. */ - public Builder addResourceOwnersBytes(com.google.protobuf.ByteString value) { + public Builder addResourceOwnersBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureResourceOwnersIsMutable(); resourceOwners_.add(value); onChanged(); @@ -2385,20 +2133,18 @@ public Builder addResourceOwnersBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceDisplayName_ = ""; /** - * - * *
        * The user defined display name for this resource.
        * 
* * string resource_display_name = 6; - * * @return The resourceDisplayName. */ public java.lang.String getResourceDisplayName() { java.lang.Object ref = resourceDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceDisplayName_ = s; return s; @@ -2407,21 +2153,20 @@ public java.lang.String getResourceDisplayName() { } } /** - * - * *
        * The user defined display name for this resource.
        * 
* * string resource_display_name = 6; - * * @return The bytes for resourceDisplayName. */ - public com.google.protobuf.ByteString getResourceDisplayNameBytes() { + public com.google.protobuf.ByteString + getResourceDisplayNameBytes() { java.lang.Object ref = resourceDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceDisplayName_ = b; return b; } else { @@ -2429,61 +2174,54 @@ public com.google.protobuf.ByteString getResourceDisplayNameBytes() { } } /** - * - * *
        * The user defined display name for this resource.
        * 
* * string resource_display_name = 6; - * * @param value The resourceDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceDisplayName(java.lang.String value) { + public Builder setResourceDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceDisplayName_ = value; onChanged(); return this; } /** - * - * *
        * The user defined display name for this resource.
        * 
* * string resource_display_name = 6; - * * @return This builder for chaining. */ public Builder clearResourceDisplayName() { - + resourceDisplayName_ = getDefaultInstance().getResourceDisplayName(); onChanged(); return this; } /** - * - * *
        * The user defined display name for this resource.
        * 
* * string resource_display_name = 6; - * * @param value The bytes for resourceDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setResourceDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceDisplayName_ = value; onChanged(); return this; @@ -2491,20 +2229,18 @@ public Builder setResourceDisplayNameBytes(com.google.protobuf.ByteString value) private java.lang.Object resourceParentDisplayName_ = ""; /** - * - * *
        * The user defined display name for the parent of this resource.
        * 
* * string resource_parent_display_name = 7; - * * @return The resourceParentDisplayName. */ public java.lang.String getResourceParentDisplayName() { java.lang.Object ref = resourceParentDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParentDisplayName_ = s; return s; @@ -2512,22 +2248,21 @@ public java.lang.String getResourceParentDisplayName() { return (java.lang.String) ref; } } - /** - * - * + /** *
        * The user defined display name for the parent of this resource.
        * 
* * string resource_parent_display_name = 7; - * * @return The bytes for resourceParentDisplayName. */ - public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() { + public com.google.protobuf.ByteString + getResourceParentDisplayNameBytes() { java.lang.Object ref = resourceParentDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceParentDisplayName_ = b; return b; } else { @@ -2535,61 +2270,54 @@ public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() { } } /** - * - * *
        * The user defined display name for the parent of this resource.
        * 
* * string resource_parent_display_name = 7; - * * @param value The resourceParentDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceParentDisplayName(java.lang.String value) { + public Builder setResourceParentDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceParentDisplayName_ = value; onChanged(); return this; } /** - * - * *
        * The user defined display name for the parent of this resource.
        * 
* * string resource_parent_display_name = 7; - * * @return This builder for chaining. */ public Builder clearResourceParentDisplayName() { - + resourceParentDisplayName_ = getDefaultInstance().getResourceParentDisplayName(); onChanged(); return this; } /** - * - * *
        * The user defined display name for the parent of this resource.
        * 
* * string resource_parent_display_name = 7; - * * @param value The bytes for resourceParentDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceParentDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setResourceParentDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceParentDisplayName_ = value; onChanged(); return this; @@ -2597,20 +2325,18 @@ public Builder setResourceParentDisplayNameBytes(com.google.protobuf.ByteString private java.lang.Object resourceProjectDisplayName_ = ""; /** - * - * *
        * The user defined display name for the project of this resource.
        * 
* * string resource_project_display_name = 8; - * * @return The resourceProjectDisplayName. */ public java.lang.String getResourceProjectDisplayName() { java.lang.Object ref = resourceProjectDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProjectDisplayName_ = s; return s; @@ -2619,21 +2345,20 @@ public java.lang.String getResourceProjectDisplayName() { } } /** - * - * *
        * The user defined display name for the project of this resource.
        * 
* * string resource_project_display_name = 8; - * * @return The bytes for resourceProjectDisplayName. */ - public com.google.protobuf.ByteString getResourceProjectDisplayNameBytes() { + public com.google.protobuf.ByteString + getResourceProjectDisplayNameBytes() { java.lang.Object ref = resourceProjectDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceProjectDisplayName_ = b; return b; } else { @@ -2641,86 +2366,72 @@ public com.google.protobuf.ByteString getResourceProjectDisplayNameBytes() { } } /** - * - * *
        * The user defined display name for the project of this resource.
        * 
* * string resource_project_display_name = 8; - * * @param value The resourceProjectDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceProjectDisplayName(java.lang.String value) { + public Builder setResourceProjectDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceProjectDisplayName_ = value; onChanged(); return this; } /** - * - * *
        * The user defined display name for the project of this resource.
        * 
* * string resource_project_display_name = 8; - * * @return This builder for chaining. */ public Builder clearResourceProjectDisplayName() { - + resourceProjectDisplayName_ = getDefaultInstance().getResourceProjectDisplayName(); onChanged(); return this; } /** - * - * *
        * The user defined display name for the project of this resource.
        * 
* * string resource_project_display_name = 8; - * * @param value The bytes for resourceProjectDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceProjectDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setResourceProjectDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceProjectDisplayName_ = value; onChanged(); return this; } private java.util.List folders_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - folders_ = - new java.util.ArrayList(folders_); + folders_ = new java.util.ArrayList(folders_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Folder, - com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, - com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> - foldersBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> foldersBuilder_; /** - * - * *
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2737,8 +2448,6 @@ public java.util.List getFolde
         }
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2755,8 +2464,6 @@ public int getFoldersCount() {
         }
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2773,8 +2480,6 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index) {
         }
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2783,7 +2488,8 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index) {
        *
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
-      public Builder setFolders(int index, com.google.cloud.securitycenter.v1p1beta1.Folder value) {
+      public Builder setFolders(
+          int index, com.google.cloud.securitycenter.v1p1beta1.Folder value) {
         if (foldersBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -2797,8 +2503,6 @@ public Builder setFolders(int index, com.google.cloud.securitycenter.v1p1beta1.F
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2819,8 +2523,6 @@ public Builder setFolders(
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2843,8 +2545,6 @@ public Builder addFolders(com.google.cloud.securitycenter.v1p1beta1.Folder value
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2853,7 +2553,8 @@ public Builder addFolders(com.google.cloud.securitycenter.v1p1beta1.Folder value
        *
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
-      public Builder addFolders(int index, com.google.cloud.securitycenter.v1p1beta1.Folder value) {
+      public Builder addFolders(
+          int index, com.google.cloud.securitycenter.v1p1beta1.Folder value) {
         if (foldersBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -2867,8 +2568,6 @@ public Builder addFolders(int index, com.google.cloud.securitycenter.v1p1beta1.F
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2889,8 +2588,6 @@ public Builder addFolders(
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2911,8 +2608,6 @@ public Builder addFolders(
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2925,7 +2620,8 @@ public Builder addAllFolders(
           java.lang.Iterable values) {
         if (foldersBuilder_ == null) {
           ensureFoldersIsMutable();
-          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_);
+          com.google.protobuf.AbstractMessageLite.Builder.addAll(
+              values, folders_);
           onChanged();
         } else {
           foldersBuilder_.addAllMessages(values);
@@ -2933,8 +2629,6 @@ public Builder addAllFolders(
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2954,8 +2648,6 @@ public Builder clearFolders() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2975,8 +2667,6 @@ public Builder removeFolders(int index) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2985,12 +2675,11 @@ public Builder removeFolders(int index) {
        *
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
-      public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder getFoldersBuilder(int index) {
+      public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder getFoldersBuilder(
+          int index) {
         return getFoldersFieldBuilder().getBuilder(index);
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -3002,14 +2691,11 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder getFoldersBuilde
       public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder(
           int index) {
         if (foldersBuilder_ == null) {
-          return folders_.get(index);
-        } else {
+          return folders_.get(index);  } else {
           return foldersBuilder_.getMessageOrBuilder(index);
         }
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -3018,8 +2704,8 @@ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBui
        *
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
-      public java.util.List
-          getFoldersOrBuilderList() {
+      public java.util.List 
+           getFoldersOrBuilderList() {
         if (foldersBuilder_ != null) {
           return foldersBuilder_.getMessageOrBuilderList();
         } else {
@@ -3027,8 +2713,6 @@ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBui
         }
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -3038,12 +2722,10 @@ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBui
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
       public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilder() {
-        return getFoldersFieldBuilder()
-            .addBuilder(com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance());
+        return getFoldersFieldBuilder().addBuilder(
+            com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance());
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -3052,14 +2734,12 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilde
        *
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
-      public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilder(int index) {
-        return getFoldersFieldBuilder()
-            .addBuilder(
-                index, com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance());
+      public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilder(
+          int index) {
+        return getFoldersFieldBuilder().addBuilder(
+            index, com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance());
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -3068,28 +2748,24 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilde
        *
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
-      public java.util.List
-          getFoldersBuilderList() {
+      public java.util.List 
+           getFoldersBuilderList() {
         return getFoldersFieldBuilder().getBuilderList();
       }
-
       private com.google.protobuf.RepeatedFieldBuilderV3<
-              com.google.cloud.securitycenter.v1p1beta1.Folder,
-              com.google.cloud.securitycenter.v1p1beta1.Folder.Builder,
-              com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder>
+          com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> 
           getFoldersFieldBuilder() {
         if (foldersBuilder_ == null) {
-          foldersBuilder_ =
-              new com.google.protobuf.RepeatedFieldBuilderV3<
-                  com.google.cloud.securitycenter.v1p1beta1.Folder,
-                  com.google.cloud.securitycenter.v1p1beta1.Folder.Builder,
-                  com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder>(
-                  folders_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+          foldersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+              com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder>(
+                  folders_,
+                  ((bitField0_ & 0x00000002) != 0),
+                  getParentForChildren(),
+                  isClean());
           folders_ = null;
         }
         return foldersBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -3102,33 +2778,30 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties)
-    private static final com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
-        DEFAULT_INSTANCE;
-
+    private static final com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE =
-          new com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties();
+      DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties();
     }
 
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
-        getDefaultInstance() {
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public SecurityCenterProperties parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            return new SecurityCenterProperties(input, extensionRegistry);
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public SecurityCenterProperties parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        return new SecurityCenterProperties(input, extensionRegistry);
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -3140,20 +2813,17 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
-        getDefaultInstanceForType() {
+    public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
-  public interface IamPolicyOrBuilder
-      extends
+  public interface IamPolicyOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The JSON representation of the Policy associated with the asset.
      * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
@@ -3161,13 +2831,10 @@ public interface IamPolicyOrBuilder
      * 
* * string policy_blob = 1; - * * @return The policyBlob. */ java.lang.String getPolicyBlob(); /** - * - * *
      * The JSON representation of the Policy associated with the asset.
      * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
@@ -3175,14 +2842,12 @@ public interface IamPolicyOrBuilder
      * 
* * string policy_blob = 1; - * * @return The bytes for policyBlob. */ - com.google.protobuf.ByteString getPolicyBlobBytes(); + com.google.protobuf.ByteString + getPolicyBlobBytes(); } /** - * - * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -3192,31 +2857,31 @@ public interface IamPolicyOrBuilder
    *
    * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy}
    */
-  public static final class IamPolicy extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class IamPolicy extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy)
       IamPolicyOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use IamPolicy.newBuilder() to construct.
     private IamPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private IamPolicy() {
       policyBlob_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new IamPolicy();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private IamPolicy(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -3235,20 +2900,19 @@ private IamPolicy(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                policyBlob_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              policyBlob_ = s;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3256,33 +2920,29 @@ private IamPolicy(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.class,
-              com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder.class);
+              com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.class, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder.class);
     }
 
     public static final int POLICY_BLOB_FIELD_NUMBER = 1;
     private volatile java.lang.Object policyBlob_;
     /**
-     *
-     *
      * 
      * The JSON representation of the Policy associated with the asset.
      * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
@@ -3290,7 +2950,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string policy_blob = 1; - * * @return The policyBlob. */ @java.lang.Override @@ -3299,15 +2958,14 @@ public java.lang.String getPolicyBlob() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyBlob_ = s; return s; } } /** - * - * *
      * The JSON representation of the Policy associated with the asset.
      * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
@@ -3315,15 +2973,16 @@ public java.lang.String getPolicyBlob() {
      * 
* * string policy_blob = 1; - * * @return The bytes for policyBlob. */ @java.lang.Override - public com.google.protobuf.ByteString getPolicyBlobBytes() { + public com.google.protobuf.ByteString + getPolicyBlobBytes() { java.lang.Object ref = policyBlob_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); policyBlob_ = b; return b; } else { @@ -3332,7 +2991,6 @@ public com.google.protobuf.ByteString getPolicyBlobBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3344,7 +3002,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyBlob_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyBlob_); } @@ -3368,15 +3027,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy other = - (com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) obj; + com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy other = (com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) obj; - if (!getPolicyBlob().equals(other.getPolicyBlob())) return false; + if (!getPolicyBlob() + .equals(other.getPolicyBlob())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3396,94 +3055,87 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3493,8 +3145,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -3504,24 +3154,21 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy)
         com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
-            .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
-            .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_fieldAccessorTable
+        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.class,
-                com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder.class);
+                com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.class, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder.class);
       }
 
       // Construct using com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.newBuilder()
@@ -3529,15 +3176,16 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -3547,9 +3195,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
-            .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor;
       }
 
       @java.lang.Override
@@ -3568,8 +3216,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy build() {
 
       @java.lang.Override
       public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy buildPartial() {
-        com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy result =
-            new com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy(this);
+        com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy result = new com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy(this);
         result.policyBlob_ = policyBlob_;
         onBuilt();
         return result;
@@ -3579,41 +3226,38 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy buildPartial()
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) {
-          return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) other);
+          return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -3621,8 +3265,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy other) {
-        if (other == com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance()) return this;
         if (!other.getPolicyBlob().isEmpty()) {
           policyBlob_ = other.policyBlob_;
           onChanged();
@@ -3646,8 +3289,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -3659,8 +3301,6 @@ public Builder mergeFrom(
 
       private java.lang.Object policyBlob_ = "";
       /**
-       *
-       *
        * 
        * The JSON representation of the Policy associated with the asset.
        * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
@@ -3668,13 +3308,13 @@ public Builder mergeFrom(
        * 
* * string policy_blob = 1; - * * @return The policyBlob. */ public java.lang.String getPolicyBlob() { java.lang.Object ref = policyBlob_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyBlob_ = s; return s; @@ -3683,8 +3323,6 @@ public java.lang.String getPolicyBlob() { } } /** - * - * *
        * The JSON representation of the Policy associated with the asset.
        * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
@@ -3692,14 +3330,15 @@ public java.lang.String getPolicyBlob() {
        * 
* * string policy_blob = 1; - * * @return The bytes for policyBlob. */ - public com.google.protobuf.ByteString getPolicyBlobBytes() { + public com.google.protobuf.ByteString + getPolicyBlobBytes() { java.lang.Object ref = policyBlob_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); policyBlob_ = b; return b; } else { @@ -3707,8 +3346,6 @@ public com.google.protobuf.ByteString getPolicyBlobBytes() { } } /** - * - * *
        * The JSON representation of the Policy associated with the asset.
        * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
@@ -3716,22 +3353,20 @@ public com.google.protobuf.ByteString getPolicyBlobBytes() {
        * 
* * string policy_blob = 1; - * * @param value The policyBlob to set. * @return This builder for chaining. */ - public Builder setPolicyBlob(java.lang.String value) { + public Builder setPolicyBlob( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + policyBlob_ = value; onChanged(); return this; } /** - * - * *
        * The JSON representation of the Policy associated with the asset.
        * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
@@ -3739,18 +3374,15 @@ public Builder setPolicyBlob(java.lang.String value) {
        * 
* * string policy_blob = 1; - * * @return This builder for chaining. */ public Builder clearPolicyBlob() { - + policyBlob_ = getDefaultInstance().getPolicyBlob(); onChanged(); return this; } /** - * - * *
        * The JSON representation of the Policy associated with the asset.
        * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
@@ -3758,21 +3390,20 @@ public Builder clearPolicyBlob() {
        * 
* * string policy_blob = 1; - * * @param value The bytes for policyBlob to set. * @return This builder for chaining. */ - public Builder setPolicyBlobBytes(com.google.protobuf.ByteString value) { + public Builder setPolicyBlobBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policyBlob_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3785,12 +3416,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) private static final com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy(); } @@ -3799,16 +3430,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IamPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IamPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IamPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IamPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3823,13 +3454,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -3838,7 +3468,6 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getDefaultInsta
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -3847,15 +3476,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -3864,15 +3492,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3881,20 +3510,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int SECURITY_CENTER_PROPERTIES_FIELD_NUMBER = 2; - private com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties - securityCenterProperties_; + private com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties securityCenterProperties_; /** - * - * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * @return Whether the securityCenterProperties field is set. */ @java.lang.Override @@ -3902,65 +3525,47 @@ public boolean hasSecurityCenterProperties() { return securityCenterProperties_ != null; } /** - * - * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * @return The securityCenterProperties. */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties - getSecurityCenterProperties() { - return securityCenterProperties_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties - .getDefaultInstance() - : securityCenterProperties_; + public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties getSecurityCenterProperties() { + return securityCenterProperties_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.getDefaultInstance() : securityCenterProperties_; } /** - * - * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder - getSecurityCenterPropertiesOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder() { return getSecurityCenterProperties(); } public static final int RESOURCE_PROPERTIES_FIELD_NUMBER = 7; - private static final class ResourcePropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.Value> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); } - + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> resourceProperties_; private com.google.protobuf.MapField - resourceProperties_; - - private com.google.protobuf.MapField - internalGetResourceProperties() { + internalGetResourceProperties() { if (resourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( ResourcePropertiesDefaultEntryHolder.defaultEntry); @@ -3972,8 +3577,6 @@ public int getResourcePropertiesCount() { return internalGetResourceProperties().getMap().size(); } /** - * - * *
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -3981,22 +3584,22 @@ public int getResourcePropertiesCount() {
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
+
   @java.lang.Override
-  public boolean containsResourceProperties(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsResourceProperties(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetResourceProperties().getMap().containsKey(key);
   }
-  /** Use {@link #getResourcePropertiesMap()} instead. */
+  /**
+   * Use {@link #getResourcePropertiesMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getResourceProperties() {
     return getResourcePropertiesMap();
   }
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -4005,12 +3608,11 @@ public java.util.Map getResourcePro
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
   @java.lang.Override
+
   public java.util.Map getResourcePropertiesMap() {
     return internalGetResourceProperties().getMap();
   }
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -4019,18 +3621,16 @@ public java.util.Map getResourcePro
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
   @java.lang.Override
+
   public com.google.protobuf.Value getResourcePropertiesOrDefault(
-      java.lang.String key, com.google.protobuf.Value defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+      java.lang.String key,
+      com.google.protobuf.Value defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetResourceProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -4039,10 +3639,10 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
   @java.lang.Override
-  public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+
+  public com.google.protobuf.Value getResourcePropertiesOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetResourceProperties().getMap();
     if (!map.containsKey(key)) {
@@ -4054,15 +3654,12 @@ public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String k
   public static final int SECURITY_MARKS_FIELD_NUMBER = 8;
   private com.google.cloud.securitycenter.v1p1beta1.SecurityMarks securityMarks_;
   /**
-   *
-   *
    * 
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; - * * @return Whether the securityMarks field is set. */ @java.lang.Override @@ -4070,26 +3667,19 @@ public boolean hasSecurityMarks() { return securityMarks_ != null; } /** - * - * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; - * * @return The securityMarks. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks() { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; } /** - * - * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
@@ -4098,22 +3688,18 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks(
    * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;
    */
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder
-      getSecurityMarksOrBuilder() {
+  public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() {
     return getSecurityMarks();
   }
 
   public static final int CREATE_TIME_FIELD_NUMBER = 9;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -4121,14 +3707,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; - * * @return The createTime. */ @java.lang.Override @@ -4136,8 +3719,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time at which the asset was created in Security Command Center.
    * 
@@ -4152,14 +3733,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
* * .google.protobuf.Timestamp update_time = 10; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -4167,14 +3745,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
* * .google.protobuf.Timestamp update_time = 10; - * * @return The updateTime. */ @java.lang.Override @@ -4182,8 +3757,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
@@ -4198,8 +3771,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int IAM_POLICY_FIELD_NUMBER = 11; private com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iamPolicy_; /** - * - * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -4208,7 +3779,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; - * * @return Whether the iamPolicy field is set. */ @java.lang.Override @@ -4216,8 +3786,6 @@ public boolean hasIamPolicy() { return iamPolicy_ != null; } /** - * - * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -4226,18 +3794,13 @@ public boolean hasIamPolicy() {
    * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; - * * @return The iamPolicy. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getIamPolicy() { - return iamPolicy_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance() - : iamPolicy_; + return iamPolicy_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance() : iamPolicy_; } /** - * - * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -4248,16 +3811,13 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getIamPolicy()
    * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
    */
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder
-      getIamPolicyOrBuilder() {
+  public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder getIamPolicyOrBuilder() {
     return getIamPolicy();
   }
 
   public static final int CANONICAL_NAME_FIELD_NUMBER = 13;
   private volatile java.lang.Object canonicalName_;
   /**
-   *
-   *
    * 
    * The canonical name of the resource. It's either
    * "organizations/{organization_id}/assets/{asset_id}",
@@ -4267,7 +3827,6 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getIamPolicy()
    * 
* * string canonical_name = 13; - * * @return The canonicalName. */ @java.lang.Override @@ -4276,15 +3835,14 @@ public java.lang.String getCanonicalName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; } } /** - * - * *
    * The canonical name of the resource. It's either
    * "organizations/{organization_id}/assets/{asset_id}",
@@ -4294,15 +3852,16 @@ public java.lang.String getCanonicalName() {
    * 
* * string canonical_name = 13; - * * @return The bytes for canonicalName. */ @java.lang.Override - public com.google.protobuf.ByteString getCanonicalNameBytes() { + public com.google.protobuf.ByteString + getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -4311,7 +3870,6 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4323,14 +3881,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (securityCenterProperties_ != null) { output.writeMessage(2, getSecurityCenterProperties()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetResourceProperties(), ResourcePropertiesDefaultEntryHolder.defaultEntry, @@ -4363,32 +3923,34 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (securityCenterProperties_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getSecurityCenterProperties()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSecurityCenterProperties()); } - for (java.util.Map.Entry entry : - internalGetResourceProperties().getMap().entrySet()) { + for (java.util.Map.Entry entry + : internalGetResourceProperties().getMap().entrySet()) { com.google.protobuf.MapEntry - resourceProperties__ = - ResourcePropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, resourceProperties__); + resourceProperties__ = ResourcePropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, resourceProperties__); } if (securityMarks_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSecurityMarks()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSecurityMarks()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getUpdateTime()); } if (iamPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getIamPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getIamPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, canonicalName_); @@ -4401,38 +3963,44 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.Asset)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.Asset other = - (com.google.cloud.securitycenter.v1p1beta1.Asset) obj; + com.google.cloud.securitycenter.v1p1beta1.Asset other = (com.google.cloud.securitycenter.v1p1beta1.Asset) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasSecurityCenterProperties() != other.hasSecurityCenterProperties()) return false; if (hasSecurityCenterProperties()) { - if (!getSecurityCenterProperties().equals(other.getSecurityCenterProperties())) return false; + if (!getSecurityCenterProperties() + .equals(other.getSecurityCenterProperties())) return false; } - if (!internalGetResourceProperties().equals(other.internalGetResourceProperties())) - return false; + if (!internalGetResourceProperties().equals( + other.internalGetResourceProperties())) return false; if (hasSecurityMarks() != other.hasSecurityMarks()) return false; if (hasSecurityMarks()) { - if (!getSecurityMarks().equals(other.getSecurityMarks())) return false; + if (!getSecurityMarks() + .equals(other.getSecurityMarks())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasIamPolicy() != other.hasIamPolicy()) return false; if (hasIamPolicy()) { - if (!getIamPolicy().equals(other.getIamPolicy())) return false; + if (!getIamPolicy() + .equals(other.getIamPolicy())) return false; } - if (!getCanonicalName().equals(other.getCanonicalName())) return false; + if (!getCanonicalName() + .equals(other.getCanonicalName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4477,104 +4045,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.Asset parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.Asset parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.Asset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Security Command Center representation of a Google Cloud
    * resource.
@@ -4586,43 +4147,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.Asset)
       com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 7:
           return internalGetResourceProperties();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 7:
           return internalGetMutableResourceProperties();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1p1beta1.Asset.class,
-              com.google.cloud.securitycenter.v1p1beta1.Asset.Builder.class);
+              com.google.cloud.securitycenter.v1p1beta1.Asset.class, com.google.cloud.securitycenter.v1p1beta1.Asset.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1p1beta1.Asset.newBuilder()
@@ -4630,15 +4191,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -4681,9 +4243,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor;
     }
 
     @java.lang.Override
@@ -4702,8 +4264,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1p1beta1.Asset buildPartial() {
-      com.google.cloud.securitycenter.v1p1beta1.Asset result =
-          new com.google.cloud.securitycenter.v1p1beta1.Asset(this);
+      com.google.cloud.securitycenter.v1p1beta1.Asset result = new com.google.cloud.securitycenter.v1p1beta1.Asset(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (securityCenterPropertiesBuilder_ == null) {
@@ -4742,39 +4303,38 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1p1beta1.Asset) {
-        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Asset) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Asset)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -4782,8 +4342,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Asset other) {
-      if (other == com.google.cloud.securitycenter.v1p1beta1.Asset.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.securitycenter.v1p1beta1.Asset.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -4791,7 +4350,8 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Asset other)
       if (other.hasSecurityCenterProperties()) {
         mergeSecurityCenterProperties(other.getSecurityCenterProperties());
       }
-      internalGetMutableResourceProperties().mergeFrom(other.internalGetResourceProperties());
+      internalGetMutableResourceProperties().mergeFrom(
+          other.internalGetResourceProperties());
       if (other.hasSecurityMarks()) {
         mergeSecurityMarks(other.getSecurityMarks());
       }
@@ -4836,13 +4396,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4851,13 +4408,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -4866,8 +4423,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4876,14 +4431,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -4891,8 +4447,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4901,22 +4455,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4925,18 +4477,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4945,84 +4494,61 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties - securityCenterProperties_; + private com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties securityCenterProperties_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties, - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder, - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder> - securityCenterPropertiesBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder> securityCenterPropertiesBuilder_; /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * @return Whether the securityCenterProperties field is set. */ public boolean hasSecurityCenterProperties() { return securityCenterPropertiesBuilder_ != null || securityCenterProperties_ != null; } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * @return The securityCenterProperties. */ - public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties - getSecurityCenterProperties() { + public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties getSecurityCenterProperties() { if (securityCenterPropertiesBuilder_ == null) { - return securityCenterProperties_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties - .getDefaultInstance() - : securityCenterProperties_; + return securityCenterProperties_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.getDefaultInstance() : securityCenterProperties_; } else { return securityCenterPropertiesBuilder_.getMessage(); } } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; */ - public Builder setSecurityCenterProperties( - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties value) { + public Builder setSecurityCenterProperties(com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties value) { if (securityCenterPropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5036,20 +4562,15 @@ public Builder setSecurityCenterProperties( return this; } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; */ public Builder setSecurityCenterProperties( - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder - builderForValue) { + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder builderForValue) { if (securityCenterPropertiesBuilder_ == null) { securityCenterProperties_ = builderForValue.build(); onChanged(); @@ -5060,26 +4581,18 @@ public Builder setSecurityCenterProperties( return this; } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; */ - public Builder mergeSecurityCenterProperties( - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties value) { + public Builder mergeSecurityCenterProperties(com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties value) { if (securityCenterPropertiesBuilder_ == null) { if (securityCenterProperties_ != null) { securityCenterProperties_ = - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.newBuilder( - securityCenterProperties_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.newBuilder(securityCenterProperties_).mergeFrom(value).buildPartial(); } else { securityCenterProperties_ = value; } @@ -5091,16 +4604,12 @@ public Builder mergeSecurityCenterProperties( return this; } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; */ public Builder clearSecurityCenterProperties() { if (securityCenterPropertiesBuilder_ == null) { @@ -5114,95 +4623,72 @@ public Builder clearSecurityCenterProperties() { return this; } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; */ - public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder - getSecurityCenterPropertiesBuilder() { - + public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder getSecurityCenterPropertiesBuilder() { + onChanged(); return getSecurityCenterPropertiesFieldBuilder().getBuilder(); } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; */ - public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder - getSecurityCenterPropertiesOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder() { if (securityCenterPropertiesBuilder_ != null) { return securityCenterPropertiesBuilder_.getMessageOrBuilder(); } else { - return securityCenterProperties_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties - .getDefaultInstance() - : securityCenterProperties_; + return securityCenterProperties_ == null ? + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.getDefaultInstance() : securityCenterProperties_; } } /** - * - * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties, - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder, - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder> getSecurityCenterPropertiesFieldBuilder() { if (securityCenterPropertiesBuilder_ == null) { - securityCenterPropertiesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties, - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder, - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder>( - getSecurityCenterProperties(), getParentForChildren(), isClean()); + securityCenterPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder>( + getSecurityCenterProperties(), + getParentForChildren(), + isClean()); securityCenterProperties_ = null; } return securityCenterPropertiesBuilder_; } + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> resourceProperties_; private com.google.protobuf.MapField - resourceProperties_; - - private com.google.protobuf.MapField - internalGetResourceProperties() { + internalGetResourceProperties() { if (resourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( ResourcePropertiesDefaultEntryHolder.defaultEntry); } return resourceProperties_; } - private com.google.protobuf.MapField - internalGetMutableResourceProperties() { - onChanged(); - ; + internalGetMutableResourceProperties() { + onChanged();; if (resourceProperties_ == null) { - resourceProperties_ = - com.google.protobuf.MapField.newMapField( - ResourcePropertiesDefaultEntryHolder.defaultEntry); + resourceProperties_ = com.google.protobuf.MapField.newMapField( + ResourcePropertiesDefaultEntryHolder.defaultEntry); } if (!resourceProperties_.isMutable()) { resourceProperties_ = resourceProperties_.copy(); @@ -5214,8 +4700,6 @@ public int getResourcePropertiesCount() { return internalGetResourceProperties().getMap().size(); } /** - * - * *
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -5223,22 +4707,22 @@ public int getResourcePropertiesCount() {
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
+
     @java.lang.Override
-    public boolean containsResourceProperties(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsResourceProperties(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetResourceProperties().getMap().containsKey(key);
     }
-    /** Use {@link #getResourcePropertiesMap()} instead. */
+    /**
+     * Use {@link #getResourcePropertiesMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getResourceProperties() {
       return getResourcePropertiesMap();
     }
     /**
-     *
-     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -5247,12 +4731,11 @@ public java.util.Map getResourcePro
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
     @java.lang.Override
+
     public java.util.Map getResourcePropertiesMap() {
       return internalGetResourceProperties().getMap();
     }
     /**
-     *
-     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -5261,18 +4744,16 @@ public java.util.Map getResourcePro
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
     @java.lang.Override
+
     public com.google.protobuf.Value getResourcePropertiesOrDefault(
-        java.lang.String key, com.google.protobuf.Value defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+        java.lang.String key,
+        com.google.protobuf.Value defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetResourceProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -5281,10 +4762,10 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
     @java.lang.Override
-    public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+
+    public com.google.protobuf.Value getResourcePropertiesOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetResourceProperties().getMap();
       if (!map.containsKey(key)) {
@@ -5294,12 +4775,11 @@ public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String k
     }
 
     public Builder clearResourceProperties() {
-      internalGetMutableResourceProperties().getMutableMap().clear();
+      internalGetMutableResourceProperties().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -5307,22 +4787,23 @@ public Builder clearResourceProperties() {
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
-    public Builder removeResourceProperties(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableResourceProperties().getMutableMap().remove(key);
+
+    public Builder removeResourceProperties(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableResourceProperties().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
     public java.util.Map
-        getMutableResourceProperties() {
+    getMutableResourceProperties() {
       return internalGetMutableResourceProperties().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -5330,20 +4811,19 @@ public Builder removeResourceProperties(java.lang.String key) {
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
-    public Builder putResourceProperties(java.lang.String key, com.google.protobuf.Value value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putResourceProperties(
+        java.lang.String key,
+        com.google.protobuf.Value value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableResourceProperties().getMutableMap().put(key, value);
+      internalGetMutableResourceProperties().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -5351,57 +4831,46 @@ public Builder putResourceProperties(java.lang.String key, com.google.protobuf.V
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
+
     public Builder putAllResourceProperties(
         java.util.Map values) {
-      internalGetMutableResourceProperties().getMutableMap().putAll(values);
+      internalGetMutableResourceProperties().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private com.google.cloud.securitycenter.v1p1beta1.SecurityMarks securityMarks_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks,
-            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder,
-            com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder>
-        securityMarksBuilder_;
+        com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder> securityMarksBuilder_;
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
      * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; - * * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; } /** - * - * *
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
      * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; - * * @return The securityMarks. */ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; } else { return securityMarksBuilder_.getMessage(); } } /** - * - * *
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -5423,8 +4892,6 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.Securi
       return this;
     }
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -5444,8 +4911,6 @@ public Builder setSecurityMarks(
       return this;
     }
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -5453,14 +4918,11 @@ public Builder setSecurityMarks(
      *
      * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;
      */
-    public Builder mergeSecurityMarks(
-        com.google.cloud.securitycenter.v1p1beta1.SecurityMarks value) {
+    public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks value) {
       if (securityMarksBuilder_ == null) {
         if (securityMarks_ != null) {
           securityMarks_ =
-              com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.newBuilder(securityMarks_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.newBuilder(securityMarks_).mergeFrom(value).buildPartial();
         } else {
           securityMarks_ = value;
         }
@@ -5472,8 +4934,6 @@ public Builder mergeSecurityMarks(
       return this;
     }
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -5493,8 +4953,6 @@ public Builder clearSecurityMarks() {
       return this;
     }
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -5502,15 +4960,12 @@ public Builder clearSecurityMarks() {
      *
      * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;
      */
-    public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder
-        getSecurityMarksBuilder() {
-
+    public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder getSecurityMarksBuilder() {
+      
       onChanged();
       return getSecurityMarksFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -5518,19 +4973,15 @@ public Builder clearSecurityMarks() {
      *
      * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;
      */
-    public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder
-        getSecurityMarksOrBuilder() {
+    public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() {
       if (securityMarksBuilder_ != null) {
         return securityMarksBuilder_.getMessageOrBuilder();
       } else {
-        return securityMarks_ == null
-            ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance()
-            : securityMarks_;
+        return securityMarks_ == null ?
+            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_;
       }
     }
     /**
-     *
-     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -5539,17 +4990,14 @@ public Builder clearSecurityMarks() {
      * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks,
-            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder,
-            com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder>
+        com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder> 
         getSecurityMarksFieldBuilder() {
       if (securityMarksBuilder_ == null) {
-        securityMarksBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.securitycenter.v1p1beta1.SecurityMarks,
-                com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder,
-                com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder>(
-                getSecurityMarks(), getParentForChildren(), isClean());
+        securityMarksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder>(
+                getSecurityMarks(),
+                getParentForChildren(),
+                isClean());
         securityMarks_ = null;
       }
       return securityMarksBuilder_;
@@ -5557,47 +5005,34 @@ public Builder clearSecurityMarks() {
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5618,15 +5053,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -5637,8 +5071,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5649,7 +5081,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -5661,8 +5093,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5681,8 +5111,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5690,13 +5118,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 9; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5707,14 +5133,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5722,17 +5145,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -5740,47 +5160,34 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
* * .google.protobuf.Timestamp update_time = 10; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
* * .google.protobuf.Timestamp update_time = 10; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5801,15 +5208,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
* * .google.protobuf.Timestamp update_time = 10; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -5820,8 +5226,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5832,7 +5236,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -5844,8 +5248,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5864,8 +5266,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5873,13 +5273,11 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 10; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5890,14 +5288,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5905,17 +5300,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -5923,13 +5315,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iamPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy, - com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder, - com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder> - iamPolicyBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder> iamPolicyBuilder_; /** - * - * *
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5938,15 +5325,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; - * * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return iamPolicyBuilder_ != null || iamPolicy_ != null; } /** - * - * *
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5955,21 +5339,16 @@ public boolean hasIamPolicy() {
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; - * * @return The iamPolicy. */ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getIamPolicy() { if (iamPolicyBuilder_ == null) { - return iamPolicy_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance() - : iamPolicy_; + return iamPolicy_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance() : iamPolicy_; } else { return iamPolicyBuilder_.getMessage(); } } /** - * - * *
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5993,8 +5372,6 @@ public Builder setIamPolicy(com.google.cloud.securitycenter.v1p1beta1.Asset.IamP
       return this;
     }
     /**
-     *
-     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -6016,8 +5393,6 @@ public Builder setIamPolicy(
       return this;
     }
     /**
-     *
-     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -6031,9 +5406,7 @@ public Builder mergeIamPolicy(com.google.cloud.securitycenter.v1p1beta1.Asset.Ia
       if (iamPolicyBuilder_ == null) {
         if (iamPolicy_ != null) {
           iamPolicy_ =
-              com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.newBuilder(iamPolicy_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.newBuilder(iamPolicy_).mergeFrom(value).buildPartial();
         } else {
           iamPolicy_ = value;
         }
@@ -6045,8 +5418,6 @@ public Builder mergeIamPolicy(com.google.cloud.securitycenter.v1p1beta1.Asset.Ia
       return this;
     }
     /**
-     *
-     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -6068,8 +5439,6 @@ public Builder clearIamPolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -6080,13 +5449,11 @@ public Builder clearIamPolicy() {
      * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
      */
     public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder getIamPolicyBuilder() {
-
+      
       onChanged();
       return getIamPolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -6096,19 +5463,15 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder getIamP
      *
      * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
      */
-    public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder
-        getIamPolicyOrBuilder() {
+    public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder getIamPolicyOrBuilder() {
       if (iamPolicyBuilder_ != null) {
         return iamPolicyBuilder_.getMessageOrBuilder();
       } else {
-        return iamPolicy_ == null
-            ? com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance()
-            : iamPolicy_;
+        return iamPolicy_ == null ?
+            com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance() : iamPolicy_;
       }
     }
     /**
-     *
-     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -6119,17 +5482,14 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder getIamP
      * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy,
-            com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder,
-            com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder>
+        com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder> 
         getIamPolicyFieldBuilder() {
       if (iamPolicyBuilder_ == null) {
-        iamPolicyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy,
-                com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder,
-                com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder>(
-                getIamPolicy(), getParentForChildren(), isClean());
+        iamPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder>(
+                getIamPolicy(),
+                getParentForChildren(),
+                isClean());
         iamPolicy_ = null;
       }
       return iamPolicyBuilder_;
@@ -6137,8 +5497,6 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder getIamP
 
     private java.lang.Object canonicalName_ = "";
     /**
-     *
-     *
      * 
      * The canonical name of the resource. It's either
      * "organizations/{organization_id}/assets/{asset_id}",
@@ -6148,13 +5506,13 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder getIamP
      * 
* * string canonical_name = 13; - * * @return The canonicalName. */ public java.lang.String getCanonicalName() { java.lang.Object ref = canonicalName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; @@ -6163,8 +5521,6 @@ public java.lang.String getCanonicalName() { } } /** - * - * *
      * The canonical name of the resource. It's either
      * "organizations/{organization_id}/assets/{asset_id}",
@@ -6174,14 +5530,15 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 13; - * * @return The bytes for canonicalName. */ - public com.google.protobuf.ByteString getCanonicalNameBytes() { + public com.google.protobuf.ByteString + getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -6189,8 +5546,6 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() { } } /** - * - * *
      * The canonical name of the resource. It's either
      * "organizations/{organization_id}/assets/{asset_id}",
@@ -6200,22 +5555,20 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() {
      * 
* * string canonical_name = 13; - * * @param value The canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalName(java.lang.String value) { + public Builder setCanonicalName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + canonicalName_ = value; onChanged(); return this; } /** - * - * *
      * The canonical name of the resource. It's either
      * "organizations/{organization_id}/assets/{asset_id}",
@@ -6225,18 +5578,15 @@ public Builder setCanonicalName(java.lang.String value) {
      * 
* * string canonical_name = 13; - * * @return This builder for chaining. */ public Builder clearCanonicalName() { - + canonicalName_ = getDefaultInstance().getCanonicalName(); onChanged(); return this; } /** - * - * *
      * The canonical name of the resource. It's either
      * "organizations/{organization_id}/assets/{asset_id}",
@@ -6246,23 +5596,23 @@ public Builder clearCanonicalName() {
      * 
* * string canonical_name = 13; - * * @param value The bytes for canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalNameBytes(com.google.protobuf.ByteString value) { + public Builder setCanonicalNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6272,12 +5622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.Asset) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.Asset) private static final com.google.cloud.securitycenter.v1p1beta1.Asset DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.Asset(); } @@ -6286,16 +5636,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.Asset getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Asset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Asset(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Asset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Asset(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6310,4 +5660,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.Asset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetName.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetName.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetName.java diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java similarity index 79% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java index 6afcd4752..ddef71598 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/asset.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface AssetOrBuilder - extends +public interface AssetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.Asset) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -34,13 +16,10 @@ public interface AssetOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -49,60 +28,42 @@ public interface AssetOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * @return Whether the securityCenterProperties field is set. */ boolean hasSecurityCenterProperties(); /** - * - * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * @return The securityCenterProperties. */ - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties - getSecurityCenterProperties(); + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties getSecurityCenterProperties(); /** - * - * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; - * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; */ - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder - getSecurityCenterPropertiesOrBuilder(); + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder(); /** - * - * *
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -112,8 +73,6 @@ public interface AssetOrBuilder
    */
   int getResourcePropertiesCount();
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -121,13 +80,15 @@ public interface AssetOrBuilder
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-  boolean containsResourceProperties(java.lang.String key);
-  /** Use {@link #getResourcePropertiesMap()} instead. */
+  boolean containsResourceProperties(
+      java.lang.String key);
+  /**
+   * Use {@link #getResourcePropertiesMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getResourceProperties();
+  java.util.Map
+  getResourceProperties();
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -135,10 +96,9 @@ public interface AssetOrBuilder
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-  java.util.Map getResourcePropertiesMap();
+  java.util.Map
+  getResourcePropertiesMap();
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -148,13 +108,11 @@ public interface AssetOrBuilder
    */
 
   /* nullable */
-  com.google.protobuf.Value getResourcePropertiesOrDefault(
+com.google.protobuf.Value getResourcePropertiesOrDefault(
       java.lang.String key,
       /* nullable */
-      com.google.protobuf.Value defaultValue);
+com.google.protobuf.Value defaultValue);
   /**
-   *
-   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -162,37 +120,31 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-  com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key);
+
+  com.google.protobuf.Value getResourcePropertiesOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; - * * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** - * - * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; - * * @return The securityMarks. */ com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks(); /** - * - * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
@@ -203,32 +155,24 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
   com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder();
 
   /**
-   *
-   *
    * 
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time at which the asset was created in Security Command Center.
    * 
@@ -238,32 +182,24 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
* * .google.protobuf.Timestamp update_time = 10; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
* * .google.protobuf.Timestamp update_time = 10; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
@@ -273,8 +209,6 @@ com.google.protobuf.Value getResourcePropertiesOrDefault( com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -283,13 +217,10 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
    * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; - * * @return Whether the iamPolicy field is set. */ boolean hasIamPolicy(); /** - * - * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -298,13 +229,10 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
    * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; - * * @return The iamPolicy. */ com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getIamPolicy(); /** - * - * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -317,8 +245,6 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
   com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder getIamPolicyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The canonical name of the resource. It's either
    * "organizations/{organization_id}/assets/{asset_id}",
@@ -328,13 +254,10 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
    * 
* * string canonical_name = 13; - * * @return The canonicalName. */ java.lang.String getCanonicalName(); /** - * - * *
    * The canonical name of the resource. It's either
    * "organizations/{organization_id}/assets/{asset_id}",
@@ -344,8 +267,8 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
    * 
* * string canonical_name = 13; - * * @return The bytes for canonicalName. */ - com.google.protobuf.ByteString getCanonicalNameBytes(); + com.google.protobuf.ByteString + getCanonicalNameBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOuterClass.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOuterClass.java new file mode 100644 index 000000000..de2263711 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOuterClass.java @@ -0,0 +1,138 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/asset.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class AssetOuterClass { + private AssetOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/securitycenter/v1p1beta1/" + + "asset.proto\022%google.cloud.securitycenter" + + ".v1p1beta1\032\031google/api/resource.proto\0322g" + + "oogle/cloud/securitycenter/v1p1beta1/fol" + + "der.proto\032:google/cloud/securitycenter/v" + + "1p1beta1/security_marks.proto\032\034google/pr" + + "otobuf/struct.proto\032\037google/protobuf/tim" + + "estamp.proto\032\034google/api/annotations.pro" + + "to\"\314\010\n\005Asset\022\014\n\004name\030\001 \001(\t\022i\n\032security_c" + + "enter_properties\030\002 \001(\0132E.google.cloud.se" + + "curitycenter.v1p1beta1.Asset.SecurityCen" + + "terProperties\022a\n\023resource_properties\030\007 \003" + + "(\0132D.google.cloud.securitycenter.v1p1bet" + + "a1.Asset.ResourcePropertiesEntry\022L\n\016secu" + + "rity_marks\030\010 \001(\01324.google.cloud.security" + + "center.v1p1beta1.SecurityMarks\022/\n\013create" + + "_time\030\t \001(\0132\032.google.protobuf.Timestamp\022" + + "/\n\013update_time\030\n \001(\0132\032.google.protobuf.T" + + "imestamp\022J\n\niam_policy\030\013 \001(\01326.google.cl" + + "oud.securitycenter.v1p1beta1.Asset.IamPo" + + "licy\022\026\n\016canonical_name\030\r \001(\t\032\300\002\n\030Securit" + + "yCenterProperties\022\025\n\rresource_name\030\001 \001(\t" + + "\022\025\n\rresource_type\030\002 \001(\t\022\027\n\017resource_pare" + + "nt\030\003 \001(\t\022\030\n\020resource_project\030\004 \001(\t\022\027\n\017re" + + "source_owners\030\005 \003(\t\022\035\n\025resource_display_" + + "name\030\006 \001(\t\022$\n\034resource_parent_display_na" + + "me\030\007 \001(\t\022%\n\035resource_project_display_nam" + + "e\030\010 \001(\t\022>\n\007folders\030\n \003(\0132-.google.cloud." + + "securitycenter.v1p1beta1.Folder\032 \n\tIamPo" + + "licy\022\023\n\013policy_blob\030\001 \001(\t\032Q\n\027ResourcePro" + + "pertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\013" + + "2\026.google.protobuf.Value:\0028\001:\232\001\352A\226\001\n#sec" + + "uritycenter.googleapis.com/Asset\022+organi" + + "zations/{organization}/assets/{asset}\022\037f" + + "olders/{folder}/assets/{asset}\022!projects" + + "/{project}/assets/{asset}B\375\001\n)com.google" + + ".cloud.securitycenter.v1p1beta1P\001ZSgoogl" + + "e.golang.org/genproto/googleapis/cloud/s" + + "ecuritycenter/v1p1beta1;securitycenter\252\002" + + "%Google.Cloud.SecurityCenter.V1P1Beta1\312\002" + + "%Google\\Cloud\\SecurityCenter\\V1p1beta1\352\002" + + "(Google::Cloud::SecurityCenter::V1p1beta" + + "1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor, + new java.lang.String[] { "Name", "SecurityCenterProperties", "ResourceProperties", "SecurityMarks", "CreateTime", "UpdateTime", "IamPolicy", "CanonicalName", }); + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor, + new java.lang.String[] { "ResourceName", "ResourceType", "ResourceParent", "ResourceProject", "ResourceOwners", "ResourceDisplayName", "ResourceParentDisplayName", "ResourceProjectDisplayName", "Folders", }); + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor, + new java.lang.String[] { "PolicyBlob", }); + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java similarity index 65% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java index 9d29b544e..643f12231 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Request message for creating a finding.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.CreateFindingRequest} */ -public final class CreateFindingRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateFindingRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) CreateFindingRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateFindingRequest.newBuilder() to construct. private CreateFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateFindingRequest() { parent_ = ""; findingId_ = ""; @@ -44,15 +26,16 @@ private CreateFindingRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,44 +54,38 @@ private CreateFindingRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - findingId_ = s; - break; + findingId_ = s; + break; + } + case 26: { + com.google.cloud.securitycenter.v1p1beta1.Finding.Builder subBuilder = null; + if (finding_ != null) { + subBuilder = finding_.toBuilder(); } - case 26: - { - com.google.cloud.securitycenter.v1p1beta1.Finding.Builder subBuilder = null; - if (finding_ != null) { - subBuilder = finding_.toBuilder(); - } - finding_ = - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.Finding.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(finding_); - finding_ = subBuilder.buildPartial(); - } - - break; + finding_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Finding.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finding_); + finding_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,42 +93,35 @@ private CreateFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.class, - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.class, com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -160,32 +130,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -196,14 +164,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FINDING_ID_FIELD_NUMBER = 2; private volatile java.lang.Object findingId_; /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The findingId. */ @java.lang.Override @@ -212,29 +177,29 @@ public java.lang.String getFindingId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingId_ = s; return s; } } /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for findingId. */ @java.lang.Override - public com.google.protobuf.ByteString getFindingIdBytes() { + public com.google.protobuf.ByteString + getFindingIdBytes() { java.lang.Object ref = findingId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingId_ = b; return b; } else { @@ -245,17 +210,12 @@ public com.google.protobuf.ByteString getFindingIdBytes() { public static final int FINDING_FIELD_NUMBER = 3; private com.google.cloud.securitycenter.v1p1beta1.Finding finding_; /** - * - * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the finding field is set. */ @java.lang.Override @@ -263,36 +223,25 @@ public boolean hasFinding() { return finding_ != null; } /** - * - * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { - return finding_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() : finding_; } /** - * - * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder() { @@ -300,7 +249,6 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -312,7 +260,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -338,7 +287,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, findingId_); } if (finding_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFinding()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getFinding()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -348,19 +298,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest other = - (com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest other = (com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFindingId().equals(other.getFindingId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFindingId() + .equals(other.getFindingId())) return false; if (hasFinding() != other.hasFinding()) return false; if (hasFinding()) { - if (!getFinding().equals(other.getFinding())) return false; + if (!getFinding() + .equals(other.getFinding())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -387,127 +339,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for creating a finding.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.CreateFindingRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.class, - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.class, com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.newBuilder() @@ -515,15 +457,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -541,14 +484,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.getDefaultInstance(); } @@ -563,8 +505,7 @@ public com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest result = - new com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest(this); + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest result = new com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest(this); result.parent_ = parent_; result.findingId_ = findingId_; if (findingBuilder_ == null) { @@ -580,39 +521,38 @@ public com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest)other); } else { super.mergeFrom(other); return this; @@ -620,9 +560,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -653,9 +591,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -667,23 +603,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -692,24 +624,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -717,70 +646,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -788,20 +704,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object findingId_ = ""; /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The findingId. */ public java.lang.String getFindingId() { java.lang.Object ref = findingId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingId_ = s; return s; @@ -810,21 +724,20 @@ public java.lang.String getFindingId() { } } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for findingId. */ - public com.google.protobuf.ByteString getFindingIdBytes() { + public com.google.protobuf.ByteString + getFindingIdBytes() { java.lang.Object ref = findingId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingId_ = b; return b; } else { @@ -832,61 +745,54 @@ public com.google.protobuf.ByteString getFindingIdBytes() { } } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The findingId to set. * @return This builder for chaining. */ - public Builder setFindingId(java.lang.String value) { + public Builder setFindingId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + findingId_ = value; onChanged(); return this; } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFindingId() { - + findingId_ = getDefaultInstance().getFindingId(); onChanged(); return this; } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for findingId to set. * @return This builder for chaining. */ - public Builder setFindingIdBytes(com.google.protobuf.ByteString value) { + public Builder setFindingIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingId_ = value; onChanged(); return this; @@ -894,61 +800,42 @@ public Builder setFindingIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.securitycenter.v1p1beta1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Finding, - com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, - com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> - findingBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> findingBuilder_; /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The finding. */ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { if (findingBuilder_ == null) { - return finding_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() : finding_; } else { return findingBuilder_.getMessage(); } } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFinding(com.google.cloud.securitycenter.v1p1beta1.Finding value) { if (findingBuilder_ == null) { @@ -964,16 +851,12 @@ public Builder setFinding(com.google.cloud.securitycenter.v1p1beta1.Finding valu return this; } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFinding( com.google.cloud.securitycenter.v1p1beta1.Finding.Builder builderForValue) { @@ -987,24 +870,18 @@ public Builder setFinding( return this; } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeFinding(com.google.cloud.securitycenter.v1p1beta1.Finding value) { if (findingBuilder_ == null) { if (finding_ != null) { finding_ = - com.google.cloud.securitycenter.v1p1beta1.Finding.newBuilder(finding_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.Finding.newBuilder(finding_).mergeFrom(value).buildPartial(); } else { finding_ = value; } @@ -1016,16 +893,12 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1p1beta1.Finding va return this; } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFinding() { if (findingBuilder_ == null) { @@ -1039,74 +912,58 @@ public Builder clearFinding() { return this; } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1p1beta1.Finding.Builder getFindingBuilder() { - + onChanged(); return getFindingFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder() { if (findingBuilder_ != null) { return findingBuilder_.getMessageOrBuilder(); } else { - return finding_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? + com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() : finding_; } } /** - * - * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Finding, - com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, - com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> getFindingFieldBuilder() { if (findingBuilder_ == null) { - findingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Finding, - com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, - com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder>( - getFinding(), getParentForChildren(), isClean()); + findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder>( + getFinding(), + getParentForChildren(), + isClean()); finding_ = null; } return findingBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1116,32 +973,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest(); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFindingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFindingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFindingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1153,8 +1008,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequestOrBuilder.java index c36e83c69..8dffedfe9 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequestOrBuilder.java @@ -1,125 +1,81 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface CreateFindingRequestOrBuilder - extends +public interface CreateFindingRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The findingId. */ java.lang.String getFindingId(); /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for findingId. */ - com.google.protobuf.ByteString getFindingIdBytes(); + com.google.protobuf.ByteString + getFindingIdBytes(); /** - * - * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the finding field is set. */ boolean hasFinding(); /** - * - * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The finding. */ com.google.cloud.securitycenter.v1p1beta1.Finding getFinding(); /** - * - * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder(); } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java similarity index 63% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java index dda191fbe..b79d0f6d2 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Request message for creating a notification config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest} */ -public final class CreateNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateNotificationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) CreateNotificationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateNotificationConfigRequest.newBuilder() to construct. - private CreateNotificationConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateNotificationConfigRequest() { parent_ = ""; configId_ = ""; @@ -45,15 +26,16 @@ private CreateNotificationConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateNotificationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateNotificationConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,45 +54,38 @@ private CreateNotificationConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - configId_ = s; - break; + configId_ = s; + break; + } + case 26: { + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder subBuilder = null; + if (notificationConfig_ != null) { + subBuilder = notificationConfig_.toBuilder(); } - case 26: - { - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder subBuilder = - null; - if (notificationConfig_ != null) { - subBuilder = notificationConfig_.toBuilder(); - } - notificationConfig_ = - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(notificationConfig_); - notificationConfig_ = subBuilder.buildPartial(); - } - - break; + notificationConfig_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(notificationConfig_); + notificationConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -118,43 +93,35 @@ private CreateNotificationConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.class, - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.Builder - .class); + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.class, com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the new notification config's parent. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -163,32 +130,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the new notification config's parent. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -199,8 +164,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CONFIG_ID_FIELD_NUMBER = 2; private volatile java.lang.Object configId_; /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be between 1 and 128 characters, and contains alphanumeric
@@ -208,7 +171,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The configId. */ @java.lang.Override @@ -217,15 +179,14 @@ public java.lang.String getConfigId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configId_ = s; return s; } } /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be between 1 and 128 characters, and contains alphanumeric
@@ -233,15 +194,16 @@ public java.lang.String getConfigId() {
    * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for configId. */ @java.lang.Override - public com.google.protobuf.ByteString getConfigIdBytes() { + public com.google.protobuf.ByteString + getConfigIdBytes() { java.lang.Object ref = configId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); configId_ = b; return b; } else { @@ -252,17 +214,12 @@ public com.google.protobuf.ByteString getConfigIdBytes() { public static final int NOTIFICATION_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.securitycenter.v1p1beta1.NotificationConfig notificationConfig_; /** - * - * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationConfig field is set. */ @java.lang.Override @@ -270,45 +227,32 @@ public boolean hasNotificationConfig() { return notificationConfig_ != null; } /** - * - * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationConfig. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig() { - return notificationConfig_ == null - ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() : notificationConfig_; } /** - * - * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder - getNotificationConfigOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { return getNotificationConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -320,7 +264,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -346,7 +291,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, configId_); } if (notificationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNotificationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getNotificationConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -356,20 +302,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest)) { + if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest other = - (com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest other = (com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getConfigId().equals(other.getConfigId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getConfigId() + .equals(other.getConfigId())) return false; if (hasNotificationConfig() != other.hasNotificationConfig()) return false; if (hasNotificationConfig()) { - if (!getNotificationConfig().equals(other.getNotificationConfig())) return false; + if (!getNotificationConfig() + .equals(other.getNotificationConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -396,146 +343,134 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for creating a notification config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.class, - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.Builder - .class); + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.class, com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.newBuilder() + // Construct using com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -553,22 +488,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest build() { - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest result = - buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -576,10 +508,8 @@ public com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest - buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest result = - new com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest(this); + public com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest result = new com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest(this); result.parent_ = parent_; result.configId_ = configId_; if (notificationConfigBuilder_ == null) { @@ -595,52 +525,46 @@ public com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) { - return mergeFrom( - (com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) other); + if (other instanceof com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest other) { + if (other == com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -667,14 +591,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parsedMessage = - null; + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -686,23 +607,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the new notification config's parent. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -711,24 +628,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the new notification config's parent. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -736,70 +650,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the new notification config's parent. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the new notification config's parent. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the new notification config's parent. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -807,8 +708,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object configId_ = ""; /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be between 1 and 128 characters, and contains alphanumeric
@@ -816,13 +715,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The configId. */ public java.lang.String getConfigId() { java.lang.Object ref = configId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configId_ = s; return s; @@ -831,8 +730,6 @@ public java.lang.String getConfigId() { } } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be between 1 and 128 characters, and contains alphanumeric
@@ -840,14 +737,15 @@ public java.lang.String getConfigId() {
      * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for configId. */ - public com.google.protobuf.ByteString getConfigIdBytes() { + public com.google.protobuf.ByteString + getConfigIdBytes() { java.lang.Object ref = configId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); configId_ = b; return b; } else { @@ -855,8 +753,6 @@ public com.google.protobuf.ByteString getConfigIdBytes() { } } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be between 1 and 128 characters, and contains alphanumeric
@@ -864,22 +760,20 @@ public com.google.protobuf.ByteString getConfigIdBytes() {
      * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The configId to set. * @return This builder for chaining. */ - public Builder setConfigId(java.lang.String value) { + public Builder setConfigId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + configId_ = value; onChanged(); return this; } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be between 1 and 128 characters, and contains alphanumeric
@@ -887,18 +781,15 @@ public Builder setConfigId(java.lang.String value) {
      * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearConfigId() { - + configId_ = getDefaultInstance().getConfigId(); onChanged(); return this; } /** - * - * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be between 1 and 128 characters, and contains alphanumeric
@@ -906,16 +797,16 @@ public Builder clearConfigId() {
      * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for configId to set. * @return This builder for chaining. */ - public Builder setConfigIdBytes(com.google.protobuf.ByteString value) { + public Builder setConfigIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + configId_ = value; onChanged(); return this; @@ -923,64 +814,44 @@ public Builder setConfigIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.securitycenter.v1p1beta1.NotificationConfig notificationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> - notificationConfigBuilder_; + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> notificationConfigBuilder_; /** - * - * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationConfig field is set. */ public boolean hasNotificationConfig() { return notificationConfigBuilder_ != null || notificationConfig_ != null; } /** - * - * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationConfig. */ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig() { if (notificationConfigBuilder_ == null) { - return notificationConfig_ == null - ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() : notificationConfig_; } else { return notificationConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { + public Builder setNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { if (notificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -994,16 +865,12 @@ public Builder setNotificationConfig( return this; } /** - * - * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNotificationConfig( com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder builderForValue) { @@ -1017,26 +884,18 @@ public Builder setNotificationConfig( return this; } /** - * - * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { + public Builder mergeNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { if (notificationConfigBuilder_ == null) { if (notificationConfig_ != null) { notificationConfig_ = - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.newBuilder( - notificationConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.newBuilder(notificationConfig_).mergeFrom(value).buildPartial(); } else { notificationConfig_ = value; } @@ -1048,16 +907,12 @@ public Builder mergeNotificationConfig( return this; } /** - * - * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearNotificationConfig() { if (notificationConfigBuilder_ == null) { @@ -1071,76 +926,58 @@ public Builder clearNotificationConfig() { return this; } /** - * - * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder - getNotificationConfigBuilder() { - + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder getNotificationConfigBuilder() { + onChanged(); return getNotificationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder - getNotificationConfigOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { if (notificationConfigBuilder_ != null) { return notificationConfigBuilder_.getMessageOrBuilder(); } else { - return notificationConfig_ == null - ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() : notificationConfig_; } } /** - * - * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> getNotificationConfigFieldBuilder() { if (notificationConfigBuilder_ == null) { - notificationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder>( - getNotificationConfig(), getParentForChildren(), isClean()); + notificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder>( + getNotificationConfig(), + getParentForChildren(), + isClean()); notificationConfig_ = null; } return notificationConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1150,33 +987,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest(); + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest(); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateNotificationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateNotificationConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateNotificationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateNotificationConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1188,8 +1022,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequestOrBuilder.java index a6f80917f..4952e4f58 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface CreateNotificationConfigRequestOrBuilder - extends +public interface CreateNotificationConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the new notification config's parent. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the new notification config's parent. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be between 1 and 128 characters, and contains alphanumeric
@@ -64,13 +37,10 @@ public interface CreateNotificationConfigRequestOrBuilder
    * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The configId. */ java.lang.String getConfigId(); /** - * - * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be between 1 and 128 characters, and contains alphanumeric
@@ -78,53 +48,38 @@ public interface CreateNotificationConfigRequestOrBuilder
    * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for configId. */ - com.google.protobuf.ByteString getConfigIdBytes(); + com.google.protobuf.ByteString + getConfigIdBytes(); /** - * - * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationConfig field is set. */ boolean hasNotificationConfig(); /** - * - * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationConfig. */ com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig(); /** - * - * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder - getNotificationConfigOrBuilder(); + com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder getNotificationConfigOrBuilder(); } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java similarity index 64% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java index 22b2d654e..5187cec1d 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Request message for creating a source.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.CreateSourceRequest} */ -public final class CreateSourceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSourceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) CreateSourceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSourceRequest.newBuilder() to construct. private CreateSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSourceRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateSourceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,36 +53,32 @@ private CreateSourceRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.securitycenter.v1p1beta1.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); } - case 18: - { - com.google.cloud.securitycenter.v1p1beta1.Source.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.Source.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); - } - - break; + source_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,42 +86,35 @@ private CreateSourceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.class, - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.class, com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -151,32 +123,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -187,17 +157,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SOURCE_FIELD_NUMBER = 2; private com.google.cloud.securitycenter.v1p1beta1.Source source_; /** - * - * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the source field is set. */ @java.lang.Override @@ -205,36 +170,25 @@ public boolean hasSource() { return source_ != null; } /** - * - * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The source. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Source getSource() { - return source_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() : source_; } /** - * - * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuilder() { @@ -242,7 +196,6 @@ public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuil } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -254,7 +207,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -274,7 +228,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (source_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -284,18 +239,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest other = - (com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest other = (com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasSource() != other.hasSource()) return false; if (hasSource()) { - if (!getSource().equals(other.getSource())) return false; + if (!getSource() + .equals(other.getSource())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -320,127 +276,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for creating a source.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.CreateSourceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.class, - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.class, com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.newBuilder() @@ -448,15 +394,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -472,14 +419,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.getDefaultInstance(); } @@ -494,8 +440,7 @@ public com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest result = - new com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest(this); + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest result = new com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest(this); result.parent_ = parent_; if (sourceBuilder_ == null) { result.source_ = source_; @@ -510,39 +455,38 @@ public com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest)other); } else { super.mergeFrom(other); return this; @@ -550,9 +494,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -579,9 +521,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -593,23 +533,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -618,24 +554,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -643,70 +576,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -714,61 +634,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.securitycenter.v1p1beta1.Source source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Source, - com.google.cloud.securitycenter.v1p1beta1.Source.Builder, - com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> - sourceBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Source, com.google.cloud.securitycenter.v1p1beta1.Source.Builder, com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> sourceBuilder_; /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The source. */ public com.google.cloud.securitycenter.v1p1beta1.Source getSource() { if (sourceBuilder_ == null) { - return source_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSource(com.google.cloud.securitycenter.v1p1beta1.Source value) { if (sourceBuilder_ == null) { @@ -784,16 +685,12 @@ public Builder setSource(com.google.cloud.securitycenter.v1p1beta1.Source value) return this; } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSource( com.google.cloud.securitycenter.v1p1beta1.Source.Builder builderForValue) { @@ -807,24 +704,18 @@ public Builder setSource( return this; } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSource(com.google.cloud.securitycenter.v1p1beta1.Source value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = - com.google.cloud.securitycenter.v1p1beta1.Source.newBuilder(source_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.Source.newBuilder(source_).mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -836,16 +727,12 @@ public Builder mergeSource(com.google.cloud.securitycenter.v1p1beta1.Source valu return this; } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSource() { if (sourceBuilder_ == null) { @@ -859,74 +746,58 @@ public Builder clearSource() { return this; } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1p1beta1.Source.Builder getSourceBuilder() { - + onChanged(); return getSourceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { - return source_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() - : source_; + return source_ == null ? + com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() : source_; } } /** - * - * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Source, - com.google.cloud.securitycenter.v1p1beta1.Source.Builder, - com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.Source, com.google.cloud.securitycenter.v1p1beta1.Source.Builder, com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { - sourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Source, - com.google.cloud.securitycenter.v1p1beta1.Source.Builder, - com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder>( - getSource(), getParentForChildren(), isClean()); + sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Source, com.google.cloud.securitycenter.v1p1beta1.Source.Builder, com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder>( + getSource(), + getParentForChildren(), + isClean()); source_ = null; } return sourceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -936,13 +807,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest(); } @@ -951,16 +821,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSourceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateSourceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateSourceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -975,4 +845,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequestOrBuilder.java similarity index 51% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequestOrBuilder.java index 11a90fff2..07ce34a30 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequestOrBuilder.java @@ -1,100 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface CreateSourceRequestOrBuilder - extends +public interface CreateSourceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the source field is set. */ boolean hasSource(); /** - * - * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The source. */ com.google.cloud.securitycenter.v1p1beta1.Source getSource(); /** - * - * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuilder(); } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java similarity index 60% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java index d3dbe88a7..87b2a6174 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Request message for deleting a notification config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest} */ -public final class DeleteNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteNotificationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) DeleteNotificationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteNotificationConfigRequest.newBuilder() to construct. - private DeleteNotificationConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteNotificationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteNotificationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteNotificationConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,20 +53,19 @@ private DeleteNotificationConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,43 +73,35 @@ private DeleteNotificationConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.class, - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.Builder - .class); + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.class, com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the notification config to delete. Its format is
    * "organizations/[organization_id]/notificationConfigs/[config_id]".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -137,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the notification config to delete. Its format is
    * "organizations/[organization_id]/notificationConfigs/[config_id]".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,16 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest)) { + if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest other = - (com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest other = (com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -236,146 +206,134 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for deleting a notification config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.class, - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.Builder - .class); + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.class, com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.newBuilder() + // Construct using com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -385,22 +343,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest build() { - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest result = - buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -408,10 +363,8 @@ public com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest - buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest result = - new com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest(this); + public com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest result = new com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -421,52 +374,46 @@ public com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) { - return mergeFrom( - (com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) other); + if (other instanceof com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest other) { + if (other == com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -486,14 +433,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parsedMessage = - null; + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -505,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the notification config to delete. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -530,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the notification config to delete. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -555,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the notification config to delete. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the notification config to delete. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the notification config to delete. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -635,33 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest(); + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest(); } - public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteNotificationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteNotificationConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteNotificationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteNotificationConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -673,8 +594,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequestOrBuilder.java new file mode 100644 index 000000000..d45c246a8 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public interface DeleteNotificationConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the notification config to delete. Its format is
+   * "organizations/[organization_id]/notificationConfigs/[config_id]".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the notification config to delete. Its format is
+   * "organizations/[organization_id]/notificationConfigs/[config_id]".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java similarity index 74% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java index e29a251eb..d15ceb6be 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/finding.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Security Command Center finding.
  * A finding is a record of assessment data (security, risk, health or privacy)
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Finding}
  */
-public final class Finding extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Finding extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.Finding)
     FindingOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Finding.newBuilder() to construct.
   private Finding(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Finding() {
     name_ = "";
     parent_ = "";
@@ -54,15 +36,16 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Finding();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Finding(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -82,134 +65,113 @@ private Finding(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            parent_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              resourceName_ = s;
-              break;
-            }
-          case 32:
-            {
-              int rawValue = input.readEnum();
+            resourceName_ = s;
+            break;
+          }
+          case 32: {
+            int rawValue = input.readEnum();
 
-              state_ = rawValue;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            state_ = rawValue;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              category_ = s;
-              break;
-            }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            category_ = s;
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              externalUri_ = s;
-              break;
+            externalUri_ = s;
+            break;
+          }
+          case 58: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              sourceProperties_ = com.google.protobuf.MapField.newMapField(
+                  SourcePropertiesDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 58:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                sourceProperties_ =
-                    com.google.protobuf.MapField.newMapField(
-                        SourcePropertiesDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry
-                  sourceProperties__ =
-                      input.readMessage(
-                          SourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
-                          extensionRegistry);
-              sourceProperties_
-                  .getMutableMap()
-                  .put(sourceProperties__.getKey(), sourceProperties__.getValue());
-              break;
+            com.google.protobuf.MapEntry
+            sourceProperties__ = input.readMessage(
+                SourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            sourceProperties_.getMutableMap().put(
+                sourceProperties__.getKey(), sourceProperties__.getValue());
+            break;
+          }
+          case 66: {
+            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder subBuilder = null;
+            if (securityMarks_ != null) {
+              subBuilder = securityMarks_.toBuilder();
             }
-          case 66:
-            {
-              com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder subBuilder = null;
-              if (securityMarks_ != null) {
-                subBuilder = securityMarks_.toBuilder();
-              }
-              securityMarks_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(securityMarks_);
-                securityMarks_ = subBuilder.buildPartial();
-              }
-
-              break;
+            securityMarks_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(securityMarks_);
+              securityMarks_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (eventTime_ != null) {
-                subBuilder = eventTime_.toBuilder();
-              }
-              eventTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(eventTime_);
-                eventTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 74: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (eventTime_ != null) {
+              subBuilder = eventTime_.toBuilder();
             }
-          case 82:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            eventTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(eventTime_);
+              eventTime_ = subBuilder.buildPartial();
             }
-          case 104:
-            {
-              int rawValue = input.readEnum();
 
-              severity_ = rawValue;
-              break;
+            break;
+          }
+          case 82: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 114:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              canonicalName_ = s;
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 104: {
+            int rawValue = input.readEnum();
+
+            severity_ = rawValue;
+            break;
+          }
+          case 114: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            canonicalName_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -217,52 +179,48 @@ private Finding(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass
-        .internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 7:
         return internalGetSourceProperties();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass
-        .internal_static_google_cloud_securitycenter_v1p1beta1_Finding_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Finding_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1p1beta1.Finding.class,
-            com.google.cloud.securitycenter.v1p1beta1.Finding.Builder.class);
+            com.google.cloud.securitycenter.v1p1beta1.Finding.class, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The state of the finding.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1p1beta1.Finding.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified state.
      * 
@@ -271,8 +229,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The finding requires attention and has not been addressed yet.
      * 
@@ -281,8 +237,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(1), /** - * - * *
      * The finding has been fixed, triaged as a non-issue or otherwise addressed
      * and is no longer active.
@@ -295,8 +249,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified state.
      * 
@@ -305,8 +257,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The finding requires attention and has not been addressed yet.
      * 
@@ -315,8 +265,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 1; /** - * - * *
      * The finding has been fixed, triaged as a non-issue or otherwise addressed
      * and is no longer active.
@@ -326,6 +274,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INACTIVE_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -350,51 +299,49 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return ACTIVE;
-        case 2:
-          return INACTIVE;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return ACTIVE;
+        case 2: return INACTIVE;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.Finding.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.Finding.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -412,8 +359,6 @@ private State(int value) {
   }
 
   /**
-   *
-   *
    * 
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
@@ -421,10 +366,9 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.securitycenter.v1p1beta1.Finding.Severity}
    */
-  public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Severity
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * No severity specified. The default value.
      * 
@@ -433,8 +377,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ SEVERITY_UNSPECIFIED(0), /** - * - * *
      * Critical severity.
      * 
@@ -443,8 +385,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ CRITICAL(1), /** - * - * *
      * High severity.
      * 
@@ -453,8 +393,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ HIGH(2), /** - * - * *
      * Medium severity.
      * 
@@ -463,8 +401,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ MEDIUM(3), /** - * - * *
      * Low severity.
      * 
@@ -476,8 +412,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * No severity specified. The default value.
      * 
@@ -486,8 +420,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Critical severity.
      * 
@@ -496,8 +428,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CRITICAL_VALUE = 1; /** - * - * *
      * High severity.
      * 
@@ -506,8 +436,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HIGH_VALUE = 2; /** - * - * *
      * Medium severity.
      * 
@@ -516,8 +444,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MEDIUM_VALUE = 3; /** - * - * *
      * Low severity.
      * 
@@ -526,6 +452,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOW_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -550,55 +477,51 @@ public static Severity valueOf(int value) { */ public static Severity forNumber(int value) { switch (value) { - case 0: - return SEVERITY_UNSPECIFIED; - case 1: - return CRITICAL; - case 2: - return HIGH; - case 3: - return MEDIUM; - case 4: - return LOW; - default: - return null; + case 0: return SEVERITY_UNSPECIFIED; + case 1: return CRITICAL; + case 2: return HIGH; + case 3: return MEDIUM; + case 4: return LOW; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Severity> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Severity findValueByNumber(int number) { - return Severity.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.Finding.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.Finding.getDescriptor().getEnumTypes().get(1); } private static final Severity[] VALUES = values(); - public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Severity valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -618,8 +541,6 @@ private Severity(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -628,7 +549,6 @@ private Severity(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -637,15 +557,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -654,15 +573,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -673,8 +593,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PARENT_FIELD_NUMBER = 2; private volatile java.lang.Object parent_; /** - * - * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -684,7 +602,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string parent = 2; - * * @return The parent. */ @java.lang.Override @@ -693,15 +610,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -711,15 +627,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 2; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -730,8 +647,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int RESOURCE_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object resourceName_; /** - * - * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -742,7 +657,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string resource_name = 3; - * * @return The resourceName. */ @java.lang.Override @@ -751,15 +665,14 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** - * - * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -770,15 +683,16 @@ public java.lang.String getResourceName() {
    * 
* * string resource_name = 3; - * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -789,46 +703,33 @@ public com.google.protobuf.ByteString getResourceNameBytes() { public static final int STATE_FIELD_NUMBER = 4; private int state_; /** - * - * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 4; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 4; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() { + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.Finding.State result = - com.google.cloud.securitycenter.v1p1beta1.Finding.State.valueOf(state_); - return result == null - ? com.google.cloud.securitycenter.v1p1beta1.Finding.State.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1p1beta1.Finding.State result = com.google.cloud.securitycenter.v1p1beta1.Finding.State.valueOf(state_); + return result == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.State.UNRECOGNIZED : result; } public static final int CATEGORY_FIELD_NUMBER = 5; private volatile java.lang.Object category_; /** - * - * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -836,7 +737,6 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() {
    * 
* * string category = 5; - * * @return The category. */ @java.lang.Override @@ -845,15 +745,14 @@ public java.lang.String getCategory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; } } /** - * - * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -861,15 +760,16 @@ public java.lang.String getCategory() {
    * 
* * string category = 5; - * * @return The bytes for category. */ @java.lang.Override - public com.google.protobuf.ByteString getCategoryBytes() { + public com.google.protobuf.ByteString + getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); category_ = b; return b; } else { @@ -880,8 +780,6 @@ public com.google.protobuf.ByteString getCategoryBytes() { public static final int EXTERNAL_URI_FIELD_NUMBER = 6; private volatile java.lang.Object externalUri_; /** - * - * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -889,7 +787,6 @@ public com.google.protobuf.ByteString getCategoryBytes() {
    * 
* * string external_uri = 6; - * * @return The externalUri. */ @java.lang.Override @@ -898,15 +795,14 @@ public java.lang.String getExternalUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalUri_ = s; return s; } } /** - * - * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -914,15 +810,16 @@ public java.lang.String getExternalUri() {
    * 
* * string external_uri = 6; - * * @return The bytes for externalUri. */ @java.lang.Override - public com.google.protobuf.ByteString getExternalUriBytes() { + public com.google.protobuf.ByteString + getExternalUriBytes() { java.lang.Object ref = externalUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); externalUri_ = b; return b; } else { @@ -931,25 +828,21 @@ public com.google.protobuf.ByteString getExternalUriBytes() { } public static final int SOURCE_PROPERTIES_FIELD_NUMBER = 7; - private static final class SourcePropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.Value> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); - } - - private com.google.protobuf.MapField - sourceProperties_; - + .newDefaultInstance( + com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> sourceProperties_; private com.google.protobuf.MapField - internalGetSourceProperties() { + internalGetSourceProperties() { if (sourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( SourcePropertiesDefaultEntryHolder.defaultEntry); @@ -961,8 +854,6 @@ public int getSourcePropertiesCount() { return internalGetSourceProperties().getMap().size(); } /** - * - * *
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -972,22 +863,22 @@ public int getSourcePropertiesCount() {
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
+
   @java.lang.Override
-  public boolean containsSourceProperties(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsSourceProperties(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetSourceProperties().getMap().containsKey(key);
   }
-  /** Use {@link #getSourcePropertiesMap()} instead. */
+  /**
+   * Use {@link #getSourcePropertiesMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getSourceProperties() {
     return getSourcePropertiesMap();
   }
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -998,12 +889,11 @@ public java.util.Map getSourcePrope
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
   @java.lang.Override
+
   public java.util.Map getSourcePropertiesMap() {
     return internalGetSourceProperties().getMap();
   }
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -1014,18 +904,16 @@ public java.util.Map getSourcePrope
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
   @java.lang.Override
+
   public com.google.protobuf.Value getSourcePropertiesOrDefault(
-      java.lang.String key, com.google.protobuf.Value defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+      java.lang.String key,
+      com.google.protobuf.Value defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetSourceProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -1036,10 +924,10 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault(
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
   @java.lang.Override
-  public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+
+  public com.google.protobuf.Value getSourcePropertiesOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetSourceProperties().getMap();
     if (!map.containsKey(key)) {
@@ -1051,18 +939,13 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key
   public static final int SECURITY_MARKS_FIELD_NUMBER = 8;
   private com.google.cloud.securitycenter.v1p1beta1.SecurityMarks securityMarks_;
   /**
-   *
-   *
    * 
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the securityMarks field is set. */ @java.lang.Override @@ -1070,50 +953,36 @@ public boolean hasSecurityMarks() { return securityMarks_ != null; } /** - * - * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The securityMarks. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks() { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; } /** - * - * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder - getSecurityMarksOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { return getSecurityMarks(); } public static final int EVENT_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp eventTime_; /** - * - * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -1124,7 +993,6 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks(
    * 
* * .google.protobuf.Timestamp event_time = 9; - * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -1132,8 +1000,6 @@ public boolean hasEventTime() { return eventTime_ != null; } /** - * - * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -1144,7 +1010,6 @@ public boolean hasEventTime() {
    * 
* * .google.protobuf.Timestamp event_time = 9; - * * @return The eventTime. */ @java.lang.Override @@ -1152,8 +1017,6 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** - * - * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -1173,14 +1036,11 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
   public static final int CREATE_TIME_FIELD_NUMBER = 10;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1188,14 +1048,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return The createTime. */ @java.lang.Override @@ -1203,8 +1060,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time at which the finding was created in Security Command Center.
    * 
@@ -1219,48 +1074,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int SEVERITY_FIELD_NUMBER = 13; private int severity_; /** - * - * *
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13; - * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13; - * * @return The severity. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.Finding.Severity getSeverity() { + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.Finding.Severity result = - com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.valueOf(severity_); - return result == null - ? com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1p1beta1.Finding.Severity result = com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.valueOf(severity_); + return result == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.UNRECOGNIZED : result; } public static final int CANONICAL_NAME_FIELD_NUMBER = 14; private volatile java.lang.Object canonicalName_; /** - * - * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -1271,7 +1113,6 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding.Severity getSeverity()
    * 
* * string canonical_name = 14; - * * @return The canonicalName. */ @java.lang.Override @@ -1280,15 +1121,14 @@ public java.lang.String getCanonicalName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; } } /** - * - * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -1299,15 +1139,16 @@ public java.lang.String getCanonicalName() {
    * 
* * string canonical_name = 14; - * * @return The bytes for canonicalName. */ @java.lang.Override - public com.google.protobuf.ByteString getCanonicalNameBytes() { + public com.google.protobuf.ByteString + getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -1316,7 +1157,6 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1328,7 +1168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1338,8 +1179,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceName_); } - if (state_ - != com.google.cloud.securitycenter.v1p1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.securitycenter.v1p1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(4, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { @@ -1348,8 +1188,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, externalUri_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetSourceProperties(), SourcePropertiesDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetSourceProperties(), + SourcePropertiesDefaultEntryHolder.defaultEntry, + 7); if (securityMarks_ != null) { output.writeMessage(8, getSecurityMarks()); } @@ -1359,9 +1203,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(10, getCreateTime()); } - if (severity_ - != com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.SEVERITY_UNSPECIFIED - .getNumber()) { + if (severity_ != com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { output.writeEnum(13, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { @@ -1385,9 +1227,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceName_); } - if (state_ - != com.google.cloud.securitycenter.v1p1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + if (state_ != com.google.cloud.securitycenter.v1p1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, category_); @@ -1395,29 +1237,31 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, externalUri_); } - for (java.util.Map.Entry entry : - internalGetSourceProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry sourceProperties__ = - SourcePropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, sourceProperties__); + for (java.util.Map.Entry entry + : internalGetSourceProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry + sourceProperties__ = SourcePropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, sourceProperties__); } if (securityMarks_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSecurityMarks()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSecurityMarks()); } if (eventTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getEventTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getEventTime()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getCreateTime()); } - if (severity_ - != com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.SEVERITY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, severity_); + if (severity_ != com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(13, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, canonicalName_); @@ -1430,35 +1274,44 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.Finding)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.Finding other = - (com.google.cloud.securitycenter.v1p1beta1.Finding) obj; + com.google.cloud.securitycenter.v1p1beta1.Finding other = (com.google.cloud.securitycenter.v1p1beta1.Finding) obj; - if (!getName().equals(other.getName())) return false; - if (!getParent().equals(other.getParent())) return false; - if (!getResourceName().equals(other.getResourceName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getResourceName() + .equals(other.getResourceName())) return false; if (state_ != other.state_) return false; - if (!getCategory().equals(other.getCategory())) return false; - if (!getExternalUri().equals(other.getExternalUri())) return false; - if (!internalGetSourceProperties().equals(other.internalGetSourceProperties())) return false; + if (!getCategory() + .equals(other.getCategory())) return false; + if (!getExternalUri() + .equals(other.getExternalUri())) return false; + if (!internalGetSourceProperties().equals( + other.internalGetSourceProperties())) return false; if (hasSecurityMarks() != other.hasSecurityMarks()) return false; if (hasSecurityMarks()) { - if (!getSecurityMarks().equals(other.getSecurityMarks())) return false; + if (!getSecurityMarks() + .equals(other.getSecurityMarks())) return false; } if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { - if (!getEventTime().equals(other.getEventTime())) return false; + if (!getEventTime() + .equals(other.getEventTime())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (severity_ != other.severity_) return false; - if (!getCanonicalName().equals(other.getCanonicalName())) return false; + if (!getCanonicalName() + .equals(other.getCanonicalName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1508,103 +1361,96 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.Finding parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.Finding parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.Finding parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.Finding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Security Command Center finding.
    * A finding is a record of assessment data (security, risk, health or privacy)
@@ -1615,43 +1461,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Finding}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.Finding)
       com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 7:
           return internalGetSourceProperties();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 7:
           return internalGetMutableSourceProperties();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_Finding_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Finding_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1p1beta1.Finding.class,
-              com.google.cloud.securitycenter.v1p1beta1.Finding.Builder.class);
+              com.google.cloud.securitycenter.v1p1beta1.Finding.class, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1p1beta1.Finding.newBuilder()
@@ -1659,15 +1505,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1710,9 +1557,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor;
     }
 
     @java.lang.Override
@@ -1731,8 +1578,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1p1beta1.Finding buildPartial() {
-      com.google.cloud.securitycenter.v1p1beta1.Finding result =
-          new com.google.cloud.securitycenter.v1p1beta1.Finding(this);
+      com.google.cloud.securitycenter.v1p1beta1.Finding result = new com.google.cloud.securitycenter.v1p1beta1.Finding(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.parent_ = parent_;
@@ -1767,39 +1613,38 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1p1beta1.Finding) {
-        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Finding) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Finding)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1807,8 +1652,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Finding other) {
-      if (other == com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1832,7 +1676,8 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Finding other
         externalUri_ = other.externalUri_;
         onChanged();
       }
-      internalGetMutableSourceProperties().mergeFrom(other.internalGetSourceProperties());
+      internalGetMutableSourceProperties().mergeFrom(
+          other.internalGetSourceProperties());
       if (other.hasSecurityMarks()) {
         mergeSecurityMarks(other.getSecurityMarks());
       }
@@ -1868,8 +1713,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.securitycenter.v1p1beta1.Finding) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.Finding) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1878,13 +1722,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1893,13 +1734,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1908,8 +1749,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1918,14 +1757,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1933,8 +1773,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1943,22 +1781,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1967,18 +1803,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1987,16 +1820,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2004,8 +1837,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object parent_ = ""; /** - * - * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2015,13 +1846,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string parent = 2; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -2030,8 +1861,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2041,14 +1870,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 2; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -2056,8 +1886,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2067,22 +1895,20 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 2; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2092,18 +1918,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 2; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2113,16 +1936,16 @@ public Builder clearParent() {
      * 
* * string parent = 2; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -2130,8 +1953,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceName_ = ""; /** - * - * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -2142,13 +1963,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string resource_name = 3; - * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -2157,8 +1978,6 @@ public java.lang.String getResourceName() { } } /** - * - * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -2169,14 +1988,15 @@ public java.lang.String getResourceName() {
      * 
* * string resource_name = 3; - * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -2184,8 +2004,6 @@ public com.google.protobuf.ByteString getResourceNameBytes() { } } /** - * - * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -2196,22 +2014,20 @@ public com.google.protobuf.ByteString getResourceNameBytes() {
      * 
* * string resource_name = 3; - * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName(java.lang.String value) { + public Builder setResourceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceName_ = value; onChanged(); return this; } /** - * - * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -2222,18 +2038,15 @@ public Builder setResourceName(java.lang.String value) {
      * 
* * string resource_name = 3; - * * @return This builder for chaining. */ public Builder clearResourceName() { - + resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** - * - * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -2244,16 +2057,16 @@ public Builder clearResourceName() {
      * 
* * string resource_name = 3; - * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; onChanged(); return this; @@ -2261,67 +2074,51 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 4; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 4; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 4; - * * @return The state. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.Finding.State result = - com.google.cloud.securitycenter.v1p1beta1.Finding.State.valueOf(state_); - return result == null - ? com.google.cloud.securitycenter.v1p1beta1.Finding.State.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1p1beta1.Finding.State result = com.google.cloud.securitycenter.v1p1beta1.Finding.State.valueOf(state_); + return result == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 4; - * * @param value The state to set. * @return This builder for chaining. */ @@ -2329,24 +2126,21 @@ public Builder setState(com.google.cloud.securitycenter.v1p1beta1.Finding.State if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 4; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2354,8 +2148,6 @@ public Builder clearState() { private java.lang.Object category_ = ""; /** - * - * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2363,13 +2155,13 @@ public Builder clearState() {
      * 
* * string category = 5; - * * @return The category. */ public java.lang.String getCategory() { java.lang.Object ref = category_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; @@ -2378,8 +2170,6 @@ public java.lang.String getCategory() { } } /** - * - * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2387,14 +2177,15 @@ public java.lang.String getCategory() {
      * 
* * string category = 5; - * * @return The bytes for category. */ - public com.google.protobuf.ByteString getCategoryBytes() { + public com.google.protobuf.ByteString + getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); category_ = b; return b; } else { @@ -2402,8 +2193,6 @@ public com.google.protobuf.ByteString getCategoryBytes() { } } /** - * - * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2411,22 +2200,20 @@ public com.google.protobuf.ByteString getCategoryBytes() {
      * 
* * string category = 5; - * * @param value The category to set. * @return This builder for chaining. */ - public Builder setCategory(java.lang.String value) { + public Builder setCategory( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + category_ = value; onChanged(); return this; } /** - * - * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2434,18 +2221,15 @@ public Builder setCategory(java.lang.String value) {
      * 
* * string category = 5; - * * @return This builder for chaining. */ public Builder clearCategory() { - + category_ = getDefaultInstance().getCategory(); onChanged(); return this; } /** - * - * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2453,16 +2237,16 @@ public Builder clearCategory() {
      * 
* * string category = 5; - * * @param value The bytes for category to set. * @return This builder for chaining. */ - public Builder setCategoryBytes(com.google.protobuf.ByteString value) { + public Builder setCategoryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + category_ = value; onChanged(); return this; @@ -2470,8 +2254,6 @@ public Builder setCategoryBytes(com.google.protobuf.ByteString value) { private java.lang.Object externalUri_ = ""; /** - * - * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -2479,13 +2261,13 @@ public Builder setCategoryBytes(com.google.protobuf.ByteString value) {
      * 
* * string external_uri = 6; - * * @return The externalUri. */ public java.lang.String getExternalUri() { java.lang.Object ref = externalUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalUri_ = s; return s; @@ -2494,8 +2276,6 @@ public java.lang.String getExternalUri() { } } /** - * - * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -2503,14 +2283,15 @@ public java.lang.String getExternalUri() {
      * 
* * string external_uri = 6; - * * @return The bytes for externalUri. */ - public com.google.protobuf.ByteString getExternalUriBytes() { + public com.google.protobuf.ByteString + getExternalUriBytes() { java.lang.Object ref = externalUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); externalUri_ = b; return b; } else { @@ -2518,8 +2299,6 @@ public com.google.protobuf.ByteString getExternalUriBytes() { } } /** - * - * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -2527,22 +2306,20 @@ public com.google.protobuf.ByteString getExternalUriBytes() {
      * 
* * string external_uri = 6; - * * @param value The externalUri to set. * @return This builder for chaining. */ - public Builder setExternalUri(java.lang.String value) { + public Builder setExternalUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalUri_ = value; onChanged(); return this; } /** - * - * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -2550,18 +2327,15 @@ public Builder setExternalUri(java.lang.String value) {
      * 
* * string external_uri = 6; - * * @return This builder for chaining. */ public Builder clearExternalUri() { - + externalUri_ = getDefaultInstance().getExternalUri(); onChanged(); return this; } /** - * - * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -2569,41 +2343,37 @@ public Builder clearExternalUri() {
      * 
* * string external_uri = 6; - * * @param value The bytes for externalUri to set. * @return This builder for chaining. */ - public Builder setExternalUriBytes(com.google.protobuf.ByteString value) { + public Builder setExternalUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalUri_ = value; onChanged(); return this; } + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> sourceProperties_; private com.google.protobuf.MapField - sourceProperties_; - - private com.google.protobuf.MapField - internalGetSourceProperties() { + internalGetSourceProperties() { if (sourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( SourcePropertiesDefaultEntryHolder.defaultEntry); } return sourceProperties_; } - private com.google.protobuf.MapField - internalGetMutableSourceProperties() { - onChanged(); - ; + internalGetMutableSourceProperties() { + onChanged();; if (sourceProperties_ == null) { - sourceProperties_ = - com.google.protobuf.MapField.newMapField( - SourcePropertiesDefaultEntryHolder.defaultEntry); + sourceProperties_ = com.google.protobuf.MapField.newMapField( + SourcePropertiesDefaultEntryHolder.defaultEntry); } if (!sourceProperties_.isMutable()) { sourceProperties_ = sourceProperties_.copy(); @@ -2615,8 +2385,6 @@ public int getSourcePropertiesCount() { return internalGetSourceProperties().getMap().size(); } /** - * - * *
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2626,22 +2394,22 @@ public int getSourcePropertiesCount() {
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
+
     @java.lang.Override
-    public boolean containsSourceProperties(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsSourceProperties(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetSourceProperties().getMap().containsKey(key);
     }
-    /** Use {@link #getSourcePropertiesMap()} instead. */
+    /**
+     * Use {@link #getSourcePropertiesMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getSourceProperties() {
       return getSourcePropertiesMap();
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2652,12 +2420,11 @@ public java.util.Map getSourcePrope
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
     @java.lang.Override
+
     public java.util.Map getSourcePropertiesMap() {
       return internalGetSourceProperties().getMap();
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2668,18 +2435,16 @@ public java.util.Map getSourcePrope
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
     @java.lang.Override
+
     public com.google.protobuf.Value getSourcePropertiesOrDefault(
-        java.lang.String key, com.google.protobuf.Value defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+        java.lang.String key,
+        com.google.protobuf.Value defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetSourceProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2690,10 +2455,10 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault(
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
     @java.lang.Override
-    public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+
+    public com.google.protobuf.Value getSourcePropertiesOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetSourceProperties().getMap();
       if (!map.containsKey(key)) {
@@ -2703,12 +2468,11 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key
     }
 
     public Builder clearSourceProperties() {
-      internalGetMutableSourceProperties().getMutableMap().clear();
+      internalGetMutableSourceProperties().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2718,21 +2482,23 @@ public Builder clearSourceProperties() {
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
-    public Builder removeSourceProperties(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableSourceProperties().getMutableMap().remove(key);
+
+    public Builder removeSourceProperties(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableSourceProperties().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableSourceProperties() {
+    public java.util.Map
+    getMutableSourceProperties() {
       return internalGetMutableSourceProperties().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2742,20 +2508,19 @@ public java.util.Map getMutableSour
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
-    public Builder putSourceProperties(java.lang.String key, com.google.protobuf.Value value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putSourceProperties(
+        java.lang.String key,
+        com.google.protobuf.Value value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableSourceProperties().getMutableMap().put(key, value);
+      internalGetMutableSourceProperties().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2765,72 +2530,55 @@ public Builder putSourceProperties(java.lang.String key, com.google.protobuf.Val
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
+
     public Builder putAllSourceProperties(
         java.util.Map values) {
-      internalGetMutableSourceProperties().getMutableMap().putAll(values);
+      internalGetMutableSourceProperties().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private com.google.cloud.securitycenter.v1p1beta1.SecurityMarks securityMarks_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks,
-            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder,
-            com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder>
-        securityMarksBuilder_;
+        com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder> securityMarksBuilder_;
     /**
-     *
-     *
      * 
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The securityMarks. */ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; } else { return securityMarksBuilder_.getMessage(); } } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { @@ -2846,17 +2594,13 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.Securi return this; } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSecurityMarks( com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder builderForValue) { @@ -2870,26 +2614,19 @@ public Builder setSecurityMarks( return this; } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeSecurityMarks( - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks value) { + public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { if (securityMarks_ != null) { securityMarks_ = - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.newBuilder(securityMarks_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.newBuilder(securityMarks_).mergeFrom(value).buildPartial(); } else { securityMarks_ = value; } @@ -2901,17 +2638,13 @@ public Builder mergeSecurityMarks( return this; } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -2925,72 +2658,54 @@ public Builder clearSecurityMarks() { return this; } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder - getSecurityMarksBuilder() { - + public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder getSecurityMarksBuilder() { + onChanged(); return getSecurityMarksFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder - getSecurityMarksOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { if (securityMarksBuilder_ != null) { return securityMarksBuilder_.getMessageOrBuilder(); } else { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; } } /** - * - * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, - com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder> getSecurityMarksFieldBuilder() { if (securityMarksBuilder_ == null) { - securityMarksBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, - com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder>( - getSecurityMarks(), getParentForChildren(), isClean()); + securityMarksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder>( + getSecurityMarks(), + getParentForChildren(), + isClean()); securityMarks_ = null; } return securityMarksBuilder_; @@ -2998,13 +2713,8 @@ public Builder clearSecurityMarks() { private com.google.protobuf.Timestamp eventTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - eventTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_; /** - * - * *
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -3015,15 +2725,12 @@ public Builder clearSecurityMarks() {
      * 
* * .google.protobuf.Timestamp event_time = 9; - * * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return eventTimeBuilder_ != null || eventTime_ != null; } /** - * - * *
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -3034,7 +2741,6 @@ public boolean hasEventTime() {
      * 
* * .google.protobuf.Timestamp event_time = 9; - * * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { @@ -3045,8 +2751,6 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** - * - * *
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -3072,8 +2776,6 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -3085,7 +2787,8 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp event_time = 9;
      */
-    public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEventTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (eventTimeBuilder_ == null) {
         eventTime_ = builderForValue.build();
         onChanged();
@@ -3096,8 +2799,6 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -3113,7 +2814,7 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       if (eventTimeBuilder_ == null) {
         if (eventTime_ != null) {
           eventTime_ =
-              com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial();
         } else {
           eventTime_ = value;
         }
@@ -3125,8 +2826,6 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -3150,8 +2849,6 @@ public Builder clearEventTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -3164,13 +2861,11 @@ public Builder clearEventTime() {
      * .google.protobuf.Timestamp event_time = 9;
      */
     public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() {
-
+      
       onChanged();
       return getEventTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -3186,12 +2881,11 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
       if (eventTimeBuilder_ != null) {
         return eventTimeBuilder_.getMessageOrBuilder();
       } else {
-        return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+        return eventTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -3204,17 +2898,14 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
      * .google.protobuf.Timestamp event_time = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEventTimeFieldBuilder() {
       if (eventTimeBuilder_ == null) {
-        eventTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEventTime(), getParentForChildren(), isClean());
+        eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEventTime(),
+                getParentForChildren(),
+                isClean());
         eventTime_ = null;
       }
       return eventTimeBuilder_;
@@ -3222,47 +2913,34 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -3283,15 +2961,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3302,8 +2979,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -3314,7 +2989,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3326,8 +3001,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -3346,8 +3019,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -3355,13 +3026,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 10; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -3372,14 +3041,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -3387,17 +3053,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3405,71 +3068,55 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int severity_ = 0; /** - * - * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13; - * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13; - * * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ public Builder setSeverityValue(int value) { - + severity_ = value; onChanged(); return this; } /** - * - * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13; - * * @return The severity. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.Finding.Severity result = - com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.valueOf(severity_); - return result == null - ? com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1p1beta1.Finding.Severity result = com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.valueOf(severity_); + return result == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.UNRECOGNIZED : result; } /** - * - * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13; - * * @param value The severity to set. * @return This builder for chaining. */ @@ -3477,25 +3124,22 @@ public Builder setSeverity(com.google.cloud.securitycenter.v1p1beta1.Finding.Sev if (value == null) { throw new NullPointerException(); } - + severity_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13; - * * @return This builder for chaining. */ public Builder clearSeverity() { - + severity_ = 0; onChanged(); return this; @@ -3503,8 +3147,6 @@ public Builder clearSeverity() { private java.lang.Object canonicalName_ = ""; /** - * - * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -3515,13 +3157,13 @@ public Builder clearSeverity() {
      * 
* * string canonical_name = 14; - * * @return The canonicalName. */ public java.lang.String getCanonicalName() { java.lang.Object ref = canonicalName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; @@ -3530,8 +3172,6 @@ public java.lang.String getCanonicalName() { } } /** - * - * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -3542,14 +3182,15 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 14; - * * @return The bytes for canonicalName. */ - public com.google.protobuf.ByteString getCanonicalNameBytes() { + public com.google.protobuf.ByteString + getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -3557,8 +3198,6 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() { } } /** - * - * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -3569,22 +3208,20 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() {
      * 
* * string canonical_name = 14; - * * @param value The canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalName(java.lang.String value) { + public Builder setCanonicalName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + canonicalName_ = value; onChanged(); return this; } /** - * - * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -3595,18 +3232,15 @@ public Builder setCanonicalName(java.lang.String value) {
      * 
* * string canonical_name = 14; - * * @return This builder for chaining. */ public Builder clearCanonicalName() { - + canonicalName_ = getDefaultInstance().getCanonicalName(); onChanged(); return this; } /** - * - * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -3617,23 +3251,23 @@ public Builder clearCanonicalName() {
      * 
* * string canonical_name = 14; - * * @param value The bytes for canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalNameBytes(com.google.protobuf.ByteString value) { + public Builder setCanonicalNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3643,12 +3277,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.Finding) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.Finding) private static final com.google.cloud.securitycenter.v1p1beta1.Finding DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.Finding(); } @@ -3657,16 +3291,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.Finding getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Finding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Finding(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Finding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Finding(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3681,4 +3315,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingName.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingName.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingName.java diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java similarity index 84% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java index bfcdc3597..856308692 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/finding.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface FindingOrBuilder - extends +public interface FindingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.Finding) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -34,13 +16,10 @@ public interface FindingOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -49,14 +28,12 @@ public interface FindingOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -66,13 +43,10 @@ public interface FindingOrBuilder
    * 
* * string parent = 2; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -82,14 +56,12 @@ public interface FindingOrBuilder
    * 
* * string parent = 2; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -100,13 +72,10 @@ public interface FindingOrBuilder
    * 
* * string resource_name = 3; - * * @return The resourceName. */ java.lang.String getResourceName(); /** - * - * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -117,39 +86,31 @@ public interface FindingOrBuilder
    * 
* * string resource_name = 3; - * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString getResourceNameBytes(); + com.google.protobuf.ByteString + getResourceNameBytes(); /** - * - * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 4; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 4; - * * @return The state. */ com.google.cloud.securitycenter.v1p1beta1.Finding.State getState(); /** - * - * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -157,13 +118,10 @@ public interface FindingOrBuilder
    * 
* * string category = 5; - * * @return The category. */ java.lang.String getCategory(); /** - * - * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -171,14 +129,12 @@ public interface FindingOrBuilder
    * 
* * string category = 5; - * * @return The bytes for category. */ - com.google.protobuf.ByteString getCategoryBytes(); + com.google.protobuf.ByteString + getCategoryBytes(); /** - * - * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -186,13 +142,10 @@ public interface FindingOrBuilder
    * 
* * string external_uri = 6; - * * @return The externalUri. */ java.lang.String getExternalUri(); /** - * - * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -200,14 +153,12 @@ public interface FindingOrBuilder
    * 
* * string external_uri = 6; - * * @return The bytes for externalUri. */ - com.google.protobuf.ByteString getExternalUriBytes(); + com.google.protobuf.ByteString + getExternalUriBytes(); /** - * - * *
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -219,8 +170,6 @@ public interface FindingOrBuilder
    */
   int getSourcePropertiesCount();
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -230,13 +179,15 @@ public interface FindingOrBuilder
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-  boolean containsSourceProperties(java.lang.String key);
-  /** Use {@link #getSourcePropertiesMap()} instead. */
+  boolean containsSourceProperties(
+      java.lang.String key);
+  /**
+   * Use {@link #getSourcePropertiesMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getSourceProperties();
+  java.util.Map
+  getSourceProperties();
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -246,10 +197,9 @@ public interface FindingOrBuilder
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-  java.util.Map getSourcePropertiesMap();
+  java.util.Map
+  getSourcePropertiesMap();
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -261,13 +211,11 @@ public interface FindingOrBuilder
    */
 
   /* nullable */
-  com.google.protobuf.Value getSourcePropertiesOrDefault(
+com.google.protobuf.Value getSourcePropertiesOrDefault(
       java.lang.String key,
       /* nullable */
-      com.google.protobuf.Value defaultValue);
+com.google.protobuf.Value defaultValue);
   /**
-   *
-   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -277,58 +225,44 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-  com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key);
+
+  com.google.protobuf.Value getSourcePropertiesOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** - * - * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The securityMarks. */ com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks(); /** - * - * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder(); /** - * - * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -339,13 +273,10 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    * 
* * .google.protobuf.Timestamp event_time = 9; - * * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** - * - * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -356,13 +287,10 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    * 
* * .google.protobuf.Timestamp event_time = 9; - * * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** - * - * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -377,32 +305,24 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
   com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time at which the finding was created in Security Command Center.
    * 
@@ -412,35 +332,27 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13; - * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** - * - * *
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13; - * * @return The severity. */ com.google.cloud.securitycenter.v1p1beta1.Finding.Severity getSeverity(); /** - * - * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -451,13 +363,10 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    * 
* * string canonical_name = 14; - * * @return The canonicalName. */ java.lang.String getCanonicalName(); /** - * - * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -468,8 +377,8 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    * 
* * string canonical_name = 14; - * * @return The bytes for canonicalName. */ - com.google.protobuf.ByteString getCanonicalNameBytes(); + com.google.protobuf.ByteString + getCanonicalNameBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOuterClass.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOuterClass.java new file mode 100644 index 000000000..6b2fc2d01 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOuterClass.java @@ -0,0 +1,114 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/finding.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class FindingOuterClass { + private FindingOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/securitycenter/v1p1beta1/" + + "finding.proto\022%google.cloud.securitycent" + + "er.v1p1beta1\032\037google/api/field_behavior." + + "proto\032\031google/api/resource.proto\032:google" + + "/cloud/securitycenter/v1p1beta1/security" + + "_marks.proto\032\034google/protobuf/struct.pro" + + "to\032\037google/protobuf/timestamp.proto\032\034goo" + + "gle/api/annotations.proto\"\337\007\n\007Finding\022\014\n" + + "\004name\030\001 \001(\t\022\016\n\006parent\030\002 \001(\t\022\025\n\rresource_" + + "name\030\003 \001(\t\022C\n\005state\030\004 \001(\01624.google.cloud" + + ".securitycenter.v1p1beta1.Finding.State\022" + + "\020\n\010category\030\005 \001(\t\022\024\n\014external_uri\030\006 \001(\t\022" + + "_\n\021source_properties\030\007 \003(\0132D.google.clou" + + "d.securitycenter.v1p1beta1.Finding.Sourc" + + "ePropertiesEntry\022Q\n\016security_marks\030\010 \001(\013" + + "24.google.cloud.securitycenter.v1p1beta1" + + ".SecurityMarksB\003\340A\003\022.\n\nevent_time\030\t \001(\0132" + + "\032.google.protobuf.Timestamp\022/\n\013create_ti" + + "me\030\n \001(\0132\032.google.protobuf.Timestamp\022I\n\010" + + "severity\030\r \001(\01627.google.cloud.securityce" + + "nter.v1p1beta1.Finding.Severity\022\026\n\016canon" + + "ical_name\030\016 \001(\t\032O\n\025SourcePropertiesEntry" + + "\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pr" + + "otobuf.Value:\0028\001\"8\n\005State\022\025\n\021STATE_UNSPE" + + "CIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002\"Q\n\010Se" + + "verity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRIT" + + "ICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004:\333\001" + + "\352A\327\001\n%securitycenter.googleapis.com/Find" + + "ing\022@organizations/{organization}/source" + + "s/{source}/findings/{finding}\0224folders/{" + + "folder}/sources/{source}/findings/{findi" + + "ng}\0226projects/{project}/sources/{source}" + + "/findings/{finding}B\375\001\n)com.google.cloud" + + ".securitycenter.v1p1beta1P\001ZSgoogle.gola" + + "ng.org/genproto/googleapis/cloud/securit" + + "ycenter/v1p1beta1;securitycenter\252\002%Googl" + + "e.Cloud.SecurityCenter.V1P1Beta1\312\002%Googl" + + "e\\Cloud\\SecurityCenter\\V1p1beta1\352\002(Googl" + + "e::Cloud::SecurityCenter::V1p1beta1b\006pro" + + "to3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor, + new java.lang.String[] { "Name", "Parent", "ResourceName", "State", "Category", "ExternalUri", "SourceProperties", "SecurityMarks", "EventTime", "CreateTime", "Severity", "CanonicalName", }); + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Folder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Folder.java similarity index 71% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Folder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Folder.java index dab9ee859..1b72636e2 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Folder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Folder.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/folder.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Message that contains the resource name and display name of a folder
  * resource.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Folder}
  */
-public final class Folder extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Folder extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.Folder)
     FolderOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Folder.newBuilder() to construct.
   private Folder(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Folder() {
     resourceFolder_ = "";
     resourceFolderDisplayName_ = "";
@@ -45,15 +27,16 @@ private Folder() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Folder();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Folder(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,27 +55,25 @@ private Folder(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              resourceFolder_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            resourceFolder_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              resourceFolderDisplayName_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            resourceFolderDisplayName_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,40 +81,35 @@ private Folder(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1p1beta1.FolderProto
-        .internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1p1beta1.FolderProto.internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1p1beta1.FolderProto
-        .internal_static_google_cloud_securitycenter_v1p1beta1_Folder_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1p1beta1.FolderProto.internal_static_google_cloud_securitycenter_v1p1beta1_Folder_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1p1beta1.Folder.class,
-            com.google.cloud.securitycenter.v1p1beta1.Folder.Builder.class);
+            com.google.cloud.securitycenter.v1p1beta1.Folder.class, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder.class);
   }
 
   public static final int RESOURCE_FOLDER_FIELD_NUMBER = 1;
   private volatile java.lang.Object resourceFolder_;
   /**
-   *
-   *
    * 
    * Full resource name of this folder. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string resource_folder = 1; - * * @return The resourceFolder. */ @java.lang.Override @@ -142,30 +118,30 @@ public java.lang.String getResourceFolder() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFolder_ = s; return s; } } /** - * - * *
    * Full resource name of this folder. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string resource_folder = 1; - * * @return The bytes for resourceFolder. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceFolderBytes() { + public com.google.protobuf.ByteString + getResourceFolderBytes() { java.lang.Object ref = resourceFolder_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceFolder_ = b; return b; } else { @@ -176,14 +152,11 @@ public com.google.protobuf.ByteString getResourceFolderBytes() { public static final int RESOURCE_FOLDER_DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object resourceFolderDisplayName_; /** - * - * *
    * The user defined display name for this folder.
    * 
* * string resource_folder_display_name = 2; - * * @return The resourceFolderDisplayName. */ @java.lang.Override @@ -192,29 +165,29 @@ public java.lang.String getResourceFolderDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFolderDisplayName_ = s; return s; } } /** - * - * *
    * The user defined display name for this folder.
    * 
* * string resource_folder_display_name = 2; - * * @return The bytes for resourceFolderDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceFolderDisplayNameBytes() { + public com.google.protobuf.ByteString + getResourceFolderDisplayNameBytes() { java.lang.Object ref = resourceFolderDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceFolderDisplayName_ = b; return b; } else { @@ -223,7 +196,6 @@ public com.google.protobuf.ByteString getResourceFolderDisplayNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -235,7 +207,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceFolder_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceFolder_); } @@ -255,8 +228,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceFolder_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceFolderDisplayName_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceFolderDisplayName_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceFolderDisplayName_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -266,16 +238,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.Folder)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.Folder other = - (com.google.cloud.securitycenter.v1p1beta1.Folder) obj; + com.google.cloud.securitycenter.v1p1beta1.Folder other = (com.google.cloud.securitycenter.v1p1beta1.Folder) obj; - if (!getResourceFolder().equals(other.getResourceFolder())) return false; - if (!getResourceFolderDisplayName().equals(other.getResourceFolderDisplayName())) return false; + if (!getResourceFolder() + .equals(other.getResourceFolder())) return false; + if (!getResourceFolderDisplayName() + .equals(other.getResourceFolderDisplayName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -296,104 +269,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.Folder parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.Folder parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.Folder parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.Folder prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message that contains the resource name and display name of a folder
    * resource.
@@ -401,23 +367,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Folder}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.Folder)
       com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.FolderProto
-          .internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.FolderProto.internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1p1beta1.FolderProto
-          .internal_static_google_cloud_securitycenter_v1p1beta1_Folder_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1p1beta1.FolderProto.internal_static_google_cloud_securitycenter_v1p1beta1_Folder_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1p1beta1.Folder.class,
-              com.google.cloud.securitycenter.v1p1beta1.Folder.Builder.class);
+              com.google.cloud.securitycenter.v1p1beta1.Folder.class, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1p1beta1.Folder.newBuilder()
@@ -425,15 +389,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -445,9 +410,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1p1beta1.FolderProto
-          .internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1p1beta1.FolderProto.internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor;
     }
 
     @java.lang.Override
@@ -466,8 +431,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1p1beta1.Folder buildPartial() {
-      com.google.cloud.securitycenter.v1p1beta1.Folder result =
-          new com.google.cloud.securitycenter.v1p1beta1.Folder(this);
+      com.google.cloud.securitycenter.v1p1beta1.Folder result = new com.google.cloud.securitycenter.v1p1beta1.Folder(this);
       result.resourceFolder_ = resourceFolder_;
       result.resourceFolderDisplayName_ = resourceFolderDisplayName_;
       onBuilt();
@@ -478,39 +442,38 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1p1beta1.Folder) {
-        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Folder) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Folder)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -518,8 +481,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Folder other) {
-      if (other == com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance()) return this;
       if (!other.getResourceFolder().isEmpty()) {
         resourceFolder_ = other.resourceFolder_;
         onChanged();
@@ -559,21 +521,19 @@ public Builder mergeFrom(
 
     private java.lang.Object resourceFolder_ = "";
     /**
-     *
-     *
      * 
      * Full resource name of this folder. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_folder = 1; - * * @return The resourceFolder. */ public java.lang.String getResourceFolder() { java.lang.Object ref = resourceFolder_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFolder_ = s; return s; @@ -582,22 +542,21 @@ public java.lang.String getResourceFolder() { } } /** - * - * *
      * Full resource name of this folder. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_folder = 1; - * * @return The bytes for resourceFolder. */ - public com.google.protobuf.ByteString getResourceFolderBytes() { + public com.google.protobuf.ByteString + getResourceFolderBytes() { java.lang.Object ref = resourceFolder_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceFolder_ = b; return b; } else { @@ -605,64 +564,57 @@ public com.google.protobuf.ByteString getResourceFolderBytes() { } } /** - * - * *
      * Full resource name of this folder. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_folder = 1; - * * @param value The resourceFolder to set. * @return This builder for chaining. */ - public Builder setResourceFolder(java.lang.String value) { + public Builder setResourceFolder( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceFolder_ = value; onChanged(); return this; } /** - * - * *
      * Full resource name of this folder. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_folder = 1; - * * @return This builder for chaining. */ public Builder clearResourceFolder() { - + resourceFolder_ = getDefaultInstance().getResourceFolder(); onChanged(); return this; } /** - * - * *
      * Full resource name of this folder. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_folder = 1; - * * @param value The bytes for resourceFolder to set. * @return This builder for chaining. */ - public Builder setResourceFolderBytes(com.google.protobuf.ByteString value) { + public Builder setResourceFolderBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceFolder_ = value; onChanged(); return this; @@ -670,20 +622,18 @@ public Builder setResourceFolderBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceFolderDisplayName_ = ""; /** - * - * *
      * The user defined display name for this folder.
      * 
* * string resource_folder_display_name = 2; - * * @return The resourceFolderDisplayName. */ public java.lang.String getResourceFolderDisplayName() { java.lang.Object ref = resourceFolderDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFolderDisplayName_ = s; return s; @@ -692,21 +642,20 @@ public java.lang.String getResourceFolderDisplayName() { } } /** - * - * *
      * The user defined display name for this folder.
      * 
* * string resource_folder_display_name = 2; - * * @return The bytes for resourceFolderDisplayName. */ - public com.google.protobuf.ByteString getResourceFolderDisplayNameBytes() { + public com.google.protobuf.ByteString + getResourceFolderDisplayNameBytes() { java.lang.Object ref = resourceFolderDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceFolderDisplayName_ = b; return b; } else { @@ -714,68 +663,61 @@ public com.google.protobuf.ByteString getResourceFolderDisplayNameBytes() { } } /** - * - * *
      * The user defined display name for this folder.
      * 
* * string resource_folder_display_name = 2; - * * @param value The resourceFolderDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceFolderDisplayName(java.lang.String value) { + public Builder setResourceFolderDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceFolderDisplayName_ = value; onChanged(); return this; } /** - * - * *
      * The user defined display name for this folder.
      * 
* * string resource_folder_display_name = 2; - * * @return This builder for chaining. */ public Builder clearResourceFolderDisplayName() { - + resourceFolderDisplayName_ = getDefaultInstance().getResourceFolderDisplayName(); onChanged(); return this; } /** - * - * *
      * The user defined display name for this folder.
      * 
* * string resource_folder_display_name = 2; - * * @param value The bytes for resourceFolderDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceFolderDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setResourceFolderDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceFolderDisplayName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -785,12 +727,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.Folder) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.Folder) private static final com.google.cloud.securitycenter.v1p1beta1.Folder DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.Folder(); } @@ -799,16 +741,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.Folder getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Folder parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Folder(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Folder parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Folder(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -823,4 +765,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.Folder getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderName.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderName.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderName.java diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderOrBuilder.java similarity index 61% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderOrBuilder.java index 35597423f..80ae53dcd 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderOrBuilder.java @@ -1,77 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/folder.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface FolderOrBuilder - extends +public interface FolderOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.Folder) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Full resource name of this folder. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string resource_folder = 1; - * * @return The resourceFolder. */ java.lang.String getResourceFolder(); /** - * - * *
    * Full resource name of this folder. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string resource_folder = 1; - * * @return The bytes for resourceFolder. */ - com.google.protobuf.ByteString getResourceFolderBytes(); + com.google.protobuf.ByteString + getResourceFolderBytes(); /** - * - * *
    * The user defined display name for this folder.
    * 
* * string resource_folder_display_name = 2; - * * @return The resourceFolderDisplayName. */ java.lang.String getResourceFolderDisplayName(); /** - * - * *
    * The user defined display name for this folder.
    * 
* * string resource_folder_display_name = 2; - * * @return The bytes for resourceFolderDisplayName. */ - com.google.protobuf.ByteString getResourceFolderDisplayNameBytes(); + com.google.protobuf.ByteString + getResourceFolderDisplayNameBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderProto.java new file mode 100644 index 000000000..9deaea685 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderProto.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/folder.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class FolderProto { + private FolderProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_Folder_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/securitycenter/v1p1beta1/" + + "folder.proto\022%google.cloud.securitycente" + + "r.v1p1beta1\032\034google/api/annotations.prot" + + "o\"G\n\006Folder\022\027\n\017resource_folder\030\001 \001(\t\022$\n\034" + + "resource_folder_display_name\030\002 \001(\tB\212\002\n)c" + + "om.google.cloud.securitycenter.v1p1beta1" + + "B\013FolderProtoP\001ZSgoogle.golang.org/genpr" + + "oto/googleapis/cloud/securitycenter/v1p1" + + "beta1;securitycenter\252\002%Google.Cloud.Secu" + + "rityCenter.V1P1Beta1\312\002%Google\\Cloud\\Secu" + + "rityCenter\\V1p1beta1\352\002(Google::Cloud::Se" + + "curityCenter::V1p1Beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_Folder_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor, + new java.lang.String[] { "ResourceFolder", "ResourceFolderDisplayName", }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java similarity index 63% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java index a17c846db..da2a3473f 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Request message for getting a notification config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest} */ -public final class GetNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetNotificationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) GetNotificationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetNotificationConfigRequest.newBuilder() to construct. private GetNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetNotificationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetNotificationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetNotificationConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetNotificationConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetNotificationConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.class, - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.class, com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the notification config to get. Its format is
    * "organizations/[organization_id]/notificationConfigs/[config_id]".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the notification config to get. Its format is
    * "organizations/[organization_id]/notificationConfigs/[config_id]".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest other = - (com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest other = (com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for getting a notification config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.class, - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.class, com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.newBuilder() + // Construct using com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,22 +343,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest build() { - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest result = - buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -405,8 +364,7 @@ public com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest bu @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest result = - new com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest(this); + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest result = new com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -416,51 +374,46 @@ public com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) { - return mergeFrom( - (com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest other) { + if (other == com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -484,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -498,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the notification config to get. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -523,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the notification config to get. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -548,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the notification config to get. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the notification config to get. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the notification config to get. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -628,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest(); } - public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNotificationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNotificationConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNotificationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetNotificationConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -665,8 +594,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequestOrBuilder.java new file mode 100644 index 000000000..06c29c44d --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public interface GetNotificationConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the notification config to get. Its format is
+   * "organizations/[organization_id]/notificationConfigs/[config_id]".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the notification config to get. Its format is
+   * "organizations/[organization_id]/notificationConfigs/[config_id]".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java similarity index 61% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java index 0035adf1a..452df79d9 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Request message for getting organization settings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest} */ -public final class GetOrganizationSettingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetOrganizationSettingsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) GetOrganizationSettingsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetOrganizationSettingsRequest.newBuilder() to construct. - private GetOrganizationSettingsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetOrganizationSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetOrganizationSettingsRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetOrganizationSettingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetOrganizationSettingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,20 +53,19 @@ private GetOrganizationSettingsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,42 +73,35 @@ private GetOrganizationSettingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.class, - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the organization to get organization settings for. Its format is
    * "organizations/[organization_id]/organizationSettings".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the organization to get organization settings for. Its format is
    * "organizations/[organization_id]/organizationSettings".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -170,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -206,16 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest)) { + if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest other = - (com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest other = (com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,146 +206,134 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for getting organization settings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.class, - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.Builder - .class); + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.newBuilder() + // Construct using com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -384,22 +343,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest build() { - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest result = - buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -408,8 +364,7 @@ public com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest result = - new com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest(this); + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest result = new com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest(this); result.name_ = name_; onBuilt(); return result; @@ -419,52 +374,46 @@ public com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) { - return mergeFrom( - (com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) other); + if (other instanceof com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest other) { + if (other == com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -488,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -502,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -527,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -552,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -632,33 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest(); + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest(); } - public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOrganizationSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetOrganizationSettingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrganizationSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetOrganizationSettingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -670,8 +594,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequestOrBuilder.java new file mode 100644 index 000000000..dd51cbd93 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public interface GetOrganizationSettingsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the organization to get organization settings for. Its format is
+   * "organizations/[organization_id]/organizationSettings".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the organization to get organization settings for. Its format is
+   * "organizations/[organization_id]/organizationSettings".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java similarity index 67% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java index f2c2ae02b..b50b93818 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Request message for getting a source.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GetSourceRequest} */ -public final class GetSourceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSourceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.GetSourceRequest) GetSourceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSourceRequest.newBuilder() to construct. private GetSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSourceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetSourceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetSourceRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetSourceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.class, - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.class, com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Relative resource name of the source. Its format is
    * "organizations/[organization_id]/source/[source_id]".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Relative resource name of the source. Its format is
    * "organizations/[organization_id]/source/[source_id]".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest other = - (com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest other = (com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for getting a source.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GetSourceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.GetSourceRequest) com.google.cloud.securitycenter.v1p1beta1.GetSourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.class, - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.class, com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor; } @java.lang.Override @@ -400,8 +364,7 @@ public com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest result = - new com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest(this); + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest result = new com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -411,39 +374,38 @@ public com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest)other); } else { super.mergeFrom(other); return this; @@ -451,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -476,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -489,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -514,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -539,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -619,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.GetSourceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.GetSourceRequest) private static final com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest(); } @@ -633,16 +573,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSourceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSourceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSourceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequestOrBuilder.java new file mode 100644 index 000000000..1e62927b4 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public interface GetSourceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GetSourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Relative resource name of the source. Its format is
+   * "organizations/[organization_id]/source/[source_id]".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Relative resource name of the source. Its format is
+   * "organizations/[organization_id]/source/[source_id]".
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java similarity index 84% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java index c2b29b284..53f980984 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Request message for grouping by assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest} */ -public final class GroupAssetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GroupAssetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) GroupAssetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GroupAssetsRequest.newBuilder() to construct. private GroupAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GroupAssetsRequest() { parent_ = ""; filter_ = ""; @@ -46,15 +28,16 @@ private GroupAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GroupAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GroupAssetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,76 +56,68 @@ private GroupAssetsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - groupBy_ = s; - break; - } - case 34: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (compareDuration_ != null) { - subBuilder = compareDuration_.toBuilder(); - } - compareDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compareDuration_); - compareDuration_ = subBuilder.buildPartial(); - } - - break; + groupBy_ = s; + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + compareDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 64: - { - pageSize_ = input.readInt32(); - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 64: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -150,43 +125,36 @@ private GroupAssetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.class, - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.class, com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -195,33 +163,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -232,8 +198,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -285,7 +249,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -294,15 +257,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -354,15 +316,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -373,8 +336,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int GROUP_BY_FIELD_NUMBER = 3; private volatile java.lang.Object groupBy_; /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -393,7 +354,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The groupBy. */ @java.lang.Override @@ -402,15 +362,14 @@ public java.lang.String getGroupBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; } } /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -429,15 +388,16 @@ public java.lang.String getGroupBy() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for groupBy. */ @java.lang.Override - public com.google.protobuf.ByteString getGroupByBytes() { + public com.google.protobuf.ByteString + getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); groupBy_ = b; return b; } else { @@ -448,8 +408,6 @@ public com.google.protobuf.ByteString getGroupByBytes() { public static final int COMPARE_DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration compareDuration_; /** - * - * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -476,7 +434,6 @@ public com.google.protobuf.ByteString getGroupByBytes() {
    * 
* * .google.protobuf.Duration compare_duration = 4; - * * @return Whether the compareDuration field is set. */ @java.lang.Override @@ -484,8 +441,6 @@ public boolean hasCompareDuration() { return compareDuration_ != null; } /** - * - * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -512,18 +467,13 @@ public boolean hasCompareDuration() {
    * 
* * .google.protobuf.Duration compare_duration = 4; - * * @return The compareDuration. */ @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { - return compareDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : compareDuration_; + return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; } /** - * - * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -559,8 +509,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
   public static final int READ_TIME_FIELD_NUMBER = 5;
   private com.google.protobuf.Timestamp readTime_;
   /**
-   *
-   *
    * 
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -569,7 +517,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
    * 
* * .google.protobuf.Timestamp read_time = 5; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -577,8 +524,6 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -587,7 +532,6 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 5; - * * @return The readTime. */ @java.lang.Override @@ -595,8 +539,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -614,8 +556,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int PAGE_TOKEN_FIELD_NUMBER = 7;
   private volatile java.lang.Object pageToken_;
   /**
-   *
-   *
    * 
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -623,7 +563,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * string page_token = 7; - * * @return The pageToken. */ @java.lang.Override @@ -632,15 +571,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -648,15 +586,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 7; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -667,15 +606,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 8; private int pageSize_; /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 8; - * * @return The pageSize. */ @java.lang.Override @@ -684,7 +620,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -696,7 +631,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -737,16 +673,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, groupBy_); } if (compareDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCompareDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCompareDuration()); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(8, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -756,27 +695,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest other = - (com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest other = (com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getGroupBy().equals(other.getGroupBy())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getGroupBy() + .equals(other.getGroupBy())) return false; if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - if (!getCompareDuration().equals(other.getCompareDuration())) return false; + if (!getCompareDuration() + .equals(other.getCompareDuration())) return false; } if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -812,127 +757,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for grouping by assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.class, - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.class, com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.newBuilder() @@ -940,15 +875,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -978,14 +914,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.getDefaultInstance(); } @@ -1000,8 +935,7 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest result = - new com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest(this); + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest result = new com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.groupBy_ = groupBy_; @@ -1025,39 +959,38 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest)other); } else { super.mergeFrom(other); return this; @@ -1065,9 +998,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1112,8 +1043,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1125,24 +1055,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1151,25 +1077,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1177,73 +1100,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1251,8 +1161,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1304,13 +1212,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1319,8 +1227,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1372,14 +1278,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1387,8 +1294,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1440,22 +1345,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1507,18 +1410,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1570,16 +1470,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1587,8 +1487,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object groupBy_ = ""; /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1607,13 +1505,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The groupBy. */ public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; @@ -1622,8 +1520,6 @@ public java.lang.String getGroupBy() { } } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1642,14 +1538,15 @@ public java.lang.String getGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for groupBy. */ - public com.google.protobuf.ByteString getGroupByBytes() { + public com.google.protobuf.ByteString + getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); groupBy_ = b; return b; } else { @@ -1657,8 +1554,6 @@ public com.google.protobuf.ByteString getGroupByBytes() { } } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1677,22 +1572,20 @@ public com.google.protobuf.ByteString getGroupByBytes() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The groupBy to set. * @return This builder for chaining. */ - public Builder setGroupBy(java.lang.String value) { + public Builder setGroupBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + groupBy_ = value; onChanged(); return this; } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1711,18 +1604,15 @@ public Builder setGroupBy(java.lang.String value) {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearGroupBy() { - + groupBy_ = getDefaultInstance().getGroupBy(); onChanged(); return this; } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1741,16 +1631,16 @@ public Builder clearGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for groupBy to set. * @return This builder for chaining. */ - public Builder setGroupByBytes(com.google.protobuf.ByteString value) { + public Builder setGroupByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + groupBy_ = value; onChanged(); return this; @@ -1758,13 +1648,8 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Duration compareDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - compareDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> compareDurationBuilder_; /** - * - * *
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1791,15 +1676,12 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Duration compare_duration = 4; - * * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; } /** - * - * *
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1826,21 +1708,16 @@ public boolean hasCompareDuration() {
      * 
* * .google.protobuf.Duration compare_duration = 4; - * * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { - return compareDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : compareDuration_; + return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; } else { return compareDurationBuilder_.getMessage(); } } /** - * - * *
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1882,8 +1759,6 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1911,7 +1786,8 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration compare_duration = 4;
      */
-    public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setCompareDuration(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (compareDurationBuilder_ == null) {
         compareDuration_ = builderForValue.build();
         onChanged();
@@ -1922,8 +1798,6 @@ public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1955,9 +1829,7 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       if (compareDurationBuilder_ == null) {
         if (compareDuration_ != null) {
           compareDuration_ =
-              com.google.protobuf.Duration.newBuilder(compareDuration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(compareDuration_).mergeFrom(value).buildPartial();
         } else {
           compareDuration_ = value;
         }
@@ -1969,8 +1841,6 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -2010,8 +1880,6 @@ public Builder clearCompareDuration() {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -2040,13 +1908,11 @@ public Builder clearCompareDuration() {
      * .google.protobuf.Duration compare_duration = 4;
      */
     public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
-
+      
       onChanged();
       return getCompareDurationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -2078,14 +1944,11 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
       if (compareDurationBuilder_ != null) {
         return compareDurationBuilder_.getMessageOrBuilder();
       } else {
-        return compareDuration_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : compareDuration_;
+        return compareDuration_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : compareDuration_;
       }
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -2114,17 +1977,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * .google.protobuf.Duration compare_duration = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getCompareDurationFieldBuilder() {
       if (compareDurationBuilder_ == null) {
-        compareDurationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getCompareDuration(), getParentForChildren(), isClean());
+        compareDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getCompareDuration(),
+                getParentForChildren(),
+                isClean());
         compareDuration_ = null;
       }
       return compareDurationBuilder_;
@@ -2132,13 +1992,8 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
 
     private com.google.protobuf.Timestamp readTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        readTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_;
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2147,15 +2002,12 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * 
* * .google.protobuf.Timestamp read_time = 5; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2164,7 +2016,6 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 5; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -2175,8 +2026,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2200,8 +2049,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2211,7 +2058,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 5;
      */
-    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -2222,8 +2070,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2237,7 +2083,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -2249,8 +2095,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2272,8 +2116,6 @@ public Builder clearReadTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2284,13 +2126,11 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-
+      
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2304,12 +2144,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2320,17 +2159,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(), getParentForChildren(), isClean());
+        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(),
+                getParentForChildren(),
+                isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -2338,8 +2174,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private java.lang.Object pageToken_ = "";
     /**
-     *
-     *
      * 
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2347,13 +2181,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * string page_token = 7; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2362,8 +2196,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2371,14 +2203,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 7; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2386,8 +2219,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2395,22 +2226,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 7; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2418,18 +2247,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 7; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2437,32 +2263,29 @@ public Builder clearPageToken() {
      * 
* * string page_token = 7; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; - * * @return The pageSize. */ @java.lang.Override @@ -2470,45 +2293,39 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2518,13 +2335,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest(); } @@ -2533,16 +2349,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupAssetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAssetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2557,4 +2373,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java similarity index 91% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java index 6f72b9b81..b943a3c0e 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface GroupAssetsRequestOrBuilder - extends +public interface GroupAssetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -110,13 +83,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -168,14 +138,12 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -194,13 +162,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The groupBy. */ java.lang.String getGroupBy(); /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -219,14 +184,12 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for groupBy. */ - com.google.protobuf.ByteString getGroupByBytes(); + com.google.protobuf.ByteString + getGroupByBytes(); /** - * - * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -253,13 +216,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * .google.protobuf.Duration compare_duration = 4; - * * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** - * - * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -286,13 +246,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * .google.protobuf.Duration compare_duration = 4; - * * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** - * - * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -323,8 +280,6 @@ public interface GroupAssetsRequestOrBuilder
   com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -333,13 +288,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 5; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -348,13 +300,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 5; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -367,8 +316,6 @@ public interface GroupAssetsRequestOrBuilder
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -376,13 +323,10 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * string page_token = 7; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -390,21 +334,18 @@ public interface GroupAssetsRequestOrBuilder
    * 
* * string page_token = 7; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 8; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java similarity index 75% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java index 40003704c..7ca7e99c3 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Response message for grouping by assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse} */ -public final class GroupAssetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GroupAssetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) GroupAssetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GroupAssetsResponse.newBuilder() to construct. private GroupAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GroupAssetsResponse() { groupByResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private GroupAssetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GroupAssetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GroupAssetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,54 +55,46 @@ private GroupAssetsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - groupByResults_ = - new java.util.ArrayList< - com.google.cloud.securitycenter.v1p1beta1.GroupResult>(); - mutable_bitField0_ |= 0x00000001; - } - groupByResults_.add( - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.GroupResult.parser(), - extensionRegistry)); - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + groupByResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; + groupByResults_.add( + input.readMessage(com.google.cloud.securitycenter.v1p1beta1.GroupResult.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 32: - { - totalSize_ = input.readInt32(); - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 32: { + + totalSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -127,7 +102,8 @@ private GroupAssetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); @@ -136,27 +112,22 @@ private GroupAssetsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.class, - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.class, com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.Builder.class); } public static final int GROUP_BY_RESULTS_FIELD_NUMBER = 1; private java.util.List groupByResults_; /** - * - * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -166,13 +137,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
    */
   @java.lang.Override
-  public java.util.List
-      getGroupByResultsList() {
+  public java.util.List getGroupByResultsList() {
     return groupByResults_;
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -182,13 +150,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getGroupByResultsOrBuilderList() {
     return groupByResults_;
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -202,8 +168,6 @@ public int getGroupByResultsCount() {
     return groupByResults_.size();
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -217,8 +181,6 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(i
     return groupByResults_.get(index);
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -236,14 +198,11 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupBy
   public static final int READ_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Timestamp readTime_;
   /**
-   *
-   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -251,14 +210,11 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ @java.lang.Override @@ -266,8 +222,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used for executing the groupBy request.
    * 
@@ -282,15 +236,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -299,30 +250,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -333,14 +284,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_; /** - * - * *
    * The total number of results matching the query.
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -349,7 +297,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -361,7 +308,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < groupByResults_.size(); i++) { output.writeMessage(1, groupByResults_.get(i)); } @@ -384,16 +332,19 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < groupByResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, groupByResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, groupByResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -403,21 +354,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse other = - (com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) obj; + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse other = (com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) obj; - if (!getGroupByResultsList().equals(other.getGroupByResultsList())) return false; + if (!getGroupByResultsList() + .equals(other.getGroupByResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -447,127 +401,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for grouping by assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.class, - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.class, com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.newBuilder() @@ -575,17 +519,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getGroupByResultsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -609,14 +553,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.getDefaultInstance(); } @@ -631,8 +574,7 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse result = - new com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse(this); + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse result = new com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse(this); int from_bitField0_ = bitField0_; if (groupByResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -658,39 +600,38 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse)other); } else { super.mergeFrom(other); return this; @@ -698,9 +639,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.getDefaultInstance()) return this; if (groupByResultsBuilder_ == null) { if (!other.groupByResults_.isEmpty()) { if (groupByResults_.isEmpty()) { @@ -719,10 +658,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRe groupByResultsBuilder_ = null; groupByResults_ = other.groupByResults_; bitField0_ = (bitField0_ & ~0x00000001); - groupByResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGroupByResultsFieldBuilder() - : null; + groupByResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGroupByResultsFieldBuilder() : null; } else { groupByResultsBuilder_.addAllMessages(other.groupByResults_); } @@ -757,9 +695,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -768,41 +704,30 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List groupByResults_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureGroupByResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - groupByResults_ = - new java.util.ArrayList( - groupByResults_); + groupByResults_ = new java.util.ArrayList(groupByResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.GroupResult, - com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, - com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder> - groupByResultsBuilder_; + com.google.cloud.securitycenter.v1p1beta1.GroupResult, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder> groupByResultsBuilder_; /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ - public java.util.List - getGroupByResultsList() { + public java.util.List getGroupByResultsList() { if (groupByResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(groupByResults_); } else { @@ -810,16 +735,13 @@ private void ensureGroupByResultsIsMutable() { } } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public int getGroupByResultsCount() { if (groupByResultsBuilder_ == null) { @@ -829,16 +751,13 @@ public int getGroupByResultsCount() { } } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(int index) { if (groupByResultsBuilder_ == null) { @@ -848,16 +767,13 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(i } } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public Builder setGroupByResults( int index, com.google.cloud.securitycenter.v1p1beta1.GroupResult value) { @@ -874,16 +790,13 @@ public Builder setGroupByResults( return this; } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public Builder setGroupByResults( int index, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder builderForValue) { @@ -897,16 +810,13 @@ public Builder setGroupByResults( return this; } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public Builder addGroupByResults(com.google.cloud.securitycenter.v1p1beta1.GroupResult value) { if (groupByResultsBuilder_ == null) { @@ -922,16 +832,13 @@ public Builder addGroupByResults(com.google.cloud.securitycenter.v1p1beta1.Group return this; } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public Builder addGroupByResults( int index, com.google.cloud.securitycenter.v1p1beta1.GroupResult value) { @@ -948,16 +855,13 @@ public Builder addGroupByResults( return this; } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public Builder addGroupByResults( com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder builderForValue) { @@ -971,16 +875,13 @@ public Builder addGroupByResults( return this; } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public Builder addGroupByResults( int index, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder builderForValue) { @@ -994,23 +895,20 @@ public Builder addGroupByResults( return this; } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public Builder addAllGroupByResults( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (groupByResultsBuilder_ == null) { ensureGroupByResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupByResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, groupByResults_); onChanged(); } else { groupByResultsBuilder_.addAllMessages(values); @@ -1018,16 +916,13 @@ public Builder addAllGroupByResults( return this; } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public Builder clearGroupByResults() { if (groupByResultsBuilder_ == null) { @@ -1040,16 +935,13 @@ public Builder clearGroupByResults() { return this; } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public Builder removeGroupByResults(int index) { if (groupByResultsBuilder_ == null) { @@ -1062,55 +954,45 @@ public Builder removeGroupByResults(int index) { return this; } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder getGroupByResultsBuilder( int index) { return getGroupByResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder - getGroupByResultsOrBuilder(int index) { + public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupByResultsOrBuilder( + int index) { if (groupByResultsBuilder_ == null) { - return groupByResults_.get(index); - } else { + return groupByResults_.get(index); } else { return groupByResultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ - public java.util.List - getGroupByResultsOrBuilderList() { + public java.util.List + getGroupByResultsOrBuilderList() { if (groupByResultsBuilder_ != null) { return groupByResultsBuilder_.getMessageOrBuilderList(); } else { @@ -1118,68 +1000,51 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder getGroupByR } } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder - addGroupByResultsBuilder() { - return getGroupByResultsFieldBuilder() - .addBuilder(com.google.cloud.securitycenter.v1p1beta1.GroupResult.getDefaultInstance()); + public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder addGroupByResultsBuilder() { + return getGroupByResultsFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1p1beta1.GroupResult.getDefaultInstance()); } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder addGroupByResultsBuilder( int index) { - return getGroupByResultsFieldBuilder() - .addBuilder( - index, com.google.cloud.securitycenter.v1p1beta1.GroupResult.getDefaultInstance()); + return getGroupByResultsFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1p1beta1.GroupResult.getDefaultInstance()); } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ - public java.util.List - getGroupByResultsBuilderList() { + public java.util.List + getGroupByResultsBuilderList() { return getGroupByResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.GroupResult, - com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, - com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.GroupResult, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder> getGroupByResultsFieldBuilder() { if (groupByResultsBuilder_ == null) { - groupByResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.GroupResult, - com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, - com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder>( + groupByResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.GroupResult, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder>( groupByResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1191,33 +1056,24 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder addGroupByR private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1228,8 +1084,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1250,15 +1104,14 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -1269,8 +1122,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1281,7 +1132,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -1293,8 +1144,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1313,8 +1162,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1322,13 +1169,11 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1339,12 +1184,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1352,17 +1196,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getReadTime(), getParentForChildren(), isClean()); + readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getReadTime(), + getParentForChildren(), + isClean()); readTime_ = null; } return readTimeBuilder_; @@ -1370,21 +1211,19 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1393,22 +1232,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1416,79 +1254,69 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -1496,43 +1324,37 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; - * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** - * - * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; - * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1542,13 +1364,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) - private static final com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse(); } @@ -1557,16 +1378,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupAssetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupAssetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAssetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAssetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1581,4 +1402,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponseOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponseOrBuilder.java similarity index 80% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponseOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponseOrBuilder.java index c655aa8c5..dc7f555e0 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponseOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface GroupAssetsResponseOrBuilder - extends +public interface GroupAssetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -34,10 +16,9 @@ public interface GroupAssetsResponseOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
    */
-  java.util.List getGroupByResultsList();
+  java.util.List 
+      getGroupByResultsList();
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -48,8 +29,6 @@ public interface GroupAssetsResponseOrBuilder
    */
   com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(int index);
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -60,8 +39,6 @@ public interface GroupAssetsResponseOrBuilder
    */
   int getGroupByResultsCount();
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -70,11 +47,9 @@ public interface GroupAssetsResponseOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
    */
-  java.util.List
+  java.util.List 
       getGroupByResultsOrBuilderList();
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -87,32 +62,24 @@ com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupByResults
       int index);
 
   /**
-   *
-   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used for executing the groupBy request.
    * 
@@ -122,41 +89,33 @@ com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupByResults com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of results matching the query.
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ int getTotalSize(); diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java similarity index 83% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java index dd70227fb..fcde45a82 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Request message for grouping by findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest} */ -public final class GroupFindingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GroupFindingsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) GroupFindingsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GroupFindingsRequest.newBuilder() to construct. private GroupFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GroupFindingsRequest() { parent_ = ""; filter_ = ""; @@ -46,15 +28,16 @@ private GroupFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GroupFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GroupFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,76 +56,68 @@ private GroupFindingsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - groupBy_ = s; - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + groupBy_ = s; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 42: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (compareDuration_ != null) { - subBuilder = compareDuration_.toBuilder(); - } - compareDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compareDuration_); - compareDuration_ = subBuilder.buildPartial(); - } - - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; + break; + } + case 42: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); } - case 64: - { - pageSize_ = input.readInt32(); - break; + compareDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 64: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -150,33 +125,29 @@ private GroupFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.class, - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.class, com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]",
@@ -187,10 +158,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * or projects/{project_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -199,15 +167,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]",
@@ -218,18 +185,17 @@ public java.lang.String getParent() {
    * or projects/{project_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -240,8 +206,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -283,7 +247,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -292,15 +255,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -342,15 +304,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -361,8 +324,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int GROUP_BY_FIELD_NUMBER = 3; private volatile java.lang.Object groupBy_; /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state_change`). The string value should follow SQL syntax: comma separated
@@ -378,7 +339,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The groupBy. */ @java.lang.Override @@ -387,15 +347,14 @@ public java.lang.String getGroupBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; } } /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state_change`). The string value should follow SQL syntax: comma separated
@@ -411,15 +370,16 @@ public java.lang.String getGroupBy() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for groupBy. */ @java.lang.Override - public com.google.protobuf.ByteString getGroupByBytes() { + public com.google.protobuf.ByteString + getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); groupBy_ = b; return b; } else { @@ -430,8 +390,6 @@ public com.google.protobuf.ByteString getGroupByBytes() { public static final int READ_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp readTime_; /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -440,7 +398,6 @@ public com.google.protobuf.ByteString getGroupByBytes() {
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -448,8 +405,6 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -458,7 +413,6 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ @java.lang.Override @@ -466,8 +420,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -485,8 +437,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int COMPARE_DURATION_FIELD_NUMBER = 5;
   private com.google.protobuf.Duration compareDuration_;
   /**
-   *
-   *
    * 
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -518,7 +468,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ @java.lang.Override @@ -526,8 +475,6 @@ public boolean hasCompareDuration() { return compareDuration_ != null; } /** - * - * *
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -559,18 +506,13 @@ public boolean hasCompareDuration() {
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { - return compareDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : compareDuration_; + return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; } /** - * - * *
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -611,8 +553,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
   public static final int PAGE_TOKEN_FIELD_NUMBER = 7;
   private volatile java.lang.Object pageToken_;
   /**
-   *
-   *
    * 
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -620,7 +560,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
    * 
* * string page_token = 7; - * * @return The pageToken. */ @java.lang.Override @@ -629,15 +568,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -645,15 +583,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 7; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -664,15 +603,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 8; private int pageSize_; /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 8; - * * @return The pageSize. */ @java.lang.Override @@ -681,7 +617,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -693,7 +628,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -734,16 +670,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, groupBy_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getReadTime()); } if (compareDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCompareDuration()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(8, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -753,27 +692,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest other = - (com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest other = (com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getGroupBy().equals(other.getGroupBy())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getGroupBy() + .equals(other.getGroupBy())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - if (!getCompareDuration().equals(other.getCompareDuration())) return false; + if (!getCompareDuration() + .equals(other.getCompareDuration())) return false; } - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -809,127 +754,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for grouping by findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.class, - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.class, com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.newBuilder() @@ -937,15 +872,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -975,14 +911,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.getDefaultInstance(); } @@ -997,8 +932,7 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest result = - new com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest(this); + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest result = new com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.groupBy_ = groupBy_; @@ -1022,39 +956,38 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest)other); } else { super.mergeFrom(other); return this; @@ -1062,9 +995,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1109,9 +1040,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1123,8 +1052,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]",
@@ -1135,16 +1062,14 @@ public Builder mergeFrom(
      * or projects/{project_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1153,8 +1078,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]",
@@ -1165,17 +1088,16 @@ public java.lang.String getParent() {
      * or projects/{project_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1183,8 +1105,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]",
@@ -1195,25 +1115,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * or projects/{project_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]",
@@ -1224,21 +1140,16 @@ public Builder setParent(java.lang.String value) {
      * or projects/{project_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]",
@@ -1249,19 +1160,17 @@ public Builder clearParent() {
      * or projects/{project_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1269,8 +1178,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1312,13 +1219,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1327,8 +1234,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1370,14 +1275,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1385,8 +1291,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1428,22 +1332,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1485,18 +1387,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1538,16 +1437,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1555,8 +1454,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object groupBy_ = ""; /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
@@ -1572,13 +1469,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The groupBy. */ public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; @@ -1587,8 +1484,6 @@ public java.lang.String getGroupBy() { } } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
@@ -1604,14 +1499,15 @@ public java.lang.String getGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for groupBy. */ - public com.google.protobuf.ByteString getGroupByBytes() { + public com.google.protobuf.ByteString + getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); groupBy_ = b; return b; } else { @@ -1619,8 +1515,6 @@ public com.google.protobuf.ByteString getGroupByBytes() { } } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
@@ -1636,22 +1530,20 @@ public com.google.protobuf.ByteString getGroupByBytes() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The groupBy to set. * @return This builder for chaining. */ - public Builder setGroupBy(java.lang.String value) { + public Builder setGroupBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + groupBy_ = value; onChanged(); return this; } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
@@ -1667,18 +1559,15 @@ public Builder setGroupBy(java.lang.String value) {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearGroupBy() { - + groupBy_ = getDefaultInstance().getGroupBy(); onChanged(); return this; } /** - * - * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
@@ -1694,16 +1583,16 @@ public Builder clearGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for groupBy to set. * @return This builder for chaining. */ - public Builder setGroupByBytes(com.google.protobuf.ByteString value) { + public Builder setGroupByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + groupBy_ = value; onChanged(); return this; @@ -1711,13 +1600,8 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1726,15 +1610,12 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1743,7 +1624,6 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1754,8 +1634,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1779,8 +1657,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1790,7 +1666,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 4;
      */
-    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1801,8 +1678,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1816,7 +1691,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -1828,8 +1703,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1851,8 +1724,6 @@ public Builder clearReadTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1863,13 +1734,11 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-
+      
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1883,12 +1752,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1899,17 +1767,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(), getParentForChildren(), isClean());
+        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(),
+                getParentForChildren(),
+                isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -1917,13 +1782,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private com.google.protobuf.Duration compareDuration_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        compareDurationBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> compareDurationBuilder_;
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -1955,15 +1815,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; } /** - * - * *
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -1995,21 +1852,16 @@ public boolean hasCompareDuration() {
      * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { - return compareDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : compareDuration_; + return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; } else { return compareDurationBuilder_.getMessage(); } } /** - * - * *
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2056,8 +1908,6 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2090,7 +1940,8 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration compare_duration = 5;
      */
-    public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setCompareDuration(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (compareDurationBuilder_ == null) {
         compareDuration_ = builderForValue.build();
         onChanged();
@@ -2101,8 +1952,6 @@ public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2139,9 +1988,7 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       if (compareDurationBuilder_ == null) {
         if (compareDuration_ != null) {
           compareDuration_ =
-              com.google.protobuf.Duration.newBuilder(compareDuration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(compareDuration_).mergeFrom(value).buildPartial();
         } else {
           compareDuration_ = value;
         }
@@ -2153,8 +2000,6 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2199,8 +2044,6 @@ public Builder clearCompareDuration() {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2234,13 +2077,11 @@ public Builder clearCompareDuration() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
-
+      
       onChanged();
       return getCompareDurationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2277,14 +2118,11 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
       if (compareDurationBuilder_ != null) {
         return compareDurationBuilder_.getMessageOrBuilder();
       } else {
-        return compareDuration_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : compareDuration_;
+        return compareDuration_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : compareDuration_;
       }
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2318,17 +2156,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getCompareDurationFieldBuilder() {
       if (compareDurationBuilder_ == null) {
-        compareDurationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getCompareDuration(), getParentForChildren(), isClean());
+        compareDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getCompareDuration(),
+                getParentForChildren(),
+                isClean());
         compareDuration_ = null;
       }
       return compareDurationBuilder_;
@@ -2336,8 +2171,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
 
     private java.lang.Object pageToken_ = "";
     /**
-     *
-     *
      * 
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -2345,13 +2178,13 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * 
* * string page_token = 7; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2360,8 +2193,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -2369,14 +2200,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 7; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2384,8 +2216,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -2393,22 +2223,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 7; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -2416,18 +2244,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 7; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -2435,32 +2260,29 @@ public Builder clearPageToken() {
      * 
* * string page_token = 7; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; - * * @return The pageSize. */ @java.lang.Override @@ -2468,45 +2290,39 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2516,32 +2332,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest(); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2553,8 +2367,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java similarity index 91% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java index cc3deb88a..8614cd896 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface GroupFindingsRequestOrBuilder - extends +public interface GroupFindingsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]",
@@ -36,16 +18,11 @@ public interface GroupFindingsRequestOrBuilder
    * or projects/{project_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]",
@@ -56,17 +33,13 @@ public interface GroupFindingsRequestOrBuilder
    * or projects/{project_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -108,13 +81,10 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -156,14 +126,12 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state_change`). The string value should follow SQL syntax: comma separated
@@ -179,13 +147,10 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The groupBy. */ java.lang.String getGroupBy(); /** - * - * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state_change`). The string value should follow SQL syntax: comma separated
@@ -201,14 +166,12 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for groupBy. */ - com.google.protobuf.ByteString getGroupByBytes(); + com.google.protobuf.ByteString + getGroupByBytes(); /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -217,13 +180,10 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -232,13 +192,10 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -251,8 +208,6 @@ public interface GroupFindingsRequestOrBuilder
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -284,13 +239,10 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** - * - * *
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -322,13 +274,10 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** - * - * *
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -364,8 +313,6 @@ public interface GroupFindingsRequestOrBuilder
   com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
 
   /**
-   *
-   *
    * 
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -373,13 +320,10 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * string page_token = 7; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -387,21 +331,18 @@ public interface GroupFindingsRequestOrBuilder
    * 
* * string page_token = 7; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 8; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java similarity index 74% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java index dde4ad31f..f5db895da 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Response message for group by findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse} */ -public final class GroupFindingsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GroupFindingsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) GroupFindingsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GroupFindingsResponse.newBuilder() to construct. private GroupFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GroupFindingsResponse() { groupByResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private GroupFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GroupFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GroupFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,54 +55,46 @@ private GroupFindingsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - groupByResults_ = - new java.util.ArrayList< - com.google.cloud.securitycenter.v1p1beta1.GroupResult>(); - mutable_bitField0_ |= 0x00000001; - } - groupByResults_.add( - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.GroupResult.parser(), - extensionRegistry)); - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + groupByResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; + groupByResults_.add( + input.readMessage(com.google.cloud.securitycenter.v1p1beta1.GroupResult.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 32: - { - totalSize_ = input.readInt32(); - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 32: { + + totalSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -127,7 +102,8 @@ private GroupFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); @@ -136,27 +112,22 @@ private GroupFindingsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.class, - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.class, com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.Builder.class); } public static final int GROUP_BY_RESULTS_FIELD_NUMBER = 1; private java.util.List groupByResults_; /** - * - * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -166,13 +137,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
    */
   @java.lang.Override
-  public java.util.List
-      getGroupByResultsList() {
+  public java.util.List getGroupByResultsList() {
     return groupByResults_;
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -182,13 +150,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getGroupByResultsOrBuilderList() {
     return groupByResults_;
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -202,8 +168,6 @@ public int getGroupByResultsCount() {
     return groupByResults_.size();
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -217,8 +181,6 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(i
     return groupByResults_.get(index);
   }
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -236,14 +198,11 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupBy
   public static final int READ_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Timestamp readTime_;
   /**
-   *
-   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -251,14 +210,11 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ @java.lang.Override @@ -266,8 +222,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used for executing the groupBy request.
    * 
@@ -282,15 +236,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -299,30 +250,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -333,14 +284,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_; /** - * - * *
    * The total number of results matching the query.
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -349,7 +297,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -361,7 +308,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < groupByResults_.size(); i++) { output.writeMessage(1, groupByResults_.get(i)); } @@ -384,16 +332,19 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < groupByResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, groupByResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, groupByResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -403,21 +354,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse other = - (com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) obj; + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse other = (com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) obj; - if (!getGroupByResultsList().equals(other.getGroupByResultsList())) return false; + if (!getGroupByResultsList() + .equals(other.getGroupByResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -447,127 +401,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for group by findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.class, - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.class, com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.newBuilder() @@ -575,17 +519,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getGroupByResultsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -609,14 +553,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.getDefaultInstance(); } @@ -631,8 +574,7 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse result = - new com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse(this); + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse result = new com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse(this); int from_bitField0_ = bitField0_; if (groupByResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -658,50 +600,46 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse other) { + if (other == com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.getDefaultInstance()) return this; if (groupByResultsBuilder_ == null) { if (!other.groupByResults_.isEmpty()) { if (groupByResults_.isEmpty()) { @@ -720,10 +658,9 @@ public Builder mergeFrom( groupByResultsBuilder_ = null; groupByResults_ = other.groupByResults_; bitField0_ = (bitField0_ & ~0x00000001); - groupByResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGroupByResultsFieldBuilder() - : null; + groupByResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGroupByResultsFieldBuilder() : null; } else { groupByResultsBuilder_.addAllMessages(other.groupByResults_); } @@ -758,9 +695,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -769,41 +704,30 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List groupByResults_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureGroupByResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - groupByResults_ = - new java.util.ArrayList( - groupByResults_); + groupByResults_ = new java.util.ArrayList(groupByResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.GroupResult, - com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, - com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder> - groupByResultsBuilder_; + com.google.cloud.securitycenter.v1p1beta1.GroupResult, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder> groupByResultsBuilder_; /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ - public java.util.List - getGroupByResultsList() { + public java.util.List getGroupByResultsList() { if (groupByResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(groupByResults_); } else { @@ -811,16 +735,13 @@ private void ensureGroupByResultsIsMutable() { } } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public int getGroupByResultsCount() { if (groupByResultsBuilder_ == null) { @@ -830,16 +751,13 @@ public int getGroupByResultsCount() { } } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(int index) { if (groupByResultsBuilder_ == null) { @@ -849,16 +767,13 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(i } } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public Builder setGroupByResults( int index, com.google.cloud.securitycenter.v1p1beta1.GroupResult value) { @@ -875,16 +790,13 @@ public Builder setGroupByResults( return this; } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public Builder setGroupByResults( int index, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder builderForValue) { @@ -898,16 +810,13 @@ public Builder setGroupByResults( return this; } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public Builder addGroupByResults(com.google.cloud.securitycenter.v1p1beta1.GroupResult value) { if (groupByResultsBuilder_ == null) { @@ -923,16 +832,13 @@ public Builder addGroupByResults(com.google.cloud.securitycenter.v1p1beta1.Group return this; } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public Builder addGroupByResults( int index, com.google.cloud.securitycenter.v1p1beta1.GroupResult value) { @@ -949,16 +855,13 @@ public Builder addGroupByResults( return this; } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public Builder addGroupByResults( com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder builderForValue) { @@ -972,16 +875,13 @@ public Builder addGroupByResults( return this; } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public Builder addGroupByResults( int index, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder builderForValue) { @@ -995,23 +895,20 @@ public Builder addGroupByResults( return this; } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public Builder addAllGroupByResults( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (groupByResultsBuilder_ == null) { ensureGroupByResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupByResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, groupByResults_); onChanged(); } else { groupByResultsBuilder_.addAllMessages(values); @@ -1019,16 +916,13 @@ public Builder addAllGroupByResults( return this; } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public Builder clearGroupByResults() { if (groupByResultsBuilder_ == null) { @@ -1041,16 +935,13 @@ public Builder clearGroupByResults() { return this; } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public Builder removeGroupByResults(int index) { if (groupByResultsBuilder_ == null) { @@ -1063,55 +954,45 @@ public Builder removeGroupByResults(int index) { return this; } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder getGroupByResultsBuilder( int index) { return getGroupByResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder - getGroupByResultsOrBuilder(int index) { + public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupByResultsOrBuilder( + int index) { if (groupByResultsBuilder_ == null) { - return groupByResults_.get(index); - } else { + return groupByResults_.get(index); } else { return groupByResultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ - public java.util.List - getGroupByResultsOrBuilderList() { + public java.util.List + getGroupByResultsOrBuilderList() { if (groupByResultsBuilder_ != null) { return groupByResultsBuilder_.getMessageOrBuilderList(); } else { @@ -1119,68 +1000,51 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder getGroupByR } } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder - addGroupByResultsBuilder() { - return getGroupByResultsFieldBuilder() - .addBuilder(com.google.cloud.securitycenter.v1p1beta1.GroupResult.getDefaultInstance()); + public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder addGroupByResultsBuilder() { + return getGroupByResultsFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1p1beta1.GroupResult.getDefaultInstance()); } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder addGroupByResultsBuilder( int index) { - return getGroupByResultsFieldBuilder() - .addBuilder( - index, com.google.cloud.securitycenter.v1p1beta1.GroupResult.getDefaultInstance()); + return getGroupByResultsFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1p1beta1.GroupResult.getDefaultInstance()); } /** - * - * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; */ - public java.util.List - getGroupByResultsBuilderList() { + public java.util.List + getGroupByResultsBuilderList() { return getGroupByResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.GroupResult, - com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, - com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.GroupResult, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder> getGroupByResultsFieldBuilder() { if (groupByResultsBuilder_ == null) { - groupByResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.GroupResult, - com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, - com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder>( + groupByResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.GroupResult, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder>( groupByResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1192,33 +1056,24 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder addGroupByR private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1229,8 +1084,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1251,15 +1104,14 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -1270,8 +1122,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1282,7 +1132,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -1294,8 +1144,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1314,8 +1162,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1323,13 +1169,11 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1340,12 +1184,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** - * - * *
      * Time used for executing the groupBy request.
      * 
@@ -1353,17 +1196,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getReadTime(), getParentForChildren(), isClean()); + readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getReadTime(), + getParentForChildren(), + isClean()); readTime_ = null; } return readTimeBuilder_; @@ -1371,21 +1211,19 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1394,22 +1232,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1417,79 +1254,69 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -1497,43 +1324,37 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; - * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** - * - * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; - * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1543,32 +1364,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) - private static final com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse(); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1580,8 +1399,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponseOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponseOrBuilder.java similarity index 80% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponseOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponseOrBuilder.java index 7497748ff..087f87b7a 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponseOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface GroupFindingsResponseOrBuilder - extends +public interface GroupFindingsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -34,10 +16,9 @@ public interface GroupFindingsResponseOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
    */
-  java.util.List getGroupByResultsList();
+  java.util.List 
+      getGroupByResultsList();
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -48,8 +29,6 @@ public interface GroupFindingsResponseOrBuilder
    */
   com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(int index);
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -60,8 +39,6 @@ public interface GroupFindingsResponseOrBuilder
    */
   int getGroupByResultsCount();
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -70,11 +47,9 @@ public interface GroupFindingsResponseOrBuilder
    *
    * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
    */
-  java.util.List
+  java.util.List 
       getGroupByResultsOrBuilderList();
   /**
-   *
-   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -87,32 +62,24 @@ com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupByResults
       int index);
 
   /**
-   *
-   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used for executing the groupBy request.
    * 
@@ -122,41 +89,33 @@ com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupByResults com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of results matching the query.
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ int getTotalSize(); diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java similarity index 64% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java index 742b6a425..1136a0b1e 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Result containing the properties and count of a groupBy request.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GroupResult} */ -public final class GroupResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GroupResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.GroupResult) GroupResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GroupResult.newBuilder() to construct. private GroupResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GroupResult() {} + private GroupResult() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GroupResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GroupResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,34 +53,31 @@ private GroupResult( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - properties_ = - com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - properties__ = - input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + properties_ = com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 16: - { - count_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + properties__ = input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + properties_.getMutableMap().put( + properties__.getKey(), properties__.getValue()); + break; + } + case 16: { + + count_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,60 +85,57 @@ private GroupResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetProperties(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GroupResult.class, - com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GroupResult.class, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder.class); } public static final int PROPERTIES_FIELD_NUMBER = 1; - private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.Value> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); - } - - private com.google.protobuf.MapField properties_; - + .newDefaultInstance( + com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> properties_; private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -166,30 +144,28 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -197,12 +173,11 @@ public java.util.Map getProperties( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -210,18 +185,16 @@ public java.util.Map getPropertiesM * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override + public com.google.protobuf.Value getPropertiesOrDefault( - java.lang.String key, com.google.protobuf.Value defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.protobuf.Value defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -229,10 +202,10 @@ public com.google.protobuf.Value getPropertiesOrDefault( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public com.google.protobuf.Value getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { @@ -244,14 +217,11 @@ public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { public static final int COUNT_FIELD_NUMBER = 2; private long count_; /** - * - * *
    * Total count of resources for the given properties.
    * 
* * int64 count = 2; - * * @return The count. */ @java.lang.Override @@ -260,7 +230,6 @@ public long getCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,9 +241,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetProperties(), + PropertiesDefaultEntryHolder.defaultEntry, + 1); if (count_ != 0L) { output.writeInt64(2, count_); } @@ -287,18 +261,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry : - internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry properties__ = - PropertiesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, properties__); + for (java.util.Map.Entry entry + : internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry + properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, properties__); } if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, count_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, count_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -308,16 +283,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.GroupResult)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.GroupResult other = - (com.google.cloud.securitycenter.v1p1beta1.GroupResult) obj; + com.google.cloud.securitycenter.v1p1beta1.GroupResult other = (com.google.cloud.securitycenter.v1p1beta1.GroupResult) obj; - if (!internalGetProperties().equals(other.internalGetProperties())) return false; - if (getCount() != other.getCount()) return false; + if (!internalGetProperties().equals( + other.internalGetProperties())) return false; + if (getCount() + != other.getCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -334,154 +310,147 @@ public int hashCode() { hash = (53 * hash) + internalGetProperties().hashCode(); } hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.GroupResult prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.GroupResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Result containing the properties and count of a groupBy request.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GroupResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.GroupResult) com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetProperties(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 1: return internalGetMutableProperties(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GroupResult.class, - com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GroupResult.class, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.GroupResult.newBuilder() @@ -489,15 +458,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -508,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor; } @java.lang.Override @@ -529,8 +499,7 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GroupResult buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.GroupResult result = - new com.google.cloud.securitycenter.v1p1beta1.GroupResult(this); + com.google.cloud.securitycenter.v1p1beta1.GroupResult result = new com.google.cloud.securitycenter.v1p1beta1.GroupResult(this); int from_bitField0_ = bitField0_; result.properties_ = internalGetProperties(); result.properties_.makeImmutable(); @@ -543,39 +512,38 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.GroupResult) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GroupResult) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GroupResult)other); } else { super.mergeFrom(other); return this; @@ -583,9 +551,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GroupResult other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.GroupResult.getDefaultInstance()) - return this; - internalGetMutableProperties().mergeFrom(other.internalGetProperties()); + if (other == com.google.cloud.securitycenter.v1p1beta1.GroupResult.getDefaultInstance()) return this; + internalGetMutableProperties().mergeFrom( + other.internalGetProperties()); if (other.getCount() != 0L) { setCount(other.getCount()); } @@ -608,8 +576,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.GroupResult) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.GroupResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -618,27 +585,24 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.MapField properties_; - + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> properties_; private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } - private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged(); - ; + internalGetMutableProperties() { + onChanged();; if (properties_ == null) { - properties_ = - com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); + properties_ = com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -650,30 +614,28 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ + @java.lang.Override - public boolean containsProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } - /** Use {@link #getPropertiesMap()} instead. */ + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
@@ -681,12 +643,11 @@ public java.util.Map getProperties( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override + public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
@@ -694,18 +655,16 @@ public java.util.Map getPropertiesM * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override + public com.google.protobuf.Value getPropertiesOrDefault( - java.lang.String key, com.google.protobuf.Value defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.protobuf.Value defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
@@ -713,10 +672,10 @@ public com.google.protobuf.Value getPropertiesOrDefault( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public com.google.protobuf.Value getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { @@ -726,75 +685,74 @@ public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap().clear(); + internalGetMutableProperties().getMutableMap() + .clear(); return this; } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ - public Builder removeProperties(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableProperties().getMutableMap().remove(key); + + public Builder removeProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableProperties().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableProperties() { + public java.util.Map + getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ - public Builder putProperties(java.lang.String key, com.google.protobuf.Value value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putProperties( + java.lang.String key, + com.google.protobuf.Value value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableProperties().getMutableMap().put(key, value); + internalGetMutableProperties().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ + public Builder putAllProperties( java.util.Map values) { - internalGetMutableProperties().getMutableMap().putAll(values); + internalGetMutableProperties().getMutableMap() + .putAll(values); return this; } - private long count_; + private long count_ ; /** - * - * *
      * Total count of resources for the given properties.
      * 
* * int64 count = 2; - * * @return The count. */ @java.lang.Override @@ -802,43 +760,37 @@ public long getCount() { return count_; } /** - * - * *
      * Total count of resources for the given properties.
      * 
* * int64 count = 2; - * * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(long value) { - + count_ = value; onChanged(); return this; } /** - * - * *
      * Total count of resources for the given properties.
      * 
* * int64 count = 2; - * * @return This builder for chaining. */ public Builder clearCount() { - + count_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -848,12 +800,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.GroupResult) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.GroupResult) private static final com.google.cloud.securitycenter.v1p1beta1.GroupResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.GroupResult(); } @@ -862,16 +814,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.GroupResult getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -886,4 +838,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.GroupResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResultOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResultOrBuilder.java similarity index 56% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResultOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResultOrBuilder.java index d84cc4f95..9367fee6d 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResultOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResultOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface GroupResultOrBuilder - extends +public interface GroupResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GroupResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -34,31 +16,30 @@ public interface GroupResultOrBuilder */ int getPropertiesCount(); /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - boolean containsProperties(java.lang.String key); - /** Use {@link #getPropertiesMap()} instead. */ + boolean containsProperties( + java.lang.String key); + /** + * Use {@link #getPropertiesMap()} instead. + */ @java.lang.Deprecated - java.util.Map getProperties(); + java.util.Map + getProperties(); /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - java.util.Map getPropertiesMap(); + java.util.Map + getPropertiesMap(); /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -67,30 +48,27 @@ public interface GroupResultOrBuilder */ /* nullable */ - com.google.protobuf.Value getPropertiesOrDefault( +com.google.protobuf.Value getPropertiesOrDefault( java.lang.String key, /* nullable */ - com.google.protobuf.Value defaultValue); +com.google.protobuf.Value defaultValue); /** - * - * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key); + + com.google.protobuf.Value getPropertiesOrThrow( + java.lang.String key); /** - * - * *
    * Total count of resources for the given properties.
    * 
* * int64 count = 2; - * * @return The count. */ long getCount(); diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java similarity index 84% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java index 3463f41a0..2b6f6a896 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Request message for listing assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListAssetsRequest} */ -public final class ListAssetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAssetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) ListAssetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAssetsRequest.newBuilder() to construct. private ListAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAssetsRequest() { parent_ = ""; filter_ = ""; @@ -46,15 +28,16 @@ private ListAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAssetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,91 +56,81 @@ private ListAssetsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; + orderBy_ = s; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - case 42: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (compareDuration_ != null) { - subBuilder = compareDuration_.toBuilder(); - } - compareDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compareDuration_); - compareDuration_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 42: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); } - case 58: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (fieldMask_ != null) { - subBuilder = fieldMask_.toBuilder(); - } - fieldMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fieldMask_); - fieldMask_ = subBuilder.buildPartial(); - } - - break; + compareDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; + break; + } + case 58: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); } - case 72: - { - pageSize_ = input.readInt32(); - break; + fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 72: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -165,43 +138,36 @@ private ListAssetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.class, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.class, com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -210,33 +176,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -247,8 +211,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -300,7 +262,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -309,15 +270,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -369,15 +329,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -388,8 +349,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 3; private volatile java.lang.Object orderBy_; /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -414,7 +373,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 3; - * * @return The orderBy. */ @java.lang.Override @@ -423,15 +381,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -456,15 +413,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 3; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -475,8 +433,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int READ_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp readTime_; /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -485,7 +441,6 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -493,8 +448,6 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -503,7 +456,6 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ @java.lang.Override @@ -511,8 +463,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -530,8 +480,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int COMPARE_DURATION_FIELD_NUMBER = 5;
   private com.google.protobuf.Duration compareDuration_;
   /**
-   *
-   *
    * 
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -556,7 +504,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ @java.lang.Override @@ -564,8 +511,6 @@ public boolean hasCompareDuration() { return compareDuration_ != null; } /** - * - * *
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -590,18 +535,13 @@ public boolean hasCompareDuration() {
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { - return compareDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : compareDuration_; + return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; } /** - * - * *
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -635,8 +575,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
   public static final int FIELD_MASK_FIELD_NUMBER = 7;
   private com.google.protobuf.FieldMask fieldMask_;
   /**
-   *
-   *
    * 
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -644,7 +582,6 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
    * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -652,8 +589,6 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** - * - * *
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -661,7 +596,6 @@ public boolean hasFieldMask() {
    * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return The fieldMask. */ @java.lang.Override @@ -669,8 +603,6 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** - * - * *
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -687,8 +619,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
   public static final int PAGE_TOKEN_FIELD_NUMBER = 8;
   private volatile java.lang.Object pageToken_;
   /**
-   *
-   *
    * 
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -696,7 +626,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
    * 
* * string page_token = 8; - * * @return The pageToken. */ @java.lang.Override @@ -705,15 +634,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -721,15 +649,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 8; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -740,15 +669,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 9; private int pageSize_; /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 9; - * * @return The pageSize. */ @java.lang.Override @@ -757,7 +683,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -769,7 +694,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -813,19 +739,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, orderBy_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getReadTime()); } if (compareDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCompareDuration()); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFieldMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getFieldMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -835,31 +765,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest other = - (com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest other = (com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - if (!getCompareDuration().equals(other.getCompareDuration())) return false; + if (!getCompareDuration() + .equals(other.getCompareDuration())) return false; } if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - if (!getFieldMask().equals(other.getFieldMask())) return false; + if (!getFieldMask() + .equals(other.getFieldMask())) return false; } - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -899,127 +836,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for listing assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListAssetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.class, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.class, com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.newBuilder() @@ -1027,15 +954,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1071,9 +999,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor; } @java.lang.Override @@ -1092,8 +1020,7 @@ public com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest result = - new com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest(this); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest result = new com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.orderBy_ = orderBy_; @@ -1122,39 +1049,38 @@ public com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest)other); } else { super.mergeFrom(other); return this; @@ -1162,8 +1088,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1211,8 +1136,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1224,24 +1148,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1250,25 +1170,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1276,73 +1193,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1350,8 +1254,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1403,13 +1305,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1418,8 +1320,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1471,14 +1371,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1486,8 +1387,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1539,22 +1438,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1606,18 +1503,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1669,16 +1563,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1686,8 +1580,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1712,13 +1604,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 3; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1727,8 +1619,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1753,14 +1643,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1768,8 +1659,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1794,22 +1683,20 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 3; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1834,18 +1721,15 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 3; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1870,16 +1754,16 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 3; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; @@ -1887,13 +1771,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1902,15 +1781,12 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1919,7 +1795,6 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1930,8 +1805,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1955,8 +1828,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1966,7 +1837,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 4;
      */
-    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1977,8 +1849,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1992,7 +1862,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -2004,8 +1874,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2027,8 +1895,6 @@ public Builder clearReadTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2039,13 +1905,11 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-
+      
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2059,12 +1923,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2075,17 +1938,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(), getParentForChildren(), isClean());
+        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(),
+                getParentForChildren(),
+                isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -2093,13 +1953,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private com.google.protobuf.Duration compareDuration_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        compareDurationBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> compareDurationBuilder_;
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2124,15 +1979,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; } /** - * - * *
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2157,21 +2009,16 @@ public boolean hasCompareDuration() {
      * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { - return compareDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : compareDuration_; + return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; } else { return compareDurationBuilder_.getMessage(); } } /** - * - * *
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2211,8 +2058,6 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2238,7 +2083,8 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration compare_duration = 5;
      */
-    public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setCompareDuration(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (compareDurationBuilder_ == null) {
         compareDuration_ = builderForValue.build();
         onChanged();
@@ -2249,8 +2095,6 @@ public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2280,9 +2124,7 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       if (compareDurationBuilder_ == null) {
         if (compareDuration_ != null) {
           compareDuration_ =
-              com.google.protobuf.Duration.newBuilder(compareDuration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(compareDuration_).mergeFrom(value).buildPartial();
         } else {
           compareDuration_ = value;
         }
@@ -2294,8 +2136,6 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2333,8 +2173,6 @@ public Builder clearCompareDuration() {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2361,13 +2199,11 @@ public Builder clearCompareDuration() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
-
+      
       onChanged();
       return getCompareDurationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2397,14 +2233,11 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
       if (compareDurationBuilder_ != null) {
         return compareDurationBuilder_.getMessageOrBuilder();
       } else {
-        return compareDuration_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : compareDuration_;
+        return compareDuration_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : compareDuration_;
       }
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2431,17 +2264,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getCompareDurationFieldBuilder() {
       if (compareDurationBuilder_ == null) {
-        compareDurationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getCompareDuration(), getParentForChildren(), isClean());
+        compareDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getCompareDuration(),
+                getParentForChildren(),
+                isClean());
         compareDuration_ = null;
       }
       return compareDurationBuilder_;
@@ -2449,13 +2279,8 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
 
     private com.google.protobuf.FieldMask fieldMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
-        fieldMaskBuilder_;
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> fieldMaskBuilder_;
     /**
-     *
-     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2463,15 +2288,12 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** - * - * *
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2479,7 +2301,6 @@ public boolean hasFieldMask() {
      * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -2490,8 +2311,6 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** - * - * *
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2514,8 +2333,6 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2524,7 +2341,8 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask field_mask = 7;
      */
-    public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setFieldMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (fieldMaskBuilder_ == null) {
         fieldMask_ = builderForValue.build();
         onChanged();
@@ -2535,8 +2353,6 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2549,7 +2365,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       if (fieldMaskBuilder_ == null) {
         if (fieldMask_ != null) {
           fieldMask_ =
-              com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
         } else {
           fieldMask_ = value;
         }
@@ -2561,8 +2377,6 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2583,8 +2397,6 @@ public Builder clearFieldMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2594,13 +2406,11 @@ public Builder clearFieldMask() {
      * .google.protobuf.FieldMask field_mask = 7;
      */
     public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() {
-
+      
       onChanged();
       return getFieldMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2613,12 +2423,11 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
       if (fieldMaskBuilder_ != null) {
         return fieldMaskBuilder_.getMessageOrBuilder();
       } else {
-        return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
+        return fieldMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
       }
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2628,17 +2437,14 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * .google.protobuf.FieldMask field_mask = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getFieldMaskFieldBuilder() {
       if (fieldMaskBuilder_ == null) {
-        fieldMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getFieldMask(), getParentForChildren(), isClean());
+        fieldMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getFieldMask(),
+                getParentForChildren(),
+                isClean());
         fieldMask_ = null;
       }
       return fieldMaskBuilder_;
@@ -2646,8 +2452,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
 
     private java.lang.Object pageToken_ = "";
     /**
-     *
-     *
      * 
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2655,13 +2459,13 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * 
* * string page_token = 8; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2670,8 +2474,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2679,14 +2481,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 8; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2694,8 +2497,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2703,22 +2504,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 8; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2726,18 +2525,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 8; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2745,32 +2541,29 @@ public Builder clearPageToken() {
      * 
* * string page_token = 8; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; - * * @return The pageSize. */ @java.lang.Override @@ -2778,45 +2571,39 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2826,12 +2613,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) private static final com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest(); } @@ -2840,16 +2627,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2864,4 +2651,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java similarity index 92% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java index 77cd76c82..77453a355 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface ListAssetsRequestOrBuilder - extends +public interface ListAssetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -110,13 +83,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -168,14 +138,12 @@ public interface ListAssetsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -200,13 +168,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * string order_by = 3; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -231,14 +196,12 @@ public interface ListAssetsRequestOrBuilder
    * 
* * string order_by = 3; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -247,13 +210,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -262,13 +222,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -281,8 +238,6 @@ public interface ListAssetsRequestOrBuilder
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -307,13 +262,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** - * - * *
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -338,13 +290,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** - * - * *
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -373,8 +322,6 @@ public interface ListAssetsRequestOrBuilder
   com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
 
   /**
-   *
-   *
    * 
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -382,13 +329,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** - * - * *
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -396,13 +340,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** - * - * *
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -414,8 +355,6 @@ public interface ListAssetsRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -423,13 +362,10 @@ public interface ListAssetsRequestOrBuilder
    * 
* * string page_token = 8; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -437,21 +373,18 @@ public interface ListAssetsRequestOrBuilder
    * 
* * string page_token = 8; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 9; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java similarity index 63% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java index 1409d9a20..326322b26 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Response message for listing assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListAssetsResponse} */ -public final class ListAssetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAssetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) ListAssetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAssetsResponse.newBuilder() to construct. private ListAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAssetsResponse() { listAssetsResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListAssetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAssetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAssetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,56 +55,46 @@ private ListAssetsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - listAssetsResults_ = - new java.util.ArrayList< - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse - .ListAssetsResult>(); - mutable_bitField0_ |= 0x00000001; - } - listAssetsResults_.add( - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - .parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + listAssetsResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; + listAssetsResults_.add( + input.readMessage(com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 32: - { - totalSize_ = input.readInt32(); - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 32: { + + totalSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -129,7 +102,8 @@ private ListAssetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { listAssetsResults_ = java.util.Collections.unmodifiableList(listAssetsResults_); @@ -138,54 +112,42 @@ private ListAssetsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.class, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.class, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.Builder.class); } - public interface ListAssetsResultOrBuilder - extends + public interface ListAssetsResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset asset = 1; - * * @return Whether the asset field is set. */ boolean hasAsset(); /** - * - * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset asset = 1; - * * @return The asset. */ com.google.cloud.securitycenter.v1p1beta1.Asset getAsset(); /** - * - * *
      * Asset matching the search request.
      * 
@@ -195,69 +157,56 @@ public interface ListAssetsResultOrBuilder com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder getAssetOrBuilder(); /** - * - * *
      * State change of the asset between the points in time.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * @return The enum numeric value on the wire for stateChange. */ int getStateChangeValue(); /** - * - * *
      * State change of the asset between the points in time.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * @return The stateChange. */ - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange - getStateChange(); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange getStateChange(); } /** - * - * *
    * Result containing the Asset and its State.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult} */ - public static final class ListAssetsResult extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ListAssetsResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) ListAssetsResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAssetsResult.newBuilder() to construct. private ListAssetsResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAssetsResult() { stateChange_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAssetsResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAssetsResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -276,37 +225,32 @@ private ListAssetsResult( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1p1beta1.Asset.Builder subBuilder = null; - if (asset_ != null) { - subBuilder = asset_.toBuilder(); - } - asset_ = - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.Asset.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(asset_); - asset_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1p1beta1.Asset.Builder subBuilder = null; + if (asset_ != null) { + subBuilder = asset_.toBuilder(); } - case 16: - { - int rawValue = input.readEnum(); - - stateChange_ = rawValue; - break; + asset_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Asset.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(asset_); + asset_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 16: { + int rawValue = input.readEnum(); + + stateChange_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -314,32 +258,27 @@ private ListAssetsResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.class, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder - .class); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.class, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder.class); } /** - * - * *
      * The change in state of the asset.
      * When querying across two points in time this describes
@@ -348,13 +287,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * will be: UNUSED
      * 
* - * Protobuf enum {@code - * google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange} + * Protobuf enum {@code google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange} */ - public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { + public enum StateChange + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * State change is unused, this is the canonical default for this enum.
        * 
@@ -363,8 +300,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ UNUSED(0), /** - * - * *
        * Asset was added between the points in time.
        * 
@@ -373,8 +308,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ ADDED(1), /** - * - * *
        * Asset was removed between the points in time.
        * 
@@ -383,8 +316,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ REMOVED(2), /** - * - * *
        * Asset was present at both point(s) in time.
        * 
@@ -396,8 +327,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * State change is unused, this is the canonical default for this enum.
        * 
@@ -406,8 +335,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNUSED_VALUE = 0; /** - * - * *
        * Asset was added between the points in time.
        * 
@@ -416,8 +343,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADDED_VALUE = 1; /** - * - * *
        * Asset was removed between the points in time.
        * 
@@ -426,8 +351,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REMOVED_VALUE = 2; /** - * - * *
        * Asset was present at both point(s) in time.
        * 
@@ -436,6 +359,7 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -460,54 +384,50 @@ public static StateChange valueOf(int value) { */ public static StateChange forNumber(int value) { switch (value) { - case 0: - return UNUSED; - case 1: - return ADDED; - case 2: - return REMOVED; - case 3: - return ACTIVE; - default: - return null; + case 0: return UNUSED; + case 1: return ADDED; + case 2: return REMOVED; + case 3: return ACTIVE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + StateChange> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StateChange findValueByNumber(int number) { + return StateChange.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StateChange findValueByNumber(int number) { - return StateChange.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - .getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.getDescriptor().getEnumTypes().get(0); } private static final StateChange[] VALUES = values(); - public static StateChange valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static StateChange valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -527,14 +447,11 @@ private StateChange(int value) { public static final int ASSET_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1p1beta1.Asset asset_; /** - * - * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset asset = 1; - * * @return Whether the asset field is set. */ @java.lang.Override @@ -542,25 +459,18 @@ public boolean hasAsset() { return asset_ != null; } /** - * - * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset asset = 1; - * * @return The asset. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset getAsset() { - return asset_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Asset.getDefaultInstance() - : asset_; + return asset_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.getDefaultInstance() : asset_; } /** - * - * *
      * Asset matching the search request.
      * 
@@ -575,51 +485,31 @@ public com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder getAssetOrBuilde public static final int STATE_CHANGE_FIELD_NUMBER = 2; private int stateChange_; /** - * - * *
      * State change of the asset between the points in time.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * @return The enum numeric value on the wire for stateChange. */ - @java.lang.Override - public int getStateChangeValue() { + @java.lang.Override public int getStateChangeValue() { return stateChange_; } /** - * - * *
      * State change of the asset between the points in time.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * @return The stateChange. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange - getStateChange() { + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange getStateChange() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange - result = - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - .StateChange.valueOf(stateChange_); - return result == null - ? com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - .StateChange.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange result = com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange.valueOf(stateChange_); + return result == null ? com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -631,14 +521,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (asset_ != null) { output.writeMessage(1, getAsset()); } - if (stateChange_ - != com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - .StateChange.UNUSED - .getNumber()) { + if (stateChange_ != com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange.UNUSED.getNumber()) { output.writeEnum(2, stateChange_); } unknownFields.writeTo(output); @@ -651,13 +539,12 @@ public int getSerializedSize() { size = 0; if (asset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAsset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAsset()); } - if (stateChange_ - != com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - .StateChange.UNUSED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, stateChange_); + if (stateChange_ != com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange.UNUSED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, stateChange_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -667,19 +554,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult)) { + if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult other = - (com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) obj; + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult other = (com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) obj; if (hasAsset() != other.hasAsset()) return false; if (hasAsset()) { - if (!getAsset().equals(other.getAsset())) return false; + if (!getAsset() + .equals(other.getAsset())) return false; } if (stateChange_ != other.stateChange_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -704,101 +589,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -808,51 +680,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Result containing the Asset and its State.
      * 
* - * Protobuf type {@code - * google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult} + * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.class, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - .Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.class, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.newBuilder() + // Construct using com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -868,22 +733,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult build() { - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult result = - buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -891,10 +753,8 @@ public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsRe } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult result = - new com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult(this); + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult result = new com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult(this); if (assetBuilder_ == null) { result.asset_ = asset_; } else { @@ -909,56 +769,46 @@ public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) { - return mergeFrom( - (com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) - other); + if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) { + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult other) { + if (other == com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.getDefaultInstance()) return this; if (other.hasAsset()) { mergeAsset(other.getAsset()); } @@ -980,14 +830,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - parsedMessage = null; + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -999,47 +846,34 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1p1beta1.Asset asset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Asset, - com.google.cloud.securitycenter.v1p1beta1.Asset.Builder, - com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder> - assetBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Asset, com.google.cloud.securitycenter.v1p1beta1.Asset.Builder, com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder> assetBuilder_; /** - * - * *
        * Asset matching the search request.
        * 
* * .google.cloud.securitycenter.v1p1beta1.Asset asset = 1; - * * @return Whether the asset field is set. */ public boolean hasAsset() { return assetBuilder_ != null || asset_ != null; } /** - * - * *
        * Asset matching the search request.
        * 
* * .google.cloud.securitycenter.v1p1beta1.Asset asset = 1; - * * @return The asset. */ public com.google.cloud.securitycenter.v1p1beta1.Asset getAsset() { if (assetBuilder_ == null) { - return asset_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Asset.getDefaultInstance() - : asset_; + return asset_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.getDefaultInstance() : asset_; } else { return assetBuilder_.getMessage(); } } /** - * - * *
        * Asset matching the search request.
        * 
@@ -1060,8 +894,6 @@ public Builder setAsset(com.google.cloud.securitycenter.v1p1beta1.Asset value) { return this; } /** - * - * *
        * Asset matching the search request.
        * 
@@ -1080,8 +912,6 @@ public Builder setAsset( return this; } /** - * - * *
        * Asset matching the search request.
        * 
@@ -1092,9 +922,7 @@ public Builder mergeAsset(com.google.cloud.securitycenter.v1p1beta1.Asset value) if (assetBuilder_ == null) { if (asset_ != null) { asset_ = - com.google.cloud.securitycenter.v1p1beta1.Asset.newBuilder(asset_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.Asset.newBuilder(asset_).mergeFrom(value).buildPartial(); } else { asset_ = value; } @@ -1106,8 +934,6 @@ public Builder mergeAsset(com.google.cloud.securitycenter.v1p1beta1.Asset value) return this; } /** - * - * *
        * Asset matching the search request.
        * 
@@ -1126,8 +952,6 @@ public Builder clearAsset() { return this; } /** - * - * *
        * Asset matching the search request.
        * 
@@ -1135,13 +959,11 @@ public Builder clearAsset() { * .google.cloud.securitycenter.v1p1beta1.Asset asset = 1; */ public com.google.cloud.securitycenter.v1p1beta1.Asset.Builder getAssetBuilder() { - + onChanged(); return getAssetFieldBuilder().getBuilder(); } /** - * - * *
        * Asset matching the search request.
        * 
@@ -1152,14 +974,11 @@ public com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder getAssetOrBuilde if (assetBuilder_ != null) { return assetBuilder_.getMessageOrBuilder(); } else { - return asset_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Asset.getDefaultInstance() - : asset_; + return asset_ == null ? + com.google.cloud.securitycenter.v1p1beta1.Asset.getDefaultInstance() : asset_; } } /** - * - * *
        * Asset matching the search request.
        * 
@@ -1167,17 +986,14 @@ public com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder getAssetOrBuilde * .google.cloud.securitycenter.v1p1beta1.Asset asset = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Asset, - com.google.cloud.securitycenter.v1p1beta1.Asset.Builder, - com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.Asset, com.google.cloud.securitycenter.v1p1beta1.Asset.Builder, com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder> getAssetFieldBuilder() { if (assetBuilder_ == null) { - assetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Asset, - com.google.cloud.securitycenter.v1p1beta1.Asset.Builder, - com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder>( - getAsset(), getParentForChildren(), isClean()); + assetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Asset, com.google.cloud.securitycenter.v1p1beta1.Asset.Builder, com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder>( + getAsset(), + getParentForChildren(), + isClean()); asset_ = null; } return assetBuilder_; @@ -1185,114 +1001,77 @@ public com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder getAssetOrBuilde private int stateChange_ = 0; /** - * - * *
        * State change of the asset between the points in time.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * @return The enum numeric value on the wire for stateChange. */ - @java.lang.Override - public int getStateChangeValue() { + @java.lang.Override public int getStateChangeValue() { return stateChange_; } /** - * - * *
        * State change of the asset between the points in time.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * @param value The enum numeric value on the wire for stateChange to set. * @return This builder for chaining. */ public Builder setStateChangeValue(int value) { - + stateChange_ = value; onChanged(); return this; } /** - * - * *
        * State change of the asset between the points in time.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * @return The stateChange. */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - .StateChange - getStateChange() { + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange getStateChange() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange - result = - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - .StateChange.valueOf(stateChange_); - return result == null - ? com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - .StateChange.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange result = com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange.valueOf(stateChange_); + return result == null ? com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange.UNRECOGNIZED : result; } /** - * - * *
        * State change of the asset between the points in time.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * @param value The stateChange to set. * @return This builder for chaining. */ - public Builder setStateChange( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange - value) { + public Builder setStateChange(com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange value) { if (value == null) { throw new NullPointerException(); } - + stateChange_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * State change of the asset between the points in time.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; * @return This builder for chaining. */ public Builder clearStateChange() { - + stateChange_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1305,34 +1084,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) - private static final com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse - .ListAssetsResult - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult(); + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult(); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1344,111 +1119,80 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int LIST_ASSETS_RESULTS_FIELD_NUMBER = 1; - private java.util.List< - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult> - listAssetsResults_; + private java.util.List listAssetsResults_; /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ @java.lang.Override - public java.util.List< - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult> - getListAssetsResultsList() { + public java.util.List getListAssetsResultsList() { return listAssetsResults_; } /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse - .ListAssetsResultOrBuilder> + public java.util.List getListAssetsResultsOrBuilderList() { return listAssetsResults_; } /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ @java.lang.Override public int getListAssetsResultsCount() { return listAssetsResults_.size(); } /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - getListAssetsResults(int index) { + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult getListAssetsResults(int index) { return listAssetsResults_.get(index); } /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder - getListAssetsResultsOrBuilder(int index) { + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder( + int index) { return listAssetsResults_.get(index); } public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -1456,14 +1200,11 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ @java.lang.Override @@ -1471,8 +1212,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used for executing the list request.
    * 
@@ -1487,15 +1226,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -1504,30 +1240,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1538,14 +1274,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_; /** - * - * *
    * The total number of assets matching the query.
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -1554,7 +1287,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1566,7 +1298,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < listAssetsResults_.size(); i++) { output.writeMessage(1, listAssetsResults_.get(i)); } @@ -1589,17 +1322,19 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < listAssetsResults_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, listAssetsResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, listAssetsResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1609,21 +1344,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse other = - (com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) obj; + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse other = (com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) obj; - if (!getListAssetsResultsList().equals(other.getListAssetsResultsList())) return false; + if (!getListAssetsResultsList() + .equals(other.getListAssetsResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1653,127 +1391,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for listing assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListAssetsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.class, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.class, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.newBuilder() @@ -1781,17 +1509,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getListAssetsResultsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1815,14 +1543,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.getDefaultInstance(); } @@ -1837,8 +1564,7 @@ public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse result = - new com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse(this); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse result = new com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse(this); int from_bitField0_ = bitField0_; if (listAssetsResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1864,39 +1590,38 @@ public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse)other); } else { super.mergeFrom(other); return this; @@ -1904,9 +1629,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.getDefaultInstance()) return this; if (listAssetsResultsBuilder_ == null) { if (!other.listAssetsResults_.isEmpty()) { if (listAssetsResults_.isEmpty()) { @@ -1925,10 +1648,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListAssetsRes listAssetsResultsBuilder_ = null; listAssetsResults_ = other.listAssetsResults_; bitField0_ = (bitField0_ & ~0x00000001); - listAssetsResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getListAssetsResultsFieldBuilder() - : null; + listAssetsResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getListAssetsResultsFieldBuilder() : null; } else { listAssetsResultsBuilder_.addAllMessages(other.listAssetsResults_); } @@ -1963,8 +1685,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1973,43 +1694,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List< - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult> - listAssetsResults_ = java.util.Collections.emptyList(); - + private java.util.List listAssetsResults_ = + java.util.Collections.emptyList(); private void ensureListAssetsResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - listAssetsResults_ = - new java.util.ArrayList< - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult>( - listAssetsResults_); + listAssetsResults_ = new java.util.ArrayList(listAssetsResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder> - listAssetsResultsBuilder_; + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder> listAssetsResultsBuilder_; /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public java.util.List< - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult> - getListAssetsResultsList() { + public java.util.List getListAssetsResultsList() { if (listAssetsResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(listAssetsResults_); } else { @@ -2017,15 +1723,11 @@ private void ensureListAssetsResultsIsMutable() { } } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public int getListAssetsResultsCount() { if (listAssetsResultsBuilder_ == null) { @@ -2035,18 +1737,13 @@ public int getListAssetsResultsCount() { } } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - getListAssetsResults(int index) { + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult getListAssetsResults(int index) { if (listAssetsResultsBuilder_ == null) { return listAssetsResults_.get(index); } else { @@ -2054,19 +1751,14 @@ public int getListAssetsResultsCount() { } } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder setListAssetsResults( - int index, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult value) { + int index, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult value) { if (listAssetsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2080,20 +1772,14 @@ public Builder setListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder setListAssetsResults( - int index, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder - builderForValue) { + int index, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder builderForValue) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); listAssetsResults_.set(index, builderForValue.build()); @@ -2104,18 +1790,13 @@ public Builder setListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public Builder addListAssetsResults( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult value) { + public Builder addListAssetsResults(com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult value) { if (listAssetsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2129,19 +1810,14 @@ public Builder addListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder addListAssetsResults( - int index, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult value) { + int index, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult value) { if (listAssetsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2155,19 +1831,14 @@ public Builder addListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder addListAssetsResults( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder - builderForValue) { + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder builderForValue) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); listAssetsResults_.add(builderForValue.build()); @@ -2178,20 +1849,14 @@ public Builder addListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder addListAssetsResults( - int index, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder - builderForValue) { + int index, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder builderForValue) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); listAssetsResults_.add(index, builderForValue.build()); @@ -2202,24 +1867,18 @@ public Builder addListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder addAllListAssetsResults( - java.lang.Iterable< - ? extends - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult> - values) { + java.lang.Iterable values) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listAssetsResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, listAssetsResults_); onChanged(); } else { listAssetsResultsBuilder_.addAllMessages(values); @@ -2227,15 +1886,11 @@ public Builder addAllListAssetsResults( return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder clearListAssetsResults() { if (listAssetsResultsBuilder_ == null) { @@ -2248,15 +1903,11 @@ public Builder clearListAssetsResults() { return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ public Builder removeListAssetsResults(int index) { if (listAssetsResultsBuilder_ == null) { @@ -2269,55 +1920,39 @@ public Builder removeListAssetsResults(int index) { return this; } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder - getListAssetsResultsBuilder(int index) { + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder getListAssetsResultsBuilder( + int index) { return getListAssetsResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder - getListAssetsResultsOrBuilder(int index) { + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder( + int index) { if (listAssetsResultsBuilder_ == null) { - return listAssetsResults_.get(index); - } else { + return listAssetsResults_.get(index); } else { return listAssetsResultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public java.util.List< - ? extends - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse - .ListAssetsResultOrBuilder> - getListAssetsResultsOrBuilderList() { + public java.util.List + getListAssetsResultsOrBuilderList() { if (listAssetsResultsBuilder_ != null) { return listAssetsResultsBuilder_.getMessageOrBuilderList(); } else { @@ -2325,72 +1960,45 @@ public Builder removeListAssetsResults(int index) { } } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder - addListAssetsResultsBuilder() { - return getListAssetsResultsFieldBuilder() - .addBuilder( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - .getDefaultInstance()); + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder addListAssetsResultsBuilder() { + return getListAssetsResultsFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.getDefaultInstance()); } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder - addListAssetsResultsBuilder(int index) { - return getListAssetsResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - .getDefaultInstance()); + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder addListAssetsResultsBuilder( + int index) { + return getListAssetsResultsFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.getDefaultInstance()); } /** - * - * *
      * Assets matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - public java.util.List< - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder> - getListAssetsResultsBuilderList() { + public java.util.List + getListAssetsResultsBuilderList() { return getListAssetsResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder> getListAssetsResultsFieldBuilder() { if (listAssetsResultsBuilder_ == null) { - listAssetsResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - .Builder, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse - .ListAssetsResultOrBuilder>( + listAssetsResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder>( listAssetsResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2402,33 +2010,24 @@ public Builder removeListAssetsResults(int index) { private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -2439,8 +2038,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -2461,15 +2058,14 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -2480,8 +2076,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -2492,7 +2086,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -2504,8 +2098,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -2524,8 +2116,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -2533,13 +2123,11 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -2550,12 +2138,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -2563,17 +2150,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getReadTime(), getParentForChildren(), isClean()); + readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getReadTime(), + getParentForChildren(), + isClean()); readTime_ = null; } return readTimeBuilder_; @@ -2581,21 +2165,19 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -2604,22 +2186,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -2627,79 +2208,69 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of assets matching the query.
      * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -2707,43 +2278,37 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of assets matching the query.
      * 
* * int32 total_size = 4; - * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** - * - * *
      * The total number of assets matching the query.
      * 
* * int32 total_size = 4; - * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2753,13 +2318,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) - private static final com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse(); } @@ -2768,16 +2332,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2792,4 +2356,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponseOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponseOrBuilder.java similarity index 55% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponseOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponseOrBuilder.java index 32908982a..e03b425ef 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponseOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponseOrBuilder.java @@ -1,123 +1,75 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface ListAssetsResponseOrBuilder - extends +public interface ListAssetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - java.util.List + java.util.List getListAssetsResultsList(); /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult - getListAssetsResults(int index); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult getListAssetsResults(int index); /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ int getListAssetsResultsCount(); /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - java.util.List< - ? extends - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse - .ListAssetsResultOrBuilder> + java.util.List getListAssetsResultsOrBuilderList(); /** - * - * *
    * Assets matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; */ - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder - getListAssetsResultsOrBuilder(int index); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder( + int index); /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used for executing the list request.
    * 
@@ -127,41 +79,33 @@ public interface ListAssetsResponseOrBuilder com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of assets matching the query.
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ int getTotalSize(); diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java similarity index 83% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java index 6617dbe52..00568ca0e 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Request message for listing findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListFindingsRequest} */ -public final class ListFindingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) ListFindingsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingsRequest.newBuilder() to construct. private ListFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingsRequest() { parent_ = ""; filter_ = ""; @@ -46,15 +28,16 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,91 +56,81 @@ private ListFindingsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; + orderBy_ = s; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - case 42: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (compareDuration_ != null) { - subBuilder = compareDuration_.toBuilder(); - } - compareDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compareDuration_); - compareDuration_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 42: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); } - case 58: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (fieldMask_ != null) { - subBuilder = fieldMask_.toBuilder(); - } - fieldMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fieldMask_); - fieldMask_ = subBuilder.buildPartial(); - } - - break; + compareDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; + break; + } + case 58: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); } - case 72: - { - pageSize_ = input.readInt32(); - break; + fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 72: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -165,33 +138,29 @@ private ListFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.class, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.class, com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id],
@@ -202,10 +171,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * projects/{projects_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -214,15 +180,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id],
@@ -233,18 +198,17 @@ public java.lang.String getParent() {
    * projects/{projects_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -255,8 +219,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -298,7 +260,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -307,15 +268,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -357,15 +317,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -376,8 +337,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 3; private volatile java.lang.Object orderBy_; /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -399,7 +358,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 3; - * * @return The orderBy. */ @java.lang.Override @@ -408,15 +366,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -438,15 +395,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 3; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -457,8 +415,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int READ_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp readTime_; /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -467,7 +423,6 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -475,8 +430,6 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -485,7 +438,6 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ @java.lang.Override @@ -493,8 +445,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -512,8 +462,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int COMPARE_DURATION_FIELD_NUMBER = 5;
   private com.google.protobuf.Duration compareDuration_;
   /**
-   *
-   *
    * 
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -544,7 +492,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ @java.lang.Override @@ -552,8 +499,6 @@ public boolean hasCompareDuration() { return compareDuration_ != null; } /** - * - * *
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -584,18 +529,13 @@ public boolean hasCompareDuration() {
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { - return compareDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : compareDuration_; + return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; } /** - * - * *
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -635,15 +575,12 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
   public static final int FIELD_MASK_FIELD_NUMBER = 7;
   private com.google.protobuf.FieldMask fieldMask_;
   /**
-   *
-   *
    * 
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -651,15 +588,12 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** - * - * *
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return The fieldMask. */ @java.lang.Override @@ -667,8 +601,6 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** - * - * *
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
@@ -684,8 +616,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
   public static final int PAGE_TOKEN_FIELD_NUMBER = 8;
   private volatile java.lang.Object pageToken_;
   /**
-   *
-   *
    * 
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -693,7 +623,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
    * 
* * string page_token = 8; - * * @return The pageToken. */ @java.lang.Override @@ -702,15 +631,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -718,15 +646,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 8; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -737,15 +666,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 9; private int pageSize_; /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 9; - * * @return The pageSize. */ @java.lang.Override @@ -754,7 +680,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -766,7 +691,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -810,19 +736,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, orderBy_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getReadTime()); } if (compareDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCompareDuration()); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFieldMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getFieldMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -832,31 +762,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest other = - (com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest other = (com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - if (!getCompareDuration().equals(other.getCompareDuration())) return false; + if (!getCompareDuration() + .equals(other.getCompareDuration())) return false; } if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - if (!getFieldMask().equals(other.getFieldMask())) return false; + if (!getFieldMask() + .equals(other.getFieldMask())) return false; } - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -896,127 +833,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for listing findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListFindingsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.class, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.class, com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.newBuilder() @@ -1024,15 +951,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1068,14 +996,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.getDefaultInstance(); } @@ -1090,8 +1017,7 @@ public com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest result = - new com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest(this); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest result = new com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.orderBy_ = orderBy_; @@ -1120,39 +1046,38 @@ public com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest)other); } else { super.mergeFrom(other); return this; @@ -1160,9 +1085,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1210,9 +1133,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1224,8 +1145,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id],
@@ -1236,16 +1155,14 @@ public Builder mergeFrom(
      * projects/{projects_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1254,8 +1171,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id],
@@ -1266,17 +1181,16 @@ public java.lang.String getParent() {
      * projects/{projects_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1284,8 +1198,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id],
@@ -1296,25 +1208,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * projects/{projects_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id],
@@ -1325,21 +1233,16 @@ public Builder setParent(java.lang.String value) {
      * projects/{projects_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id],
@@ -1350,19 +1253,17 @@ public Builder clearParent() {
      * projects/{projects_id}/sources/-
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1370,8 +1271,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1413,13 +1312,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1428,8 +1327,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1471,14 +1368,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1486,8 +1384,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1529,22 +1425,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1586,18 +1480,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1639,16 +1530,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1656,8 +1547,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1679,13 +1568,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 3; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1694,8 +1583,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1717,14 +1604,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1732,8 +1620,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1755,22 +1641,20 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 3; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1792,18 +1676,15 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 3; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1825,16 +1706,16 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 3; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; @@ -1842,13 +1723,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1857,15 +1733,12 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1874,7 +1747,6 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1885,8 +1757,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1910,8 +1780,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1921,7 +1789,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 4;
      */
-    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1932,8 +1801,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1947,7 +1814,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -1959,8 +1826,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1982,8 +1847,6 @@ public Builder clearReadTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1994,13 +1857,11 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-
+      
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -2014,12 +1875,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -2030,17 +1890,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(), getParentForChildren(), isClean());
+        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(),
+                getParentForChildren(),
+                isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -2048,13 +1905,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private com.google.protobuf.Duration compareDuration_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        compareDurationBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> compareDurationBuilder_;
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2085,15 +1937,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; } /** - * - * *
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2124,21 +1973,16 @@ public boolean hasCompareDuration() {
      * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { - return compareDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : compareDuration_; + return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; } else { return compareDurationBuilder_.getMessage(); } } /** - * - * *
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2184,8 +2028,6 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2217,7 +2059,8 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration compare_duration = 5;
      */
-    public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setCompareDuration(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (compareDurationBuilder_ == null) {
         compareDuration_ = builderForValue.build();
         onChanged();
@@ -2228,8 +2071,6 @@ public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2265,9 +2106,7 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       if (compareDurationBuilder_ == null) {
         if (compareDuration_ != null) {
           compareDuration_ =
-              com.google.protobuf.Duration.newBuilder(compareDuration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(compareDuration_).mergeFrom(value).buildPartial();
         } else {
           compareDuration_ = value;
         }
@@ -2279,8 +2118,6 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2324,8 +2161,6 @@ public Builder clearCompareDuration() {
       return this;
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2358,13 +2193,11 @@ public Builder clearCompareDuration() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
-
+      
       onChanged();
       return getCompareDurationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2400,14 +2233,11 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
       if (compareDurationBuilder_ != null) {
         return compareDurationBuilder_.getMessageOrBuilder();
       } else {
-        return compareDuration_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : compareDuration_;
+        return compareDuration_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : compareDuration_;
       }
     }
     /**
-     *
-     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2440,17 +2270,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getCompareDurationFieldBuilder() {
       if (compareDurationBuilder_ == null) {
-        compareDurationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getCompareDuration(), getParentForChildren(), isClean());
+        compareDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getCompareDuration(),
+                getParentForChildren(),
+                isClean());
         compareDuration_ = null;
       }
       return compareDurationBuilder_;
@@ -2458,35 +2285,26 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
 
     private com.google.protobuf.FieldMask fieldMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
-        fieldMaskBuilder_;
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> fieldMaskBuilder_;
     /**
-     *
-     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** - * - * *
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -2497,8 +2315,6 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** - * - * *
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2520,8 +2336,6 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2529,7 +2343,8 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask field_mask = 7;
      */
-    public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setFieldMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (fieldMaskBuilder_ == null) {
         fieldMask_ = builderForValue.build();
         onChanged();
@@ -2540,8 +2355,6 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2553,7 +2366,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       if (fieldMaskBuilder_ == null) {
         if (fieldMask_ != null) {
           fieldMask_ =
-              com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
         } else {
           fieldMask_ = value;
         }
@@ -2565,8 +2378,6 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2586,8 +2397,6 @@ public Builder clearFieldMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2596,13 +2405,11 @@ public Builder clearFieldMask() {
      * .google.protobuf.FieldMask field_mask = 7;
      */
     public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() {
-
+      
       onChanged();
       return getFieldMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2614,12 +2421,11 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
       if (fieldMaskBuilder_ != null) {
         return fieldMaskBuilder_.getMessageOrBuilder();
       } else {
-        return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
+        return fieldMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
       }
     }
     /**
-     *
-     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2628,17 +2434,14 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * .google.protobuf.FieldMask field_mask = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getFieldMaskFieldBuilder() {
       if (fieldMaskBuilder_ == null) {
-        fieldMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getFieldMask(), getParentForChildren(), isClean());
+        fieldMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getFieldMask(),
+                getParentForChildren(),
+                isClean());
         fieldMask_ = null;
       }
       return fieldMaskBuilder_;
@@ -2646,8 +2449,6 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
 
     private java.lang.Object pageToken_ = "";
     /**
-     *
-     *
      * 
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -2655,13 +2456,13 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * 
* * string page_token = 8; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2670,8 +2471,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -2679,14 +2478,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 8; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2694,8 +2494,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -2703,22 +2501,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 8; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -2726,18 +2522,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 8; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -2745,32 +2538,29 @@ public Builder clearPageToken() {
      * 
* * string page_token = 8; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; - * * @return The pageSize. */ @java.lang.Override @@ -2778,45 +2568,39 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2826,13 +2610,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest(); } @@ -2841,16 +2624,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2865,4 +2648,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java similarity index 91% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java index a715d53b6..06c40f4dd 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface ListFindingsRequestOrBuilder - extends +public interface ListFindingsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id],
@@ -36,16 +18,11 @@ public interface ListFindingsRequestOrBuilder
    * projects/{projects_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id],
@@ -56,17 +33,13 @@ public interface ListFindingsRequestOrBuilder
    * projects/{projects_id}/sources/-
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -108,13 +81,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -156,14 +126,12 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -185,13 +153,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string order_by = 3; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -213,14 +178,12 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string order_by = 3; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -229,13 +192,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -244,13 +204,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * .google.protobuf.Timestamp read_time = 4; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -263,8 +220,6 @@ public interface ListFindingsRequestOrBuilder
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -295,13 +250,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** - * - * *
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -332,13 +284,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * .google.protobuf.Duration compare_duration = 5; - * * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** - * - * *
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -373,34 +322,26 @@ public interface ListFindingsRequestOrBuilder
   com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
 
   /**
-   *
-   *
    * 
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** - * - * *
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* * .google.protobuf.FieldMask field_mask = 7; - * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** - * - * *
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
@@ -411,8 +352,6 @@ public interface ListFindingsRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -420,13 +359,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string page_token = 8; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -434,21 +370,18 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string page_token = 8; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 9; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java similarity index 66% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java index 792441cf8..90c0fac99 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Response message for listing findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListFindingsResponse} */ -public final class ListFindingsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) ListFindingsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingsResponse.newBuilder() to construct. private ListFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingsResponse() { listFindingsResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,56 +55,46 @@ private ListFindingsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - listFindingsResults_ = - new java.util.ArrayList< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse - .ListFindingsResult>(); - mutable_bitField0_ |= 0x00000001; - } - listFindingsResults_.add( - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse - .ListFindingsResult.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + listFindingsResults_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; + listFindingsResults_.add( + input.readMessage(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.parser(), extensionRegistry)); + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); } - case 32: - { - totalSize_ = input.readInt32(); - break; + readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 32: { + + totalSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -129,7 +102,8 @@ private ListFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { listFindingsResults_ = java.util.Collections.unmodifiableList(listFindingsResults_); @@ -138,54 +112,42 @@ private ListFindingsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.class, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.class, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.Builder.class); } - public interface ListFindingsResultOrBuilder - extends + public interface ListFindingsResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Finding matching the search request.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1; - * * @return Whether the finding field is set. */ boolean hasFinding(); /** - * - * *
      * Finding matching the search request.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1; - * * @return The finding. */ com.google.cloud.securitycenter.v1p1beta1.Finding getFinding(); /** - * - * *
      * Finding matching the search request.
      * 
@@ -195,114 +157,83 @@ public interface ListFindingsResultOrBuilder com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder(); /** - * - * *
      * State change of the finding between the points in time.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * @return The enum numeric value on the wire for stateChange. */ int getStateChangeValue(); /** - * - * *
      * State change of the finding between the points in time.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * @return The stateChange. */ - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange - getStateChange(); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange getStateChange(); /** - * - * *
      * Output only. Resource that is associated with this finding.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
      * Output only. Resource that is associated with this finding.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The resource. */ - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource - getResource(); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource getResource(); /** - * - * *
      * Output only. Resource that is associated with this finding.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .ResourceOrBuilder - getResourceOrBuilder(); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder getResourceOrBuilder(); } /** - * - * *
    * Result containing the Finding and its StateChange.
    * 
* - * Protobuf type {@code - * google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult} + * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult} */ - public static final class ListFindingsResult extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ListFindingsResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) ListFindingsResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingsResult.newBuilder() to construct. private ListFindingsResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingsResult() { stateChange_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingsResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -321,57 +252,45 @@ private ListFindingsResult( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1p1beta1.Finding.Builder subBuilder = null; - if (finding_ != null) { - subBuilder = finding_.toBuilder(); - } - finding_ = - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.Finding.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(finding_); - finding_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1p1beta1.Finding.Builder subBuilder = null; + if (finding_ != null) { + subBuilder = finding_.toBuilder(); } - case 16: - { - int rawValue = input.readEnum(); - - stateChange_ = rawValue; - break; + finding_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Finding.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finding_); + finding_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource.Builder - subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse - .ListFindingsResult.Resource.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - break; + break; + } + case 16: { + int rawValue = input.readEnum(); + + stateChange_ = rawValue; + break; + } + case 26: { + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + resource_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -379,33 +298,27 @@ private ListFindingsResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .class, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.class, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder.class); } /** - * - * *
      * The change in state of the finding.
      * When querying across two points in time this describes
@@ -416,13 +329,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * supplied in the request the state change will be: UNUSED
      * 
* - * Protobuf enum {@code - * google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange} + * Protobuf enum {@code google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange} */ - public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { + public enum StateChange + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * State change is unused, this is the canonical default for this enum.
        * 
@@ -431,8 +342,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ UNUSED(0), /** - * - * *
        * The finding has changed state in some way between the points in time
        * and existed at both points.
@@ -442,8 +351,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum {
        */
       CHANGED(1),
       /**
-       *
-       *
        * 
        * The finding has not changed state between the points in time and
        * existed at both points.
@@ -453,8 +360,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum {
        */
       UNCHANGED(2),
       /**
-       *
-       *
        * 
        * The finding was created between the points in time.
        * 
@@ -463,8 +368,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ ADDED(3), /** - * - * *
        * The finding at timestamp does not match the filter specified, but it
        * did at timestamp - compare_duration.
@@ -477,8 +380,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * State change is unused, this is the canonical default for this enum.
        * 
@@ -487,8 +388,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNUSED_VALUE = 0; /** - * - * *
        * The finding has changed state in some way between the points in time
        * and existed at both points.
@@ -498,8 +397,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int CHANGED_VALUE = 1;
       /**
-       *
-       *
        * 
        * The finding has not changed state between the points in time and
        * existed at both points.
@@ -509,8 +406,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int UNCHANGED_VALUE = 2;
       /**
-       *
-       *
        * 
        * The finding was created between the points in time.
        * 
@@ -519,8 +414,6 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADDED_VALUE = 3; /** - * - * *
        * The finding at timestamp does not match the filter specified, but it
        * did at timestamp - compare_duration.
@@ -530,6 +423,7 @@ public enum StateChange implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int REMOVED_VALUE = 4;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -554,56 +448,51 @@ public static StateChange valueOf(int value) {
        */
       public static StateChange forNumber(int value) {
         switch (value) {
-          case 0:
-            return UNUSED;
-          case 1:
-            return CHANGED;
-          case 2:
-            return UNCHANGED;
-          case 3:
-            return ADDED;
-          case 4:
-            return REMOVED;
-          default:
-            return null;
+          case 0: return UNUSED;
+          case 1: return CHANGED;
+          case 2: return UNCHANGED;
+          case 3: return ADDED;
+          case 4: return REMOVED;
+          default: return null;
         }
       }
 
-      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+      public static com.google.protobuf.Internal.EnumLiteMap
+          internalGetValueMap() {
         return internalValueMap;
       }
+      private static final com.google.protobuf.Internal.EnumLiteMap<
+          StateChange> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public StateChange findValueByNumber(int number) {
+                return StateChange.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public StateChange findValueByNumber(int number) {
-              return StateChange.forNumber(number);
-            }
-          };
-
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor
+          getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-
-      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+      public final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptorForType() {
         return getDescriptor();
       }
-
-      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-        return com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult
-            .getDescriptor()
-            .getEnumTypes()
-            .get(0);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final StateChange[] VALUES = values();
 
-      public static StateChange valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static StateChange valueOf(
+          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException(
+            "EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -620,141 +509,113 @@ private StateChange(int value) {
       // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange)
     }
 
-    public interface ResourceOrBuilder
-        extends
+    public interface ResourceOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource)
         com.google.protobuf.MessageOrBuilder {
 
       /**
-       *
-       *
        * 
        * The full resource name of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
        * The full resource name of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
        * The full resource name of project that the resource belongs to.
        * 
* * string project_name = 2; - * * @return The projectName. */ java.lang.String getProjectName(); /** - * - * *
        * The full resource name of project that the resource belongs to.
        * 
* * string project_name = 2; - * * @return The bytes for projectName. */ - com.google.protobuf.ByteString getProjectNameBytes(); + com.google.protobuf.ByteString + getProjectNameBytes(); /** - * - * *
        * The human readable name of project that the resource belongs to.
        * 
* * string project_display_name = 3; - * * @return The projectDisplayName. */ java.lang.String getProjectDisplayName(); /** - * - * *
        * The human readable name of project that the resource belongs to.
        * 
* * string project_display_name = 3; - * * @return The bytes for projectDisplayName. */ - com.google.protobuf.ByteString getProjectDisplayNameBytes(); + com.google.protobuf.ByteString + getProjectDisplayNameBytes(); /** - * - * *
        * The full resource name of resource's parent.
        * 
* * string parent_name = 4; - * * @return The parentName. */ java.lang.String getParentName(); /** - * - * *
        * The full resource name of resource's parent.
        * 
* * string parent_name = 4; - * * @return The bytes for parentName. */ - com.google.protobuf.ByteString getParentNameBytes(); + com.google.protobuf.ByteString + getParentNameBytes(); /** - * - * *
        * The human readable name of resource's parent.
        * 
* * string parent_display_name = 5; - * * @return The parentDisplayName. */ java.lang.String getParentDisplayName(); /** - * - * *
        * The human readable name of resource's parent.
        * 
* * string parent_display_name = 5; - * * @return The bytes for parentDisplayName. */ - com.google.protobuf.ByteString getParentDisplayNameBytes(); + com.google.protobuf.ByteString + getParentDisplayNameBytes(); /** - * - * *
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -763,10 +624,9 @@ public interface ResourceOrBuilder
        *
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
-      java.util.List getFoldersList();
+      java.util.List 
+          getFoldersList();
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -777,8 +637,6 @@ public interface ResourceOrBuilder
        */
       com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index);
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -789,8 +647,6 @@ public interface ResourceOrBuilder
        */
       int getFoldersCount();
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -799,11 +655,9 @@ public interface ResourceOrBuilder
        *
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
-      java.util.List
+      java.util.List 
           getFoldersOrBuilderList();
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -812,29 +666,26 @@ public interface ResourceOrBuilder
        *
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
-      com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder(int index);
+      com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder(
+          int index);
     }
     /**
-     *
-     *
      * 
      * Information related to the Google Cloud resource that is
      * associated with this finding.
      * 
* - * Protobuf type {@code - * google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource} + * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource} */ - public static final class Resource extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Resource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource) ResourceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Resource() { name_ = ""; projectName_ = ""; @@ -846,15 +697,16 @@ private Resource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Resource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Resource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -874,61 +726,52 @@ private Resource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - projectName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + projectName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - projectDisplayName_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + projectDisplayName_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - parentName_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + parentName_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - parentDisplayName_ = s; - break; - } - case 82: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - folders_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - folders_.add( - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.Folder.parser(), - extensionRegistry)); - break; + parentDisplayName_ = s; + break; + } + case 82: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + folders_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + folders_.add( + input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Folder.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -936,8 +779,8 @@ private Resource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { folders_ = java.util.Collections.unmodifiableList(folders_); @@ -946,36 +789,28 @@ private Resource( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource.class, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.class, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
        * The full resource name of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -984,30 +819,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
        * The full resource name of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1018,14 +853,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PROJECT_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object projectName_; /** - * - * *
        * The full resource name of project that the resource belongs to.
        * 
* * string project_name = 2; - * * @return The projectName. */ @java.lang.Override @@ -1034,29 +866,29 @@ public java.lang.String getProjectName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectName_ = s; return s; } } /** - * - * *
        * The full resource name of project that the resource belongs to.
        * 
* * string project_name = 2; - * * @return The bytes for projectName. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectNameBytes() { + public com.google.protobuf.ByteString + getProjectNameBytes() { java.lang.Object ref = projectName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectName_ = b; return b; } else { @@ -1067,14 +899,11 @@ public com.google.protobuf.ByteString getProjectNameBytes() { public static final int PROJECT_DISPLAY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object projectDisplayName_; /** - * - * *
        * The human readable name of project that the resource belongs to.
        * 
* * string project_display_name = 3; - * * @return The projectDisplayName. */ @java.lang.Override @@ -1083,29 +912,29 @@ public java.lang.String getProjectDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectDisplayName_ = s; return s; } } /** - * - * *
        * The human readable name of project that the resource belongs to.
        * 
* * string project_display_name = 3; - * * @return The bytes for projectDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectDisplayNameBytes() { + public com.google.protobuf.ByteString + getProjectDisplayNameBytes() { java.lang.Object ref = projectDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectDisplayName_ = b; return b; } else { @@ -1116,14 +945,11 @@ public com.google.protobuf.ByteString getProjectDisplayNameBytes() { public static final int PARENT_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object parentName_; /** - * - * *
        * The full resource name of resource's parent.
        * 
* * string parent_name = 4; - * * @return The parentName. */ @java.lang.Override @@ -1132,29 +958,29 @@ public java.lang.String getParentName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentName_ = s; return s; } } /** - * - * *
        * The full resource name of resource's parent.
        * 
* * string parent_name = 4; - * * @return The bytes for parentName. */ @java.lang.Override - public com.google.protobuf.ByteString getParentNameBytes() { + public com.google.protobuf.ByteString + getParentNameBytes() { java.lang.Object ref = parentName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentName_ = b; return b; } else { @@ -1165,14 +991,11 @@ public com.google.protobuf.ByteString getParentNameBytes() { public static final int PARENT_DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object parentDisplayName_; /** - * - * *
        * The human readable name of resource's parent.
        * 
* * string parent_display_name = 5; - * * @return The parentDisplayName. */ @java.lang.Override @@ -1181,29 +1004,29 @@ public java.lang.String getParentDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDisplayName_ = s; return s; } } /** - * - * *
        * The human readable name of resource's parent.
        * 
* * string parent_display_name = 5; - * * @return The bytes for parentDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString getParentDisplayNameBytes() { + public com.google.protobuf.ByteString + getParentDisplayNameBytes() { java.lang.Object ref = parentDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentDisplayName_ = b; return b; } else { @@ -1214,8 +1037,6 @@ public com.google.protobuf.ByteString getParentDisplayNameBytes() { public static final int FOLDERS_FIELD_NUMBER = 10; private java.util.List folders_; /** - * - * *
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -1229,8 +1050,6 @@ public java.util.List getFolde
         return folders_;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -1240,13 +1059,11 @@ public java.util.List getFolde
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
       @java.lang.Override
-      public java.util.List
+      public java.util.List 
           getFoldersOrBuilderList() {
         return folders_;
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -1260,8 +1077,6 @@ public int getFoldersCount() {
         return folders_.size();
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -1275,8 +1090,6 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index) {
         return folders_.get(index);
       }
       /**
-       *
-       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -1292,7 +1105,6 @@ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBui
       }
 
       private byte memoizedIsInitialized = -1;
-
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
@@ -1304,7 +1116,8 @@ public final boolean isInitialized() {
       }
 
       @java.lang.Override
-      public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+      public void writeTo(com.google.protobuf.CodedOutputStream output)
+                          throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
         }
@@ -1348,7 +1161,8 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parentDisplayName_);
         }
         for (int i = 0; i < folders_.size(); i++) {
-          size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, folders_.get(i));
+          size += com.google.protobuf.CodedOutputStream
+            .computeMessageSize(10, folders_.get(i));
         }
         size += unknownFields.getSerializedSize();
         memoizedSize = size;
@@ -1358,26 +1172,25 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
-          return true;
+         return true;
         }
-        if (!(obj
-            instanceof
-            com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult
-                .Resource)) {
+        if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource)) {
           return super.equals(obj);
         }
-        com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource
-            other =
-                (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult
-                        .Resource)
-                    obj;
-
-        if (!getName().equals(other.getName())) return false;
-        if (!getProjectName().equals(other.getProjectName())) return false;
-        if (!getProjectDisplayName().equals(other.getProjectDisplayName())) return false;
-        if (!getParentName().equals(other.getParentName())) return false;
-        if (!getParentDisplayName().equals(other.getParentDisplayName())) return false;
-        if (!getFoldersList().equals(other.getFoldersList())) return false;
+        com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource other = (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource) obj;
+
+        if (!getName()
+            .equals(other.getName())) return false;
+        if (!getProjectName()
+            .equals(other.getProjectName())) return false;
+        if (!getProjectDisplayName()
+            .equals(other.getProjectDisplayName())) return false;
+        if (!getParentName()
+            .equals(other.getParentName())) return false;
+        if (!getParentDisplayName()
+            .equals(other.getParentDisplayName())) return false;
+        if (!getFoldersList()
+            .equals(other.getFoldersList())) return false;
         if (!unknownFields.equals(other.unknownFields)) return false;
         return true;
       }
@@ -1408,116 +1221,88 @@ public int hashCode() {
         return hash;
       }
 
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
-              .ListFindingsResult.Resource
-          parseFrom(java.nio.ByteBuffer data)
-              throws com.google.protobuf.InvalidProtocolBufferException {
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
+          java.nio.ByteBuffer data)
+          throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
-
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
-              .ListFindingsResult.Resource
-          parseFrom(
-              java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
+          java.nio.ByteBuffer data,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
-              .ListFindingsResult.Resource
-          parseFrom(com.google.protobuf.ByteString data)
-              throws com.google.protobuf.InvalidProtocolBufferException {
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
+          com.google.protobuf.ByteString data)
+          throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
-
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
-              .ListFindingsResult.Resource
-          parseFrom(
-              com.google.protobuf.ByteString data,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
+          com.google.protobuf.ByteString data,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
-              .ListFindingsResult.Resource
-          parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(byte[] data)
+          throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
-
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
-              .ListFindingsResult.Resource
-          parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
+          byte[] data,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
-              .ListFindingsResult.Resource
-          parseFrom(java.io.InputStream input) throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(java.io.InputStream input)
+          throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3
+            .parseWithIOException(PARSER, input);
       }
-
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
-              .ListFindingsResult.Resource
-          parseFrom(
-              java.io.InputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-            PARSER, input, extensionRegistry);
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
+          java.io.InputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3
+            .parseWithIOException(PARSER, input, extensionRegistry);
       }
-
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
-              .ListFindingsResult.Resource
-          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseDelimitedFrom(java.io.InputStream input)
+          throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3
+            .parseDelimitedWithIOException(PARSER, input);
       }
-
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
-              .ListFindingsResult.Resource
-          parseDelimitedFrom(
-              java.io.InputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-            PARSER, input, extensionRegistry);
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseDelimitedFrom(
+          java.io.InputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3
+            .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
       }
-
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
-              .ListFindingsResult.Resource
-          parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
+          com.google.protobuf.CodedInputStream input)
+          throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3
+            .parseWithIOException(PARSER, input);
       }
-
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
-              .ListFindingsResult.Resource
-          parseFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-            PARSER, input, extensionRegistry);
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3
+            .parseWithIOException(PARSER, input, extensionRegistry);
       }
 
       @java.lang.Override
-      public Builder newBuilderForType() {
-        return newBuilder();
-      }
-
+      public Builder newBuilderForType() { return newBuilder(); }
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
-
-      public static Builder newBuilder(
-          com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource
-              prototype) {
+      public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
-
       @java.lang.Override
       public Builder toBuilder() {
-        return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+        return this == DEFAULT_INSTANCE
+            ? new Builder() : new Builder().mergeFrom(this);
       }
 
       @java.lang.Override
@@ -1527,56 +1312,46 @@ protected Builder newBuilderForType(
         return builder;
       }
       /**
-       *
-       *
        * 
        * Information related to the Google Cloud resource that is
        * associated with this finding.
        * 
* - * Protobuf type {@code - * google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource} + * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource) - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .ResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource.class, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.class, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.newBuilder() + // Construct using com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFoldersFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1600,25 +1375,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource.getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource - build() { - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource - result = buildPartial(); + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource build() { + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1626,13 +1395,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource - buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource - result = - new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse - .ListFindingsResult.Resource(this); + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource result = new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.projectName_ = projectName_; @@ -1656,60 +1420,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource) { - return mergeFrom( - (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource) - other); + if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource) { + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource - other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource other) { + if (other == com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1748,10 +1498,9 @@ public Builder mergeFrom( foldersBuilder_ = null; folders_ = other.folders_; bitField0_ = (bitField0_ & ~0x00000001); - foldersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFoldersFieldBuilder() - : null; + foldersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFoldersFieldBuilder() : null; } else { foldersBuilder_.addAllMessages(other.folders_); } @@ -1772,15 +1521,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource - parsedMessage = null; + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1789,26 +1534,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
          * The full resource name of the resource. See:
          * https://cloud.google.com/apis/design/resource_names#full_resource_name
          * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1817,87 +1559,79 @@ public java.lang.String getName() { } } /** - * - * *
          * The full resource name of the resource. See:
          * https://cloud.google.com/apis/design/resource_names#full_resource_name
          * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** - * - * + /** *
          * The full resource name of the resource. See:
          * https://cloud.google.com/apis/design/resource_names#full_resource_name
          * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
          * The full resource name of the resource. See:
          * https://cloud.google.com/apis/design/resource_names#full_resource_name
          * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
          * The full resource name of the resource. See:
          * https://cloud.google.com/apis/design/resource_names#full_resource_name
          * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1905,20 +1639,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectName_ = ""; /** - * - * *
          * The full resource name of project that the resource belongs to.
          * 
* * string project_name = 2; - * * @return The projectName. */ public java.lang.String getProjectName() { java.lang.Object ref = projectName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectName_ = s; return s; @@ -1927,21 +1659,20 @@ public java.lang.String getProjectName() { } } /** - * - * *
          * The full resource name of project that the resource belongs to.
          * 
* * string project_name = 2; - * * @return The bytes for projectName. */ - public com.google.protobuf.ByteString getProjectNameBytes() { + public com.google.protobuf.ByteString + getProjectNameBytes() { java.lang.Object ref = projectName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectName_ = b; return b; } else { @@ -1949,61 +1680,54 @@ public com.google.protobuf.ByteString getProjectNameBytes() { } } /** - * - * *
          * The full resource name of project that the resource belongs to.
          * 
* * string project_name = 2; - * * @param value The projectName to set. * @return This builder for chaining. */ - public Builder setProjectName(java.lang.String value) { + public Builder setProjectName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectName_ = value; onChanged(); return this; } /** - * - * *
          * The full resource name of project that the resource belongs to.
          * 
* * string project_name = 2; - * * @return This builder for chaining. */ public Builder clearProjectName() { - + projectName_ = getDefaultInstance().getProjectName(); onChanged(); return this; } /** - * - * *
          * The full resource name of project that the resource belongs to.
          * 
* * string project_name = 2; - * * @param value The bytes for projectName to set. * @return This builder for chaining. */ - public Builder setProjectNameBytes(com.google.protobuf.ByteString value) { + public Builder setProjectNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectName_ = value; onChanged(); return this; @@ -2011,20 +1735,18 @@ public Builder setProjectNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectDisplayName_ = ""; /** - * - * *
          * The human readable name of project that the resource belongs to.
          * 
* * string project_display_name = 3; - * * @return The projectDisplayName. */ public java.lang.String getProjectDisplayName() { java.lang.Object ref = projectDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectDisplayName_ = s; return s; @@ -2033,21 +1755,20 @@ public java.lang.String getProjectDisplayName() { } } /** - * - * *
          * The human readable name of project that the resource belongs to.
          * 
* * string project_display_name = 3; - * * @return The bytes for projectDisplayName. */ - public com.google.protobuf.ByteString getProjectDisplayNameBytes() { + public com.google.protobuf.ByteString + getProjectDisplayNameBytes() { java.lang.Object ref = projectDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectDisplayName_ = b; return b; } else { @@ -2055,61 +1776,54 @@ public com.google.protobuf.ByteString getProjectDisplayNameBytes() { } } /** - * - * *
          * The human readable name of project that the resource belongs to.
          * 
* * string project_display_name = 3; - * * @param value The projectDisplayName to set. * @return This builder for chaining. */ - public Builder setProjectDisplayName(java.lang.String value) { + public Builder setProjectDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectDisplayName_ = value; onChanged(); return this; } /** - * - * *
          * The human readable name of project that the resource belongs to.
          * 
* * string project_display_name = 3; - * * @return This builder for chaining. */ public Builder clearProjectDisplayName() { - + projectDisplayName_ = getDefaultInstance().getProjectDisplayName(); onChanged(); return this; } /** - * - * *
          * The human readable name of project that the resource belongs to.
          * 
* * string project_display_name = 3; - * * @param value The bytes for projectDisplayName to set. * @return This builder for chaining. */ - public Builder setProjectDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setProjectDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectDisplayName_ = value; onChanged(); return this; @@ -2117,20 +1831,18 @@ public Builder setProjectDisplayNameBytes(com.google.protobuf.ByteString value) private java.lang.Object parentName_ = ""; /** - * - * *
          * The full resource name of resource's parent.
          * 
* * string parent_name = 4; - * * @return The parentName. */ public java.lang.String getParentName() { java.lang.Object ref = parentName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentName_ = s; return s; @@ -2139,21 +1851,20 @@ public java.lang.String getParentName() { } } /** - * - * *
          * The full resource name of resource's parent.
          * 
* * string parent_name = 4; - * * @return The bytes for parentName. */ - public com.google.protobuf.ByteString getParentNameBytes() { + public com.google.protobuf.ByteString + getParentNameBytes() { java.lang.Object ref = parentName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentName_ = b; return b; } else { @@ -2161,61 +1872,54 @@ public com.google.protobuf.ByteString getParentNameBytes() { } } /** - * - * *
          * The full resource name of resource's parent.
          * 
* * string parent_name = 4; - * * @param value The parentName to set. * @return This builder for chaining. */ - public Builder setParentName(java.lang.String value) { + public Builder setParentName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parentName_ = value; onChanged(); return this; } /** - * - * *
          * The full resource name of resource's parent.
          * 
* * string parent_name = 4; - * * @return This builder for chaining. */ public Builder clearParentName() { - + parentName_ = getDefaultInstance().getParentName(); onChanged(); return this; } /** - * - * *
          * The full resource name of resource's parent.
          * 
* * string parent_name = 4; - * * @param value The bytes for parentName to set. * @return This builder for chaining. */ - public Builder setParentNameBytes(com.google.protobuf.ByteString value) { + public Builder setParentNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentName_ = value; onChanged(); return this; @@ -2223,20 +1927,18 @@ public Builder setParentNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object parentDisplayName_ = ""; /** - * - * *
          * The human readable name of resource's parent.
          * 
* * string parent_display_name = 5; - * * @return The parentDisplayName. */ public java.lang.String getParentDisplayName() { java.lang.Object ref = parentDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDisplayName_ = s; return s; @@ -2245,21 +1947,20 @@ public java.lang.String getParentDisplayName() { } } /** - * - * *
          * The human readable name of resource's parent.
          * 
* * string parent_display_name = 5; - * * @return The bytes for parentDisplayName. */ - public com.google.protobuf.ByteString getParentDisplayNameBytes() { + public com.google.protobuf.ByteString + getParentDisplayNameBytes() { java.lang.Object ref = parentDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentDisplayName_ = b; return b; } else { @@ -2267,86 +1968,72 @@ public com.google.protobuf.ByteString getParentDisplayNameBytes() { } } /** - * - * *
          * The human readable name of resource's parent.
          * 
* * string parent_display_name = 5; - * * @param value The parentDisplayName to set. * @return This builder for chaining. */ - public Builder setParentDisplayName(java.lang.String value) { + public Builder setParentDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parentDisplayName_ = value; onChanged(); return this; } /** - * - * *
          * The human readable name of resource's parent.
          * 
* * string parent_display_name = 5; - * * @return This builder for chaining. */ public Builder clearParentDisplayName() { - + parentDisplayName_ = getDefaultInstance().getParentDisplayName(); onChanged(); return this; } /** - * - * *
          * The human readable name of resource's parent.
          * 
* * string parent_display_name = 5; - * * @param value The bytes for parentDisplayName to set. * @return This builder for chaining. */ - public Builder setParentDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setParentDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentDisplayName_ = value; onChanged(); return this; } private java.util.List folders_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - folders_ = - new java.util.ArrayList(folders_); + folders_ = new java.util.ArrayList(folders_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Folder, - com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, - com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> - foldersBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> foldersBuilder_; /** - * - * *
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2363,8 +2050,6 @@ public java.util.List getFolde
           }
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2381,8 +2066,6 @@ public int getFoldersCount() {
           }
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2399,8 +2082,6 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index) {
           }
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2424,8 +2105,6 @@ public Builder setFolders(
           return this;
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2446,8 +2125,6 @@ public Builder setFolders(
           return this;
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2470,8 +2147,6 @@ public Builder addFolders(com.google.cloud.securitycenter.v1p1beta1.Folder value
           return this;
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2495,8 +2170,6 @@ public Builder addFolders(
           return this;
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2517,8 +2190,6 @@ public Builder addFolders(
           return this;
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2539,8 +2210,6 @@ public Builder addFolders(
           return this;
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2553,7 +2222,8 @@ public Builder addAllFolders(
             java.lang.Iterable values) {
           if (foldersBuilder_ == null) {
             ensureFoldersIsMutable();
-            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_);
+            com.google.protobuf.AbstractMessageLite.Builder.addAll(
+                values, folders_);
             onChanged();
           } else {
             foldersBuilder_.addAllMessages(values);
@@ -2561,8 +2231,6 @@ public Builder addAllFolders(
           return this;
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2582,8 +2250,6 @@ public Builder clearFolders() {
           return this;
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2603,8 +2269,6 @@ public Builder removeFolders(int index) {
           return this;
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2618,8 +2282,6 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder getFoldersBuilde
           return getFoldersFieldBuilder().getBuilder(index);
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2631,14 +2293,11 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder getFoldersBuilde
         public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder(
             int index) {
           if (foldersBuilder_ == null) {
-            return folders_.get(index);
-          } else {
+            return folders_.get(index);  } else {
             return foldersBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2647,8 +2306,8 @@ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBui
          *
          * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
          */
-        public java.util.List
-            getFoldersOrBuilderList() {
+        public java.util.List 
+             getFoldersOrBuilderList() {
           if (foldersBuilder_ != null) {
             return foldersBuilder_.getMessageOrBuilderList();
           } else {
@@ -2656,8 +2315,6 @@ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBui
           }
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2667,12 +2324,10 @@ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBui
          * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
          */
         public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilder() {
-          return getFoldersFieldBuilder()
-              .addBuilder(com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance());
+          return getFoldersFieldBuilder().addBuilder(
+              com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance());
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2683,13 +2338,10 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilde
          */
         public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilder(
             int index) {
-          return getFoldersFieldBuilder()
-              .addBuilder(
-                  index, com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance());
+          return getFoldersFieldBuilder().addBuilder(
+              index, com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance());
         }
         /**
-         *
-         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2698,28 +2350,24 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilde
          *
          * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
          */
-        public java.util.List
-            getFoldersBuilderList() {
+        public java.util.List 
+             getFoldersBuilderList() {
           return getFoldersFieldBuilder().getBuilderList();
         }
-
         private com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.securitycenter.v1p1beta1.Folder,
-                com.google.cloud.securitycenter.v1p1beta1.Folder.Builder,
-                com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder>
+            com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> 
             getFoldersFieldBuilder() {
           if (foldersBuilder_ == null) {
-            foldersBuilder_ =
-                new com.google.protobuf.RepeatedFieldBuilderV3<
-                    com.google.cloud.securitycenter.v1p1beta1.Folder,
-                    com.google.cloud.securitycenter.v1p1beta1.Folder.Builder,
-                    com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder>(
-                    folders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+            foldersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder>(
+                    folders_,
+                    ((bitField0_ & 0x00000001) != 0),
+                    getParentForChildren(),
+                    isClean());
             folders_ = null;
           }
           return foldersBuilder_;
         }
-
         @java.lang.Override
         public final Builder setUnknownFields(
             final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -2732,36 +2380,30 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
 
+
         // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource)
       }
 
       // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource)
-      private static final com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
-              .ListFindingsResult.Resource
-          DEFAULT_INSTANCE;
-
+      private static final com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource DEFAULT_INSTANCE;
       static {
-        DEFAULT_INSTANCE =
-            new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult
-                .Resource();
+        DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource();
       }
 
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
-              .ListFindingsResult.Resource
-          getDefaultInstance() {
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
 
-      private static final com.google.protobuf.Parser PARSER =
-          new com.google.protobuf.AbstractParser() {
-            @java.lang.Override
-            public Resource parsePartialFrom(
-                com.google.protobuf.CodedInputStream input,
-                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-                throws com.google.protobuf.InvalidProtocolBufferException {
-              return new Resource(input, extensionRegistry);
-            }
-          };
+      private static final com.google.protobuf.Parser
+          PARSER = new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Resource parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Resource(input, extensionRegistry);
+        }
+      };
 
       public static com.google.protobuf.Parser parser() {
         return PARSER;
@@ -2773,24 +2415,20 @@ public com.google.protobuf.Parser getParserForType() {
       }
 
       @java.lang.Override
-      public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult
-              .Resource
-          getDefaultInstanceForType() {
+      public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
+
     }
 
     public static final int FINDING_FIELD_NUMBER = 1;
     private com.google.cloud.securitycenter.v1p1beta1.Finding finding_;
     /**
-     *
-     *
      * 
      * Finding matching the search request.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1; - * * @return Whether the finding field is set. */ @java.lang.Override @@ -2798,25 +2436,18 @@ public boolean hasFinding() { return finding_ != null; } /** - * - * *
      * Finding matching the search request.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1; - * * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { - return finding_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() : finding_; } /** - * - * *
      * Finding matching the search request.
      * 
@@ -2831,65 +2462,38 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu public static final int STATE_CHANGE_FIELD_NUMBER = 2; private int stateChange_; /** - * - * *
      * State change of the finding between the points in time.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * @return The enum numeric value on the wire for stateChange. */ - @java.lang.Override - public int getStateChangeValue() { + @java.lang.Override public int getStateChangeValue() { return stateChange_; } /** - * - * *
      * State change of the finding between the points in time.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * @return The stateChange. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .StateChange - getStateChange() { + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange getStateChange() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange - result = - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .StateChange.valueOf(stateChange_); - return result == null - ? com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .StateChange.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange result = com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange.valueOf(stateChange_); + return result == null ? com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange.UNRECOGNIZED : result; } public static final int RESOURCE_FIELD_NUMBER = 3; - private com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource - resource_; + private com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource_; /** - * - * *
      * Output only. Resource that is associated with this finding.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the resource field is set. */ @java.lang.Override @@ -2897,47 +2501,30 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
      * Output only. Resource that is associated with this finding.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The resource. */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource - getResource() { - return resource_ == null - ? com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource.getDefaultInstance() - : resource_; + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource getResource() { + return resource_ == null ? com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.getDefaultInstance() : resource_; } /** - * - * *
      * Output only. Resource that is associated with this finding.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .ResourceOrBuilder - getResourceOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder getResourceOrBuilder() { return getResource(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2949,14 +2536,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (finding_ != null) { output.writeMessage(1, getFinding()); } - if (stateChange_ - != com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .StateChange.UNUSED - .getNumber()) { + if (stateChange_ != com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange.UNUSED.getNumber()) { output.writeEnum(2, stateChange_); } if (resource_ != null) { @@ -2972,16 +2557,16 @@ public int getSerializedSize() { size = 0; if (finding_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFinding()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getFinding()); } - if (stateChange_ - != com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .StateChange.UNUSED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, stateChange_); + if (stateChange_ != com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange.UNUSED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, stateChange_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2991,24 +2576,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult)) { + if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult other = - (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) obj; + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult other = (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) obj; if (hasFinding() != other.hasFinding()) return false; if (hasFinding()) { - if (!getFinding().equals(other.getFinding())) return false; + if (!getFinding() + .equals(other.getFinding())) return false; } if (stateChange_ != other.stateChange_) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -3036,102 +2620,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3141,52 +2711,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Result containing the Finding and its StateChange.
      * 
* - * Protobuf type {@code - * google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult} + * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .class, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.class, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.newBuilder() + // Construct using com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3208,23 +2770,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - build() { - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult result = - buildPartial(); + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult build() { + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3232,11 +2790,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult result = - new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult( - this); + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult result = new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult(this); if (findingBuilder_ == null) { result.finding_ = finding_; } else { @@ -3256,56 +2811,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) { - return mergeFrom( - (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) - other); + if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) { + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult other) { + if (other == com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.getDefaultInstance()) return this; if (other.hasFinding()) { mergeFinding(other.getFinding()); } @@ -3330,14 +2875,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - parsedMessage = null; + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3349,47 +2891,34 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1p1beta1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Finding, - com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, - com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> - findingBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> findingBuilder_; /** - * - * *
        * Finding matching the search request.
        * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1; - * * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; } /** - * - * *
        * Finding matching the search request.
        * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1; - * * @return The finding. */ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { if (findingBuilder_ == null) { - return finding_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() : finding_; } else { return findingBuilder_.getMessage(); } } /** - * - * *
        * Finding matching the search request.
        * 
@@ -3410,8 +2939,6 @@ public Builder setFinding(com.google.cloud.securitycenter.v1p1beta1.Finding valu return this; } /** - * - * *
        * Finding matching the search request.
        * 
@@ -3430,8 +2957,6 @@ public Builder setFinding( return this; } /** - * - * *
        * Finding matching the search request.
        * 
@@ -3442,9 +2967,7 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1p1beta1.Finding va if (findingBuilder_ == null) { if (finding_ != null) { finding_ = - com.google.cloud.securitycenter.v1p1beta1.Finding.newBuilder(finding_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.Finding.newBuilder(finding_).mergeFrom(value).buildPartial(); } else { finding_ = value; } @@ -3456,8 +2979,6 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1p1beta1.Finding va return this; } /** - * - * *
        * Finding matching the search request.
        * 
@@ -3476,8 +2997,6 @@ public Builder clearFinding() { return this; } /** - * - * *
        * Finding matching the search request.
        * 
@@ -3485,13 +3004,11 @@ public Builder clearFinding() { * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1; */ public com.google.cloud.securitycenter.v1p1beta1.Finding.Builder getFindingBuilder() { - + onChanged(); return getFindingFieldBuilder().getBuilder(); } /** - * - * *
        * Finding matching the search request.
        * 
@@ -3502,14 +3019,11 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu if (findingBuilder_ != null) { return findingBuilder_.getMessageOrBuilder(); } else { - return finding_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? + com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() : finding_; } } /** - * - * *
        * Finding matching the search request.
        * 
@@ -3517,17 +3031,14 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Finding, - com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, - com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> getFindingFieldBuilder() { if (findingBuilder_ == null) { - findingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Finding, - com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, - com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder>( - getFinding(), getParentForChildren(), isClean()); + findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder>( + getFinding(), + getParentForChildren(), + isClean()); finding_ = null; } return findingBuilder_; @@ -3535,182 +3046,115 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu private int stateChange_ = 0; /** - * - * *
        * State change of the finding between the points in time.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * @return The enum numeric value on the wire for stateChange. */ - @java.lang.Override - public int getStateChangeValue() { + @java.lang.Override public int getStateChangeValue() { return stateChange_; } /** - * - * *
        * State change of the finding between the points in time.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * @param value The enum numeric value on the wire for stateChange to set. * @return This builder for chaining. */ public Builder setStateChangeValue(int value) { - + stateChange_ = value; onChanged(); return this; } /** - * - * *
        * State change of the finding between the points in time.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * @return The stateChange. */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .StateChange - getStateChange() { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange getStateChange() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .StateChange - result = - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .StateChange.valueOf(stateChange_); - return result == null - ? com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .StateChange.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange result = com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange.valueOf(stateChange_); + return result == null ? com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange.UNRECOGNIZED : result; } /** - * - * *
        * State change of the finding between the points in time.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * @param value The stateChange to set. * @return This builder for chaining. */ - public Builder setStateChange( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .StateChange - value) { + public Builder setStateChange(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange value) { if (value == null) { throw new NullPointerException(); } - + stateChange_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * State change of the finding between the points in time.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; * @return This builder for chaining. */ public Builder clearStateChange() { - + stateChange_ = 0; onChanged(); return this; } - private com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource - resource_; + private com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource.Builder, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .ResourceOrBuilder> - resourceBuilder_; + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.Builder, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder> resourceBuilder_; /** - * - * *
        * Output only. Resource that is associated with this finding.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
        * Output only. Resource that is associated with this finding.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The resource. */ - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource - getResource() { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
        * Output only. Resource that is associated with this finding.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setResource( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource - value) { + public Builder setResource(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource value) { if (resourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3724,20 +3168,14 @@ public Builder setResource( return this; } /** - * - * *
        * Output only. Resource that is associated with this finding.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResource( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource - .Builder - builderForValue) { + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -3748,26 +3186,17 @@ public Builder setResource( return this; } /** - * - * *
        * Output only. Resource that is associated with this finding.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeResource( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource - value) { + public Builder mergeResource(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource.newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -3779,15 +3208,11 @@ public Builder mergeResource( return this; } /** - * - * *
        * Output only. Resource that is associated with this finding.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -3801,79 +3226,52 @@ public Builder clearResource() { return this; } /** - * - * *
        * Output only. Resource that is associated with this finding.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource.Builder - getResourceBuilder() { - + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.Builder getResourceBuilder() { + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
        * Output only. Resource that is associated with this finding.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .ResourceOrBuilder - getResourceOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource.getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.getDefaultInstance() : resource_; } } /** - * - * *
        * Output only. Resource that is associated with this finding.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource.Builder, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .ResourceOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.Builder, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Resource.Builder, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .ResourceOrBuilder>(getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.Builder, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3886,34 +3284,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) - private static final com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse - .ListFindingsResult - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult(); + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult(); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3925,111 +3319,80 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int LIST_FINDINGS_RESULTS_FIELD_NUMBER = 1; - private java.util.List< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult> - listFindingsResults_; + private java.util.List listFindingsResults_; /** - * - * *
    * Findings matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ @java.lang.Override - public java.util.List< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult> - getListFindingsResultsList() { + public java.util.List getListFindingsResultsList() { return listFindingsResults_; } /** - * - * *
    * Findings matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse - .ListFindingsResultOrBuilder> + public java.util.List getListFindingsResultsOrBuilderList() { return listFindingsResults_; } /** - * - * *
    * Findings matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ @java.lang.Override public int getListFindingsResultsCount() { return listFindingsResults_.size(); } /** - * - * *
    * Findings matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - getListFindingsResults(int index) { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult getListFindingsResults(int index) { return listFindingsResults_.get(index); } /** - * - * *
    * Findings matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResultOrBuilder - getListFindingsResultsOrBuilder(int index) { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResultOrBuilder getListFindingsResultsOrBuilder( + int index) { return listFindingsResults_.get(index); } public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ @java.lang.Override @@ -4037,14 +3400,11 @@ public boolean hasReadTime() { return readTime_ != null; } /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ @java.lang.Override @@ -4052,8 +3412,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time used for executing the list request.
    * 
@@ -4068,15 +3426,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -4085,30 +3440,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -4119,14 +3474,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_; /** - * - * *
    * The total number of findings matching the query.
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -4135,7 +3487,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4147,7 +3498,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < listFindingsResults_.size(); i++) { output.writeMessage(1, listFindingsResults_.get(i)); } @@ -4170,17 +3522,19 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < listFindingsResults_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, listFindingsResults_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, listFindingsResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4190,21 +3544,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse other = - (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) obj; + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse other = (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) obj; - if (!getListFindingsResultsList().equals(other.getListFindingsResultsList())) return false; + if (!getListFindingsResultsList() + .equals(other.getListFindingsResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime().equals(other.getReadTime())) return false; + if (!getReadTime() + .equals(other.getReadTime())) return false; } - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4234,127 +3591,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for listing findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListFindingsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.class, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.class, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.newBuilder() @@ -4362,17 +3709,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getListFindingsResultsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4396,14 +3743,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.getDefaultInstance(); } @@ -4418,8 +3764,7 @@ public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse result = - new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse(this); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse result = new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse(this); int from_bitField0_ = bitField0_; if (listFindingsResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -4445,39 +3790,38 @@ public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse)other); } else { super.mergeFrom(other); return this; @@ -4485,9 +3829,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.getDefaultInstance()) return this; if (listFindingsResultsBuilder_ == null) { if (!other.listFindingsResults_.isEmpty()) { if (listFindingsResults_.isEmpty()) { @@ -4506,10 +3848,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListFindingsR listFindingsResultsBuilder_ = null; listFindingsResults_ = other.listFindingsResults_; bitField0_ = (bitField0_ & ~0x00000001); - listFindingsResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getListFindingsResultsFieldBuilder() - : null; + listFindingsResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getListFindingsResultsFieldBuilder() : null; } else { listFindingsResultsBuilder_.addAllMessages(other.listFindingsResults_); } @@ -4544,9 +3885,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4555,45 +3894,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult> - listFindingsResults_ = java.util.Collections.emptyList(); - + private java.util.List listFindingsResults_ = + java.util.Collections.emptyList(); private void ensureListFindingsResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - listFindingsResults_ = - new java.util.ArrayList< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult>( - listFindingsResults_); + listFindingsResults_ = new java.util.ArrayList(listFindingsResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Builder, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse - .ListFindingsResultOrBuilder> - listFindingsResultsBuilder_; + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResultOrBuilder> listFindingsResultsBuilder_; /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - public java.util.List< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult> - getListFindingsResultsList() { + public java.util.List getListFindingsResultsList() { if (listFindingsResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(listFindingsResults_); } else { @@ -4601,15 +3923,11 @@ private void ensureListFindingsResultsIsMutable() { } } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ public int getListFindingsResultsCount() { if (listFindingsResultsBuilder_ == null) { @@ -4619,18 +3937,13 @@ public int getListFindingsResultsCount() { } } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - getListFindingsResults(int index) { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult getListFindingsResults(int index) { if (listFindingsResultsBuilder_ == null) { return listFindingsResults_.get(index); } else { @@ -4638,19 +3951,14 @@ public int getListFindingsResultsCount() { } } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ public Builder setListFindingsResults( - int index, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult value) { + int index, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult value) { if (listFindingsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4664,20 +3972,14 @@ public Builder setListFindingsResults( return this; } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ public Builder setListFindingsResults( - int index, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder - builderForValue) { + int index, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder builderForValue) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); listFindingsResults_.set(index, builderForValue.build()); @@ -4688,18 +3990,13 @@ public Builder setListFindingsResults( return this; } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - public Builder addListFindingsResults( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult value) { + public Builder addListFindingsResults(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult value) { if (listFindingsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4713,19 +4010,14 @@ public Builder addListFindingsResults( return this; } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ public Builder addListFindingsResults( - int index, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult value) { + int index, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult value) { if (listFindingsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4739,19 +4031,14 @@ public Builder addListFindingsResults( return this; } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ public Builder addListFindingsResults( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder - builderForValue) { + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder builderForValue) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); listFindingsResults_.add(builderForValue.build()); @@ -4762,20 +4049,14 @@ public Builder addListFindingsResults( return this; } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ public Builder addListFindingsResults( - int index, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder - builderForValue) { + int index, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder builderForValue) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); listFindingsResults_.add(index, builderForValue.build()); @@ -4786,25 +4067,18 @@ public Builder addListFindingsResults( return this; } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ public Builder addAllListFindingsResults( - java.lang.Iterable< - ? extends - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse - .ListFindingsResult> - values) { + java.lang.Iterable values) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listFindingsResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, listFindingsResults_); onChanged(); } else { listFindingsResultsBuilder_.addAllMessages(values); @@ -4812,15 +4086,11 @@ public Builder addAllListFindingsResults( return this; } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ public Builder clearListFindingsResults() { if (listFindingsResultsBuilder_ == null) { @@ -4833,15 +4103,11 @@ public Builder clearListFindingsResults() { return this; } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ public Builder removeListFindingsResults(int index) { if (listFindingsResultsBuilder_ == null) { @@ -4854,56 +4120,39 @@ public Builder removeListFindingsResults(int index) { return this; } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder - getListFindingsResultsBuilder(int index) { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder getListFindingsResultsBuilder( + int index) { return getListFindingsResultsFieldBuilder().getBuilder(index); } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse - .ListFindingsResultOrBuilder - getListFindingsResultsOrBuilder(int index) { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResultOrBuilder getListFindingsResultsOrBuilder( + int index) { if (listFindingsResultsBuilder_ == null) { - return listFindingsResults_.get(index); - } else { + return listFindingsResults_.get(index); } else { return listFindingsResultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - public java.util.List< - ? extends - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse - .ListFindingsResultOrBuilder> - getListFindingsResultsOrBuilderList() { + public java.util.List + getListFindingsResultsOrBuilderList() { if (listFindingsResultsBuilder_ != null) { return listFindingsResultsBuilder_.getMessageOrBuilderList(); } else { @@ -4911,75 +4160,45 @@ public Builder removeListFindingsResults(int index) { } } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder - addListFindingsResultsBuilder() { - return getListFindingsResultsFieldBuilder() - .addBuilder( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .getDefaultInstance()); + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder addListFindingsResultsBuilder() { + return getListFindingsResultsFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.getDefaultInstance()); } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder - addListFindingsResultsBuilder(int index) { - return getListFindingsResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .getDefaultInstance()); + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder addListFindingsResultsBuilder( + int index) { + return getListFindingsResultsFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.getDefaultInstance()); } /** - * - * *
      * Findings matching the list request.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - public java.util.List< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Builder> - getListFindingsResultsBuilderList() { + public java.util.List + getListFindingsResultsBuilderList() { return getListFindingsResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Builder, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse - .ListFindingsResultOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResultOrBuilder> getListFindingsResultsFieldBuilder() { if (listFindingsResultsBuilder_ == null) { - listFindingsResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - .Builder, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse - .ListFindingsResultOrBuilder>( + listFindingsResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResultOrBuilder>( listFindingsResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -4991,33 +4210,24 @@ public Builder removeListFindingsResults(int index) { private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - readTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; /** - * - * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** - * - * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -5028,8 +4238,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -5050,15 +4258,14 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -5069,8 +4276,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -5081,7 +4286,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -5093,8 +4298,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -5113,8 +4316,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -5122,13 +4323,11 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -5139,12 +4338,11 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** - * - * *
      * Time used for executing the list request.
      * 
@@ -5152,17 +4350,14 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getReadTime(), getParentForChildren(), isClean()); + readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getReadTime(), + getParentForChildren(), + isClean()); readTime_ = null; } return readTimeBuilder_; @@ -5170,21 +4365,19 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -5193,22 +4386,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -5216,79 +4408,69 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * The total number of findings matching the query.
      * 
* * int32 total_size = 4; - * * @return The totalSize. */ @java.lang.Override @@ -5296,43 +4478,37 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * The total number of findings matching the query.
      * 
* * int32 total_size = 4; - * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** - * - * *
      * The total number of findings matching the query.
      * 
* * int32 total_size = 4; - * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5342,32 +4518,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) - private static final com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse(); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5379,8 +4553,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponseOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponseOrBuilder.java similarity index 55% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponseOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponseOrBuilder.java index ff89f0575..16147aefe 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponseOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponseOrBuilder.java @@ -1,123 +1,75 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface ListFindingsResponseOrBuilder - extends +public interface ListFindingsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Findings matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - java.util.List + java.util.List getListFindingsResultsList(); /** - * - * *
    * Findings matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult - getListFindingsResults(int index); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult getListFindingsResults(int index); /** - * - * *
    * Findings matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ int getListFindingsResultsCount(); /** - * - * *
    * Findings matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - java.util.List< - ? extends - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse - .ListFindingsResultOrBuilder> + java.util.List getListFindingsResultsOrBuilderList(); /** - * - * *
    * Findings matching the list request.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; */ - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResultOrBuilder - getListFindingsResultsOrBuilder(int index); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResultOrBuilder getListFindingsResultsOrBuilder( + int index); /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** - * - * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** - * - * *
    * Time used for executing the list request.
    * 
@@ -127,41 +79,33 @@ public interface ListFindingsResponseOrBuilder com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * The total number of findings matching the query.
    * 
* * int32 total_size = 4; - * * @return The totalSize. */ int getTotalSize(); diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java similarity index 65% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java index 1d759551b..6aecfeda4 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Request message for listing notification configs.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest} */ -public final class ListNotificationConfigsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNotificationConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) ListNotificationConfigsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNotificationConfigsRequest.newBuilder() to construct. - private ListNotificationConfigsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListNotificationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNotificationConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +26,16 @@ private ListNotificationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNotificationConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListNotificationConfigsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +54,30 @@ private ListNotificationConfigsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,42 +85,35 @@ private ListNotificationConfigsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.class, - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.class, com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the organization to list notification configs.
    * Its format is "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -149,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Name of the organization to list notification configs.
    * Its format is "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -185,8 +156,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListNotificationConfigsResponse`; indicates
    * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -194,7 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -203,15 +171,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListNotificationConfigsResponse`; indicates
    * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -219,15 +186,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -238,15 +206,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -255,7 +220,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +231,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -293,7 +258,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -303,18 +269,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest)) { + if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest other = - (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest other = (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,146 +305,134 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for listing notification configs.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.class, - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.Builder - .class); + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.class, com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.newBuilder() + // Construct using com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -491,22 +446,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest build() { - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest result = - buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -515,8 +467,7 @@ public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest result = - new com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest(this); + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest result = new com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -528,52 +479,46 @@ public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) { - return mergeFrom( - (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) other); + if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest other) { + if (other == com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -604,9 +549,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -618,23 +561,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the organization to list notification configs.
      * Its format is "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -643,24 +582,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the organization to list notification configs.
      * Its format is "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -668,70 +604,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the organization to list notification configs.
      * Its format is "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to list notification configs.
      * Its format is "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to list notification configs.
      * Its format is "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -739,8 +662,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListNotificationConfigsResponse`; indicates
      * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -748,13 +669,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -763,8 +684,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListNotificationConfigsResponse`; indicates
      * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -772,14 +691,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -787,8 +707,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListNotificationConfigsResponse`; indicates
      * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -796,22 +714,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListNotificationConfigsResponse`; indicates
      * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -819,18 +735,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListNotificationConfigsResponse`; indicates
      * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -838,32 +751,29 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -871,45 +781,39 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -919,33 +823,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest(); + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest(); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNotificationConfigsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNotificationConfigsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -957,8 +858,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequestOrBuilder.java index a7852641f..0264a421e 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface ListNotificationConfigsRequestOrBuilder - extends +public interface ListNotificationConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the organization to list notification configs.
    * Its format is "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Name of the organization to list notification configs.
    * Its format is "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The value returned by the last `ListNotificationConfigsResponse`; indicates
    * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -64,13 +37,10 @@ public interface ListNotificationConfigsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListNotificationConfigsResponse`; indicates
    * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -78,21 +48,18 @@ public interface ListNotificationConfigsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java similarity index 62% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java index aa78cf644..d5a54da20 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Response message for listing notification configs.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse} */ -public final class ListNotificationConfigsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNotificationConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) ListNotificationConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNotificationConfigsResponse.newBuilder() to construct. - private ListNotificationConfigsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListNotificationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNotificationConfigsResponse() { notificationConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +26,16 @@ private ListNotificationConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNotificationConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListNotificationConfigsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,34 +55,28 @@ private ListNotificationConfigsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - notificationConfigs_ = - new java.util.ArrayList< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig>(); - mutable_bitField0_ |= 0x00000001; - } - notificationConfigs_.add( - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + notificationConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + notificationConfigs_.add( + input.readMessage(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,7 +84,8 @@ private ListNotificationConfigsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { notificationConfigs_ = java.util.Collections.unmodifiableList(notificationConfigs_); @@ -117,119 +94,88 @@ private ListNotificationConfigsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.class, - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.Builder - .class); + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.class, com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.Builder.class); } public static final int NOTIFICATION_CONFIGS_FIELD_NUMBER = 1; - private java.util.List - notificationConfigs_; + private java.util.List notificationConfigs_; /** - * - * *
    * Notification configs belonging to the requested parent.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ @java.lang.Override - public java.util.List - getNotificationConfigsList() { + public java.util.List getNotificationConfigsList() { return notificationConfigs_; } /** - * - * *
    * Notification configs belonging to the requested parent.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> + public java.util.List getNotificationConfigsOrBuilderList() { return notificationConfigs_; } /** - * - * *
    * Notification configs belonging to the requested parent.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ @java.lang.Override public int getNotificationConfigsCount() { return notificationConfigs_.size(); } /** - * - * *
    * Notification configs belonging to the requested parent.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfigs( - int index) { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfigs(int index) { return notificationConfigs_.get(index); } /** - * - * *
    * Notification configs belonging to the requested parent.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder - getNotificationConfigsOrBuilder(int index) { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder getNotificationConfigsOrBuilder( + int index) { return notificationConfigs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -238,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -270,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -282,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < notificationConfigs_.size(); i++) { output.writeMessage(1, notificationConfigs_.get(i)); } @@ -299,8 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < notificationConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, notificationConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, notificationConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -313,17 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse)) { + if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse other = - (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) obj; + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse other = (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) obj; - if (!getNotificationConfigsList().equals(other.getNotificationConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getNotificationConfigsList() + .equals(other.getNotificationConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -347,148 +293,135 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for listing notification configs.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.class, - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.Builder - .class); + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.class, com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.newBuilder() + // Construct using com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getNotificationConfigsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -504,22 +437,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse build() { - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse result = - buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -527,10 +457,8 @@ public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse - buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse result = - new com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse(this); + public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse result = new com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse(this); int from_bitField0_ = bitField0_; if (notificationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -550,52 +478,46 @@ public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) { - return mergeFrom( - (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) other); + if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) { + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse other) { + if (other == com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.getDefaultInstance()) return this; if (notificationConfigsBuilder_ == null) { if (!other.notificationConfigs_.isEmpty()) { if (notificationConfigs_.isEmpty()) { @@ -614,10 +536,9 @@ public Builder mergeFrom( notificationConfigsBuilder_ = null; notificationConfigs_ = other.notificationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - notificationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNotificationConfigsFieldBuilder() - : null; + notificationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNotificationConfigsFieldBuilder() : null; } else { notificationConfigsBuilder_.addAllMessages(other.notificationConfigs_); } @@ -642,14 +563,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parsedMessage = - null; + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -658,40 +576,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - notificationConfigs_ = java.util.Collections.emptyList(); - + private java.util.List notificationConfigs_ = + java.util.Collections.emptyList(); private void ensureNotificationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - notificationConfigs_ = - new java.util.ArrayList( - notificationConfigs_); + notificationConfigs_ = new java.util.ArrayList(notificationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> - notificationConfigsBuilder_; + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> notificationConfigsBuilder_; /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ - public java.util.List - getNotificationConfigsList() { + public java.util.List getNotificationConfigsList() { if (notificationConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(notificationConfigs_); } else { @@ -699,15 +605,11 @@ private void ensureNotificationConfigsIsMutable() { } } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ public int getNotificationConfigsCount() { if (notificationConfigsBuilder_ == null) { @@ -717,18 +619,13 @@ public int getNotificationConfigsCount() { } } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfigs( - int index) { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfigs(int index) { if (notificationConfigsBuilder_ == null) { return notificationConfigs_.get(index); } else { @@ -736,15 +633,11 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificat } } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ public Builder setNotificationConfigs( int index, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { @@ -761,19 +654,14 @@ public Builder setNotificationConfigs( return this; } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ public Builder setNotificationConfigs( - int index, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder builderForValue) { + int index, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder builderForValue) { if (notificationConfigsBuilder_ == null) { ensureNotificationConfigsIsMutable(); notificationConfigs_.set(index, builderForValue.build()); @@ -784,18 +672,13 @@ public Builder setNotificationConfigs( return this; } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ - public Builder addNotificationConfigs( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { + public Builder addNotificationConfigs(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { if (notificationConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,15 +692,11 @@ public Builder addNotificationConfigs( return this; } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ public Builder addNotificationConfigs( int index, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { @@ -834,15 +713,11 @@ public Builder addNotificationConfigs( return this; } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ public Builder addNotificationConfigs( com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder builderForValue) { @@ -856,19 +731,14 @@ public Builder addNotificationConfigs( return this; } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ public Builder addNotificationConfigs( - int index, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder builderForValue) { + int index, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder builderForValue) { if (notificationConfigsBuilder_ == null) { ensureNotificationConfigsIsMutable(); notificationConfigs_.add(index, builderForValue.build()); @@ -879,22 +749,18 @@ public Builder addNotificationConfigs( return this; } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ public Builder addAllNotificationConfigs( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (notificationConfigsBuilder_ == null) { ensureNotificationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notificationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notificationConfigs_); onChanged(); } else { notificationConfigsBuilder_.addAllMessages(values); @@ -902,15 +768,11 @@ public Builder addAllNotificationConfigs( return this; } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ public Builder clearNotificationConfigs() { if (notificationConfigsBuilder_ == null) { @@ -923,15 +785,11 @@ public Builder clearNotificationConfigs() { return this; } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ public Builder removeNotificationConfigs(int index) { if (notificationConfigsBuilder_ == null) { @@ -944,53 +802,39 @@ public Builder removeNotificationConfigs(int index) { return this; } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder - getNotificationConfigsBuilder(int index) { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder getNotificationConfigsBuilder( + int index) { return getNotificationConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder - getNotificationConfigsOrBuilder(int index) { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder getNotificationConfigsOrBuilder( + int index) { if (notificationConfigsBuilder_ == null) { - return notificationConfigs_.get(index); - } else { + return notificationConfigs_.get(index); } else { return notificationConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ - public java.util.List< - ? extends com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> - getNotificationConfigsOrBuilderList() { + public java.util.List + getNotificationConfigsOrBuilderList() { if (notificationConfigsBuilder_ != null) { return notificationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -998,67 +842,45 @@ public Builder removeNotificationConfigs(int index) { } } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder - addNotificationConfigsBuilder() { - return getNotificationConfigsFieldBuilder() - .addBuilder( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance()); + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder addNotificationConfigsBuilder() { + return getNotificationConfigsFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance()); } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder - addNotificationConfigsBuilder(int index) { - return getNotificationConfigsFieldBuilder() - .addBuilder( - index, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance()); + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder addNotificationConfigsBuilder( + int index) { + return getNotificationConfigsFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance()); } /** - * - * *
      * Notification configs belonging to the requested parent.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ - public java.util.List - getNotificationConfigsBuilderList() { + public java.util.List + getNotificationConfigsBuilderList() { return getNotificationConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> getNotificationConfigsFieldBuilder() { if (notificationConfigsBuilder_ == null) { - notificationConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder>( + notificationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder>( notificationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1070,21 +892,19 @@ public Builder removeNotificationConfigs(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1093,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1116,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1190,33 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) - private static final com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse(); + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse(); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNotificationConfigsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNotificationConfigsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1228,8 +1037,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponseOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponseOrBuilder.java similarity index 53% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponseOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponseOrBuilder.java index f36db4e0f..161a07c01 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponseOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponseOrBuilder.java @@ -1,116 +1,75 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface ListNotificationConfigsResponseOrBuilder - extends +public interface ListNotificationConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Notification configs belonging to the requested parent.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ - java.util.List + java.util.List getNotificationConfigsList(); /** - * - * *
    * Notification configs belonging to the requested parent.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfigs(int index); /** - * - * *
    * Notification configs belonging to the requested parent.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ int getNotificationConfigsCount(); /** - * - * *
    * Notification configs belonging to the requested parent.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ - java.util.List + java.util.List getNotificationConfigsOrBuilderList(); /** - * - * *
    * Notification configs belonging to the requested parent.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; - * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; */ - com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder - getNotificationConfigsOrBuilder(int index); + com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder getNotificationConfigsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequest.java similarity index 70% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequest.java index 88b0f009a..9ee5da266 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Request message for listing sources.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListSourcesRequest} */ -public final class ListSourcesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSourcesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) ListSourcesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSourcesRequest.newBuilder() to construct. private ListSourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSourcesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListSourcesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSourcesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSourcesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListSourcesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 56: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 56: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,43 +85,36 @@ private ListSourcesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.class, - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.class, com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -149,33 +123,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -186,8 +158,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -195,7 +165,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -204,15 +173,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -220,15 +188,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -239,15 +208,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 7; private int pageSize_; /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 7; - * * @return The pageSize. */ @java.lang.Override @@ -256,7 +222,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +233,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -294,7 +260,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -304,17 +271,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest other = - (com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest other = (com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,127 +307,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for listing sources.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListSourcesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.class, - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.class, com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.newBuilder() @@ -466,15 +425,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -488,14 +448,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.getDefaultInstance(); } @@ -510,8 +469,7 @@ public com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest result = - new com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest(this); + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest result = new com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -523,39 +481,38 @@ public com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest)other); } else { super.mergeFrom(other); return this; @@ -563,9 +520,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -596,8 +551,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -609,24 +563,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -635,25 +585,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -661,73 +608,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -735,8 +669,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -744,13 +676,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -759,8 +691,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -768,14 +698,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -783,8 +714,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -792,22 +721,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -815,18 +742,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -834,32 +758,29 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; - * * @return The pageSize. */ @java.lang.Override @@ -867,45 +788,39 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -915,13 +830,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest(); } @@ -930,16 +844,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSourcesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSourcesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSourcesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSourcesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -954,4 +868,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequestOrBuilder.java index 5cb9bce6f..0a25bf18c 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface ListSourcesRequestOrBuilder - extends +public interface ListSourcesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -66,13 +39,10 @@ public interface ListSourcesRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -80,21 +50,18 @@ public interface ListSourcesRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 7; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponse.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponse.java similarity index 73% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponse.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponse.java index 3d117a10a..8e3263d27 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponse.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Response message for listing sources.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListSourcesResponse} */ -public final class ListSourcesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSourcesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) ListSourcesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSourcesResponse.newBuilder() to construct. private ListSourcesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSourcesResponse() { sources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListSourcesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSourcesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSourcesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListSourcesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sources_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - sources_.add( - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.Source.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + sources_.add( + input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Source.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,7 +84,8 @@ private ListSourcesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { sources_ = java.util.Collections.unmodifiableList(sources_); @@ -115,27 +94,22 @@ private ListSourcesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.class, - com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.class, com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.Builder.class); } public static final int SOURCES_FIELD_NUMBER = 1; private java.util.List sources_; /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -147,8 +121,6 @@ public java.util.List getSourc return sources_; } /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -156,13 +128,11 @@ public java.util.List getSourc * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSourcesOrBuilderList() { return sources_; } /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -174,8 +144,6 @@ public int getSourcesCount() { return sources_.size(); } /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -187,8 +155,6 @@ public com.google.cloud.securitycenter.v1p1beta1.Source getSources(int index) { return sources_.get(index); } /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -196,22 +162,20 @@ public com.google.cloud.securitycenter.v1p1beta1.Source getSources(int index) { * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourcesOrBuilder(int index) { + public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourcesOrBuilder( + int index) { return sources_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -220,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -252,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < sources_.size(); i++) { output.writeMessage(1, sources_.get(i)); } @@ -281,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < sources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, sources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -294,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse other = - (com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) obj; + com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse other = (com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) obj; - if (!getSourcesList().equals(other.getSourcesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getSourcesList() + .equals(other.getSourcesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for listing sources.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListSourcesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.class, - com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.class, com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.newBuilder() @@ -455,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getSourcesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -481,14 +437,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.getDefaultInstance(); } @@ -503,8 +458,7 @@ public com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse result = - new com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse(this); + com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse result = new com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse(this); int from_bitField0_ = bitField0_; if (sourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -524,39 +478,38 @@ public com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse)other); } else { super.mergeFrom(other); return this; @@ -564,9 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.getDefaultInstance()) return this; if (sourcesBuilder_ == null) { if (!other.sources_.isEmpty()) { if (sources_.isEmpty()) { @@ -585,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListSourcesRe sourcesBuilder_ = null; sources_ = other.sources_; bitField0_ = (bitField0_ & ~0x00000001); - sourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSourcesFieldBuilder() - : null; + sourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSourcesFieldBuilder() : null; } else { sourcesBuilder_.addAllMessages(other.sources_); } @@ -617,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -628,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List sources_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - sources_ = - new java.util.ArrayList(sources_); + sources_ = new java.util.ArrayList(sources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Source, - com.google.cloud.securitycenter.v1p1beta1.Source.Builder, - com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> - sourcesBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Source, com.google.cloud.securitycenter.v1p1beta1.Source.Builder, com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> sourcesBuilder_; /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -665,8 +605,6 @@ public java.util.List getSourc } } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -681,8 +619,6 @@ public int getSourcesCount() { } } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -697,15 +633,14 @@ public com.google.cloud.securitycenter.v1p1beta1.Source getSources(int index) { } } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ - public Builder setSources(int index, com.google.cloud.securitycenter.v1p1beta1.Source value) { + public Builder setSources( + int index, com.google.cloud.securitycenter.v1p1beta1.Source value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -719,8 +654,6 @@ public Builder setSources(int index, com.google.cloud.securitycenter.v1p1beta1.S return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -739,8 +672,6 @@ public Builder setSources( return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -761,15 +692,14 @@ public Builder addSources(com.google.cloud.securitycenter.v1p1beta1.Source value return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ - public Builder addSources(int index, com.google.cloud.securitycenter.v1p1beta1.Source value) { + public Builder addSources( + int index, com.google.cloud.securitycenter.v1p1beta1.Source value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -783,8 +713,6 @@ public Builder addSources(int index, com.google.cloud.securitycenter.v1p1beta1.S return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -803,8 +731,6 @@ public Builder addSources( return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -823,8 +749,6 @@ public Builder addSources( return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -835,7 +759,8 @@ public Builder addAllSources( java.lang.Iterable values) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sources_); onChanged(); } else { sourcesBuilder_.addAllMessages(values); @@ -843,8 +768,6 @@ public Builder addAllSources( return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -862,8 +785,6 @@ public Builder clearSources() { return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -881,20 +802,17 @@ public Builder removeSources(int index) { return this; } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.Source.Builder getSourcesBuilder(int index) { + public com.google.cloud.securitycenter.v1p1beta1.Source.Builder getSourcesBuilder( + int index) { return getSourcesFieldBuilder().getBuilder(index); } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -904,22 +822,19 @@ public com.google.cloud.securitycenter.v1p1beta1.Source.Builder getSourcesBuilde public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourcesOrBuilder( int index) { if (sourcesBuilder_ == null) { - return sources_.get(index); - } else { + return sources_.get(index); } else { return sourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ - public java.util.List - getSourcesOrBuilderList() { + public java.util.List + getSourcesOrBuilderList() { if (sourcesBuilder_ != null) { return sourcesBuilder_.getMessageOrBuilderList(); } else { @@ -927,8 +842,6 @@ public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourcesOrBui } } /** - * - * *
      * Sources belonging to the requested parent.
      * 
@@ -936,48 +849,42 @@ public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourcesOrBui * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ public com.google.cloud.securitycenter.v1p1beta1.Source.Builder addSourcesBuilder() { - return getSourcesFieldBuilder() - .addBuilder(com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance()); + return getSourcesFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance()); } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.Source.Builder addSourcesBuilder(int index) { - return getSourcesFieldBuilder() - .addBuilder(index, com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance()); + public com.google.cloud.securitycenter.v1p1beta1.Source.Builder addSourcesBuilder( + int index) { + return getSourcesFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance()); } /** - * - * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ - public java.util.List - getSourcesBuilderList() { + public java.util.List + getSourcesBuilderList() { return getSourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Source, - com.google.cloud.securitycenter.v1p1beta1.Source.Builder, - com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.Source, com.google.cloud.securitycenter.v1p1beta1.Source.Builder, com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> getSourcesFieldBuilder() { if (sourcesBuilder_ == null) { - sourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Source, - com.google.cloud.securitycenter.v1p1beta1.Source.Builder, - com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder>( - sources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + sourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Source, com.google.cloud.securitycenter.v1p1beta1.Source.Builder, com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder>( + sources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); sources_ = null; } return sourcesBuilder_; @@ -985,21 +892,19 @@ public com.google.cloud.securitycenter.v1p1beta1.Source.Builder addSourcesBuilde private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1008,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1031,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1105,13 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) - private static final com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse(); } @@ -1120,16 +1016,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSourcesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSourcesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSourcesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1144,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponseOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponseOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponseOrBuilder.java index 592f0792c..08eb9f982 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponseOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface ListSourcesResponseOrBuilder - extends +public interface ListSourcesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Sources belonging to the requested parent.
    * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ - java.util.List getSourcesList(); + java.util.List + getSourcesList(); /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -44,8 +25,6 @@ public interface ListSourcesResponseOrBuilder */ com.google.cloud.securitycenter.v1p1beta1.Source getSources(int index); /** - * - * *
    * Sources belonging to the requested parent.
    * 
@@ -54,51 +33,43 @@ public interface ListSourcesResponseOrBuilder */ int getSourcesCount(); /** - * - * *
    * Sources belonging to the requested parent.
    * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ - java.util.List + java.util.List getSourcesOrBuilderList(); /** - * - * *
    * Sources belonging to the requested parent.
    * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ - com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourcesOrBuilder(int index); + com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourcesOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java similarity index 69% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java index 310700ec1..bedc48de8 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/notification_config.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Security Command Center notification configs.
  * A notification config is a Security Command Center resource that contains the
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.NotificationConfig}
  */
-public final class NotificationConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class NotificationConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.NotificationConfig)
     NotificationConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use NotificationConfig.newBuilder() to construct.
   private NotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private NotificationConfig() {
     name_ = "";
     description_ = "";
@@ -50,15 +32,16 @@ private NotificationConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new NotificationConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private NotificationConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,72 +60,57 @@ private NotificationConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
-            }
-          case 24:
-            {
-              int rawValue = input.readEnum();
+            description_ = s;
+            break;
+          }
+          case 24: {
+            int rawValue = input.readEnum();
 
-              eventType_ = rawValue;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            eventType_ = rawValue;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              pubsubTopic_ = s;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            pubsubTopic_ = s;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              serviceAccount_ = s;
-              break;
+            serviceAccount_ = s;
+            break;
+          }
+          case 50: {
+            com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder subBuilder = null;
+            if (notifyConfigCase_ == 6) {
+              subBuilder = ((com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) notifyConfig_).toBuilder();
             }
-          case 50:
-            {
-              com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder
-                  subBuilder = null;
-              if (notifyConfigCase_ == 6) {
-                subBuilder =
-                    ((com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig)
-                            notifyConfig_)
-                        .toBuilder();
-              }
-              notifyConfig_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig)
-                        notifyConfig_);
-                notifyConfig_ = subBuilder.buildPartial();
-              }
-              notifyConfigCase_ = 6;
-              break;
+            notifyConfig_ =
+                input.readMessage(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) notifyConfig_);
+              notifyConfig_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            notifyConfigCase_ = 6;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -150,41 +118,36 @@ private NotificationConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass
-        .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass
-        .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.class,
-            com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder.class);
+            com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.class, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The type of events.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType} */ - public enum EventType implements com.google.protobuf.ProtocolMessageEnum { + public enum EventType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified event type.
      * 
@@ -193,8 +156,6 @@ public enum EventType implements com.google.protobuf.ProtocolMessageEnum { */ EVENT_TYPE_UNSPECIFIED(0), /** - * - * *
      * Events for findings.
      * 
@@ -206,8 +167,6 @@ public enum EventType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified event type.
      * 
@@ -216,8 +175,6 @@ public enum EventType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EVENT_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Events for findings.
      * 
@@ -226,6 +183,7 @@ public enum EventType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FINDING_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -250,49 +208,48 @@ public static EventType valueOf(int value) { */ public static EventType forNumber(int value) { switch (value) { - case 0: - return EVENT_TYPE_UNSPECIFIED; - case 1: - return FINDING; - default: - return null; + case 0: return EVENT_TYPE_UNSPECIFIED; + case 1: return FINDING; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + EventType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EventType findValueByNumber(int number) { + return EventType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EventType findValueByNumber(int number) { - return EventType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDescriptor().getEnumTypes().get(0); } private static final EventType[] VALUES = values(); - public static EventType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static EventType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -309,14 +266,11 @@ private EventType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType) } - public interface StreamingConfigOrBuilder - extends + public interface StreamingConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Expression that defines the filter to apply across create/update events
      * of assets or findings as specified by the event type. The expression is a
@@ -337,13 +291,10 @@ public interface StreamingConfigOrBuilder
      * 
* * string filter = 1; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
      * Expression that defines the filter to apply across create/update events
      * of assets or findings as specified by the event type. The expression is a
@@ -364,14 +315,12 @@ public interface StreamingConfigOrBuilder
      * 
* * string filter = 1; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } /** - * - * *
    * The config for streaming-based notifications, which send each event as soon
    * as it is detected.
@@ -379,31 +328,31 @@ public interface StreamingConfigOrBuilder
    *
    * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig}
    */
-  public static final class StreamingConfig extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class StreamingConfig extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig)
       StreamingConfigOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use StreamingConfig.newBuilder() to construct.
     private StreamingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private StreamingConfig() {
       filter_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new StreamingConfig();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private StreamingConfig(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -422,20 +371,19 @@ private StreamingConfig(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                filter_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              filter_ = s;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -443,34 +391,29 @@ private StreamingConfig(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.class,
-              com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder
-                  .class);
+              com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.class, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder.class);
     }
 
     public static final int FILTER_FIELD_NUMBER = 1;
     private volatile java.lang.Object filter_;
     /**
-     *
-     *
      * 
      * Expression that defines the filter to apply across create/update events
      * of assets or findings as specified by the event type. The expression is a
@@ -491,7 +434,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string filter = 1; - * * @return The filter. */ @java.lang.Override @@ -500,15 +442,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
      * Expression that defines the filter to apply across create/update events
      * of assets or findings as specified by the event type. The expression is a
@@ -529,15 +470,16 @@ public java.lang.String getFilter() {
      * 
* * string filter = 1; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -546,7 +488,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -558,7 +499,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); } @@ -582,17 +524,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig)) { + if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig other = - (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) obj; + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig other = (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) obj; - if (!getFilter().equals(other.getFilter())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -611,101 +551,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -715,52 +642,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The config for streaming-based notifications, which send each event as soon
      * as it is detected.
      * 
* - * Protobuf type {@code - * google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig} + * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.class, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder - .class); + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.class, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.newBuilder() + // Construct using com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -770,22 +690,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig build() { - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig result = - buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -793,10 +710,8 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingCon } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig result = - new com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig(this); + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig result = new com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig(this); result.filter_ = filter_; onBuilt(); return result; @@ -806,55 +721,46 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingCon public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) { - return mergeFrom( - (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) other); + if (other instanceof com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) { + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig other) { + if (other == com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.getDefaultInstance()) return this; if (!other.getFilter().isEmpty()) { filter_ = other.filter_; onChanged(); @@ -874,14 +780,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parsedMessage = - null; + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -893,8 +796,6 @@ public Builder mergeFrom( private java.lang.Object filter_ = ""; /** - * - * *
        * Expression that defines the filter to apply across create/update events
        * of assets or findings as specified by the event type. The expression is a
@@ -915,13 +816,13 @@ public Builder mergeFrom(
        * 
* * string filter = 1; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -930,8 +831,6 @@ public java.lang.String getFilter() { } } /** - * - * *
        * Expression that defines the filter to apply across create/update events
        * of assets or findings as specified by the event type. The expression is a
@@ -952,14 +851,15 @@ public java.lang.String getFilter() {
        * 
* * string filter = 1; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -967,8 +867,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
        * Expression that defines the filter to apply across create/update events
        * of assets or findings as specified by the event type. The expression is a
@@ -989,22 +887,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
        * 
* * string filter = 1; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
        * Expression that defines the filter to apply across create/update events
        * of assets or findings as specified by the event type. The expression is a
@@ -1025,18 +921,15 @@ public Builder setFilter(java.lang.String value) {
        * 
* * string filter = 1; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
        * Expression that defines the filter to apply across create/update events
        * of assets or findings as specified by the event type. The expression is a
@@ -1057,21 +950,20 @@ public Builder clearFilter() {
        * 
* * string filter = 1; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1084,34 +976,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) - private static final com.google.cloud.securitycenter.v1p1beta1.NotificationConfig - .StreamingConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig(); + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig(); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1123,23 +1011,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int notifyConfigCase_ = 0; private java.lang.Object notifyConfig_; - public enum NotifyConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STREAMING_CONFIG(6), NOTIFYCONFIG_NOT_SET(0); private final int value; - private NotifyConfigCase(int value) { this.value = value; } @@ -1155,29 +1040,25 @@ public static NotifyConfigCase valueOf(int value) { public static NotifyConfigCase forNumber(int value) { switch (value) { - case 6: - return STREAMING_CONFIG; - case 0: - return NOTIFYCONFIG_NOT_SET; - default: - return null; + case 6: return STREAMING_CONFIG; + case 0: return NOTIFYCONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public NotifyConfigCase getNotifyConfigCase() { - return NotifyConfigCase.forNumber(notifyConfigCase_); + public NotifyConfigCase + getNotifyConfigCase() { + return NotifyConfigCase.forNumber( + notifyConfigCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The relative resource name of this notification config. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1186,7 +1067,6 @@ public NotifyConfigCase getNotifyConfigCase() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1195,15 +1075,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The relative resource name of this notification config. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1212,15 +1091,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1231,14 +1111,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * The description of the notification config (max of 1024 characters).
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -1247,29 +1124,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * The description of the notification config (max of 1024 characters).
    * 
* * string description = 2; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1280,55 +1157,39 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int EVENT_TYPE_FIELD_NUMBER = 3; private int eventType_; /** - * - * *
    * The type of events the config is for, e.g. FINDING.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; * @return The enum numeric value on the wire for eventType. */ - @java.lang.Override - public int getEventTypeValue() { + @java.lang.Override public int getEventTypeValue() { return eventType_; } /** - * - * *
    * The type of events the config is for, e.g. FINDING.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; * @return The eventType. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType getEventType() { + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType getEventType() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType result = - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType.valueOf(eventType_); - return result == null - ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType result = com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType.valueOf(eventType_); + return result == null ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType.UNRECOGNIZED : result; } public static final int PUBSUB_TOPIC_FIELD_NUMBER = 4; private volatile java.lang.Object pubsubTopic_; /** - * - * *
    * The Pub/Sub topic to send notifications to. Its format is
    * "projects/[project_id]/topics/[topic]".
    * 
* * string pubsub_topic = 4 [(.google.api.resource_reference) = { ... } - * * @return The pubsubTopic. */ @java.lang.Override @@ -1337,30 +1198,30 @@ public java.lang.String getPubsubTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopic_ = s; return s; } } /** - * - * *
    * The Pub/Sub topic to send notifications to. Its format is
    * "projects/[project_id]/topics/[topic]".
    * 
* * string pubsub_topic = 4 [(.google.api.resource_reference) = { ... } - * * @return The bytes for pubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString getPubsubTopicBytes() { + public com.google.protobuf.ByteString + getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pubsubTopic_ = b; return b; } else { @@ -1371,15 +1232,12 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 5; private volatile java.lang.Object serviceAccount_; /** - * - * *
    * Output only. The service account that needs "pubsub.topics.publish"
    * permission to publish to the Pub/Sub topic.
    * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccount. */ @java.lang.Override @@ -1388,30 +1246,30 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** - * - * *
    * Output only. The service account that needs "pubsub.topics.publish"
    * permission to publish to the Pub/Sub topic.
    * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -1421,16 +1279,11 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { public static final int STREAMING_CONFIG_FIELD_NUMBER = 6; /** - * - * *
    * The config for triggering streaming-based notifications.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -1438,52 +1291,36 @@ public boolean hasStreamingConfig() { return notifyConfigCase_ == 6; } /** - * - * *
    * The config for triggering streaming-based notifications.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; * @return The streamingConfig. */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - getStreamingConfig() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig getStreamingConfig() { if (notifyConfigCase_ == 6) { - return (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) - notifyConfig_; + return (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) notifyConfig_; } - return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - .getDefaultInstance(); + return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.getDefaultInstance(); } /** - * - * *
    * The config for triggering streaming-based notifications.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder - getStreamingConfigOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder() { if (notifyConfigCase_ == 6) { - return (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) - notifyConfig_; + return (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) notifyConfig_; } - return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - .getDefaultInstance(); + return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1495,17 +1332,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } - if (eventType_ - != com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType - .EVENT_TYPE_UNSPECIFIED - .getNumber()) { + if (eventType_ != com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType.EVENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, eventType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pubsubTopic_)) { @@ -1515,10 +1350,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceAccount_); } if (notifyConfigCase_ == 6) { - output.writeMessage( - 6, - (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) - notifyConfig_); + output.writeMessage(6, (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) notifyConfig_); } unknownFields.writeTo(output); } @@ -1535,11 +1367,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } - if (eventType_ - != com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType - .EVENT_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, eventType_); + if (eventType_ != com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType.EVENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, eventType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pubsubTopic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pubsubTopic_); @@ -1548,11 +1378,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceAccount_); } if (notifyConfigCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, - (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) - notifyConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) notifyConfig_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1562,23 +1389,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.NotificationConfig)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig other = - (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig) obj; + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig other = (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (eventType_ != other.eventType_) return false; - if (!getPubsubTopic().equals(other.getPubsubTopic())) return false; - if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getPubsubTopic() + .equals(other.getPubsubTopic())) return false; + if (!getServiceAccount() + .equals(other.getServiceAccount())) return false; if (!getNotifyConfigCase().equals(other.getNotifyConfigCase())) return false; switch (notifyConfigCase_) { case 6: - if (!getStreamingConfig().equals(other.getStreamingConfig())) return false; + if (!getStreamingConfig() + .equals(other.getStreamingConfig())) return false; break; case 0: default: @@ -1618,104 +1449,96 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Security Command Center notification configs.
    * A notification config is a Security Command Center resource that contains the
@@ -1725,23 +1548,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.NotificationConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.NotificationConfig)
       com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.class,
-              com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder.class);
+              com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.class, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.newBuilder()
@@ -1749,15 +1570,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1777,14 +1599,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig
-        getDefaultInstanceForType() {
+    public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getDefaultInstanceForType() {
       return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance();
     }
 
@@ -1799,8 +1620,7 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig buildPartial() {
-      com.google.cloud.securitycenter.v1p1beta1.NotificationConfig result =
-          new com.google.cloud.securitycenter.v1p1beta1.NotificationConfig(this);
+      com.google.cloud.securitycenter.v1p1beta1.NotificationConfig result = new com.google.cloud.securitycenter.v1p1beta1.NotificationConfig(this);
       result.name_ = name_;
       result.description_ = description_;
       result.eventType_ = eventType_;
@@ -1822,39 +1642,38 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig buildPartial
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1p1beta1.NotificationConfig) {
-        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.NotificationConfig) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.NotificationConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1862,9 +1681,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig other) {
-      if (other
-          == com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1885,15 +1702,13 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.NotificationC
         onChanged();
       }
       switch (other.getNotifyConfigCase()) {
-        case STREAMING_CONFIG:
-          {
-            mergeStreamingConfig(other.getStreamingConfig());
-            break;
-          }
-        case NOTIFYCONFIG_NOT_SET:
-          {
-            break;
-          }
+        case STREAMING_CONFIG: {
+          mergeStreamingConfig(other.getStreamingConfig());
+          break;
+        }
+        case NOTIFYCONFIG_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1914,8 +1729,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1924,12 +1738,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int notifyConfigCase_ = 0;
     private java.lang.Object notifyConfig_;
-
-    public NotifyConfigCase getNotifyConfigCase() {
-      return NotifyConfigCase.forNumber(notifyConfigCase_);
+    public NotifyConfigCase
+        getNotifyConfigCase() {
+      return NotifyConfigCase.forNumber(
+          notifyConfigCase_);
     }
 
     public Builder clearNotifyConfig() {
@@ -1939,10 +1753,9 @@ public Builder clearNotifyConfig() {
       return this;
     }
 
+
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The relative resource name of this notification config. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1951,13 +1764,13 @@ public Builder clearNotifyConfig() {
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1966,8 +1779,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The relative resource name of this notification config. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1976,14 +1787,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1991,8 +1803,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The relative resource name of this notification config. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2001,22 +1811,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The relative resource name of this notification config. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2025,18 +1833,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The relative resource name of this notification config. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2045,16 +1850,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2062,20 +1867,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * The description of the notification config (max of 1024 characters).
      * 
* * string description = 2; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2084,21 +1887,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * The description of the notification config (max of 1024 characters).
      * 
* * string description = 2; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2106,61 +1908,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * The description of the notification config (max of 1024 characters).
      * 
* * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * The description of the notification config (max of 1024 characters).
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * The description of the notification config (max of 1024 characters).
      * 
* * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2168,99 +1963,73 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int eventType_ = 0; /** - * - * *
      * The type of events the config is for, e.g. FINDING.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; * @return The enum numeric value on the wire for eventType. */ - @java.lang.Override - public int getEventTypeValue() { + @java.lang.Override public int getEventTypeValue() { return eventType_; } /** - * - * *
      * The type of events the config is for, e.g. FINDING.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; * @param value The enum numeric value on the wire for eventType to set. * @return This builder for chaining. */ public Builder setEventTypeValue(int value) { - + eventType_ = value; onChanged(); return this; } /** - * - * *
      * The type of events the config is for, e.g. FINDING.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; * @return The eventType. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType getEventType() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType result = - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType.valueOf( - eventType_); - return result == null - ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType result = com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType.valueOf(eventType_); + return result == null ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType.UNRECOGNIZED : result; } /** - * - * *
      * The type of events the config is for, e.g. FINDING.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; * @param value The eventType to set. * @return This builder for chaining. */ - public Builder setEventType( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType value) { + public Builder setEventType(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType value) { if (value == null) { throw new NullPointerException(); } - + eventType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The type of events the config is for, e.g. FINDING.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; * @return This builder for chaining. */ public Builder clearEventType() { - + eventType_ = 0; onChanged(); return this; @@ -2268,21 +2037,19 @@ public Builder clearEventType() { private java.lang.Object pubsubTopic_ = ""; /** - * - * *
      * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* * string pubsub_topic = 4 [(.google.api.resource_reference) = { ... } - * * @return The pubsubTopic. */ public java.lang.String getPubsubTopic() { java.lang.Object ref = pubsubTopic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopic_ = s; return s; @@ -2291,22 +2058,21 @@ public java.lang.String getPubsubTopic() { } } /** - * - * *
      * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* * string pubsub_topic = 4 [(.google.api.resource_reference) = { ... } - * * @return The bytes for pubsubTopic. */ - public com.google.protobuf.ByteString getPubsubTopicBytes() { + public com.google.protobuf.ByteString + getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pubsubTopic_ = b; return b; } else { @@ -2314,64 +2080,57 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { } } /** - * - * *
      * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* * string pubsub_topic = 4 [(.google.api.resource_reference) = { ... } - * * @param value The pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopic(java.lang.String value) { + public Builder setPubsubTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pubsubTopic_ = value; onChanged(); return this; } /** - * - * *
      * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* * string pubsub_topic = 4 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearPubsubTopic() { - + pubsubTopic_ = getDefaultInstance().getPubsubTopic(); onChanged(); return this; } /** - * - * *
      * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* * string pubsub_topic = 4 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { + public Builder setPubsubTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pubsubTopic_ = value; onChanged(); return this; @@ -2379,21 +2138,19 @@ public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAccount_ = ""; /** - * - * *
      * Output only. The service account that needs "pubsub.topics.publish"
      * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -2402,22 +2159,21 @@ public java.lang.String getServiceAccount() { } } /** - * - * *
      * Output only. The service account that needs "pubsub.topics.publish"
      * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -2425,85 +2181,70 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } /** - * - * *
      * Output only. The service account that needs "pubsub.topics.publish"
      * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount(java.lang.String value) { + public Builder setServiceAccount( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The service account that needs "pubsub.topics.publish"
      * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearServiceAccount() { - + serviceAccount_ = getDefaultInstance().getServiceAccount(); onChanged(); return this; } /** - * - * *
      * Output only. The service account that needs "pubsub.topics.publish"
      * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + public Builder setServiceAccountBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder> - streamingConfigBuilder_; + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder> streamingConfigBuilder_; /** - * - * *
      * The config for triggering streaming-based notifications.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -2511,49 +2252,35 @@ public boolean hasStreamingConfig() { return notifyConfigCase_ == 6; } /** - * - * *
      * The config for triggering streaming-based notifications.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; * @return The streamingConfig. */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - getStreamingConfig() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig getStreamingConfig() { if (streamingConfigBuilder_ == null) { if (notifyConfigCase_ == 6) { - return (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) - notifyConfig_; + return (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) notifyConfig_; } - return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - .getDefaultInstance(); + return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.getDefaultInstance(); } else { if (notifyConfigCase_ == 6) { return streamingConfigBuilder_.getMessage(); } - return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - .getDefaultInstance(); + return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.getDefaultInstance(); } } /** - * - * *
      * The config for triggering streaming-based notifications.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; */ - public Builder setStreamingConfig( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig value) { + public Builder setStreamingConfig(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig value) { if (streamingConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2567,19 +2294,14 @@ public Builder setStreamingConfig( return this; } /** - * - * *
      * The config for triggering streaming-based notifications.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; */ public Builder setStreamingConfig( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder - builderForValue) { + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder builderForValue) { if (streamingConfigBuilder_ == null) { notifyConfig_ = builderForValue.build(); onChanged(); @@ -2590,30 +2312,18 @@ public Builder setStreamingConfig( return this; } /** - * - * *
      * The config for triggering streaming-based notifications.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; */ - public Builder mergeStreamingConfig( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig value) { + public Builder mergeStreamingConfig(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig value) { if (streamingConfigBuilder_ == null) { - if (notifyConfigCase_ == 6 - && notifyConfig_ - != com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - .getDefaultInstance()) { - notifyConfig_ = - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - .newBuilder( - (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) - notifyConfig_) - .mergeFrom(value) - .buildPartial(); + if (notifyConfigCase_ == 6 && + notifyConfig_ != com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.getDefaultInstance()) { + notifyConfig_ = com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.newBuilder((com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) notifyConfig_) + .mergeFrom(value).buildPartial(); } else { notifyConfig_ = value; } @@ -2629,15 +2339,11 @@ public Builder mergeStreamingConfig( return this; } /** - * - * *
      * The config for triggering streaming-based notifications.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; */ public Builder clearStreamingConfig() { if (streamingConfigBuilder_ == null) { @@ -2656,88 +2362,61 @@ public Builder clearStreamingConfig() { return this; } /** - * - * *
      * The config for triggering streaming-based notifications.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder - getStreamingConfigBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder getStreamingConfigBuilder() { return getStreamingConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The config for triggering streaming-based notifications.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder - getStreamingConfigOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder() { if ((notifyConfigCase_ == 6) && (streamingConfigBuilder_ != null)) { return streamingConfigBuilder_.getMessageOrBuilder(); } else { if (notifyConfigCase_ == 6) { - return (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) - notifyConfig_; + return (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) notifyConfig_; } - return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - .getDefaultInstance(); + return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.getDefaultInstance(); } } /** - * - * *
      * The config for triggering streaming-based notifications.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder> getStreamingConfigFieldBuilder() { if (streamingConfigBuilder_ == null) { if (!(notifyConfigCase_ == 6)) { - notifyConfig_ = - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - .getDefaultInstance(); + notifyConfig_ = com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.getDefaultInstance(); } - streamingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig - .Builder, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig - .StreamingConfigOrBuilder>( - (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) - notifyConfig_, + streamingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder>( + (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) notifyConfig_, getParentForChildren(), isClean()); notifyConfig_ = null; } notifyConfigCase_ = 6; - onChanged(); - ; + onChanged();; return streamingConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2747,13 +2426,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.NotificationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.NotificationConfig) - private static final com.google.cloud.securitycenter.v1p1beta1.NotificationConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.NotificationConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.NotificationConfig(); } @@ -2762,16 +2440,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NotificationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NotificationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2786,4 +2464,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigName.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigName.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigName.java diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java similarity index 70% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java index 7b2034f36..2a24fe53a 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/notification_config.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface NotificationConfigOrBuilder - extends +public interface NotificationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.NotificationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The relative resource name of this notification config. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -34,13 +16,10 @@ public interface NotificationConfigOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The relative resource name of this notification config. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -49,159 +28,120 @@ public interface NotificationConfigOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The description of the notification config (max of 1024 characters).
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * The description of the notification config (max of 1024 characters).
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * The type of events the config is for, e.g. FINDING.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; * @return The enum numeric value on the wire for eventType. */ int getEventTypeValue(); /** - * - * *
    * The type of events the config is for, e.g. FINDING.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; * @return The eventType. */ com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType getEventType(); /** - * - * *
    * The Pub/Sub topic to send notifications to. Its format is
    * "projects/[project_id]/topics/[topic]".
    * 
* * string pubsub_topic = 4 [(.google.api.resource_reference) = { ... } - * * @return The pubsubTopic. */ java.lang.String getPubsubTopic(); /** - * - * *
    * The Pub/Sub topic to send notifications to. Its format is
    * "projects/[project_id]/topics/[topic]".
    * 
* * string pubsub_topic = 4 [(.google.api.resource_reference) = { ... } - * * @return The bytes for pubsubTopic. */ - com.google.protobuf.ByteString getPubsubTopicBytes(); + com.google.protobuf.ByteString + getPubsubTopicBytes(); /** - * - * *
    * Output only. The service account that needs "pubsub.topics.publish"
    * permission to publish to the Pub/Sub topic.
    * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** - * - * *
    * Output only. The service account that needs "pubsub.topics.publish"
    * permission to publish to the Pub/Sub topic.
    * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString getServiceAccountBytes(); + com.google.protobuf.ByteString + getServiceAccountBytes(); /** - * - * *
    * The config for triggering streaming-based notifications.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; * @return Whether the streamingConfig field is set. */ boolean hasStreamingConfig(); /** - * - * *
    * The config for triggering streaming-based notifications.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; * @return The streamingConfig. */ com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig getStreamingConfig(); /** - * - * *
    * The config for triggering streaming-based notifications.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; */ - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder - getStreamingConfigOrBuilder(); + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder(); - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.NotifyConfigCase - getNotifyConfigCase(); + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.NotifyConfigCase getNotifyConfigCase(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOuterClass.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOuterClass.java new file mode 100644 index 000000000..c027d7863 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOuterClass.java @@ -0,0 +1,98 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/notification_config.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class NotificationConfigOuterClass { + private NotificationConfigOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n?google/cloud/securitycenter/v1p1beta1/" + + "notification_config.proto\022%google.cloud." + + "securitycenter.v1p1beta1\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\032\034google/api/annotations.proto\"\266\004\n\022N" + + "otificationConfig\022\014\n\004name\030\001 \001(\t\022\023\n\013descr" + + "iption\030\002 \001(\t\022W\n\nevent_type\030\003 \001(\0162C.googl" + + "e.cloud.securitycenter.v1p1beta1.Notific" + + "ationConfig.EventType\0226\n\014pubsub_topic\030\004 " + + "\001(\tB \372A\035\n\033pubsub.googleapis.com/Topic\022\034\n" + + "\017service_account\030\005 \001(\tB\003\340A\003\022e\n\020streaming" + + "_config\030\006 \001(\0132I.google.cloud.securitycen" + + "ter.v1p1beta1.NotificationConfig.Streami" + + "ngConfigH\000\032!\n\017StreamingConfig\022\016\n\006filter\030" + + "\001 \001(\t\"4\n\tEventType\022\032\n\026EVENT_TYPE_UNSPECI" + + "FIED\020\000\022\013\n\007FINDING\020\001:}\352Az\n0securitycenter" + + ".googleapis.com/NotificationConfig\022Forga" + + "nizations/{organization}/notificationCon" + + "figs/{notification_config}B\017\n\rnotify_con" + + "figB\300\002\n)com.google.cloud.securitycenter." + + "v1p1beta1P\001ZSgoogle.golang.org/genproto/" + + "googleapis/cloud/securitycenter/v1p1beta" + + "1;securitycenter\252\002%Google.Cloud.Security" + + "Center.V1P1Beta1\312\002%Google\\Cloud\\Security" + + "Center\\V1p1beta1\352\002(Google::Cloud::Securi" + + "tyCenter::V1p1beta1\352A@\n\033pubsub.googleapi" + + "s.com/Topic\022!projects/{project}/topics/{" + + "topic}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor, + new java.lang.String[] { "Name", "Description", "EventType", "PubsubTopic", "ServiceAccount", "StreamingConfig", "NotifyConfig", }); + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor, + new java.lang.String[] { "Filter", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java similarity index 71% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java index f958ed485..8eb59834a 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/notification_message.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Security Command Center's Notification
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.NotificationMessage} */ -public final class NotificationMessage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NotificationMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.NotificationMessage) NotificationMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NotificationMessage.newBuilder() to construct. private NotificationMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NotificationMessage() { notificationConfigName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NotificationMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private NotificationMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,55 +53,46 @@ private NotificationMessage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - notificationConfigName_ = s; - break; + notificationConfigName_ = s; + break; + } + case 18: { + com.google.cloud.securitycenter.v1p1beta1.Finding.Builder subBuilder = null; + if (eventCase_ == 2) { + subBuilder = ((com.google.cloud.securitycenter.v1p1beta1.Finding) event_).toBuilder(); } - case 18: - { - com.google.cloud.securitycenter.v1p1beta1.Finding.Builder subBuilder = null; - if (eventCase_ == 2) { - subBuilder = - ((com.google.cloud.securitycenter.v1p1beta1.Finding) event_).toBuilder(); - } - event_ = - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.Finding.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Finding) event_); - event_ = subBuilder.buildPartial(); - } - eventCase_ = 2; - break; + event_ = + input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Finding.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Finding) event_); + event_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.securitycenter.v1p1beta1.Resource.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.Resource.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - - break; + eventCase_ = 2; + break; + } + case 26: { + com.google.cloud.securitycenter.v1p1beta1.Resource.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Resource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -126,39 +100,34 @@ private NotificationMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.class, - com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.class, com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.Builder.class); } private int eventCase_ = 0; private java.lang.Object event_; - public enum EventCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FINDING(2), EVENT_NOT_SET(0); private final int value; - private EventCase(int value) { this.value = value; } @@ -174,35 +143,30 @@ public static EventCase valueOf(int value) { public static EventCase forNumber(int value) { switch (value) { - case 2: - return FINDING; - case 0: - return EVENT_NOT_SET; - default: - return null; + case 2: return FINDING; + case 0: return EVENT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public EventCase getEventCase() { - return EventCase.forNumber(eventCase_); + public EventCase + getEventCase() { + return EventCase.forNumber( + eventCase_); } public static final int NOTIFICATION_CONFIG_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object notificationConfigName_; /** - * - * *
    * Name of the notification config that generated current notification.
    * 
* * string notification_config_name = 1; - * * @return The notificationConfigName. */ @java.lang.Override @@ -211,29 +175,29 @@ public java.lang.String getNotificationConfigName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notificationConfigName_ = s; return s; } } /** - * - * *
    * Name of the notification config that generated current notification.
    * 
* * string notification_config_name = 1; - * * @return The bytes for notificationConfigName. */ @java.lang.Override - public com.google.protobuf.ByteString getNotificationConfigNameBytes() { + public com.google.protobuf.ByteString + getNotificationConfigNameBytes() { java.lang.Object ref = notificationConfigName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); notificationConfigName_ = b; return b; } else { @@ -243,15 +207,12 @@ public com.google.protobuf.ByteString getNotificationConfigNameBytes() { public static final int FINDING_FIELD_NUMBER = 2; /** - * - * *
    * If it's a Finding based notification config, this field will be
    * populated.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 2; - * * @return Whether the finding field is set. */ @java.lang.Override @@ -259,27 +220,22 @@ public boolean hasFinding() { return eventCase_ == 2; } /** - * - * *
    * If it's a Finding based notification config, this field will be
    * populated.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 2; - * * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { if (eventCase_ == 2) { - return (com.google.cloud.securitycenter.v1p1beta1.Finding) event_; + return (com.google.cloud.securitycenter.v1p1beta1.Finding) event_; } return com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance(); } /** - * - * *
    * If it's a Finding based notification config, this field will be
    * populated.
@@ -290,7 +246,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() {
   @java.lang.Override
   public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder() {
     if (eventCase_ == 2) {
-      return (com.google.cloud.securitycenter.v1p1beta1.Finding) event_;
+       return (com.google.cloud.securitycenter.v1p1beta1.Finding) event_;
     }
     return com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance();
   }
@@ -298,14 +254,11 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu
   public static final int RESOURCE_FIELD_NUMBER = 3;
   private com.google.cloud.securitycenter.v1p1beta1.Resource resource_;
   /**
-   *
-   *
    * 
    * The Cloud resource tied to the notification.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -313,25 +266,18 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * The Cloud resource tied to the notification.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; - * * @return The resource. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Resource getResource() { - return resource_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance() : resource_; } /** - * - * *
    * The Cloud resource tied to the notification.
    * 
@@ -344,7 +290,6 @@ public com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder getResourceOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -356,7 +301,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notificationConfigName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, notificationConfigName_); } @@ -379,12 +325,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, notificationConfigName_); } if (eventCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.securitycenter.v1p1beta1.Finding) event_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.securitycenter.v1p1beta1.Finding) event_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -394,23 +340,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.NotificationMessage)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.NotificationMessage other = - (com.google.cloud.securitycenter.v1p1beta1.NotificationMessage) obj; + com.google.cloud.securitycenter.v1p1beta1.NotificationMessage other = (com.google.cloud.securitycenter.v1p1beta1.NotificationMessage) obj; - if (!getNotificationConfigName().equals(other.getNotificationConfigName())) return false; + if (!getNotificationConfigName() + .equals(other.getNotificationConfigName())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } if (!getEventCase().equals(other.getEventCase())) return false; switch (eventCase_) { case 2: - if (!getFinding().equals(other.getFinding())) return false; + if (!getFinding() + .equals(other.getFinding())) return false; break; case 0: default: @@ -446,127 +394,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.NotificationMessage prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.NotificationMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Security Command Center's Notification
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.NotificationMessage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.NotificationMessage) com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.class, - com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.class, com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.newBuilder() @@ -574,15 +512,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -600,14 +539,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationMessage - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationMessage getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.getDefaultInstance(); } @@ -622,8 +560,7 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationMessage build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationMessage buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.NotificationMessage result = - new com.google.cloud.securitycenter.v1p1beta1.NotificationMessage(this); + com.google.cloud.securitycenter.v1p1beta1.NotificationMessage result = new com.google.cloud.securitycenter.v1p1beta1.NotificationMessage(this); result.notificationConfigName_ = notificationConfigName_; if (eventCase_ == 2) { if (findingBuilder_ == null) { @@ -646,39 +583,38 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationMessage buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.NotificationMessage) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.NotificationMessage) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.NotificationMessage)other); } else { super.mergeFrom(other); return this; @@ -686,9 +622,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.NotificationMessage other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.getDefaultInstance()) return this; if (!other.getNotificationConfigName().isEmpty()) { notificationConfigName_ = other.notificationConfigName_; onChanged(); @@ -697,15 +631,13 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.NotificationM mergeResource(other.getResource()); } switch (other.getEventCase()) { - case FINDING: - { - mergeFinding(other.getFinding()); - break; - } - case EVENT_NOT_SET: - { - break; - } + case FINDING: { + mergeFinding(other.getFinding()); + break; + } + case EVENT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -726,9 +658,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.NotificationMessage) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.NotificationMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -737,12 +667,12 @@ public Builder mergeFrom( } return this; } - private int eventCase_ = 0; private java.lang.Object event_; - - public EventCase getEventCase() { - return EventCase.forNumber(eventCase_); + public EventCase + getEventCase() { + return EventCase.forNumber( + eventCase_); } public Builder clearEvent() { @@ -752,22 +682,21 @@ public Builder clearEvent() { return this; } + private java.lang.Object notificationConfigName_ = ""; /** - * - * *
      * Name of the notification config that generated current notification.
      * 
* * string notification_config_name = 1; - * * @return The notificationConfigName. */ public java.lang.String getNotificationConfigName() { java.lang.Object ref = notificationConfigName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notificationConfigName_ = s; return s; @@ -776,21 +705,20 @@ public java.lang.String getNotificationConfigName() { } } /** - * - * *
      * Name of the notification config that generated current notification.
      * 
* * string notification_config_name = 1; - * * @return The bytes for notificationConfigName. */ - public com.google.protobuf.ByteString getNotificationConfigNameBytes() { + public com.google.protobuf.ByteString + getNotificationConfigNameBytes() { java.lang.Object ref = notificationConfigName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); notificationConfigName_ = b; return b; } else { @@ -798,81 +726,68 @@ public com.google.protobuf.ByteString getNotificationConfigNameBytes() { } } /** - * - * *
      * Name of the notification config that generated current notification.
      * 
* * string notification_config_name = 1; - * * @param value The notificationConfigName to set. * @return This builder for chaining. */ - public Builder setNotificationConfigName(java.lang.String value) { + public Builder setNotificationConfigName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + notificationConfigName_ = value; onChanged(); return this; } /** - * - * *
      * Name of the notification config that generated current notification.
      * 
* * string notification_config_name = 1; - * * @return This builder for chaining. */ public Builder clearNotificationConfigName() { - + notificationConfigName_ = getDefaultInstance().getNotificationConfigName(); onChanged(); return this; } /** - * - * *
      * Name of the notification config that generated current notification.
      * 
* * string notification_config_name = 1; - * * @param value The bytes for notificationConfigName to set. * @return This builder for chaining. */ - public Builder setNotificationConfigNameBytes(com.google.protobuf.ByteString value) { + public Builder setNotificationConfigNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + notificationConfigName_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Finding, - com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, - com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> - findingBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> findingBuilder_; /** - * - * *
      * If it's a Finding based notification config, this field will be
      * populated.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 2; - * * @return Whether the finding field is set. */ @java.lang.Override @@ -880,15 +795,12 @@ public boolean hasFinding() { return eventCase_ == 2; } /** - * - * *
      * If it's a Finding based notification config, this field will be
      * populated.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 2; - * * @return The finding. */ @java.lang.Override @@ -906,8 +818,6 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { } } /** - * - * *
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -929,8 +839,6 @@ public Builder setFinding(com.google.cloud.securitycenter.v1p1beta1.Finding valu
       return this;
     }
     /**
-     *
-     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -950,8 +858,6 @@ public Builder setFinding(
       return this;
     }
     /**
-     *
-     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -961,13 +867,10 @@ public Builder setFinding(
      */
     public Builder mergeFinding(com.google.cloud.securitycenter.v1p1beta1.Finding value) {
       if (findingBuilder_ == null) {
-        if (eventCase_ == 2
-            && event_ != com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance()) {
-          event_ =
-              com.google.cloud.securitycenter.v1p1beta1.Finding.newBuilder(
-                      (com.google.cloud.securitycenter.v1p1beta1.Finding) event_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (eventCase_ == 2 &&
+            event_ != com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance()) {
+          event_ = com.google.cloud.securitycenter.v1p1beta1.Finding.newBuilder((com.google.cloud.securitycenter.v1p1beta1.Finding) event_)
+              .mergeFrom(value).buildPartial();
         } else {
           event_ = value;
         }
@@ -983,8 +886,6 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1p1beta1.Finding va
       return this;
     }
     /**
-     *
-     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -1009,8 +910,6 @@ public Builder clearFinding() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -1022,8 +921,6 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding.Builder getFindingBuild
       return getFindingFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -1043,8 +940,6 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu
       }
     }
     /**
-     *
-     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -1053,73 +948,54 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu
      * .google.cloud.securitycenter.v1p1beta1.Finding finding = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1p1beta1.Finding,
-            com.google.cloud.securitycenter.v1p1beta1.Finding.Builder,
-            com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder>
+        com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> 
         getFindingFieldBuilder() {
       if (findingBuilder_ == null) {
         if (!(eventCase_ == 2)) {
           event_ = com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance();
         }
-        findingBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.securitycenter.v1p1beta1.Finding,
-                com.google.cloud.securitycenter.v1p1beta1.Finding.Builder,
-                com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder>(
+        findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder>(
                 (com.google.cloud.securitycenter.v1p1beta1.Finding) event_,
                 getParentForChildren(),
                 isClean());
         event_ = null;
       }
       eventCase_ = 2;
-      onChanged();
-      ;
+      onChanged();;
       return findingBuilder_;
     }
 
     private com.google.cloud.securitycenter.v1p1beta1.Resource resource_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1p1beta1.Resource,
-            com.google.cloud.securitycenter.v1p1beta1.Resource.Builder,
-            com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder>
-        resourceBuilder_;
+        com.google.cloud.securitycenter.v1p1beta1.Resource, com.google.cloud.securitycenter.v1p1beta1.Resource.Builder, com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder> resourceBuilder_;
     /**
-     *
-     *
      * 
      * The Cloud resource tied to the notification.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; - * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
      * The Cloud resource tied to the notification.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; - * * @return The resource. */ public com.google.cloud.securitycenter.v1p1beta1.Resource getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
      * The Cloud resource tied to the notification.
      * 
@@ -1140,8 +1016,6 @@ public Builder setResource(com.google.cloud.securitycenter.v1p1beta1.Resource va return this; } /** - * - * *
      * The Cloud resource tied to the notification.
      * 
@@ -1160,8 +1034,6 @@ public Builder setResource( return this; } /** - * - * *
      * The Cloud resource tied to the notification.
      * 
@@ -1172,9 +1044,7 @@ public Builder mergeResource(com.google.cloud.securitycenter.v1p1beta1.Resource if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.securitycenter.v1p1beta1.Resource.newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -1186,8 +1056,6 @@ public Builder mergeResource(com.google.cloud.securitycenter.v1p1beta1.Resource return this; } /** - * - * *
      * The Cloud resource tied to the notification.
      * 
@@ -1206,8 +1074,6 @@ public Builder clearResource() { return this; } /** - * - * *
      * The Cloud resource tied to the notification.
      * 
@@ -1215,13 +1081,11 @@ public Builder clearResource() { * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; */ public com.google.cloud.securitycenter.v1p1beta1.Resource.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
      * The Cloud resource tied to the notification.
      * 
@@ -1232,14 +1096,11 @@ public com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder getResourceOr if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance() : resource_; } } /** - * - * *
      * The Cloud resource tied to the notification.
      * 
@@ -1247,24 +1108,21 @@ public com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder getResourceOr * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Resource, - com.google.cloud.securitycenter.v1p1beta1.Resource.Builder, - com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.Resource, com.google.cloud.securitycenter.v1p1beta1.Resource.Builder, com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Resource, - com.google.cloud.securitycenter.v1p1beta1.Resource.Builder, - com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Resource, com.google.cloud.securitycenter.v1p1beta1.Resource.Builder, com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1274,13 +1132,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.NotificationMessage) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.NotificationMessage) - private static final com.google.cloud.securitycenter.v1p1beta1.NotificationMessage - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.NotificationMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.NotificationMessage(); } @@ -1289,16 +1146,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NotificationMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NotificationMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1313,4 +1170,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.NotificationMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java similarity index 75% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java index 41bbd477f..da337e78c 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java @@ -1,82 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/notification_message.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface NotificationMessageOrBuilder - extends +public interface NotificationMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.NotificationMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Name of the notification config that generated current notification.
    * 
* * string notification_config_name = 1; - * * @return The notificationConfigName. */ java.lang.String getNotificationConfigName(); /** - * - * *
    * Name of the notification config that generated current notification.
    * 
* * string notification_config_name = 1; - * * @return The bytes for notificationConfigName. */ - com.google.protobuf.ByteString getNotificationConfigNameBytes(); + com.google.protobuf.ByteString + getNotificationConfigNameBytes(); /** - * - * *
    * If it's a Finding based notification config, this field will be
    * populated.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 2; - * * @return Whether the finding field is set. */ boolean hasFinding(); /** - * - * *
    * If it's a Finding based notification config, this field will be
    * populated.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 2; - * * @return The finding. */ com.google.cloud.securitycenter.v1p1beta1.Finding getFinding(); /** - * - * *
    * If it's a Finding based notification config, this field will be
    * populated.
@@ -87,32 +58,24 @@ public interface NotificationMessageOrBuilder
   com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder();
 
   /**
-   *
-   *
    * 
    * The Cloud resource tied to the notification.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * The Cloud resource tied to the notification.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; - * * @return The resource. */ com.google.cloud.securitycenter.v1p1beta1.Resource getResource(); /** - * - * *
    * The Cloud resource tied to the notification.
    * 
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java new file mode 100644 index 000000000..90fd7b98f --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/notification_message.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class NotificationMessageOuterClass { + private NotificationMessageOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n@google/cloud/securitycenter/v1p1beta1/" + + "notification_message.proto\022%google.cloud" + + ".securitycenter.v1p1beta1\0323google/cloud/" + + "securitycenter/v1p1beta1/finding.proto\0324" + + "google/cloud/securitycenter/v1p1beta1/re" + + "source.proto\032\034google/api/annotations.pro" + + "to\"\306\001\n\023NotificationMessage\022 \n\030notificati" + + "on_config_name\030\001 \001(\t\022A\n\007finding\030\002 \001(\0132.." + + "google.cloud.securitycenter.v1p1beta1.Fi" + + "ndingH\000\022A\n\010resource\030\003 \001(\0132/.google.cloud" + + ".securitycenter.v1p1beta1.ResourceB\007\n\005ev" + + "entB\375\001\n)com.google.cloud.securitycenter." + + "v1p1beta1P\001ZSgoogle.golang.org/genproto/" + + "googleapis/cloud/securitycenter/v1p1beta" + + "1;securitycenter\252\002%Google.Cloud.Security" + + "Center.V1P1Beta1\312\002%Google\\Cloud\\Security" + + "Center\\V1p1beta1\352\002(Google::Cloud::Securi" + + "tyCenter::V1p1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor, + new java.lang.String[] { "NotificationConfigName", "Finding", "Resource", "Event", }); + com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.ResourceProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationName.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationName.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationName.java diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java similarity index 65% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java index a0d2ffc08..2d36d44b3 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/organization_settings.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * User specified settings that are attached to the Security Command
  * Center organization.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.OrganizationSettings}
  */
-public final class OrganizationSettings extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class OrganizationSettings extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.OrganizationSettings)
     OrganizationSettingsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use OrganizationSettings.newBuilder() to construct.
   private OrganizationSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private OrganizationSettings() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new OrganizationSettings();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private OrganizationSettings(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,45 +54,37 @@ private OrganizationSettings(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 16: {
+
+            enableAssetDiscovery_ = input.readBool();
+            break;
+          }
+          case 26: {
+            com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder subBuilder = null;
+            if (assetDiscoveryConfig_ != null) {
+              subBuilder = assetDiscoveryConfig_.toBuilder();
             }
-          case 16:
-            {
-              enableAssetDiscovery_ = input.readBool();
-              break;
+            assetDiscoveryConfig_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(assetDiscoveryConfig_);
+              assetDiscoveryConfig_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig
-                      .Builder
-                  subBuilder = null;
-              if (assetDiscoveryConfig_ != null) {
-                subBuilder = assetDiscoveryConfig_.toBuilder();
-              }
-              assetDiscoveryConfig_ =
-                  input.readMessage(
-                      com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings
-                          .AssetDiscoveryConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(assetDiscoveryConfig_);
-                assetDiscoveryConfig_ = subBuilder.buildPartial();
-              }
 
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -117,190 +92,151 @@ private OrganizationSettings(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass
-        .internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass
-        .internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.class,
-            com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder.class);
+            com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.class, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder.class);
   }
 
-  public interface AssetDiscoveryConfigOrBuilder
-      extends
+  public interface AssetDiscoveryConfigOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @return A list containing the projectIds. */ - java.util.List getProjectIdsList(); + java.util.List + getProjectIdsList(); /** - * - * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @return The count of projectIds. */ int getProjectIdsCount(); /** - * - * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @param index The index of the element to return. * @return The projectIds at the given index. */ java.lang.String getProjectIds(int index); /** - * - * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @param index The index of the value to return. * @return The bytes of the projectIds at the given index. */ - com.google.protobuf.ByteString getProjectIdsBytes(int index); + com.google.protobuf.ByteString + getProjectIdsBytes(int index); /** - * - * *
      * The mode to use for filtering asset discovery.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return The enum numeric value on the wire for inclusionMode. */ int getInclusionModeValue(); /** - * - * *
      * The mode to use for filtering asset discovery.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return The inclusionMode. */ - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode - getInclusionMode(); + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode(); /** - * - * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; - * * @return A list containing the folderIds. */ - java.util.List getFolderIdsList(); + java.util.List + getFolderIdsList(); /** - * - * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; - * * @return The count of folderIds. */ int getFolderIdsCount(); /** - * - * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; - * * @param index The index of the element to return. * @return The folderIds at the given index. */ java.lang.String getFolderIds(int index); /** - * - * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; - * * @param index The index of the value to return. * @return The bytes of the folderIds at the given index. */ - com.google.protobuf.ByteString getFolderIdsBytes(int index); + com.google.protobuf.ByteString + getFolderIdsBytes(int index); } /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* - * Protobuf type {@code - * google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig} + * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig} */ - public static final class AssetDiscoveryConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AssetDiscoveryConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) AssetDiscoveryConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AssetDiscoveryConfig.newBuilder() to construct. private AssetDiscoveryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AssetDiscoveryConfig() { projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; inclusionMode_ = 0; @@ -309,15 +245,16 @@ private AssetDiscoveryConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AssetDiscoveryConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AssetDiscoveryConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -337,40 +274,37 @@ private AssetDiscoveryConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - projectIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - projectIds_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + projectIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 16: - { - int rawValue = input.readEnum(); + projectIds_.add(s); + break; + } + case 16: { + int rawValue = input.readEnum(); - inclusionMode_ = rawValue; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - folderIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - folderIds_.add(s); - break; + inclusionMode_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + folderIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + folderIds_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -378,7 +312,8 @@ private AssetDiscoveryConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { projectIds_ = projectIds_.getUnmodifiableView(); @@ -390,27 +325,20 @@ private AssetDiscoveryConfig( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .class, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .Builder.class); + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.class, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder.class); } /** - * - * *
      * The mode of inclusion when running Asset Discovery.
      * Asset discovery can be limited by explicitly identifying projects to be
@@ -422,13 +350,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * discovery.
      * 
* - * Protobuf enum {@code - * google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode} + * Protobuf enum {@code google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode} */ - public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum { + public enum InclusionMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unspecified. Setting the mode with this value will disable
        * inclusion/exclusion filtering for Asset Discovery.
@@ -438,8 +364,6 @@ public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum {
        */
       INCLUSION_MODE_UNSPECIFIED(0),
       /**
-       *
-       *
        * 
        * Asset Discovery will capture only the resources within the projects
        * specified. All other resources will be ignored.
@@ -449,8 +373,6 @@ public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum {
        */
       INCLUDE_ONLY(1),
       /**
-       *
-       *
        * 
        * Asset Discovery will ignore all resources under the projects specified.
        * All other resources will be retrieved.
@@ -463,8 +385,6 @@ public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * Unspecified. Setting the mode with this value will disable
        * inclusion/exclusion filtering for Asset Discovery.
@@ -474,8 +394,6 @@ public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int INCLUSION_MODE_UNSPECIFIED_VALUE = 0;
       /**
-       *
-       *
        * 
        * Asset Discovery will capture only the resources within the projects
        * specified. All other resources will be ignored.
@@ -485,8 +403,6 @@ public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int INCLUDE_ONLY_VALUE = 1;
       /**
-       *
-       *
        * 
        * Asset Discovery will ignore all resources under the projects specified.
        * All other resources will be retrieved.
@@ -496,6 +412,7 @@ public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int EXCLUDE_VALUE = 2;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -520,46 +437,40 @@ public static InclusionMode valueOf(int value) {
        */
       public static InclusionMode forNumber(int value) {
         switch (value) {
-          case 0:
-            return INCLUSION_MODE_UNSPECIFIED;
-          case 1:
-            return INCLUDE_ONLY;
-          case 2:
-            return EXCLUDE;
-          default:
-            return null;
+          case 0: return INCLUSION_MODE_UNSPECIFIED;
+          case 1: return INCLUDE_ONLY;
+          case 2: return EXCLUDE;
+          default: return null;
         }
       }
 
-      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+      public static com.google.protobuf.Internal.EnumLiteMap
+          internalGetValueMap() {
         return internalValueMap;
       }
+      private static final com.google.protobuf.Internal.EnumLiteMap<
+          InclusionMode> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public InclusionMode findValueByNumber(int number) {
+                return InclusionMode.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap
-          internalValueMap =
-              new com.google.protobuf.Internal.EnumLiteMap() {
-                public InclusionMode findValueByNumber(int number) {
-                  return InclusionMode.forNumber(number);
-                }
-              };
-
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor
+          getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-
-      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+      public final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptorForType() {
         return getDescriptor();
       }
-
-      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-        return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig
-            .getDescriptor()
-            .getEnumTypes()
-            .get(0);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final InclusionMode[] VALUES = values();
@@ -567,7 +478,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
       public static InclusionMode valueOf(
           com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException(
+            "EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -587,42 +499,34 @@ private InclusionMode(int value) {
     public static final int PROJECT_IDS_FIELD_NUMBER = 1;
     private com.google.protobuf.LazyStringList projectIds_;
     /**
-     *
-     *
      * 
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @return A list containing the projectIds. */ - public com.google.protobuf.ProtocolStringList getProjectIdsList() { + public com.google.protobuf.ProtocolStringList + getProjectIdsList() { return projectIds_; } /** - * - * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @return The count of projectIds. */ public int getProjectIdsCount() { return projectIds_.size(); } /** - * - * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @param index The index of the element to return. * @return The projectIds at the given index. */ @@ -630,111 +534,80 @@ public java.lang.String getProjectIds(int index) { return projectIds_.get(index); } /** - * - * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; - * * @param index The index of the value to return. * @return The bytes of the projectIds at the given index. */ - public com.google.protobuf.ByteString getProjectIdsBytes(int index) { + public com.google.protobuf.ByteString + getProjectIdsBytes(int index) { return projectIds_.getByteString(index); } public static final int INCLUSION_MODE_FIELD_NUMBER = 2; private int inclusionMode_; /** - * - * *
      * The mode to use for filtering asset discovery.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return The enum numeric value on the wire for inclusionMode. */ - @java.lang.Override - public int getInclusionModeValue() { + @java.lang.Override public int getInclusionModeValue() { return inclusionMode_; } /** - * - * *
      * The mode to use for filtering asset discovery.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return The inclusionMode. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode - getInclusionMode() { + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode - result = - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode.valueOf(inclusionMode_); - return result == null - ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode result = com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.valueOf(inclusionMode_); + return result == null ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.UNRECOGNIZED : result; } public static final int FOLDER_IDS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList folderIds_; /** - * - * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; - * * @return A list containing the folderIds. */ - public com.google.protobuf.ProtocolStringList getFolderIdsList() { + public com.google.protobuf.ProtocolStringList + getFolderIdsList() { return folderIds_; } /** - * - * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; - * * @return The count of folderIds. */ public int getFolderIdsCount() { return folderIds_.size(); } /** - * - * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; - * * @param index The index of the element to return. * @return The folderIds at the given index. */ @@ -742,24 +615,21 @@ public java.lang.String getFolderIds(int index) { return folderIds_.get(index); } /** - * - * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; - * * @param index The index of the value to return. * @return The bytes of the folderIds at the given index. */ - public com.google.protobuf.ByteString getFolderIdsBytes(int index) { + public com.google.protobuf.ByteString + getFolderIdsBytes(int index) { return folderIds_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -771,14 +641,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < projectIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectIds_.getRaw(i)); } - if (inclusionMode_ - != com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode.INCLUSION_MODE_UNSPECIFIED - .getNumber()) { + if (inclusionMode_ != com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.INCLUSION_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, inclusionMode_); } for (int i = 0; i < folderIds_.size(); i++) { @@ -801,11 +669,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getProjectIdsList().size(); } - if (inclusionMode_ - != com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode.INCLUSION_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, inclusionMode_); + if (inclusionMode_ != com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.INCLUSION_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, inclusionMode_); } { int dataSize = 0; @@ -823,19 +689,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig)) { + if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig other = - (com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) obj; + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig other = (com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) obj; - if (!getProjectIdsList().equals(other.getProjectIdsList())) return false; + if (!getProjectIdsList() + .equals(other.getProjectIdsList())) return false; if (inclusionMode_ != other.inclusionMode_) return false; - if (!getFolderIdsList().equals(other.getFolderIdsList())) return false; + if (!getFolderIdsList() + .equals(other.getFolderIdsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -862,114 +727,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .AssetDiscoveryConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .AssetDiscoveryConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .AssetDiscoveryConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .AssetDiscoveryConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .AssetDiscoveryConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .AssetDiscoveryConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .AssetDiscoveryConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .AssetDiscoveryConfig - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .AssetDiscoveryConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .AssetDiscoveryConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .AssetDiscoveryConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .AssetDiscoveryConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -979,53 +818,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * Protobuf type {@code - * google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig} + * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .AssetDiscoveryConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .class, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .Builder.class); + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.class, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.newBuilder() + // Construct using com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1039,23 +869,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - build() { - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig result = - buildPartial(); + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig build() { + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1063,11 +889,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig result = - new com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig( - this); + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig result = new com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { projectIds_ = projectIds_.getUnmodifiableView(); @@ -1088,57 +911,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) { - return mergeFrom( - (com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) - other); + if (other instanceof com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) { + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig other) { + if (other == com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance()) return this; if (!other.projectIds_.isEmpty()) { if (projectIds_.isEmpty()) { projectIds_ = other.projectIds_; @@ -1177,14 +989,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - parsedMessage = null; + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1193,55 +1002,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList projectIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureProjectIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { projectIds_ = new com.google.protobuf.LazyStringArrayList(projectIds_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @return A list containing the projectIds. */ - public com.google.protobuf.ProtocolStringList getProjectIdsList() { + public com.google.protobuf.ProtocolStringList + getProjectIdsList() { return projectIds_.getUnmodifiableView(); } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @return The count of projectIds. */ public int getProjectIdsCount() { return projectIds_.size(); } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @param index The index of the element to return. * @return The projectIds at the given index. */ @@ -1249,90 +1047,80 @@ public java.lang.String getProjectIds(int index) { return projectIds_.get(index); } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @param index The index of the value to return. * @return The bytes of the projectIds at the given index. */ - public com.google.protobuf.ByteString getProjectIdsBytes(int index) { + public com.google.protobuf.ByteString + getProjectIdsBytes(int index) { return projectIds_.getByteString(index); } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @param index The index to set the value at. * @param value The projectIds to set. * @return This builder for chaining. */ - public Builder setProjectIds(int index, java.lang.String value) { + public Builder setProjectIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProjectIdsIsMutable(); + throw new NullPointerException(); + } + ensureProjectIdsIsMutable(); projectIds_.set(index, value); onChanged(); return this; } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @param value The projectIds to add. * @return This builder for chaining. */ - public Builder addProjectIds(java.lang.String value) { + public Builder addProjectIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProjectIdsIsMutable(); + throw new NullPointerException(); + } + ensureProjectIdsIsMutable(); projectIds_.add(value); onChanged(); return this; } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @param values The projectIds to add. * @return This builder for chaining. */ - public Builder addAllProjectIds(java.lang.Iterable values) { + public Builder addAllProjectIds( + java.lang.Iterable values) { ensureProjectIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projectIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, projectIds_); onChanged(); return this; } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @return This builder for chaining. */ public Builder clearProjectIds() { @@ -1342,22 +1130,20 @@ public Builder clearProjectIds() { return this; } /** - * - * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; - * * @param value The bytes of the projectIds to add. * @return This builder for chaining. */ - public Builder addProjectIdsBytes(com.google.protobuf.ByteString value) { + public Builder addProjectIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureProjectIdsIsMutable(); projectIds_.add(value); onChanged(); @@ -1366,165 +1152,117 @@ public Builder addProjectIdsBytes(com.google.protobuf.ByteString value) { private int inclusionMode_ = 0; /** - * - * *
        * The mode to use for filtering asset discovery.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return The enum numeric value on the wire for inclusionMode. */ - @java.lang.Override - public int getInclusionModeValue() { + @java.lang.Override public int getInclusionModeValue() { return inclusionMode_; } /** - * - * *
        * The mode to use for filtering asset discovery.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @param value The enum numeric value on the wire for inclusionMode to set. * @return This builder for chaining. */ public Builder setInclusionModeValue(int value) { - + inclusionMode_ = value; onChanged(); return this; } /** - * - * *
        * The mode to use for filtering asset discovery.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return The inclusionMode. */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode - getInclusionMode() { + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode - result = - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode.valueOf(inclusionMode_); - return result == null - ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode result = com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.valueOf(inclusionMode_); + return result == null ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.UNRECOGNIZED : result; } /** - * - * *
        * The mode to use for filtering asset discovery.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @param value The inclusionMode to set. * @return This builder for chaining. */ - public Builder setInclusionMode( - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .InclusionMode - value) { + public Builder setInclusionMode(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode value) { if (value == null) { throw new NullPointerException(); } - + inclusionMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * The mode to use for filtering asset discovery.
        * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; * @return This builder for chaining. */ public Builder clearInclusionMode() { - + inclusionMode_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList folderIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList folderIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFolderIdsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { folderIds_ = new com.google.protobuf.LazyStringArrayList(folderIds_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; - * * @return A list containing the folderIds. */ - public com.google.protobuf.ProtocolStringList getFolderIdsList() { + public com.google.protobuf.ProtocolStringList + getFolderIdsList() { return folderIds_.getUnmodifiableView(); } /** - * - * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; - * * @return The count of folderIds. */ public int getFolderIdsCount() { return folderIds_.size(); } /** - * - * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; - * * @param index The index of the element to return. * @return The folderIds at the given index. */ @@ -1532,95 +1270,85 @@ public java.lang.String getFolderIds(int index) { return folderIds_.get(index); } /** - * - * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; - * * @param index The index of the value to return. * @return The bytes of the folderIds at the given index. */ - public com.google.protobuf.ByteString getFolderIdsBytes(int index) { + public com.google.protobuf.ByteString + getFolderIdsBytes(int index) { return folderIds_.getByteString(index); } /** - * - * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; - * * @param index The index to set the value at. * @param value The folderIds to set. * @return This builder for chaining. */ - public Builder setFolderIds(int index, java.lang.String value) { + public Builder setFolderIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFolderIdsIsMutable(); + throw new NullPointerException(); + } + ensureFolderIdsIsMutable(); folderIds_.set(index, value); onChanged(); return this; } /** - * - * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; - * * @param value The folderIds to add. * @return This builder for chaining. */ - public Builder addFolderIds(java.lang.String value) { + public Builder addFolderIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFolderIdsIsMutable(); + throw new NullPointerException(); + } + ensureFolderIdsIsMutable(); folderIds_.add(value); onChanged(); return this; } /** - * - * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; - * * @param values The folderIds to add. * @return This builder for chaining. */ - public Builder addAllFolderIds(java.lang.Iterable values) { + public Builder addAllFolderIds( + java.lang.Iterable values) { ensureFolderIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folderIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, folderIds_); onChanged(); return this; } /** - * - * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; - * * @return This builder for chaining. */ public Builder clearFolderIds() { @@ -1630,29 +1358,26 @@ public Builder clearFolderIds() { return this; } /** - * - * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; - * * @param value The bytes of the folderIds to add. * @return This builder for chaining. */ - public Builder addFolderIdsBytes(com.google.protobuf.ByteString value) { + public Builder addFolderIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFolderIdsIsMutable(); folderIds_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1665,35 +1390,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) - private static final com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .AssetDiscoveryConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig(); + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig(); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .AssetDiscoveryConfig - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssetDiscoveryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AssetDiscoveryConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetDiscoveryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AssetDiscoveryConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1705,17 +1425,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1724,7 +1442,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1733,15 +1450,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1750,15 +1466,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1769,8 +1486,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ENABLE_ASSET_DISCOVERY_FIELD_NUMBER = 2; private boolean enableAssetDiscovery_; /** - * - * *
    * A flag that indicates if Asset Discovery should be enabled. If the flag is
    * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -1779,7 +1494,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * bool enable_asset_discovery = 2; - * * @return The enableAssetDiscovery. */ @java.lang.Override @@ -1788,19 +1502,13 @@ public boolean getEnableAssetDiscovery() { } public static final int ASSET_DISCOVERY_CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - assetDiscoveryConfig_; + private com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig assetDiscoveryConfig_; /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * @return Whether the assetDiscoveryConfig field is set. */ @java.lang.Override @@ -1808,46 +1516,30 @@ public boolean hasAssetDiscoveryConfig() { return assetDiscoveryConfig_ != null; } /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * @return The assetDiscoveryConfig. */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - getAssetDiscoveryConfig() { - return assetDiscoveryConfig_ == null - ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .getDefaultInstance() - : assetDiscoveryConfig_; + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig() { + return assetDiscoveryConfig_ == null ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance() : assetDiscoveryConfig_; } /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .AssetDiscoveryConfigOrBuilder - getAssetDiscoveryConfigOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder() { return getAssetDiscoveryConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1859,7 +1551,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1882,11 +1575,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (enableAssetDiscovery_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableAssetDiscovery_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enableAssetDiscovery_); } if (assetDiscoveryConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAssetDiscoveryConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAssetDiscoveryConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1896,19 +1590,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings other = - (com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings) obj; + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings other = (com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings) obj; - if (!getName().equals(other.getName())) return false; - if (getEnableAssetDiscovery() != other.getEnableAssetDiscovery()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getEnableAssetDiscovery() + != other.getEnableAssetDiscovery()) return false; if (hasAssetDiscoveryConfig() != other.hasAssetDiscoveryConfig()) return false; if (hasAssetDiscoveryConfig()) { - if (!getAssetDiscoveryConfig().equals(other.getAssetDiscoveryConfig())) return false; + if (!getAssetDiscoveryConfig() + .equals(other.getAssetDiscoveryConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1924,7 +1620,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ENABLE_ASSET_DISCOVERY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAssetDiscovery()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableAssetDiscovery()); if (hasAssetDiscoveryConfig()) { hash = (37 * hash) + ASSET_DISCOVERY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAssetDiscoveryConfig().hashCode(); @@ -1935,104 +1632,96 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * User specified settings that are attached to the Security Command
    * Center organization.
@@ -2040,23 +1729,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.OrganizationSettings}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.OrganizationSettings)
       com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.class,
-              com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder.class);
+              com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.class, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.newBuilder()
@@ -2064,15 +1751,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2090,14 +1778,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings
-        getDefaultInstanceForType() {
+    public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getDefaultInstanceForType() {
       return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance();
     }
 
@@ -2112,8 +1799,7 @@ public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings buildPartial() {
-      com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings result =
-          new com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings(this);
+      com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings result = new com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings(this);
       result.name_ = name_;
       result.enableAssetDiscovery_ = enableAssetDiscovery_;
       if (assetDiscoveryConfigBuilder_ == null) {
@@ -2129,39 +1815,38 @@ public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings buildParti
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings) {
-        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2169,9 +1854,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings other) {
-      if (other
-          == com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -2201,9 +1884,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2215,8 +1896,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2225,13 +1904,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2240,8 +1919,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2250,14 +1927,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2265,8 +1943,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2275,22 +1951,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2299,18 +1973,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2319,25 +1990,23 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private boolean enableAssetDiscovery_; + private boolean enableAssetDiscovery_ ; /** - * - * *
      * A flag that indicates if Asset Discovery should be enabled. If the flag is
      * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -2346,7 +2015,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * bool enable_asset_discovery = 2; - * * @return The enableAssetDiscovery. */ @java.lang.Override @@ -2354,8 +2022,6 @@ public boolean getEnableAssetDiscovery() { return enableAssetDiscovery_; } /** - * - * *
      * A flag that indicates if Asset Discovery should be enabled. If the flag is
      * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -2364,19 +2030,16 @@ public boolean getEnableAssetDiscovery() {
      * 
* * bool enable_asset_discovery = 2; - * * @param value The enableAssetDiscovery to set. * @return This builder for chaining. */ public Builder setEnableAssetDiscovery(boolean value) { - + enableAssetDiscovery_ = value; onChanged(); return this; } /** - * - * *
      * A flag that indicates if Asset Discovery should be enabled. If the flag is
      * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -2385,78 +2048,52 @@ public Builder setEnableAssetDiscovery(boolean value) {
      * 
* * bool enable_asset_discovery = 2; - * * @return This builder for chaining. */ public Builder clearEnableAssetDiscovery() { - + enableAssetDiscovery_ = false; onChanged(); return this; } - private com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - assetDiscoveryConfig_; + private com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig assetDiscoveryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .Builder, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .AssetDiscoveryConfigOrBuilder> - assetDiscoveryConfigBuilder_; + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder> assetDiscoveryConfigBuilder_; /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * @return Whether the assetDiscoveryConfig field is set. */ public boolean hasAssetDiscoveryConfig() { return assetDiscoveryConfigBuilder_ != null || assetDiscoveryConfig_ != null; } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * @return The assetDiscoveryConfig. */ - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - getAssetDiscoveryConfig() { + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig() { if (assetDiscoveryConfigBuilder_ == null) { - return assetDiscoveryConfig_ == null - ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .getDefaultInstance() - : assetDiscoveryConfig_; + return assetDiscoveryConfig_ == null ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance() : assetDiscoveryConfig_; } else { return assetDiscoveryConfigBuilder_.getMessage(); } } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ - public Builder setAssetDiscoveryConfig( - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig value) { + public Builder setAssetDiscoveryConfig(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig value) { if (assetDiscoveryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2470,19 +2107,14 @@ public Builder setAssetDiscoveryConfig( return this; } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ public Builder setAssetDiscoveryConfig( - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder - builderForValue) { + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder builderForValue) { if (assetDiscoveryConfigBuilder_ == null) { assetDiscoveryConfig_ = builderForValue.build(); onChanged(); @@ -2493,25 +2125,17 @@ public Builder setAssetDiscoveryConfig( return this; } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ - public Builder mergeAssetDiscoveryConfig( - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig value) { + public Builder mergeAssetDiscoveryConfig(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig value) { if (assetDiscoveryConfigBuilder_ == null) { if (assetDiscoveryConfig_ != null) { assetDiscoveryConfig_ = - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .newBuilder(assetDiscoveryConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.newBuilder(assetDiscoveryConfig_).mergeFrom(value).buildPartial(); } else { assetDiscoveryConfig_ = value; } @@ -2523,15 +2147,11 @@ public Builder mergeAssetDiscoveryConfig( return this; } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ public Builder clearAssetDiscoveryConfig() { if (assetDiscoveryConfigBuilder_ == null) { @@ -2545,80 +2165,55 @@ public Builder clearAssetDiscoveryConfig() { return this; } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .Builder - getAssetDiscoveryConfigBuilder() { - + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder getAssetDiscoveryConfigBuilder() { + onChanged(); return getAssetDiscoveryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .AssetDiscoveryConfigOrBuilder - getAssetDiscoveryConfigOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder() { if (assetDiscoveryConfigBuilder_ != null) { return assetDiscoveryConfigBuilder_.getMessageOrBuilder(); } else { - return assetDiscoveryConfig_ == null - ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .getDefaultInstance() - : assetDiscoveryConfig_; + return assetDiscoveryConfig_ == null ? + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance() : assetDiscoveryConfig_; } } /** - * - * *
      * The configuration used for Asset Discovery runs.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .Builder, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .AssetDiscoveryConfigOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder> getAssetDiscoveryConfigFieldBuilder() { if (assetDiscoveryConfigBuilder_ == null) { - assetDiscoveryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - .Builder, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - .AssetDiscoveryConfigOrBuilder>( - getAssetDiscoveryConfig(), getParentForChildren(), isClean()); + assetDiscoveryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder>( + getAssetDiscoveryConfig(), + getParentForChildren(), + isClean()); assetDiscoveryConfig_ = null; } return assetDiscoveryConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2628,32 +2223,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.OrganizationSettings) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.OrganizationSettings) - private static final com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings(); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrganizationSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrganizationSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrganizationSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OrganizationSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2665,8 +2258,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsName.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsName.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsName.java diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOrBuilder.java similarity index 59% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOrBuilder.java index 048841271..096d23984 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/organization_settings.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface OrganizationSettingsOrBuilder - extends +public interface OrganizationSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.OrganizationSettings) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -34,13 +16,10 @@ public interface OrganizationSettingsOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -49,14 +28,12 @@ public interface OrganizationSettingsOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A flag that indicates if Asset Discovery should be enabled. If the flag is
    * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -65,51 +42,34 @@ public interface OrganizationSettingsOrBuilder
    * 
* * bool enable_asset_discovery = 2; - * * @return The enableAssetDiscovery. */ boolean getEnableAssetDiscovery(); /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * @return Whether the assetDiscoveryConfig field is set. */ boolean hasAssetDiscoveryConfig(); /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; * @return The assetDiscoveryConfig. */ - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig - getAssetDiscoveryConfig(); + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig(); /** - * - * *
    * The configuration used for Asset Discovery runs.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; */ - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder - getAssetDiscoveryConfigOrBuilder(); + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOuterClass.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOuterClass.java new file mode 100644 index 000000000..d3799b182 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOuterClass.java @@ -0,0 +1,90 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/organization_settings.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class OrganizationSettingsOuterClass { + private OrganizationSettingsOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nAgoogle/cloud/securitycenter/v1p1beta1/" + + "organization_settings.proto\022%google.clou" + + "d.securitycenter.v1p1beta1\032\031google/api/r" + + "esource.proto\032\034google/api/annotations.pr" + + "oto\"\254\004\n\024OrganizationSettings\022\014\n\004name\030\001 \001" + + "(\t\022\036\n\026enable_asset_discovery\030\002 \001(\010\022p\n\026as" + + "set_discovery_config\030\003 \001(\0132P.google.clou" + + "d.securitycenter.v1p1beta1.OrganizationS" + + "ettings.AssetDiscoveryConfig\032\207\002\n\024AssetDi" + + "scoveryConfig\022\023\n\013project_ids\030\001 \003(\t\022v\n\016in" + + "clusion_mode\030\002 \001(\0162^.google.cloud.securi" + + "tycenter.v1p1beta1.OrganizationSettings." + + "AssetDiscoveryConfig.InclusionMode\022\022\n\nfo" + + "lder_ids\030\003 \003(\t\"N\n\rInclusionMode\022\036\n\032INCLU" + + "SION_MODE_UNSPECIFIED\020\000\022\020\n\014INCLUDE_ONLY\020" + + "\001\022\013\n\007EXCLUDE\020\002:j\352Ag\n2securitycenter.goog" + + "leapis.com/OrganizationSettings\0221organiz" + + "ations/{organization}/organizationSettin" + + "gsB\375\001\n)com.google.cloud.securitycenter.v" + + "1p1beta1P\001ZSgoogle.golang.org/genproto/g" + + "oogleapis/cloud/securitycenter/v1p1beta1" + + ";securitycenter\252\002%Google.Cloud.SecurityC" + + "enter.V1P1Beta1\312\002%Google\\Cloud\\SecurityC" + + "enter\\V1p1beta1\352\002(Google::Cloud::Securit" + + "yCenter::V1p1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor, + new java.lang.String[] { "Name", "EnableAssetDiscovery", "AssetDiscoveryConfig", }); + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor, + new java.lang.String[] { "ProjectIds", "InclusionMode", "FolderIds", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ProjectName.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ProjectName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ProjectName.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ProjectName.java diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Resource.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Resource.java similarity index 71% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Resource.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Resource.java index 74016dfe1..c744b467a 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Resource.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Resource.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/resource.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Information related to the Google Cloud resource.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Resource} */ -public final class Resource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Resource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.Resource) ResourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Resource() { name_ = ""; project_ = ""; @@ -48,15 +30,16 @@ private Resource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Resource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Resource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,61 +59,52 @@ private Resource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - project_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + project_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - projectDisplayName_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + projectDisplayName_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - parentDisplayName_ = s; - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - folders_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - folders_.add( - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.Folder.parser(), - extensionRegistry)); - break; + parentDisplayName_ = s; + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + folders_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + folders_.add( + input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Folder.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -138,7 +112,8 @@ private Resource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { folders_ = java.util.Collections.unmodifiableList(folders_); @@ -147,34 +122,28 @@ private Resource( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.ResourceProto - .internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.ResourceProto.internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.ResourceProto - .internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.ResourceProto.internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.Resource.class, - com.google.cloud.securitycenter.v1p1beta1.Resource.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.Resource.class, com.google.cloud.securitycenter.v1p1beta1.Resource.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The full resource name of the resource. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -183,30 +152,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The full resource name of the resource. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -217,14 +186,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PROJECT_FIELD_NUMBER = 2; private volatile java.lang.Object project_; /** - * - * *
    * The full resource name of project that the resource belongs to.
    * 
* * string project = 2; - * * @return The project. */ @java.lang.Override @@ -233,29 +199,29 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** - * - * *
    * The full resource name of project that the resource belongs to.
    * 
* * string project = 2; - * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -266,14 +232,11 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int PROJECT_DISPLAY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object projectDisplayName_; /** - * - * *
    * The human readable name of project that the resource belongs to.
    * 
* * string project_display_name = 3; - * * @return The projectDisplayName. */ @java.lang.Override @@ -282,29 +245,29 @@ public java.lang.String getProjectDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectDisplayName_ = s; return s; } } /** - * - * *
    * The human readable name of project that the resource belongs to.
    * 
* * string project_display_name = 3; - * * @return The bytes for projectDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectDisplayNameBytes() { + public com.google.protobuf.ByteString + getProjectDisplayNameBytes() { java.lang.Object ref = projectDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectDisplayName_ = b; return b; } else { @@ -315,14 +278,11 @@ public com.google.protobuf.ByteString getProjectDisplayNameBytes() { public static final int PARENT_FIELD_NUMBER = 4; private volatile java.lang.Object parent_; /** - * - * *
    * The full resource name of resource's parent.
    * 
* * string parent = 4; - * * @return The parent. */ @java.lang.Override @@ -331,29 +291,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * The full resource name of resource's parent.
    * 
* * string parent = 4; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -364,14 +324,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PARENT_DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object parentDisplayName_; /** - * - * *
    * The human readable name of resource's parent.
    * 
* * string parent_display_name = 5; - * * @return The parentDisplayName. */ @java.lang.Override @@ -380,29 +337,29 @@ public java.lang.String getParentDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDisplayName_ = s; return s; } } /** - * - * *
    * The human readable name of resource's parent.
    * 
* * string parent_display_name = 5; - * * @return The bytes for parentDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString getParentDisplayNameBytes() { + public com.google.protobuf.ByteString + getParentDisplayNameBytes() { java.lang.Object ref = parentDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentDisplayName_ = b; return b; } else { @@ -413,94 +370,74 @@ public com.google.protobuf.ByteString getParentDisplayNameBytes() { public static final int FOLDERS_FIELD_NUMBER = 7; private java.util.List folders_; /** - * - * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getFoldersList() { return folders_; } /** - * - * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getFoldersOrBuilderList() { return folders_; } /** - * - * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getFoldersCount() { return folders_.size(); } /** - * - * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index) { return folders_.get(index); } /** - * - * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder(int index) { + public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder( + int index) { return folders_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -512,7 +449,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -556,7 +494,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parentDisplayName_); } for (int i = 0; i < folders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, folders_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, folders_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -566,20 +505,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.Resource)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.Resource other = - (com.google.cloud.securitycenter.v1p1beta1.Resource) obj; - - if (!getName().equals(other.getName())) return false; - if (!getProject().equals(other.getProject())) return false; - if (!getProjectDisplayName().equals(other.getProjectDisplayName())) return false; - if (!getParent().equals(other.getParent())) return false; - if (!getParentDisplayName().equals(other.getParentDisplayName())) return false; - if (!getFoldersList().equals(other.getFoldersList())) return false; + com.google.cloud.securitycenter.v1p1beta1.Resource other = (com.google.cloud.securitycenter.v1p1beta1.Resource) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getProjectDisplayName() + .equals(other.getProjectDisplayName())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getParentDisplayName() + .equals(other.getParentDisplayName())) return false; + if (!getFoldersList() + .equals(other.getFoldersList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -611,126 +555,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.Resource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.Resource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.Resource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information related to the Google Cloud resource.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Resource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.Resource) com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.ResourceProto - .internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.ResourceProto.internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.ResourceProto - .internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.ResourceProto.internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.Resource.class, - com.google.cloud.securitycenter.v1p1beta1.Resource.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.Resource.class, com.google.cloud.securitycenter.v1p1beta1.Resource.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.Resource.newBuilder() @@ -738,17 +673,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFoldersFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -772,9 +707,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.ResourceProto - .internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.ResourceProto.internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor; } @java.lang.Override @@ -793,8 +728,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Resource build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Resource buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.Resource result = - new com.google.cloud.securitycenter.v1p1beta1.Resource(this); + com.google.cloud.securitycenter.v1p1beta1.Resource result = new com.google.cloud.securitycenter.v1p1beta1.Resource(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.project_ = project_; @@ -818,39 +752,38 @@ public com.google.cloud.securitycenter.v1p1beta1.Resource buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.Resource) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Resource) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Resource)other); } else { super.mergeFrom(other); return this; @@ -858,8 +791,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Resource other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -898,10 +830,9 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Resource othe foldersBuilder_ = null; folders_ = other.folders_; bitField0_ = (bitField0_ & ~0x00000001); - foldersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFoldersFieldBuilder() - : null; + foldersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFoldersFieldBuilder() : null; } else { foldersBuilder_.addAllMessages(other.folders_); } @@ -926,8 +857,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.Resource) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.Resource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -936,26 +866,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The full resource name of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -964,22 +891,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The full resource name of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -987,64 +913,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The full resource name of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The full resource name of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The full resource name of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1052,20 +971,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object project_ = ""; /** - * - * *
      * The full resource name of project that the resource belongs to.
      * 
* * string project = 2; - * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -1074,21 +991,20 @@ public java.lang.String getProject() { } } /** - * - * *
      * The full resource name of project that the resource belongs to.
      * 
* * string project = 2; - * * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -1096,61 +1012,54 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
      * The full resource name of project that the resource belongs to.
      * 
* * string project = 2; - * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { + public Builder setProject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** - * - * *
      * The full resource name of project that the resource belongs to.
      * 
* * string project = 2; - * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** - * - * *
      * The full resource name of project that the resource belongs to.
      * 
* * string project = 2; - * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; @@ -1158,20 +1067,18 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectDisplayName_ = ""; /** - * - * *
      * The human readable name of project that the resource belongs to.
      * 
* * string project_display_name = 3; - * * @return The projectDisplayName. */ public java.lang.String getProjectDisplayName() { java.lang.Object ref = projectDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectDisplayName_ = s; return s; @@ -1180,21 +1087,20 @@ public java.lang.String getProjectDisplayName() { } } /** - * - * *
      * The human readable name of project that the resource belongs to.
      * 
* * string project_display_name = 3; - * * @return The bytes for projectDisplayName. */ - public com.google.protobuf.ByteString getProjectDisplayNameBytes() { + public com.google.protobuf.ByteString + getProjectDisplayNameBytes() { java.lang.Object ref = projectDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectDisplayName_ = b; return b; } else { @@ -1202,61 +1108,54 @@ public com.google.protobuf.ByteString getProjectDisplayNameBytes() { } } /** - * - * *
      * The human readable name of project that the resource belongs to.
      * 
* * string project_display_name = 3; - * * @param value The projectDisplayName to set. * @return This builder for chaining. */ - public Builder setProjectDisplayName(java.lang.String value) { + public Builder setProjectDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectDisplayName_ = value; onChanged(); return this; } /** - * - * *
      * The human readable name of project that the resource belongs to.
      * 
* * string project_display_name = 3; - * * @return This builder for chaining. */ public Builder clearProjectDisplayName() { - + projectDisplayName_ = getDefaultInstance().getProjectDisplayName(); onChanged(); return this; } /** - * - * *
      * The human readable name of project that the resource belongs to.
      * 
* * string project_display_name = 3; - * * @param value The bytes for projectDisplayName to set. * @return This builder for chaining. */ - public Builder setProjectDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setProjectDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectDisplayName_ = value; onChanged(); return this; @@ -1264,20 +1163,18 @@ public Builder setProjectDisplayNameBytes(com.google.protobuf.ByteString value) private java.lang.Object parent_ = ""; /** - * - * *
      * The full resource name of resource's parent.
      * 
* * string parent = 4; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1286,21 +1183,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * The full resource name of resource's parent.
      * 
* * string parent = 4; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1308,61 +1204,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * The full resource name of resource's parent.
      * 
* * string parent = 4; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * The full resource name of resource's parent.
      * 
* * string parent = 4; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * The full resource name of resource's parent.
      * 
* * string parent = 4; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1370,20 +1259,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object parentDisplayName_ = ""; /** - * - * *
      * The human readable name of resource's parent.
      * 
* * string parent_display_name = 5; - * * @return The parentDisplayName. */ public java.lang.String getParentDisplayName() { java.lang.Object ref = parentDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDisplayName_ = s; return s; @@ -1392,21 +1279,20 @@ public java.lang.String getParentDisplayName() { } } /** - * - * *
      * The human readable name of resource's parent.
      * 
* * string parent_display_name = 5; - * * @return The bytes for parentDisplayName. */ - public com.google.protobuf.ByteString getParentDisplayNameBytes() { + public com.google.protobuf.ByteString + getParentDisplayNameBytes() { java.lang.Object ref = parentDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parentDisplayName_ = b; return b; } else { @@ -1414,95 +1300,79 @@ public com.google.protobuf.ByteString getParentDisplayNameBytes() { } } /** - * - * *
      * The human readable name of resource's parent.
      * 
* * string parent_display_name = 5; - * * @param value The parentDisplayName to set. * @return This builder for chaining. */ - public Builder setParentDisplayName(java.lang.String value) { + public Builder setParentDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parentDisplayName_ = value; onChanged(); return this; } /** - * - * *
      * The human readable name of resource's parent.
      * 
* * string parent_display_name = 5; - * * @return This builder for chaining. */ public Builder clearParentDisplayName() { - + parentDisplayName_ = getDefaultInstance().getParentDisplayName(); onChanged(); return this; } /** - * - * *
      * The human readable name of resource's parent.
      * 
* * string parent_display_name = 5; - * * @param value The bytes for parentDisplayName to set. * @return This builder for chaining. */ - public Builder setParentDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setParentDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentDisplayName_ = value; onChanged(); return this; } private java.util.List folders_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - folders_ = - new java.util.ArrayList(folders_); + folders_ = new java.util.ArrayList(folders_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Folder, - com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, - com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> - foldersBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> foldersBuilder_; /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getFoldersList() { if (foldersBuilder_ == null) { @@ -1512,17 +1382,13 @@ public java.util.List getFolde } } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getFoldersCount() { if (foldersBuilder_ == null) { @@ -1532,17 +1398,13 @@ public int getFoldersCount() { } } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index) { if (foldersBuilder_ == null) { @@ -1552,19 +1414,16 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index) { } } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setFolders(int index, com.google.cloud.securitycenter.v1p1beta1.Folder value) { + public Builder setFolders( + int index, com.google.cloud.securitycenter.v1p1beta1.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1578,17 +1437,13 @@ public Builder setFolders(int index, com.google.cloud.securitycenter.v1p1beta1.F return this; } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setFolders( int index, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder builderForValue) { @@ -1602,17 +1457,13 @@ public Builder setFolders( return this; } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addFolders(com.google.cloud.securitycenter.v1p1beta1.Folder value) { if (foldersBuilder_ == null) { @@ -1628,19 +1479,16 @@ public Builder addFolders(com.google.cloud.securitycenter.v1p1beta1.Folder value return this; } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addFolders(int index, com.google.cloud.securitycenter.v1p1beta1.Folder value) { + public Builder addFolders( + int index, com.google.cloud.securitycenter.v1p1beta1.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1654,17 +1502,13 @@ public Builder addFolders(int index, com.google.cloud.securitycenter.v1p1beta1.F return this; } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addFolders( com.google.cloud.securitycenter.v1p1beta1.Folder.Builder builderForValue) { @@ -1678,17 +1522,13 @@ public Builder addFolders( return this; } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addFolders( int index, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder builderForValue) { @@ -1702,23 +1542,20 @@ public Builder addFolders( return this; } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllFolders( java.lang.Iterable values) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, folders_); onChanged(); } else { foldersBuilder_.addAllMessages(values); @@ -1726,17 +1563,13 @@ public Builder addAllFolders( return this; } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearFolders() { if (foldersBuilder_ == null) { @@ -1749,17 +1582,13 @@ public Builder clearFolders() { return this; } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeFolders(int index) { if (foldersBuilder_ == null) { @@ -1772,57 +1601,45 @@ public Builder removeFolders(int index) { return this; } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder getFoldersBuilder(int index) { + public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder getFoldersBuilder( + int index) { return getFoldersFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder( int index) { if (foldersBuilder_ == null) { - return folders_.get(index); - } else { + return folders_.get(index); } else { return foldersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getFoldersOrBuilderList() { + public java.util.List + getFoldersOrBuilderList() { if (foldersBuilder_ != null) { return foldersBuilder_.getMessageOrBuilderList(); } else { @@ -1830,76 +1647,62 @@ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBui } } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilder() { - return getFoldersFieldBuilder() - .addBuilder(com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance()); + return getFoldersFieldBuilder().addBuilder( + com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance()); } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilder(int index) { - return getFoldersFieldBuilder() - .addBuilder(index, com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance()); + public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilder( + int index) { + return getFoldersFieldBuilder().addBuilder( + index, com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance()); } /** - * - * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getFoldersBuilderList() { + public java.util.List + getFoldersBuilderList() { return getFoldersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Folder, - com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, - com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> getFoldersFieldBuilder() { if (foldersBuilder_ == null) { - foldersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Folder, - com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, - com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder>( - folders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + foldersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder>( + folders_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); folders_ = null; } return foldersBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1909,12 +1712,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.Resource) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.Resource) private static final com.google.cloud.securitycenter.v1p1beta1.Resource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.Resource(); } @@ -1923,16 +1726,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.Resource getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Resource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Resource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Resource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Resource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1947,4 +1750,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.Resource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceOrBuilder.java similarity index 67% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceOrBuilder.java index d12c3bf18..852c44825 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceOrBuilder.java @@ -1,224 +1,165 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/resource.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface ResourceOrBuilder - extends +public interface ResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.Resource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The full resource name of the resource. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The full resource name of the resource. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The full resource name of project that the resource belongs to.
    * 
* * string project = 2; - * * @return The project. */ java.lang.String getProject(); /** - * - * *
    * The full resource name of project that the resource belongs to.
    * 
* * string project = 2; - * * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); /** - * - * *
    * The human readable name of project that the resource belongs to.
    * 
* * string project_display_name = 3; - * * @return The projectDisplayName. */ java.lang.String getProjectDisplayName(); /** - * - * *
    * The human readable name of project that the resource belongs to.
    * 
* * string project_display_name = 3; - * * @return The bytes for projectDisplayName. */ - com.google.protobuf.ByteString getProjectDisplayNameBytes(); + com.google.protobuf.ByteString + getProjectDisplayNameBytes(); /** - * - * *
    * The full resource name of resource's parent.
    * 
* * string parent = 4; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * The full resource name of resource's parent.
    * 
* * string parent = 4; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The human readable name of resource's parent.
    * 
* * string parent_display_name = 5; - * * @return The parentDisplayName. */ java.lang.String getParentDisplayName(); /** - * - * *
    * The human readable name of resource's parent.
    * 
* * string parent_display_name = 5; - * * @return The bytes for parentDisplayName. */ - com.google.protobuf.ByteString getParentDisplayNameBytes(); + com.google.protobuf.ByteString + getParentDisplayNameBytes(); /** - * - * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getFoldersList(); + java.util.List + getFoldersList(); /** - * - * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index); /** - * - * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getFoldersCount(); /** - * - * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getFoldersOrBuilderList(); /** - * - * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder(int index); + com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder( + int index); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java new file mode 100644 index 000000000..9a42dd82a --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/resource.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class ResourceProto { + private ResourceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/securitycenter/v1p1beta1/" + + "resource.proto\022%google.cloud.securitycen" + + "ter.v1p1beta1\032\037google/api/field_behavior" + + ".proto\0322google/cloud/securitycenter/v1p1" + + "beta1/folder.proto\032\034google/api/annotatio" + + "ns.proto\"\271\001\n\010Resource\022\014\n\004name\030\001 \001(\t\022\017\n\007p" + + "roject\030\002 \001(\t\022\034\n\024project_display_name\030\003 \001" + + "(\t\022\016\n\006parent\030\004 \001(\t\022\033\n\023parent_display_nam" + + "e\030\005 \001(\t\022C\n\007folders\030\007 \003(\0132-.google.cloud." + + "securitycenter.v1p1beta1.FolderB\003\340A\003B\214\002\n" + + ")com.google.cloud.securitycenter.v1p1bet" + + "a1B\rResourceProtoP\001ZSgoogle.golang.org/g" + + "enproto/googleapis/cloud/securitycenter/" + + "v1p1beta1;securitycenter\252\002%Google.Cloud." + + "SecurityCenter.V1P1Beta1\312\002%Google\\Cloud\\" + + "SecurityCenter\\V1p1beta1\352\002(Google::Cloud" + + "::SecurityCenter::V1p1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor, + new java.lang.String[] { "Name", "Project", "ProjectDisplayName", "Parent", "ParentDisplayName", "Folders", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java similarity index 63% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java index 390343fec..9a3cd9bd5 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Request message for running asset discovery for an organization.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest} */ -public final class RunAssetDiscoveryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RunAssetDiscoveryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) RunAssetDiscoveryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RunAssetDiscoveryRequest.newBuilder() to construct. private RunAssetDiscoveryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RunAssetDiscoveryRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RunAssetDiscoveryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RunAssetDiscoveryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private RunAssetDiscoveryRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parent_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private RunAssetDiscoveryRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.class, - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.class, com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the organization to run asset discovery for. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Name of the organization to run asset discovery for. Its format is
    * "organizations/[organization_id]".
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest other = - (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest other = (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for running asset discovery for an organization.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.class, - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.class, com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.newBuilder() + // Construct using com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,16 +343,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.getDefaultInstance(); } @java.lang.Override @@ -404,8 +364,7 @@ public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest build( @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest result = - new com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest(this); + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest result = new com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -415,51 +374,46 @@ public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) { - return mergeFrom( - (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest other) { + if (other == com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -483,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -497,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -522,24 +470,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -547,77 +492,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest(); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunAssetDiscoveryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunAssetDiscoveryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunAssetDiscoveryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunAssetDiscoveryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequestOrBuilder.java new file mode 100644 index 000000000..8d9b673f2 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public interface RunAssetDiscoveryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the organization to run asset discovery for. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Name of the organization to run asset discovery for. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java similarity index 67% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java index 7d6255b89..0e7d169cb 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Response of asset discovery run
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse} */ -public final class RunAssetDiscoveryResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RunAssetDiscoveryResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) RunAssetDiscoveryResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RunAssetDiscoveryResponse.newBuilder() to construct. private RunAssetDiscoveryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RunAssetDiscoveryResponse() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RunAssetDiscoveryResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RunAssetDiscoveryResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,35 +53,32 @@ private RunAssetDiscoveryResponse( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; + state_ = rawValue; + break; + } + case 18: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (duration_ != null) { - subBuilder = duration_.toBuilder(); - } - duration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(duration_); - duration_ = subBuilder.buildPartial(); - } - - break; + duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,41 +86,36 @@ private RunAssetDiscoveryResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.class, - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.class, com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.Builder.class); } /** - * - * *
    * The state of an asset discovery run.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Asset discovery run state was unspecified.
      * 
@@ -149,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Asset discovery run completed successfully.
      * 
@@ -159,8 +132,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ COMPLETED(1), /** - * - * *
      * Asset discovery run was cancelled with tasks still pending, as another
      * run for the same organization was started with a higher priority.
@@ -170,8 +141,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     SUPERSEDED(2),
     /**
-     *
-     *
      * 
      * Asset discovery run was killed and terminated.
      * 
@@ -183,8 +152,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Asset discovery run state was unspecified.
      * 
@@ -193,8 +160,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Asset discovery run completed successfully.
      * 
@@ -203,8 +168,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPLETED_VALUE = 1; /** - * - * *
      * Asset discovery run was cancelled with tasks still pending, as another
      * run for the same organization was started with a higher priority.
@@ -214,8 +177,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SUPERSEDED_VALUE = 2;
     /**
-     *
-     *
      * 
      * Asset discovery run was killed and terminated.
      * 
@@ -224,6 +185,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TERMINATED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -248,53 +210,50 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return COMPLETED; - case 2: - return SUPERSEDED; - case 3: - return TERMINATED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return COMPLETED; + case 2: return SUPERSEDED; + case 3: return TERMINATED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -314,52 +273,38 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** - * - * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State getState() { + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State result = - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State.valueOf(state_); - return result == null - ? com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State result = com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State.valueOf(state_); + return result == null ? com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State.UNRECOGNIZED : result; } public static final int DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration duration_; /** - * - * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; - * * @return Whether the duration field is set. */ @java.lang.Override @@ -367,14 +312,11 @@ public boolean hasDuration() { return duration_ != null; } /** - * - * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; - * * @return The duration. */ @java.lang.Override @@ -382,8 +324,6 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** - * - * *
    * The duration between asset discovery run start and end
    * 
@@ -396,7 +336,6 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -408,11 +347,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State - .STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (duration_ != null) { @@ -427,14 +364,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State - .STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDuration()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -444,18 +380,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse other = - (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) obj; + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse other = (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) obj; if (state_ != other.state_) return false; if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration().equals(other.getDuration())) return false; + if (!getDuration() + .equals(other.getDuration())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -480,145 +416,134 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response of asset discovery run
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.class, - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.class, com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.newBuilder() + // Construct using com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -634,16 +559,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.getDefaultInstance(); } @java.lang.Override @@ -657,8 +580,7 @@ public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse build @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse result = - new com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse(this); + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse result = new com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse(this); result.state_ = state_; if (durationBuilder_ == null) { result.duration_ = duration_; @@ -673,51 +595,46 @@ public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) { - return mergeFrom( - (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse other) { + if (other == com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -743,9 +660,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -757,98 +672,73 @@ public Builder mergeFrom( private int state_ = 0; /** - * - * *
      * The state of an asset discovery run.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; - * - * + * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of an asset discovery run.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; - * - * + * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * The state of an asset discovery run.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; - * - * + * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; * @return The state. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State result = - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State.valueOf(state_); - return result == null - ? com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State result = com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State.valueOf(state_); + return result == null ? com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of an asset discovery run.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; - * - * + * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; * @param value The state to set. * @return This builder for chaining. */ - public Builder setState( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State value) { + public Builder setState(com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of an asset discovery run.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; - * - * + * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -856,33 +746,24 @@ public Builder clearState() { private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - durationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; /** - * - * *
      * The duration between asset discovery run start and end
      * 
* * .google.protobuf.Duration duration = 2; - * * @return Whether the duration field is set. */ public boolean hasDuration() { return durationBuilder_ != null || duration_ != null; } /** - * - * *
      * The duration between asset discovery run start and end
      * 
* * .google.protobuf.Duration duration = 2; - * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -893,8 +774,6 @@ public com.google.protobuf.Duration getDuration() { } } /** - * - * *
      * The duration between asset discovery run start and end
      * 
@@ -915,15 +794,14 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * The duration between asset discovery run start and end
      * 
* * .google.protobuf.Duration duration = 2; */ - public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); onChanged(); @@ -934,8 +812,6 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
      * The duration between asset discovery run start and end
      * 
@@ -946,7 +822,7 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (duration_ != null) { duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); } else { duration_ = value; } @@ -958,8 +834,6 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * The duration between asset discovery run start and end
      * 
@@ -978,8 +852,6 @@ public Builder clearDuration() { return this; } /** - * - * *
      * The duration between asset discovery run start and end
      * 
@@ -987,13 +859,11 @@ public Builder clearDuration() { * .google.protobuf.Duration duration = 2; */ public com.google.protobuf.Duration.Builder getDurationBuilder() { - + onChanged(); return getDurationFieldBuilder().getBuilder(); } /** - * - * *
      * The duration between asset discovery run start and end
      * 
@@ -1004,12 +874,11 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** - * - * *
      * The duration between asset discovery run start and end
      * 
@@ -1017,24 +886,21 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { * .google.protobuf.Duration duration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDuration(), getParentForChildren(), isClean()); + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); duration_ = null; } return durationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1044,32 +910,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) - private static final com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse(); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunAssetDiscoveryResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunAssetDiscoveryResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunAssetDiscoveryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunAssetDiscoveryResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1081,8 +945,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOrBuilder.java index a84fd27d8..16c9ca8cf 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOrBuilder.java @@ -1,80 +1,50 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface RunAssetDiscoveryResponseOrBuilder - extends +public interface RunAssetDiscoveryResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; - * * @return The state. */ com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State getState(); /** - * - * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; - * * @return Whether the duration field is set. */ boolean hasDuration(); /** - * - * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; - * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** - * - * *
    * The duration between asset discovery run start and end
    * 
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOuterClass.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOuterClass.java new file mode 100644 index 000000000..16906dbf8 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOuterClass.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class RunAssetDiscoveryResponseOuterClass { + private RunAssetDiscoveryResponseOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nHgoogle/cloud/securitycenter/v1p1beta1/" + + "run_asset_discovery_response.proto\022%goog" + + "le.cloud.securitycenter.v1p1beta1\032\036googl" + + "e/protobuf/duration.proto\032\034google/api/an" + + "notations.proto\"\356\001\n\031RunAssetDiscoveryRes" + + "ponse\022U\n\005state\030\001 \001(\0162F.google.cloud.secu" + + "ritycenter.v1p1beta1.RunAssetDiscoveryRe" + + "sponse.State\022+\n\010duration\030\002 \001(\0132\031.google." + + "protobuf.Duration\"M\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\r\n\tCOMPLETED\020\001\022\016\n\nSUPERSEDED\020\002" + + "\022\016\n\nTERMINATED\020\003B\375\001\n)com.google.cloud.se" + + "curitycenter.v1p1beta1P\001ZSgoogle.golang." + + "org/genproto/googleapis/cloud/securityce" + + "nter/v1p1beta1;securitycenter\252\002%Google.C" + + "loud.SecurityCenter.V1P1Beta1\312\002%Google\\C" + + "loud\\SecurityCenter\\V1p1beta1\352\002(Google::" + + "Cloud::SecurityCenter::V1p1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor, + new java.lang.String[] { "State", "Duration", }); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java similarity index 72% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java index 9c78f802d..ab51460fb 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/security_marks.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * User specified security marks that are attached to the parent Security
  * Command Center resource. Security marks are scoped within a Security Command
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.SecurityMarks}
  */
-public final class SecurityMarks extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SecurityMarks extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.SecurityMarks)
     SecurityMarksOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SecurityMarks.newBuilder() to construct.
   private SecurityMarks(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SecurityMarks() {
     name_ = "";
     canonicalName_ = "";
@@ -47,15 +29,16 @@ private SecurityMarks() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SecurityMarks();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SecurityMarks(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,40 +58,38 @@ private SecurityMarks(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                marks_ =
-                    com.google.protobuf.MapField.newMapField(MarksDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry marks__ =
-                  input.readMessage(
-                      MarksDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              marks_.getMutableMap().put(marks__.getKey(), marks__.getValue());
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              marks_ = com.google.protobuf.MapField.newMapField(
+                  MarksDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            com.google.protobuf.MapEntry
+            marks__ = input.readMessage(
+                MarksDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            marks_.getMutableMap().put(
+                marks__.getKey(), marks__.getValue());
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              canonicalName_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            canonicalName_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -116,44 +97,41 @@ private SecurityMarks(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass
-        .internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 2:
         return internalGetMarks();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass
-        .internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.class,
-            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder.class);
+            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.class, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -163,7 +141,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -172,15 +149,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -190,15 +166,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -207,23 +184,24 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int MARKS_FIELD_NUMBER = 2; - private static final class MarksDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass - .internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField marks_; - - private com.google.protobuf.MapField internalGetMarks() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> marks_; + private com.google.protobuf.MapField + internalGetMarks() { if (marks_ == null) { - return com.google.protobuf.MapField.emptyMapField(MarksDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MarksDefaultEntryHolder.defaultEntry); } return marks_; } @@ -232,8 +210,6 @@ public int getMarksCount() { return internalGetMarks().getMap().size(); } /** - * - * *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -246,22 +222,22 @@ public int getMarksCount() {
    *
    * map<string, string> marks = 2;
    */
+
   @java.lang.Override
-  public boolean containsMarks(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsMarks(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetMarks().getMap().containsKey(key);
   }
-  /** Use {@link #getMarksMap()} instead. */
+  /**
+   * Use {@link #getMarksMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMarks() {
     return getMarksMap();
   }
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -275,12 +251,11 @@ public java.util.Map getMarks() {
    * map<string, string> marks = 2;
    */
   @java.lang.Override
+
   public java.util.Map getMarksMap() {
     return internalGetMarks().getMap();
   }
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -294,16 +269,16 @@ public java.util.Map getMarksMap() {
    * map<string, string> marks = 2;
    */
   @java.lang.Override
-  public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetMarks().getMap();
+
+  public java.lang.String getMarksOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetMarks().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -317,11 +292,12 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String
    * map<string, string> marks = 2;
    */
   @java.lang.Override
-  public java.lang.String getMarksOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetMarks().getMap();
+
+  public java.lang.String getMarksOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetMarks().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -331,8 +307,6 @@ public java.lang.String getMarksOrThrow(java.lang.String key) {
   public static final int CANONICAL_NAME_FIELD_NUMBER = 3;
   private volatile java.lang.Object canonicalName_;
   /**
-   *
-   *
    * 
    * The canonical name of the marks.
    * Examples:
@@ -345,7 +319,6 @@ public java.lang.String getMarksOrThrow(java.lang.String key) {
    * 
* * string canonical_name = 3; - * * @return The canonicalName. */ @java.lang.Override @@ -354,15 +327,14 @@ public java.lang.String getCanonicalName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; } } /** - * - * *
    * The canonical name of the marks.
    * Examples:
@@ -375,15 +347,16 @@ public java.lang.String getCanonicalName() {
    * 
* * string canonical_name = 3; - * * @return The bytes for canonicalName. */ @java.lang.Override - public com.google.protobuf.ByteString getCanonicalNameBytes() { + public com.google.protobuf.ByteString + getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -392,7 +365,6 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -404,12 +376,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMarks(), MarksDefaultEntryHolder.defaultEntry, 2); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMarks(), + MarksDefaultEntryHolder.defaultEntry, + 2); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, canonicalName_); } @@ -425,15 +402,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - for (java.util.Map.Entry entry : - internalGetMarks().getMap().entrySet()) { - com.google.protobuf.MapEntry marks__ = - MarksDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, marks__); + for (java.util.Map.Entry entry + : internalGetMarks().getMap().entrySet()) { + com.google.protobuf.MapEntry + marks__ = MarksDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, marks__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, canonicalName_); @@ -446,17 +423,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.SecurityMarks)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks other = - (com.google.cloud.securitycenter.v1p1beta1.SecurityMarks) obj; + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks other = (com.google.cloud.securitycenter.v1p1beta1.SecurityMarks) obj; - if (!getName().equals(other.getName())) return false; - if (!internalGetMarks().equals(other.internalGetMarks())) return false; - if (!getCanonicalName().equals(other.getCanonicalName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!internalGetMarks().equals( + other.internalGetMarks())) return false; + if (!getCanonicalName() + .equals(other.getCanonicalName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -482,104 +461,96 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * User specified security marks that are attached to the parent Security
    * Command Center resource. Security marks are scoped within a Security Command
@@ -589,43 +560,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.SecurityMarks}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.SecurityMarks)
       com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 2:
           return internalGetMarks();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 2:
           return internalGetMutableMarks();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.class,
-              com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder.class);
+              com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.class, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.newBuilder()
@@ -633,15 +604,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -654,9 +626,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor;
     }
 
     @java.lang.Override
@@ -675,8 +647,7 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks buildPartial() {
-      com.google.cloud.securitycenter.v1p1beta1.SecurityMarks result =
-          new com.google.cloud.securitycenter.v1p1beta1.SecurityMarks(this);
+      com.google.cloud.securitycenter.v1p1beta1.SecurityMarks result = new com.google.cloud.securitycenter.v1p1beta1.SecurityMarks(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.marks_ = internalGetMarks();
@@ -690,39 +661,38 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1p1beta1.SecurityMarks) {
-        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.SecurityMarks) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.SecurityMarks)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -730,13 +700,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks other) {
-      if (other == com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
       }
-      internalGetMutableMarks().mergeFrom(other.internalGetMarks());
+      internalGetMutableMarks().mergeFrom(
+          other.internalGetMarks());
       if (!other.getCanonicalName().isEmpty()) {
         canonicalName_ = other.canonicalName_;
         onChanged();
@@ -760,8 +730,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.securitycenter.v1p1beta1.SecurityMarks) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.SecurityMarks) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -770,13 +739,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -786,13 +752,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -801,8 +767,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -812,14 +776,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -827,8 +792,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -838,22 +801,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -863,18 +824,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -884,36 +842,37 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField marks_; - - private com.google.protobuf.MapField internalGetMarks() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> marks_; + private com.google.protobuf.MapField + internalGetMarks() { if (marks_ == null) { - return com.google.protobuf.MapField.emptyMapField(MarksDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MarksDefaultEntryHolder.defaultEntry); } return marks_; } - private com.google.protobuf.MapField - internalGetMutableMarks() { - onChanged(); - ; + internalGetMutableMarks() { + onChanged();; if (marks_ == null) { - marks_ = com.google.protobuf.MapField.newMapField(MarksDefaultEntryHolder.defaultEntry); + marks_ = com.google.protobuf.MapField.newMapField( + MarksDefaultEntryHolder.defaultEntry); } if (!marks_.isMutable()) { marks_ = marks_.copy(); @@ -925,8 +884,6 @@ public int getMarksCount() { return internalGetMarks().getMap().size(); } /** - * - * *
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -939,22 +896,22 @@ public int getMarksCount() {
      *
      * map<string, string> marks = 2;
      */
+
     @java.lang.Override
-    public boolean containsMarks(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsMarks(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetMarks().getMap().containsKey(key);
     }
-    /** Use {@link #getMarksMap()} instead. */
+    /**
+     * Use {@link #getMarksMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMarks() {
       return getMarksMap();
     }
     /**
-     *
-     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -968,12 +925,11 @@ public java.util.Map getMarks() {
      * map<string, string> marks = 2;
      */
     @java.lang.Override
+
     public java.util.Map getMarksMap() {
       return internalGetMarks().getMap();
     }
     /**
-     *
-     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -987,16 +943,16 @@ public java.util.Map getMarksMap() {
      * map<string, string> marks = 2;
      */
     @java.lang.Override
-    public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetMarks().getMap();
+
+    public java.lang.String getMarksOrDefault(
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetMarks().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -1010,11 +966,12 @@ public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String
      * map<string, string> marks = 2;
      */
     @java.lang.Override
-    public java.lang.String getMarksOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetMarks().getMap();
+
+    public java.lang.String getMarksOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetMarks().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1022,12 +979,11 @@ public java.lang.String getMarksOrThrow(java.lang.String key) {
     }
 
     public Builder clearMarks() {
-      internalGetMutableMarks().getMutableMap().clear();
+      internalGetMutableMarks().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -1040,21 +996,23 @@ public Builder clearMarks() {
      *
      * map<string, string> marks = 2;
      */
-    public Builder removeMarks(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableMarks().getMutableMap().remove(key);
+
+    public Builder removeMarks(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableMarks().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableMarks() {
+    public java.util.Map
+    getMutableMarks() {
       return internalGetMutableMarks().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -1067,20 +1025,19 @@ public java.util.Map getMutableMarks() {
      *
      * map<string, string> marks = 2;
      */
-    public Builder putMarks(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putMarks(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableMarks().getMutableMap().put(key, value);
+      internalGetMutableMarks().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -1093,15 +1050,16 @@ public Builder putMarks(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> marks = 2;
      */
-    public Builder putAllMarks(java.util.Map values) {
-      internalGetMutableMarks().getMutableMap().putAll(values);
+
+    public Builder putAllMarks(
+        java.util.Map values) {
+      internalGetMutableMarks().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private java.lang.Object canonicalName_ = "";
     /**
-     *
-     *
      * 
      * The canonical name of the marks.
      * Examples:
@@ -1114,13 +1072,13 @@ public Builder putAllMarks(java.util.Map val
      * 
* * string canonical_name = 3; - * * @return The canonicalName. */ public java.lang.String getCanonicalName() { java.lang.Object ref = canonicalName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; @@ -1129,8 +1087,6 @@ public java.lang.String getCanonicalName() { } } /** - * - * *
      * The canonical name of the marks.
      * Examples:
@@ -1143,14 +1099,15 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 3; - * * @return The bytes for canonicalName. */ - public com.google.protobuf.ByteString getCanonicalNameBytes() { + public com.google.protobuf.ByteString + getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -1158,8 +1115,6 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() { } } /** - * - * *
      * The canonical name of the marks.
      * Examples:
@@ -1172,22 +1127,20 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() {
      * 
* * string canonical_name = 3; - * * @param value The canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalName(java.lang.String value) { + public Builder setCanonicalName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + canonicalName_ = value; onChanged(); return this; } /** - * - * *
      * The canonical name of the marks.
      * Examples:
@@ -1200,18 +1153,15 @@ public Builder setCanonicalName(java.lang.String value) {
      * 
* * string canonical_name = 3; - * * @return This builder for chaining. */ public Builder clearCanonicalName() { - + canonicalName_ = getDefaultInstance().getCanonicalName(); onChanged(); return this; } /** - * - * *
      * The canonical name of the marks.
      * Examples:
@@ -1224,23 +1174,23 @@ public Builder clearCanonicalName() {
      * 
* * string canonical_name = 3; - * * @param value The bytes for canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalNameBytes(com.google.protobuf.ByteString value) { + public Builder setCanonicalNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1250,12 +1200,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.SecurityMarks) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.SecurityMarks) private static final com.google.cloud.securitycenter.v1p1beta1.SecurityMarks DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.SecurityMarks(); } @@ -1264,16 +1214,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecurityMarks parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecurityMarks(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityMarks parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecurityMarks(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1288,4 +1238,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOrBuilder.java similarity index 81% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOrBuilder.java index d7d365246..be3679c8a 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/security_marks.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface SecurityMarksOrBuilder - extends +public interface SecurityMarksOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.SecurityMarks) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -35,13 +17,10 @@ public interface SecurityMarksOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -51,14 +30,12 @@ public interface SecurityMarksOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -73,8 +50,6 @@ public interface SecurityMarksOrBuilder
    */
   int getMarksCount();
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -87,13 +62,15 @@ public interface SecurityMarksOrBuilder
    *
    * map<string, string> marks = 2;
    */
-  boolean containsMarks(java.lang.String key);
-  /** Use {@link #getMarksMap()} instead. */
+  boolean containsMarks(
+      java.lang.String key);
+  /**
+   * Use {@link #getMarksMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getMarks();
+  java.util.Map
+  getMarks();
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -106,10 +83,9 @@ public interface SecurityMarksOrBuilder
    *
    * map<string, string> marks = 2;
    */
-  java.util.Map getMarksMap();
+  java.util.Map
+  getMarksMap();
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -124,13 +100,11 @@ public interface SecurityMarksOrBuilder
    */
 
   /* nullable */
-  java.lang.String getMarksOrDefault(
+java.lang.String getMarksOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -143,11 +117,11 @@ java.lang.String getMarksOrDefault(
    *
    * map<string, string> marks = 2;
    */
-  java.lang.String getMarksOrThrow(java.lang.String key);
+
+  java.lang.String getMarksOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * The canonical name of the marks.
    * Examples:
@@ -160,13 +134,10 @@ java.lang.String getMarksOrDefault(
    * 
* * string canonical_name = 3; - * * @return The canonicalName. */ java.lang.String getCanonicalName(); /** - * - * *
    * The canonical name of the marks.
    * Examples:
@@ -179,8 +150,8 @@ java.lang.String getMarksOrDefault(
    * 
* * string canonical_name = 3; - * * @return The bytes for canonicalName. */ - com.google.protobuf.ByteString getCanonicalNameBytes(); + com.google.protobuf.ByteString + getCanonicalNameBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOuterClass.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOuterClass.java new file mode 100644 index 000000000..5e3e90daa --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOuterClass.java @@ -0,0 +1,91 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/security_marks.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class SecurityMarksOuterClass { + private SecurityMarksOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n:google/cloud/securitycenter/v1p1beta1/" + + "security_marks.proto\022%google.cloud.secur" + + "itycenter.v1p1beta1\032\031google/api/resource" + + ".proto\032\034google/api/annotations.proto\"\334\004\n" + + "\rSecurityMarks\022\014\n\004name\030\001 \001(\t\022N\n\005marks\030\002 " + + "\003(\0132?.google.cloud.securitycenter.v1p1be" + + "ta1.SecurityMarks.MarksEntry\022\026\n\016canonica" + + "l_name\030\003 \001(\t\032,\n\nMarksEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001:\246\003\352A\242\003\n+securitycente" + + "r.googleapis.com/SecurityMarks\0229organiza" + + "tions/{organization}/assets/{asset}/secu" + + "rityMarks\022Norganizations/{organization}/" + + "sources/{source}/findings/{finding}/secu" + + "rityMarks\022-folders/{folder}/assets/{asse" + + "t}/securityMarks\022/projects/{project}/ass" + + "ets/{asset}/securityMarks\022Bfolders/{fold" + + "er}/sources/{source}/findings/{finding}/" + + "securityMarks\022Dprojects/{project}/source" + + "s/{source}/findings/{finding}/securityMa" + + "rksB\375\001\n)com.google.cloud.securitycenter." + + "v1p1beta1P\001ZSgoogle.golang.org/genproto/" + + "googleapis/cloud/securitycenter/v1p1beta" + + "1;securitycenter\252\002%Google.Cloud.Security" + + "Center.V1P1Beta1\312\002%Google\\Cloud\\Security" + + "Center\\V1p1beta1\352\002(Google::Cloud::Securi" + + "tyCenter::V1p1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor, + new java.lang.String[] { "Name", "Marks", "CanonicalName", }); + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecuritycenterService.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecuritycenterService.java new file mode 100644 index 000000000..31dcd40c8 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecuritycenterService.java @@ -0,0 +1,769 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class SecuritycenterService { + private SecuritycenterService() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nBgoogle/cloud/securitycenter/v1p1beta1/" + + "securitycenter_service.proto\022%google.clo" + + "ud.securitycenter.v1p1beta1\032@google/clou" + + "d/securitycenter/v1p1beta1/notification_" + + "message.proto\032Hgoogle/cloud/securitycent" + + "er/v1p1beta1/run_asset_discovery_respons" + + "e.proto\032\034google/api/annotations.proto\032\027g" + + "oogle/api/client.proto\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\0321google/cloud/securitycenter/v1p1beta" + + "1/asset.proto\0323google/cloud/securitycent" + + "er/v1p1beta1/finding.proto\0322google/cloud" + + "/securitycenter/v1p1beta1/folder.proto\032?" + + "google/cloud/securitycenter/v1p1beta1/no" + + "tification_config.proto\032Agoogle/cloud/se" + + "curitycenter/v1p1beta1/organization_sett" + + "ings.proto\032:google/cloud/securitycenter/" + + "v1p1beta1/security_marks.proto\0322google/c" + + "loud/securitycenter/v1p1beta1/source.pro" + + "to\032\036google/iam/v1/iam_policy.proto\032\032goog" + + "le/iam/v1/policy.proto\032#google/longrunni" + + "ng/operations.proto\032\036google/protobuf/dur" + + "ation.proto\032\033google/protobuf/empty.proto" + + "\032 google/protobuf/field_mask.proto\032\034goog" + + "le/protobuf/struct.proto\032\037google/protobu" + + "f/timestamp.proto\"\263\001\n\024CreateFindingReque" + + "st\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$securitycent" + + "er.googleapis.com/Source\022\027\n\nfinding_id\030\002" + + " \001(\tB\003\340A\002\022D\n\007finding\030\003 \001(\0132..google.clou" + + "d.securitycenter.v1p1beta1.FindingB\003\340A\002\"" + + "\340\001\n\037CreateNotificationConfigRequest\022H\n\006p" + + "arent\030\001 \001(\tB8\340A\002\372A2\n0cloudresourcemanage" + + "r.googleapis.com/Organization\022\026\n\tconfig_" + + "id\030\002 \001(\tB\003\340A\002\022[\n\023notification_config\030\003 \001" + + "(\01329.google.cloud.securitycenter.v1p1bet" + + "a1.NotificationConfigB\003\340A\002\"\243\001\n\023CreateSou" + + "rceRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0clou" + + "dresourcemanager.googleapis.com/Organiza" + + "tion\022B\n\006source\030\002 \001(\0132-.google.cloud.secu" + + "ritycenter.v1p1beta1.SourceB\003\340A\002\"i\n\037Dele" + + "teNotificationConfigRequest\022F\n\004name\030\001 \001(" + + "\tB8\340A\002\372A2\n0securitycenter.googleapis.com" + + "/NotificationConfig\"f\n\034GetNotificationCo" + + "nfigRequest\022F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0secur" + + "itycenter.googleapis.com/NotificationCon" + + "fig\"j\n\036GetOrganizationSettingsRequest\022H\n" + + "\004name\030\001 \001(\tB:\340A\002\372A4\n2securitycenter.goog" + + "leapis.com/OrganizationSettings\"N\n\020GetSo" + + "urceRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$secur" + + "itycenter.googleapis.com/Source\"\203\002\n\022Grou" + + "pAssetsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#" + + "securitycenter.googleapis.com/Asset\022\016\n\006f" + + "ilter\030\002 \001(\t\022\025\n\010group_by\030\003 \001(\tB\003\340A\002\0223\n\020co" + + "mpare_duration\030\004 \001(\0132\031.google.protobuf.D" + + "uration\022-\n\tread_time\030\005 \001(\0132\032.google.prot" + + "obuf.Timestamp\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpa" + + "ge_size\030\010 \001(\005\"\277\001\n\023GroupAssetsResponse\022L\n" + + "\020group_by_results\030\001 \003(\01322.google.cloud.s" + + "ecuritycenter.v1p1beta1.GroupResult\022-\n\tr" + + "ead_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_siz" + + "e\030\004 \001(\005\"\206\002\n\024GroupFindingsRequest\022<\n\006pare" + + "nt\030\001 \001(\tB,\340A\002\372A&\n$securitycenter.googlea" + + "pis.com/Source\022\016\n\006filter\030\002 \001(\t\022\025\n\010group_" + + "by\030\003 \001(\tB\003\340A\002\022-\n\tread_time\030\004 \001(\0132\032.googl" + + "e.protobuf.Timestamp\0223\n\020compare_duration" + + "\030\005 \001(\0132\031.google.protobuf.Duration\022\022\n\npag" + + "e_token\030\007 \001(\t\022\021\n\tpage_size\030\010 \001(\005\"\301\001\n\025Gro" + + "upFindingsResponse\022L\n\020group_by_results\030\001" + + " \003(\01322.google.cloud.securitycenter.v1p1b" + + "eta1.GroupResult\022-\n\tread_time\030\002 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022\027\n\017next_page_tok" + + "en\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\277\001\n\013GroupRe" + + "sult\022V\n\nproperties\030\001 \003(\0132B.google.cloud." + + "securitycenter.v1p1beta1.GroupResult.Pro" + + "pertiesEntry\022\r\n\005count\030\002 \001(\003\032I\n\017Propertie" + + "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo" + + "gle.protobuf.Value:\0028\001\"\221\001\n\036ListNotificat" + + "ionConfigsRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A" + + "2\n0cloudresourcemanager.googleapis.com/O" + + "rganization\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_" + + "size\030\003 \001(\005\"\223\001\n\037ListNotificationConfigsRe" + + "sponse\022W\n\024notification_configs\030\001 \003(\01329.g" + + "oogle.cloud.securitycenter.v1p1beta1.Not" + + "ificationConfig\022\027\n\017next_page_token\030\002 \001(\t" + + "\"y\n\022ListSourcesRequest\022<\n\006parent\030\001 \001(\tB," + + "\340A\002\372A&\022$securitycenter.googleapis.com/So" + + "urce\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\007 " + + "\001(\005\"n\n\023ListSourcesResponse\022>\n\007sources\030\001 " + + "\003(\0132-.google.cloud.securitycenter.v1p1be" + + "ta1.Source\022\027\n\017next_page_token\030\002 \001(\t\"\255\002\n\021" + + "ListAssetsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A" + + "%\022#securitycenter.googleapis.com/Asset\022\016" + + "\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\tread" + + "_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022" + + "3\n\020compare_duration\030\005 \001(\0132\031.google.proto" + + "buf.Duration\022.\n\nfield_mask\030\007 \001(\0132\032.googl" + + "e.protobuf.FieldMask\022\022\n\npage_token\030\010 \001(\t" + + "\022\021\n\tpage_size\030\t \001(\005\"\330\003\n\022ListAssetsRespon" + + "se\022g\n\023list_assets_results\030\001 \003(\0132J.google" + + ".cloud.securitycenter.v1p1beta1.ListAsse" + + "tsResponse.ListAssetsResult\022-\n\tread_time" + + "\030\002 \001(\0132\032.google.protobuf.Timestamp\022\027\n\017ne" + + "xt_page_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\032" + + "\374\001\n\020ListAssetsResult\022;\n\005asset\030\001 \001(\0132,.go" + + "ogle.cloud.securitycenter.v1p1beta1.Asse" + + "t\022l\n\014state_change\030\002 \001(\0162V.google.cloud.s" + + "ecuritycenter.v1p1beta1.ListAssetsRespon" + + "se.ListAssetsResult.StateChange\"=\n\013State" + + "Change\022\n\n\006UNUSED\020\000\022\t\n\005ADDED\020\001\022\013\n\007REMOVED" + + "\020\002\022\n\n\006ACTIVE\020\003\"\260\002\n\023ListFindingsRequest\022<" + + "\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$securitycenter.g" + + "oogleapis.com/Source\022\016\n\006filter\030\002 \001(\t\022\020\n\010" + + "order_by\030\003 \001(\t\022-\n\tread_time\030\004 \001(\0132\032.goog" + + "le.protobuf.Timestamp\0223\n\020compare_duratio" + + "n\030\005 \001(\0132\031.google.protobuf.Duration\022.\n\nfi" + + "eld_mask\030\007 \001(\0132\032.google.protobuf.FieldMa" + + "sk\022\022\n\npage_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(" + + "\005\"\253\006\n\024ListFindingsResponse\022m\n\025list_findi" + + "ngs_results\030\001 \003(\0132N.google.cloud.securit" + + "ycenter.v1p1beta1.ListFindingsResponse.L" + + "istFindingsResult\022-\n\tread_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022\027\n\017next_page_to" + + "ken\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\032\307\004\n\022ListFi" + + "ndingsResult\022?\n\007finding\030\001 \001(\0132..google.c" + + "loud.securitycenter.v1p1beta1.Finding\022p\n" + + "\014state_change\030\002 \001(\0162Z.google.cloud.secur" + + "itycenter.v1p1beta1.ListFindingsResponse" + + ".ListFindingsResult.StateChange\022n\n\010resou" + + "rce\030\003 \001(\0132W.google.cloud.securitycenter." + + "v1p1beta1.ListFindingsResponse.ListFindi" + + "ngsResult.ResourceB\003\340A\003\032\276\001\n\010Resource\022\014\n\004" + + "name\030\001 \001(\t\022\024\n\014project_name\030\002 \001(\t\022\034\n\024proj" + + "ect_display_name\030\003 \001(\t\022\023\n\013parent_name\030\004 " + + "\001(\t\022\033\n\023parent_display_name\030\005 \001(\t\022>\n\007fold" + + "ers\030\n \003(\0132-.google.cloud.securitycenter." + + "v1p1beta1.Folder\"M\n\013StateChange\022\n\n\006UNUSE" + + "D\020\000\022\013\n\007CHANGED\020\001\022\r\n\tUNCHANGED\020\002\022\t\n\005ADDED" + + "\020\003\022\013\n\007REMOVED\020\004\"\324\001\n\026SetFindingStateReque" + + "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%securitycenter" + + ".googleapis.com/Finding\022H\n\005state\030\002 \001(\01624" + + ".google.cloud.securitycenter.v1p1beta1.F" + + "inding.StateB\003\340A\002\0223\n\nstart_time\030\003 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\002\"d\n\030RunAss" + + "etDiscoveryRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372" + + "A2\n0cloudresourcemanager.googleapis.com/" + + "Organization\"\215\001\n\024UpdateFindingRequest\022D\n" + + "\007finding\030\001 \001(\0132..google.cloud.securityce" + + "nter.v1p1beta1.FindingB\003\340A\002\022/\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"\257\001\n" + + "\037UpdateNotificationConfigRequest\022[\n\023noti" + + "fication_config\030\001 \001(\01329.google.cloud.sec" + + "uritycenter.v1p1beta1.NotificationConfig" + + "B\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMask\"\265\001\n!UpdateOrganizationSet" + + "tingsRequest\022_\n\025organization_settings\030\001 " + + "\001(\0132;.google.cloud.securitycenter.v1p1be" + + "ta1.OrganizationSettingsB\003\340A\002\022/\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\212" + + "\001\n\023UpdateSourceRequest\022B\n\006source\030\001 \001(\0132-" + + ".google.cloud.securitycenter.v1p1beta1.S" + + "ourceB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google" + + ".protobuf.FieldMask\"\320\001\n\032UpdateSecurityMa" + + "rksRequest\022Q\n\016security_marks\030\001 \001(\01324.goo" + + "gle.cloud.securitycenter.v1p1beta1.Secur" + + "ityMarksB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.goo" + + "gle.protobuf.FieldMask\022.\n\nstart_time\030\003 \001" + + "(\0132\032.google.protobuf.Timestamp2\3703\n\016Secur" + + "ityCenter\022\306\001\n\014CreateSource\022:.google.clou" + + "d.securitycenter.v1p1beta1.CreateSourceR" + + "equest\032-.google.cloud.securitycenter.v1p" + + "1beta1.Source\"K\202\323\344\223\0025\"+/v1p1beta1/{paren" + + "t=organizations/*}/sources:\006source\332A\rpar" + + "ent,source\022\375\001\n\rCreateFinding\022;.google.cl" + + "oud.securitycenter.v1p1beta1.CreateFindi" + + "ngRequest\032..google.cloud.securitycenter." + + "v1p1beta1.Finding\"\177\202\323\344\223\002A\"6/v1p1beta1/{p" + + "arent=organizations/*/sources/*}/finding" + + "s:\007finding\332A\031parent,finding_id,finding\332A" + + "\031parent,finding,finding_id\022\270\002\n\030CreateNot" + + "ificationConfig\022F.google.cloud.securityc" + + "enter.v1p1beta1.CreateNotificationConfig" + + "Request\0329.google.cloud.securitycenter.v1" + + "p1beta1.NotificationConfig\"\230\001\202\323\344\223\002N\"7/v1" + + "p1beta1/{parent=organizations/*}/notific" + + "ationConfigs:\023notification_config\332A$pare" + + "nt,config_id,notification_config\332A\032paren" + + "t,notification_config\022\302\001\n\030DeleteNotifica" + + "tionConfig\022F.google.cloud.securitycenter" + + ".v1p1beta1.DeleteNotificationConfigReque" + + "st\032\026.google.protobuf.Empty\"F\202\323\344\223\0029*7/v1p" + + "1beta1/{name=organizations/*/notificatio" + + "nConfigs/*}\332A\004name\022\235\001\n\014GetIamPolicy\022\".go" + + "ogle.iam.v1.GetIamPolicyRequest\032\025.google" + + ".iam.v1.Policy\"R\202\323\344\223\002A\"\"9/v1p1beta1/{name=folders/*/source" + + "s/*/findings/*}:setState:\001*Z?\":/v1p1beta" + + "1/{name=projects/*/sources/*/findings/*}" + + ":setState:\001*\332A\025name,state,start_time\022\244\001\n" + + "\014SetIamPolicy\022\".google.iam.v1.SetIamPoli" + + "cyRequest\032\025.google.iam.v1.Policy\"Y\202\323\344\223\002A" + + "\"/v1p1bet" + + "a1/{finding.name=organizations/*/sources" + + "/*/findings/*}:\007findingZC28/v1p1beta1/{f" + + "inding.name=folders/*/sources/*/findings" + + "/*}:\007findingZD29/v1p1beta1/{finding.name" + + "=projects/*/sources/*/findings/*}:\007findi" + + "ng\332A\007finding\332A\023finding,update_mask\022\300\002\n\030U" + + "pdateNotificationConfig\022F.google.cloud.s" + + "ecuritycenter.v1p1beta1.UpdateNotificati" + + "onConfigRequest\0329.google.cloud.securityc" + + "enter.v1p1beta1.NotificationConfig\"\240\001\202\323\344" + + "\223\002b2K/v1p1beta1/{notification_config.nam" + + "e=organizations/*/notificationConfigs/*}" + + ":\023notification_config\332A\023notification_con" + + "fig\332A\037notification_config,update_mask\022\251\002" + + "\n\032UpdateOrganizationSettings\022H.google.cl" + + "oud.securitycenter.v1p1beta1.UpdateOrgan" + + "izationSettingsRequest\032;.google.cloud.se" + + "curitycenter.v1p1beta1.OrganizationSetti" + + "ngs\"\203\001\202\323\344\223\002e2L/v1p1beta1/{organization_s" + + "ettings.name=organizations/*/organizatio" + + "nSettings}:\025organization_settings\332A\025orga" + + "nization_settings\022\333\001\n\014UpdateSource\022:.goo" + + "gle.cloud.securitycenter.v1p1beta1.Updat" + + "eSourceRequest\032-.google.cloud.securityce" + + "nter.v1p1beta1.Source\"`\202\323\344\223\002<22/v1p1beta" + + "1/{source.name=organizations/*/sources/*" + + "}:\006source\332A\006source\332A\022source,update_mask\022" + + "\364\005\n\023UpdateSecurityMarks\022A.google.cloud.s" + + "ecuritycenter.v1p1beta1.UpdateSecurityMa" + + "rksRequest\0324.google.cloud.securitycenter" + + ".v1p1beta1.SecurityMarks\"\343\004\202\323\344\223\002\256\0042G/v1p" + + "1beta1/{security_marks.name=organization" + + "s/*/assets/*/securityMarks}:\016security_ma" + + "rksZS2A/v1p1beta1/{security_marks.name=f" + + "olders/*/assets/*/securityMarks}:\016securi" + + "ty_marksZT2B/v1p1beta1/{security_marks.n" + + "ame=projects/*/assets/*/securityMarks}:\016" + + "security_marksZe2S/v1p1beta1/{security_m" + + "arks.name=organizations/*/sources/*/find" + + "ings/*/securityMarks}:\016security_marksZ_2" + + "M/v1p1beta1/{security_marks.name=folders" + + "/*/sources/*/findings/*/securityMarks}:\016" + + "security_marksZ`2N/v1p1beta1/{security_m" + + "arks.name=projects/*/sources/*/findings/" + + "*/securityMarks}:\016security_marks\332A\016secur" + + "ity_marks\332A\032security_marks,update_mask\032Q" + + "\312A\035securitycenter.googleapis.com\322A.https" + + "://www.googleapis.com/auth/cloud-platfor" + + "mB\375\001\n)com.google.cloud.securitycenter.v1" + + "p1beta1P\001ZSgoogle.golang.org/genproto/go" + + "ogleapis/cloud/securitycenter/v1p1beta1;" + + "securitycenter\252\002%Google.Cloud.SecurityCe" + + "nter.V1P1Beta1\312\002%Google\\Cloud\\SecurityCe" + + "nter\\V1p1beta1\352\002(Google::Cloud::Security" + + "Center::V1p1beta1P\000P\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor, + new java.lang.String[] { "Parent", "FindingId", "Finding", }); + internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor, + new java.lang.String[] { "Parent", "ConfigId", "NotificationConfig", }); + internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor, + new java.lang.String[] { "Parent", "Source", }); + internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "GroupBy", "CompareDuration", "ReadTime", "PageToken", "PageSize", }); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor, + new java.lang.String[] { "GroupByResults", "ReadTime", "NextPageToken", "TotalSize", }); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "GroupBy", "ReadTime", "CompareDuration", "PageToken", "PageSize", }); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor, + new java.lang.String[] { "GroupByResults", "ReadTime", "NextPageToken", "TotalSize", }); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor, + new java.lang.String[] { "Properties", "Count", }); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor, + new java.lang.String[] { "NotificationConfigs", "NextPageToken", }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor, + new java.lang.String[] { "Sources", "NextPageToken", }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "OrderBy", "ReadTime", "CompareDuration", "FieldMask", "PageToken", "PageSize", }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor, + new java.lang.String[] { "ListAssetsResults", "ReadTime", "NextPageToken", "TotalSize", }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor, + new java.lang.String[] { "Asset", "StateChange", }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "OrderBy", "ReadTime", "CompareDuration", "FieldMask", "PageToken", "PageSize", }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor, + new java.lang.String[] { "ListFindingsResults", "ReadTime", "NextPageToken", "TotalSize", }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor, + new java.lang.String[] { "Finding", "StateChange", "Resource", }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor, + new java.lang.String[] { "Name", "ProjectName", "ProjectDisplayName", "ParentName", "ParentDisplayName", "Folders", }); + internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor, + new java.lang.String[] { "Name", "State", "StartTime", }); + internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor, + new java.lang.String[] { "Parent", }); + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor, + new java.lang.String[] { "Finding", "UpdateMask", }); + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor, + new java.lang.String[] { "NotificationConfig", "UpdateMask", }); + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor, + new java.lang.String[] { "OrganizationSettings", "UpdateMask", }); + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor, + new java.lang.String[] { "Source", "UpdateMask", }); + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor, + new java.lang.String[] { "SecurityMarks", "UpdateMask", "StartTime", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequest.java similarity index 65% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequest.java index 6d55b2a19..4ebf2246d 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Request message for updating a finding's state.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest} */ -public final class SetFindingStateRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SetFindingStateRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) SetFindingStateRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SetFindingStateRequest.newBuilder() to construct. private SetFindingStateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SetFindingStateRequest() { name_ = ""; state_ = 0; @@ -44,15 +26,16 @@ private SetFindingStateRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SetFindingStateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SetFindingStateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,42 +54,38 @@ private SetFindingStateRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; + state_ = rawValue; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - - break; + startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,33 +93,29 @@ private SetFindingStateRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.class, - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.class, com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -148,10 +123,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -160,15 +132,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -176,18 +147,17 @@ public java.lang.String getName() {
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -198,57 +168,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** - * - * *
    * Required. The desired State of the finding.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Required. The desired State of the finding.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The state. */ - @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() { + @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.Finding.State result = - com.google.cloud.securitycenter.v1p1beta1.Finding.State.valueOf(state_); - return result == null - ? com.google.cloud.securitycenter.v1p1beta1.Finding.State.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1p1beta1.Finding.State result = com.google.cloud.securitycenter.v1p1beta1.Finding.State.valueOf(state_); + return result == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.State.UNRECOGNIZED : result; } public static final int START_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the startTime field is set. */ @java.lang.Override @@ -256,15 +207,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The startTime. */ @java.lang.Override @@ -272,14 +219,11 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -287,7 +231,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -299,12 +242,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ - != com.google.cloud.securitycenter.v1p1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.securitycenter.v1p1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (startTime_ != null) { @@ -322,12 +265,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ - != com.google.cloud.securitycenter.v1p1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + if (state_ != com.google.cloud.securitycenter.v1p1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStartTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -337,19 +281,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest other = - (com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest other = (com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -376,127 +321,117 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest prototype) { + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for updating a finding's state.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.class, - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.class, com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.newBuilder() @@ -504,15 +439,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -530,14 +466,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.getDefaultInstance(); } @@ -552,8 +487,7 @@ public com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest build() @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest result = - new com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest(this); + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest result = new com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest(this); result.name_ = name_; result.state_ = state_; if (startTimeBuilder_ == null) { @@ -569,50 +503,46 @@ public com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest other) { + if (other == com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -642,9 +572,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -656,8 +584,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -665,16 +591,14 @@ public Builder mergeFrom(
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -683,8 +607,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -692,17 +614,16 @@ public java.lang.String getName() {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -710,8 +631,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -719,25 +638,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -745,21 +660,16 @@ public Builder setName(java.lang.String value) {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -767,19 +677,17 @@ public Builder clearName() {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -787,75 +695,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Required. The desired State of the finding.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Required. The desired State of the finding.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Required. The desired State of the finding.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The state. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.Finding.State result = - com.google.cloud.securitycenter.v1p1beta1.Finding.State.valueOf(state_); - return result == null - ? com.google.cloud.securitycenter.v1p1beta1.Finding.State.UNRECOGNIZED - : result; + com.google.cloud.securitycenter.v1p1beta1.Finding.State result = com.google.cloud.securitycenter.v1p1beta1.Finding.State.valueOf(state_); + return result == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.State.UNRECOGNIZED : result; } /** - * - * *
      * Required. The desired State of the finding.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The state to set. * @return This builder for chaining. */ @@ -863,26 +747,21 @@ public Builder setState(com.google.cloud.securitycenter.v1p1beta1.Finding.State if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The desired State of the finding.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -890,35 +769,24 @@ public Builder clearState() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -929,14 +797,11 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -952,16 +817,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -972,20 +835,17 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -997,14 +857,11 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -1018,66 +875,55 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1087,32 +933,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest(); } - public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest - getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetFindingStateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetFindingStateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetFindingStateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetFindingStateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1124,8 +968,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequestOrBuilder.java index 6866d87d0..9b04df1ff 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface SetFindingStateRequestOrBuilder - extends +public interface SetFindingStateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -33,16 +15,11 @@ public interface SetFindingStateRequestOrBuilder
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -50,78 +27,55 @@ public interface SetFindingStateRequestOrBuilder
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The desired State of the finding.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Required. The desired State of the finding.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The state. */ com.google.cloud.securitycenter.v1p1beta1.Finding.State getState(); /** - * - * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java similarity index 76% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java index dd86e993b..2766bbd89 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/source.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Security Command Center finding source. A finding source
  * is an entity or a mechanism that can produce a finding. A source is like a
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Source}
  */
-public final class Source extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Source extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.Source)
     SourceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Source.newBuilder() to construct.
   private Source(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Source() {
     name_ = "";
     displayName_ = "";
@@ -48,15 +30,16 @@ private Source() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Source();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Source(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,41 +58,37 @@ private Source(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            displayName_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
-            }
-          case 114:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            description_ = s;
+            break;
+          }
+          case 114: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              canonicalName_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            canonicalName_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -117,33 +96,29 @@ private Source(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass
-        .internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass
-        .internal_static_google_cloud_securitycenter_v1p1beta1_Source_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Source_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1p1beta1.Source.class,
-            com.google.cloud.securitycenter.v1p1beta1.Source.Builder.class);
+            com.google.cloud.securitycenter.v1p1beta1.Source.class, com.google.cloud.securitycenter.v1p1beta1.Source.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -152,7 +127,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -161,15 +135,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -178,15 +151,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -197,8 +171,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -208,7 +180,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -217,15 +188,14 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -235,15 +205,16 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -254,8 +225,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -267,7 +236,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -276,15 +244,14 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -296,15 +263,16 @@ public java.lang.String getDescription() {
    * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -315,8 +283,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CANONICAL_NAME_FIELD_NUMBER = 14; private volatile java.lang.Object canonicalName_; /** - * - * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}",
@@ -327,7 +293,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * 
* * string canonical_name = 14; - * * @return The canonicalName. */ @java.lang.Override @@ -336,15 +301,14 @@ public java.lang.String getCanonicalName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; } } /** - * - * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}",
@@ -355,15 +319,16 @@ public java.lang.String getCanonicalName() {
    * 
* * string canonical_name = 14; - * * @return The bytes for canonicalName. */ @java.lang.Override - public com.google.protobuf.ByteString getCanonicalNameBytes() { + public com.google.protobuf.ByteString + getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -372,7 +337,6 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -384,7 +348,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -426,18 +391,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.Source)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.Source other = - (com.google.cloud.securitycenter.v1p1beta1.Source) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getCanonicalName().equals(other.getCanonicalName())) return false; + com.google.cloud.securitycenter.v1p1beta1.Source other = (com.google.cloud.securitycenter.v1p1beta1.Source) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getCanonicalName() + .equals(other.getCanonicalName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -462,104 +430,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.securitycenter.v1p1beta1.Source parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.securitycenter.v1p1beta1.Source parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.Source parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.Source prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Security Command Center finding source. A finding source
    * is an entity or a mechanism that can produce a finding. A source is like a
@@ -568,23 +529,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Source}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.Source)
       com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_Source_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Source_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1p1beta1.Source.class,
-              com.google.cloud.securitycenter.v1p1beta1.Source.Builder.class);
+              com.google.cloud.securitycenter.v1p1beta1.Source.class, com.google.cloud.securitycenter.v1p1beta1.Source.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1p1beta1.Source.newBuilder()
@@ -592,15 +551,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -616,9 +576,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass
-          .internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor;
     }
 
     @java.lang.Override
@@ -637,8 +597,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Source build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1p1beta1.Source buildPartial() {
-      com.google.cloud.securitycenter.v1p1beta1.Source result =
-          new com.google.cloud.securitycenter.v1p1beta1.Source(this);
+      com.google.cloud.securitycenter.v1p1beta1.Source result = new com.google.cloud.securitycenter.v1p1beta1.Source(this);
       result.name_ = name_;
       result.displayName_ = displayName_;
       result.description_ = description_;
@@ -651,39 +610,38 @@ public com.google.cloud.securitycenter.v1p1beta1.Source buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1p1beta1.Source) {
-        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Source) other);
+        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Source)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -691,8 +649,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Source other) {
-      if (other == com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -740,8 +697,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -750,13 +705,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -765,8 +720,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -775,14 +728,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -790,8 +744,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -800,22 +752,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -824,18 +774,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -844,16 +791,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -861,8 +808,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -872,13 +817,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -887,8 +832,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -898,14 +841,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -913,8 +857,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -924,22 +866,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -949,18 +889,15 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -970,16 +907,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -987,8 +924,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -1000,13 +935,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1015,8 +950,6 @@ public java.lang.String getDescription() { } } /** - * - * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -1028,14 +961,15 @@ public java.lang.String getDescription() {
      * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1043,8 +977,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -1056,22 +988,20 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -1083,18 +1013,15 @@ public Builder setDescription(java.lang.String value) {
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -1106,16 +1033,16 @@ public Builder clearDescription() {
      * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1123,8 +1050,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object canonicalName_ = ""; /** - * - * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}",
@@ -1135,13 +1060,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * string canonical_name = 14; - * * @return The canonicalName. */ public java.lang.String getCanonicalName() { java.lang.Object ref = canonicalName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; @@ -1150,8 +1075,6 @@ public java.lang.String getCanonicalName() { } } /** - * - * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}",
@@ -1162,14 +1085,15 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 14; - * * @return The bytes for canonicalName. */ - public com.google.protobuf.ByteString getCanonicalNameBytes() { + public com.google.protobuf.ByteString + getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -1177,8 +1101,6 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() { } } /** - * - * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}",
@@ -1189,22 +1111,20 @@ public com.google.protobuf.ByteString getCanonicalNameBytes() {
      * 
* * string canonical_name = 14; - * * @param value The canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalName(java.lang.String value) { + public Builder setCanonicalName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + canonicalName_ = value; onChanged(); return this; } /** - * - * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}",
@@ -1215,18 +1135,15 @@ public Builder setCanonicalName(java.lang.String value) {
      * 
* * string canonical_name = 14; - * * @return This builder for chaining. */ public Builder clearCanonicalName() { - + canonicalName_ = getDefaultInstance().getCanonicalName(); onChanged(); return this; } /** - * - * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}",
@@ -1237,23 +1154,23 @@ public Builder clearCanonicalName() {
      * 
* * string canonical_name = 14; - * * @param value The bytes for canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalNameBytes(com.google.protobuf.ByteString value) { + public Builder setCanonicalNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1263,12 +1180,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.Source) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.Source) private static final com.google.cloud.securitycenter.v1p1beta1.Source DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.Source(); } @@ -1277,16 +1194,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.Source getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Source parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Source(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Source parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Source(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1301,4 +1218,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.Source getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceName.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceName.java similarity index 100% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceName.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceName.java diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java similarity index 79% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java index 033f30839..a67dfe453 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/source.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface SourceOrBuilder - extends +public interface SourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.Source) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -34,13 +16,10 @@ public interface SourceOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -49,14 +28,12 @@ public interface SourceOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -66,13 +43,10 @@ public interface SourceOrBuilder
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -82,14 +56,12 @@ public interface SourceOrBuilder
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -101,13 +73,10 @@ public interface SourceOrBuilder
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -119,14 +88,12 @@ public interface SourceOrBuilder
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}",
@@ -137,13 +104,10 @@ public interface SourceOrBuilder
    * 
* * string canonical_name = 14; - * * @return The canonicalName. */ java.lang.String getCanonicalName(); /** - * - * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}",
@@ -154,8 +118,8 @@ public interface SourceOrBuilder
    * 
* * string canonical_name = 14; - * * @return The bytes for canonicalName. */ - com.google.protobuf.ByteString getCanonicalNameBytes(); + com.google.protobuf.ByteString + getCanonicalNameBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOuterClass.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOuterClass.java new file mode 100644 index 000000000..0c8da1217 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOuterClass.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/source.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class SourceOuterClass { + private SourceOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_Source_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/securitycenter/v1p1beta1/" + + "source.proto\022%google.cloud.securitycente" + + "r.v1p1beta1\032\031google/api/resource.proto\032\034" + + "google/api/annotations.proto\"\375\001\n\006Source\022" + + "\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013d" + + "escription\030\003 \001(\t\022\026\n\016canonical_name\030\016 \001(\t" + + ":\241\001\352A\235\001\n$securitycenter.googleapis.com/S" + + "ource\022-organizations/{organization}/sour" + + "ces/{source}\022!folders/{folder}/sources/{" + + "source}\022#projects/{project}/sources/{sou" + + "rce}B\375\001\n)com.google.cloud.securitycenter" + + ".v1p1beta1P\001ZSgoogle.golang.org/genproto" + + "/googleapis/cloud/securitycenter/v1p1bet" + + "a1;securitycenter\252\002%Google.Cloud.Securit" + + "yCenter.V1P1Beta1\312\002%Google\\Cloud\\Securit" + + "yCenter\\V1p1beta1\352\002(Google::Cloud::Secur" + + "ityCenter::V1p1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_Source_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Description", "CanonicalName", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java similarity index 71% rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java index 3e79c75a3..d13ec035c 100644 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** - * - * *
  * Request message for updating or creating a finding.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest} */ -public final class UpdateFindingRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateFindingRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest) UpdateFindingRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateFindingRequest.newBuilder() to construct. private UpdateFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateFindingRequest() {} + private UpdateFindingRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,39 @@ private UpdateFindingRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1p1beta1.Finding.Builder subBuilder = null; - if (finding_ != null) { - subBuilder = finding_.toBuilder(); - } - finding_ = - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.Finding.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(finding_); - finding_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1p1beta1.Finding.Builder subBuilder = null; + if (finding_ != null) { + subBuilder = finding_.toBuilder(); + } + finding_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Finding.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finding_); + finding_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,33 +92,29 @@ private UpdateFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.class, - com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.class, com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.Builder.class); } public static final int FINDING_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1p1beta1.Finding finding_; /** - * - * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -149,10 +123,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * characters in length.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the finding field is set. */ @java.lang.Override @@ -160,8 +131,6 @@ public boolean hasFinding() { return finding_ != null; } /** - * - * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -170,21 +139,14 @@ public boolean hasFinding() {
    * characters in length.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { - return finding_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() : finding_; } /** - * - * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -193,9 +155,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() {
    * characters in length.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder() { @@ -205,8 +165,6 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -217,7 +175,6 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -225,8 +182,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -237,7 +192,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -245,8 +199,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -264,7 +216,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -276,7 +227,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (finding_ != null) {
       output.writeMessage(1, getFinding());
     }
@@ -293,10 +245,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (finding_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFinding());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getFinding());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -306,21 +260,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest other =
-        (com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest) obj;
+    com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest other = (com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest) obj;
 
     if (hasFinding() != other.hasFinding()) return false;
     if (hasFinding()) {
-      if (!getFinding().equals(other.getFinding())) return false;
+      if (!getFinding()
+          .equals(other.getFinding())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -347,127 +302,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for updating or creating a finding.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest) com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.class, - com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.class, com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.newBuilder() @@ -475,15 +420,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -503,14 +449,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.getDefaultInstance(); } @@ -525,8 +470,7 @@ public com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest result = - new com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest(this); + com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest result = new com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest(this); if (findingBuilder_ == null) { result.finding_ = finding_; } else { @@ -545,39 +489,38 @@ public com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest)other); } else { super.mergeFrom(other); return this; @@ -585,9 +528,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.getDefaultInstance()) return this; if (other.hasFinding()) { mergeFinding(other.getFinding()); } @@ -613,9 +554,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -627,13 +566,8 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1p1beta1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Finding, - com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, - com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> - findingBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> findingBuilder_; /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -642,18 +576,13 @@ public Builder mergeFrom(
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -662,24 +591,17 @@ public boolean hasFinding() {
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The finding. */ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { if (findingBuilder_ == null) { - return finding_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() : finding_; } else { return findingBuilder_.getMessage(); } } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -688,9 +610,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() {
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFinding(com.google.cloud.securitycenter.v1p1beta1.Finding value) { if (findingBuilder_ == null) { @@ -706,8 +626,6 @@ public Builder setFinding(com.google.cloud.securitycenter.v1p1beta1.Finding valu return this; } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -716,9 +634,7 @@ public Builder setFinding(com.google.cloud.securitycenter.v1p1beta1.Finding valu
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFinding( com.google.cloud.securitycenter.v1p1beta1.Finding.Builder builderForValue) { @@ -732,8 +648,6 @@ public Builder setFinding( return this; } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -742,17 +656,13 @@ public Builder setFinding(
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeFinding(com.google.cloud.securitycenter.v1p1beta1.Finding value) { if (findingBuilder_ == null) { if (finding_ != null) { finding_ = - com.google.cloud.securitycenter.v1p1beta1.Finding.newBuilder(finding_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.Finding.newBuilder(finding_).mergeFrom(value).buildPartial(); } else { finding_ = value; } @@ -764,8 +674,6 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1p1beta1.Finding va return this; } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -774,9 +682,7 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1p1beta1.Finding va
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFinding() { if (findingBuilder_ == null) { @@ -790,8 +696,6 @@ public Builder clearFinding() { return this; } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -800,18 +704,14 @@ public Builder clearFinding() {
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1p1beta1.Finding.Builder getFindingBuilder() { - + onChanged(); return getFindingFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -820,22 +720,17 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding.Builder getFindingBuild
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder() { if (findingBuilder_ != null) { return findingBuilder_.getMessageOrBuilder(); } else { - return finding_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() - : finding_; + return finding_ == null ? + com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() : finding_; } } /** - * - * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -844,22 +739,17 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu
      * characters in length.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Finding, - com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, - com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> getFindingFieldBuilder() { if (findingBuilder_ == null) { - findingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Finding, - com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, - com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder>( - getFinding(), getParentForChildren(), isClean()); + findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder>( + getFinding(), + getParentForChildren(), + isClean()); finding_ = null; } return findingBuilder_; @@ -867,13 +757,8 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -884,15 +769,12 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -903,21 +785,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -943,8 +820,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -956,7 +831,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -967,8 +843,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -984,7 +858,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -996,8 +870,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -1021,8 +893,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -1035,13 +905,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -1057,14 +925,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -1077,24 +942,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1104,32 +966,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest)
-  private static final com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest();
   }
 
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest
-      getDefaultInstance() {
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateFindingRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateFindingRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateFindingRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateFindingRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1141,8 +1001,9 @@ public com.google.protobuf.Parser getParserForType() {
   }
 
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest
-      getDefaultInstanceForType() {
+  public com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequestOrBuilder.java
similarity index 74%
rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequestOrBuilder.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequestOrBuilder.java
index 0a1be18fa..2ee39ff1e 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequestOrBuilder.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1p1beta1;
 
-public interface UpdateFindingRequestOrBuilder
-    extends
+public interface UpdateFindingRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -34,16 +16,11 @@ public interface UpdateFindingRequestOrBuilder
    * characters in length.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the finding field is set. */ boolean hasFinding(); /** - * - * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -52,16 +29,11 @@ public interface UpdateFindingRequestOrBuilder
    * characters in length.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The finding. */ com.google.cloud.securitycenter.v1p1beta1.Finding getFinding(); /** - * - * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -70,15 +42,11 @@ public interface UpdateFindingRequestOrBuilder
    * characters in length.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder(); /** - * - * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -89,13 +57,10 @@ public interface UpdateFindingRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -106,13 +71,10 @@ public interface UpdateFindingRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java
similarity index 62%
rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java
index 996d643f1..ac59fae40 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java
@@ -1,56 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1p1beta1;
 
 /**
- *
- *
  * 
  * Request message for updating a notification config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest} */ -public final class UpdateNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateNotificationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) UpdateNotificationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateNotificationConfigRequest.newBuilder() to construct. - private UpdateNotificationConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateNotificationConfigRequest() {} + private UpdateNotificationConfigRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateNotificationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateNotificationConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,46 +52,39 @@ private UpdateNotificationConfigRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder subBuilder = - null; - if (notificationConfig_ != null) { - subBuilder = notificationConfig_.toBuilder(); - } - notificationConfig_ = - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(notificationConfig_); - notificationConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder subBuilder = null; + if (notificationConfig_ != null) { + subBuilder = notificationConfig_.toBuilder(); + } + notificationConfig_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(notificationConfig_); + notificationConfig_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,42 +92,34 @@ private UpdateNotificationConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.class, - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.Builder - .class); + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.class, com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.Builder.class); } public static final int NOTIFICATION_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1p1beta1.NotificationConfig notificationConfig_; /** - * - * *
    * Required. The notification config to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationConfig field is set. */ @java.lang.Override @@ -159,53 +127,38 @@ public boolean hasNotificationConfig() { return notificationConfig_ != null; } /** - * - * *
    * Required. The notification config to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationConfig. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig() { - return notificationConfig_ == null - ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() : notificationConfig_; } /** - * - * *
    * Required. The notification config to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder - getNotificationConfigOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { return getNotificationConfig(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -213,15 +166,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -229,8 +179,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
@@ -244,7 +192,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -256,7 +203,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (notificationConfig_ != null) {
       output.writeMessage(1, getNotificationConfig());
     }
@@ -273,10 +221,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (notificationConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNotificationConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getNotificationConfig());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -286,22 +236,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
-    if (!(obj
-        instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest)) {
+    if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest other =
-        (com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) obj;
+    com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest other = (com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) obj;
 
     if (hasNotificationConfig() != other.hasNotificationConfig()) return false;
     if (hasNotificationConfig()) {
-      if (!getNotificationConfig().equals(other.getNotificationConfig())) return false;
+      if (!getNotificationConfig()
+          .equals(other.getNotificationConfig())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -328,146 +278,134 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest
-      parseDelimitedFrom(
-          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for updating a notification config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.class, - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.Builder - .class); + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.class, com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.newBuilder() + // Construct using com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,22 +425,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest build() { - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest result = - buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -510,10 +445,8 @@ public com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest - buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest result = - new com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest(this); + public com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest result = new com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest(this); if (notificationConfigBuilder_ == null) { result.notificationConfig_ = notificationConfig_; } else { @@ -532,52 +465,46 @@ public com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) { - return mergeFrom( - (com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) other); + if (other instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest other) { + if (other == com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.getDefaultInstance()) return this; if (other.hasNotificationConfig()) { mergeNotificationConfig(other.getNotificationConfig()); } @@ -599,14 +526,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parsedMessage = - null; + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -618,61 +542,41 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1p1beta1.NotificationConfig notificationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> - notificationConfigBuilder_; + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> notificationConfigBuilder_; /** - * - * *
      * Required. The notification config to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationConfig field is set. */ public boolean hasNotificationConfig() { return notificationConfigBuilder_ != null || notificationConfig_ != null; } /** - * - * *
      * Required. The notification config to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationConfig. */ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig() { if (notificationConfigBuilder_ == null) { - return notificationConfig_ == null - ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() : notificationConfig_; } else { return notificationConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The notification config to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { + public Builder setNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { if (notificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -686,15 +590,11 @@ public Builder setNotificationConfig( return this; } /** - * - * *
      * Required. The notification config to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNotificationConfig( com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder builderForValue) { @@ -708,25 +608,17 @@ public Builder setNotificationConfig( return this; } /** - * - * *
      * Required. The notification config to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { + public Builder mergeNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { if (notificationConfigBuilder_ == null) { if (notificationConfig_ != null) { notificationConfig_ = - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.newBuilder( - notificationConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.newBuilder(notificationConfig_).mergeFrom(value).buildPartial(); } else { notificationConfig_ = value; } @@ -738,15 +630,11 @@ public Builder mergeNotificationConfig( return this; } /** - * - * *
      * Required. The notification config to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearNotificationConfig() { if (notificationConfigBuilder_ == null) { @@ -760,66 +648,48 @@ public Builder clearNotificationConfig() { return this; } /** - * - * *
      * Required. The notification config to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder - getNotificationConfigBuilder() { - + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder getNotificationConfigBuilder() { + onChanged(); return getNotificationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The notification config to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder - getNotificationConfigOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { if (notificationConfigBuilder_ != null) { return notificationConfigBuilder_.getMessageOrBuilder(); } else { - return notificationConfig_ == null - ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() : notificationConfig_; } } /** - * - * *
      * Required. The notification config to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> getNotificationConfigFieldBuilder() { if (notificationConfigBuilder_ == null) { - notificationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder>( - getNotificationConfig(), getParentForChildren(), isClean()); + notificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder>( + getNotificationConfig(), + getParentForChildren(), + isClean()); notificationConfig_ = null; } return notificationConfigBuilder_; @@ -827,49 +697,36 @@ public Builder clearNotificationConfig() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -891,8 +748,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -900,7 +755,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -911,8 +767,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -924,7 +778,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -936,8 +790,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -957,8 +809,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -967,13 +817,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -985,14 +833,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -1001,24 +846,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1028,33 +870,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest)
-  private static final com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest DEFAULT_INSTANCE;
   static {
-    DEFAULT_INSTANCE =
-        new com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest();
+    DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest();
   }
 
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest
-      getDefaultInstance() {
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateNotificationConfigRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateNotificationConfigRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateNotificationConfigRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateNotificationConfigRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1066,8 +905,9 @@ public com.google.protobuf.Parser getParserForT
   }
 
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest
-      getDefaultInstanceForType() {
+  public com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequestOrBuilder.java
similarity index 58%
rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequestOrBuilder.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequestOrBuilder.java
index 43f0016eb..aa07bb40d 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequestOrBuilder.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequestOrBuilder.java
@@ -1,99 +1,60 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1p1beta1;
 
-public interface UpdateNotificationConfigRequestOrBuilder
-    extends
+public interface UpdateNotificationConfigRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The notification config to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationConfig field is set. */ boolean hasNotificationConfig(); /** - * - * *
    * Required. The notification config to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationConfig. */ com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig(); /** - * - * *
    * Required. The notification config to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder - getNotificationConfigOrBuilder(); + com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder getNotificationConfigOrBuilder(); /** - * - * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java
similarity index 59%
rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java
index a14666de4..bab359e66 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java
@@ -1,56 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1p1beta1;
 
 /**
- *
- *
  * 
  * Request message for updating an organization's settings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest} */ -public final class UpdateOrganizationSettingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateOrganizationSettingsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) UpdateOrganizationSettingsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateOrganizationSettingsRequest.newBuilder() to construct. - private UpdateOrganizationSettingsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateOrganizationSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateOrganizationSettingsRequest() {} + private UpdateOrganizationSettingsRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateOrganizationSettingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateOrganizationSettingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,46 +52,39 @@ private UpdateOrganizationSettingsRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder subBuilder = - null; - if (organizationSettings_ != null) { - subBuilder = organizationSettings_.toBuilder(); - } - organizationSettings_ = - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(organizationSettings_); - organizationSettings_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder subBuilder = null; + if (organizationSettings_ != null) { + subBuilder = organizationSettings_.toBuilder(); + } + organizationSettings_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(organizationSettings_); + organizationSettings_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,42 +92,34 @@ private UpdateOrganizationSettingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.class, - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.Builder - .class); + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.Builder.class); } public static final int ORGANIZATION_SETTINGS_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings organizationSettings_; /** - * - * *
    * Required. The organization settings resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the organizationSettings field is set. */ @java.lang.Override @@ -159,53 +127,38 @@ public boolean hasOrganizationSettings() { return organizationSettings_ != null; } /** - * - * *
    * Required. The organization settings resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The organizationSettings. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getOrganizationSettings() { - return organizationSettings_ == null - ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance() - : organizationSettings_; + return organizationSettings_ == null ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance() : organizationSettings_; } /** - * - * *
    * Required. The organization settings resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder - getOrganizationSettingsOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder() { return getOrganizationSettings(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -213,15 +166,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -229,8 +179,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
@@ -244,7 +192,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -256,7 +203,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (organizationSettings_ != null) {
       output.writeMessage(1, getOrganizationSettings());
     }
@@ -273,11 +221,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (organizationSettings_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOrganizationSettings());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getOrganizationSettings());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -287,22 +236,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
-    if (!(obj
-        instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest)) {
+    if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest other =
-        (com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) obj;
+    com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest other = (com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) obj;
 
     if (hasOrganizationSettings() != other.hasOrganizationSettings()) return false;
     if (hasOrganizationSettings()) {
-      if (!getOrganizationSettings().equals(other.getOrganizationSettings())) return false;
+      if (!getOrganizationSettings()
+          .equals(other.getOrganizationSettings())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -328,152 +277,135 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
-      parseFrom(java.nio.ByteBuffer data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseFrom(
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
-      parseFrom(
-          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseFrom(
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
-      parseFrom(com.google.protobuf.ByteString data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseFrom(
+      com.google.protobuf.ByteString data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
-      parseFrom(
-          com.google.protobuf.ByteString data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseFrom(
+      com.google.protobuf.ByteString data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
-      parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
-      parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseFrom(
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
-      parseFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
-      parseFrom(
-          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
-      parseDelimitedFrom(
-          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
-      parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseFrom(
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
-      parseFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseFrom(
+      com.google.protobuf.CodedInputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for updating an organization's settings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.class, - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.Builder - .class); + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.newBuilder() + // Construct using com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -493,22 +425,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest build() { - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest result = - buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -516,10 +445,8 @@ public com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsReque } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest - buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest result = - new com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest(this); + public com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest result = new com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest(this); if (organizationSettingsBuilder_ == null) { result.organizationSettings_ = organizationSettings_; } else { @@ -538,52 +465,46 @@ public com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) { - return mergeFrom( - (com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) other); + if (other instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) { + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest other) { + if (other == com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.getDefaultInstance()) return this; if (other.hasOrganizationSettings()) { mergeOrganizationSettings(other.getOrganizationSettings()); } @@ -605,14 +526,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parsedMessage = - null; + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -624,62 +542,41 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings organizationSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder> - organizationSettingsBuilder_; + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder> organizationSettingsBuilder_; /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the organizationSettings field is set. */ public boolean hasOrganizationSettings() { return organizationSettingsBuilder_ != null || organizationSettings_ != null; } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The organizationSettings. */ - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings - getOrganizationSettings() { + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getOrganizationSettings() { if (organizationSettingsBuilder_ == null) { - return organizationSettings_ == null - ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance() - : organizationSettings_; + return organizationSettings_ == null ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance() : organizationSettings_; } else { return organizationSettingsBuilder_.getMessage(); } } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setOrganizationSettings( - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings value) { + public Builder setOrganizationSettings(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings value) { if (organizationSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -693,15 +590,11 @@ public Builder setOrganizationSettings( return this; } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOrganizationSettings( com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder builderForValue) { @@ -715,25 +608,17 @@ public Builder setOrganizationSettings( return this; } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeOrganizationSettings( - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings value) { + public Builder mergeOrganizationSettings(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings value) { if (organizationSettingsBuilder_ == null) { if (organizationSettings_ != null) { organizationSettings_ = - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.newBuilder( - organizationSettings_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.newBuilder(organizationSettings_).mergeFrom(value).buildPartial(); } else { organizationSettings_ = value; } @@ -745,15 +630,11 @@ public Builder mergeOrganizationSettings( return this; } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOrganizationSettings() { if (organizationSettingsBuilder_ == null) { @@ -767,66 +648,48 @@ public Builder clearOrganizationSettings() { return this; } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder - getOrganizationSettingsBuilder() { - + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder getOrganizationSettingsBuilder() { + onChanged(); return getOrganizationSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder - getOrganizationSettingsOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder() { if (organizationSettingsBuilder_ != null) { return organizationSettingsBuilder_.getMessageOrBuilder(); } else { - return organizationSettings_ == null - ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance() - : organizationSettings_; + return organizationSettings_ == null ? + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance() : organizationSettings_; } } /** - * - * *
      * Required. The organization settings resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder> getOrganizationSettingsFieldBuilder() { if (organizationSettingsBuilder_ == null) { - organizationSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder>( - getOrganizationSettings(), getParentForChildren(), isClean()); + organizationSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder>( + getOrganizationSettings(), + getParentForChildren(), + isClean()); organizationSettings_ = null; } return organizationSettingsBuilder_; @@ -834,49 +697,36 @@ public Builder clearOrganizationSettings() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -898,8 +748,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -907,7 +755,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -918,8 +767,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -931,7 +778,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -943,8 +790,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -964,8 +809,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -974,13 +817,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -992,14 +833,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -1008,24 +846,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1035,33 +870,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest)
-  private static final com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest DEFAULT_INSTANCE;
   static {
-    DEFAULT_INSTANCE =
-        new com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest();
+    DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest();
   }
 
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
-      getDefaultInstance() {
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateOrganizationSettingsRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateOrganizationSettingsRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateOrganizationSettingsRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateOrganizationSettingsRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1073,8 +905,9 @@ public com.google.protobuf.Parser getParserFo
   }
 
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
-      getDefaultInstanceForType() {
+  public com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequestOrBuilder.java
similarity index 58%
rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequestOrBuilder.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequestOrBuilder.java
index 5d3c5e3c6..e2a402a6c 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequestOrBuilder.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequestOrBuilder.java
@@ -1,99 +1,60 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1p1beta1;
 
-public interface UpdateOrganizationSettingsRequestOrBuilder
-    extends
+public interface UpdateOrganizationSettingsRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The organization settings resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the organizationSettings field is set. */ boolean hasOrganizationSettings(); /** - * - * *
    * Required. The organization settings resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The organizationSettings. */ com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getOrganizationSettings(); /** - * - * *
    * Required. The organization settings resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder - getOrganizationSettingsOrBuilder(); + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder(); /** - * - * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java
similarity index 68%
rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java
index 67c65bc21..89c1c4188 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1p1beta1;
 
 /**
- *
- *
  * 
  * Request message for updating a SecurityMarks resource.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest} */ -public final class UpdateSecurityMarksRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateSecurityMarksRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest) UpdateSecurityMarksRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSecurityMarksRequest.newBuilder() to construct. private UpdateSecurityMarksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateSecurityMarksRequest() {} + private UpdateSecurityMarksRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSecurityMarksRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateSecurityMarksRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,60 +52,52 @@ private UpdateSecurityMarksRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder subBuilder = null; - if (securityMarks_ != null) { - subBuilder = securityMarks_.toBuilder(); - } - securityMarks_ = - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(securityMarks_); - securityMarks_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder subBuilder = null; + if (securityMarks_ != null) { + subBuilder = securityMarks_.toBuilder(); + } + securityMarks_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(securityMarks_); + securityMarks_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -129,41 +105,34 @@ private UpdateSecurityMarksRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.class, - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.class, com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.Builder.class); } public static final int SECURITY_MARKS_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1p1beta1.SecurityMarks securityMarks_; /** - * - * *
    * Required. The security marks resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the securityMarks field is set. */ @java.lang.Override @@ -171,46 +140,32 @@ public boolean hasSecurityMarks() { return securityMarks_ != null; } /** - * - * *
    * Required. The security marks resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The securityMarks. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks() { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; } /** - * - * *
    * Required. The security marks resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder - getSecurityMarksOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { return getSecurityMarks(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -219,7 +174,6 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks(
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -227,8 +181,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -237,7 +189,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -245,8 +196,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -264,8 +213,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int START_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Timestamp startTime_;
   /**
-   *
-   *
    * 
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
@@ -273,7 +220,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -281,8 +227,6 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
@@ -290,7 +234,6 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return The startTime. */ @java.lang.Override @@ -298,8 +241,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
@@ -314,7 +255,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -326,7 +266,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (securityMarks_ != null) {
       output.writeMessage(1, getSecurityMarks());
     }
@@ -346,13 +287,16 @@ public int getSerializedSize() {
 
     size = 0;
     if (securityMarks_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSecurityMarks());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getSecurityMarks());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     if (startTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getStartTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -362,25 +306,27 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest other =
-        (com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest) obj;
+    com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest other = (com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest) obj;
 
     if (hasSecurityMarks() != other.hasSecurityMarks()) return false;
     if (hasSecurityMarks()) {
-      if (!getSecurityMarks().equals(other.getSecurityMarks())) return false;
+      if (!getSecurityMarks()
+          .equals(other.getSecurityMarks())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (hasStartTime() != other.hasStartTime()) return false;
     if (hasStartTime()) {
-      if (!getStartTime().equals(other.getStartTime())) return false;
+      if (!getStartTime()
+          .equals(other.getStartTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -411,145 +357,134 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest
-      parseDelimitedFrom(
-          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for updating a SecurityMarks resource.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest) com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.class, - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.class, com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.Builder.class); } - // Construct using - // com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.newBuilder() + // Construct using com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -575,16 +510,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest - getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest - .getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.getDefaultInstance(); } @java.lang.Override @@ -598,8 +531,7 @@ public com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest buil @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest result = - new com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest(this); + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest result = new com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest(this); if (securityMarksBuilder_ == null) { result.securityMarks_ = securityMarks_; } else { @@ -623,51 +555,46 @@ public com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest) { - return mergeFrom( - (com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest other) { + if (other == com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.getDefaultInstance()) return this; if (other.hasSecurityMarks()) { mergeSecurityMarks(other.getSecurityMarks()); } @@ -696,9 +623,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -710,58 +635,39 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1p1beta1.SecurityMarks securityMarks_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, - com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder> - securityMarksBuilder_; + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder> securityMarksBuilder_; /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The securityMarks. */ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; } else { return securityMarksBuilder_.getMessage(); } } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { @@ -777,15 +683,11 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.Securi return this; } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSecurityMarks( com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder builderForValue) { @@ -799,24 +701,17 @@ public Builder setSecurityMarks( return this; } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeSecurityMarks( - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks value) { + public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { if (securityMarks_ != null) { securityMarks_ = - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.newBuilder(securityMarks_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.newBuilder(securityMarks_).mergeFrom(value).buildPartial(); } else { securityMarks_ = value; } @@ -828,15 +723,11 @@ public Builder mergeSecurityMarks( return this; } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -850,66 +741,48 @@ public Builder clearSecurityMarks() { return this; } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder - getSecurityMarksBuilder() { - + public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder getSecurityMarksBuilder() { + onChanged(); return getSecurityMarksFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder - getSecurityMarksOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { if (securityMarksBuilder_ != null) { return securityMarksBuilder_.getMessageOrBuilder(); } else { - return securityMarks_ == null - ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() - : securityMarks_; + return securityMarks_ == null ? + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; } } /** - * - * *
      * Required. The security marks resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, - com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder> getSecurityMarksFieldBuilder() { if (securityMarksBuilder_ == null) { - securityMarksBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, - com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder>( - getSecurityMarks(), getParentForChildren(), isClean()); + securityMarksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder>( + getSecurityMarks(), + getParentForChildren(), + isClean()); securityMarks_ = null; } return securityMarksBuilder_; @@ -917,13 +790,8 @@ public Builder clearSecurityMarks() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -932,15 +800,12 @@ public Builder clearSecurityMarks() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -949,21 +814,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -987,8 +847,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -998,7 +856,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -1009,8 +868,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -1024,7 +881,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -1036,8 +893,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -1059,8 +914,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -1071,13 +924,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -1091,14 +942,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -1109,17 +957,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
@@ -1127,13 +972,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
 
     private com.google.protobuf.Timestamp startTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        startTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
     /**
-     *
-     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1141,15 +981,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1157,7 +994,6 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1168,8 +1004,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1192,8 +1026,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1202,7 +1034,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp start_time = 3;
      */
-    public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setStartTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
         onChanged();
@@ -1213,8 +1046,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1227,7 +1058,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       if (startTimeBuilder_ == null) {
         if (startTime_ != null) {
           startTime_ =
-              com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
         } else {
           startTime_ = value;
         }
@@ -1239,8 +1070,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1261,8 +1090,6 @@ public Builder clearStartTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1272,13 +1099,11 @@ public Builder clearStartTime() {
      * .google.protobuf.Timestamp start_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
-
+      
       onChanged();
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1291,12 +1116,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
       if (startTimeBuilder_ != null) {
         return startTimeBuilder_.getMessageOrBuilder();
       } else {
-        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+        return startTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1306,24 +1130,21 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * .google.protobuf.Timestamp start_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getStartTimeFieldBuilder() {
       if (startTimeBuilder_ == null) {
-        startTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getStartTime(), getParentForChildren(), isClean());
+        startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getStartTime(),
+                getParentForChildren(),
+                isClean());
         startTime_ = null;
       }
       return startTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1333,32 +1154,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest)
-  private static final com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest();
   }
 
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest
-      getDefaultInstance() {
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateSecurityMarksRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateSecurityMarksRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateSecurityMarksRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateSecurityMarksRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1370,8 +1189,9 @@ public com.google.protobuf.Parser getParserForType()
   }
 
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest
-      getDefaultInstanceForType() {
+  public com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequestOrBuilder.java
similarity index 73%
rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequestOrBuilder.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequestOrBuilder.java
index e2a432975..d9e67fdb0 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequestOrBuilder.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequestOrBuilder.java
@@ -1,72 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1p1beta1;
 
-public interface UpdateSecurityMarksRequestOrBuilder
-    extends
+public interface UpdateSecurityMarksRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The security marks resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** - * - * *
    * Required. The security marks resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The securityMarks. */ com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks(); /** - * - * *
    * Required. The security marks resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder(); /** - * - * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -75,13 +43,10 @@ public interface UpdateSecurityMarksRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -90,13 +55,10 @@ public interface UpdateSecurityMarksRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -109,8 +71,6 @@ public interface UpdateSecurityMarksRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
@@ -118,13 +78,10 @@ public interface UpdateSecurityMarksRequestOrBuilder
    * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
@@ -132,13 +89,10 @@ public interface UpdateSecurityMarksRequestOrBuilder
    * 
* * .google.protobuf.Timestamp start_time = 3; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java
similarity index 66%
rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java
index 61a252d1b..5b6342e92 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1p1beta1;
 
 /**
- *
- *
  * 
  * Request message for updating a source.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest} */ -public final class UpdateSourceRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateSourceRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest) UpdateSourceRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSourceRequest.newBuilder() to construct. private UpdateSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateSourceRequest() {} + private UpdateSourceRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateSourceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateSourceRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.securitycenter.v1p1beta1.Source.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.securitycenter.v1p1beta1.Source.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.securitycenter.v1p1beta1.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,41 +92,34 @@ private UpdateSourceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.class, - com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.class, com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.Builder.class); } public static final int SOURCE_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1p1beta1.Source source_; /** - * - * *
    * Required. The source resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the source field is set. */ @java.lang.Override @@ -155,34 +127,23 @@ public boolean hasSource() { return source_ != null; } /** - * - * *
    * Required. The source resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The source. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Source getSource() { - return source_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() : source_; } /** - * - * *
    * Required. The source resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuilder() { @@ -192,15 +153,12 @@ public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuil public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -208,15 +166,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -224,8 +179,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
@@ -239,7 +192,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -251,7 +203,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (source_ != null) {
       output.writeMessage(1, getSource());
     }
@@ -268,10 +221,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (source_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSource());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getSource());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -281,21 +236,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest other =
-        (com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest) obj;
+    com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest other = (com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest) obj;
 
     if (hasSource() != other.hasSource()) return false;
     if (hasSource()) {
-      if (!getSource().equals(other.getSource())) return false;
+      if (!getSource()
+          .equals(other.getSource())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -322,127 +278,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for updating a source.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest) com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.class, - com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.class, com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.newBuilder() @@ -450,15 +396,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,14 +425,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService - .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest - getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.getDefaultInstance(); } @@ -500,8 +446,7 @@ public com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest result = - new com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest(this); + com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest result = new com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest(this); if (sourceBuilder_ == null) { result.source_ = source_; } else { @@ -520,39 +465,38 @@ public com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest) other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest)other); } else { super.mergeFrom(other); return this; @@ -560,9 +504,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest other) { - if (other - == com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.getDefaultInstance()) return this; if (other.hasSource()) { mergeSource(other.getSource()); } @@ -588,9 +530,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -602,58 +542,39 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1p1beta1.Source source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Source, - com.google.cloud.securitycenter.v1p1beta1.Source.Builder, - com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> - sourceBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Source, com.google.cloud.securitycenter.v1p1beta1.Source.Builder, com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> sourceBuilder_; /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The source. */ public com.google.cloud.securitycenter.v1p1beta1.Source getSource() { if (sourceBuilder_ == null) { - return source_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() - : source_; + return source_ == null ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSource(com.google.cloud.securitycenter.v1p1beta1.Source value) { if (sourceBuilder_ == null) { @@ -669,15 +590,11 @@ public Builder setSource(com.google.cloud.securitycenter.v1p1beta1.Source value) return this; } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSource( com.google.cloud.securitycenter.v1p1beta1.Source.Builder builderForValue) { @@ -691,23 +608,17 @@ public Builder setSource( return this; } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSource(com.google.cloud.securitycenter.v1p1beta1.Source value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = - com.google.cloud.securitycenter.v1p1beta1.Source.newBuilder(source_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.Source.newBuilder(source_).mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -719,15 +630,11 @@ public Builder mergeSource(com.google.cloud.securitycenter.v1p1beta1.Source valu return this; } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSource() { if (sourceBuilder_ == null) { @@ -741,64 +648,48 @@ public Builder clearSource() { return this; } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1p1beta1.Source.Builder getSourceBuilder() { - + onChanged(); return getSourceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { - return source_ == null - ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() - : source_; + return source_ == null ? + com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() : source_; } } /** - * - * *
      * Required. The source resource to update.
      * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Source, - com.google.cloud.securitycenter.v1p1beta1.Source.Builder, - com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.Source, com.google.cloud.securitycenter.v1p1beta1.Source.Builder, com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { - sourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Source, - com.google.cloud.securitycenter.v1p1beta1.Source.Builder, - com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder>( - getSource(), getParentForChildren(), isClean()); + sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Source, com.google.cloud.securitycenter.v1p1beta1.Source.Builder, com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder>( + getSource(), + getParentForChildren(), + isClean()); source_ = null; } return sourceBuilder_; @@ -806,49 +697,36 @@ public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuil private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -870,8 +748,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -879,7 +755,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -890,8 +767,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -903,7 +778,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -915,8 +790,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -936,8 +809,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -946,13 +817,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -964,14 +833,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -980,24 +846,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1007,13 +870,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest)
-  private static final com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest();
   }
@@ -1022,16 +884,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest getD
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateSourceRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateSourceRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateSourceRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateSourceRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1046,4 +908,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequestOrBuilder.java
similarity index 60%
rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequestOrBuilder.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequestOrBuilder.java
index 16f58a217..61e2653d9 100644
--- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequestOrBuilder.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequestOrBuilder.java
@@ -1,98 +1,60 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1p1beta1;
 
-public interface UpdateSourceRequestOrBuilder
-    extends
+public interface UpdateSourceRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The source resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the source field is set. */ boolean hasSource(); /** - * - * *
    * Required. The source resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The source. */ com.google.cloud.securitycenter.v1p1beta1.Source getSource(); /** - * - * *
    * Required. The source resource to update.
    * 
* - * - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuilder(); /** - * - * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/asset.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/asset.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/asset.proto
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/asset.proto
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/finding.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/finding.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/finding.proto
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/finding.proto
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/folder.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/folder.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/folder.proto
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/folder.proto
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_config.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_config.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_config.proto
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_config.proto
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_message.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_message.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_message.proto
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_message.proto
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/organization_settings.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/organization_settings.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/organization_settings.proto
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/organization_settings.proto
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/resource.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/resource.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/resource.proto
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/resource.proto
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/security_marks.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/security_marks.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/security_marks.proto
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/security_marks.proto
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/source.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/source.proto
similarity index 100%
rename from proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/source.proto
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/source.proto
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java
new file mode 100644
index 000000000..b9239f558
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_create_setcredentialsprovider_sync]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterSettings;
+import com.google.cloud.securitycenter.v1p1beta1.myCredentials;
+
+public class SyncCreateSetCredentialsProvider {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetCredentialsProvider();
+  }
+
+  public static void syncCreateSetCredentialsProvider() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    SecurityCenterSettings securityCenterSettings =
+        SecurityCenterSettings.newBuilder()
+            .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+            .build();
+    SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings);
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_create_setcredentialsprovider_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java
new file mode 100644
index 000000000..14c0d53f4
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_create_setcredentialsprovider1_sync]
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterSettings;
+
+public class SyncCreateSetCredentialsProvider1 {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetCredentialsProvider1();
+  }
+
+  public static void syncCreateSetCredentialsProvider1() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    SecurityCenterSettings securityCenterSettings =
+        SecurityCenterSettings.newBuilder()
+            .setTransportChannelProvider(
+                SecurityCenterSettings.defaultHttpJsonTransportProviderBuilder().build())
+            .build();
+    SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings);
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_create_setcredentialsprovider1_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetEndpoint.java
new file mode 100644
index 000000000..0e9faceab
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetEndpoint.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_create_setendpoint_sync]
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterSettings;
+import com.google.cloud.securitycenter.v1p1beta1.myEndpoint;
+
+public class SyncCreateSetEndpoint {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetEndpoint();
+  }
+
+  public static void syncCreateSetEndpoint() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    SecurityCenterSettings securityCenterSettings =
+        SecurityCenterSettings.newBuilder().setEndpoint(myEndpoint).build();
+    SecurityCenterClient securityCenterClient = SecurityCenterClient.create(securityCenterSettings);
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_create_setendpoint_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/AsyncCreateFinding.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/AsyncCreateFinding.java
new file mode 100644
index 000000000..155e97ec0
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/AsyncCreateFinding.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest;
+import com.google.cloud.securitycenter.v1p1beta1.Finding;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+
+public class AsyncCreateFinding {
+
+  public static void main(String[] args) throws Exception {
+    asyncCreateFinding();
+  }
+
+  public static void asyncCreateFinding() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      CreateFindingRequest request =
+          CreateFindingRequest.newBuilder()
+              .setParent(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setFindingId("findingId439150212")
+              .setFinding(Finding.newBuilder().build())
+              .build();
+      ApiFuture future = securityCenterClient.createFindingCallable().futureCall(request);
+      // Do something.
+      Finding response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFinding.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFinding.java
new file mode 100644
index 000000000..cc47ac560
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFinding.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_sync]
+import com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest;
+import com.google.cloud.securitycenter.v1p1beta1.Finding;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+
+public class SyncCreateFinding {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateFinding();
+  }
+
+  public static void syncCreateFinding() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      CreateFindingRequest request =
+          CreateFindingRequest.newBuilder()
+              .setParent(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setFindingId("findingId439150212")
+              .setFinding(Finding.newBuilder().build())
+              .build();
+      Finding response = securityCenterClient.createFinding(request);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameFindingString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameFindingString.java
new file mode 100644
index 000000000..e2baf3651
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameFindingString.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_sourcenamefindingstring_sync]
+import com.google.cloud.securitycenter.v1p1beta1.Finding;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+
+public class SyncCreateFindingSourcenameFindingString {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateFindingSourcenameFindingString();
+  }
+
+  public static void syncCreateFindingSourcenameFindingString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+      Finding finding = Finding.newBuilder().build();
+      String findingId = "findingId439150212";
+      Finding response = securityCenterClient.createFinding(parent, finding, findingId);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_sourcenamefindingstring_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java
new file mode 100644
index 000000000..b228feae3
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_sourcenamestringfinding_sync]
+import com.google.cloud.securitycenter.v1p1beta1.Finding;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+
+public class SyncCreateFindingSourcenameStringFinding {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateFindingSourcenameStringFinding();
+  }
+
+  public static void syncCreateFindingSourcenameStringFinding() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+      String findingId = "findingId439150212";
+      Finding finding = Finding.newBuilder().build();
+      Finding response = securityCenterClient.createFinding(parent, findingId, finding);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_sourcenamestringfinding_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringFindingString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringFindingString.java
new file mode 100644
index 000000000..b7d696af6
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringFindingString.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_stringfindingstring_sync]
+import com.google.cloud.securitycenter.v1p1beta1.Finding;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+
+public class SyncCreateFindingStringFindingString {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateFindingStringFindingString();
+  }
+
+  public static void syncCreateFindingStringFindingString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString();
+      Finding finding = Finding.newBuilder().build();
+      String findingId = "findingId439150212";
+      Finding response = securityCenterClient.createFinding(parent, finding, findingId);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_stringfindingstring_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java
new file mode 100644
index 000000000..799dc6a97
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_stringstringfinding_sync]
+import com.google.cloud.securitycenter.v1p1beta1.Finding;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+
+public class SyncCreateFindingStringStringFinding {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateFindingStringStringFinding();
+  }
+
+  public static void syncCreateFindingStringStringFinding() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString();
+      String findingId = "findingId439150212";
+      Finding finding = Finding.newBuilder().build();
+      Finding response = securityCenterClient.createFinding(parent, findingId, finding);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_stringstringfinding_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/AsyncCreateNotificationConfig.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/AsyncCreateNotificationConfig.java
new file mode 100644
index 000000000..0126f3dd7
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/AsyncCreateNotificationConfig.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest;
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class AsyncCreateNotificationConfig {
+
+  public static void main(String[] args) throws Exception {
+    asyncCreateNotificationConfig();
+  }
+
+  public static void asyncCreateNotificationConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      CreateNotificationConfigRequest request =
+          CreateNotificationConfigRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setConfigId("configId-580140035")
+              .setNotificationConfig(NotificationConfig.newBuilder().build())
+              .build();
+      ApiFuture future =
+          securityCenterClient.createNotificationConfigCallable().futureCall(request);
+      // Do something.
+      NotificationConfig response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfig.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfig.java
new file mode 100644
index 000000000..62a039bfb
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfig.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_sync]
+import com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest;
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncCreateNotificationConfig {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateNotificationConfig();
+  }
+
+  public static void syncCreateNotificationConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      CreateNotificationConfigRequest request =
+          CreateNotificationConfigRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setConfigId("configId-580140035")
+              .setNotificationConfig(NotificationConfig.newBuilder().build())
+              .build();
+      NotificationConfig response = securityCenterClient.createNotificationConfig(request);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java
new file mode 100644
index 000000000..4c8536f71
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_organizationnamenotificationconfig_sync]
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncCreateNotificationConfigOrganizationnameNotificationconfig {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateNotificationConfigOrganizationnameNotificationconfig();
+  }
+
+  public static void syncCreateNotificationConfigOrganizationnameNotificationconfig()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+      NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
+      NotificationConfig response =
+          securityCenterClient.createNotificationConfig(parent, notificationConfig);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_organizationnamenotificationconfig_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java
new file mode 100644
index 000000000..79c228b5f
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_organizationnamestringnotificationconfig_sync]
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncCreateNotificationConfigOrganizationnameStringNotificationconfig {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateNotificationConfigOrganizationnameStringNotificationconfig();
+  }
+
+  public static void syncCreateNotificationConfigOrganizationnameStringNotificationconfig()
+      throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+      String configId = "configId-580140035";
+      NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
+      NotificationConfig response =
+          securityCenterClient.createNotificationConfig(parent, configId, notificationConfig);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_organizationnamestringnotificationconfig_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java
new file mode 100644
index 000000000..5562a91a3
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_stringnotificationconfig_sync]
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncCreateNotificationConfigStringNotificationconfig {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateNotificationConfigStringNotificationconfig();
+  }
+
+  public static void syncCreateNotificationConfigStringNotificationconfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = OrganizationName.of("[ORGANIZATION]").toString();
+      NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
+      NotificationConfig response =
+          securityCenterClient.createNotificationConfig(parent, notificationConfig);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_stringnotificationconfig_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java
new file mode 100644
index 000000000..cb1ca7e72
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_stringstringnotificationconfig_sync]
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncCreateNotificationConfigStringStringNotificationconfig {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateNotificationConfigStringStringNotificationconfig();
+  }
+
+  public static void syncCreateNotificationConfigStringStringNotificationconfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = OrganizationName.of("[ORGANIZATION]").toString();
+      String configId = "configId-580140035";
+      NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
+      NotificationConfig response =
+          securityCenterClient.createNotificationConfig(parent, configId, notificationConfig);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_stringstringnotificationconfig_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/AsyncCreateSource.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/AsyncCreateSource.java
new file mode 100644
index 000000000..d5adb99b5
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/AsyncCreateSource.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_createsource_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.Source;
+
+public class AsyncCreateSource {
+
+  public static void main(String[] args) throws Exception {
+    asyncCreateSource();
+  }
+
+  public static void asyncCreateSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      CreateSourceRequest request =
+          CreateSourceRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setSource(Source.newBuilder().build())
+              .build();
+      ApiFuture future = securityCenterClient.createSourceCallable().futureCall(request);
+      // Do something.
+      Source response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_createsource_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSource.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSource.java
new file mode 100644
index 000000000..30f4a1fe5
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSource.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_createsource_sync]
+import com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.Source;
+
+public class SyncCreateSource {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSource();
+  }
+
+  public static void syncCreateSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      CreateSourceRequest request =
+          CreateSourceRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setSource(Source.newBuilder().build())
+              .build();
+      Source response = securityCenterClient.createSource(request);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_createsource_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java
new file mode 100644
index 000000000..98bad43dd
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_createsource_organizationnamesource_sync]
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.Source;
+
+public class SyncCreateSourceOrganizationnameSource {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSourceOrganizationnameSource();
+  }
+
+  public static void syncCreateSourceOrganizationnameSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+      Source source = Source.newBuilder().build();
+      Source response = securityCenterClient.createSource(parent, source);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_createsource_organizationnamesource_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSourceStringSource.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSourceStringSource.java
new file mode 100644
index 000000000..c8e89a945
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSourceStringSource.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_createsource_stringsource_sync]
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.Source;
+
+public class SyncCreateSourceStringSource {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSourceStringSource();
+  }
+
+  public static void syncCreateSourceStringSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = OrganizationName.of("[ORGANIZATION]").toString();
+      Source source = Source.newBuilder().build();
+      Source response = securityCenterClient.createSource(parent, source);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_createsource_stringsource_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/AsyncDeleteNotificationConfig.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/AsyncDeleteNotificationConfig.java
new file mode 100644
index 000000000..08dbb8096
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/AsyncDeleteNotificationConfig.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_deletenotificationconfig_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest;
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfigName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.protobuf.Empty;
+
+public class AsyncDeleteNotificationConfig {
+
+  public static void main(String[] args) throws Exception {
+    asyncDeleteNotificationConfig();
+  }
+
+  public static void asyncDeleteNotificationConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      DeleteNotificationConfigRequest request =
+          DeleteNotificationConfigRequest.newBuilder()
+              .setName(
+                  NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString())
+              .build();
+      ApiFuture future =
+          securityCenterClient.deleteNotificationConfigCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_deletenotificationconfig_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java
new file mode 100644
index 000000000..5f125933f
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_deletenotificationconfig_sync]
+import com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest;
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfigName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteNotificationConfig {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteNotificationConfig();
+  }
+
+  public static void syncDeleteNotificationConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      DeleteNotificationConfigRequest request =
+          DeleteNotificationConfigRequest.newBuilder()
+              .setName(
+                  NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString())
+              .build();
+      securityCenterClient.deleteNotificationConfig(request);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_deletenotificationconfig_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java
new file mode 100644
index 000000000..c00e150dc
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_deletenotificationconfig_notificationconfigname_sync]
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfigName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteNotificationConfigNotificationconfigname {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteNotificationConfigNotificationconfigname();
+  }
+
+  public static void syncDeleteNotificationConfigNotificationconfigname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      NotificationConfigName name =
+          NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]");
+      securityCenterClient.deleteNotificationConfig(name);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_deletenotificationconfig_notificationconfigname_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java
new file mode 100644
index 000000000..3b3e947b8
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_deletenotificationconfig_string_sync]
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfigName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteNotificationConfigString {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteNotificationConfigString();
+  }
+
+  public static void syncDeleteNotificationConfigString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String name = NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString();
+      securityCenterClient.deleteNotificationConfig(name);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_deletenotificationconfig_string_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java
new file mode 100644
index 000000000..657b8158e
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_getiampolicy_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+
+public class AsyncGetIamPolicy {
+
+  public static void main(String[] args) throws Exception {
+    asyncGetIamPolicy();
+  }
+
+  public static void asyncGetIamPolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      ApiFuture future = securityCenterClient.getIamPolicyCallable().futureCall(request);
+      // Do something.
+      Policy response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_getiampolicy_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java
new file mode 100644
index 000000000..6f6d9480a
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_getiampolicy_sync]
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+
+public class SyncGetIamPolicy {
+
+  public static void main(String[] args) throws Exception {
+    syncGetIamPolicy();
+  }
+
+  public static void syncGetIamPolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      Policy response = securityCenterClient.getIamPolicy(request);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_getiampolicy_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java
new file mode 100644
index 000000000..d4feef0da
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_getiampolicy_resourcename_sync]
+import com.google.api.resourcenames.ResourceName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+import com.google.iam.v1.Policy;
+
+public class SyncGetIamPolicyResourcename {
+
+  public static void main(String[] args) throws Exception {
+    syncGetIamPolicyResourcename();
+  }
+
+  public static void syncGetIamPolicyResourcename() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+      Policy response = securityCenterClient.getIamPolicy(resource);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_getiampolicy_resourcename_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java
new file mode 100644
index 000000000..6a08effa9
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_getiampolicy_string_sync]
+import com.google.cloud.securitycenter.v1p1beta1.FolderName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.iam.v1.Policy;
+
+public class SyncGetIamPolicyString {
+
+  public static void main(String[] args) throws Exception {
+    syncGetIamPolicyString();
+  }
+
+  public static void syncGetIamPolicyString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String resource = FolderName.of("[FOLDER]").toString();
+      Policy response = securityCenterClient.getIamPolicy(resource);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_getiampolicy_string_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/AsyncGetNotificationConfig.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/AsyncGetNotificationConfig.java
new file mode 100644
index 000000000..66248040a
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/AsyncGetNotificationConfig.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_getnotificationconfig_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest;
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfigName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class AsyncGetNotificationConfig {
+
+  public static void main(String[] args) throws Exception {
+    asyncGetNotificationConfig();
+  }
+
+  public static void asyncGetNotificationConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GetNotificationConfigRequest request =
+          GetNotificationConfigRequest.newBuilder()
+              .setName(
+                  NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString())
+              .build();
+      ApiFuture future =
+          securityCenterClient.getNotificationConfigCallable().futureCall(request);
+      // Do something.
+      NotificationConfig response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_getnotificationconfig_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfig.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfig.java
new file mode 100644
index 000000000..d2fef798b
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfig.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_getnotificationconfig_sync]
+import com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest;
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfigName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncGetNotificationConfig {
+
+  public static void main(String[] args) throws Exception {
+    syncGetNotificationConfig();
+  }
+
+  public static void syncGetNotificationConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GetNotificationConfigRequest request =
+          GetNotificationConfigRequest.newBuilder()
+              .setName(
+                  NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString())
+              .build();
+      NotificationConfig response = securityCenterClient.getNotificationConfig(request);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_getnotificationconfig_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java
new file mode 100644
index 000000000..c8b494003
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_getnotificationconfig_notificationconfigname_sync]
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfigName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncGetNotificationConfigNotificationconfigname {
+
+  public static void main(String[] args) throws Exception {
+    syncGetNotificationConfigNotificationconfigname();
+  }
+
+  public static void syncGetNotificationConfigNotificationconfigname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      NotificationConfigName name =
+          NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]");
+      NotificationConfig response = securityCenterClient.getNotificationConfig(name);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_getnotificationconfig_notificationconfigname_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigString.java
new file mode 100644
index 000000000..e2a8deabc
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigString.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_getnotificationconfig_string_sync]
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfigName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncGetNotificationConfigString {
+
+  public static void main(String[] args) throws Exception {
+    syncGetNotificationConfigString();
+  }
+
+  public static void syncGetNotificationConfigString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String name = NotificationConfigName.of("[ORGANIZATION]", "[NOTIFICATION_CONFIG]").toString();
+      NotificationConfig response = securityCenterClient.getNotificationConfig(name);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_getnotificationconfig_string_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java
new file mode 100644
index 000000000..ced3e3a23
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_getorganizationsettings_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class AsyncGetOrganizationSettings {
+
+  public static void main(String[] args) throws Exception {
+    asyncGetOrganizationSettings();
+  }
+
+  public static void asyncGetOrganizationSettings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GetOrganizationSettingsRequest request =
+          GetOrganizationSettingsRequest.newBuilder()
+              .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString())
+              .build();
+      ApiFuture future =
+          securityCenterClient.getOrganizationSettingsCallable().futureCall(request);
+      // Do something.
+      OrganizationSettings response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_getorganizationsettings_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java
new file mode 100644
index 000000000..bd9df50fc
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_getorganizationsettings_sync]
+import com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncGetOrganizationSettings {
+
+  public static void main(String[] args) throws Exception {
+    syncGetOrganizationSettings();
+  }
+
+  public static void syncGetOrganizationSettings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GetOrganizationSettingsRequest request =
+          GetOrganizationSettingsRequest.newBuilder()
+              .setName(OrganizationSettingsName.of("[ORGANIZATION]").toString())
+              .build();
+      OrganizationSettings response = securityCenterClient.getOrganizationSettings(request);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_getorganizationsettings_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java
new file mode 100644
index 000000000..55d0d4717
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_getorganizationsettings_organizationsettingsname_sync]
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncGetOrganizationSettingsOrganizationsettingsname {
+
+  public static void main(String[] args) throws Exception {
+    syncGetOrganizationSettingsOrganizationsettingsname();
+  }
+
+  public static void syncGetOrganizationSettingsOrganizationsettingsname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationSettingsName name = OrganizationSettingsName.of("[ORGANIZATION]");
+      OrganizationSettings response = securityCenterClient.getOrganizationSettings(name);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_getorganizationsettings_organizationsettingsname_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java
new file mode 100644
index 000000000..663444438
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_getorganizationsettings_string_sync]
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncGetOrganizationSettingsString {
+
+  public static void main(String[] args) throws Exception {
+    syncGetOrganizationSettingsString();
+  }
+
+  public static void syncGetOrganizationSettingsString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String name = OrganizationSettingsName.of("[ORGANIZATION]").toString();
+      OrganizationSettings response = securityCenterClient.getOrganizationSettings(name);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_getorganizationsettings_string_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/AsyncGetSource.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/AsyncGetSource.java
new file mode 100644
index 000000000..caf50489d
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/AsyncGetSource.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_getsource_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.Source;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+
+public class AsyncGetSource {
+
+  public static void main(String[] args) throws Exception {
+    asyncGetSource();
+  }
+
+  public static void asyncGetSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GetSourceRequest request =
+          GetSourceRequest.newBuilder()
+              .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .build();
+      ApiFuture future = securityCenterClient.getSourceCallable().futureCall(request);
+      // Do something.
+      Source response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_getsource_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSource.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSource.java
new file mode 100644
index 000000000..a60c517d0
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSource.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_getsource_sync]
+import com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.Source;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+
+public class SyncGetSource {
+
+  public static void main(String[] args) throws Exception {
+    syncGetSource();
+  }
+
+  public static void syncGetSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GetSourceRequest request =
+          GetSourceRequest.newBuilder()
+              .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .build();
+      Source response = securityCenterClient.getSource(request);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_getsource_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSourceSourcename.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSourceSourcename.java
new file mode 100644
index 000000000..9312e47f7
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSourceSourcename.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_getsource_sourcename_sync]
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.Source;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+
+public class SyncGetSourceSourcename {
+
+  public static void main(String[] args) throws Exception {
+    syncGetSourceSourcename();
+  }
+
+  public static void syncGetSourceSourcename() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SourceName name = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+      Source response = securityCenterClient.getSource(name);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_getsource_sourcename_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSourceString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSourceString.java
new file mode 100644
index 000000000..b506eaab7
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSourceString.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_getsource_string_sync]
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.Source;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+
+public class SyncGetSourceString {
+
+  public static void main(String[] args) throws Exception {
+    syncGetSourceString();
+  }
+
+  public static void syncGetSourceString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String name = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString();
+      Source response = securityCenterClient.getSource(name);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_getsource_string_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/AsyncGroupAssets.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/AsyncGroupAssets.java
new file mode 100644
index 000000000..2e2d74265
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/AsyncGroupAssets.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_groupassets_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest;
+import com.google.cloud.securitycenter.v1p1beta1.GroupResult;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.protobuf.Duration;
+import com.google.protobuf.Timestamp;
+
+public class AsyncGroupAssets {
+
+  public static void main(String[] args) throws Exception {
+    asyncGroupAssets();
+  }
+
+  public static void asyncGroupAssets() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GroupAssetsRequest request =
+          GroupAssetsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setFilter("filter-1274492040")
+              .setGroupBy("groupBy293428022")
+              .setCompareDuration(Duration.newBuilder().build())
+              .setReadTime(Timestamp.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      ApiFuture future =
+          securityCenterClient.groupAssetsPagedCallable().futureCall(request);
+      // Do something.
+      for (GroupResult element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_groupassets_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java
new file mode 100644
index 000000000..1cc7768e9
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java
@@ -0,0 +1,64 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_groupassets_paged_async]
+import com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest;
+import com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse;
+import com.google.cloud.securitycenter.v1p1beta1.GroupResult;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.common.base.Strings;
+import com.google.protobuf.Duration;
+import com.google.protobuf.Timestamp;
+
+public class AsyncGroupAssetsPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncGroupAssetsPaged();
+  }
+
+  public static void asyncGroupAssetsPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GroupAssetsRequest request =
+          GroupAssetsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setFilter("filter-1274492040")
+              .setGroupBy("groupBy293428022")
+              .setCompareDuration(Duration.newBuilder().build())
+              .setReadTime(Timestamp.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      while (true) {
+        GroupAssetsResponse response = securityCenterClient.groupAssetsCallable().call(request);
+        for (GroupResult element : response.getGroupByResultsList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_groupassets_paged_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/SyncGroupAssets.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/SyncGroupAssets.java
new file mode 100644
index 000000000..5b4e242c5
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/SyncGroupAssets.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_groupassets_sync]
+import com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest;
+import com.google.cloud.securitycenter.v1p1beta1.GroupResult;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.protobuf.Duration;
+import com.google.protobuf.Timestamp;
+
+public class SyncGroupAssets {
+
+  public static void main(String[] args) throws Exception {
+    syncGroupAssets();
+  }
+
+  public static void syncGroupAssets() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GroupAssetsRequest request =
+          GroupAssetsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setFilter("filter-1274492040")
+              .setGroupBy("groupBy293428022")
+              .setCompareDuration(Duration.newBuilder().build())
+              .setReadTime(Timestamp.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      for (GroupResult element : securityCenterClient.groupAssets(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_groupassets_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/AsyncGroupFindings.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/AsyncGroupFindings.java
new file mode 100644
index 000000000..4b4e88efd
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/AsyncGroupFindings.java
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_groupfindings_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest;
+import com.google.cloud.securitycenter.v1p1beta1.GroupResult;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+import com.google.protobuf.Duration;
+import com.google.protobuf.Timestamp;
+
+public class AsyncGroupFindings {
+
+  public static void main(String[] args) throws Exception {
+    asyncGroupFindings();
+  }
+
+  public static void asyncGroupFindings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GroupFindingsRequest request =
+          GroupFindingsRequest.newBuilder()
+              .setParent(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setFilter("filter-1274492040")
+              .setGroupBy("groupBy293428022")
+              .setReadTime(Timestamp.newBuilder().build())
+              .setCompareDuration(Duration.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      ApiFuture future =
+          securityCenterClient.groupFindingsPagedCallable().futureCall(request);
+      // Do something.
+      for (GroupResult element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_groupfindings_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java
new file mode 100644
index 000000000..d1c602f5c
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java
@@ -0,0 +1,65 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_groupfindings_paged_async]
+import com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest;
+import com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse;
+import com.google.cloud.securitycenter.v1p1beta1.GroupResult;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+import com.google.common.base.Strings;
+import com.google.protobuf.Duration;
+import com.google.protobuf.Timestamp;
+
+public class AsyncGroupFindingsPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncGroupFindingsPaged();
+  }
+
+  public static void asyncGroupFindingsPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GroupFindingsRequest request =
+          GroupFindingsRequest.newBuilder()
+              .setParent(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setFilter("filter-1274492040")
+              .setGroupBy("groupBy293428022")
+              .setReadTime(Timestamp.newBuilder().build())
+              .setCompareDuration(Duration.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      while (true) {
+        GroupFindingsResponse response = securityCenterClient.groupFindingsCallable().call(request);
+        for (GroupResult element : response.getGroupByResultsList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_groupfindings_paged_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindings.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindings.java
new file mode 100644
index 000000000..1b8942f30
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindings.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_groupfindings_sync]
+import com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest;
+import com.google.cloud.securitycenter.v1p1beta1.GroupResult;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+import com.google.protobuf.Duration;
+import com.google.protobuf.Timestamp;
+
+public class SyncGroupFindings {
+
+  public static void main(String[] args) throws Exception {
+    syncGroupFindings();
+  }
+
+  public static void syncGroupFindings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      GroupFindingsRequest request =
+          GroupFindingsRequest.newBuilder()
+              .setParent(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setFilter("filter-1274492040")
+              .setGroupBy("groupBy293428022")
+              .setReadTime(Timestamp.newBuilder().build())
+              .setCompareDuration(Duration.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      for (GroupResult element : securityCenterClient.groupFindings(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_groupfindings_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java
new file mode 100644
index 000000000..1c7f66d01
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_groupfindings_sourcenamestring_sync]
+import com.google.cloud.securitycenter.v1p1beta1.GroupResult;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+
+public class SyncGroupFindingsSourcenameString {
+
+  public static void main(String[] args) throws Exception {
+    syncGroupFindingsSourcenameString();
+  }
+
+  public static void syncGroupFindingsSourcenameString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+      String groupBy = "groupBy293428022";
+      for (GroupResult element : securityCenterClient.groupFindings(parent, groupBy).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_groupfindings_sourcenamestring_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java
new file mode 100644
index 000000000..6571341b2
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_groupfindings_stringstring_sync]
+import com.google.cloud.securitycenter.v1p1beta1.GroupResult;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+
+public class SyncGroupFindingsStringString {
+
+  public static void main(String[] args) throws Exception {
+    syncGroupFindingsStringString();
+  }
+
+  public static void syncGroupFindingsStringString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString();
+      String groupBy = "groupBy293428022";
+      for (GroupResult element : securityCenterClient.groupFindings(parent, groupBy).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_groupfindings_stringstring_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/AsyncListAssets.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/AsyncListAssets.java
new file mode 100644
index 000000000..f7853ddb1
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/AsyncListAssets.java
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listassets_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest;
+import com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.protobuf.Duration;
+import com.google.protobuf.FieldMask;
+import com.google.protobuf.Timestamp;
+
+public class AsyncListAssets {
+
+  public static void main(String[] args) throws Exception {
+    asyncListAssets();
+  }
+
+  public static void asyncListAssets() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListAssetsRequest request =
+          ListAssetsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setFilter("filter-1274492040")
+              .setOrderBy("orderBy-1207110587")
+              .setReadTime(Timestamp.newBuilder().build())
+              .setCompareDuration(Duration.newBuilder().build())
+              .setFieldMask(FieldMask.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      ApiFuture future =
+          securityCenterClient.listAssetsPagedCallable().futureCall(request);
+      // Do something.
+      for (ListAssetsResponse.ListAssetsResult element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listassets_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/AsyncListAssetsPaged.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/AsyncListAssetsPaged.java
new file mode 100644
index 000000000..7900d6e59
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/AsyncListAssetsPaged.java
@@ -0,0 +1,65 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listassets_paged_async]
+import com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest;
+import com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.common.base.Strings;
+import com.google.protobuf.Duration;
+import com.google.protobuf.FieldMask;
+import com.google.protobuf.Timestamp;
+
+public class AsyncListAssetsPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncListAssetsPaged();
+  }
+
+  public static void asyncListAssetsPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListAssetsRequest request =
+          ListAssetsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setFilter("filter-1274492040")
+              .setOrderBy("orderBy-1207110587")
+              .setReadTime(Timestamp.newBuilder().build())
+              .setCompareDuration(Duration.newBuilder().build())
+              .setFieldMask(FieldMask.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      while (true) {
+        ListAssetsResponse response = securityCenterClient.listAssetsCallable().call(request);
+        for (ListAssetsResponse.ListAssetsResult element : response.getListAssetsResultsList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listassets_paged_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssets.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssets.java
new file mode 100644
index 000000000..3e01f528d
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssets.java
@@ -0,0 +1,56 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listassets_sync]
+import com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest;
+import com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.protobuf.Duration;
+import com.google.protobuf.FieldMask;
+import com.google.protobuf.Timestamp;
+
+public class SyncListAssets {
+
+  public static void main(String[] args) throws Exception {
+    syncListAssets();
+  }
+
+  public static void syncListAssets() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListAssetsRequest request =
+          ListAssetsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setFilter("filter-1274492040")
+              .setOrderBy("orderBy-1207110587")
+              .setReadTime(Timestamp.newBuilder().build())
+              .setCompareDuration(Duration.newBuilder().build())
+              .setFieldMask(FieldMask.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      for (ListAssetsResponse.ListAssetsResult element :
+          securityCenterClient.listAssets(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listassets_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsFoldername.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsFoldername.java
new file mode 100644
index 000000000..93fa81c04
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsFoldername.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listassets_foldername_sync]
+import com.google.cloud.securitycenter.v1p1beta1.FolderName;
+import com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncListAssetsFoldername {
+
+  public static void main(String[] args) throws Exception {
+    syncListAssetsFoldername();
+  }
+
+  public static void syncListAssetsFoldername() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      FolderName parent = FolderName.of("[FOLDER]");
+      for (ListAssetsResponse.ListAssetsResult element :
+          securityCenterClient.listAssets(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listassets_foldername_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsOrganizationname.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsOrganizationname.java
new file mode 100644
index 000000000..126f01b2a
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsOrganizationname.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listassets_organizationname_sync]
+import com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncListAssetsOrganizationname {
+
+  public static void main(String[] args) throws Exception {
+    syncListAssetsOrganizationname();
+  }
+
+  public static void syncListAssetsOrganizationname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+      for (ListAssetsResponse.ListAssetsResult element :
+          securityCenterClient.listAssets(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listassets_organizationname_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsProjectname.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsProjectname.java
new file mode 100644
index 000000000..0933c3e5c
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsProjectname.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listassets_projectname_sync]
+import com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse;
+import com.google.cloud.securitycenter.v1p1beta1.ProjectName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncListAssetsProjectname {
+
+  public static void main(String[] args) throws Exception {
+    syncListAssetsProjectname();
+  }
+
+  public static void syncListAssetsProjectname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ProjectName parent = ProjectName.of("[PROJECT]");
+      for (ListAssetsResponse.ListAssetsResult element :
+          securityCenterClient.listAssets(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listassets_projectname_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsString.java
new file mode 100644
index 000000000..1a0394669
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listassets_string_sync]
+import com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncListAssetsString {
+
+  public static void main(String[] args) throws Exception {
+    syncListAssetsString();
+  }
+
+  public static void syncListAssetsString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = OrganizationName.of("[ORGANIZATION]").toString();
+      for (ListAssetsResponse.ListAssetsResult element :
+          securityCenterClient.listAssets(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listassets_string_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/AsyncListFindings.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/AsyncListFindings.java
new file mode 100644
index 000000000..8bfe7503b
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/AsyncListFindings.java
@@ -0,0 +1,60 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listfindings_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest;
+import com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+import com.google.protobuf.Duration;
+import com.google.protobuf.FieldMask;
+import com.google.protobuf.Timestamp;
+
+public class AsyncListFindings {
+
+  public static void main(String[] args) throws Exception {
+    asyncListFindings();
+  }
+
+  public static void asyncListFindings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListFindingsRequest request =
+          ListFindingsRequest.newBuilder()
+              .setParent(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setFilter("filter-1274492040")
+              .setOrderBy("orderBy-1207110587")
+              .setReadTime(Timestamp.newBuilder().build())
+              .setCompareDuration(Duration.newBuilder().build())
+              .setFieldMask(FieldMask.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      ApiFuture future =
+          securityCenterClient.listFindingsPagedCallable().futureCall(request);
+      // Do something.
+      for (ListFindingsResponse.ListFindingsResult element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listfindings_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/AsyncListFindingsPaged.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/AsyncListFindingsPaged.java
new file mode 100644
index 000000000..bc61ecd98
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/AsyncListFindingsPaged.java
@@ -0,0 +1,67 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listfindings_paged_async]
+import com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest;
+import com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+import com.google.common.base.Strings;
+import com.google.protobuf.Duration;
+import com.google.protobuf.FieldMask;
+import com.google.protobuf.Timestamp;
+
+public class AsyncListFindingsPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncListFindingsPaged();
+  }
+
+  public static void asyncListFindingsPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListFindingsRequest request =
+          ListFindingsRequest.newBuilder()
+              .setParent(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setFilter("filter-1274492040")
+              .setOrderBy("orderBy-1207110587")
+              .setReadTime(Timestamp.newBuilder().build())
+              .setCompareDuration(Duration.newBuilder().build())
+              .setFieldMask(FieldMask.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      while (true) {
+        ListFindingsResponse response = securityCenterClient.listFindingsCallable().call(request);
+        for (ListFindingsResponse.ListFindingsResult element :
+            response.getListFindingsResultsList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listfindings_paged_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindings.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindings.java
new file mode 100644
index 000000000..189954bb9
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindings.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listfindings_sync]
+import com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest;
+import com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+import com.google.protobuf.Duration;
+import com.google.protobuf.FieldMask;
+import com.google.protobuf.Timestamp;
+
+public class SyncListFindings {
+
+  public static void main(String[] args) throws Exception {
+    syncListFindings();
+  }
+
+  public static void syncListFindings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListFindingsRequest request =
+          ListFindingsRequest.newBuilder()
+              .setParent(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setFilter("filter-1274492040")
+              .setOrderBy("orderBy-1207110587")
+              .setReadTime(Timestamp.newBuilder().build())
+              .setCompareDuration(Duration.newBuilder().build())
+              .setFieldMask(FieldMask.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      for (ListFindingsResponse.ListFindingsResult element :
+          securityCenterClient.listFindings(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listfindings_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindingsSourcename.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindingsSourcename.java
new file mode 100644
index 000000000..16a33f015
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindingsSourcename.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listfindings_sourcename_sync]
+import com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+
+public class SyncListFindingsSourcename {
+
+  public static void main(String[] args) throws Exception {
+    syncListFindingsSourcename();
+  }
+
+  public static void syncListFindingsSourcename() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+      for (ListFindingsResponse.ListFindingsResult element :
+          securityCenterClient.listFindings(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listfindings_sourcename_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindingsString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindingsString.java
new file mode 100644
index 000000000..b34b26366
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindingsString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listfindings_string_sync]
+import com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+
+public class SyncListFindingsString {
+
+  public static void main(String[] args) throws Exception {
+    syncListFindingsString();
+  }
+
+  public static void syncListFindingsString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString();
+      for (ListFindingsResponse.ListFindingsResult element :
+          securityCenterClient.listFindings(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listfindings_string_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigs.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigs.java
new file mode 100644
index 000000000..c26244fe1
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigs.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listnotificationconfigs_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest;
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class AsyncListNotificationConfigs {
+
+  public static void main(String[] args) throws Exception {
+    asyncListNotificationConfigs();
+  }
+
+  public static void asyncListNotificationConfigs() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListNotificationConfigsRequest request =
+          ListNotificationConfigsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      ApiFuture future =
+          securityCenterClient.listNotificationConfigsPagedCallable().futureCall(request);
+      // Do something.
+      for (NotificationConfig element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listnotificationconfigs_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigsPaged.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigsPaged.java
new file mode 100644
index 000000000..61c649ccf
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigsPaged.java
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listnotificationconfigs_paged_async]
+import com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest;
+import com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse;
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.common.base.Strings;
+
+public class AsyncListNotificationConfigsPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncListNotificationConfigsPaged();
+  }
+
+  public static void asyncListNotificationConfigsPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListNotificationConfigsRequest request =
+          ListNotificationConfigsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      while (true) {
+        ListNotificationConfigsResponse response =
+            securityCenterClient.listNotificationConfigsCallable().call(request);
+        for (NotificationConfig element : response.getNotificationConfigsList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listnotificationconfigs_paged_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigs.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigs.java
new file mode 100644
index 000000000..3bc416451
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigs.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listnotificationconfigs_sync]
+import com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest;
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncListNotificationConfigs {
+
+  public static void main(String[] args) throws Exception {
+    syncListNotificationConfigs();
+  }
+
+  public static void syncListNotificationConfigs() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListNotificationConfigsRequest request =
+          ListNotificationConfigsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      for (NotificationConfig element :
+          securityCenterClient.listNotificationConfigs(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listnotificationconfigs_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java
new file mode 100644
index 000000000..bc8d18cb4
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listnotificationconfigs_organizationname_sync]
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncListNotificationConfigsOrganizationname {
+
+  public static void main(String[] args) throws Exception {
+    syncListNotificationConfigsOrganizationname();
+  }
+
+  public static void syncListNotificationConfigsOrganizationname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+      for (NotificationConfig element :
+          securityCenterClient.listNotificationConfigs(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listnotificationconfigs_organizationname_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsString.java
new file mode 100644
index 000000000..b5aae5797
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listnotificationconfigs_string_sync]
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncListNotificationConfigsString {
+
+  public static void main(String[] args) throws Exception {
+    syncListNotificationConfigsString();
+  }
+
+  public static void syncListNotificationConfigsString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = OrganizationName.of("[ORGANIZATION]").toString();
+      for (NotificationConfig element :
+          securityCenterClient.listNotificationConfigs(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listnotificationconfigs_string_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/AsyncListSources.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/AsyncListSources.java
new file mode 100644
index 000000000..c0ff8d205
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/AsyncListSources.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listsources_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.Source;
+
+public class AsyncListSources {
+
+  public static void main(String[] args) throws Exception {
+    asyncListSources();
+  }
+
+  public static void asyncListSources() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListSourcesRequest request =
+          ListSourcesRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      ApiFuture future =
+          securityCenterClient.listSourcesPagedCallable().futureCall(request);
+      // Do something.
+      for (Source element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listsources_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/AsyncListSourcesPaged.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/AsyncListSourcesPaged.java
new file mode 100644
index 000000000..8f4900ae6
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/AsyncListSourcesPaged.java
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listsources_paged_async]
+import com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest;
+import com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.Source;
+import com.google.common.base.Strings;
+
+public class AsyncListSourcesPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncListSourcesPaged();
+  }
+
+  public static void asyncListSourcesPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListSourcesRequest request =
+          ListSourcesRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      while (true) {
+        ListSourcesResponse response = securityCenterClient.listSourcesCallable().call(request);
+        for (Source element : response.getSourcesList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listsources_paged_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSources.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSources.java
new file mode 100644
index 000000000..716ca95ae
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSources.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listsources_sync]
+import com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.Source;
+
+public class SyncListSources {
+
+  public static void main(String[] args) throws Exception {
+    syncListSources();
+  }
+
+  public static void syncListSources() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ListSourcesRequest request =
+          ListSourcesRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      for (Source element : securityCenterClient.listSources(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listsources_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesFoldername.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesFoldername.java
new file mode 100644
index 000000000..52799cf99
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesFoldername.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listsources_foldername_sync]
+import com.google.cloud.securitycenter.v1p1beta1.FolderName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.Source;
+
+public class SyncListSourcesFoldername {
+
+  public static void main(String[] args) throws Exception {
+    syncListSourcesFoldername();
+  }
+
+  public static void syncListSourcesFoldername() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      FolderName parent = FolderName.of("[FOLDER]");
+      for (Source element : securityCenterClient.listSources(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listsources_foldername_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java
new file mode 100644
index 000000000..22d44b9d3
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listsources_organizationname_sync]
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.Source;
+
+public class SyncListSourcesOrganizationname {
+
+  public static void main(String[] args) throws Exception {
+    syncListSourcesOrganizationname();
+  }
+
+  public static void syncListSourcesOrganizationname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+      for (Source element : securityCenterClient.listSources(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listsources_organizationname_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesProjectname.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesProjectname.java
new file mode 100644
index 000000000..6ae2cadc8
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesProjectname.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listsources_projectname_sync]
+import com.google.cloud.securitycenter.v1p1beta1.ProjectName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.Source;
+
+public class SyncListSourcesProjectname {
+
+  public static void main(String[] args) throws Exception {
+    syncListSourcesProjectname();
+  }
+
+  public static void syncListSourcesProjectname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ProjectName parent = ProjectName.of("[PROJECT]");
+      for (Source element : securityCenterClient.listSources(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listsources_projectname_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesString.java
new file mode 100644
index 000000000..cfa3be8b3
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesString.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_listsources_string_sync]
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.Source;
+
+public class SyncListSourcesString {
+
+  public static void main(String[] args) throws Exception {
+    syncListSourcesString();
+  }
+
+  public static void syncListSourcesString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = OrganizationName.of("[ORGANIZATION]").toString();
+      for (Source element : securityCenterClient.listSources(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_listsources_string_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java
new file mode 100644
index 000000000..ad3a6b27e
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_runassetdiscovery_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.longrunning.Operation;
+
+public class AsyncRunAssetDiscovery {
+
+  public static void main(String[] args) throws Exception {
+    asyncRunAssetDiscovery();
+  }
+
+  public static void asyncRunAssetDiscovery() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      RunAssetDiscoveryRequest request =
+          RunAssetDiscoveryRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .build();
+      ApiFuture future =
+          securityCenterClient.runAssetDiscoveryCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_runassetdiscovery_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java
new file mode 100644
index 000000000..60c8c3944
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_runassetdiscovery_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest;
+import com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.protobuf.Empty;
+
+public class AsyncRunAssetDiscoveryLRO {
+
+  public static void main(String[] args) throws Exception {
+    asyncRunAssetDiscoveryLRO();
+  }
+
+  public static void asyncRunAssetDiscoveryLRO() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      RunAssetDiscoveryRequest request =
+          RunAssetDiscoveryRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .build();
+      OperationFuture future =
+          securityCenterClient.runAssetDiscoveryOperationCallable().futureCall(request);
+      // Do something.
+      RunAssetDiscoveryResponse response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_runassetdiscovery_lro_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java
new file mode 100644
index 000000000..6cf20f904
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_runassetdiscovery_sync]
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest;
+import com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncRunAssetDiscovery {
+
+  public static void main(String[] args) throws Exception {
+    syncRunAssetDiscovery();
+  }
+
+  public static void syncRunAssetDiscovery() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      RunAssetDiscoveryRequest request =
+          RunAssetDiscoveryRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .build();
+      RunAssetDiscoveryResponse response =
+          securityCenterClient.runAssetDiscoveryAsync(request).get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_runassetdiscovery_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java
new file mode 100644
index 000000000..4bd79677c
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_runassetdiscovery_organizationname_sync]
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncRunAssetDiscoveryOrganizationname {
+
+  public static void main(String[] args) throws Exception {
+    syncRunAssetDiscoveryOrganizationname();
+  }
+
+  public static void syncRunAssetDiscoveryOrganizationname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+      RunAssetDiscoveryResponse response =
+          securityCenterClient.runAssetDiscoveryAsync(parent).get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_runassetdiscovery_organizationname_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java
new file mode 100644
index 000000000..9793e94d5
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_runassetdiscovery_string_sync]
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
+import com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncRunAssetDiscoveryString {
+
+  public static void main(String[] args) throws Exception {
+    syncRunAssetDiscoveryString();
+  }
+
+  public static void syncRunAssetDiscoveryString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String parent = OrganizationName.of("[ORGANIZATION]").toString();
+      RunAssetDiscoveryResponse response =
+          securityCenterClient.runAssetDiscoveryAsync(parent).get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_runassetdiscovery_string_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/AsyncSetFindingState.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/AsyncSetFindingState.java
new file mode 100644
index 000000000..ff29de42c
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/AsyncSetFindingState.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_setfindingstate_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.Finding;
+import com.google.cloud.securitycenter.v1p1beta1.FindingName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest;
+import com.google.protobuf.Timestamp;
+
+public class AsyncSetFindingState {
+
+  public static void main(String[] args) throws Exception {
+    asyncSetFindingState();
+  }
+
+  public static void asyncSetFindingState() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SetFindingStateRequest request =
+          SetFindingStateRequest.newBuilder()
+              .setName(
+                  FindingName.ofOrganizationSourceFindingName(
+                          "[ORGANIZATION]", "[SOURCE]", "[FINDING]")
+                      .toString())
+              .setStartTime(Timestamp.newBuilder().build())
+              .build();
+      ApiFuture future =
+          securityCenterClient.setFindingStateCallable().futureCall(request);
+      // Do something.
+      Finding response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_setfindingstate_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingState.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingState.java
new file mode 100644
index 000000000..9bb761c2f
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingState.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_setfindingstate_sync]
+import com.google.cloud.securitycenter.v1p1beta1.Finding;
+import com.google.cloud.securitycenter.v1p1beta1.FindingName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest;
+import com.google.protobuf.Timestamp;
+
+public class SyncSetFindingState {
+
+  public static void main(String[] args) throws Exception {
+    syncSetFindingState();
+  }
+
+  public static void syncSetFindingState() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SetFindingStateRequest request =
+          SetFindingStateRequest.newBuilder()
+              .setName(
+                  FindingName.ofOrganizationSourceFindingName(
+                          "[ORGANIZATION]", "[SOURCE]", "[FINDING]")
+                      .toString())
+              .setStartTime(Timestamp.newBuilder().build())
+              .build();
+      Finding response = securityCenterClient.setFindingState(request);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_setfindingstate_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java
new file mode 100644
index 000000000..b9659db7b
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_setfindingstate_findingnamefindingstatetimestamp_sync]
+import com.google.cloud.securitycenter.v1p1beta1.Finding;
+import com.google.cloud.securitycenter.v1p1beta1.FindingName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.protobuf.Timestamp;
+
+public class SyncSetFindingStateFindingnameFindingstateTimestamp {
+
+  public static void main(String[] args) throws Exception {
+    syncSetFindingStateFindingnameFindingstateTimestamp();
+  }
+
+  public static void syncSetFindingStateFindingnameFindingstateTimestamp() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      FindingName name =
+          FindingName.ofOrganizationSourceFindingName("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
+      Finding.State state = Finding.State.forNumber(0);
+      Timestamp startTime = Timestamp.newBuilder().build();
+      Finding response = securityCenterClient.setFindingState(name, state, startTime);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_setfindingstate_findingnamefindingstatetimestamp_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java
new file mode 100644
index 000000000..30d152846
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_setfindingstate_stringfindingstatetimestamp_sync]
+import com.google.cloud.securitycenter.v1p1beta1.Finding;
+import com.google.cloud.securitycenter.v1p1beta1.FindingName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.protobuf.Timestamp;
+
+public class SyncSetFindingStateStringFindingstateTimestamp {
+
+  public static void main(String[] args) throws Exception {
+    syncSetFindingStateStringFindingstateTimestamp();
+  }
+
+  public static void syncSetFindingStateStringFindingstateTimestamp() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String name =
+          FindingName.ofOrganizationSourceFindingName("[ORGANIZATION]", "[SOURCE]", "[FINDING]")
+              .toString();
+      Finding.State state = Finding.State.forNumber(0);
+      Timestamp startTime = Timestamp.newBuilder().build();
+      Finding response = securityCenterClient.setFindingState(name, state, startTime);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_setfindingstate_stringfindingstatetimestamp_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java
new file mode 100644
index 000000000..7d6ee8d41
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_setiampolicy_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.protobuf.FieldMask;
+
+public class AsyncSetIamPolicy {
+
+  public static void main(String[] args) throws Exception {
+    asyncSetIamPolicy();
+  }
+
+  public static void asyncSetIamPolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      ApiFuture future = securityCenterClient.setIamPolicyCallable().futureCall(request);
+      // Do something.
+      Policy response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_setiampolicy_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java
new file mode 100644
index 000000000..e52356bbf
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_setiampolicy_sync]
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.protobuf.FieldMask;
+
+public class SyncSetIamPolicy {
+
+  public static void main(String[] args) throws Exception {
+    syncSetIamPolicy();
+  }
+
+  public static void syncSetIamPolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      Policy response = securityCenterClient.setIamPolicy(request);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_setiampolicy_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
new file mode 100644
index 000000000..3e4e77396
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_setiampolicy_resourcenamepolicy_sync]
+import com.google.api.resourcenames.ResourceName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+import com.google.iam.v1.Policy;
+
+public class SyncSetIamPolicyResourcenamePolicy {
+
+  public static void main(String[] args) throws Exception {
+    syncSetIamPolicyResourcenamePolicy();
+  }
+
+  public static void syncSetIamPolicyResourcenamePolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+      Policy policy = Policy.newBuilder().build();
+      Policy response = securityCenterClient.setIamPolicy(resource, policy);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_setiampolicy_resourcenamepolicy_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
new file mode 100644
index 000000000..ca0336f1d
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_setiampolicy_stringpolicy_sync]
+import com.google.cloud.securitycenter.v1p1beta1.FolderName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.iam.v1.Policy;
+
+public class SyncSetIamPolicyStringPolicy {
+
+  public static void main(String[] args) throws Exception {
+    syncSetIamPolicyStringPolicy();
+  }
+
+  public static void syncSetIamPolicyStringPolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String resource = FolderName.of("[FOLDER]").toString();
+      Policy policy = Policy.newBuilder().build();
+      Policy response = securityCenterClient.setIamPolicy(resource, policy);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_setiampolicy_stringpolicy_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java
new file mode 100644
index 000000000..66eef9648
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_testiampermissions_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
+import java.util.ArrayList;
+
+public class AsyncTestIamPermissions {
+
+  public static void main(String[] args) throws Exception {
+    asyncTestIamPermissions();
+  }
+
+  public static void asyncTestIamPermissions() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      ApiFuture future =
+          securityCenterClient.testIamPermissionsCallable().futureCall(request);
+      // Do something.
+      TestIamPermissionsResponse response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_testiampermissions_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java
new file mode 100644
index 000000000..6588b315d
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_testiampermissions_sync]
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
+import java.util.ArrayList;
+
+public class SyncTestIamPermissions {
+
+  public static void main(String[] args) throws Exception {
+    syncTestIamPermissions();
+  }
+
+  public static void syncTestIamPermissions() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(
+                  SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      TestIamPermissionsResponse response = securityCenterClient.testIamPermissions(request);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_testiampermissions_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
new file mode 100644
index 000000000..82245e7c4
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_testiampermissions_resourcenameliststring_sync]
+import com.google.api.resourcenames.ResourceName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SourceName;
+import com.google.iam.v1.TestIamPermissionsResponse;
+import java.util.ArrayList;
+import java.util.List;
+
+public class SyncTestIamPermissionsResourcenameListstring {
+
+  public static void main(String[] args) throws Exception {
+    syncTestIamPermissionsResourcenameListstring();
+  }
+
+  public static void syncTestIamPermissionsResourcenameListstring() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+      List permissions = new ArrayList<>();
+      TestIamPermissionsResponse response =
+          securityCenterClient.testIamPermissions(resource, permissions);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_testiampermissions_resourcenameliststring_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
new file mode 100644
index 000000000..ab8500175
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_testiampermissions_stringliststring_sync]
+import com.google.cloud.securitycenter.v1p1beta1.FolderName;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.iam.v1.TestIamPermissionsResponse;
+import java.util.ArrayList;
+import java.util.List;
+
+public class SyncTestIamPermissionsStringListstring {
+
+  public static void main(String[] args) throws Exception {
+    syncTestIamPermissionsStringListstring();
+  }
+
+  public static void syncTestIamPermissionsStringListstring() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      String resource = FolderName.of("[FOLDER]").toString();
+      List permissions = new ArrayList<>();
+      TestIamPermissionsResponse response =
+          securityCenterClient.testIamPermissions(resource, permissions);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_testiampermissions_stringliststring_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/AsyncUpdateFinding.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/AsyncUpdateFinding.java
new file mode 100644
index 000000000..cad8a1312
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/AsyncUpdateFinding.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatefinding_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.Finding;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest;
+import com.google.protobuf.FieldMask;
+
+public class AsyncUpdateFinding {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateFinding();
+  }
+
+  public static void asyncUpdateFinding() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateFindingRequest request =
+          UpdateFindingRequest.newBuilder()
+              .setFinding(Finding.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      ApiFuture future = securityCenterClient.updateFindingCallable().futureCall(request);
+      // Do something.
+      Finding response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_updatefinding_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFinding.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFinding.java
new file mode 100644
index 000000000..aa3b273f3
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFinding.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatefinding_sync]
+import com.google.cloud.securitycenter.v1p1beta1.Finding;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateFinding {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateFinding();
+  }
+
+  public static void syncUpdateFinding() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateFindingRequest request =
+          UpdateFindingRequest.newBuilder()
+              .setFinding(Finding.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      Finding response = securityCenterClient.updateFinding(request);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_updatefinding_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java
new file mode 100644
index 000000000..c0c59d54b
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatefinding_finding_sync]
+import com.google.cloud.securitycenter.v1p1beta1.Finding;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncUpdateFindingFinding {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateFindingFinding();
+  }
+
+  public static void syncUpdateFindingFinding() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      Finding finding = Finding.newBuilder().build();
+      Finding response = securityCenterClient.updateFinding(finding);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_updatefinding_finding_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFindingFieldmask.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFindingFieldmask.java
new file mode 100644
index 000000000..0178689cb
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFindingFieldmask.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatefinding_findingfieldmask_sync]
+import com.google.cloud.securitycenter.v1p1beta1.Finding;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateFindingFindingFieldmask {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateFindingFindingFieldmask();
+  }
+
+  public static void syncUpdateFindingFindingFieldmask() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      Finding finding = Finding.newBuilder().build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
+      Finding response = securityCenterClient.updateFinding(finding, updateMask);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_updatefinding_findingfieldmask_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/AsyncUpdateNotificationConfig.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/AsyncUpdateNotificationConfig.java
new file mode 100644
index 000000000..b4aec5ca2
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/AsyncUpdateNotificationConfig.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatenotificationconfig_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest;
+import com.google.protobuf.FieldMask;
+
+public class AsyncUpdateNotificationConfig {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateNotificationConfig();
+  }
+
+  public static void asyncUpdateNotificationConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateNotificationConfigRequest request =
+          UpdateNotificationConfigRequest.newBuilder()
+              .setNotificationConfig(NotificationConfig.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      ApiFuture future =
+          securityCenterClient.updateNotificationConfigCallable().futureCall(request);
+      // Do something.
+      NotificationConfig response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_updatenotificationconfig_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfig.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfig.java
new file mode 100644
index 000000000..ee5ff4e8e
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfig.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatenotificationconfig_sync]
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateNotificationConfig {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateNotificationConfig();
+  }
+
+  public static void syncUpdateNotificationConfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateNotificationConfigRequest request =
+          UpdateNotificationConfigRequest.newBuilder()
+              .setNotificationConfig(NotificationConfig.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      NotificationConfig response = securityCenterClient.updateNotificationConfig(request);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_updatenotificationconfig_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java
new file mode 100644
index 000000000..89c12fa15
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatenotificationconfig_notificationconfig_sync]
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncUpdateNotificationConfigNotificationconfig {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateNotificationConfigNotificationconfig();
+  }
+
+  public static void syncUpdateNotificationConfigNotificationconfig() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
+      NotificationConfig response =
+          securityCenterClient.updateNotificationConfig(notificationConfig);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_updatenotificationconfig_notificationconfig_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java
new file mode 100644
index 000000000..60be3cfb5
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatenotificationconfig_notificationconfigfieldmask_sync]
+import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateNotificationConfigNotificationconfigFieldmask {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateNotificationConfigNotificationconfigFieldmask();
+  }
+
+  public static void syncUpdateNotificationConfigNotificationconfigFieldmask() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      NotificationConfig notificationConfig = NotificationConfig.newBuilder().build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
+      NotificationConfig response =
+          securityCenterClient.updateNotificationConfig(notificationConfig, updateMask);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_updatenotificationconfig_notificationconfigfieldmask_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java
new file mode 100644
index 000000000..8d735bf7f
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_updateorganizationsettings_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest;
+import com.google.protobuf.FieldMask;
+
+public class AsyncUpdateOrganizationSettings {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateOrganizationSettings();
+  }
+
+  public static void asyncUpdateOrganizationSettings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateOrganizationSettingsRequest request =
+          UpdateOrganizationSettingsRequest.newBuilder()
+              .setOrganizationSettings(OrganizationSettings.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      ApiFuture future =
+          securityCenterClient.updateOrganizationSettingsCallable().futureCall(request);
+      // Do something.
+      OrganizationSettings response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_updateorganizationsettings_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java
new file mode 100644
index 000000000..2d866ccab
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_updateorganizationsettings_sync]
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateOrganizationSettings {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateOrganizationSettings();
+  }
+
+  public static void syncUpdateOrganizationSettings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateOrganizationSettingsRequest request =
+          UpdateOrganizationSettingsRequest.newBuilder()
+              .setOrganizationSettings(OrganizationSettings.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      OrganizationSettings response = securityCenterClient.updateOrganizationSettings(request);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_updateorganizationsettings_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java
new file mode 100644
index 000000000..95167830e
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_updateorganizationsettings_organizationsettings_sync]
+import com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+
+public class SyncUpdateOrganizationSettingsOrganizationsettings {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateOrganizationSettingsOrganizationsettings();
+  }
+
+  public static void syncUpdateOrganizationSettingsOrganizationsettings() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      OrganizationSettings organizationSettings = OrganizationSettings.newBuilder().build();
+      OrganizationSettings response =
+          securityCenterClient.updateOrganizationSettings(organizationSettings);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_updateorganizationsettings_organizationsettings_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java
new file mode 100644
index 000000000..571a07271
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatesecuritymarks_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityMarks;
+import com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest;
+import com.google.protobuf.FieldMask;
+import com.google.protobuf.Timestamp;
+
+public class AsyncUpdateSecurityMarks {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateSecurityMarks();
+  }
+
+  public static void asyncUpdateSecurityMarks() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateSecurityMarksRequest request =
+          UpdateSecurityMarksRequest.newBuilder()
+              .setSecurityMarks(SecurityMarks.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .setStartTime(Timestamp.newBuilder().build())
+              .build();
+      ApiFuture future =
+          securityCenterClient.updateSecurityMarksCallable().futureCall(request);
+      // Do something.
+      SecurityMarks response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_updatesecuritymarks_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java
new file mode 100644
index 000000000..dda031b9a
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatesecuritymarks_sync]
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityMarks;
+import com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest;
+import com.google.protobuf.FieldMask;
+import com.google.protobuf.Timestamp;
+
+public class SyncUpdateSecurityMarks {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateSecurityMarks();
+  }
+
+  public static void syncUpdateSecurityMarks() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateSecurityMarksRequest request =
+          UpdateSecurityMarksRequest.newBuilder()
+              .setSecurityMarks(SecurityMarks.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .setStartTime(Timestamp.newBuilder().build())
+              .build();
+      SecurityMarks response = securityCenterClient.updateSecurityMarks(request);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_updatesecuritymarks_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java
new file mode 100644
index 000000000..3ad3e87ac
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatesecuritymarks_securitymarks_sync]
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityMarks;
+
+public class SyncUpdateSecurityMarksSecuritymarks {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateSecurityMarksSecuritymarks();
+  }
+
+  public static void syncUpdateSecurityMarksSecuritymarks() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SecurityMarks securityMarks = SecurityMarks.newBuilder().build();
+      SecurityMarks response = securityCenterClient.updateSecurityMarks(securityMarks);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_updatesecuritymarks_securitymarks_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarksFieldmask.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarksFieldmask.java
new file mode 100644
index 000000000..4958aa18a
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarksFieldmask.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatesecuritymarks_securitymarksfieldmask_sync]
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityMarks;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateSecurityMarksSecuritymarksFieldmask {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateSecurityMarksSecuritymarksFieldmask();
+  }
+
+  public static void syncUpdateSecurityMarksSecuritymarksFieldmask() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      SecurityMarks securityMarks = SecurityMarks.newBuilder().build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
+      SecurityMarks response = securityCenterClient.updateSecurityMarks(securityMarks, updateMask);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_updatesecuritymarks_securitymarksfieldmask_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/AsyncUpdateSource.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/AsyncUpdateSource.java
new file mode 100644
index 000000000..ce7d450ae
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/AsyncUpdateSource.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatesource_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.Source;
+import com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest;
+import com.google.protobuf.FieldMask;
+
+public class AsyncUpdateSource {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateSource();
+  }
+
+  public static void asyncUpdateSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateSourceRequest request =
+          UpdateSourceRequest.newBuilder()
+              .setSource(Source.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      ApiFuture future = securityCenterClient.updateSourceCallable().futureCall(request);
+      // Do something.
+      Source response = future.get();
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_updatesource_async]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSource.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSource.java
new file mode 100644
index 000000000..ab56c23d8
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSource.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatesource_sync]
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.Source;
+import com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateSource {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateSource();
+  }
+
+  public static void syncUpdateSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      UpdateSourceRequest request =
+          UpdateSourceRequest.newBuilder()
+              .setSource(Source.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      Source response = securityCenterClient.updateSource(request);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_updatesource_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSourceSource.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSourceSource.java
new file mode 100644
index 000000000..000c19b3b
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSourceSource.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatesource_source_sync]
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.Source;
+
+public class SyncUpdateSourceSource {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateSourceSource();
+  }
+
+  public static void syncUpdateSourceSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      Source source = Source.newBuilder().build();
+      Source response = securityCenterClient.updateSource(source);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_updatesource_source_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSourceSourceFieldmask.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSourceSourceFieldmask.java
new file mode 100644
index 000000000..83521b026
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSourceSourceFieldmask.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatesource_sourcefieldmask_sync]
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
+import com.google.cloud.securitycenter.v1p1beta1.Source;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateSourceSourceFieldmask {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateSourceSourceFieldmask();
+  }
+
+  public static void syncUpdateSourceSourceFieldmask() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
+      Source source = Source.newBuilder().build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
+      Source response = securityCenterClient.updateSource(source, updateMask);
+    }
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterclient_updatesource_sourcefieldmask_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycentersettings/createsource/SyncCreateSource.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycentersettings/createsource/SyncCreateSource.java
new file mode 100644
index 000000000..f2f56e394
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycentersettings/createsource/SyncCreateSource.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycentersettings_createsource_sync]
+import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterSettings;
+import java.time.Duration;
+
+public class SyncCreateSource {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSource();
+  }
+
+  public static void syncCreateSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    SecurityCenterSettings.Builder securityCenterSettingsBuilder =
+        SecurityCenterSettings.newBuilder();
+    securityCenterSettingsBuilder
+        .createSourceSettings()
+        .setRetrySettings(
+            securityCenterSettingsBuilder
+                .createSourceSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    SecurityCenterSettings securityCenterSettings = securityCenterSettingsBuilder.build();
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycentersettings_createsource_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java
new file mode 100644
index 000000000..7d988d9cb
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.securitycenter.v1p1beta1.stub.samples;
+
+// [START securitycenter_v1p1beta1_generated_securitycenterstubsettings_createsource_sync]
+import com.google.cloud.securitycenter.v1p1beta1.stub.SecurityCenterStubSettings;
+import java.time.Duration;
+
+public class SyncCreateSource {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSource();
+  }
+
+  public static void syncCreateSource() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    SecurityCenterStubSettings.Builder securityCenterSettingsBuilder =
+        SecurityCenterStubSettings.newBuilder();
+    securityCenterSettingsBuilder
+        .createSourceSettings()
+        .setRetrySettings(
+            securityCenterSettingsBuilder
+                .createSourceSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    SecurityCenterStubSettings securityCenterSettings = securityCenterSettingsBuilder.build();
+  }
+}
+// [END securitycenter_v1p1beta1_generated_securitycenterstubsettings_createsource_sync]
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessProto.java
deleted file mode 100644
index efcf4ec4d..000000000
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessProto.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/cloud/securitycenter/v1/access.proto
-
-package com.google.cloud.securitycenter.v1;
-
-public final class AccessProto {
-  private AccessProto() {}
-
-  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
-
-  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
-  }
-
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_securitycenter_v1_Access_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_securitycenter_v1_Access_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_securitycenter_v1_Geolocation_fieldAccessorTable;
-
-  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
-    return descriptor;
-  }
-
-  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
-
-  static {
-    java.lang.String[] descriptorData = {
-      "\n+google/cloud/securitycenter/v1/access."
-          + "proto\022\036google.cloud.securitycenter.v1\"\276\001"
-          + "\n\006Access\022\027\n\017principal_email\030\001 \001(\t\022\021\n\tcal"
-          + "ler_ip\030\002 \001(\t\022B\n\rcaller_ip_geo\030\003 \001(\0132+.go"
-          + "ogle.cloud.securitycenter.v1.Geolocation"
-          + "\022\031\n\021user_agent_family\030\004 \001(\t\022\024\n\014service_n"
-          + "ame\030\005 \001(\t\022\023\n\013method_name\030\006 \001(\t\"\"\n\013Geoloc"
-          + "ation\022\023\n\013region_code\030\001 \001(\tB\347\001\n\"com.googl"
-          + "e.cloud.securitycenter.v1B\013AccessProtoP\001"
-          + "ZLgoogle.golang.org/genproto/googleapis/"
-          + "cloud/securitycenter/v1;securitycenter\252\002"
-          + "\036Google.Cloud.SecurityCenter.V1\312\002\036Google"
-          + "\\Cloud\\SecurityCenter\\V1\352\002!Google::Cloud"
-          + "::SecurityCenter::V1b\006proto3"
-    };
-    descriptor =
-        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
-            descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
-    internal_static_google_cloud_securitycenter_v1_Access_descriptor =
-        getDescriptor().getMessageTypes().get(0);
-    internal_static_google_cloud_securitycenter_v1_Access_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_securitycenter_v1_Access_descriptor,
-            new java.lang.String[] {
-              "PrincipalEmail",
-              "CallerIp",
-              "CallerIpGeo",
-              "UserAgentFamily",
-              "ServiceName",
-              "MethodName",
-            });
-    internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor =
-        getDescriptor().getMessageTypes().get(1);
-    internal_static_google_cloud_securitycenter_v1_Geolocation_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor,
-            new java.lang.String[] {
-              "RegionCode",
-            });
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java
deleted file mode 100644
index 487cf1492..000000000
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/cloud/securitycenter/v1/asset.proto
-
-package com.google.cloud.securitycenter.v1;
-
-public final class AssetOuterClass {
-  private AssetOuterClass() {}
-
-  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
-
-  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
-  }
-
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_securitycenter_v1_Asset_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_fieldAccessorTable;
-
-  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
-    return descriptor;
-  }
-
-  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
-
-  static {
-    java.lang.String[] descriptorData = {
-      "\n*google/cloud/securitycenter/v1/asset.p"
-          + "roto\022\036google.cloud.securitycenter.v1\032\031go"
-          + "ogle/api/resource.proto\032+google/cloud/se"
-          + "curitycenter/v1/folder.proto\0323google/clo"
-          + "ud/securitycenter/v1/security_marks.prot"
-          + "o\032\034google/protobuf/struct.proto\032\037google/"
-          + "protobuf/timestamp.proto\"\251\010\n\005Asset\022\014\n\004na"
-          + "me\030\001 \001(\t\022b\n\032security_center_properties\030\002"
-          + " \001(\0132>.google.cloud.securitycenter.v1.As"
-          + "set.SecurityCenterProperties\022Z\n\023resource"
-          + "_properties\030\007 \003(\0132=.google.cloud.securit"
-          + "ycenter.v1.Asset.ResourcePropertiesEntry"
-          + "\022E\n\016security_marks\030\010 \001(\0132-.google.cloud."
-          + "securitycenter.v1.SecurityMarks\022/\n\013creat"
-          + "e_time\030\t \001(\0132\032.google.protobuf.Timestamp"
-          + "\022/\n\013update_time\030\n \001(\0132\032.google.protobuf."
-          + "Timestamp\022C\n\niam_policy\030\013 \001(\0132/.google.c"
-          + "loud.securitycenter.v1.Asset.IamPolicy\022\026"
-          + "\n\016canonical_name\030\r \001(\t\032\271\002\n\030SecurityCente"
-          + "rProperties\022\025\n\rresource_name\030\001 \001(\t\022\025\n\rre"
-          + "source_type\030\002 \001(\t\022\027\n\017resource_parent\030\003 \001"
-          + "(\t\022\030\n\020resource_project\030\004 \001(\t\022\027\n\017resource"
-          + "_owners\030\005 \003(\t\022\035\n\025resource_display_name\030\006"
-          + " \001(\t\022$\n\034resource_parent_display_name\030\007 \001"
-          + "(\t\022%\n\035resource_project_display_name\030\010 \001("
-          + "\t\0227\n\007folders\030\n \003(\0132&.google.cloud.securi"
-          + "tycenter.v1.Folder\032 \n\tIamPolicy\022\023\n\013polic"
-          + "y_blob\030\001 \001(\t\032Q\n\027ResourcePropertiesEntry\022"
-          + "\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pro"
-          + "tobuf.Value:\0028\001:\232\001\352A\226\001\n#securitycenter.g"
-          + "oogleapis.com/Asset\022+organizations/{orga"
-          + "nization}/assets/{asset}\022\037folders/{folde"
-          + "r}/assets/{asset}\022!projects/{project}/as"
-          + "sets/{asset}B\332\001\n\"com.google.cloud.securi"
-          + "tycenter.v1P\001ZLgoogle.golang.org/genprot"
-          + "o/googleapis/cloud/securitycenter/v1;sec"
-          + "uritycenter\252\002\036Google.Cloud.SecurityCente"
-          + "r.V1\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!"
-          + "Google::Cloud::SecurityCenter::V1b\006proto"
-          + "3"
-    };
-    descriptor =
-        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
-            descriptorData,
-            new com.google.protobuf.Descriptors.FileDescriptor[] {
-              com.google.api.ResourceProto.getDescriptor(),
-              com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(),
-              com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(),
-              com.google.protobuf.StructProto.getDescriptor(),
-              com.google.protobuf.TimestampProto.getDescriptor(),
-            });
-    internal_static_google_cloud_securitycenter_v1_Asset_descriptor =
-        getDescriptor().getMessageTypes().get(0);
-    internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_securitycenter_v1_Asset_descriptor,
-            new java.lang.String[] {
-              "Name",
-              "SecurityCenterProperties",
-              "ResourceProperties",
-              "SecurityMarks",
-              "CreateTime",
-              "UpdateTime",
-              "IamPolicy",
-              "CanonicalName",
-            });
-    internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor =
-        internal_static_google_cloud_securitycenter_v1_Asset_descriptor.getNestedTypes().get(0);
-    internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor,
-            new java.lang.String[] {
-              "ResourceName",
-              "ResourceType",
-              "ResourceParent",
-              "ResourceProject",
-              "ResourceOwners",
-              "ResourceDisplayName",
-              "ResourceParentDisplayName",
-              "ResourceProjectDisplayName",
-              "Folders",
-            });
-    internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor =
-        internal_static_google_cloud_securitycenter_v1_Asset_descriptor.getNestedTypes().get(1);
-    internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor,
-            new java.lang.String[] {
-              "PolicyBlob",
-            });
-    internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_descriptor =
-        internal_static_google_cloud_securitycenter_v1_Asset_descriptor.getNestedTypes().get(2);
-    internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_descriptor,
-            new java.lang.String[] {
-              "Key", "Value",
-            });
-    com.google.protobuf.ExtensionRegistry registry =
-        com.google.protobuf.ExtensionRegistry.newInstance();
-    registry.add(com.google.api.ResourceProto.resource);
-    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
-        descriptor, registry);
-    com.google.api.ResourceProto.getDescriptor();
-    com.google.cloud.securitycenter.v1.FolderProto.getDescriptor();
-    com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor();
-    com.google.protobuf.StructProto.getDescriptor();
-    com.google.protobuf.TimestampProto.getDescriptor();
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportProto.java
deleted file mode 100644
index d95fbeaca..000000000
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportProto.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/cloud/securitycenter/v1/bigquery_export.proto
-
-package com.google.cloud.securitycenter.v1;
-
-public final class BigQueryExportProto {
-  private BigQueryExportProto() {}
-
-  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
-
-  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
-  }
-
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_securitycenter_v1_BigQueryExport_fieldAccessorTable;
-
-  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
-    return descriptor;
-  }
-
-  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
-
-  static {
-    java.lang.String[] descriptorData = {
-      "\n4google/cloud/securitycenter/v1/bigquer"
-          + "y_export.proto\022\036google.cloud.securitycen"
-          + "ter.v1\032\037google/api/field_behavior.proto\032"
-          + "\031google/api/resource.proto\032\037google/proto"
-          + "buf/timestamp.proto\"\275\003\n\016BigQueryExport\022\014"
-          + "\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\016\n\006fil"
-          + "ter\030\003 \001(\t\022\017\n\007dataset\030\004 \001(\t\0224\n\013create_tim"
-          + "e\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003"
-          + "\0224\n\013update_time\030\006 \001(\0132\032.google.protobuf."
-          + "TimestampB\003\340A\003\022\037\n\022most_recent_editor\030\007 \001"
-          + "(\tB\003\340A\003\022\026\n\tprincipal\030\010 \001(\tB\003\340A\003:\301\001\352A\275\001\n,"
-          + "securitycenter.googleapis.com/BigQueryEx"
-          + "port\0225organizations/{organization}/bigQu"
-          + "eryExports/{export}\022)folders/{folder}/bi"
-          + "gQueryExports/{export}\022+projects/{projec"
-          + "t}/bigQueryExports/{export}B\357\001\n\"com.goog"
-          + "le.cloud.securitycenter.v1B\023BigQueryExpo"
-          + "rtProtoP\001ZLgoogle.golang.org/genproto/go"
-          + "ogleapis/cloud/securitycenter/v1;securit"
-          + "ycenter\252\002\036Google.Cloud.SecurityCenter.V1"
-          + "\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!Goog"
-          + "le::Cloud::SecurityCenter::V1b\006proto3"
-    };
-    descriptor =
-        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
-            descriptorData,
-            new com.google.protobuf.Descriptors.FileDescriptor[] {
-              com.google.api.FieldBehaviorProto.getDescriptor(),
-              com.google.api.ResourceProto.getDescriptor(),
-              com.google.protobuf.TimestampProto.getDescriptor(),
-            });
-    internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor =
-        getDescriptor().getMessageTypes().get(0);
-    internal_static_google_cloud_securitycenter_v1_BigQueryExport_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor,
-            new java.lang.String[] {
-              "Name",
-              "Description",
-              "Filter",
-              "Dataset",
-              "CreateTime",
-              "UpdateTime",
-              "MostRecentEditor",
-              "Principal",
-            });
-    com.google.protobuf.ExtensionRegistry registry =
-        com.google.protobuf.ExtensionRegistry.newInstance();
-    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
-    registry.add(com.google.api.ResourceProto.resource);
-    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
-        descriptor, registry);
-    com.google.api.FieldBehaviorProto.getDescriptor();
-    com.google.api.ResourceProto.getDescriptor();
-    com.google.protobuf.TimestampProto.getDescriptor();
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponseOrBuilder.java
deleted file mode 100644
index 15942a820..000000000
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponseOrBuilder.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/cloud/securitycenter/v1/securitycenter_service.proto
-
-package com.google.cloud.securitycenter.v1;
-
-public interface BulkMuteFindingsResponseOrBuilder
-    extends
-    // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.BulkMuteFindingsResponse)
-    com.google.protobuf.MessageOrBuilder {}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceProto.java
deleted file mode 100644
index f6df500c8..000000000
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceProto.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/cloud/securitycenter/v1/compliance.proto
-
-package com.google.cloud.securitycenter.v1;
-
-public final class ComplianceProto {
-  private ComplianceProto() {}
-
-  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
-
-  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
-  }
-
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_securitycenter_v1_Compliance_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_securitycenter_v1_Compliance_fieldAccessorTable;
-
-  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
-    return descriptor;
-  }
-
-  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
-
-  static {
-    java.lang.String[] descriptorData = {
-      "\n/google/cloud/securitycenter/v1/complia"
-          + "nce.proto\022\036google.cloud.securitycenter.v"
-          + "1\"<\n\nCompliance\022\020\n\010standard\030\001 \001(\t\022\017\n\007ver"
-          + "sion\030\002 \001(\t\022\013\n\003ids\030\003 \003(\tB\353\001\n\"com.google.c"
-          + "loud.securitycenter.v1B\017ComplianceProtoP"
-          + "\001ZLgoogle.golang.org/genproto/googleapis"
-          + "/cloud/securitycenter/v1;securitycenter\252"
-          + "\002\036Google.Cloud.SecurityCenter.V1\312\002\036Googl"
-          + "e\\Cloud\\SecurityCenter\\V1\352\002!Google::Clou"
-          + "d::SecurityCenter::V1b\006proto3"
-    };
-    descriptor =
-        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
-            descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
-    internal_static_google_cloud_securitycenter_v1_Compliance_descriptor =
-        getDescriptor().getMessageTypes().get(0);
-    internal_static_google_cloud_securitycenter_v1_Compliance_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_securitycenter_v1_Compliance_descriptor,
-            new java.lang.String[] {
-              "Standard", "Version", "Ids",
-            });
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionProto.java
deleted file mode 100644
index db47396e9..000000000
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionProto.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/cloud/securitycenter/v1/connection.proto
-
-package com.google.cloud.securitycenter.v1;
-
-public final class ConnectionProto {
-  private ConnectionProto() {}
-
-  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
-
-  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
-  }
-
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_securitycenter_v1_Connection_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_securitycenter_v1_Connection_fieldAccessorTable;
-
-  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
-    return descriptor;
-  }
-
-  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
-
-  static {
-    java.lang.String[] descriptorData = {
-      "\n/google/cloud/securitycenter/v1/connect"
-          + "ion.proto\022\036google.cloud.securitycenter.v"
-          + "1\"\201\002\n\nConnection\022\026\n\016destination_ip\030\001 \001(\t"
-          + "\022\030\n\020destination_port\030\002 \001(\005\022\021\n\tsource_ip\030"
-          + "\003 \001(\t\022\023\n\013source_port\030\004 \001(\005\022E\n\010protocol\030\005"
-          + " \001(\01623.google.cloud.securitycenter.v1.Co"
-          + "nnection.Protocol\"R\n\010Protocol\022\030\n\024PROTOCO"
-          + "L_UNSPECIFIED\020\000\022\010\n\004ICMP\020\001\022\007\n\003TCP\020\006\022\007\n\003UD"
-          + "P\020\021\022\007\n\003GRE\020/\022\007\n\003ESP\0202B\353\001\n\"com.google.clo"
-          + "ud.securitycenter.v1B\017ConnectionProtoP\001Z"
-          + "Lgoogle.golang.org/genproto/googleapis/c"
-          + "loud/securitycenter/v1;securitycenter\252\002\036"
-          + "Google.Cloud.SecurityCenter.V1\312\002\036Google\\"
-          + "Cloud\\SecurityCenter\\V1\352\002!Google::Cloud:"
-          + ":SecurityCenter::V1b\006proto3"
-    };
-    descriptor =
-        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
-            descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
-    internal_static_google_cloud_securitycenter_v1_Connection_descriptor =
-        getDescriptor().getMessageTypes().get(0);
-    internal_static_google_cloud_securitycenter_v1_Connection_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_securitycenter_v1_Connection_descriptor,
-            new java.lang.String[] {
-              "DestinationIp", "DestinationPort", "SourceIp", "SourcePort", "Protocol",
-            });
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequestOrBuilder.java
deleted file mode 100644
index 8f4cd840d..000000000
--- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequestOrBuilder.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/cloud/securitycenter/v1/securitycenter_service.proto
-
-package com.google.cloud.securitycenter.v1;
-
-public interface DeleteBigQueryExportRequestOrBuilder
-    extends
-    // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.DeleteBigQueryExportRequest)
-    com.google.protobuf.MessageOrBuilder {
-
-  /**
-   *
-   *
-   * 
-   * Required. Name of the big query export to delete. Its format is
-   * organizations/{organization}/bigQueryExports/{export_id},
-   * folders/{folder}/bigQueryExports/{export_id}, or
-   * projects/{project}/bigQueryExports/{export_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the big query export to delete. Its format is
-   * organizations/{organization}/bigQueryExports/{export_id},
-   * folders/{folder}/bigQueryExports/{export_id}, or
-   * projects/{project}/bigQueryExports/{export_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequestOrBuilder.java deleted file mode 100644 index 488c64d4a..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1; - -public interface DeleteMuteConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.DeleteMuteConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the mute config to delete. Its format is
-   * organizations/{organization}/muteConfigs/{config_id},
-   * folders/{folder}/muteConfigs/{config_id}, or
-   * projects/{project}/muteConfigs/{config_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the mute config to delete. Its format is
-   * organizations/{organization}/muteConfigs/{config_id},
-   * folders/{folder}/muteConfigs/{config_id}, or
-   * projects/{project}/muteConfigs/{config_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequestOrBuilder.java deleted file mode 100644 index eadbd4aa2..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1; - -public interface DeleteNotificationConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the notification config to delete. Its format is
-   * "organizations/[organization_id]/notificationConfigs/[config_id]".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the notification config to delete. Its format is
-   * "organizations/[organization_id]/notificationConfigs/[config_id]".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationProto.java deleted file mode 100644 index 40827fa73..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationProto.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/exfiltration.proto - -package com.google.cloud.securitycenter.v1; - -public final class ExfiltrationProto { - private ExfiltrationProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Exfiltration_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ExfilResource_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/securitycenter/v1/exfiltr" - + "ation.proto\022\036google.cloud.securitycenter" - + ".v1\"\216\001\n\014Exfiltration\022>\n\007sources\030\001 \003(\0132-." - + "google.cloud.securitycenter.v1.ExfilReso" - + "urce\022>\n\007targets\030\002 \003(\0132-.google.cloud.sec" - + "uritycenter.v1.ExfilResource\"1\n\rExfilRes" - + "ource\022\014\n\004name\030\001 \001(\t\022\022\n\ncomponents\030\002 \003(\tB" - + "\355\001\n\"com.google.cloud.securitycenter.v1B\021" - + "ExfiltrationProtoP\001ZLgoogle.golang.org/g" - + "enproto/googleapis/cloud/securitycenter/" - + "v1;securitycenter\252\002\036Google.Cloud.Securit" - + "yCenter.V1\312\002\036Google\\Cloud\\SecurityCenter" - + "\\V1\352\002!Google::Cloud::SecurityCenter::V1b" - + "\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Exfiltration_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor, - new java.lang.String[] { - "Sources", "Targets", - }); - internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_securitycenter_v1_ExfilResource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor, - new java.lang.String[] { - "Name", "Components", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemProto.java deleted file mode 100644 index e8f818e39..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemProto.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/external_system.proto - -package com.google.cloud.securitycenter.v1; - -public final class ExternalSystemProto { - private ExternalSystemProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/securitycenter/v1/externa" - + "l_system.proto\022\036google.cloud.securitycen" - + "ter.v1\032\031google/api/resource.proto\032\037googl" - + "e/protobuf/timestamp.proto\"\340\003\n\016ExternalS" - + "ystem\022\014\n\004name\030\001 \001(\t\022\021\n\tassignees\030\002 \003(\t\022\024" - + "\n\014external_uid\030\003 \001(\t\022\016\n\006status\030\004 \001(\t\022?\n\033" - + "external_system_update_time\030\005 \001(\0132\032.goog" - + "le.protobuf.Timestamp:\305\002\352A\301\002\n,securityce" - + "nter.googleapis.com/ExternalSystem\022aorga" - + "nizations/{organization}/sources/{source" - + "}/findings/{finding}/externalSystems/{ex" - + "ternalsystem}\022Ufolders/{folder}/sources/" - + "{source}/findings/{finding}/externalSyst" - + "ems/{externalsystem}\022Wprojects/{project}" - + "/sources/{source}/findings/{finding}/ext" - + "ernalSystems/{externalsystem}B\357\001\n\"com.go" - + "ogle.cloud.securitycenter.v1B\023ExternalSy" - + "stemProtoP\001ZLgoogle.golang.org/genproto/" - + "googleapis/cloud/securitycenter/v1;secur" - + "itycenter\252\002\036Google.Cloud.SecurityCenter." - + "V1\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!Go" - + "ogle::Cloud::SecurityCenter::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor, - new java.lang.String[] { - "Name", "Assignees", "ExternalUid", "Status", "ExternalSystemUpdateTime", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileProto.java deleted file mode 100644 index 2f6f2c0f9..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileProto.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/file.proto - -package com.google.cloud.securitycenter.v1; - -public final class FileProto { - private FileProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_File_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_File_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/securitycenter/v1/file.pr" - + "oto\022\036google.cloud.securitycenter.v1\"s\n\004F" - + "ile\022\014\n\004path\030\001 \001(\t\022\014\n\004size\030\002 \001(\003\022\016\n\006sha25" - + "6\030\003 \001(\t\022\023\n\013hashed_size\030\004 \001(\003\022\030\n\020partiall" - + "y_hashed\030\005 \001(\010\022\020\n\010contents\030\006 \001(\tB\345\001\n\"com" - + ".google.cloud.securitycenter.v1B\tFilePro" - + "toP\001ZLgoogle.golang.org/genproto/googlea" - + "pis/cloud/securitycenter/v1;securitycent" - + "er\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036Go" - + "ogle\\Cloud\\SecurityCenter\\V1\352\002!Google::C" - + "loud::SecurityCenter::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_securitycenter_v1_File_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_File_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_File_descriptor, - new java.lang.String[] { - "Path", "Size", "Sha256", "HashedSize", "PartiallyHashed", "Contents", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java deleted file mode 100644 index a25500939..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/finding.proto - -package com.google.cloud.securitycenter.v1; - -public final class FindingOuterClass { - private FindingOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Finding_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/securitycenter/v1/finding" - + ".proto\022\036google.cloud.securitycenter.v1\032\037" - + "google/api/field_behavior.proto\032\031google/" - + "api/resource.proto\032+google/cloud/securit" - + "ycenter/v1/access.proto\032/google/cloud/se" - + "curitycenter/v1/compliance.proto\032/google" - + "/cloud/securitycenter/v1/connection.prot" - + "o\0321google/cloud/securitycenter/v1/exfilt" - + "ration.proto\0324google/cloud/securitycente" - + "r/v1/external_system.proto\0320google/cloud" - + "/securitycenter/v1/iam_binding.proto\032.go" - + "ogle/cloud/securitycenter/v1/indicator.p" - + "roto\0321google/cloud/securitycenter/v1/mit" - + "re_attack.proto\032,google/cloud/securityce" - + "nter/v1/process.proto\0323google/cloud/secu" - + "ritycenter/v1/security_marks.proto\0322goog" - + "le/cloud/securitycenter/v1/vulnerability" - + ".proto\032\034google/protobuf/struct.proto\032\037go" - + "ogle/protobuf/timestamp.proto\"\232\021\n\007Findin" - + "g\022\014\n\004name\030\001 \001(\t\022\016\n\006parent\030\002 \001(\t\022\025\n\rresou" - + "rce_name\030\003 \001(\t\022<\n\005state\030\004 \001(\0162-.google.c" - + "loud.securitycenter.v1.Finding.State\022\020\n\010" - + "category\030\005 \001(\t\022\024\n\014external_uri\030\006 \001(\t\022X\n\021" - + "source_properties\030\007 \003(\0132=.google.cloud.s" - + "ecuritycenter.v1.Finding.SourcePropertie" - + "sEntry\022J\n\016security_marks\030\010 \001(\0132-.google." - + "cloud.securitycenter.v1.SecurityMarksB\003\340" - + "A\003\022.\n\nevent_time\030\t \001(\0132\032.google.protobuf" - + ".Timestamp\022/\n\013create_time\030\n \001(\0132\032.google" - + ".protobuf.Timestamp\022B\n\010severity\030\014 \001(\01620." - + "google.cloud.securitycenter.v1.Finding.S" - + "everity\022\026\n\016canonical_name\030\016 \001(\t\022:\n\004mute\030" - + "\017 \001(\0162,.google.cloud.securitycenter.v1.F" - + "inding.Mute\022K\n\rfinding_class\030\021 \001(\01624.goo" - + "gle.cloud.securitycenter.v1.Finding.Find" - + "ingClass\022<\n\tindicator\030\022 \001(\0132).google.clo" - + "ud.securitycenter.v1.Indicator\022D\n\rvulner" - + "ability\030\024 \001(\0132-.google.cloud.securitycen" - + "ter.v1.Vulnerability\0229\n\020mute_update_time" - + "\030\025 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "[\n\020external_systems\030\026 \003(\0132<.google.cloud" - + ".securitycenter.v1.Finding.ExternalSyste" - + "msEntryB\003\340A\003\022A\n\014mitre_attack\030\031 \001(\0132+.goo" - + "gle.cloud.securitycenter.v1.MitreAttack\022" - + "6\n\006access\030\032 \001(\0132&.google.cloud.securityc" - + "enter.v1.Access\022?\n\013connections\030\037 \003(\0132*.g" - + "oogle.cloud.securitycenter.v1.Connection" - + "\022\026\n\016mute_initiator\030\034 \001(\t\022:\n\tprocesses\030\036 " - + "\003(\0132\'.google.cloud.securitycenter.v1.Pro" - + "cess\022?\n\013compliances\030\" \003(\0132*.google.cloud" - + ".securitycenter.v1.Compliance\022\023\n\013descrip" - + "tion\030% \001(\t\022B\n\014exfiltration\030& \001(\0132,.googl" - + "e.cloud.securitycenter.v1.Exfiltration\022@" - + "\n\014iam_bindings\030\' \003(\0132*.google.cloud.secu" - + "ritycenter.v1.IamBinding\022\022\n\nnext_steps\030(" - + " \001(\t\032O\n\025SourcePropertiesEntry\022\013\n\003key\030\001 \001" - + "(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Valu" - + "e:\0028\001\032f\n\024ExternalSystemsEntry\022\013\n\003key\030\001 \001" - + "(\t\022=\n\005value\030\002 \001(\0132..google.cloud.securit" - + "ycenter.v1.ExternalSystem:\0028\001\"8\n\005State\022\025" - + "\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INA" - + "CTIVE\020\002\"Q\n\010Severity\022\030\n\024SEVERITY_UNSPECIF" - + "IED\020\000\022\014\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020" - + "\003\022\007\n\003LOW\020\004\"C\n\004Mute\022\024\n\020MUTE_UNSPECIFIED\020\000" - + "\022\t\n\005MUTED\020\001\022\013\n\007UNMUTED\020\002\022\r\n\tUNDEFINED\020\004\"" - + "\202\001\n\014FindingClass\022\035\n\031FINDING_CLASS_UNSPEC" - + "IFIED\020\000\022\n\n\006THREAT\020\001\022\021\n\rVULNERABILITY\020\002\022\024" - + "\n\020MISCONFIGURATION\020\003\022\017\n\013OBSERVATION\020\004\022\r\n" - + "\tSCC_ERROR\020\005:\333\001\352A\327\001\n%securitycenter.goog" - + "leapis.com/Finding\022@organizations/{organ" - + "ization}/sources/{source}/findings/{find" - + "ing}\0224folders/{folder}/sources/{source}/" - + "findings/{finding}\0226projects/{project}/s" - + "ources/{source}/findings/{finding}B\332\001\n\"c" - + "om.google.cloud.securitycenter.v1P\001ZLgoo" - + "gle.golang.org/genproto/googleapis/cloud" - + "/securitycenter/v1;securitycenter\252\002\036Goog" - + "le.Cloud.SecurityCenter.V1\312\002\036Google\\Clou" - + "d\\SecurityCenter\\V1\352\002!Google::Cloud::Sec" - + "urityCenter::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.securitycenter.v1.AccessProto.getDescriptor(), - com.google.cloud.securitycenter.v1.ComplianceProto.getDescriptor(), - com.google.cloud.securitycenter.v1.ConnectionProto.getDescriptor(), - com.google.cloud.securitycenter.v1.ExfiltrationProto.getDescriptor(), - com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(), - com.google.cloud.securitycenter.v1.IamBindingProto.getDescriptor(), - com.google.cloud.securitycenter.v1.IndicatorProto.getDescriptor(), - com.google.cloud.securitycenter.v1.MitreAttackProto.getDescriptor(), - com.google.cloud.securitycenter.v1.ProcessProto.getDescriptor(), - com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1.VulnerabilityProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_Finding_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Finding_descriptor, - new java.lang.String[] { - "Name", - "Parent", - "ResourceName", - "State", - "Category", - "ExternalUri", - "SourceProperties", - "SecurityMarks", - "EventTime", - "CreateTime", - "Severity", - "CanonicalName", - "Mute", - "FindingClass", - "Indicator", - "Vulnerability", - "MuteUpdateTime", - "ExternalSystems", - "MitreAttack", - "Access", - "Connections", - "MuteInitiator", - "Processes", - "Compliances", - "Description", - "Exfiltration", - "IamBindings", - "NextSteps", - }); - internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor = - internal_static_google_cloud_securitycenter_v1_Finding_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_descriptor = - internal_static_google_cloud_securitycenter_v1_Finding_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.securitycenter.v1.AccessProto.getDescriptor(); - com.google.cloud.securitycenter.v1.ComplianceProto.getDescriptor(); - com.google.cloud.securitycenter.v1.ConnectionProto.getDescriptor(); - com.google.cloud.securitycenter.v1.ExfiltrationProto.getDescriptor(); - com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(); - com.google.cloud.securitycenter.v1.IamBindingProto.getDescriptor(); - com.google.cloud.securitycenter.v1.IndicatorProto.getDescriptor(); - com.google.cloud.securitycenter.v1.MitreAttackProto.getDescriptor(); - com.google.cloud.securitycenter.v1.ProcessProto.getDescriptor(); - com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1.VulnerabilityProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderProto.java deleted file mode 100644 index a86b98b9f..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderProto.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/folder.proto - -package com.google.cloud.securitycenter.v1; - -public final class FolderProto { - private FolderProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Folder_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Folder_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/securitycenter/v1/folder." - + "proto\022\036google.cloud.securitycenter.v1\"G\n" - + "\006Folder\022\027\n\017resource_folder\030\001 \001(\t\022$\n\034reso" - + "urce_folder_display_name\030\002 \001(\tB\347\001\n\"com.g" - + "oogle.cloud.securitycenter.v1B\013FolderPro" - + "toP\001ZLgoogle.golang.org/genproto/googlea" - + "pis/cloud/securitycenter/v1;securitycent" - + "er\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036Go" - + "ogle\\Cloud\\SecurityCenter\\V1\352\002!Google::C" - + "loud::SecurityCenter::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_securitycenter_v1_Folder_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Folder_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Folder_descriptor, - new java.lang.String[] { - "ResourceFolder", "ResourceFolderDisplayName", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GeolocationOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GeolocationOrBuilder.java deleted file mode 100644 index 4a8e58cad..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GeolocationOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/access.proto - -package com.google.cloud.securitycenter.v1; - -public interface GeolocationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Geolocation) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A CLDR.
-   * 
- * - * string region_code = 1; - * - * @return The regionCode. - */ - java.lang.String getRegionCode(); - /** - * - * - *
-   * A CLDR.
-   * 
- * - * string region_code = 1; - * - * @return The bytes for regionCode. - */ - com.google.protobuf.ByteString getRegionCodeBytes(); -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequestOrBuilder.java deleted file mode 100644 index 9504ee0ed..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1; - -public interface GetBigQueryExportRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetBigQueryExportRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the big query export to retrieve. Its format is
-   * organizations/{organization}/bigQueryExports/{export_id},
-   * folders/{folder}/bigQueryExports/{export_id}, or
-   * projects/{project}/bigQueryExports/{export_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the big query export to retrieve. Its format is
-   * organizations/{organization}/bigQueryExports/{export_id},
-   * folders/{folder}/bigQueryExports/{export_id}, or
-   * projects/{project}/bigQueryExports/{export_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequestOrBuilder.java deleted file mode 100644 index 2bc73edce..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1; - -public interface GetMuteConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetMuteConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the mute config to retrieve. Its format is
-   * organizations/{organization}/muteConfigs/{config_id},
-   * folders/{folder}/muteConfigs/{config_id}, or
-   * projects/{project}/muteConfigs/{config_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the mute config to retrieve. Its format is
-   * organizations/{organization}/muteConfigs/{config_id},
-   * folders/{folder}/muteConfigs/{config_id}, or
-   * projects/{project}/muteConfigs/{config_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequestOrBuilder.java deleted file mode 100644 index c2d3b5b53..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1; - -public interface GetNotificationConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetNotificationConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the notification config to get. Its format is
-   * "organizations/[organization_id]/notificationConfigs/[config_id]".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the notification config to get. Its format is
-   * "organizations/[organization_id]/notificationConfigs/[config_id]".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java deleted file mode 100644 index 2d2f64a25..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1; - -public interface GetOrganizationSettingsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the organization to get organization settings for. Its format is
-   * "organizations/[organization_id]/organizationSettings".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the organization to get organization settings for. Its format is
-   * "organizations/[organization_id]/organizationSettings".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java deleted file mode 100644 index 646e14474..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1; - -public interface GetSourceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetSourceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Relative resource name of the source. Its format is
-   * "organizations/[organization_id]/source/[source_id]".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Relative resource name of the source. Its format is
-   * "organizations/[organization_id]/source/[source_id]".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingProto.java deleted file mode 100644 index b37cd930a..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingProto.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/iam_binding.proto - -package com.google.cloud.securitycenter.v1; - -public final class IamBindingProto { - private IamBindingProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_IamBinding_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/securitycenter/v1/iam_bin" - + "ding.proto\022\036google.cloud.securitycenter." - + "v1\"\244\001\n\nIamBinding\022A\n\006action\030\001 \001(\01621.goog" - + "le.cloud.securitycenter.v1.IamBinding.Ac" - + "tion\022\014\n\004role\030\002 \001(\t\022\016\n\006member\030\003 \001(\t\"5\n\006Ac" - + "tion\022\026\n\022ACTION_UNSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n" - + "\006REMOVE\020\002B\353\001\n\"com.google.cloud.securityc" - + "enter.v1B\017IamBindingProtoP\001ZLgoogle.gola" - + "ng.org/genproto/googleapis/cloud/securit" - + "ycenter/v1;securitycenter\252\002\036Google.Cloud" - + ".SecurityCenter.V1\312\002\036Google\\Cloud\\Securi" - + "tyCenter\\V1\352\002!Google::Cloud::SecurityCen" - + "ter::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_IamBinding_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor, - new java.lang.String[] { - "Action", "Role", "Member", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorProto.java deleted file mode 100644 index a06405f60..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorProto.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/indicator.proto - -package com.google.cloud.securitycenter.v1; - -public final class IndicatorProto { - private IndicatorProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Indicator_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Indicator_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n.google/cloud/securitycenter/v1/indicat" - + "or.proto\022\036google.cloud.securitycenter.v1" - + "\"2\n\tIndicator\022\024\n\014ip_addresses\030\001 \003(\t\022\017\n\007d" - + "omains\030\002 \003(\tB\352\001\n\"com.google.cloud.securi" - + "tycenter.v1B\016IndicatorProtoP\001ZLgoogle.go" - + "lang.org/genproto/googleapis/cloud/secur" - + "itycenter/v1;securitycenter\252\002\036Google.Clo" - + "ud.SecurityCenter.V1\312\002\036Google\\Cloud\\Secu" - + "rityCenter\\V1\352\002!Google::Cloud::SecurityC" - + "enter::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_securitycenter_v1_Indicator_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Indicator_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Indicator_descriptor, - new java.lang.String[] { - "IpAddresses", "Domains", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackProto.java deleted file mode 100644 index 995687f5c..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackProto.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/mitre_attack.proto - -package com.google.cloud.securitycenter.v1; - -public final class MitreAttackProto { - private MitreAttackProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_MitreAttack_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/securitycenter/v1/mitre_a" - + "ttack.proto\022\036google.cloud.securitycenter" - + ".v1\"\355\013\n\013MitreAttack\022J\n\016primary_tactic\030\001 " - + "\001(\01622.google.cloud.securitycenter.v1.Mit" - + "reAttack.Tactic\022Q\n\022primary_techniques\030\002 " - + "\003(\01625.google.cloud.securitycenter.v1.Mit" - + "reAttack.Technique\022N\n\022additional_tactics" - + "\030\003 \003(\01622.google.cloud.securitycenter.v1." - + "MitreAttack.Tactic\022T\n\025additional_techniq" - + "ues\030\004 \003(\01625.google.cloud.securitycenter." - + "v1.MitreAttack.Technique\022\017\n\007version\030\005 \001(" - + "\t\"\264\002\n\006Tactic\022\026\n\022TACTIC_UNSPECIFIED\020\000\022\022\n\016" - + "RECONNAISSANCE\020\001\022\030\n\024RESOURCE_DEVELOPMENT" - + "\020\002\022\022\n\016INITIAL_ACCESS\020\005\022\r\n\tEXECUTION\020\003\022\017\n" - + "\013PERSISTENCE\020\006\022\030\n\024PRIVILEGE_ESCALATION\020\010" - + "\022\023\n\017DEFENSE_EVASION\020\007\022\025\n\021CREDENTIAL_ACCE" - + "SS\020\t\022\r\n\tDISCOVERY\020\n\022\024\n\020LATERAL_MOVEMENT\020" - + "\013\022\016\n\nCOLLECTION\020\014\022\027\n\023COMMAND_AND_CONTROL" - + "\020\004\022\020\n\014EXFILTRATION\020\r\022\n\n\006IMPACT\020\016\"\320\006\n\tTec" - + "hnique\022\031\n\025TECHNIQUE_UNSPECIFIED\020\000\022\023\n\017ACT" - + "IVE_SCANNING\020\001\022\026\n\022SCANNING_IP_BLOCKS\020\002\022\031" - + "\n\025INGRESS_TOOL_TRANSFER\020\003\022\016\n\nNATIVE_API\020" - + "\004\022\022\n\016SHARED_MODULES\020\005\022%\n!COMMAND_AND_SCR" - + "IPTING_INTERPRETER\020\006\022\016\n\nUNIX_SHELL\020\007\022\026\n\022" - + "RESOURCE_HIJACKING\020\010\022\t\n\005PROXY\020\t\022\022\n\016EXTER" - + "NAL_PROXY\020\n\022\023\n\017MULTI_HOP_PROXY\020\013\022\026\n\022DYNA" - + "MIC_RESOLUTION\020\014\022\031\n\025UNSECURED_CREDENTIAL" - + "S\020\r\022\022\n\016VALID_ACCOUNTS\020\016\022\022\n\016LOCAL_ACCOUNT" - + "S\020\017\022\022\n\016CLOUD_ACCOUNTS\020\020\022\035\n\031NETWORK_DENIA" - + "L_OF_SERVICE\020\021\022\037\n\033PERMISSION_GROUPS_DISC" - + "OVERY\020\022\022\020\n\014CLOUD_GROUPS\020\023\022!\n\035EXFILTRATIO" - + "N_OVER_WEB_SERVICE\020\024\022!\n\035EXFILTRATION_TO_" - + "CLOUD_STORAGE\020\025\022\030\n\024ACCOUNT_MANIPULATION\020" - + "\026\022\027\n\023SSH_AUTHORIZED_KEYS\020\027\022#\n\037CREATE_OR_" - + "MODIFY_SYSTEM_PROCESS\020\030\022\034\n\030STEAL_WEB_SES" - + "SION_COOKIE\020\031\022\'\n#MODIFY_CLOUD_COMPUTE_IN" - + "FRASTRUCTURE\020\032\022%\n!EXPLOIT_PUBLIC_FACING_" - + "APPLICATION\020\033\022!\n\035MODIFY_AUTHENTICATION_P" - + "ROCESS\020\034\022\024\n\020DATA_DESTRUCTION\020\035\022\036\n\032DOMAIN" - + "_POLICY_MODIFICATION\020\036\022\023\n\017IMPAIR_DEFENSE" - + "S\020\037B\354\001\n\"com.google.cloud.securitycenter." - + "v1B\020MitreAttackProtoP\001ZLgoogle.golang.or" - + "g/genproto/googleapis/cloud/securitycent" - + "er/v1;securitycenter\252\002\036Google.Cloud.Secu" - + "rityCenter.V1\312\002\036Google\\Cloud\\SecurityCen" - + "ter\\V1\352\002!Google::Cloud::SecurityCenter::" - + "V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_MitreAttack_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor, - new java.lang.String[] { - "PrimaryTactic", - "PrimaryTechniques", - "AdditionalTactics", - "AdditionalTechniques", - "Version", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigProto.java deleted file mode 100644 index b6b1cd231..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigProto.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/mute_config.proto - -package com.google.cloud.securitycenter.v1; - -public final class MuteConfigProto { - private MuteConfigProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_MuteConfig_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/securitycenter/v1/mute_co" - + "nfig.proto\022\036google.cloud.securitycenter." - + "v1\032\037google/api/field_behavior.proto\032\031goo" - + "gle/api/resource.proto\032\037google/protobuf/" - + "timestamp.proto\"\256\003\n\nMuteConfig\022\014\n\004name\030\001" - + " \001(\t\022\030\n\014display_name\030\002 \001(\tB\002\030\001\022\023\n\013descri" - + "ption\030\003 \001(\t\022\023\n\006filter\030\004 \001(\tB\003\340A\002\0224\n\013crea" - + "te_time\030\005 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\022\037\n\022most_recent_edit" - + "or\030\007 \001(\tB\003\340A\003:\300\001\352A\274\001\n(securitycenter.goo" - + "gleapis.com/MuteConfig\0226organizations/{o" - + "rganization}/muteConfigs/{mute_config}\022*" - + "folders/{folder}/muteConfigs/{mute_confi" - + "g}\022,projects/{project}/muteConfigs/{mute" - + "_config}B\353\001\n\"com.google.cloud.securityce" - + "nter.v1B\017MuteConfigProtoP\001ZLgoogle.golan" - + "g.org/genproto/googleapis/cloud/security" - + "center/v1;securitycenter\252\002\036Google.Cloud." - + "SecurityCenter.V1\312\002\036Google\\Cloud\\Securit" - + "yCenter\\V1\352\002!Google::Cloud::SecurityCent" - + "er::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_MuteConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Description", - "Filter", - "CreateTime", - "UpdateTime", - "MostRecentEditor", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigProto.java deleted file mode 100644 index 935592800..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigProto.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/notification_config.proto - -package com.google.cloud.securitycenter.v1; - -public final class NotificationConfigProto { - private NotificationConfigProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_NotificationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/securitycenter/v1/notific" - + "ation_config.proto\022\036google.cloud.securit" - + "ycenter.v1\032\037google/api/field_behavior.pr" - + "oto\032\031google/api/resource.proto\"\240\003\n\022Notif" - + "icationConfig\022\014\n\004name\030\001 \001(\t\022\023\n\013descripti" - + "on\030\002 \001(\t\0226\n\014pubsub_topic\030\003 \001(\tB \372A\035\n\033pub" - + "sub.googleapis.com/Topic\022\034\n\017service_acco" - + "unt\030\004 \001(\tB\003\340A\003\022^\n\020streaming_config\030\005 \001(\013" - + "2B.google.cloud.securitycenter.v1.Notifi" - + "cationConfig.StreamingConfigH\000\032!\n\017Stream" - + "ingConfig\022\016\n\006filter\030\001 \001(\t:}\352Az\n0security" - + "center.googleapis.com/NotificationConfig" - + "\022Forganizations/{organization}/notificat" - + "ionConfigs/{notification_config}B\017\n\rnoti" - + "fy_configB\266\002\n\"com.google.cloud.securityc" - + "enter.v1B\027NotificationConfigProtoP\001ZLgoo" - + "gle.golang.org/genproto/googleapis/cloud" - + "/securitycenter/v1;securitycenter\252\002\036Goog" - + "le.Cloud.SecurityCenter.V1\312\002\036Google\\Clou" - + "d\\SecurityCenter\\V1\352\002!Google::Cloud::Sec" - + "urityCenter::V1\352A@\n\033pubsub.googleapis.co" - + "m/Topic\022!projects/{project}/topics/{topi" - + "c}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_NotificationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor, - new java.lang.String[] { - "Name", - "Description", - "PubsubTopic", - "ServiceAccount", - "StreamingConfig", - "NotifyConfig", - }); - internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor = - internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor, - new java.lang.String[] { - "Filter", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java deleted file mode 100644 index 336a1568c..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/notification_message.proto - -package com.google.cloud.securitycenter.v1; - -public final class NotificationMessageProto { - private NotificationMessageProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_NotificationMessage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/securitycenter/v1/notific" - + "ation_message.proto\022\036google.cloud.securi" - + "tycenter.v1\032,google/cloud/securitycenter" - + "/v1/finding.proto\032-google/cloud/security" - + "center/v1/resource.proto\"\270\001\n\023Notificatio" - + "nMessage\022 \n\030notification_config_name\030\001 \001" - + "(\t\022:\n\007finding\030\002 \001(\0132\'.google.cloud.secur" - + "itycenter.v1.FindingH\000\022:\n\010resource\030\003 \001(\013" - + "2(.google.cloud.securitycenter.v1.Resour" - + "ceB\007\n\005eventB\364\001\n\"com.google.cloud.securit" - + "ycenter.v1B\030NotificationMessageProtoP\001ZL" - + "google.golang.org/genproto/googleapis/cl" - + "oud/securitycenter/v1;securitycenter\252\002\036G" - + "oogle.Cloud.SecurityCenter.V1\312\002\036Google\\C" - + "loud\\SecurityCenter\\V1\352\002!Google::Cloud::" - + "SecurityCenter::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_NotificationMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor, - new java.lang.String[] { - "NotificationConfigName", "Finding", "Resource", "Event", - }); - com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java deleted file mode 100644 index 7711f1bab..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/organization_settings.proto - -package com.google.cloud.securitycenter.v1; - -public final class OrganizationSettingsOuterClass { - private OrganizationSettingsOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n:google/cloud/securitycenter/v1/organiz" - + "ation_settings.proto\022\036google.cloud.secur" - + "itycenter.v1\032\031google/api/resource.proto\"" - + "\236\004\n\024OrganizationSettings\022\014\n\004name\030\001 \001(\t\022\036" - + "\n\026enable_asset_discovery\030\002 \001(\010\022i\n\026asset_" - + "discovery_config\030\003 \001(\0132I.google.cloud.se" - + "curitycenter.v1.OrganizationSettings.Ass" - + "etDiscoveryConfig\032\200\002\n\024AssetDiscoveryConf" - + "ig\022\023\n\013project_ids\030\001 \003(\t\022o\n\016inclusion_mod" - + "e\030\002 \001(\0162W.google.cloud.securitycenter.v1" - + ".OrganizationSettings.AssetDiscoveryConf" - + "ig.InclusionMode\022\022\n\nfolder_ids\030\003 \003(\t\"N\n\r" - + "InclusionMode\022\036\n\032INCLUSION_MODE_UNSPECIF" - + "IED\020\000\022\020\n\014INCLUDE_ONLY\020\001\022\013\n\007EXCLUDE\020\002:j\352A" - + "g\n2securitycenter.googleapis.com/Organiz" - + "ationSettings\0221organizations/{organizati" - + "on}/organizationSettingsB\332\001\n\"com.google." - + "cloud.securitycenter.v1P\001ZLgoogle.golang" - + ".org/genproto/googleapis/cloud/securityc" - + "enter/v1;securitycenter\252\002\036Google.Cloud.S" - + "ecurityCenter.V1\312\002\036Google\\Cloud\\Security" - + "Center\\V1\352\002!Google::Cloud::SecurityCente" - + "r::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor, - new java.lang.String[] { - "Name", "EnableAssetDiscovery", "AssetDiscoveryConfig", - }); - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor = - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor, - new java.lang.String[] { - "ProjectIds", "InclusionMode", "FolderIds", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessProto.java deleted file mode 100644 index 342b225b8..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessProto.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/process.proto - -package com.google.cloud.securitycenter.v1; - -public final class ProcessProto { - private ProcessProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Process_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Process_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/securitycenter/v1/process" - + ".proto\022\036google.cloud.securitycenter.v1\032)" - + "google/cloud/securitycenter/v1/file.prot" - + "o\"\347\002\n\007Process\0224\n\006binary\030\003 \001(\0132$.google.c" - + "loud.securitycenter.v1.File\0227\n\tlibraries" - + "\030\004 \003(\0132$.google.cloud.securitycenter.v1." - + "File\0224\n\006script\030\005 \001(\0132$.google.cloud.secu" - + "ritycenter.v1.File\022\014\n\004args\030\006 \003(\t\022\033\n\023argu" - + "ments_truncated\030\007 \001(\010\022J\n\renv_variables\030\010" - + " \003(\01323.google.cloud.securitycenter.v1.En" - + "vironmentVariable\022\037\n\027env_variables_trunc" - + "ated\030\t \001(\010\022\013\n\003pid\030\n \001(\003\022\022\n\nparent_pid\030\013 " - + "\001(\003\"0\n\023EnvironmentVariable\022\014\n\004name\030\001 \001(\t" - + "\022\013\n\003val\030\002 \001(\tB\350\001\n\"com.google.cloud.secur" - + "itycenter.v1B\014ProcessProtoP\001ZLgoogle.gol" - + "ang.org/genproto/googleapis/cloud/securi" - + "tycenter/v1;securitycenter\252\002\036Google.Clou" - + "d.SecurityCenter.V1\312\002\036Google\\Cloud\\Secur" - + "ityCenter\\V1\352\002!Google::Cloud::SecurityCe" - + "nter::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.securitycenter.v1.FileProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_Process_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Process_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Process_descriptor, - new java.lang.String[] { - "Binary", - "Libraries", - "Script", - "Args", - "ArgumentsTruncated", - "EnvVariables", - "EnvVariablesTruncated", - "Pid", - "ParentPid", - }); - internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor, - new java.lang.String[] { - "Name", "Val", - }); - com.google.cloud.securitycenter.v1.FileProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java deleted file mode 100644 index f6af37990..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/resource.proto - -package com.google.cloud.securitycenter.v1; - -public final class ResourceProto { - private ResourceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Resource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n-google/cloud/securitycenter/v1/resourc" - + "e.proto\022\036google.cloud.securitycenter.v1\032" - + "\037google/api/field_behavior.proto\032+google" - + "/cloud/securitycenter/v1/folder.proto\"\326\001" - + "\n\010Resource\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name" - + "\030\010 \001(\t\022\014\n\004type\030\006 \001(\t\022\017\n\007project\030\002 \001(\t\022\034\n" - + "\024project_display_name\030\003 \001(\t\022\016\n\006parent\030\004 " - + "\001(\t\022\033\n\023parent_display_name\030\005 \001(\t\022<\n\007fold" - + "ers\030\007 \003(\0132&.google.cloud.securitycenter." - + "v1.FolderB\003\340A\003B\351\001\n\"com.google.cloud.secu" - + "ritycenter.v1B\rResourceProtoP\001ZLgoogle.g" - + "olang.org/genproto/googleapis/cloud/secu" - + "ritycenter/v1;securitycenter\252\002\036Google.Cl" - + "oud.SecurityCenter.V1\312\002\036Google\\Cloud\\Sec" - + "urityCenter\\V1\352\002!Google::Cloud::Security" - + "Center::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_Resource_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Resource_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Type", - "Project", - "ProjectDisplayName", - "Parent", - "ParentDisplayName", - "Folders", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java deleted file mode 100644 index f1770c044..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1; - -public interface RunAssetDiscoveryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the organization to run asset discovery for. Its format is
-   * "organizations/[organization_id]".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. Name of the organization to run asset discovery for. Its format is
-   * "organizations/[organization_id]".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java deleted file mode 100644 index ed78dc490..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/run_asset_discovery_response.proto - -package com.google.cloud.securitycenter.v1; - -public final class RunAssetDiscoveryResponseOuterClass { - private RunAssetDiscoveryResponseOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nAgoogle/cloud/securitycenter/v1/run_ass" - + "et_discovery_response.proto\022\036google.clou" - + "d.securitycenter.v1\032\036google/protobuf/dur" - + "ation.proto\"\347\001\n\031RunAssetDiscoveryRespons" - + "e\022N\n\005state\030\001 \001(\0162?.google.cloud.security" - + "center.v1.RunAssetDiscoveryResponse.Stat" - + "e\022+\n\010duration\030\002 \001(\0132\031.google.protobuf.Du" - + "ration\"M\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r" - + "\n\tCOMPLETED\020\001\022\016\n\nSUPERSEDED\020\002\022\016\n\nTERMINA" - + "TED\020\003B\332\001\n\"com.google.cloud.securitycente" - + "r.v1P\001ZLgoogle.golang.org/genproto/googl" - + "eapis/cloud/securitycenter/v1;securityce" - + "nter\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036" - + "Google\\Cloud\\SecurityCenter\\V1\352\002!Google:" - + ":Cloud::SecurityCenter::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor, - new java.lang.String[] { - "State", "Duration", - }); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java deleted file mode 100644 index 5a5a39061..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/security_marks.proto - -package com.google.cloud.securitycenter.v1; - -public final class SecurityMarksOuterClass { - private SecurityMarksOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/securitycenter/v1/securit" - + "y_marks.proto\022\036google.cloud.securitycent" - + "er.v1\032\031google/api/resource.proto\"\325\004\n\rSec" - + "urityMarks\022\014\n\004name\030\001 \001(\t\022G\n\005marks\030\002 \003(\0132" - + "8.google.cloud.securitycenter.v1.Securit" - + "yMarks.MarksEntry\022\026\n\016canonical_name\030\003 \001(" - + "\t\032,\n\nMarksEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001:\246\003\352A\242\003\n+securitycenter.googleapi" - + "s.com/SecurityMarks\0229organizations/{orga" - + "nization}/assets/{asset}/securityMarks\022N" - + "organizations/{organization}/sources/{so" - + "urce}/findings/{finding}/securityMarks\022-" - + "folders/{folder}/assets/{asset}/security" - + "Marks\022/projects/{project}/assets/{asset}" - + "/securityMarks\022Bfolders/{folder}/sources" - + "/{source}/findings/{finding}/securityMar" - + "ks\022Dprojects/{project}/sources/{source}/" - + "findings/{finding}/securityMarksB\332\001\n\"com" - + ".google.cloud.securitycenter.v1P\001ZLgoogl" - + "e.golang.org/genproto/googleapis/cloud/s" - + "ecuritycenter/v1;securitycenter\252\002\036Google" - + ".Cloud.SecurityCenter.V1\312\002\036Google\\Cloud\\" - + "SecurityCenter\\V1\352\002!Google::Cloud::Secur" - + "ityCenter::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor, - new java.lang.String[] { - "Name", "Marks", "CanonicalName", - }); - internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_descriptor = - internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java deleted file mode 100644 index 7f4666e68..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java +++ /dev/null @@ -1,1174 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1; - -public final class SecuritycenterService { - private SecuritycenterService() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_SetMuteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n;google/cloud/securitycenter/v1/securit" - + "ycenter_service.proto\022\036google.cloud.secu" - + "ritycenter.v1\032Agoogle/cloud/securitycent" - + "er/v1/run_asset_discovery_response.proto" - + "\032\034google/api/annotations.proto\032\027google/a" - + "pi/client.proto\032\037google/api/field_behavi" - + "or.proto\032\031google/api/resource.proto\032*goo" - + "gle/cloud/securitycenter/v1/asset.proto\032" - + "4google/cloud/securitycenter/v1/bigquery" - + "_export.proto\0324google/cloud/securitycent" - + "er/v1/external_system.proto\032,google/clou" - + "d/securitycenter/v1/finding.proto\032+googl" - + "e/cloud/securitycenter/v1/folder.proto\0320" - + "google/cloud/securitycenter/v1/mute_conf" - + "ig.proto\0328google/cloud/securitycenter/v1" - + "/notification_config.proto\032:google/cloud" - + "/securitycenter/v1/organization_settings" - + ".proto\0323google/cloud/securitycenter/v1/s" - + "ecurity_marks.proto\032+google/cloud/securi" - + "tycenter/v1/source.proto\032\036google/iam/v1/" - + "iam_policy.proto\032\032google/iam/v1/policy.p" - + "roto\032#google/longrunning/operations.prot" - + "o\032\036google/protobuf/duration.proto\032\033googl" - + "e/protobuf/empty.proto\032 google/protobuf/" - + "field_mask.proto\032\034google/protobuf/struct" - + ".proto\032\037google/protobuf/timestamp.proto\"" - + "a\n\027BulkMuteFindingsRequest\022\031\n\006parent\030\001 \001" - + "(\tB\t\340A\002\372A\003\n\001*\022\016\n\006filter\030\002 \001(\t\022\033\n\017mute_an" - + "notation\030\003 \001(\tB\002\030\001\"\032\n\030BulkMuteFindingsRe" - + "sponse\"\254\001\n\024CreateFindingRequest\022<\n\006paren" - + "t\030\001 \001(\tB,\340A\002\372A&\n$securitycenter.googleap" - + "is.com/Source\022\027\n\nfinding_id\030\002 \001(\tB\003\340A\002\022=" - + "\n\007finding\030\003 \001(\0132\'.google.cloud.securityc" - + "enter.v1.FindingB\003\340A\002\"\276\001\n\027CreateMuteConf" - + "igRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(secur" - + "itycenter.googleapis.com/MuteConfig\022D\n\013m" - + "ute_config\030\002 \001(\0132*.google.cloud.security" - + "center.v1.MuteConfigB\003\340A\002\022\033\n\016mute_config" - + "_id\030\003 \001(\tB\003\340A\002\"\331\001\n\037CreateNotificationCon" - + "figRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0clou" - + "dresourcemanager.googleapis.com/Organiza" - + "tion\022\026\n\tconfig_id\030\002 \001(\tB\003\340A\002\022T\n\023notifica" - + "tion_config\030\003 \001(\01322.google.cloud.securit" - + "ycenter.v1.NotificationConfigB\003\340A\002\"\234\001\n\023C" - + "reateSourceRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372" - + "A2\n0cloudresourcemanager.googleapis.com/" - + "Organization\022;\n\006source\030\002 \001(\0132&.google.cl" - + "oud.securitycenter.v1.SourceB\003\340A\002\"Y\n\027Del" - + "eteMuteConfigRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372" - + "A*\n(securitycenter.googleapis.com/MuteCo" - + "nfig\"i\n\037DeleteNotificationConfigRequest\022" - + "F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0securitycenter.go" - + "ogleapis.com/NotificationConfig\"^\n\030GetBi" - + "gQueryExportRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A" - + ".\n,securitycenter.googleapis.com/BigQuer" - + "yExport\"V\n\024GetMuteConfigRequest\022>\n\004name\030" - + "\001 \001(\tB0\340A\002\372A*\n(securitycenter.googleapis" - + ".com/MuteConfig\"f\n\034GetNotificationConfig" - + "Request\022F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0securityc" - + "enter.googleapis.com/NotificationConfig\"" - + "j\n\036GetOrganizationSettingsRequest\022H\n\004nam" - + "e\030\001 \001(\tB:\340A\002\372A4\n2securitycenter.googleap" - + "is.com/OrganizationSettings\"N\n\020GetSource" - + "Request\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$securityc" - + "enter.googleapis.com/Source\"\203\002\n\022GroupAss" - + "etsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#secu" - + "ritycenter.googleapis.com/Asset\022\016\n\006filte" - + "r\030\002 \001(\t\022\025\n\010group_by\030\003 \001(\tB\003\340A\002\0223\n\020compar" - + "e_duration\030\004 \001(\0132\031.google.protobuf.Durat" - + "ion\022-\n\tread_time\030\005 \001(\0132\032.google.protobuf" - + ".Timestamp\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpage_s" - + "ize\030\010 \001(\005\"\270\001\n\023GroupAssetsResponse\022E\n\020gro" - + "up_by_results\030\001 \003(\0132+.google.cloud.secur" - + "itycenter.v1.GroupResult\022-\n\tread_time\030\002 " - + "\001(\0132\032.google.protobuf.Timestamp\022\027\n\017next_" - + "page_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\206\002\n" - + "\024GroupFindingsRequest\022<\n\006parent\030\001 \001(\tB,\340" - + "A\002\372A&\n$securitycenter.googleapis.com/Sou" - + "rce\022\016\n\006filter\030\002 \001(\t\022\025\n\010group_by\030\003 \001(\tB\003\340" - + "A\002\022-\n\tread_time\030\004 \001(\0132\032.google.protobuf." - + "Timestamp\0223\n\020compare_duration\030\005 \001(\0132\031.go" - + "ogle.protobuf.Duration\022\022\n\npage_token\030\007 \001" - + "(\t\022\021\n\tpage_size\030\010 \001(\005\"\272\001\n\025GroupFindingsR" - + "esponse\022E\n\020group_by_results\030\001 \003(\0132+.goog" - + "le.cloud.securitycenter.v1.GroupResult\022-" - + "\n\tread_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_" - + "size\030\004 \001(\005\"\270\001\n\013GroupResult\022O\n\nproperties" - + "\030\001 \003(\0132;.google.cloud.securitycenter.v1." - + "GroupResult.PropertiesEntry\022\r\n\005count\030\002 \001" - + "(\003\032I\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005va" - + "lue\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\"\201\001" - + "\n\026ListMuteConfigsRequest\022@\n\006parent\030\001 \001(\t" - + "B0\340A\002\372A*\022(securitycenter.googleapis.com/" - + "MuteConfig\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\"t\n\027ListMuteConfigsResponse\022@\n\014" - + "mute_configs\030\001 \003(\0132*.google.cloud.securi" - + "tycenter.v1.MuteConfig\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"\221\001\n\036ListNotificationConfigsReque" - + "st\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0cloudresourc" - + "emanager.googleapis.com/Organization\022\022\n\n" - + "page_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"\214\001\n\037" - + "ListNotificationConfigsResponse\022P\n\024notif" - + "ication_configs\030\001 \003(\01322.google.cloud.sec" - + "uritycenter.v1.NotificationConfig\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\"y\n\022ListSourcesRequest" - + "\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$securitycenter" - + ".googleapis.com/Source\022\022\n\npage_token\030\002 \001" - + "(\t\022\021\n\tpage_size\030\007 \001(\005\"g\n\023ListSourcesResp" - + "onse\0227\n\007sources\030\001 \003(\0132&.google.cloud.sec" - + "uritycenter.v1.Source\022\027\n\017next_page_token" - + "\030\002 \001(\t\"\255\002\n\021ListAssetsRequest\022;\n\006parent\030\001" - + " \001(\tB+\340A\002\372A%\022#securitycenter.googleapis." - + "com/Asset\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003 " - + "\001(\t\022-\n\tread_time\030\004 \001(\0132\032.google.protobuf" - + ".Timestamp\0223\n\020compare_duration\030\005 \001(\0132\031.g" - + "oogle.protobuf.Duration\022.\n\nfield_mask\030\007 " - + "\001(\0132\032.google.protobuf.FieldMask\022\022\n\npage_" - + "token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"\303\003\n\022ListA" - + "ssetsResponse\022`\n\023list_assets_results\030\001 \003" - + "(\0132C.google.cloud.securitycenter.v1.List" - + "AssetsResponse.ListAssetsResult\022-\n\tread_" - + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\027" - + "\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 " - + "\001(\005\032\356\001\n\020ListAssetsResult\0224\n\005asset\030\001 \001(\0132" - + "%.google.cloud.securitycenter.v1.Asset\022e" - + "\n\014state_change\030\002 \001(\0162O.google.cloud.secu" - + "ritycenter.v1.ListAssetsResponse.ListAss" - + "etsResult.StateChange\"=\n\013StateChange\022\n\n\006" - + "UNUSED\020\000\022\t\n\005ADDED\020\001\022\013\n\007REMOVED\020\002\022\n\n\006ACTI" - + "VE\020\003\"\260\002\n\023ListFindingsRequest\022<\n\006parent\030\001" - + " \001(\tB,\340A\002\372A&\n$securitycenter.googleapis." - + "com/Source\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003" - + " \001(\t\022-\n\tread_time\030\004 \001(\0132\032.google.protobu" - + "f.Timestamp\0223\n\020compare_duration\030\005 \001(\0132\031." - + "google.protobuf.Duration\022.\n\nfield_mask\030\007" - + " \001(\0132\032.google.protobuf.FieldMask\022\022\n\npage" - + "_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"\254\006\n\024List" - + "FindingsResponse\022f\n\025list_findings_result" - + "s\030\001 \003(\0132G.google.cloud.securitycenter.v1" - + ".ListFindingsResponse.ListFindingsResult" - + "\022-\n\tread_time\030\002 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntota" - + "l_size\030\004 \001(\005\032\317\004\n\022ListFindingsResult\0228\n\007f" - + "inding\030\001 \001(\0132\'.google.cloud.securitycent" - + "er.v1.Finding\022i\n\014state_change\030\002 \001(\0162S.go" - + "ogle.cloud.securitycenter.v1.ListFinding" - + "sResponse.ListFindingsResult.StateChange" - + "\022g\n\010resource\030\003 \001(\0132P.google.cloud.securi" - + "tycenter.v1.ListFindingsResponse.ListFin" - + "dingsResult.ResourceB\003\340A\003\032\333\001\n\010Resource\022\014" - + "\n\004name\030\001 \001(\t\022\024\n\014display_name\030\010 \001(\t\022\014\n\004ty" - + "pe\030\006 \001(\t\022\024\n\014project_name\030\002 \001(\t\022\034\n\024projec" - + "t_display_name\030\003 \001(\t\022\023\n\013parent_name\030\004 \001(" - + "\t\022\033\n\023parent_display_name\030\005 \001(\t\0227\n\007folder" - + "s\030\007 \003(\0132&.google.cloud.securitycenter.v1" - + ".Folder\"M\n\013StateChange\022\n\n\006UNUSED\020\000\022\013\n\007CH" - + "ANGED\020\001\022\r\n\tUNCHANGED\020\002\022\t\n\005ADDED\020\003\022\013\n\007REM" - + "OVED\020\004\"\315\001\n\026SetFindingStateRequest\022;\n\004nam" - + "e\030\001 \001(\tB-\340A\002\372A\'\n%securitycenter.googleap" - + "is.com/Finding\022A\n\005state\030\002 \001(\0162-.google.c" - + "loud.securitycenter.v1.Finding.StateB\003\340A" - + "\002\0223\n\nstart_time\030\003 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\002\"\216\001\n\016SetMuteRequest\022;\n\004nam" - + "e\030\001 \001(\tB-\340A\002\372A\'\n%securitycenter.googleap" - + "is.com/Finding\022?\n\004mute\030\002 \001(\0162,.google.cl" - + "oud.securitycenter.v1.Finding.MuteB\003\340A\002\"" - + "d\n\030RunAssetDiscoveryRequest\022H\n\006parent\030\001 " - + "\001(\tB8\340A\002\372A2\n0cloudresourcemanager.google" - + "apis.com/Organization\"\234\001\n\033UpdateExternal" - + "SystemRequest\022L\n\017external_system\030\001 \001(\0132." - + ".google.cloud.securitycenter.v1.External" - + "SystemB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMask\"\206\001\n\024UpdateFindingRe" - + "quest\022=\n\007finding\030\001 \001(\0132\'.google.cloud.se" - + "curitycenter.v1.FindingB\003\340A\002\022/\n\013update_m" - + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\220\001" - + "\n\027UpdateMuteConfigRequest\022D\n\013mute_config" - + "\030\001 \001(\0132*.google.cloud.securitycenter.v1." - + "MuteConfigB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.g" - + "oogle.protobuf.FieldMask\"\250\001\n\037UpdateNotif" - + "icationConfigRequest\022T\n\023notification_con" - + "fig\030\001 \001(\01322.google.cloud.securitycenter." - + "v1.NotificationConfigB\003\340A\002\022/\n\013update_mas" - + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"\256\001\n!" - + "UpdateOrganizationSettingsRequest\022X\n\025org" - + "anization_settings\030\001 \001(\01324.google.cloud." - + "securitycenter.v1.OrganizationSettingsB\003" - + "\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protob" - + "uf.FieldMask\"\203\001\n\023UpdateSourceRequest\022;\n\006" - + "source\030\001 \001(\0132&.google.cloud.securitycent" - + "er.v1.SourceB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032" - + ".google.protobuf.FieldMask\"\311\001\n\032UpdateSec" - + "urityMarksRequest\022J\n\016security_marks\030\001 \001(" - + "\0132-.google.cloud.securitycenter.v1.Secur" - + "ityMarksB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.goo" - + "gle.protobuf.FieldMask\022.\n\nstart_time\030\003 \001" - + "(\0132\032.google.protobuf.Timestamp\"\324\001\n\033Creat" - + "eBigQueryExportRequest\022D\n\006parent\030\001 \001(\tB4" - + "\340A\002\372A.\022,securitycenter.googleapis.com/Bi" - + "gQueryExport\022M\n\020big_query_export\030\002 \001(\0132." - + ".google.cloud.securitycenter.v1.BigQuery" - + "ExportB\003\340A\002\022 \n\023big_query_export_id\030\003 \001(\t" - + "B\003\340A\002\"\235\001\n\033UpdateBigQueryExportRequest\022M\n" - + "\020big_query_export\030\001 \001(\0132..google.cloud.s" - + "ecuritycenter.v1.BigQueryExportB\003\340A\002\022/\n\013" - + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" - + "dMask\"\211\001\n\032ListBigQueryExportsRequest\022D\n\006" - + "parent\030\001 \001(\tB4\340A\002\372A.\022,securitycenter.goo" - + "gleapis.com/BigQueryExport\022\021\n\tpage_size\030" - + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\201\001\n\033ListBigQue" - + "ryExportsResponse\022I\n\021big_query_exports\030\001" - + " \003(\0132..google.cloud.securitycenter.v1.Bi" - + "gQueryExport\022\027\n\017next_page_token\030\002 \001(\t\"a\n" - + "\033DeleteBigQueryExportRequest\022B\n\004name\030\001 \001" - + "(\tB4\340A\002\372A.\n,securitycenter.googleapis.co" - + "m/BigQueryExport2\247O\n\016SecurityCenter\022\342\002\n\020" - + "BulkMuteFindings\0227.google.cloud.security" - + "center.v1.BulkMuteFindingsRequest\032\035.goog" - + "le.longrunning.Operation\"\365\001\202\323\344\223\002\222\001\"./v1/" - + "{parent=organizations/*}/findings:bulkMu" - + "te:\001*Z-\"(/v1/{parent=folders/*}/findings" - + ":bulkMute:\001*Z.\")/v1/{parent=projects/*}/" - + "findings:bulkMute:\001*\332A\006parent\312AP\n7google" - + ".cloud.securitycenter.v1.BulkMuteFinding" - + "sResponse\022\025google.protobuf.Empty\022\261\001\n\014Cre" - + "ateSource\0223.google.cloud.securitycenter." - + "v1.CreateSourceRequest\032&.google.cloud.se" - + "curitycenter.v1.Source\"D\202\323\344\223\002.\"$/v1/{par" - + "ent=organizations/*}/sources:\006source\332A\rp" - + "arent,source\022\314\001\n\rCreateFinding\0224.google." - + "cloud.securitycenter.v1.CreateFindingReq" - + "uest\032\'.google.cloud.securitycenter.v1.Fi" - + "nding\"\\\202\323\344\223\002:\"//v1/{parent=organizations" - + "/*/sources/*}/findings:\007finding\332A\031parent" - + ",finding_id,finding\022\330\002\n\020CreateMuteConfig" - + "\0227.google.cloud.securitycenter.v1.Create" - + "MuteConfigRequest\032*.google.cloud.securit" - + "ycenter.v1.MuteConfig\"\336\001\202\323\344\223\002\236\001\"(/v1/{pa" - + "rent=organizations/*}/muteConfigs:\013mute_" - + "configZ1\"\"/v1/{parent=folders/*}/muteCon" - + "figs:\013mute_configZ2\"#/v1/{parent=project" - + "s/*}/muteConfigs:\013mute_config\332A\022parent,m" - + "ute_config\332A!parent,mute_config,mute_con" - + "fig_id\022\243\002\n\030CreateNotificationConfig\022?.go" - + "ogle.cloud.securitycenter.v1.CreateNotif" - + "icationConfigRequest\0322.google.cloud.secu" - + "ritycenter.v1.NotificationConfig\"\221\001\202\323\344\223\002" - + "G\"0/v1/{parent=organizations/*}/notifica" - + "tionConfigs:\023notification_config\332A$paren" - + "t,config_id,notification_config\332A\032parent" - + ",notification_config\022\352\001\n\020DeleteMuteConfi" - + "g\0227.google.cloud.securitycenter.v1.Delet" - + "eMuteConfigRequest\032\026.google.protobuf.Emp" - + "ty\"\204\001\202\323\344\223\002w*(/v1/{name=organizations/*/m" - + "uteConfigs/*}Z$*\"/v1/{name=folders/*/mut" - + "eConfigs/*}Z%*#/v1/{name=projects/*/mute" - + "Configs/*}\332A\004name\022\264\001\n\030DeleteNotification" - + "Config\022?.google.cloud.securitycenter.v1." - + "DeleteNotificationConfigRequest\032\026.google" - + ".protobuf.Empty\"?\202\323\344\223\0022*0/v1/{name=organ" - + "izations/*/notificationConfigs/*}\332A\004name" - + "\022\221\002\n\021GetBigQueryExport\0228.google.cloud.se" - + "curitycenter.v1.GetBigQueryExportRequest" - + "\032..google.cloud.securitycenter.v1.BigQue" - + "ryExport\"\221\001\202\323\344\223\002\203\001\022,/v1/{name=organizati" - + "ons/*/bigQueryExports/*}Z(\022&/v1/{name=fo" - + "lders/*/bigQueryExports/*}Z)\022\'/v1/{name=" - + "projects/*/bigQueryExports/*}\332A\004name\022\226\001\n" - + "\014GetIamPolicy\022\".google.iam.v1.GetIamPoli" - + "cyRequest\032\025.google.iam.v1.Policy\"K\202\323\344\223\002:" - + "\"5/v1/{resource=organizations/*/sources/" - + "*}:getIamPolicy:\001*\332A\010resource\022\370\001\n\rGetMut" - + "eConfig\0224.google.cloud.securitycenter.v1" - + ".GetMuteConfigRequest\032*.google.cloud.sec" - + "uritycenter.v1.MuteConfig\"\204\001\202\323\344\223\002w\022(/v1/" - + "{name=organizations/*/muteConfigs/*}Z$\022\"" - + "/v1/{name=folders/*/muteConfigs/*}Z%\022#/v" - + "1/{name=projects/*/muteConfigs/*}\332A\004name" - + "\022\312\001\n\025GetNotificationConfig\022<.google.clou" - + "d.securitycenter.v1.GetNotificationConfi" - + "gRequest\0322.google.cloud.securitycenter.v" - + "1.NotificationConfig\"?\202\323\344\223\0022\0220/v1/{name=" - + "organizations/*/notificationConfigs/*}\332A" - + "\004name\022\317\001\n\027GetOrganizationSettings\022>.goog" - + "le.cloud.securitycenter.v1.GetOrganizati" - + "onSettingsRequest\0324.google.cloud.securit" - + "ycenter.v1.OrganizationSettings\">\202\323\344\223\0021\022" - + "//v1/{name=organizations/*/organizationS" - + "ettings}\332A\004name\022\232\001\n\tGetSource\0220.google.c" - + "loud.securitycenter.v1.GetSourceRequest\032" - + "&.google.cloud.securitycenter.v1.Source\"" - + "3\202\323\344\223\002&\022$/v1/{name=organizations/*/sourc" - + "es/*}\332A\004name\022\203\002\n\013GroupAssets\0222.google.cl" - + "oud.securitycenter.v1.GroupAssetsRequest" - + "\0323.google.cloud.securitycenter.v1.GroupA" - + "ssetsResponse\"\212\001\202\323\344\223\002\203\001\")/v1/{parent=org" - + "anizations/*}/assets:group:\001*Z(\"#/v1/{pa" - + "rent=folders/*}/assets:group:\001*Z)\"$/v1/{" - + "parent=projects/*}/assets:group:\001*\022\277\002\n\rG" - + "roupFindings\0224.google.cloud.securitycent" - + "er.v1.GroupFindingsRequest\0325.google.clou" - + "d.securitycenter.v1.GroupFindingsRespons" - + "e\"\300\001\202\323\344\223\002\247\001\"5/v1/{parent=organizations/*" - + "/sources/*}/findings:group:\001*Z4\"//v1/{pa" - + "rent=folders/*/sources/*}/findings:group" - + ":\001*Z5\"0/v1/{parent=projects/*/sources/*}" - + "/findings:group:\001*\332A\017parent,group_by\022\343\001\n" - + "\nListAssets\0221.google.cloud.securitycente" - + "r.v1.ListAssetsRequest\0322.google.cloud.se" - + "curitycenter.v1.ListAssetsResponse\"n\202\323\344\223" - + "\002h\022#/v1/{parent=organizations/*}/assetsZ" - + "\037\022\035/v1/{parent=folders/*}/assetsZ \022\036/v1/" - + "{parent=projects/*}/assets\022\217\002\n\014ListFindi" - + "ngs\0223.google.cloud.securitycenter.v1.Lis" - + "tFindingsRequest\0324.google.cloud.security" - + "center.v1.ListFindingsResponse\"\223\001\202\323\344\223\002\214\001" - + "\022//v1/{parent=organizations/*/sources/*}" - + "/findingsZ+\022)/v1/{parent=folders/*/sourc" - + "es/*}/findingsZ,\022*/v1/{parent=projects/*" - + "/sources/*}/findings\022\213\002\n\017ListMuteConfigs" - + "\0226.google.cloud.securitycenter.v1.ListMu" - + "teConfigsRequest\0327.google.cloud.security" - + "center.v1.ListMuteConfigsResponse\"\206\001\202\323\344\223" - + "\002w\022(/v1/{parent=organizations/*}/muteCon" - + "figsZ$\022\"/v1/{parent=folders/*}/muteConfi" - + "gsZ%\022#/v1/{parent=projects/*}/muteConfig" - + "s\332A\006parent\022\335\001\n\027ListNotificationConfigs\022>" - + ".google.cloud.securitycenter.v1.ListNoti" - + "ficationConfigsRequest\032?.google.cloud.se" - + "curitycenter.v1.ListNotificationConfigsR" - + "esponse\"A\202\323\344\223\0022\0220/v1/{parent=organizatio" - + "ns/*}/notificationConfigs\332A\006parent\022\362\001\n\013L" - + "istSources\0222.google.cloud.securitycenter" - + ".v1.ListSourcesRequest\0323.google.cloud.se" - + "curitycenter.v1.ListSourcesResponse\"z\202\323\344" - + "\223\002k\022$/v1/{parent=organizations/*}/source" - + "sZ \022\036/v1/{parent=folders/*}/sourcesZ!\022\037/" - + "v1/{parent=projects/*}/sources\332A\006parent\022" - + "\207\002\n\021RunAssetDiscovery\0228.google.cloud.sec" - + "uritycenter.v1.RunAssetDiscoveryRequest\032" - + "\035.google.longrunning.Operation\"\230\001\202\323\344\223\0025\"" - + "0/v1/{parent=organizations/*}/assets:run" - + "Discovery:\001*\332A\006parent\312AQ\n8google.cloud.s" - + "ecuritycenter.v1.RunAssetDiscoveryRespon" - + "se\022\025google.protobuf.Empty\022\304\002\n\017SetFinding" - + "State\0226.google.cloud.securitycenter.v1.S" - + "etFindingStateRequest\032\'.google.cloud.sec" - + "uritycenter.v1.Finding\"\317\001\202\323\344\223\002\260\001\"8/v1/{n" - + "ame=organizations/*/sources/*/findings/*" - + "}:setState:\001*Z7\"2/v1/{name=folders/*/sou" - + "rces/*/findings/*}:setState:\001*Z8\"3/v1/{n" - + "ame=projects/*/sources/*/findings/*}:set" - + "State:\001*\332A\025name,state,start_time\022\245\002\n\007Set" - + "Mute\022..google.cloud.securitycenter.v1.Se" - + "tMuteRequest\032\'.google.cloud.securitycent" - + "er.v1.Finding\"\300\001\202\323\344\223\002\255\001\"7/v1/{name=organ" - + "izations/*/sources/*/findings/*}:setMute" - + ":\001*Z6\"1/v1/{name=folders/*/sources/*/fin" - + "dings/*}:setMute:\001*Z7\"2/v1/{name=project" - + "s/*/sources/*/findings/*}:setMute:\001*\332A\tn" - + "ame,mute\022\235\001\n\014SetIamPolicy\022\".google.iam.v" - + "1.SetIamPolicyRequest\032\025.google.iam.v1.Po" - + "licy\"R\202\323\344\223\002:\"5/v1/{resource=organization" - + "s/*/sources/*}:setIamPolicy:\001*\332A\017resourc" - + "e,policy\022\310\001\n\022TestIamPermissions\022(.google" - + ".iam.v1.TestIamPermissionsRequest\032).goog" - + "le.iam.v1.TestIamPermissionsResponse\"]\202\323" - + "\344\223\002@\";/v1/{resource=organizations/*/sour" - + "ces/*}:testIamPermissions:\001*\332A\024resource," - + "permissions\022\320\003\n\024UpdateExternalSystem\022;.g" - + "oogle.cloud.securitycenter.v1.UpdateExte" - + "rnalSystemRequest\032..google.cloud.securit" - + "ycenter.v1.ExternalSystem\"\312\002\202\323\344\223\002\245\0022Q/v1" - + "/{external_system.name=organizations/*/s" - + "ources/*/findings/*/externalSystems/*}:\017" - + "external_systemZ^2K/v1/{external_system." - + "name=folders/*/sources/*/findings/*/exte" - + "rnalSystems/*}:\017external_systemZ_2L/v1/{" - + "external_system.name=projects/*/sources/" - + "*/findings/*/externalSystems/*}:\017externa" - + "l_system\332A\033external_system,update_mask\022\301" - + "\002\n\rUpdateFinding\0224.google.cloud.security" - + "center.v1.UpdateFindingRequest\032\'.google." - + "cloud.securitycenter.v1.Finding\"\320\001\202\323\344\223\002\277" - + "\00127/v1/{finding.name=organizations/*/sou" - + "rces/*/findings/*}:\007findingZ<21/v1/{find" - + "ing.name=folders/*/sources/*/findings/*}" - + ":\007findingZ=22/v1/{finding.name=projects/" - + "*/sources/*/findings/*}:\007finding\332A\007findi" - + "ng\022\335\002\n\020UpdateMuteConfig\0227.google.cloud.s" - + "ecuritycenter.v1.UpdateMuteConfigRequest" - + "\032*.google.cloud.securitycenter.v1.MuteCo" - + "nfig\"\343\001\202\323\344\223\002\302\00124/v1/{mute_config.name=or" - + "ganizations/*/muteConfigs/*}:\013mute_confi" - + "gZ=2./v1/{mute_config.name=folders/*/mut" - + "eConfigs/*}:\013mute_configZ>2//v1/{mute_co" - + "nfig.name=projects/*/muteConfigs/*}:\013mut" - + "e_config\332A\027mute_config,update_mask\022\253\002\n\030U" - + "pdateNotificationConfig\022?.google.cloud.s", - "ecuritycenter.v1.UpdateNotificationConfi" - + "gRequest\0322.google.cloud.securitycenter.v" - + "1.NotificationConfig\"\231\001\202\323\344\223\002[2D/v1/{noti" - + "fication_config.name=organizations/*/not" - + "ificationConfigs/*}:\023notification_config" - + "\332A\023notification_config\332A\037notification_co" - + "nfig,update_mask\022\223\002\n\032UpdateOrganizationS" - + "ettings\022A.google.cloud.securitycenter.v1" - + ".UpdateOrganizationSettingsRequest\0324.goo" - + "gle.cloud.securitycenter.v1.Organization" - + "Settings\"|\202\323\344\223\002^2E/v1/{organization_sett" - + "ings.name=organizations/*/organizationSe" - + "ttings}:\025organization_settings\332A\025organiz" - + "ation_settings\022\261\001\n\014UpdateSource\0223.google" - + ".cloud.securitycenter.v1.UpdateSourceReq" - + "uest\032&.google.cloud.securitycenter.v1.So" - + "urce\"D\202\323\344\223\00252+/v1/{source.name=organizat" - + "ions/*/sources/*}:\006source\332A\006source\022\237\005\n\023U" - + "pdateSecurityMarks\022:.google.cloud.securi" - + "tycenter.v1.UpdateSecurityMarksRequest\032-" - + ".google.cloud.securitycenter.v1.Security" - + "Marks\"\234\004\202\323\344\223\002\204\0042@/v1/{security_marks.nam" - + "e=organizations/*/assets/*/securityMarks" - + "}:\016security_marksZL2:/v1/{security_marks" - + ".name=folders/*/assets/*/securityMarks}:" - + "\016security_marksZM2;/v1/{security_marks.n" - + "ame=projects/*/assets/*/securityMarks}:\016" - + "security_marksZ^2L/v1/{security_marks.na" - + "me=organizations/*/sources/*/findings/*/" - + "securityMarks}:\016security_marksZX2F/v1/{s" - + "ecurity_marks.name=folders/*/sources/*/f" - + "indings/*/securityMarks}:\016security_marks" - + "ZY2G/v1/{security_marks.name=projects/*/" - + "sources/*/findings/*/securityMarks}:\016sec" - + "urity_marks\332A\016security_marks\022\364\002\n\024CreateB" - + "igQueryExport\022;.google.cloud.securitycen" - + "ter.v1.CreateBigQueryExportRequest\032..goo" - + "gle.cloud.securitycenter.v1.BigQueryExpo" - + "rt\"\356\001\202\323\344\223\002\271\001\",/v1/{parent=organizations/" - + "*}/bigQueryExports:\020big_query_exportZ:\"&" - + "/v1/{parent=folders/*}/bigQueryExports:\020" - + "big_query_exportZ;\"\'/v1/{parent=projects" - + "/*}/bigQueryExports:\020big_query_export\332A+" - + "parent,big_query_export,big_query_export" - + "_id\022\377\001\n\024DeleteBigQueryExport\022;.google.cl" - + "oud.securitycenter.v1.DeleteBigQueryExpo" - + "rtRequest\032\026.google.protobuf.Empty\"\221\001\202\323\344\223" - + "\002\203\001*,/v1/{name=organizations/*/bigQueryE" - + "xports/*}Z(*&/v1/{name=folders/*/bigQuer" - + "yExports/*}Z)*\'/v1/{name=projects/*/bigQ" - + "ueryExports/*}\332A\004name\022\230\003\n\024UpdateBigQuery" - + "Export\022;.google.cloud.securitycenter.v1." - + "UpdateBigQueryExportRequest\032..google.clo" - + "ud.securitycenter.v1.BigQueryExport\"\222\002\202\323" - + "\344\223\002\354\0012=/v1/{big_query_export.name=organi" - + "zations/*/bigQueryExports/*}:\020big_query_" - + "exportZK27/v1/{big_query_export.name=fol" - + "ders/*/bigQueryExports/*}:\020big_query_exp" - + "ortZL28/v1/{big_query_export.name=projec" - + "ts/*/bigQueryExports/*}:\020big_query_expor" - + "t\332A\034big_query_export,update_mask\022\244\002\n\023Lis" - + "tBigQueryExports\022:.google.cloud.security" - + "center.v1.ListBigQueryExportsRequest\032;.g" - + "oogle.cloud.securitycenter.v1.ListBigQue" - + "ryExportsResponse\"\223\001\202\323\344\223\002\203\001\022,/v1/{parent" - + "=organizations/*}/bigQueryExportsZ(\022&/v1" - + "/{parent=folders/*}/bigQueryExportsZ)\022\'/" - + "v1/{parent=projects/*}/bigQueryExports\332A" - + "\006parent\032Q\312A\035securitycenter.googleapis.co" - + "m\322A.https://www.googleapis.com/auth/clou" - + "d-platformB\332\001\n\"com.google.cloud.security" - + "center.v1P\001ZLgoogle.golang.org/genproto/" - + "googleapis/cloud/securitycenter/v1;secur" - + "itycenter\252\002\036Google.Cloud.SecurityCenter." - + "V1\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!Go" - + "ogle::Cloud::SecurityCenter::V1P\000b\006proto" - + "3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass - .getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.securitycenter.v1.AssetOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1.BigQueryExportProto.getDescriptor(), - com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(), - com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(), - com.google.cloud.securitycenter.v1.MuteConfigProto.getDescriptor(), - com.google.cloud.securitycenter.v1.NotificationConfigProto.getDescriptor(), - com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1.SourceOuterClass.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "MuteAnnotation", - }); - internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor, - new java.lang.String[] { - "Parent", "FindingId", "Finding", - }); - internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor, - new java.lang.String[] { - "Parent", "MuteConfig", "MuteConfigId", - }); - internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor, - new java.lang.String[] { - "Parent", "ConfigId", "NotificationConfig", - }); - internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor, - new java.lang.String[] { - "Parent", "Source", - }); - internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "GroupBy", "CompareDuration", "ReadTime", "PageToken", "PageSize", - }); - internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor, - new java.lang.String[] { - "GroupByResults", "ReadTime", "NextPageToken", "TotalSize", - }); - internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "GroupBy", "ReadTime", "CompareDuration", "PageToken", "PageSize", - }); - internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor, - new java.lang.String[] { - "GroupByResults", "ReadTime", "NextPageToken", "TotalSize", - }); - internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor, - new java.lang.String[] { - "Properties", "Count", - }); - internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor = - internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor, - new java.lang.String[] { - "MuteConfigs", "NextPageToken", - }); - internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor, - new java.lang.String[] { - "NotificationConfigs", "NextPageToken", - }); - internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor, - new java.lang.String[] { - "Sources", "NextPageToken", - }); - internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor, - new java.lang.String[] { - "Parent", - "Filter", - "OrderBy", - "ReadTime", - "CompareDuration", - "FieldMask", - "PageToken", - "PageSize", - }); - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor, - new java.lang.String[] { - "ListAssetsResults", "ReadTime", "NextPageToken", "TotalSize", - }); - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor = - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor, - new java.lang.String[] { - "Asset", "StateChange", - }); - internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor, - new java.lang.String[] { - "Parent", - "Filter", - "OrderBy", - "ReadTime", - "CompareDuration", - "FieldMask", - "PageToken", - "PageSize", - }); - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor, - new java.lang.String[] { - "ListFindingsResults", "ReadTime", "NextPageToken", "TotalSize", - }); - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor = - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor, - new java.lang.String[] { - "Finding", "StateChange", "Resource", - }); - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor = - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Type", - "ProjectName", - "ProjectDisplayName", - "ParentName", - "ParentDisplayName", - "Folders", - }); - internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor, - new java.lang.String[] { - "Name", "State", "StartTime", - }); - internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_securitycenter_v1_SetMuteRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor, - new java.lang.String[] { - "Name", "Mute", - }); - internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor, - new java.lang.String[] { - "Parent", - }); - internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor, - new java.lang.String[] { - "ExternalSystem", "UpdateMask", - }); - internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor, - new java.lang.String[] { - "Finding", "UpdateMask", - }); - internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor, - new java.lang.String[] { - "MuteConfig", "UpdateMask", - }); - internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor, - new java.lang.String[] { - "NotificationConfig", "UpdateMask", - }); - internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor, - new java.lang.String[] { - "OrganizationSettings", "UpdateMask", - }); - internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor, - new java.lang.String[] { - "Source", "UpdateMask", - }); - internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor, - new java.lang.String[] { - "SecurityMarks", "UpdateMask", "StartTime", - }); - internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor, - new java.lang.String[] { - "Parent", "BigQueryExport", "BigQueryExportId", - }); - internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor, - new java.lang.String[] { - "BigQueryExport", "UpdateMask", - }); - internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor, - new java.lang.String[] { - "BigQueryExports", "NextPageToken", - }); - internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor, - new java.lang.String[] { - "Name", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.securitycenter.v1.AssetOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1.BigQueryExportProto.getDescriptor(); - com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(); - com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(); - com.google.cloud.securitycenter.v1.MuteConfigProto.getDescriptor(); - com.google.cloud.securitycenter.v1.NotificationConfigProto.getDescriptor(); - com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1.SourceOuterClass.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java deleted file mode 100644 index f1760010d..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/source.proto - -package com.google.cloud.securitycenter.v1; - -public final class SourceOuterClass { - private SourceOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Source_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/securitycenter/v1/source." - + "proto\022\036google.cloud.securitycenter.v1\032\031g" - + "oogle/api/resource.proto\"\375\001\n\006Source\022\014\n\004n" - + "ame\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013descr" - + "iption\030\003 \001(\t\022\026\n\016canonical_name\030\016 \001(\t:\241\001\352" - + "A\235\001\n$securitycenter.googleapis.com/Sourc" - + "e\022-organizations/{organization}/sources/" - + "{source}\022!folders/{folder}/sources/{sour" - + "ce}\022#projects/{project}/sources/{source}" - + "B\332\001\n\"com.google.cloud.securitycenter.v1P" - + "\001ZLgoogle.golang.org/genproto/googleapis" - + "/cloud/securitycenter/v1;securitycenter\252" - + "\002\036Google.Cloud.SecurityCenter.V1\312\002\036Googl" - + "e\\Cloud\\SecurityCenter\\V1\352\002!Google::Clou" - + "d::SecurityCenter::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_Source_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Source_descriptor, - new java.lang.String[] { - "Name", "DisplayName", "Description", "CanonicalName", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityProto.java deleted file mode 100644 index 7b1022368..000000000 --- a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityProto.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/vulnerability.proto - -package com.google.cloud.securitycenter.v1; - -public final class VulnerabilityProto { - private VulnerabilityProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Vulnerability_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Cve_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Cve_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Reference_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Reference_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Cvssv3_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/securitycenter/v1/vulnera" - + "bility.proto\022\036google.cloud.securitycente" - + "r.v1\"A\n\rVulnerability\0220\n\003cve\030\001 \001(\0132#.goo" - + "gle.cloud.securitycenter.v1.Cve\"\250\001\n\003Cve\022" - + "\n\n\002id\030\001 \001(\t\022=\n\nreferences\030\002 \003(\0132).google" - + ".cloud.securitycenter.v1.Reference\0226\n\006cv" - + "ssv3\030\003 \001(\0132&.google.cloud.securitycenter" - + ".v1.Cvssv3\022\036\n\026upstream_fix_available\030\004 \001" - + "(\010\"(\n\tReference\022\016\n\006source\030\001 \001(\t\022\013\n\003uri\030\002" - + " \001(\t\"\261\n\n\006Cvssv3\022\022\n\nbase_score\030\001 \001(\001\022J\n\ra" - + "ttack_vector\030\005 \001(\01623.google.cloud.securi" - + "tycenter.v1.Cvssv3.AttackVector\022R\n\021attac" - + "k_complexity\030\006 \001(\01627.google.cloud.securi" - + "tycenter.v1.Cvssv3.AttackComplexity\022V\n\023p" - + "rivileges_required\030\007 \001(\01629.google.cloud." - + "securitycenter.v1.Cvssv3.PrivilegesRequi" - + "red\022P\n\020user_interaction\030\010 \001(\01626.google.c" - + "loud.securitycenter.v1.Cvssv3.UserIntera" - + "ction\022;\n\005scope\030\t \001(\0162,.google.cloud.secu" - + "ritycenter.v1.Cvssv3.Scope\022M\n\026confidenti" - + "ality_impact\030\n \001(\0162-.google.cloud.securi" - + "tycenter.v1.Cvssv3.Impact\022G\n\020integrity_i" - + "mpact\030\013 \001(\0162-.google.cloud.securitycente" - + "r.v1.Cvssv3.Impact\022J\n\023availability_impac" - + "t\030\014 \001(\0162-.google.cloud.securitycenter.v1" - + ".Cvssv3.Impact\"\231\001\n\014AttackVector\022\035\n\031ATTAC" - + "K_VECTOR_UNSPECIFIED\020\000\022\031\n\025ATTACK_VECTOR_" - + "NETWORK\020\001\022\032\n\026ATTACK_VECTOR_ADJACENT\020\002\022\027\n" - + "\023ATTACK_VECTOR_LOCAL\020\003\022\032\n\026ATTACK_VECTOR_" - + "PHYSICAL\020\004\"l\n\020AttackComplexity\022!\n\035ATTACK" - + "_COMPLEXITY_UNSPECIFIED\020\000\022\031\n\025ATTACK_COMP" - + "LEXITY_LOW\020\001\022\032\n\026ATTACK_COMPLEXITY_HIGH\020\002" - + "\"\222\001\n\022PrivilegesRequired\022#\n\037PRIVILEGES_RE" - + "QUIRED_UNSPECIFIED\020\000\022\034\n\030PRIVILEGES_REQUI" - + "RED_NONE\020\001\022\033\n\027PRIVILEGES_REQUIRED_LOW\020\002\022" - + "\034\n\030PRIVILEGES_REQUIRED_HIGH\020\003\"m\n\017UserInt" - + "eraction\022 \n\034USER_INTERACTION_UNSPECIFIED" - + "\020\000\022\031\n\025USER_INTERACTION_NONE\020\001\022\035\n\031USER_IN" - + "TERACTION_REQUIRED\020\002\"F\n\005Scope\022\025\n\021SCOPE_U" - + "NSPECIFIED\020\000\022\023\n\017SCOPE_UNCHANGED\020\001\022\021\n\rSCO" - + "PE_CHANGED\020\002\"R\n\006Impact\022\026\n\022IMPACT_UNSPECI" - + "FIED\020\000\022\017\n\013IMPACT_HIGH\020\001\022\016\n\nIMPACT_LOW\020\002\022" - + "\017\n\013IMPACT_NONE\020\003B\356\001\n\"com.google.cloud.se" - + "curitycenter.v1B\022VulnerabilityProtoP\001ZLg" - + "oogle.golang.org/genproto/googleapis/clo" - + "ud/securitycenter/v1;securitycenter\252\002\036Go" - + "ogle.Cloud.SecurityCenter.V1\312\002\036Google\\Cl" - + "oud\\SecurityCenter\\V1\352\002!Google::Cloud::S" - + "ecurityCenter::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Vulnerability_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor, - new java.lang.String[] { - "Cve", - }); - internal_static_google_cloud_securitycenter_v1_Cve_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_securitycenter_v1_Cve_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Cve_descriptor, - new java.lang.String[] { - "Id", "References", "Cvssv3", "UpstreamFixAvailable", - }); - internal_static_google_cloud_securitycenter_v1_Reference_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_securitycenter_v1_Reference_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Reference_descriptor, - new java.lang.String[] { - "Source", "Uri", - }); - internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_securitycenter_v1_Cvssv3_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor, - new java.lang.String[] { - "BaseScore", - "AttackVector", - "AttackComplexity", - "PrivilegesRequired", - "UserInteraction", - "Scope", - "ConfidentialityImpact", - "IntegrityImpact", - "AvailabilityImpact", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java deleted file mode 100644 index f996dcab8..000000000 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1beta1/asset.proto - -package com.google.cloud.securitycenter.v1beta1; - -public final class AssetOuterClass { - private AssetOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_Asset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n/google/cloud/securitycenter/v1beta1/as" - + "set.proto\022#google.cloud.securitycenter.v" - + "1beta1\032\037google/api/field_behavior.proto\032" - + "\031google/api/resource.proto\0328google/cloud" - + "/securitycenter/v1beta1/security_marks.p" - + "roto\032\034google/protobuf/struct.proto\032\037goog" - + "le/protobuf/timestamp.proto\032\034google/api/" - + "annotations.proto\"\323\005\n\005Asset\022\014\n\004name\030\001 \001(" - + "\t\022g\n\032security_center_properties\030\002 \001(\0132C." - + "google.cloud.securitycenter.v1beta1.Asse" - + "t.SecurityCenterProperties\022_\n\023resource_p" - + "roperties\030\007 \003(\0132B.google.cloud.securityc" - + "enter.v1beta1.Asset.ResourcePropertiesEn" - + "try\022J\n\016security_marks\030\010 \001(\01322.google.clo" - + "ud.securitycenter.v1beta1.SecurityMarks\022" - + "/\n\013create_time\030\t \001(\0132\032.google.protobuf.T" - + "imestamp\022/\n\013update_time\030\n \001(\0132\032.google.p" - + "rotobuf.Timestamp\032\231\001\n\030SecurityCenterProp" - + "erties\022\032\n\rresource_name\030\001 \001(\tB\003\340A\005\022\025\n\rre" - + "source_type\030\002 \001(\t\022\027\n\017resource_parent\030\003 \001" - + "(\t\022\030\n\020resource_project\030\004 \001(\t\022\027\n\017resource" - + "_owners\030\005 \003(\t\032Q\n\027ResourcePropertiesEntry" - + "\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pr" - + "otobuf.Value:\0028\001:U\352AR\n#securitycenter.go" - + "ogleapis.com/Asset\022+organizations/{organ" - + "ization}/assets/{asset}B~\n\'com.google.cl" - + "oud.securitycenter.v1beta1P\001ZQgoogle.gol" - + "ang.org/genproto/googleapis/cloud/securi" - + "tycenter/v1beta1;securitycenterb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1beta1_Asset_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor, - new java.lang.String[] { - "Name", - "SecurityCenterProperties", - "ResourceProperties", - "SecurityMarks", - "CreateTime", - "UpdateTime", - }); - internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor = - internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor, - new java.lang.String[] { - "ResourceName", "ResourceType", "ResourceParent", "ResourceProject", "ResourceOwners", - }); - internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_descriptor = - internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java deleted file mode 100644 index 1f967069f..000000000 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1beta1/finding.proto - -package com.google.cloud.securitycenter.v1beta1; - -public final class FindingOuterClass { - private FindingOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_Finding_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/securitycenter/v1beta1/fi" - + "nding.proto\022#google.cloud.securitycenter" - + ".v1beta1\032\034google/api/annotations.proto\032\037" - + "google/api/field_behavior.proto\032\031google/" - + "api/resource.proto\0328google/cloud/securit" - + "ycenter/v1beta1/security_marks.proto\032\034go" - + "ogle/protobuf/struct.proto\032\037google/proto" - + "buf/timestamp.proto\"\270\005\n\007Finding\022\014\n\004name\030" - + "\001 \001(\t\022\023\n\006parent\030\002 \001(\tB\003\340A\005\022\025\n\rresource_n" - + "ame\030\003 \001(\t\022A\n\005state\030\004 \001(\01622.google.cloud." - + "securitycenter.v1beta1.Finding.State\022\020\n\010" - + "category\030\005 \001(\t\022\024\n\014external_uri\030\006 \001(\t\022]\n\021" - + "source_properties\030\007 \003(\0132B.google.cloud.s" - + "ecuritycenter.v1beta1.Finding.SourceProp" - + "ertiesEntry\022O\n\016security_marks\030\010 \001(\01322.go" - + "ogle.cloud.securitycenter.v1beta1.Securi" - + "tyMarksB\003\340A\003\022.\n\nevent_time\030\t \001(\0132\032.googl" - + "e.protobuf.Timestamp\022/\n\013create_time\030\n \001(" - + "\0132\032.google.protobuf.Timestamp\032O\n\025SourceP" - + "ropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001" - + "(\0132\026.google.protobuf.Value:\0028\001\"8\n\005State\022" - + "\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010IN" - + "ACTIVE\020\002:l\352Ai\n%securitycenter.googleapis" - + ".com/Finding\022@organizations/{organizatio" - + "n}/sources/{source}/findings/{finding}B~" - + "\n\'com.google.cloud.securitycenter.v1beta" - + "1P\001ZQgoogle.golang.org/genproto/googleap" - + "is/cloud/securitycenter/v1beta1;security" - + "centerb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1beta1_Finding_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor, - new java.lang.String[] { - "Name", - "Parent", - "ResourceName", - "State", - "Category", - "ExternalUri", - "SourceProperties", - "SecurityMarks", - "EventTime", - "CreateTime", - }); - internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_descriptor = - internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java deleted file mode 100644 index e58409834..000000000 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1beta1; - -public interface GetOrganizationSettingsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the organization to get organization settings for. Its format is
-   * "organizations/[organization_id]/organizationSettings".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the organization to get organization settings for. Its format is
-   * "organizations/[organization_id]/organizationSettings".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java deleted file mode 100644 index 777ba98c7..000000000 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1beta1; - -public interface GetSourceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.GetSourceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Relative resource name of the source. Its format is
-   * "organizations/[organization_id]/source/[source_id]".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Relative resource name of the source. Its format is
-   * "organizations/[organization_id]/source/[source_id]".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java deleted file mode 100644 index 134741d68..000000000 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1beta1/organization_settings.proto - -package com.google.cloud.securitycenter.v1beta1; - -public final class OrganizationSettingsOuterClass { - private OrganizationSettingsOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n?google/cloud/securitycenter/v1beta1/or" - + "ganization_settings.proto\022#google.cloud." - + "securitycenter.v1beta1\032\031google/api/resou" - + "rce.proto\032\034google/api/annotations.proto\"" - + "\224\004\n\024OrganizationSettings\022\014\n\004name\030\001 \001(\t\022\036" - + "\n\026enable_asset_discovery\030\002 \001(\010\022n\n\026asset_" - + "discovery_config\030\003 \001(\0132N.google.cloud.se" - + "curitycenter.v1beta1.OrganizationSetting" - + "s.AssetDiscoveryConfig\032\361\001\n\024AssetDiscover" - + "yConfig\022\023\n\013project_ids\030\001 \003(\t\022t\n\016inclusio" - + "n_mode\030\002 \001(\0162\\.google.cloud.securitycent" - + "er.v1beta1.OrganizationSettings.AssetDis" - + "coveryConfig.InclusionMode\"N\n\rInclusionM" - + "ode\022\036\n\032INCLUSION_MODE_UNSPECIFIED\020\000\022\020\n\014I" - + "NCLUDE_ONLY\020\001\022\013\n\007EXCLUDE\020\002:j\352Ag\n2securit" - + "ycenter.googleapis.com/OrganizationSetti" - + "ngs\0221organizations/{organization}/organi" - + "zationSettingsB~\n\'com.google.cloud.secur" - + "itycenter.v1beta1P\001ZQgoogle.golang.org/g" - + "enproto/googleapis/cloud/securitycenter/" - + "v1beta1;securitycenterb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor, - new java.lang.String[] { - "Name", "EnableAssetDiscovery", "AssetDiscoveryConfig", - }); - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor = - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor, - new java.lang.String[] { - "ProjectIds", "InclusionMode", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java deleted file mode 100644 index 583ec4ac6..000000000 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1beta1; - -public interface RunAssetDiscoveryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the organization to run asset discovery for. Its format is
-   * "organizations/[organization_id]".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. Name of the organization to run asset discovery for. Its format is
-   * "organizations/[organization_id]".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOuterClass.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOuterClass.java deleted file mode 100644 index 50a06497f..000000000 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOuterClass.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto - -package com.google.cloud.securitycenter.v1beta1; - -public final class RunAssetDiscoveryResponseOuterClass { - private RunAssetDiscoveryResponseOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nFgoogle/cloud/securitycenter/v1beta1/ru" - + "n_asset_discovery_response.proto\022#google" - + ".cloud.securitycenter.v1beta1\032\036google/pr" - + "otobuf/duration.proto\032\034google/api/annota" - + "tions.proto\"\354\001\n\031RunAssetDiscoveryRespons" - + "e\022S\n\005state\030\001 \001(\0162D.google.cloud.security" - + "center.v1beta1.RunAssetDiscoveryResponse" - + ".State\022+\n\010duration\030\002 \001(\0132\031.google.protob" - + "uf.Duration\"M\n\005State\022\025\n\021STATE_UNSPECIFIE" - + "D\020\000\022\r\n\tCOMPLETED\020\001\022\016\n\nSUPERSEDED\020\002\022\016\n\nTE" - + "RMINATED\020\003B~\n\'com.google.cloud.securityc" - + "enter.v1beta1P\001ZQgoogle.golang.org/genpr" - + "oto/googleapis/cloud/securitycenter/v1be" - + "ta1;securitycenterb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DurationProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor, - new java.lang.String[] { - "State", "Duration", - }); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java deleted file mode 100644 index 935180a43..000000000 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1beta1/security_marks.proto - -package com.google.cloud.securitycenter.v1beta1; - -public final class SecurityMarksOuterClass { - private SecurityMarksOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/securitycenter/v1beta1/se" - + "curity_marks.proto\022#google.cloud.securit" - + "ycenter.v1beta1\032\031google/api/resource.pro" - + "to\032\034google/api/annotations.proto\"\330\002\n\rSec" - + "urityMarks\022\014\n\004name\030\001 \001(\t\022L\n\005marks\030\002 \003(\0132" - + "=.google.cloud.securitycenter.v1beta1.Se" - + "curityMarks.MarksEntry\032,\n\nMarksEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\274\001\352A\270\001\n+sec" - + "uritycenter.googleapis.com/SecurityMarks" - + "\0229organizations/{organization}/assets/{a" - + "sset}/securityMarks\022Norganizations/{orga" - + "nization}/sources/{source}/findings/{fin" - + "ding}/securityMarksB~\n\'com.google.cloud." - + "securitycenter.v1beta1P\001ZQgoogle.golang." - + "org/genproto/googleapis/cloud/securityce" - + "nter/v1beta1;securitycenterb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor, - new java.lang.String[] { - "Name", "Marks", - }); - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_descriptor = - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java deleted file mode 100644 index 792f3b20f..000000000 --- a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java +++ /dev/null @@ -1,603 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1beta1; - -public final class SecuritycenterService { - private SecuritycenterService() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_GroupResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_GroupResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_GroupResult_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_GroupResult_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n@google/cloud/securitycenter/v1beta1/se" - + "curitycenter_service.proto\022#google.cloud" - + ".securitycenter.v1beta1\032\034google/api/anno" - + "tations.proto\032\027google/api/client.proto\032\037" - + "google/api/field_behavior.proto\032\031google/" - + "api/resource.proto\032/google/cloud/securit" - + "ycenter/v1beta1/asset.proto\0321google/clou" - + "d/securitycenter/v1beta1/finding.proto\032?" - + "google/cloud/securitycenter/v1beta1/orga" - + "nization_settings.proto\0328google/cloud/se" - + "curitycenter/v1beta1/security_marks.prot" - + "o\0320google/cloud/securitycenter/v1beta1/s" - + "ource.proto\032\036google/iam/v1/iam_policy.pr" - + "oto\032\032google/iam/v1/policy.proto\032#google/" - + "longrunning/operations.proto\032\036google/pro" - + "tobuf/duration.proto\032\033google/protobuf/em" - + "pty.proto\032 google/protobuf/field_mask.pr" - + "oto\032\034google/protobuf/struct.proto\032\037googl" - + "e/protobuf/timestamp.proto\"\261\001\n\024CreateFin" - + "dingRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$sec" - + "uritycenter.googleapis.com/Source\022\027\n\nfin" - + "ding_id\030\002 \001(\tB\003\340A\002\022B\n\007finding\030\003 \001(\0132,.go" - + "ogle.cloud.securitycenter.v1beta1.Findin" - + "gB\003\340A\002\"\241\001\n\023CreateSourceRequest\022H\n\006parent" - + "\030\001 \001(\tB8\340A\002\372A2\n0cloudresourcemanager.goo" - + "gleapis.com/Organization\022@\n\006source\030\002 \001(\013" - + "2+.google.cloud.securitycenter.v1beta1.S" - + "ourceB\003\340A\002\"j\n\036GetOrganizationSettingsReq" - + "uest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2securitycent" - + "er.googleapis.com/OrganizationSettings\"N" - + "\n\020GetSourceRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&" - + "\n$securitycenter.googleapis.com/Source\"\220" - + "\002\n\022GroupAssetsRequest\022H\n\006parent\030\001 \001(\tB8\340" - + "A\002\372A2\n0cloudresourcemanager.googleapis.c" - + "om/Organization\022\016\n\006filter\030\002 \001(\t\022\025\n\010group" - + "_by\030\003 \001(\tB\003\340A\002\0223\n\020compare_duration\030\004 \001(\013" - + "2\031.google.protobuf.Duration\022-\n\tread_time" - + "\030\005 \001(\0132\032.google.protobuf.Timestamp\022\022\n\npa" - + "ge_token\030\007 \001(\t\022\021\n\tpage_size\030\010 \001(\005\"\251\001\n\023Gr" - + "oupAssetsResponse\022J\n\020group_by_results\030\001 " - + "\003(\01320.google.cloud.securitycenter.v1beta" - + "1.GroupResult\022-\n\tread_time\030\002 \001(\0132\032.googl" - + "e.protobuf.Timestamp\022\027\n\017next_page_token\030" - + "\003 \001(\t\"\321\001\n\024GroupFindingsRequest\022<\n\006parent" - + "\030\001 \001(\tB,\340A\002\372A&\n$securitycenter.googleapi" - + "s.com/Source\022\016\n\006filter\030\002 \001(\t\022\025\n\010group_by" - + "\030\003 \001(\tB\003\340A\002\022-\n\tread_time\030\004 \001(\0132\032.google." - + "protobuf.Timestamp\022\022\n\npage_token\030\005 \001(\t\022\021" - + "\n\tpage_size\030\006 \001(\005\"\253\001\n\025GroupFindingsRespo" - + "nse\022J\n\020group_by_results\030\001 \003(\01320.google.c" - + "loud.securitycenter.v1beta1.GroupResult\022" - + "-\n\tread_time\030\002 \001(\0132\032.google.protobuf.Tim" - + "estamp\022\027\n\017next_page_token\030\003 \001(\t\"\275\001\n\013Grou" - + "pResult\022T\n\nproperties\030\001 \003(\0132@.google.clo" - + "ud.securitycenter.v1beta1.GroupResult.Pr" - + "opertiesEntry\022\r\n\005count\030\002 \001(\003\032I\n\017Properti" - + "esEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.go" - + "ogle.protobuf.Value:\0028\001\"\205\001\n\022ListSourcesR" - + "equest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0cloudres" - + "ourcemanager.googleapis.com/Organization" - + "\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\007 \001(\005\"" - + "l\n\023ListSourcesResponse\022<\n\007sources\030\001 \003(\0132" - + "+.google.cloud.securitycenter.v1beta1.So" - + "urce\022\027\n\017next_page_token\030\002 \001(\t\"\277\002\n\021ListAs" - + "setsRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0clo" - + "udresourcemanager.googleapis.com/Organiz" - + "ation\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022" - + "-\n\tread_time\030\004 \001(\0132\032.google.protobuf.Tim" - + "estamp\0223\n\020compare_duration\030\005 \001(\0132\031.googl" - + "e.protobuf.Duration\0223\n\nfield_mask\030\007 \001(\0132" - + "\032.google.protobuf.FieldMaskB\003\340A\001\022\022\n\npage" - + "_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"\326\003\n\022List" - + "AssetsResponse\022e\n\023list_assets_results\030\001 " - + "\003(\0132H.google.cloud.securitycenter.v1beta" - + "1.ListAssetsResponse.ListAssetsResult\022-\n" - + "\tread_time\030\002 \001(\0132\032.google.protobuf.Times" - + "tamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_s" - + "ize\030\004 \001(\005\032\374\001\n\020ListAssetsResult\0229\n\005asset\030" - + "\001 \001(\0132*.google.cloud.securitycenter.v1be" - + "ta1.Asset\022]\n\005state\030\002 \001(\0162N.google.cloud." - + "securitycenter.v1beta1.ListAssetsRespons" - + "e.ListAssetsResult.State\"N\n\005State\022\025\n\021STA" - + "TE_UNSPECIFIED\020\000\022\n\n\006UNUSED\020\001\022\t\n\005ADDED\020\002\022" - + "\013\n\007REMOVED\020\003\022\n\n\006ACTIVE\020\004\"\200\002\n\023ListFinding" - + "sRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$securi" - + "tycenter.googleapis.com/Source\022\016\n\006filter" - + "\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\tread_time\030\004 " - + "\001(\0132\032.google.protobuf.Timestamp\0223\n\nfield" - + "_mask\030\005 \001(\0132\032.google.protobuf.FieldMaskB" - + "\003\340A\001\022\022\n\npage_token\030\006 \001(\t\022\021\n\tpage_size\030\007 " - + "\001(\005\"\262\001\n\024ListFindingsResponse\022>\n\010findings" - + "\030\001 \003(\0132,.google.cloud.securitycenter.v1b" - + "eta1.Finding\022-\n\tread_time\030\002 \001(\0132\032.google" - + ".protobuf.Timestamp\022\027\n\017next_page_token\030\003" - + " \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\322\001\n\026SetFindingS" - + "tateRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%secur" - + "itycenter.googleapis.com/Finding\022F\n\005stat" - + "e\030\002 \001(\01622.google.cloud.securitycenter.v1" - + "beta1.Finding.StateB\003\340A\002\0223\n\nstart_time\030\003" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002\"d\n" - + "\030RunAssetDiscoveryRequest\022H\n\006parent\030\001 \001(" - + "\tB8\340A\002\372A2\n0cloudresourcemanager.googleap" - + "is.com/Organization\"\213\001\n\024UpdateFindingReq" - + "uest\022B\n\007finding\030\001 \001(\0132,.google.cloud.sec" - + "uritycenter.v1beta1.FindingB\003\340A\002\022/\n\013upda" - + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" - + "k\"\263\001\n!UpdateOrganizationSettingsRequest\022" - + "]\n\025organization_settings\030\001 \001(\01329.google." - + "cloud.securitycenter.v1beta1.Organizatio" - + "nSettingsB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.go" - + "ogle.protobuf.FieldMask\"\210\001\n\023UpdateSource" - + "Request\022@\n\006source\030\001 \001(\0132+.google.cloud.s" - + "ecuritycenter.v1beta1.SourceB\003\340A\002\022/\n\013upd" - + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" - + "sk\"\316\001\n\032UpdateSecurityMarksRequest\022O\n\016sec" - + "urity_marks\030\001 \001(\01322.google.cloud.securit" - + "ycenter.v1beta1.SecurityMarksB\003\340A\002\022/\n\013up" - + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" - + "ask\022.\n\nstart_time\030\003 \001(\0132\032.google.protobu" - + "f.Timestamp2\353\036\n\016SecurityCenter\022\300\001\n\014Creat" - + "eSource\0228.google.cloud.securitycenter.v1" - + "beta1.CreateSourceRequest\032+.google.cloud" - + ".securitycenter.v1beta1.Source\"I\202\323\344\223\0023\")" - + "/v1beta1/{parent=organizations/*}/source" - + "s:\006source\332A\rparent,source\022\333\001\n\rCreateFind" - + "ing\0229.google.cloud.securitycenter.v1beta" - + "1.CreateFindingRequest\032,.google.cloud.se" - + "curitycenter.v1beta1.Finding\"a\202\323\344\223\002?\"4/v" - + "1beta1/{parent=organizations/*/sources/*" - + "}/findings:\007finding\332A\031parent,finding_id," - + "finding\022\233\001\n\014GetIamPolicy\022\".google.iam.v1" - + ".GetIamPolicyRequest\032\025.google.iam.v1.Pol" - + "icy\"P\202\323\344\223\002?\":/v1beta1/{resource=organiza" - + "tions/*/sources/*}:getIamPolicy:\001*\332A\010res" - + "ource\022\336\001\n\027GetOrganizationSettings\022C.goog" - + "le.cloud.securitycenter.v1beta1.GetOrgan" - + "izationSettingsRequest\0329.google.cloud.se" - + "curitycenter.v1beta1.OrganizationSetting" - + "s\"C\202\323\344\223\0026\0224/v1beta1/{name=organizations/" - + "*/organizationSettings}\332A\004name\022\251\001\n\tGetSo" - + "urce\0225.google.cloud.securitycenter.v1bet" - + "a1.GetSourceRequest\032+.google.cloud.secur" - + "itycenter.v1beta1.Source\"8\202\323\344\223\002+\022)/v1bet" - + "a1/{name=organizations/*/sources/*}\332A\004na" - + "me\022\273\001\n\013GroupAssets\0227.google.cloud.securi" - + "tycenter.v1beta1.GroupAssetsRequest\0328.go" - + "ogle.cloud.securitycenter.v1beta1.GroupA" - + "ssetsResponse\"9\202\323\344\223\0023\"./v1beta1/{parent=" - + "organizations/*}/assets:group:\001*\022\337\001\n\rGro" - + "upFindings\0229.google.cloud.securitycenter" - + ".v1beta1.GroupFindingsRequest\032:.google.c" - + "loud.securitycenter.v1beta1.GroupFinding" - + "sResponse\"W\202\323\344\223\002?\":/v1beta1/{parent=orga" - + "nizations/*/sources/*}/findings:group:\001*" - + "\332A\017parent,group_by\022\257\001\n\nListAssets\0226.goog" - + "le.cloud.securitycenter.v1beta1.ListAsse" - + "tsRequest\0327.google.cloud.securitycenter." - + "v1beta1.ListAssetsResponse\"0\202\323\344\223\002*\022(/v1b" - + "eta1/{parent=organizations/*}/assets\022\301\001\n" - + "\014ListFindings\0228.google.cloud.securitycen" - + "ter.v1beta1.ListFindingsRequest\0329.google" - + ".cloud.securitycenter.v1beta1.ListFindin" - + "gsResponse\"<\202\323\344\223\0026\0224/v1beta1/{parent=org" - + "anizations/*/sources/*}/findings\022\274\001\n\013Lis" - + "tSources\0227.google.cloud.securitycenter.v" - + "1beta1.ListSourcesRequest\0328.google.cloud" - + ".securitycenter.v1beta1.ListSourcesRespo" - + "nse\":\202\323\344\223\002+\022)/v1beta1/{parent=organizati" - + "ons/*}/sources\332A\006parent\022\355\001\n\021RunAssetDisc" - + "overy\022=.google.cloud.securitycenter.v1be" - + "ta1.RunAssetDiscoveryRequest\032\035.google.lo" - + "ngrunning.Operation\"z\202\323\344\223\002:\"5/v1beta1/{p" - + "arent=organizations/*}/assets:runDiscove" - + "ry:\001*\332A\006parent\312A.\n\025google.protobuf.Empty" - + "\022\025google.protobuf.Empty\022\336\001\n\017SetFindingSt" - + "ate\022;.google.cloud.securitycenter.v1beta" - + "1.SetFindingStateRequest\032,.google.cloud." - + "securitycenter.v1beta1.Finding\"`\202\323\344\223\002B\"=" - + "/v1beta1/{name=organizations/*/sources/*" - + "/findings/*}:setState:\001*\332A\025name,state,st" - + "art_time\022\242\001\n\014SetIamPolicy\022\".google.iam.v" - + "1.SetIamPolicyRequest\032\025.google.iam.v1.Po" - + "licy\"W\202\323\344\223\002?\":/v1beta1/{resource=organiz" - + "ations/*/sources/*}:setIamPolicy:\001*\332A\017re" - + "source,policy\022\315\001\n\022TestIamPermissions\022(.g" - + "oogle.iam.v1.TestIamPermissionsRequest\032)" - + ".google.iam.v1.TestIamPermissionsRespons" - + "e\"b\202\323\344\223\002E\"@/v1beta1/{resource=organizati" - + "ons/*/sources/*}:testIamPermissions:\001*\332A" - + "\024resource,permissions\022\321\001\n\rUpdateFinding\022" - + "9.google.cloud.securitycenter.v1beta1.Up" - + "dateFindingRequest\032,.google.cloud.securi" - + "tycenter.v1beta1.Finding\"W\202\323\344\223\002G2\n\007folders\030\n \003(\0132-.google.cloud." - + "securitycenter.v1p1beta1.Folder\032 \n\tIamPo" - + "licy\022\023\n\013policy_blob\030\001 \001(\t\032Q\n\027ResourcePro" - + "pertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\013" - + "2\026.google.protobuf.Value:\0028\001:\232\001\352A\226\001\n#sec" - + "uritycenter.googleapis.com/Asset\022+organi" - + "zations/{organization}/assets/{asset}\022\037f" - + "olders/{folder}/assets/{asset}\022!projects" - + "/{project}/assets/{asset}B\375\001\n)com.google" - + ".cloud.securitycenter.v1p1beta1P\001ZSgoogl" - + "e.golang.org/genproto/googleapis/cloud/s" - + "ecuritycenter/v1p1beta1;securitycenter\252\002" - + "%Google.Cloud.SecurityCenter.V1P1Beta1\312\002" - + "%Google\\Cloud\\SecurityCenter\\V1p1beta1\352\002" - + "(Google::Cloud::SecurityCenter::V1p1beta" - + "1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor, - new java.lang.String[] { - "Name", - "SecurityCenterProperties", - "ResourceProperties", - "SecurityMarks", - "CreateTime", - "UpdateTime", - "IamPolicy", - "CanonicalName", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor, - new java.lang.String[] { - "ResourceName", - "ResourceType", - "ResourceParent", - "ResourceProject", - "ResourceOwners", - "ResourceDisplayName", - "ResourceParentDisplayName", - "ResourceProjectDisplayName", - "Folders", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor, - new java.lang.String[] { - "PolicyBlob", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequestOrBuilder.java deleted file mode 100644 index 4ce3a2177..000000000 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public interface DeleteNotificationConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the notification config to delete. Its format is
-   * "organizations/[organization_id]/notificationConfigs/[config_id]".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the notification config to delete. Its format is
-   * "organizations/[organization_id]/notificationConfigs/[config_id]".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOuterClass.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOuterClass.java deleted file mode 100644 index 59b323136..000000000 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOuterClass.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/finding.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class FindingOuterClass { - private FindingOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/securitycenter/v1p1beta1/" - + "finding.proto\022%google.cloud.securitycent" - + "er.v1p1beta1\032\037google/api/field_behavior." - + "proto\032\031google/api/resource.proto\032:google" - + "/cloud/securitycenter/v1p1beta1/security" - + "_marks.proto\032\034google/protobuf/struct.pro" - + "to\032\037google/protobuf/timestamp.proto\032\034goo" - + "gle/api/annotations.proto\"\337\007\n\007Finding\022\014\n" - + "\004name\030\001 \001(\t\022\016\n\006parent\030\002 \001(\t\022\025\n\rresource_" - + "name\030\003 \001(\t\022C\n\005state\030\004 \001(\01624.google.cloud" - + ".securitycenter.v1p1beta1.Finding.State\022" - + "\020\n\010category\030\005 \001(\t\022\024\n\014external_uri\030\006 \001(\t\022" - + "_\n\021source_properties\030\007 \003(\0132D.google.clou" - + "d.securitycenter.v1p1beta1.Finding.Sourc" - + "ePropertiesEntry\022Q\n\016security_marks\030\010 \001(\013" - + "24.google.cloud.securitycenter.v1p1beta1" - + ".SecurityMarksB\003\340A\003\022.\n\nevent_time\030\t \001(\0132" - + "\032.google.protobuf.Timestamp\022/\n\013create_ti" - + "me\030\n \001(\0132\032.google.protobuf.Timestamp\022I\n\010" - + "severity\030\r \001(\01627.google.cloud.securityce" - + "nter.v1p1beta1.Finding.Severity\022\026\n\016canon" - + "ical_name\030\016 \001(\t\032O\n\025SourcePropertiesEntry" - + "\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pr" - + "otobuf.Value:\0028\001\"8\n\005State\022\025\n\021STATE_UNSPE" - + "CIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002\"Q\n\010Se" - + "verity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRIT" - + "ICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004:\333\001" - + "\352A\327\001\n%securitycenter.googleapis.com/Find" - + "ing\022@organizations/{organization}/source" - + "s/{source}/findings/{finding}\0224folders/{" - + "folder}/sources/{source}/findings/{findi" - + "ng}\0226projects/{project}/sources/{source}" - + "/findings/{finding}B\375\001\n)com.google.cloud" - + ".securitycenter.v1p1beta1P\001ZSgoogle.gola" - + "ng.org/genproto/googleapis/cloud/securit" - + "ycenter/v1p1beta1;securitycenter\252\002%Googl" - + "e.Cloud.SecurityCenter.V1P1Beta1\312\002%Googl" - + "e\\Cloud\\SecurityCenter\\V1p1beta1\352\002(Googl" - + "e::Cloud::SecurityCenter::V1p1beta1b\006pro" - + "to3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor, - new java.lang.String[] { - "Name", - "Parent", - "ResourceName", - "State", - "Category", - "ExternalUri", - "SourceProperties", - "SecurityMarks", - "EventTime", - "CreateTime", - "Severity", - "CanonicalName", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderProto.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderProto.java deleted file mode 100644 index c0e16e8be..000000000 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderProto.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/folder.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class FolderProto { - private FolderProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_Folder_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/securitycenter/v1p1beta1/" - + "folder.proto\022%google.cloud.securitycente" - + "r.v1p1beta1\032\034google/api/annotations.prot" - + "o\"G\n\006Folder\022\027\n\017resource_folder\030\001 \001(\t\022$\n\034" - + "resource_folder_display_name\030\002 \001(\tB\212\002\n)c" - + "om.google.cloud.securitycenter.v1p1beta1" - + "B\013FolderProtoP\001ZSgoogle.golang.org/genpr" - + "oto/googleapis/cloud/securitycenter/v1p1" - + "beta1;securitycenter\252\002%Google.Cloud.Secu" - + "rityCenter.V1P1Beta1\312\002%Google\\Cloud\\Secu" - + "rityCenter\\V1p1beta1\352\002(Google::Cloud::Se" - + "curityCenter::V1p1Beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_Folder_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor, - new java.lang.String[] { - "ResourceFolder", "ResourceFolderDisplayName", - }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequestOrBuilder.java deleted file mode 100644 index 0ab8d93aa..000000000 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public interface GetNotificationConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the notification config to get. Its format is
-   * "organizations/[organization_id]/notificationConfigs/[config_id]".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the notification config to get. Its format is
-   * "organizations/[organization_id]/notificationConfigs/[config_id]".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequestOrBuilder.java deleted file mode 100644 index 6bed1814c..000000000 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public interface GetOrganizationSettingsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the organization to get organization settings for. Its format is
-   * "organizations/[organization_id]/organizationSettings".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the organization to get organization settings for. Its format is
-   * "organizations/[organization_id]/organizationSettings".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequestOrBuilder.java deleted file mode 100644 index faa23ee35..000000000 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public interface GetSourceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GetSourceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Relative resource name of the source. Its format is
-   * "organizations/[organization_id]/source/[source_id]".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Relative resource name of the source. Its format is
-   * "organizations/[organization_id]/source/[source_id]".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOuterClass.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOuterClass.java deleted file mode 100644 index 287f1057c..000000000 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOuterClass.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/notification_config.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class NotificationConfigOuterClass { - private NotificationConfigOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n?google/cloud/securitycenter/v1p1beta1/" - + "notification_config.proto\022%google.cloud." - + "securitycenter.v1p1beta1\032\037google/api/fie" - + "ld_behavior.proto\032\031google/api/resource.p" - + "roto\032\034google/api/annotations.proto\"\266\004\n\022N" - + "otificationConfig\022\014\n\004name\030\001 \001(\t\022\023\n\013descr" - + "iption\030\002 \001(\t\022W\n\nevent_type\030\003 \001(\0162C.googl" - + "e.cloud.securitycenter.v1p1beta1.Notific" - + "ationConfig.EventType\0226\n\014pubsub_topic\030\004 " - + "\001(\tB \372A\035\n\033pubsub.googleapis.com/Topic\022\034\n" - + "\017service_account\030\005 \001(\tB\003\340A\003\022e\n\020streaming" - + "_config\030\006 \001(\0132I.google.cloud.securitycen" - + "ter.v1p1beta1.NotificationConfig.Streami" - + "ngConfigH\000\032!\n\017StreamingConfig\022\016\n\006filter\030" - + "\001 \001(\t\"4\n\tEventType\022\032\n\026EVENT_TYPE_UNSPECI" - + "FIED\020\000\022\013\n\007FINDING\020\001:}\352Az\n0securitycenter" - + ".googleapis.com/NotificationConfig\022Forga" - + "nizations/{organization}/notificationCon" - + "figs/{notification_config}B\017\n\rnotify_con" - + "figB\300\002\n)com.google.cloud.securitycenter." - + "v1p1beta1P\001ZSgoogle.golang.org/genproto/" - + "googleapis/cloud/securitycenter/v1p1beta" - + "1;securitycenter\252\002%Google.Cloud.Security" - + "Center.V1P1Beta1\312\002%Google\\Cloud\\Security" - + "Center\\V1p1beta1\352\002(Google::Cloud::Securi" - + "tyCenter::V1p1beta1\352A@\n\033pubsub.googleapi" - + "s.com/Topic\022!projects/{project}/topics/{" - + "topic}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor, - new java.lang.String[] { - "Name", - "Description", - "EventType", - "PubsubTopic", - "ServiceAccount", - "StreamingConfig", - "NotifyConfig", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor, - new java.lang.String[] { - "Filter", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java deleted file mode 100644 index 27fae532c..000000000 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/notification_message.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class NotificationMessageOuterClass { - private NotificationMessageOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n@google/cloud/securitycenter/v1p1beta1/" - + "notification_message.proto\022%google.cloud" - + ".securitycenter.v1p1beta1\0323google/cloud/" - + "securitycenter/v1p1beta1/finding.proto\0324" - + "google/cloud/securitycenter/v1p1beta1/re" - + "source.proto\032\034google/api/annotations.pro" - + "to\"\306\001\n\023NotificationMessage\022 \n\030notificati" - + "on_config_name\030\001 \001(\t\022A\n\007finding\030\002 \001(\0132.." - + "google.cloud.securitycenter.v1p1beta1.Fi" - + "ndingH\000\022A\n\010resource\030\003 \001(\0132/.google.cloud" - + ".securitycenter.v1p1beta1.ResourceB\007\n\005ev" - + "entB\375\001\n)com.google.cloud.securitycenter." - + "v1p1beta1P\001ZSgoogle.golang.org/genproto/" - + "googleapis/cloud/securitycenter/v1p1beta" - + "1;securitycenter\252\002%Google.Cloud.Security" - + "Center.V1P1Beta1\312\002%Google\\Cloud\\Security" - + "Center\\V1p1beta1\352\002(Google::Cloud::Securi" - + "tyCenter::V1p1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.ResourceProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor, - new java.lang.String[] { - "NotificationConfigName", "Finding", "Resource", "Event", - }); - com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.ResourceProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOuterClass.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOuterClass.java deleted file mode 100644 index 3d94bf261..000000000 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOuterClass.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/organization_settings.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class OrganizationSettingsOuterClass { - private OrganizationSettingsOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nAgoogle/cloud/securitycenter/v1p1beta1/" - + "organization_settings.proto\022%google.clou" - + "d.securitycenter.v1p1beta1\032\031google/api/r" - + "esource.proto\032\034google/api/annotations.pr" - + "oto\"\254\004\n\024OrganizationSettings\022\014\n\004name\030\001 \001" - + "(\t\022\036\n\026enable_asset_discovery\030\002 \001(\010\022p\n\026as" - + "set_discovery_config\030\003 \001(\0132P.google.clou" - + "d.securitycenter.v1p1beta1.OrganizationS" - + "ettings.AssetDiscoveryConfig\032\207\002\n\024AssetDi" - + "scoveryConfig\022\023\n\013project_ids\030\001 \003(\t\022v\n\016in" - + "clusion_mode\030\002 \001(\0162^.google.cloud.securi" - + "tycenter.v1p1beta1.OrganizationSettings." - + "AssetDiscoveryConfig.InclusionMode\022\022\n\nfo" - + "lder_ids\030\003 \003(\t\"N\n\rInclusionMode\022\036\n\032INCLU" - + "SION_MODE_UNSPECIFIED\020\000\022\020\n\014INCLUDE_ONLY\020" - + "\001\022\013\n\007EXCLUDE\020\002:j\352Ag\n2securitycenter.goog" - + "leapis.com/OrganizationSettings\0221organiz" - + "ations/{organization}/organizationSettin" - + "gsB\375\001\n)com.google.cloud.securitycenter.v" - + "1p1beta1P\001ZSgoogle.golang.org/genproto/g" - + "oogleapis/cloud/securitycenter/v1p1beta1" - + ";securitycenter\252\002%Google.Cloud.SecurityC" - + "enter.V1P1Beta1\312\002%Google\\Cloud\\SecurityC" - + "enter\\V1p1beta1\352\002(Google::Cloud::Securit" - + "yCenter::V1p1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor, - new java.lang.String[] { - "Name", "EnableAssetDiscovery", "AssetDiscoveryConfig", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor, - new java.lang.String[] { - "ProjectIds", "InclusionMode", "FolderIds", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java deleted file mode 100644 index 5260cea0f..000000000 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/resource.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class ResourceProto { - private ResourceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/securitycenter/v1p1beta1/" - + "resource.proto\022%google.cloud.securitycen" - + "ter.v1p1beta1\032\037google/api/field_behavior" - + ".proto\0322google/cloud/securitycenter/v1p1" - + "beta1/folder.proto\032\034google/api/annotatio" - + "ns.proto\"\271\001\n\010Resource\022\014\n\004name\030\001 \001(\t\022\017\n\007p" - + "roject\030\002 \001(\t\022\034\n\024project_display_name\030\003 \001" - + "(\t\022\016\n\006parent\030\004 \001(\t\022\033\n\023parent_display_nam" - + "e\030\005 \001(\t\022C\n\007folders\030\007 \003(\0132-.google.cloud." - + "securitycenter.v1p1beta1.FolderB\003\340A\003B\214\002\n" - + ")com.google.cloud.securitycenter.v1p1bet" - + "a1B\rResourceProtoP\001ZSgoogle.golang.org/g" - + "enproto/googleapis/cloud/securitycenter/" - + "v1p1beta1;securitycenter\252\002%Google.Cloud." - + "SecurityCenter.V1P1Beta1\312\002%Google\\Cloud\\" - + "SecurityCenter\\V1p1beta1\352\002(Google::Cloud" - + "::SecurityCenter::V1p1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor, - new java.lang.String[] { - "Name", "Project", "ProjectDisplayName", "Parent", "ParentDisplayName", "Folders", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequestOrBuilder.java deleted file mode 100644 index d772aa0f6..000000000 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public interface RunAssetDiscoveryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the organization to run asset discovery for. Its format is
-   * "organizations/[organization_id]".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. Name of the organization to run asset discovery for. Its format is
-   * "organizations/[organization_id]".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOuterClass.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOuterClass.java deleted file mode 100644 index 42bc686b7..000000000 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOuterClass.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class RunAssetDiscoveryResponseOuterClass { - private RunAssetDiscoveryResponseOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nHgoogle/cloud/securitycenter/v1p1beta1/" - + "run_asset_discovery_response.proto\022%goog" - + "le.cloud.securitycenter.v1p1beta1\032\036googl" - + "e/protobuf/duration.proto\032\034google/api/an" - + "notations.proto\"\356\001\n\031RunAssetDiscoveryRes" - + "ponse\022U\n\005state\030\001 \001(\0162F.google.cloud.secu" - + "ritycenter.v1p1beta1.RunAssetDiscoveryRe" - + "sponse.State\022+\n\010duration\030\002 \001(\0132\031.google." - + "protobuf.Duration\"M\n\005State\022\025\n\021STATE_UNSP" - + "ECIFIED\020\000\022\r\n\tCOMPLETED\020\001\022\016\n\nSUPERSEDED\020\002" - + "\022\016\n\nTERMINATED\020\003B\375\001\n)com.google.cloud.se" - + "curitycenter.v1p1beta1P\001ZSgoogle.golang." - + "org/genproto/googleapis/cloud/securityce" - + "nter/v1p1beta1;securitycenter\252\002%Google.C" - + "loud.SecurityCenter.V1P1Beta1\312\002%Google\\C" - + "loud\\SecurityCenter\\V1p1beta1\352\002(Google::" - + "Cloud::SecurityCenter::V1p1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DurationProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor, - new java.lang.String[] { - "State", "Duration", - }); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOuterClass.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOuterClass.java deleted file mode 100644 index a1a0033fb..000000000 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOuterClass.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/security_marks.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class SecurityMarksOuterClass { - private SecurityMarksOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n:google/cloud/securitycenter/v1p1beta1/" - + "security_marks.proto\022%google.cloud.secur" - + "itycenter.v1p1beta1\032\031google/api/resource" - + ".proto\032\034google/api/annotations.proto\"\334\004\n" - + "\rSecurityMarks\022\014\n\004name\030\001 \001(\t\022N\n\005marks\030\002 " - + "\003(\0132?.google.cloud.securitycenter.v1p1be" - + "ta1.SecurityMarks.MarksEntry\022\026\n\016canonica" - + "l_name\030\003 \001(\t\032,\n\nMarksEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001:\246\003\352A\242\003\n+securitycente" - + "r.googleapis.com/SecurityMarks\0229organiza" - + "tions/{organization}/assets/{asset}/secu" - + "rityMarks\022Norganizations/{organization}/" - + "sources/{source}/findings/{finding}/secu" - + "rityMarks\022-folders/{folder}/assets/{asse" - + "t}/securityMarks\022/projects/{project}/ass" - + "ets/{asset}/securityMarks\022Bfolders/{fold" - + "er}/sources/{source}/findings/{finding}/" - + "securityMarks\022Dprojects/{project}/source" - + "s/{source}/findings/{finding}/securityMa" - + "rksB\375\001\n)com.google.cloud.securitycenter." - + "v1p1beta1P\001ZSgoogle.golang.org/genproto/" - + "googleapis/cloud/securitycenter/v1p1beta" - + "1;securitycenter\252\002%Google.Cloud.Security" - + "Center.V1P1Beta1\312\002%Google\\Cloud\\Security" - + "Center\\V1p1beta1\352\002(Google::Cloud::Securi" - + "tyCenter::V1p1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor, - new java.lang.String[] { - "Name", "Marks", "CanonicalName", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecuritycenterService.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecuritycenterService.java deleted file mode 100644 index ef447d6d5..000000000 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecuritycenterService.java +++ /dev/null @@ -1,845 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class SecuritycenterService { - private SecuritycenterService() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nBgoogle/cloud/securitycenter/v1p1beta1/" - + "securitycenter_service.proto\022%google.clo" - + "ud.securitycenter.v1p1beta1\032@google/clou" - + "d/securitycenter/v1p1beta1/notification_" - + "message.proto\032Hgoogle/cloud/securitycent" - + "er/v1p1beta1/run_asset_discovery_respons" - + "e.proto\032\034google/api/annotations.proto\032\027g" - + "oogle/api/client.proto\032\037google/api/field" - + "_behavior.proto\032\031google/api/resource.pro" - + "to\0321google/cloud/securitycenter/v1p1beta" - + "1/asset.proto\0323google/cloud/securitycent" - + "er/v1p1beta1/finding.proto\0322google/cloud" - + "/securitycenter/v1p1beta1/folder.proto\032?" - + "google/cloud/securitycenter/v1p1beta1/no" - + "tification_config.proto\032Agoogle/cloud/se" - + "curitycenter/v1p1beta1/organization_sett" - + "ings.proto\032:google/cloud/securitycenter/" - + "v1p1beta1/security_marks.proto\0322google/c" - + "loud/securitycenter/v1p1beta1/source.pro" - + "to\032\036google/iam/v1/iam_policy.proto\032\032goog" - + "le/iam/v1/policy.proto\032#google/longrunni" - + "ng/operations.proto\032\036google/protobuf/dur" - + "ation.proto\032\033google/protobuf/empty.proto" - + "\032 google/protobuf/field_mask.proto\032\034goog" - + "le/protobuf/struct.proto\032\037google/protobu" - + "f/timestamp.proto\"\263\001\n\024CreateFindingReque" - + "st\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$securitycent" - + "er.googleapis.com/Source\022\027\n\nfinding_id\030\002" - + " \001(\tB\003\340A\002\022D\n\007finding\030\003 \001(\0132..google.clou" - + "d.securitycenter.v1p1beta1.FindingB\003\340A\002\"" - + "\340\001\n\037CreateNotificationConfigRequest\022H\n\006p" - + "arent\030\001 \001(\tB8\340A\002\372A2\n0cloudresourcemanage" - + "r.googleapis.com/Organization\022\026\n\tconfig_" - + "id\030\002 \001(\tB\003\340A\002\022[\n\023notification_config\030\003 \001" - + "(\01329.google.cloud.securitycenter.v1p1bet" - + "a1.NotificationConfigB\003\340A\002\"\243\001\n\023CreateSou" - + "rceRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0clou" - + "dresourcemanager.googleapis.com/Organiza" - + "tion\022B\n\006source\030\002 \001(\0132-.google.cloud.secu" - + "ritycenter.v1p1beta1.SourceB\003\340A\002\"i\n\037Dele" - + "teNotificationConfigRequest\022F\n\004name\030\001 \001(" - + "\tB8\340A\002\372A2\n0securitycenter.googleapis.com" - + "/NotificationConfig\"f\n\034GetNotificationCo" - + "nfigRequest\022F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0secur" - + "itycenter.googleapis.com/NotificationCon" - + "fig\"j\n\036GetOrganizationSettingsRequest\022H\n" - + "\004name\030\001 \001(\tB:\340A\002\372A4\n2securitycenter.goog" - + "leapis.com/OrganizationSettings\"N\n\020GetSo" - + "urceRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$secur" - + "itycenter.googleapis.com/Source\"\203\002\n\022Grou" - + "pAssetsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#" - + "securitycenter.googleapis.com/Asset\022\016\n\006f" - + "ilter\030\002 \001(\t\022\025\n\010group_by\030\003 \001(\tB\003\340A\002\0223\n\020co" - + "mpare_duration\030\004 \001(\0132\031.google.protobuf.D" - + "uration\022-\n\tread_time\030\005 \001(\0132\032.google.prot" - + "obuf.Timestamp\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpa" - + "ge_size\030\010 \001(\005\"\277\001\n\023GroupAssetsResponse\022L\n" - + "\020group_by_results\030\001 \003(\01322.google.cloud.s" - + "ecuritycenter.v1p1beta1.GroupResult\022-\n\tr" - + "ead_time\030\002 \001(\0132\032.google.protobuf.Timesta" - + "mp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_siz" - + "e\030\004 \001(\005\"\206\002\n\024GroupFindingsRequest\022<\n\006pare" - + "nt\030\001 \001(\tB,\340A\002\372A&\n$securitycenter.googlea" - + "pis.com/Source\022\016\n\006filter\030\002 \001(\t\022\025\n\010group_" - + "by\030\003 \001(\tB\003\340A\002\022-\n\tread_time\030\004 \001(\0132\032.googl" - + "e.protobuf.Timestamp\0223\n\020compare_duration" - + "\030\005 \001(\0132\031.google.protobuf.Duration\022\022\n\npag" - + "e_token\030\007 \001(\t\022\021\n\tpage_size\030\010 \001(\005\"\301\001\n\025Gro" - + "upFindingsResponse\022L\n\020group_by_results\030\001" - + " \003(\01322.google.cloud.securitycenter.v1p1b" - + "eta1.GroupResult\022-\n\tread_time\030\002 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022\027\n\017next_page_tok" - + "en\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\277\001\n\013GroupRe" - + "sult\022V\n\nproperties\030\001 \003(\0132B.google.cloud." - + "securitycenter.v1p1beta1.GroupResult.Pro" - + "pertiesEntry\022\r\n\005count\030\002 \001(\003\032I\n\017Propertie" - + "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo" - + "gle.protobuf.Value:\0028\001\"\221\001\n\036ListNotificat" - + "ionConfigsRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A" - + "2\n0cloudresourcemanager.googleapis.com/O" - + "rganization\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_" - + "size\030\003 \001(\005\"\223\001\n\037ListNotificationConfigsRe" - + "sponse\022W\n\024notification_configs\030\001 \003(\01329.g" - + "oogle.cloud.securitycenter.v1p1beta1.Not" - + "ificationConfig\022\027\n\017next_page_token\030\002 \001(\t" - + "\"y\n\022ListSourcesRequest\022<\n\006parent\030\001 \001(\tB," - + "\340A\002\372A&\022$securitycenter.googleapis.com/So" - + "urce\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\007 " - + "\001(\005\"n\n\023ListSourcesResponse\022>\n\007sources\030\001 " - + "\003(\0132-.google.cloud.securitycenter.v1p1be" - + "ta1.Source\022\027\n\017next_page_token\030\002 \001(\t\"\255\002\n\021" - + "ListAssetsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A" - + "%\022#securitycenter.googleapis.com/Asset\022\016" - + "\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\tread" - + "_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022" - + "3\n\020compare_duration\030\005 \001(\0132\031.google.proto" - + "buf.Duration\022.\n\nfield_mask\030\007 \001(\0132\032.googl" - + "e.protobuf.FieldMask\022\022\n\npage_token\030\010 \001(\t" - + "\022\021\n\tpage_size\030\t \001(\005\"\330\003\n\022ListAssetsRespon" - + "se\022g\n\023list_assets_results\030\001 \003(\0132J.google" - + ".cloud.securitycenter.v1p1beta1.ListAsse" - + "tsResponse.ListAssetsResult\022-\n\tread_time" - + "\030\002 \001(\0132\032.google.protobuf.Timestamp\022\027\n\017ne" - + "xt_page_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\032" - + "\374\001\n\020ListAssetsResult\022;\n\005asset\030\001 \001(\0132,.go" - + "ogle.cloud.securitycenter.v1p1beta1.Asse" - + "t\022l\n\014state_change\030\002 \001(\0162V.google.cloud.s" - + "ecuritycenter.v1p1beta1.ListAssetsRespon" - + "se.ListAssetsResult.StateChange\"=\n\013State" - + "Change\022\n\n\006UNUSED\020\000\022\t\n\005ADDED\020\001\022\013\n\007REMOVED" - + "\020\002\022\n\n\006ACTIVE\020\003\"\260\002\n\023ListFindingsRequest\022<" - + "\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$securitycenter.g" - + "oogleapis.com/Source\022\016\n\006filter\030\002 \001(\t\022\020\n\010" - + "order_by\030\003 \001(\t\022-\n\tread_time\030\004 \001(\0132\032.goog" - + "le.protobuf.Timestamp\0223\n\020compare_duratio" - + "n\030\005 \001(\0132\031.google.protobuf.Duration\022.\n\nfi" - + "eld_mask\030\007 \001(\0132\032.google.protobuf.FieldMa" - + "sk\022\022\n\npage_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(" - + "\005\"\253\006\n\024ListFindingsResponse\022m\n\025list_findi" - + "ngs_results\030\001 \003(\0132N.google.cloud.securit" - + "ycenter.v1p1beta1.ListFindingsResponse.L" - + "istFindingsResult\022-\n\tread_time\030\002 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\022\027\n\017next_page_to" - + "ken\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\032\307\004\n\022ListFi" - + "ndingsResult\022?\n\007finding\030\001 \001(\0132..google.c" - + "loud.securitycenter.v1p1beta1.Finding\022p\n" - + "\014state_change\030\002 \001(\0162Z.google.cloud.secur" - + "itycenter.v1p1beta1.ListFindingsResponse" - + ".ListFindingsResult.StateChange\022n\n\010resou" - + "rce\030\003 \001(\0132W.google.cloud.securitycenter." - + "v1p1beta1.ListFindingsResponse.ListFindi" - + "ngsResult.ResourceB\003\340A\003\032\276\001\n\010Resource\022\014\n\004" - + "name\030\001 \001(\t\022\024\n\014project_name\030\002 \001(\t\022\034\n\024proj" - + "ect_display_name\030\003 \001(\t\022\023\n\013parent_name\030\004 " - + "\001(\t\022\033\n\023parent_display_name\030\005 \001(\t\022>\n\007fold" - + "ers\030\n \003(\0132-.google.cloud.securitycenter." - + "v1p1beta1.Folder\"M\n\013StateChange\022\n\n\006UNUSE" - + "D\020\000\022\013\n\007CHANGED\020\001\022\r\n\tUNCHANGED\020\002\022\t\n\005ADDED" - + "\020\003\022\013\n\007REMOVED\020\004\"\324\001\n\026SetFindingStateReque" - + "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%securitycenter" - + ".googleapis.com/Finding\022H\n\005state\030\002 \001(\01624" - + ".google.cloud.securitycenter.v1p1beta1.F" - + "inding.StateB\003\340A\002\0223\n\nstart_time\030\003 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\002\"d\n\030RunAss" - + "etDiscoveryRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372" - + "A2\n0cloudresourcemanager.googleapis.com/" - + "Organization\"\215\001\n\024UpdateFindingRequest\022D\n" - + "\007finding\030\001 \001(\0132..google.cloud.securityce" - + "nter.v1p1beta1.FindingB\003\340A\002\022/\n\013update_ma" - + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"\257\001\n" - + "\037UpdateNotificationConfigRequest\022[\n\023noti" - + "fication_config\030\001 \001(\01329.google.cloud.sec" - + "uritycenter.v1p1beta1.NotificationConfig" - + "B\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMask\"\265\001\n!UpdateOrganizationSet" - + "tingsRequest\022_\n\025organization_settings\030\001 " - + "\001(\0132;.google.cloud.securitycenter.v1p1be" - + "ta1.OrganizationSettingsB\003\340A\002\022/\n\013update_" - + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\212" - + "\001\n\023UpdateSourceRequest\022B\n\006source\030\001 \001(\0132-" - + ".google.cloud.securitycenter.v1p1beta1.S" - + "ourceB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google" - + ".protobuf.FieldMask\"\320\001\n\032UpdateSecurityMa" - + "rksRequest\022Q\n\016security_marks\030\001 \001(\01324.goo" - + "gle.cloud.securitycenter.v1p1beta1.Secur" - + "ityMarksB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.goo" - + "gle.protobuf.FieldMask\022.\n\nstart_time\030\003 \001" - + "(\0132\032.google.protobuf.Timestamp2\3703\n\016Secur" - + "ityCenter\022\306\001\n\014CreateSource\022:.google.clou" - + "d.securitycenter.v1p1beta1.CreateSourceR" - + "equest\032-.google.cloud.securitycenter.v1p" - + "1beta1.Source\"K\202\323\344\223\0025\"+/v1p1beta1/{paren" - + "t=organizations/*}/sources:\006source\332A\rpar" - + "ent,source\022\375\001\n\rCreateFinding\022;.google.cl" - + "oud.securitycenter.v1p1beta1.CreateFindi" - + "ngRequest\032..google.cloud.securitycenter." - + "v1p1beta1.Finding\"\177\202\323\344\223\002A\"6/v1p1beta1/{p" - + "arent=organizations/*/sources/*}/finding" - + "s:\007finding\332A\031parent,finding_id,finding\332A" - + "\031parent,finding,finding_id\022\270\002\n\030CreateNot" - + "ificationConfig\022F.google.cloud.securityc" - + "enter.v1p1beta1.CreateNotificationConfig" - + "Request\0329.google.cloud.securitycenter.v1" - + "p1beta1.NotificationConfig\"\230\001\202\323\344\223\002N\"7/v1" - + "p1beta1/{parent=organizations/*}/notific" - + "ationConfigs:\023notification_config\332A$pare" - + "nt,config_id,notification_config\332A\032paren" - + "t,notification_config\022\302\001\n\030DeleteNotifica" - + "tionConfig\022F.google.cloud.securitycenter" - + ".v1p1beta1.DeleteNotificationConfigReque" - + "st\032\026.google.protobuf.Empty\"F\202\323\344\223\0029*7/v1p" - + "1beta1/{name=organizations/*/notificatio" - + "nConfigs/*}\332A\004name\022\235\001\n\014GetIamPolicy\022\".go" - + "ogle.iam.v1.GetIamPolicyRequest\032\025.google" - + ".iam.v1.Policy\"R\202\323\344\223\002A\"\"9/v1p1beta1/{name=folders/*/source" - + "s/*/findings/*}:setState:\001*Z?\":/v1p1beta" - + "1/{name=projects/*/sources/*/findings/*}" - + ":setState:\001*\332A\025name,state,start_time\022\244\001\n" - + "\014SetIamPolicy\022\".google.iam.v1.SetIamPoli" - + "cyRequest\032\025.google.iam.v1.Policy\"Y\202\323\344\223\002A" - + "\"/v1p1bet" - + "a1/{finding.name=organizations/*/sources" - + "/*/findings/*}:\007findingZC28/v1p1beta1/{f" - + "inding.name=folders/*/sources/*/findings" - + "/*}:\007findingZD29/v1p1beta1/{finding.name" - + "=projects/*/sources/*/findings/*}:\007findi" - + "ng\332A\007finding\332A\023finding,update_mask\022\300\002\n\030U" - + "pdateNotificationConfig\022F.google.cloud.s" - + "ecuritycenter.v1p1beta1.UpdateNotificati" - + "onConfigRequest\0329.google.cloud.securityc" - + "enter.v1p1beta1.NotificationConfig\"\240\001\202\323\344" - + "\223\002b2K/v1p1beta1/{notification_config.nam" - + "e=organizations/*/notificationConfigs/*}" - + ":\023notification_config\332A\023notification_con" - + "fig\332A\037notification_config,update_mask\022\251\002" - + "\n\032UpdateOrganizationSettings\022H.google.cl" - + "oud.securitycenter.v1p1beta1.UpdateOrgan" - + "izationSettingsRequest\032;.google.cloud.se" - + "curitycenter.v1p1beta1.OrganizationSetti" - + "ngs\"\203\001\202\323\344\223\002e2L/v1p1beta1/{organization_s" - + "ettings.name=organizations/*/organizatio" - + "nSettings}:\025organization_settings\332A\025orga" - + "nization_settings\022\333\001\n\014UpdateSource\022:.goo" - + "gle.cloud.securitycenter.v1p1beta1.Updat" - + "eSourceRequest\032-.google.cloud.securityce" - + "nter.v1p1beta1.Source\"`\202\323\344\223\002<22/v1p1beta" - + "1/{source.name=organizations/*/sources/*" - + "}:\006source\332A\006source\332A\022source,update_mask\022" - + "\364\005\n\023UpdateSecurityMarks\022A.google.cloud.s" - + "ecuritycenter.v1p1beta1.UpdateSecurityMa" - + "rksRequest\0324.google.cloud.securitycenter" - + ".v1p1beta1.SecurityMarks\"\343\004\202\323\344\223\002\256\0042G/v1p" - + "1beta1/{security_marks.name=organization" - + "s/*/assets/*/securityMarks}:\016security_ma" - + "rksZS2A/v1p1beta1/{security_marks.name=f" - + "olders/*/assets/*/securityMarks}:\016securi" - + "ty_marksZT2B/v1p1beta1/{security_marks.n" - + "ame=projects/*/assets/*/securityMarks}:\016" - + "security_marksZe2S/v1p1beta1/{security_m" - + "arks.name=organizations/*/sources/*/find" - + "ings/*/securityMarks}:\016security_marksZ_2" - + "M/v1p1beta1/{security_marks.name=folders" - + "/*/sources/*/findings/*/securityMarks}:\016" - + "security_marksZ`2N/v1p1beta1/{security_m" - + "arks.name=projects/*/sources/*/findings/" - + "*/securityMarks}:\016security_marks\332A\016secur" - + "ity_marks\332A\032security_marks,update_mask\032Q" - + "\312A\035securitycenter.googleapis.com\322A.https" - + "://www.googleapis.com/auth/cloud-platfor" - + "mB\375\001\n)com.google.cloud.securitycenter.v1" - + "p1beta1P\001ZSgoogle.golang.org/genproto/go" - + "ogleapis/cloud/securitycenter/v1p1beta1;" - + "securitycenter\252\002%Google.Cloud.SecurityCe" - + "nter.V1P1Beta1\312\002%Google\\Cloud\\SecurityCe" - + "nter\\V1p1beta1\352\002(Google::Cloud::Security" - + "Center::V1p1beta1P\000P\001b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass - .getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass - .getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass - .getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass - .getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor, - new java.lang.String[] { - "Parent", "FindingId", "Finding", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor, - new java.lang.String[] { - "Parent", "ConfigId", "NotificationConfig", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor, - new java.lang.String[] { - "Parent", "Source", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "GroupBy", "CompareDuration", "ReadTime", "PageToken", "PageSize", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor, - new java.lang.String[] { - "GroupByResults", "ReadTime", "NextPageToken", "TotalSize", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "GroupBy", "ReadTime", "CompareDuration", "PageToken", "PageSize", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor, - new java.lang.String[] { - "GroupByResults", "ReadTime", "NextPageToken", "TotalSize", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor, - new java.lang.String[] { - "Properties", "Count", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor, - new java.lang.String[] { - "NotificationConfigs", "NextPageToken", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor, - new java.lang.String[] { - "Sources", "NextPageToken", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor, - new java.lang.String[] { - "Parent", - "Filter", - "OrderBy", - "ReadTime", - "CompareDuration", - "FieldMask", - "PageToken", - "PageSize", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor, - new java.lang.String[] { - "ListAssetsResults", "ReadTime", "NextPageToken", "TotalSize", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor, - new java.lang.String[] { - "Asset", "StateChange", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor, - new java.lang.String[] { - "Parent", - "Filter", - "OrderBy", - "ReadTime", - "CompareDuration", - "FieldMask", - "PageToken", - "PageSize", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor, - new java.lang.String[] { - "ListFindingsResults", "ReadTime", "NextPageToken", "TotalSize", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor, - new java.lang.String[] { - "Finding", "StateChange", "Resource", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor, - new java.lang.String[] { - "Name", - "ProjectName", - "ProjectDisplayName", - "ParentName", - "ParentDisplayName", - "Folders", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor, - new java.lang.String[] { - "Name", "State", "StartTime", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor, - new java.lang.String[] { - "Parent", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor, - new java.lang.String[] { - "Finding", "UpdateMask", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor, - new java.lang.String[] { - "NotificationConfig", "UpdateMask", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor, - new java.lang.String[] { - "OrganizationSettings", "UpdateMask", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor, - new java.lang.String[] { - "Source", "UpdateMask", - }); - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor, - new java.lang.String[] { - "SecurityMarks", "UpdateMask", "StartTime", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOuterClass.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOuterClass.java deleted file mode 100644 index 0f1b1786b..000000000 --- a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOuterClass.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/source.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class SourceOuterClass { - private SourceOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_Source_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/securitycenter/v1p1beta1/" - + "source.proto\022%google.cloud.securitycente" - + "r.v1p1beta1\032\031google/api/resource.proto\032\034" - + "google/api/annotations.proto\"\375\001\n\006Source\022" - + "\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013d" - + "escription\030\003 \001(\t\022\026\n\016canonical_name\030\016 \001(\t" - + ":\241\001\352A\235\001\n$securitycenter.googleapis.com/S" - + "ource\022-organizations/{organization}/sour" - + "ces/{source}\022!folders/{folder}/sources/{" - + "source}\022#projects/{project}/sources/{sou" - + "rce}B\375\001\n)com.google.cloud.securitycenter" - + ".v1p1beta1P\001ZSgoogle.golang.org/genproto" - + "/googleapis/cloud/securitycenter/v1p1bet" - + "a1;securitycenter\252\002%Google.Cloud.Securit" - + "yCenter.V1P1Beta1\312\002%Google\\Cloud\\Securit" - + "yCenter\\V1p1beta1\352\002(Google::Cloud::Secur" - + "ityCenter::V1p1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_Source_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor, - new java.lang.String[] { - "Name", "DisplayName", "Description", "CanonicalName", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From c9974db74d92df40fb4889a6873a9bb488553190 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:06:06 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../v1/SecurityCenterClient.java | 142 +- .../v1/SecurityCenterSettings.java | 16 +- .../securitycenter/v1/gapic_metadata.json | 0 .../cloud/securitycenter/v1/package-info.java | 0 .../GrpcSecurityCenterCallableFactory.java | 0 .../v1/stub/GrpcSecurityCenterStub.java | 1 - ...HttpJsonSecurityCenterCallableFactory.java | 0 .../v1/stub/HttpJsonSecurityCenterStub.java | 1 - .../v1/stub/SecurityCenterStub.java | 0 .../v1/stub/SecurityCenterStubSettings.java | 45 +- .../v1beta1/SecurityCenterClient.java | 80 +- .../v1beta1/SecurityCenterSettings.java | 7 +- .../v1beta1/gapic_metadata.json | 0 .../securitycenter/v1beta1/package-info.java | 0 .../GrpcSecurityCenterCallableFactory.java | 0 .../v1beta1/stub/GrpcSecurityCenterStub.java | 1 - ...HttpJsonSecurityCenterCallableFactory.java | 0 .../stub/HttpJsonSecurityCenterStub.java | 1 - .../v1beta1/stub/SecurityCenterStub.java | 0 .../stub/SecurityCenterStubSettings.java | 6 +- .../v1p1beta1/SecurityCenterClient.java | 114 +- .../v1p1beta1/SecurityCenterSettings.java | 13 +- .../v1p1beta1/gapic_metadata.json | 0 .../v1p1beta1/package-info.java | 0 .../GrpcSecurityCenterCallableFactory.java | 0 .../stub/GrpcSecurityCenterStub.java | 1 - ...HttpJsonSecurityCenterCallableFactory.java | 0 .../stub/HttpJsonSecurityCenterStub.java | 1 - .../v1p1beta1/stub/SecurityCenterStub.java | 0 .../stub/SecurityCenterStubSettings.java | 36 +- .../securitycenter/v1/MockSecurityCenter.java | 0 .../v1/MockSecurityCenterImpl.java | 0 .../v1/SecurityCenterClientHttpJsonTest.java | 0 .../v1/SecurityCenterClientTest.java | 0 .../v1beta1/MockSecurityCenter.java | 0 .../v1beta1/MockSecurityCenterImpl.java | 0 .../SecurityCenterClientHttpJsonTest.java | 0 .../v1beta1/SecurityCenterClientTest.java | 0 .../v1p1beta1/MockSecurityCenter.java | 0 .../v1p1beta1/MockSecurityCenterImpl.java | 0 .../SecurityCenterClientHttpJsonTest.java | 0 .../v1p1beta1/SecurityCenterClientTest.java | 0 .../securitycenter/v1/SecurityCenterGrpc.java | 4634 +++++++++++++++++ .../v1beta1/SecurityCenterGrpc.java | 2437 +++++++++ .../v1p1beta1/SecurityCenterGrpc.java | 3087 +++++++++++ .../securitycenter/v1/SecurityCenterGrpc.java | 3397 ------------ .../cloud/securitycenter/v1/AccessProto.java | 70 - .../securitycenter/v1/AssetOuterClass.java | 133 - .../v1/BigQueryExportProto.java | 79 - .../v1/BulkMuteFindingsResponseOrBuilder.java | 9 - .../securitycenter/v1/ComplianceProto.java | 55 - .../securitycenter/v1/ConnectionProto.java | 60 - .../DeleteBigQueryExportRequestOrBuilder.java | 35 - .../v1/DeleteMuteConfigRequestOrBuilder.java | 35 - ...eteNotificationConfigRequestOrBuilder.java | 31 - .../securitycenter/v1/ExfiltrationProto.java | 70 - .../v1/ExternalSystemProto.java | 76 - .../cloud/securitycenter/v1/FileProto.java | 56 - .../securitycenter/v1/FindingOuterClass.java | 183 - .../cloud/securitycenter/v1/FolderProto.java | 55 - .../v1/GeolocationOrBuilder.java | 29 - .../v1/GetBigQueryExportRequestOrBuilder.java | 35 - .../v1/GetMuteConfigRequestOrBuilder.java | 35 - ...GetNotificationConfigRequestOrBuilder.java | 31 - ...tOrganizationSettingsRequestOrBuilder.java | 31 - .../v1/GetSourceRequestOrBuilder.java | 31 - .../securitycenter/v1/IamBindingProto.java | 58 - .../securitycenter/v1/IndicatorProto.java | 55 - .../securitycenter/v1/MitreAttackProto.java | 92 - .../securitycenter/v1/MuteConfigProto.java | 79 - .../v1/NotificationConfigProto.java | 91 - .../v1/NotificationMessageProto.java | 65 - .../v1/OrganizationSettingsOuterClass.java | 86 - .../cloud/securitycenter/v1/ProcessProto.java | 78 - .../securitycenter/v1/ResourceProto.java | 70 - .../v1/RunAssetDiscoveryRequestOrBuilder.java | 31 - .../RunAssetDiscoveryResponseOuterClass.java | 62 - .../v1/SecurityMarksOuterClass.java | 87 - .../v1/SecuritycenterService.java | 1085 ---- .../securitycenter/v1/SourceOuterClass.java | 67 - .../securitycenter/v1/VulnerabilityProto.java | 127 - .../v1beta1/SecurityCenterGrpc.java | 1813 ------- .../v1beta1/AssetOuterClass.java | 114 - .../v1beta1/FindingOuterClass.java | 103 - ...tOrganizationSettingsRequestOrBuilder.java | 31 - .../v1beta1/GetSourceRequestOrBuilder.java | 31 - .../OrganizationSettingsOuterClass.java | 86 - .../RunAssetDiscoveryRequestOrBuilder.java | 31 - .../RunAssetDiscoveryResponseOuterClass.java | 63 - .../v1beta1/SecurityMarksOuterClass.java | 81 - .../v1beta1/SecuritycenterService.java | 554 -- .../v1beta1/SourceOuterClass.java | 65 - .../v1p1beta1/SecurityCenterGrpc.java | 2255 -------- .../v1p1beta1/AssetOuterClass.java | 138 - ...eteNotificationConfigRequestOrBuilder.java | 31 - .../v1p1beta1/FindingOuterClass.java | 114 - .../securitycenter/v1p1beta1/FolderProto.java | 59 - ...GetNotificationConfigRequestOrBuilder.java | 31 - ...tOrganizationSettingsRequestOrBuilder.java | 31 - .../v1p1beta1/GetSourceRequestOrBuilder.java | 31 - .../NotificationConfigOuterClass.java | 98 - .../NotificationMessageOuterClass.java | 69 - .../OrganizationSettingsOuterClass.java | 90 - .../v1p1beta1/ResourceProto.java | 73 - .../RunAssetDiscoveryRequestOrBuilder.java | 31 - .../RunAssetDiscoveryResponseOuterClass.java | 66 - .../v1p1beta1/SecurityMarksOuterClass.java | 91 - .../v1p1beta1/SecuritycenterService.java | 769 --- .../v1p1beta1/SourceOuterClass.java | 71 - .../cloud/securitycenter/v1/Access.java | 717 +-- .../securitycenter/v1/AccessOrBuilder.java | 71 +- .../cloud/securitycenter/v1/AccessProto.java | 89 + .../google/cloud/securitycenter/v1/Asset.java | 2655 ++++++---- .../cloud/securitycenter/v1/AssetName.java | 0 .../securitycenter/v1/AssetOrBuilder.java | 122 +- .../securitycenter/v1/AssetOuterClass.java | 166 + .../securitycenter/v1/BigQueryExport.java | 986 ++-- .../securitycenter/v1/BigQueryExportName.java | 0 .../v1/BigQueryExportOrBuilder.java | 106 +- .../v1/BigQueryExportProto.java | 101 + .../v1/BulkMuteFindingsRequest.java | 543 +- .../v1/BulkMuteFindingsRequestOrBuilder.java | 65 +- .../v1/BulkMuteFindingsResponse.java | 238 +- .../v1/BulkMuteFindingsResponseOrBuilder.java | 24 + .../cloud/securitycenter/v1/Compliance.java | 488 +- .../v1/ComplianceOrBuilder.java | 54 +- .../securitycenter/v1/ComplianceProto.java | 68 + .../cloud/securitycenter/v1/Connection.java | 605 ++- .../v1/ConnectionOrBuilder.java | 48 +- .../securitycenter/v1/ConnectionProto.java | 73 + .../v1/CreateBigQueryExportRequest.java | 586 ++- .../CreateBigQueryExportRequestOrBuilder.java | 64 +- .../v1/CreateFindingRequest.java | 570 +- .../v1/CreateFindingRequestOrBuilder.java | 64 +- .../v1/CreateMuteConfigRequest.java | 567 +- .../v1/CreateMuteConfigRequestOrBuilder.java | 64 +- .../v1/CreateNotificationConfigRequest.java | 619 ++- ...ateNotificationConfigRequestOrBuilder.java | 64 +- .../v1/CreateSourceRequest.java | 491 +- .../v1/CreateSourceRequestOrBuilder.java | 55 +- .../google/cloud/securitycenter/v1/Cve.java | 582 ++- .../cloud/securitycenter/v1/CveOrBuilder.java | 56 +- .../cloud/securitycenter/v1/Cvssv3.java | 1236 +++-- .../securitycenter/v1/Cvssv3OrBuilder.java | 69 +- .../v1/DeleteBigQueryExportRequest.java | 360 +- .../DeleteBigQueryExportRequestOrBuilder.java | 60 + .../v1/DeleteMuteConfigRequest.java | 342 +- .../v1/DeleteMuteConfigRequestOrBuilder.java | 60 + .../v1/DeleteNotificationConfigRequest.java | 378 +- ...eteNotificationConfigRequestOrBuilder.java | 56 + .../v1/EnvironmentVariable.java | 393 +- .../v1/EnvironmentVariableOrBuilder.java | 36 +- .../securitycenter/v1/ExfilResource.java | 419 +- .../v1/ExfilResourceOrBuilder.java | 45 +- .../cloud/securitycenter/v1/Exfiltration.java | 521 +- .../v1/ExfiltrationOrBuilder.java | 54 +- .../securitycenter/v1/ExfiltrationProto.java | 84 + .../securitycenter/v1/ExternalSystem.java | 679 ++- .../v1/ExternalSystemOrBuilder.java | 71 +- .../v1/ExternalSystemProto.java | 91 + .../google/cloud/securitycenter/v1/File.java | 567 +- .../securitycenter/v1/FileOrBuilder.java | 54 +- .../cloud/securitycenter/v1/FileProto.java | 69 + .../cloud/securitycenter/v1/Finding.java | 3587 ++++++++----- .../cloud/securitycenter/v1/FindingName.java | 0 .../securitycenter/v1/FindingOrBuilder.java | 371 +- .../securitycenter/v1/FindingOuterClass.java | 227 + .../cloud/securitycenter/v1/Folder.java | 383 +- .../cloud/securitycenter/v1/FolderName.java | 0 .../securitycenter/v1/FolderOrBuilder.java | 36 +- .../cloud/securitycenter/v1/FolderProto.java | 68 + .../cloud/securitycenter/v1/Geolocation.java | 301 +- .../v1/GeolocationOrBuilder.java | 50 + .../v1/GetBigQueryExportRequest.java | 342 +- .../v1/GetBigQueryExportRequestOrBuilder.java | 60 + .../v1/GetMuteConfigRequest.java | 342 +- .../v1/GetMuteConfigRequestOrBuilder.java | 60 + .../v1/GetNotificationConfigRequest.java | 363 +- ...GetNotificationConfigRequestOrBuilder.java | 56 + .../v1/GetOrganizationSettingsRequest.java | 374 +- ...tOrganizationSettingsRequestOrBuilder.java | 56 + .../securitycenter/v1/GetSourceRequest.java | 339 +- .../v1/GetSourceRequestOrBuilder.java | 56 + .../securitycenter/v1/GroupAssetsRequest.java | 801 +-- .../v1/GroupAssetsRequestOrBuilder.java | 81 +- .../v1/GroupAssetsResponse.java | 566 +- .../v1/GroupAssetsResponseOrBuilder.java | 56 +- .../v1/GroupFindingsRequest.java | 801 +-- .../v1/GroupFindingsRequestOrBuilder.java | 81 +- .../v1/GroupFindingsResponse.java | 566 +- .../v1/GroupFindingsResponseOrBuilder.java | 56 +- .../cloud/securitycenter/v1/GroupResult.java | 509 +- .../v1/GroupResultOrBuilder.java | 52 +- .../cloud/securitycenter/v1/IamBinding.java | 514 +- .../v1/IamBindingOrBuilder.java | 42 +- .../securitycenter/v1/IamBindingProto.java | 71 + .../cloud/securitycenter/v1/Indicator.java | 443 +- .../securitycenter/v1/IndicatorOrBuilder.java | 54 +- .../securitycenter/v1/IndicatorProto.java | 68 + .../securitycenter/v1/ListAssetsRequest.java | 886 ++-- .../v1/ListAssetsRequestOrBuilder.java | 89 +- .../securitycenter/v1/ListAssetsResponse.java | 1310 +++-- .../v1/ListAssetsResponseOrBuilder.java | 80 +- .../v1/ListBigQueryExportsRequest.java | 463 +- .../ListBigQueryExportsRequestOrBuilder.java | 47 +- .../v1/ListBigQueryExportsResponse.java | 468 +- .../ListBigQueryExportsResponseOrBuilder.java | 45 +- .../v1/ListFindingsRequest.java | 889 ++-- .../v1/ListFindingsRequestOrBuilder.java | 89 +- .../v1/ListFindingsResponse.java | 2737 ++++++---- .../v1/ListFindingsResponseOrBuilder.java | 81 +- .../v1/ListMuteConfigsRequest.java | 455 +- .../v1/ListMuteConfigsRequestOrBuilder.java | 47 +- .../v1/ListMuteConfigsResponse.java | 461 +- .../v1/ListMuteConfigsResponseOrBuilder.java | 45 +- .../v1/ListNotificationConfigsRequest.java | 487 +- ...stNotificationConfigsRequestOrBuilder.java | 47 +- .../v1/ListNotificationConfigsResponse.java | 587 ++- ...tNotificationConfigsResponseOrBuilder.java | 56 +- .../securitycenter/v1/ListSourcesRequest.java | 455 +- .../v1/ListSourcesRequestOrBuilder.java | 47 +- .../v1/ListSourcesResponse.java | 463 +- .../v1/ListSourcesResponseOrBuilder.java | 45 +- .../cloud/securitycenter/v1/MitreAttack.java | 1391 +++-- .../v1/MitreAttackOrBuilder.java | 138 +- .../securitycenter/v1/MitreAttackProto.java | 109 + .../cloud/securitycenter/v1/MuteConfig.java | 938 ++-- .../securitycenter/v1/MuteConfigName.java | 0 .../v1/MuteConfigOrBuilder.java | 109 +- .../securitycenter/v1/MuteConfigProto.java | 100 + .../securitycenter/v1/NotificationConfig.java | 1154 ++-- .../v1/NotificationConfigName.java | 0 .../v1/NotificationConfigOrBuilder.java | 77 +- .../v1/NotificationConfigProto.java | 114 + .../v1/NotificationMessage.java | 559 +- .../v1/NotificationMessageOrBuilder.java | 43 +- .../v1/NotificationMessageProto.java | 80 + .../securitycenter/v1/OrganizationName.java | 0 .../v1/OrganizationSettings.java | 1316 +++-- .../v1/OrganizationSettingsName.java | 0 .../v1/OrganizationSettingsOrBuilder.java | 56 +- .../v1/OrganizationSettingsOuterClass.java | 104 + .../cloud/securitycenter/v1/Process.java | 970 ++-- .../securitycenter/v1/ProcessOrBuilder.java | 97 +- .../cloud/securitycenter/v1/ProcessProto.java | 102 + .../cloud/securitycenter/v1/ProjectName.java | 0 .../cloud/securitycenter/v1/Reference.java | 380 +- .../securitycenter/v1/ReferenceOrBuilder.java | 36 +- .../cloud/securitycenter/v1/Resource.java | 1018 ++-- .../securitycenter/v1/ResourceOrBuilder.java | 119 +- .../securitycenter/v1/ResourceProto.java | 92 + .../v1/RunAssetDiscoveryRequest.java | 342 +- .../v1/RunAssetDiscoveryRequestOrBuilder.java | 56 + .../v1/RunAssetDiscoveryResponse.java | 480 +- .../RunAssetDiscoveryResponseOrBuilder.java | 32 +- .../RunAssetDiscoveryResponseOuterClass.java | 77 + .../securitycenter/v1/SecurityMarks.java | 650 +-- .../v1/SecurityMarksOrBuilder.java | 67 +- .../v1/SecurityMarksOuterClass.java | 105 + .../v1/SecuritycenterService.java | 1174 +++++ .../v1/SetFindingStateRequest.java | 554 +- .../v1/SetFindingStateRequestOrBuilder.java | 66 +- .../securitycenter/v1/SetMuteRequest.java | 423 +- .../v1/SetMuteRequestOrBuilder.java | 49 +- .../cloud/securitycenter/v1/Source.java | 540 +- .../cloud/securitycenter/v1/SourceName.java | 0 .../securitycenter/v1/SourceOrBuilder.java | 54 +- .../securitycenter/v1/SourceOuterClass.java | 82 + .../v1/UpdateBigQueryExportRequest.java | 499 +- .../UpdateBigQueryExportRequestOrBuilder.java | 46 +- .../v1/UpdateExternalSystemRequest.java | 499 +- .../UpdateExternalSystemRequestOrBuilder.java | 46 +- .../v1/UpdateFindingRequest.java | 483 +- .../v1/UpdateFindingRequestOrBuilder.java | 46 +- .../v1/UpdateMuteConfigRequest.java | 480 +- .../v1/UpdateMuteConfigRequestOrBuilder.java | 46 +- .../v1/UpdateNotificationConfigRequest.java | 532 +- ...ateNotificationConfigRequestOrBuilder.java | 46 +- .../v1/UpdateOrganizationSettingsRequest.java | 534 +- ...eOrganizationSettingsRequestOrBuilder.java | 49 +- .../v1/UpdateSecurityMarksRequest.java | 576 +- .../UpdateSecurityMarksRequestOrBuilder.java | 54 +- .../v1/UpdateSourceRequest.java | 483 +- .../v1/UpdateSourceRequestOrBuilder.java | 46 +- .../securitycenter/v1/Vulnerability.java | 325 +- .../v1/VulnerabilityOrBuilder.java | 26 +- .../securitycenter/v1/VulnerabilityProto.java | 151 + .../cloud/securitycenter/v1/access.proto | 0 .../cloud/securitycenter/v1/asset.proto | 0 .../securitycenter/v1/bigquery_export.proto | 0 .../cloud/securitycenter/v1/compliance.proto | 0 .../cloud/securitycenter/v1/connection.proto | 0 .../securitycenter/v1/exfiltration.proto | 0 .../securitycenter/v1/external_system.proto | 0 .../google/cloud/securitycenter/v1/file.proto | 0 .../cloud/securitycenter/v1/finding.proto | 0 .../cloud/securitycenter/v1/folder.proto | 0 .../cloud/securitycenter/v1/iam_binding.proto | 0 .../cloud/securitycenter/v1/indicator.proto | 0 .../securitycenter/v1/mitre_attack.proto | 0 .../cloud/securitycenter/v1/mute_config.proto | 0 .../v1/notification_config.proto | 0 .../v1/notification_message.proto | 0 .../v1/organization_settings.proto | 0 .../cloud/securitycenter/v1/process.proto | 0 .../cloud/securitycenter/v1/resource.proto | 0 .../v1/run_asset_discovery_response.proto | 0 .../securitycenter/v1/security_marks.proto | 0 .../v1/securitycenter_service.proto | 0 .../cloud/securitycenter/v1/source.proto | 0 .../securitycenter/v1/vulnerability.proto | 0 .../cloud/securitycenter/v1beta1/Asset.java | 1766 ++++--- .../v1beta1/AssetOrBuilder.java | 108 +- .../v1beta1/AssetOuterClass.java | 140 + .../v1beta1/CreateFindingRequest.java | 574 +- .../CreateFindingRequestOrBuilder.java | 64 +- .../v1beta1/CreateSourceRequest.java | 488 +- .../v1beta1/CreateSourceRequestOrBuilder.java | 55 +- .../cloud/securitycenter/v1beta1/Finding.java | 1342 +++-- .../securitycenter/v1beta1/FindingName.java | 0 .../v1beta1/FindingOrBuilder.java | 136 +- .../v1beta1/FindingOuterClass.java | 130 + .../GetOrganizationSettingsRequest.java | 381 +- ...tOrganizationSettingsRequestOrBuilder.java | 56 + .../v1beta1/GetSourceRequest.java | 342 +- .../v1beta1/GetSourceRequestOrBuilder.java | 56 + .../v1beta1/GroupAssetsRequest.java | 801 +-- .../v1beta1/GroupAssetsRequestOrBuilder.java | 81 +- .../v1beta1/GroupAssetsResponse.java | 540 +- .../v1beta1/GroupAssetsResponseOrBuilder.java | 50 +- .../v1beta1/GroupFindingsRequest.java | 708 ++- .../GroupFindingsRequestOrBuilder.java | 73 +- .../v1beta1/GroupFindingsResponse.java | 548 +- .../GroupFindingsResponseOrBuilder.java | 50 +- .../securitycenter/v1beta1/GroupResult.java | 519 +- .../v1beta1/GroupResultOrBuilder.java | 52 +- .../v1beta1/ListAssetsRequest.java | 925 ++-- .../v1beta1/ListAssetsRequestOrBuilder.java | 98 +- .../v1beta1/ListAssetsResponse.java | 1375 +++-- .../v1beta1/ListAssetsResponseOrBuilder.java | 81 +- .../v1beta1/ListFindingsRequest.java | 825 +-- .../v1beta1/ListFindingsRequestOrBuilder.java | 90 +- .../v1beta1/ListFindingsResponse.java | 592 ++- .../ListFindingsResponseOrBuilder.java | 56 +- .../v1beta1/ListSourcesRequest.java | 455 +- .../v1beta1/ListSourcesRequestOrBuilder.java | 47 +- .../v1beta1/ListSourcesResponse.java | 464 +- .../v1beta1/ListSourcesResponseOrBuilder.java | 45 +- .../v1beta1/OrganizationName.java | 0 .../v1beta1/OrganizationSettings.java | 1215 +++-- .../v1beta1/OrganizationSettingsName.java | 0 .../OrganizationSettingsOrBuilder.java | 56 +- .../OrganizationSettingsOuterClass.java | 104 + .../v1beta1/RunAssetDiscoveryRequest.java | 363 +- .../RunAssetDiscoveryRequestOrBuilder.java | 56 + .../v1beta1/RunAssetDiscoveryResponse.java | 502 +- .../RunAssetDiscoveryResponseOrBuilder.java | 32 +- .../RunAssetDiscoveryResponseOuterClass.java | 78 + .../securitycenter/v1beta1/SecurityMarks.java | 577 +- .../v1beta1/SecurityMarksOrBuilder.java | 58 +- .../v1beta1/SecurityMarksOuterClass.java | 99 + .../v1beta1/SecuritycenterService.java | 603 +++ .../v1beta1/SetFindingStateRequest.java | 582 ++- .../SetFindingStateRequestOrBuilder.java | 66 +- .../cloud/securitycenter/v1beta1/Source.java | 459 +- .../securitycenter/v1beta1/SourceName.java | 0 .../v1beta1/SourceOrBuilder.java | 45 +- .../v1beta1/SourceOuterClass.java | 80 + .../v1beta1/UpdateFindingRequest.java | 487 +- .../UpdateFindingRequestOrBuilder.java | 46 +- .../UpdateOrganizationSettingsRequest.java | 555 +- ...eOrganizationSettingsRequestOrBuilder.java | 49 +- .../v1beta1/UpdateSecurityMarksRequest.java | 608 ++- .../UpdateSecurityMarksRequestOrBuilder.java | 54 +- .../v1beta1/UpdateSourceRequest.java | 480 +- .../v1beta1/UpdateSourceRequestOrBuilder.java | 46 +- .../cloud/securitycenter/v1beta1/asset.proto | 0 .../securitycenter/v1beta1/finding.proto | 0 .../v1beta1/organization_settings.proto | 0 .../run_asset_discovery_response.proto | 0 .../v1beta1/security_marks.proto | 0 .../v1beta1/securitycenter_service.proto | 0 .../cloud/securitycenter/v1beta1/source.proto | 0 .../cloud/securitycenter/v1p1beta1/Asset.java | 2750 ++++++---- .../securitycenter/v1p1beta1/AssetName.java | 0 .../v1p1beta1/AssetOrBuilder.java | 125 +- .../v1p1beta1/AssetOuterClass.java | 177 + .../v1p1beta1/CreateFindingRequest.java | 586 ++- .../CreateFindingRequestOrBuilder.java | 64 +- .../CreateNotificationConfigRequest.java | 641 ++- ...ateNotificationConfigRequestOrBuilder.java | 67 +- .../v1p1beta1/CreateSourceRequest.java | 496 +- .../CreateSourceRequestOrBuilder.java | 55 +- .../DeleteNotificationConfigRequest.java | 398 +- ...eteNotificationConfigRequestOrBuilder.java | 56 + .../securitycenter/v1p1beta1/Finding.java | 1592 +++--- .../securitycenter/v1p1beta1/FindingName.java | 0 .../v1p1beta1/FindingOrBuilder.java | 151 +- .../v1p1beta1/FindingOuterClass.java | 143 + .../securitycenter/v1p1beta1/Folder.java | 390 +- .../securitycenter/v1p1beta1/FolderName.java | 0 .../v1p1beta1/FolderOrBuilder.java | 36 +- .../securitycenter/v1p1beta1/FolderProto.java | 74 + .../GetNotificationConfigRequest.java | 378 +- ...GetNotificationConfigRequestOrBuilder.java | 56 + .../GetOrganizationSettingsRequest.java | 391 +- ...tOrganizationSettingsRequestOrBuilder.java | 56 + .../v1p1beta1/GetSourceRequest.java | 342 +- .../v1p1beta1/GetSourceRequestOrBuilder.java | 56 + .../v1p1beta1/GroupAssetsRequest.java | 808 +-- .../GroupAssetsRequestOrBuilder.java | 81 +- .../v1p1beta1/GroupAssetsResponse.java | 647 ++- .../GroupAssetsResponseOrBuilder.java | 53 +- .../v1p1beta1/GroupFindingsRequest.java | 819 +-- .../GroupFindingsRequestOrBuilder.java | 81 +- .../v1p1beta1/GroupFindingsResponse.java | 660 ++- .../GroupFindingsResponseOrBuilder.java | 53 +- .../securitycenter/v1p1beta1/GroupResult.java | 522 +- .../v1p1beta1/GroupResultOrBuilder.java | 52 +- .../v1p1beta1/ListAssetsRequest.java | 889 ++-- .../v1p1beta1/ListAssetsRequestOrBuilder.java | 89 +- .../v1p1beta1/ListAssetsResponse.java | 1392 +++-- .../ListAssetsResponseOrBuilder.java | 82 +- .../v1p1beta1/ListFindingsRequest.java | 897 ++-- .../ListFindingsRequestOrBuilder.java | 89 +- .../v1p1beta1/ListFindingsResponse.java | 2617 ++++++---- .../ListFindingsResponseOrBuilder.java | 82 +- .../ListNotificationConfigsRequest.java | 504 +- ...stNotificationConfigsRequestOrBuilder.java | 47 +- .../ListNotificationConfigsResponse.java | 646 ++- ...tNotificationConfigsResponseOrBuilder.java | 65 +- .../v1p1beta1/ListSourcesRequest.java | 462 +- .../ListSourcesRequestOrBuilder.java | 47 +- .../v1p1beta1/ListSourcesResponse.java | 470 +- .../ListSourcesResponseOrBuilder.java | 45 +- .../v1p1beta1/NotificationConfig.java | 1390 +++-- .../v1p1beta1/NotificationConfigName.java | 0 .../NotificationConfigOrBuilder.java | 92 +- .../NotificationConfigOuterClass.java | 122 + .../v1p1beta1/NotificationMessage.java | 567 +- .../NotificationMessageOrBuilder.java | 43 +- .../NotificationMessageOuterClass.java | 84 + .../v1p1beta1/OrganizationName.java | 0 .../v1p1beta1/OrganizationSettings.java | 1374 +++-- .../v1p1beta1/OrganizationSettingsName.java | 0 .../OrganizationSettingsOrBuilder.java | 56 +- .../OrganizationSettingsOuterClass.java | 108 + .../securitycenter/v1p1beta1/ProjectName.java | 0 .../securitycenter/v1p1beta1/Resource.java | 869 ++-- .../v1p1beta1/ResourceOrBuilder.java | 101 +- .../v1p1beta1/ResourceProto.java | 88 + .../v1p1beta1/RunAssetDiscoveryRequest.java | 375 +- .../RunAssetDiscoveryRequestOrBuilder.java | 56 + .../v1p1beta1/RunAssetDiscoveryResponse.java | 523 +- .../RunAssetDiscoveryResponseOrBuilder.java | 32 +- .../RunAssetDiscoveryResponseOuterClass.java | 81 + .../v1p1beta1/SecurityMarks.java | 656 +-- .../v1p1beta1/SecurityMarksOrBuilder.java | 67 +- .../v1p1beta1/SecurityMarksOuterClass.java | 109 + .../v1p1beta1/SecuritycenterService.java | 845 +++ .../v1p1beta1/SetFindingStateRequest.java | 585 ++- .../SetFindingStateRequestOrBuilder.java | 66 +- .../securitycenter/v1p1beta1/Source.java | 547 +- .../securitycenter/v1p1beta1/SourceName.java | 0 .../v1p1beta1/SourceOrBuilder.java | 54 +- .../v1p1beta1/SourceOuterClass.java | 86 + .../v1p1beta1/UpdateFindingRequest.java | 499 +- .../UpdateFindingRequestOrBuilder.java | 46 +- .../UpdateNotificationConfigRequest.java | 554 +- ...ateNotificationConfigRequestOrBuilder.java | 49 +- .../UpdateOrganizationSettingsRequest.java | 601 ++- ...eOrganizationSettingsRequestOrBuilder.java | 49 +- .../v1p1beta1/UpdateSecurityMarksRequest.java | 614 ++- .../UpdateSecurityMarksRequestOrBuilder.java | 54 +- .../v1p1beta1/UpdateSourceRequest.java | 488 +- .../UpdateSourceRequestOrBuilder.java | 46 +- .../securitycenter/v1p1beta1/asset.proto | 0 .../securitycenter/v1p1beta1/finding.proto | 0 .../securitycenter/v1p1beta1/folder.proto | 0 .../v1p1beta1/notification_config.proto | 0 .../v1p1beta1/notification_message.proto | 0 .../v1p1beta1/organization_settings.proto | 0 .../securitycenter/v1p1beta1/resource.proto | 0 .../run_asset_discovery_response.proto | 0 .../v1p1beta1/security_marks.proto | 0 .../v1p1beta1/securitycenter_service.proto | 0 .../securitycenter/v1p1beta1/source.proto | 0 .../AsyncBulkMuteFindings.java | 0 .../AsyncBulkMuteFindingsLRO.java | 0 .../SyncBulkMuteFindings.java | 0 .../SyncBulkMuteFindingsResourcename.java | 0 .../SyncBulkMuteFindingsString.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateBigQueryExport.java | 0 .../SyncCreateBigQueryExport.java | 0 ...yExportFoldernameBigqueryexportString.java | 6 +- ...tOrganizationnameBigqueryexportString.java | 6 +- ...ExportProjectnameBigqueryexportString.java | 6 +- ...QueryExportStringBigqueryexportString.java | 6 +- .../createfinding/AsyncCreateFinding.java | 0 .../createfinding/SyncCreateFinding.java | 0 ...cCreateFindingSourcenameStringFinding.java | 3 +- .../SyncCreateFindingStringStringFinding.java | 0 .../AsyncCreateMuteConfig.java | 0 .../SyncCreateMuteConfig.java | 0 ...cCreateMuteConfigFoldernameMuteconfig.java | 3 +- ...eMuteConfigFoldernameMuteconfigString.java | 6 +- ...eMuteConfigOrganizationnameMuteconfig.java | 6 +- ...onfigOrganizationnameMuteconfigString.java | 6 +- ...CreateMuteConfigProjectnameMuteconfig.java | 6 +- ...MuteConfigProjectnameMuteconfigString.java | 6 +- .../SyncCreateMuteConfigStringMuteconfig.java | 0 ...reateMuteConfigStringMuteconfigString.java | 6 +- .../AsyncCreateNotificationConfig.java | 0 .../SyncCreateNotificationConfig.java | 0 ...figOrganizationnameNotificationconfig.java | 6 +- ...anizationnameStringNotificationconfig.java | 6 +- ...icationConfigStringNotificationconfig.java | 6 +- ...nConfigStringStringNotificationconfig.java | 6 +- .../createsource/AsyncCreateSource.java | 0 .../createsource/SyncCreateSource.java | 0 ...yncCreateSourceOrganizationnameSource.java | 0 .../SyncCreateSourceStringSource.java | 0 .../AsyncDeleteBigQueryExport.java | 0 .../SyncDeleteBigQueryExport.java | 1 - ...eleteBigQueryExportBigqueryexportname.java | 7 +- .../SyncDeleteBigQueryExportString.java | 1 - .../AsyncDeleteMuteConfig.java | 0 .../SyncDeleteMuteConfig.java | 1 - .../SyncDeleteMuteConfigMuteconfigname.java | 1 - .../SyncDeleteMuteConfigString.java | 1 - .../AsyncDeleteNotificationConfig.java | 0 .../SyncDeleteNotificationConfig.java | 1 - ...ificationConfigNotificationconfigname.java | 7 +- .../SyncDeleteNotificationConfigString.java | 1 - .../AsyncGetBigQueryExport.java | 0 .../SyncGetBigQueryExport.java | 0 ...ncGetBigQueryExportBigqueryexportname.java | 3 +- .../SyncGetBigQueryExportString.java | 0 .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 .../SyncGetIamPolicyResourcename.java | 0 .../getiampolicy/SyncGetIamPolicyString.java | 0 .../getmuteconfig/AsyncGetMuteConfig.java | 0 .../getmuteconfig/SyncGetMuteConfig.java | 0 .../SyncGetMuteConfigMuteconfigname.java | 0 .../SyncGetMuteConfigString.java | 0 .../AsyncGetNotificationConfig.java | 0 .../SyncGetNotificationConfig.java | 0 ...ificationConfigNotificationconfigname.java | 6 +- .../SyncGetNotificationConfigString.java | 0 .../AsyncGetOrganizationSettings.java | 0 .../SyncGetOrganizationSettings.java | 0 ...ationSettingsOrganizationsettingsname.java | 6 +- .../SyncGetOrganizationSettingsString.java | 0 .../getsource/AsyncGetSource.java | 0 .../getsource/SyncGetSource.java | 0 .../getsource/SyncGetSourceSourcename.java | 0 .../getsource/SyncGetSourceString.java | 0 .../groupassets/AsyncGroupAssets.java | 0 .../groupassets/AsyncGroupAssetsPaged.java | 0 .../groupassets/SyncGroupAssets.java | 0 .../groupfindings/AsyncGroupFindings.java | 0 .../AsyncGroupFindingsPaged.java | 0 .../groupfindings/SyncGroupFindings.java | 0 .../SyncGroupFindingsSourcenameString.java | 0 .../SyncGroupFindingsStringString.java | 0 .../listassets/AsyncListAssets.java | 0 .../listassets/AsyncListAssetsPaged.java | 0 .../listassets/SyncListAssets.java | 0 .../AsyncListBigQueryExports.java | 0 .../AsyncListBigQueryExportsPaged.java | 0 .../SyncListBigQueryExports.java | 0 .../SyncListBigQueryExportsFoldername.java | 0 ...ncListBigQueryExportsOrganizationname.java | 3 +- .../SyncListBigQueryExportsProjectname.java | 0 .../SyncListBigQueryExportsString.java | 0 .../listfindings/AsyncListFindings.java | 0 .../listfindings/AsyncListFindingsPaged.java | 0 .../listfindings/SyncListFindings.java | 0 .../listmuteconfigs/AsyncListMuteConfigs.java | 0 .../AsyncListMuteConfigsPaged.java | 0 .../listmuteconfigs/SyncListMuteConfigs.java | 0 .../SyncListMuteConfigsFoldername.java | 0 .../SyncListMuteConfigsOrganizationname.java | 0 .../SyncListMuteConfigsProjectname.java | 0 .../SyncListMuteConfigsString.java | 0 .../AsyncListNotificationConfigs.java | 0 .../AsyncListNotificationConfigsPaged.java | 0 .../SyncListNotificationConfigs.java | 0 ...stNotificationConfigsOrganizationname.java | 6 +- .../SyncListNotificationConfigsString.java | 0 .../listsources/AsyncListSources.java | 0 .../listsources/AsyncListSourcesPaged.java | 0 .../listsources/SyncListSources.java | 0 .../SyncListSourcesFoldername.java | 0 .../SyncListSourcesOrganizationname.java | 0 .../SyncListSourcesProjectname.java | 0 .../listsources/SyncListSourcesString.java | 0 .../AsyncRunAssetDiscovery.java | 0 .../AsyncRunAssetDiscoveryLRO.java | 0 .../SyncRunAssetDiscovery.java | 0 ...SyncRunAssetDiscoveryOrganizationname.java | 0 .../SyncRunAssetDiscoveryString.java | 0 .../setfindingstate/AsyncSetFindingState.java | 0 .../setfindingstate/SyncSetFindingState.java | 0 ...StateFindingnameFindingstateTimestamp.java | 6 +- ...ndingStateStringFindingstateTimestamp.java | 6 +- .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../SyncSetIamPolicyResourcenamePolicy.java | 0 .../SyncSetIamPolicyStringPolicy.java | 0 .../setmute/AsyncSetMute.java | 0 .../setmute/SyncSetMute.java | 0 .../SyncSetMuteFindingnameFindingmute.java | 0 .../setmute/SyncSetMuteStringFindingmute.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 ...tIamPermissionsResourcenameListstring.java | 6 +- ...yncTestIamPermissionsStringListstring.java | 0 .../AsyncUpdateBigQueryExport.java | 0 .../SyncUpdateBigQueryExport.java | 0 ...BigQueryExportBigqueryexportFieldmask.java | 6 +- .../AsyncUpdateExternalSystem.java | 0 .../SyncUpdateExternalSystem.java | 0 ...ExternalSystemExternalsystemFieldmask.java | 6 +- .../updatefinding/AsyncUpdateFinding.java | 0 .../updatefinding/SyncUpdateFinding.java | 0 .../SyncUpdateFindingFinding.java | 0 .../AsyncUpdateMuteConfig.java | 0 .../SyncUpdateMuteConfig.java | 0 ...ncUpdateMuteConfigMuteconfigFieldmask.java | 3 +- .../AsyncUpdateNotificationConfig.java | 0 .../SyncUpdateNotificationConfig.java | 0 ...eNotificationConfigNotificationconfig.java | 6 +- ...tionConfigNotificationconfigFieldmask.java | 6 +- .../AsyncUpdateOrganizationSettings.java | 0 .../SyncUpdateOrganizationSettings.java | 0 ...anizationSettingsOrganizationsettings.java | 6 +- .../AsyncUpdateSecurityMarks.java | 0 .../SyncUpdateSecurityMarks.java | 0 .../SyncUpdateSecurityMarksSecuritymarks.java | 0 .../updatesource/AsyncUpdateSource.java | 0 .../updatesource/SyncUpdateSource.java | 0 .../updatesource/SyncUpdateSourceSource.java | 0 .../createsource/SyncCreateSource.java | 0 .../createsource/SyncCreateSource.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createfinding/AsyncCreateFinding.java | 0 .../createfinding/SyncCreateFinding.java | 0 ...cCreateFindingSourcenameStringFinding.java | 6 +- .../SyncCreateFindingStringStringFinding.java | 6 +- .../createsource/AsyncCreateSource.java | 0 .../createsource/SyncCreateSource.java | 0 ...yncCreateSourceOrganizationnameSource.java | 6 +- .../SyncCreateSourceStringSource.java | 0 .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 .../SyncGetIamPolicyResourcename.java | 0 .../getiampolicy/SyncGetIamPolicyString.java | 0 .../AsyncGetOrganizationSettings.java | 0 .../SyncGetOrganizationSettings.java | 0 ...ationSettingsOrganizationsettingsname.java | 6 +- .../SyncGetOrganizationSettingsString.java | 0 .../getsource/AsyncGetSource.java | 0 .../getsource/SyncGetSource.java | 0 .../getsource/SyncGetSourceSourcename.java | 0 .../getsource/SyncGetSourceString.java | 0 .../groupassets/AsyncGroupAssets.java | 0 .../groupassets/AsyncGroupAssetsPaged.java | 0 .../groupassets/SyncGroupAssets.java | 0 .../groupfindings/AsyncGroupFindings.java | 0 .../AsyncGroupFindingsPaged.java | 0 .../groupfindings/SyncGroupFindings.java | 0 .../SyncGroupFindingsSourcenameString.java | 0 .../SyncGroupFindingsStringString.java | 0 .../listassets/AsyncListAssets.java | 0 .../listassets/AsyncListAssetsPaged.java | 0 .../listassets/SyncListAssets.java | 0 .../listfindings/AsyncListFindings.java | 0 .../listfindings/AsyncListFindingsPaged.java | 0 .../listfindings/SyncListFindings.java | 0 .../listsources/AsyncListSources.java | 0 .../listsources/AsyncListSourcesPaged.java | 0 .../listsources/SyncListSources.java | 0 .../SyncListSourcesOrganizationname.java | 0 .../listsources/SyncListSourcesString.java | 0 .../AsyncRunAssetDiscovery.java | 0 .../AsyncRunAssetDiscoveryLRO.java | 0 .../SyncRunAssetDiscovery.java | 1 - ...SyncRunAssetDiscoveryOrganizationname.java | 7 +- .../SyncRunAssetDiscoveryString.java | 1 - .../setfindingstate/AsyncSetFindingState.java | 0 .../setfindingstate/SyncSetFindingState.java | 0 ...StateFindingnameFindingstateTimestamp.java | 6 +- ...ndingStateStringFindingstateTimestamp.java | 6 +- .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../SyncSetIamPolicyResourcenamePolicy.java | 3 +- .../SyncSetIamPolicyStringPolicy.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 ...tIamPermissionsResourcenameListstring.java | 6 +- ...yncTestIamPermissionsStringListstring.java | 6 +- .../updatefinding/AsyncUpdateFinding.java | 0 .../updatefinding/SyncUpdateFinding.java | 0 .../SyncUpdateFindingFinding.java | 0 .../AsyncUpdateOrganizationSettings.java | 0 .../SyncUpdateOrganizationSettings.java | 0 ...anizationSettingsOrganizationsettings.java | 6 +- .../AsyncUpdateSecurityMarks.java | 0 .../SyncUpdateSecurityMarks.java | 0 .../SyncUpdateSecurityMarksSecuritymarks.java | 6 +- .../updatesource/AsyncUpdateSource.java | 0 .../updatesource/SyncUpdateSource.java | 0 .../updatesource/SyncUpdateSourceSource.java | 0 .../createsource/SyncCreateSource.java | 0 .../createsource/SyncCreateSource.java | 0 .../SyncCreateSetCredentialsProvider.java | 3 +- .../SyncCreateSetCredentialsProvider1.java | 3 +- .../create/SyncCreateSetEndpoint.java | 0 .../createfinding/AsyncCreateFinding.java | 0 .../createfinding/SyncCreateFinding.java | 0 ...cCreateFindingSourcenameFindingString.java | 6 +- ...cCreateFindingSourcenameStringFinding.java | 6 +- .../SyncCreateFindingStringFindingString.java | 6 +- .../SyncCreateFindingStringStringFinding.java | 6 +- .../AsyncCreateNotificationConfig.java | 0 .../SyncCreateNotificationConfig.java | 0 ...figOrganizationnameNotificationconfig.java | 6 +- ...anizationnameStringNotificationconfig.java | 6 +- ...icationConfigStringNotificationconfig.java | 6 +- ...nConfigStringStringNotificationconfig.java | 6 +- .../createsource/AsyncCreateSource.java | 0 .../createsource/SyncCreateSource.java | 0 ...yncCreateSourceOrganizationnameSource.java | 6 +- .../SyncCreateSourceStringSource.java | 0 .../AsyncDeleteNotificationConfig.java | 0 .../SyncDeleteNotificationConfig.java | 1 - ...ificationConfigNotificationconfigname.java | 7 +- .../SyncDeleteNotificationConfigString.java | 7 +- .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 .../SyncGetIamPolicyResourcename.java | 0 .../getiampolicy/SyncGetIamPolicyString.java | 0 .../AsyncGetNotificationConfig.java | 0 .../SyncGetNotificationConfig.java | 0 ...ificationConfigNotificationconfigname.java | 6 +- .../SyncGetNotificationConfigString.java | 0 .../AsyncGetOrganizationSettings.java | 0 .../SyncGetOrganizationSettings.java | 0 ...ationSettingsOrganizationsettingsname.java | 6 +- .../SyncGetOrganizationSettingsString.java | 3 +- .../getsource/AsyncGetSource.java | 0 .../getsource/SyncGetSource.java | 0 .../getsource/SyncGetSourceSourcename.java | 0 .../getsource/SyncGetSourceString.java | 0 .../groupassets/AsyncGroupAssets.java | 0 .../groupassets/AsyncGroupAssetsPaged.java | 0 .../groupassets/SyncGroupAssets.java | 0 .../groupfindings/AsyncGroupFindings.java | 0 .../AsyncGroupFindingsPaged.java | 0 .../groupfindings/SyncGroupFindings.java | 0 .../SyncGroupFindingsSourcenameString.java | 3 +- .../SyncGroupFindingsStringString.java | 0 .../listassets/AsyncListAssets.java | 0 .../listassets/AsyncListAssetsPaged.java | 0 .../listassets/SyncListAssets.java | 0 .../listassets/SyncListAssetsFoldername.java | 0 .../SyncListAssetsOrganizationname.java | 0 .../listassets/SyncListAssetsProjectname.java | 0 .../listassets/SyncListAssetsString.java | 0 .../listfindings/AsyncListFindings.java | 0 .../listfindings/AsyncListFindingsPaged.java | 0 .../listfindings/SyncListFindings.java | 0 .../SyncListFindingsSourcename.java | 0 .../listfindings/SyncListFindingsString.java | 0 .../AsyncListNotificationConfigs.java | 0 .../AsyncListNotificationConfigsPaged.java | 3 +- .../SyncListNotificationConfigs.java | 0 ...stNotificationConfigsOrganizationname.java | 6 +- .../SyncListNotificationConfigsString.java | 3 +- .../listsources/AsyncListSources.java | 0 .../listsources/AsyncListSourcesPaged.java | 0 .../listsources/SyncListSources.java | 0 .../SyncListSourcesFoldername.java | 0 .../SyncListSourcesOrganizationname.java | 0 .../SyncListSourcesProjectname.java | 0 .../listsources/SyncListSourcesString.java | 0 .../AsyncRunAssetDiscovery.java | 0 .../AsyncRunAssetDiscoveryLRO.java | 0 .../SyncRunAssetDiscovery.java | 0 ...SyncRunAssetDiscoveryOrganizationname.java | 6 +- .../SyncRunAssetDiscoveryString.java | 0 .../setfindingstate/AsyncSetFindingState.java | 0 .../setfindingstate/SyncSetFindingState.java | 0 ...StateFindingnameFindingstateTimestamp.java | 6 +- ...ndingStateStringFindingstateTimestamp.java | 6 +- .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../SyncSetIamPolicyResourcenamePolicy.java | 6 +- .../SyncSetIamPolicyStringPolicy.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 ...tIamPermissionsResourcenameListstring.java | 6 +- ...yncTestIamPermissionsStringListstring.java | 6 +- .../updatefinding/AsyncUpdateFinding.java | 0 .../updatefinding/SyncUpdateFinding.java | 0 .../SyncUpdateFindingFinding.java | 0 .../SyncUpdateFindingFindingFieldmask.java | 3 +- .../AsyncUpdateNotificationConfig.java | 0 .../SyncUpdateNotificationConfig.java | 0 ...eNotificationConfigNotificationconfig.java | 6 +- ...tionConfigNotificationconfigFieldmask.java | 6 +- .../AsyncUpdateOrganizationSettings.java | 0 .../SyncUpdateOrganizationSettings.java | 0 ...anizationSettingsOrganizationsettings.java | 6 +- .../AsyncUpdateSecurityMarks.java | 0 .../SyncUpdateSecurityMarks.java | 0 .../SyncUpdateSecurityMarksSecuritymarks.java | 6 +- ...teSecurityMarksSecuritymarksFieldmask.java | 6 +- .../updatesource/AsyncUpdateSource.java | 0 .../updatesource/SyncUpdateSource.java | 0 .../updatesource/SyncUpdateSourceSource.java | 0 .../SyncUpdateSourceSourceFieldmask.java | 0 .../createsource/SyncCreateSource.java | 0 .../createsource/SyncCreateSource.java | 0 831 files changed, 84966 insertions(+), 52122 deletions(-) rename {owl-bot-staging/v1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java (98%) rename {owl-bot-staging/v1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java (99%) rename {owl-bot-staging/v1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java (99%) rename {owl-bot-staging/v1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java (100%) rename {owl-bot-staging/v1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java (98%) rename {owl-bot-staging/v1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java (98%) rename {owl-bot-staging/v1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterSettings.java (98%) rename {owl-bot-staging/v1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/v1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1beta1/package-info.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterStub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/HttpJsonSecurityCenterCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/HttpJsonSecurityCenterStub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java (99%) rename {owl-bot-staging/v1p1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClient.java (98%) rename {owl-bot-staging/v1p1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterSettings.java (97%) rename {owl-bot-staging/v1p1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/package-info.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterCallableFactory.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java (99%) rename {owl-bot-staging/v1p1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/HttpJsonSecurityCenterCallableFactory.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/HttpJsonSecurityCenterStub.java (99%) rename {owl-bot-staging/v1p1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-securitycenter => google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenter.java (100%) rename {owl-bot-staging/v1/google-cloud-securitycenter => google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenterImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-securitycenter => google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-securitycenter => google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenter.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenterImpl.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientTest.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1p1beta1/MockSecurityCenter.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1p1beta1/MockSecurityCenterImpl.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-securitycenter => google-cloud-securitycenter}/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientTest.java (100%) create mode 100644 grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java create mode 100644 grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java create mode 100644 grpc-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GeolocationOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityProto.java delete mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOuterClass.java delete mode 100644 owl-bot-staging/v1p1beta1/grpc-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterGrpc.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOuterClass.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOuterClass.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderProto.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOuterClass.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOuterClass.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOuterClass.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOuterClass.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecuritycenterService.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOuterClass.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Access.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/AccessOrBuilder.java (74%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessProto.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Asset.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/AssetName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java (80%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java (83%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportProto.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequestOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponse.java (67%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Compliance.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ComplianceOrBuilder.java (67%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceProto.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Connection.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ConnectionOrBuilder.java (69%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionProto.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequestOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequestOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java (51%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Cve.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/CveOrBuilder.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3OrBuilder.java (88%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequest.java (66%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequest.java (67%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java (62%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariable.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariableOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ExfilResource.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ExfilResourceOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Exfiltration.java (78%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationOrBuilder.java (80%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationProto.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystem.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemOrBuilder.java (78%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemProto.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/File.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/FileOrBuilder.java (72%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileProto.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Finding.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java (84%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Folder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/FolderName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/FolderOrBuilder.java (60%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderProto.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Geolocation.java (68%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GeolocationOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequest.java (67%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequest.java (67%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequest.java (64%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java (63%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java (66%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java (84%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java (91%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java (84%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java (91%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/IamBinding.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/IamBindingOrBuilder.java (67%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingProto.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Indicator.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/IndicatorOrBuilder.java (68%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorProto.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java (84%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java (92%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java (57%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequestOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponseOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java (84%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java (92%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequestOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponseOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponseOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/MitreAttack.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackOrBuilder.java (80%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackProto.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/MuteConfig.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigOrBuilder.java (79%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigProto.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigOrBuilder.java (73%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigProto.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java (74%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java (60%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Process.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ProcessOrBuilder.java (83%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessProto.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ProjectName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Reference.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ReferenceOrBuilder.java (57%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Resource.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java (68%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java (66%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOrBuilder.java (68%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java (81%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequestOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Source.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java (79%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequest.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequestOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequest.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequestOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/Vulnerability.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityOrBuilder.java (61%) create mode 100644 proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityProto.java rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/access.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/asset.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/bigquery_export.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/compliance.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/connection.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/exfiltration.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/external_system.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/file.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/finding.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/folder.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/iam_binding.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/indicator.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/mitre_attack.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/mute_config.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/notification_config.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/process.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/resource.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/source.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-securitycenter-v1 => proto-google-cloud-securitycenter-v1}/src/main/proto/google/cloud/securitycenter/v1/vulnerability.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOrBuilder.java (75%) create mode 100644 proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequestOrBuilder.java (60%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequestOrBuilder.java (51%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOrBuilder.java (82%) create mode 100644 proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java (63%) create mode 100644 proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java (67%) create mode 100644 proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java (81%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequestOrBuilder.java (88%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java (77%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponseOrBuilder.java (80%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java (77%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequestOrBuilder.java (82%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java (77%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponseOrBuilder.java (80%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResultOrBuilder.java (56%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java (80%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequestOrBuilder.java (88%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponseOrBuilder.java (56%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java (77%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequestOrBuilder.java (83%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponseOrBuilder.java (75%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequestOrBuilder.java (60%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponseOrBuilder.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOrBuilder.java (59%) create mode 100644 proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java (65%) create mode 100644 proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOrBuilder.java (68%) create mode 100644 proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOrBuilder.java (77%) create mode 100644 proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java create mode 100644 proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequest.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequestOrBuilder.java (58%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java (76%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java (76%) create mode 100644 proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequestOrBuilder.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequestOrBuilder.java (56%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequestOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequestOrBuilder.java (58%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/proto/google/cloud/securitycenter/v1beta1/asset.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/proto/google/cloud/securitycenter/v1beta1/finding.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/proto/google/cloud/securitycenter/v1beta1/organization_settings.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/proto/google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/proto/google/cloud/securitycenter/v1beta1/security_marks.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/proto/google/cloud/securitycenter/v1beta1/securitycenter_service.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1 => proto-google-cloud-securitycenter-v1beta1}/src/main/proto/google/cloud/securitycenter/v1beta1/source.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Asset.java (74%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetName.java (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java (79%) create mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOuterClass.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java (65%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequestOrBuilder.java (58%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java (63%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequestOrBuilder.java (59%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java (64%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequestOrBuilder.java (51%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java (60%) create mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequestOrBuilder.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java (74%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingName.java (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java (84%) create mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOuterClass.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Folder.java (71%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderName.java (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderOrBuilder.java (61%) create mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderProto.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java (63%) create mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequestOrBuilder.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java (61%) create mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequestOrBuilder.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java (67%) create mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequestOrBuilder.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java (84%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java (91%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponseOrBuilder.java (80%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java (83%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java (91%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java (74%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponseOrBuilder.java (80%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java (64%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResultOrBuilder.java (56%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java (84%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java (92%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java (63%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponseOrBuilder.java (55%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java (83%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java (91%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java (66%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponseOrBuilder.java (55%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java (65%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequestOrBuilder.java (60%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java (62%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponseOrBuilder.java (53%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequest.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequestOrBuilder.java (61%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponse.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponseOrBuilder.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java (69%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigName.java (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java (70%) create mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOuterClass.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java (71%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java (75%) create mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationName.java (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java (65%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsName.java (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOrBuilder.java (59%) create mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOuterClass.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ProjectName.java (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Resource.java (71%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceOrBuilder.java (67%) create mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java (63%) create mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequestOrBuilder.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java (67%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOrBuilder.java (68%) create mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOuterClass.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java (72%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOrBuilder.java (81%) create mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOuterClass.java create mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecuritycenterService.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequest.java (65%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequestOrBuilder.java (58%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java (76%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceName.java (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java (79%) create mode 100644 proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOuterClass.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java (71%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequestOrBuilder.java (74%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java (62%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequestOrBuilder.java (58%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java (59%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequestOrBuilder.java (58%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java (68%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequestOrBuilder.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java (66%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequestOrBuilder.java (60%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/asset.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/finding.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/folder.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_config.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_message.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/organization_settings.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/resource.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/security_marks.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1 => proto-google-cloud-securitycenter-v1p1beta1}/src/main/proto/google/cloud/securitycenter/v1p1beta1/source.proto (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/AsyncBulkMuteFindings.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/AsyncBulkMuteFindingsLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindings.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindingsResourcename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindingsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/AsyncCreateBigQueryExport.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExport.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportFoldernameBigqueryexportString.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportOrganizationnameBigqueryexportString.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportProjectnameBigqueryexportString.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportStringBigqueryexportString.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/AsyncCreateFinding.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFinding.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java (94%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/AsyncCreateMuteConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfig.java (93%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfigString.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfig.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfigString.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfig.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfigString.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigStringMuteconfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigStringMuteconfigString.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/AsyncCreateNotificationConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java (86%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java (86%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/AsyncCreateSource.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSource.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSourceStringSource.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/AsyncDeleteBigQueryExport.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExport.java (98%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportBigqueryexportname.java (85%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportString.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/AsyncDeleteMuteConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfig.java (98%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigMuteconfigname.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigString.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/AsyncDeleteNotificationConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java (98%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java (85%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/AsyncGetBigQueryExport.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExport.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExportBigqueryexportname.java (93%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExportString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/AsyncGetMuteConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfigMuteconfigname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfigString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/AsyncGetNotificationConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/AsyncGetSource.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSource.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSourceSourcename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSourceString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/AsyncGroupAssets.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/SyncGroupAssets.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/AsyncGroupFindings.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindings.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/AsyncListAssets.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/AsyncListAssetsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/SyncListAssets.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/AsyncListBigQueryExports.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/AsyncListBigQueryExportsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExports.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsFoldername.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsOrganizationname.java (94%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsProjectname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/AsyncListFindings.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/AsyncListFindingsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/SyncListFindings.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/AsyncListMuteConfigs.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/AsyncListMuteConfigsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigs.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsFoldername.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsOrganizationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsProjectname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigs.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigs.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/AsyncListSources.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/AsyncListSourcesPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSources.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesFoldername.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesProjectname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/AsyncSetFindingState.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingState.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/AsyncSetMute.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMute.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMuteFindingnameFindingmute.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMuteStringFindingmute.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/AsyncUpdateBigQueryExport.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/SyncUpdateBigQueryExport.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/SyncUpdateBigQueryExportBigqueryexportFieldmask.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/AsyncUpdateExternalSystem.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/SyncUpdateExternalSystem.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/SyncUpdateExternalSystemExternalsystemFieldmask.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/AsyncUpdateFinding.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/SyncUpdateFinding.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/AsyncUpdateMuteConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/SyncUpdateMuteConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/SyncUpdateMuteConfigMuteconfigFieldmask.java (93%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/AsyncUpdateNotificationConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java (86%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/AsyncUpdateSource.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/SyncUpdateSource.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/SyncUpdateSourceSource.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/securitycentersettings/createsource/SyncCreateSource.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/AsyncCreateFinding.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFinding.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/AsyncCreateSource.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSource.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSourceStringSource.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java (86%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/AsyncGetSource.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSource.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSourceSourcename.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSourceString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/AsyncGroupAssets.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/SyncGroupAssets.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/AsyncGroupFindings.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindings.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/AsyncListAssets.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/AsyncListAssetsPaged.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/SyncListAssets.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/AsyncListFindings.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/AsyncListFindingsPaged.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/SyncListFindings.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/AsyncListSources.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/AsyncListSourcesPaged.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSources.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSourcesString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java (98%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java (85%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java (97%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/AsyncSetFindingState.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingState.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java (94%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/AsyncUpdateFinding.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/SyncUpdateFinding.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java (86%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/AsyncUpdateSource.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/SyncUpdateSource.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/SyncUpdateSourceSource.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycentersettings/createsource/SyncCreateSource.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1beta1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java (94%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java (93%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/AsyncCreateFinding.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFinding.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameFindingString.java (87%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java (87%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringFindingString.java (88%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java (88%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/AsyncCreateNotificationConfig.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfig.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java (86%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java (86%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java (87%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java (87%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/AsyncCreateSource.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSource.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java (87%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSourceStringSource.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/AsyncDeleteNotificationConfig.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java (98%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java (84%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java (85%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/AsyncGetNotificationConfig.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfig.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java (87%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigString.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java (86%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java (93%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/AsyncGetSource.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSource.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSourceSourcename.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSourceString.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/AsyncGroupAssets.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/SyncGroupAssets.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/AsyncGroupFindings.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindings.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java (94%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/AsyncListAssets.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/AsyncListAssetsPaged.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssets.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsFoldername.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsOrganizationname.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsProjectname.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsString.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/AsyncListFindings.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/AsyncListFindingsPaged.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindings.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindingsSourcename.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindingsString.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigs.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigsPaged.java (95%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigs.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java (87%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsString.java (94%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/AsyncListSources.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/AsyncListSourcesPaged.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSources.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesFoldername.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesProjectname.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesString.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java (87%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/AsyncSetFindingState.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingState.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java (87%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java (88%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java (88%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java (88%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java (88%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/AsyncUpdateFinding.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFinding.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFindingFieldmask.java (93%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/AsyncUpdateNotificationConfig.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfig.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java (86%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java (86%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java (86%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java (86%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarksFieldmask.java (87%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/AsyncUpdateSource.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSource.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSourceSource.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSourceSourceFieldmask.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycentersettings/createsource/SyncCreateSource.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java (100%) diff --git a/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java index 55c41f95e..ccaa4e0a4 100644 --- a/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java @@ -69,13 +69,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -2078,15 +2078,15 @@ public final UnaryCallable groupAssetsC * of fields. For example: "parent,resource_name". *

The following fields are supported: *

    - *
  • resource_name - *
  • category - *
  • state - *
  • parent - *
  • severity + *
  • resource_name + *
  • category + *
  • state + *
  • parent + *
  • severity *
*

The following fields are supported when compare_duration is set: *

    - *
  • state_change + *
  • state_change *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -2133,15 +2133,15 @@ public final GroupFindingsPagedResponse groupFindings(SourceName parent, String * of fields. For example: "parent,resource_name". *

The following fields are supported: *

    - *
  • resource_name - *
  • category - *
  • state - *
  • parent - *
  • severity + *
  • resource_name + *
  • category + *
  • state + *
  • parent + *
  • severity *
*

The following fields are supported when compare_duration is set: *

    - *
  • state_change + *
  • state_change *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -4979,7 +4979,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class GroupAssetsPagedResponse extends AbstractPagedListResponse< - GroupAssetsRequest, GroupAssetsResponse, GroupResult, GroupAssetsPage, + GroupAssetsRequest, + GroupAssetsResponse, + GroupResult, + GroupAssetsPage, GroupAssetsFixedSizeCollection> { public static ApiFuture createAsync( @@ -5026,7 +5029,10 @@ public ApiFuture createPageAsync( public static class GroupAssetsFixedSizeCollection extends AbstractFixedSizeCollection< - GroupAssetsRequest, GroupAssetsResponse, GroupResult, GroupAssetsPage, + GroupAssetsRequest, + GroupAssetsResponse, + GroupResult, + GroupAssetsPage, GroupAssetsFixedSizeCollection> { private GroupAssetsFixedSizeCollection(List pages, int collectionSize) { @@ -5046,7 +5052,10 @@ protected GroupAssetsFixedSizeCollection createCollection( public static class GroupFindingsPagedResponse extends AbstractPagedListResponse< - GroupFindingsRequest, GroupFindingsResponse, GroupResult, GroupFindingsPage, + GroupFindingsRequest, + GroupFindingsResponse, + GroupResult, + GroupFindingsPage, GroupFindingsFixedSizeCollection> { public static ApiFuture createAsync( @@ -5096,7 +5105,10 @@ public ApiFuture createPageAsync( public static class GroupFindingsFixedSizeCollection extends AbstractFixedSizeCollection< - GroupFindingsRequest, GroupFindingsResponse, GroupResult, GroupFindingsPage, + GroupFindingsRequest, + GroupFindingsResponse, + GroupResult, + GroupFindingsPage, GroupFindingsFixedSizeCollection> { private GroupFindingsFixedSizeCollection(List pages, int collectionSize) { @@ -5116,8 +5128,11 @@ protected GroupFindingsFixedSizeCollection createCollection( public static class ListAssetsPagedResponse extends AbstractPagedListResponse< - ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult, - ListAssetsPage, ListAssetsFixedSizeCollection> { + ListAssetsRequest, + ListAssetsResponse, + ListAssetsResponse.ListAssetsResult, + ListAssetsPage, + ListAssetsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -5136,7 +5151,9 @@ private ListAssetsPagedResponse(ListAssetsPage page) { public static class ListAssetsPage extends AbstractPage< - ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult, + ListAssetsRequest, + ListAssetsResponse, + ListAssetsResponse.ListAssetsResult, ListAssetsPage> { private ListAssetsPage( @@ -5169,8 +5186,11 @@ public ApiFuture createPageAsync( public static class ListAssetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult, - ListAssetsPage, ListAssetsFixedSizeCollection> { + ListAssetsRequest, + ListAssetsResponse, + ListAssetsResponse.ListAssetsResult, + ListAssetsPage, + ListAssetsFixedSizeCollection> { private ListAssetsFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); @@ -5189,8 +5209,11 @@ protected ListAssetsFixedSizeCollection createCollection( public static class ListFindingsPagedResponse extends AbstractPagedListResponse< - ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult, - ListFindingsPage, ListFindingsFixedSizeCollection> { + ListFindingsRequest, + ListFindingsResponse, + ListFindingsResponse.ListFindingsResult, + ListFindingsPage, + ListFindingsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< @@ -5212,7 +5235,9 @@ private ListFindingsPagedResponse(ListFindingsPage page) { public static class ListFindingsPage extends AbstractPage< - ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult, + ListFindingsRequest, + ListFindingsResponse, + ListFindingsResponse.ListFindingsResult, ListFindingsPage> { private ListFindingsPage( @@ -5248,8 +5273,11 @@ public ApiFuture createPageAsync( public static class ListFindingsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult, - ListFindingsPage, ListFindingsFixedSizeCollection> { + ListFindingsRequest, + ListFindingsResponse, + ListFindingsResponse.ListFindingsResult, + ListFindingsPage, + ListFindingsFixedSizeCollection> { private ListFindingsFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); @@ -5268,7 +5296,10 @@ protected ListFindingsFixedSizeCollection createCollection( public static class ListMuteConfigsPagedResponse extends AbstractPagedListResponse< - ListMuteConfigsRequest, ListMuteConfigsResponse, MuteConfig, ListMuteConfigsPage, + ListMuteConfigsRequest, + ListMuteConfigsResponse, + MuteConfig, + ListMuteConfigsPage, ListMuteConfigsFixedSizeCollection> { public static ApiFuture createAsync( @@ -5318,7 +5349,10 @@ public ApiFuture createPageAsync( public static class ListMuteConfigsFixedSizeCollection extends AbstractFixedSizeCollection< - ListMuteConfigsRequest, ListMuteConfigsResponse, MuteConfig, ListMuteConfigsPage, + ListMuteConfigsRequest, + ListMuteConfigsResponse, + MuteConfig, + ListMuteConfigsPage, ListMuteConfigsFixedSizeCollection> { private ListMuteConfigsFixedSizeCollection( @@ -5339,8 +5373,11 @@ protected ListMuteConfigsFixedSizeCollection createCollection( public static class ListNotificationConfigsPagedResponse extends AbstractPagedListResponse< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig, - ListNotificationConfigsPage, ListNotificationConfigsFixedSizeCollection> { + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, + NotificationConfig, + ListNotificationConfigsPage, + ListNotificationConfigsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< @@ -5362,7 +5399,9 @@ private ListNotificationConfigsPagedResponse(ListNotificationConfigsPage page) { public static class ListNotificationConfigsPage extends AbstractPage< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, + NotificationConfig, ListNotificationConfigsPage> { private ListNotificationConfigsPage( @@ -5398,8 +5437,11 @@ public ApiFuture createPageAsync( public static class ListNotificationConfigsFixedSizeCollection extends AbstractFixedSizeCollection< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig, - ListNotificationConfigsPage, ListNotificationConfigsFixedSizeCollection> { + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, + NotificationConfig, + ListNotificationConfigsPage, + ListNotificationConfigsFixedSizeCollection> { private ListNotificationConfigsFixedSizeCollection( List pages, int collectionSize) { @@ -5419,7 +5461,10 @@ protected ListNotificationConfigsFixedSizeCollection createCollection( public static class ListSourcesPagedResponse extends AbstractPagedListResponse< - ListSourcesRequest, ListSourcesResponse, Source, ListSourcesPage, + ListSourcesRequest, + ListSourcesResponse, + Source, + ListSourcesPage, ListSourcesFixedSizeCollection> { public static ApiFuture createAsync( @@ -5466,7 +5511,10 @@ public ApiFuture createPageAsync( public static class ListSourcesFixedSizeCollection extends AbstractFixedSizeCollection< - ListSourcesRequest, ListSourcesResponse, Source, ListSourcesPage, + ListSourcesRequest, + ListSourcesResponse, + Source, + ListSourcesPage, ListSourcesFixedSizeCollection> { private ListSourcesFixedSizeCollection(List pages, int collectionSize) { @@ -5486,8 +5534,11 @@ protected ListSourcesFixedSizeCollection createCollection( public static class ListBigQueryExportsPagedResponse extends AbstractPagedListResponse< - ListBigQueryExportsRequest, ListBigQueryExportsResponse, BigQueryExport, - ListBigQueryExportsPage, ListBigQueryExportsFixedSizeCollection> { + ListBigQueryExportsRequest, + ListBigQueryExportsResponse, + BigQueryExport, + ListBigQueryExportsPage, + ListBigQueryExportsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -5508,7 +5559,9 @@ private ListBigQueryExportsPagedResponse(ListBigQueryExportsPage page) { public static class ListBigQueryExportsPage extends AbstractPage< - ListBigQueryExportsRequest, ListBigQueryExportsResponse, BigQueryExport, + ListBigQueryExportsRequest, + ListBigQueryExportsResponse, + BigQueryExport, ListBigQueryExportsPage> { private ListBigQueryExportsPage( @@ -5541,8 +5594,11 @@ public ApiFuture createPageAsync( public static class ListBigQueryExportsFixedSizeCollection extends AbstractFixedSizeCollection< - ListBigQueryExportsRequest, ListBigQueryExportsResponse, BigQueryExport, - ListBigQueryExportsPage, ListBigQueryExportsFixedSizeCollection> { + ListBigQueryExportsRequest, + ListBigQueryExportsResponse, + BigQueryExport, + ListBigQueryExportsPage, + ListBigQueryExportsFixedSizeCollection> { private ListBigQueryExportsFixedSizeCollection( List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java index 3a52e7740..380ad1d6d 100644 --- a/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterSettings.java @@ -36,7 +36,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.securitycenter.v1.stub.SecurityCenterStubSettings; @@ -58,10 +57,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (securitycenter.googleapis.com) and default port (443) are + *
  • The default service address (securitycenter.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -197,7 +196,8 @@ public UnaryCallSettings getSourceSettings() { /** Returns the object with the settings used for calls to listNotificationConfigs. */ public PagedCallSettings< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings() { return ((SecurityCenterStubSettings) getStubSettings()).listNotificationConfigsSettings(); @@ -533,7 +533,8 @@ public UnaryCallSettings.Builder getSourceSettings() { /** Returns the builder for the settings used for calls to listNotificationConfigs. */ public PagedCallSettings.Builder< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings() { return getStubSettingsBuilder().listNotificationConfigsSettings(); @@ -639,7 +640,8 @@ public UnaryCallSettings.Builder updateSourceSettin /** Returns the builder for the settings used for calls to listBigQueryExports. */ public PagedCallSettings.Builder< - ListBigQueryExportsRequest, ListBigQueryExportsResponse, + ListBigQueryExportsRequest, + ListBigQueryExportsResponse, ListBigQueryExportsPagedResponse> listBigQueryExportsSettings() { return getStubSettingsBuilder().listBigQueryExportsSettings(); diff --git a/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/gapic_metadata.json b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/gapic_metadata.json rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java index 4943b19d6..cd09071d4 100644 --- a/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java @@ -95,7 +95,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterCallableFactory.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterCallableFactory.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java index 21f87a39e..e1cb0e6cb 100644 --- a/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java @@ -37,7 +37,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java diff --git a/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java index a8b423162..ddb4873ae 100644 --- a/owl-bot-staging/v1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java @@ -129,10 +129,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (securitycenter.googleapis.com) and default port (443) are + *
  • The default service address (securitycenter.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -197,7 +197,8 @@ public class SecurityCenterStubSettings extends StubSettings listMuteConfigsSettings; private final PagedCallSettings< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings; private final PagedCallSettings @@ -345,7 +346,8 @@ public Iterable extractResources( ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult> LIST_FINDINGS_PAGE_STR_DESC = new PagedListDescriptor< - ListFindingsRequest, ListFindingsResponse, + ListFindingsRequest, + ListFindingsResponse, ListFindingsResponse.ListFindingsResult>() { @Override public String emptyToken() { @@ -424,7 +426,8 @@ public Iterable extractResources(ListMuteConfigsResponse payload) { ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig> LIST_NOTIFICATION_CONFIGS_PAGE_STR_DESC = new PagedListDescriptor< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, NotificationConfig>() { @Override public String emptyToken() { @@ -605,7 +608,8 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListFindingsRequest, ListFindingsResponse, + ListFindingsRequest, + ListFindingsResponse, ListFindingsResponse.ListFindingsResult> pageContext = PageContext.create(callable, LIST_FINDINGS_PAGE_STR_DESC, request, context); @@ -631,11 +635,13 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> LIST_NOTIFICATION_CONFIGS_PAGE_STR_FACT = new PagedListResponseFactory< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -645,7 +651,8 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, NotificationConfig> pageContext = PageContext.create( @@ -675,7 +682,8 @@ public ApiFuture getFuturePagedResponse( ListBigQueryExportsRequest, ListBigQueryExportsResponse, ListBigQueryExportsPagedResponse> LIST_BIG_QUERY_EXPORTS_PAGE_STR_FACT = new PagedListResponseFactory< - ListBigQueryExportsRequest, ListBigQueryExportsResponse, + ListBigQueryExportsRequest, + ListBigQueryExportsResponse, ListBigQueryExportsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -799,7 +807,8 @@ public UnaryCallSettings getSourceSettings() { /** Returns the object with the settings used for calls to listNotificationConfigs. */ public PagedCallSettings< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings() { return listNotificationConfigsSettings; @@ -1097,7 +1106,8 @@ public static class Builder extends StubSettings.Builder listMuteConfigsSettings; private final PagedCallSettings.Builder< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings; private final PagedCallSettings.Builder< @@ -1133,7 +1143,8 @@ public static class Builder extends StubSettings.Builder updateBigQueryExportSettings; private final PagedCallSettings.Builder< - ListBigQueryExportsRequest, ListBigQueryExportsResponse, + ListBigQueryExportsRequest, + ListBigQueryExportsResponse, ListBigQueryExportsPagedResponse> listBigQueryExportsSettings; private static final ImmutableMap> @@ -1769,7 +1780,8 @@ public UnaryCallSettings.Builder getSourceSettings() { /** Returns the builder for the settings used for calls to listNotificationConfigs. */ public PagedCallSettings.Builder< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings() { return listNotificationConfigsSettings; @@ -1877,7 +1889,8 @@ public UnaryCallSettings.Builder updateSourceSettin /** Returns the builder for the settings used for calls to listBigQueryExports. */ public PagedCallSettings.Builder< - ListBigQueryExportsRequest, ListBigQueryExportsResponse, + ListBigQueryExportsRequest, + ListBigQueryExportsResponse, ListBigQueryExportsPagedResponse> listBigQueryExportsSettings() { return listBigQueryExportsSettings; diff --git a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java similarity index 98% rename from owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java index 716f555ef..dceb79526 100644 --- a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClient.java @@ -69,13 +69,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -875,10 +875,10 @@ public final UnaryCallable groupAssetsC * fields. For example: "parent,resource_name". *

The following fields are supported: *

    - *
  • resource_name - *
  • category - *
  • state - *
  • parent + *
  • resource_name + *
  • category + *
  • state + *
  • parent *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -921,10 +921,10 @@ public final GroupFindingsPagedResponse groupFindings(SourceName parent, String * fields. For example: "parent,resource_name". *

The following fields are supported: *

    - *
  • resource_name - *
  • category - *
  • state - *
  • parent + *
  • resource_name + *
  • category + *
  • state + *
  • parent *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -2266,7 +2266,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class GroupAssetsPagedResponse extends AbstractPagedListResponse< - GroupAssetsRequest, GroupAssetsResponse, GroupResult, GroupAssetsPage, + GroupAssetsRequest, + GroupAssetsResponse, + GroupResult, + GroupAssetsPage, GroupAssetsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2313,7 +2316,10 @@ public ApiFuture createPageAsync( public static class GroupAssetsFixedSizeCollection extends AbstractFixedSizeCollection< - GroupAssetsRequest, GroupAssetsResponse, GroupResult, GroupAssetsPage, + GroupAssetsRequest, + GroupAssetsResponse, + GroupResult, + GroupAssetsPage, GroupAssetsFixedSizeCollection> { private GroupAssetsFixedSizeCollection(List pages, int collectionSize) { @@ -2333,7 +2339,10 @@ protected GroupAssetsFixedSizeCollection createCollection( public static class GroupFindingsPagedResponse extends AbstractPagedListResponse< - GroupFindingsRequest, GroupFindingsResponse, GroupResult, GroupFindingsPage, + GroupFindingsRequest, + GroupFindingsResponse, + GroupResult, + GroupFindingsPage, GroupFindingsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2383,7 +2392,10 @@ public ApiFuture createPageAsync( public static class GroupFindingsFixedSizeCollection extends AbstractFixedSizeCollection< - GroupFindingsRequest, GroupFindingsResponse, GroupResult, GroupFindingsPage, + GroupFindingsRequest, + GroupFindingsResponse, + GroupResult, + GroupFindingsPage, GroupFindingsFixedSizeCollection> { private GroupFindingsFixedSizeCollection(List pages, int collectionSize) { @@ -2403,8 +2415,11 @@ protected GroupFindingsFixedSizeCollection createCollection( public static class ListAssetsPagedResponse extends AbstractPagedListResponse< - ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult, - ListAssetsPage, ListAssetsFixedSizeCollection> { + ListAssetsRequest, + ListAssetsResponse, + ListAssetsResponse.ListAssetsResult, + ListAssetsPage, + ListAssetsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -2423,7 +2438,9 @@ private ListAssetsPagedResponse(ListAssetsPage page) { public static class ListAssetsPage extends AbstractPage< - ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult, + ListAssetsRequest, + ListAssetsResponse, + ListAssetsResponse.ListAssetsResult, ListAssetsPage> { private ListAssetsPage( @@ -2456,8 +2473,11 @@ public ApiFuture createPageAsync( public static class ListAssetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult, - ListAssetsPage, ListAssetsFixedSizeCollection> { + ListAssetsRequest, + ListAssetsResponse, + ListAssetsResponse.ListAssetsResult, + ListAssetsPage, + ListAssetsFixedSizeCollection> { private ListAssetsFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); @@ -2476,7 +2496,10 @@ protected ListAssetsFixedSizeCollection createCollection( public static class ListFindingsPagedResponse extends AbstractPagedListResponse< - ListFindingsRequest, ListFindingsResponse, Finding, ListFindingsPage, + ListFindingsRequest, + ListFindingsResponse, + Finding, + ListFindingsPage, ListFindingsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2525,7 +2548,10 @@ public ApiFuture createPageAsync( public static class ListFindingsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFindingsRequest, ListFindingsResponse, Finding, ListFindingsPage, + ListFindingsRequest, + ListFindingsResponse, + Finding, + ListFindingsPage, ListFindingsFixedSizeCollection> { private ListFindingsFixedSizeCollection(List pages, int collectionSize) { @@ -2545,7 +2571,10 @@ protected ListFindingsFixedSizeCollection createCollection( public static class ListSourcesPagedResponse extends AbstractPagedListResponse< - ListSourcesRequest, ListSourcesResponse, Source, ListSourcesPage, + ListSourcesRequest, + ListSourcesResponse, + Source, + ListSourcesPage, ListSourcesFixedSizeCollection> { public static ApiFuture createAsync( @@ -2592,7 +2621,10 @@ public ApiFuture createPageAsync( public static class ListSourcesFixedSizeCollection extends AbstractFixedSizeCollection< - ListSourcesRequest, ListSourcesResponse, Source, ListSourcesPage, + ListSourcesRequest, + ListSourcesResponse, + Source, + ListSourcesPage, ListSourcesFixedSizeCollection> { private ListSourcesFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterSettings.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterSettings.java similarity index 98% rename from owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterSettings.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterSettings.java index 88ae66df0..f9ddee450 100644 --- a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterSettings.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterSettings.java @@ -33,7 +33,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.securitycenter.v1beta1.stub.SecurityCenterStubSettings; @@ -55,10 +54,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (securitycenter.googleapis.com) and default port (443) are + *
  • The default service address (securitycenter.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/gapic_metadata.json b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/gapic_metadata.json rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/package-info.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/package-info.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/package-info.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/package-info.java diff --git a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterCallableFactory.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterCallableFactory.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterStub.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterStub.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterStub.java index bd9a214fd..a3b3b9f98 100644 --- a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterStub.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/GrpcSecurityCenterStub.java @@ -66,7 +66,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/HttpJsonSecurityCenterCallableFactory.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/HttpJsonSecurityCenterCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/HttpJsonSecurityCenterCallableFactory.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/HttpJsonSecurityCenterCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/HttpJsonSecurityCenterStub.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/HttpJsonSecurityCenterStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/HttpJsonSecurityCenterStub.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/HttpJsonSecurityCenterStub.java index 3456d22fe..2e5ecc29d 100644 --- a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/HttpJsonSecurityCenterStub.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/HttpJsonSecurityCenterStub.java @@ -34,7 +34,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStub.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStub.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java index 1354f2c1e..9a679e91c 100644 --- a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/SecurityCenterStubSettings.java @@ -99,10 +99,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (securitycenter.googleapis.com) and default port (443) are + *
  • The default service address (securitycenter.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClient.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClient.java similarity index 98% rename from owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClient.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClient.java index fca58701a..81e2cd189 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClient.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClient.java @@ -70,13 +70,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1358,15 +1358,15 @@ public final UnaryCallable groupAssetsC * of fields. For example: "parent,resource_name". *

The following fields are supported: *

    - *
  • resource_name - *
  • category - *
  • state - *
  • parent - *
  • severity + *
  • resource_name + *
  • category + *
  • state + *
  • parent + *
  • severity *
*

The following fields are supported when compare_duration is set: *

    - *
  • state_change + *
  • state_change *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1413,15 +1413,15 @@ public final GroupFindingsPagedResponse groupFindings(SourceName parent, String * of fields. For example: "parent,resource_name". *

The following fields are supported: *

    - *
  • resource_name - *
  • category - *
  • state - *
  • parent - *
  • severity + *
  • resource_name + *
  • category + *
  • state + *
  • parent + *
  • severity *
*

The following fields are supported when compare_duration is set: *

    - *
  • state_change + *
  • state_change *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -3405,7 +3405,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class GroupAssetsPagedResponse extends AbstractPagedListResponse< - GroupAssetsRequest, GroupAssetsResponse, GroupResult, GroupAssetsPage, + GroupAssetsRequest, + GroupAssetsResponse, + GroupResult, + GroupAssetsPage, GroupAssetsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3452,7 +3455,10 @@ public ApiFuture createPageAsync( public static class GroupAssetsFixedSizeCollection extends AbstractFixedSizeCollection< - GroupAssetsRequest, GroupAssetsResponse, GroupResult, GroupAssetsPage, + GroupAssetsRequest, + GroupAssetsResponse, + GroupResult, + GroupAssetsPage, GroupAssetsFixedSizeCollection> { private GroupAssetsFixedSizeCollection(List pages, int collectionSize) { @@ -3472,7 +3478,10 @@ protected GroupAssetsFixedSizeCollection createCollection( public static class GroupFindingsPagedResponse extends AbstractPagedListResponse< - GroupFindingsRequest, GroupFindingsResponse, GroupResult, GroupFindingsPage, + GroupFindingsRequest, + GroupFindingsResponse, + GroupResult, + GroupFindingsPage, GroupFindingsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3522,7 +3531,10 @@ public ApiFuture createPageAsync( public static class GroupFindingsFixedSizeCollection extends AbstractFixedSizeCollection< - GroupFindingsRequest, GroupFindingsResponse, GroupResult, GroupFindingsPage, + GroupFindingsRequest, + GroupFindingsResponse, + GroupResult, + GroupFindingsPage, GroupFindingsFixedSizeCollection> { private GroupFindingsFixedSizeCollection(List pages, int collectionSize) { @@ -3542,8 +3554,11 @@ protected GroupFindingsFixedSizeCollection createCollection( public static class ListAssetsPagedResponse extends AbstractPagedListResponse< - ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult, - ListAssetsPage, ListAssetsFixedSizeCollection> { + ListAssetsRequest, + ListAssetsResponse, + ListAssetsResponse.ListAssetsResult, + ListAssetsPage, + ListAssetsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -3562,7 +3577,9 @@ private ListAssetsPagedResponse(ListAssetsPage page) { public static class ListAssetsPage extends AbstractPage< - ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult, + ListAssetsRequest, + ListAssetsResponse, + ListAssetsResponse.ListAssetsResult, ListAssetsPage> { private ListAssetsPage( @@ -3595,8 +3612,11 @@ public ApiFuture createPageAsync( public static class ListAssetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListAssetsRequest, ListAssetsResponse, ListAssetsResponse.ListAssetsResult, - ListAssetsPage, ListAssetsFixedSizeCollection> { + ListAssetsRequest, + ListAssetsResponse, + ListAssetsResponse.ListAssetsResult, + ListAssetsPage, + ListAssetsFixedSizeCollection> { private ListAssetsFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); @@ -3615,8 +3635,11 @@ protected ListAssetsFixedSizeCollection createCollection( public static class ListFindingsPagedResponse extends AbstractPagedListResponse< - ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult, - ListFindingsPage, ListFindingsFixedSizeCollection> { + ListFindingsRequest, + ListFindingsResponse, + ListFindingsResponse.ListFindingsResult, + ListFindingsPage, + ListFindingsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< @@ -3638,7 +3661,9 @@ private ListFindingsPagedResponse(ListFindingsPage page) { public static class ListFindingsPage extends AbstractPage< - ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult, + ListFindingsRequest, + ListFindingsResponse, + ListFindingsResponse.ListFindingsResult, ListFindingsPage> { private ListFindingsPage( @@ -3674,8 +3699,11 @@ public ApiFuture createPageAsync( public static class ListFindingsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult, - ListFindingsPage, ListFindingsFixedSizeCollection> { + ListFindingsRequest, + ListFindingsResponse, + ListFindingsResponse.ListFindingsResult, + ListFindingsPage, + ListFindingsFixedSizeCollection> { private ListFindingsFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); @@ -3694,8 +3722,11 @@ protected ListFindingsFixedSizeCollection createCollection( public static class ListNotificationConfigsPagedResponse extends AbstractPagedListResponse< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig, - ListNotificationConfigsPage, ListNotificationConfigsFixedSizeCollection> { + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, + NotificationConfig, + ListNotificationConfigsPage, + ListNotificationConfigsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< @@ -3717,7 +3748,9 @@ private ListNotificationConfigsPagedResponse(ListNotificationConfigsPage page) { public static class ListNotificationConfigsPage extends AbstractPage< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, + NotificationConfig, ListNotificationConfigsPage> { private ListNotificationConfigsPage( @@ -3753,8 +3786,11 @@ public ApiFuture createPageAsync( public static class ListNotificationConfigsFixedSizeCollection extends AbstractFixedSizeCollection< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig, - ListNotificationConfigsPage, ListNotificationConfigsFixedSizeCollection> { + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, + NotificationConfig, + ListNotificationConfigsPage, + ListNotificationConfigsFixedSizeCollection> { private ListNotificationConfigsFixedSizeCollection( List pages, int collectionSize) { @@ -3774,7 +3810,10 @@ protected ListNotificationConfigsFixedSizeCollection createCollection( public static class ListSourcesPagedResponse extends AbstractPagedListResponse< - ListSourcesRequest, ListSourcesResponse, Source, ListSourcesPage, + ListSourcesRequest, + ListSourcesResponse, + Source, + ListSourcesPage, ListSourcesFixedSizeCollection> { public static ApiFuture createAsync( @@ -3821,7 +3860,10 @@ public ApiFuture createPageAsync( public static class ListSourcesFixedSizeCollection extends AbstractFixedSizeCollection< - ListSourcesRequest, ListSourcesResponse, Source, ListSourcesPage, + ListSourcesRequest, + ListSourcesResponse, + Source, + ListSourcesPage, ListSourcesFixedSizeCollection> { private ListSourcesFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterSettings.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterSettings.java similarity index 97% rename from owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterSettings.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterSettings.java index 92a983a26..475a1c90e 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterSettings.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterSettings.java @@ -34,7 +34,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.securitycenter.v1p1beta1.stub.SecurityCenterStubSettings; @@ -56,10 +55,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (securitycenter.googleapis.com) and default port (443) are + *
  • The default service address (securitycenter.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -158,7 +157,8 @@ public UnaryCallSettings getSourceSettings() { /** Returns the object with the settings used for calls to listNotificationConfigs. */ public PagedCallSettings< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings() { return ((SecurityCenterStubSettings) getStubSettings()).listNotificationConfigsSettings(); @@ -413,7 +413,8 @@ public UnaryCallSettings.Builder getSourceSettings() { /** Returns the builder for the settings used for calls to listNotificationConfigs. */ public PagedCallSettings.Builder< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings() { return getStubSettingsBuilder().listNotificationConfigsSettings(); diff --git a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/gapic_metadata.json b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/gapic_metadata.json rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/gapic_metadata.json diff --git a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/package-info.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/package-info.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/package-info.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/package-info.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterCallableFactory.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterCallableFactory.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterCallableFactory.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java similarity index 99% rename from owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java index 2e239c14a..9030034ef 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/GrpcSecurityCenterStub.java @@ -75,7 +75,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/HttpJsonSecurityCenterCallableFactory.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/HttpJsonSecurityCenterCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/HttpJsonSecurityCenterCallableFactory.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/HttpJsonSecurityCenterCallableFactory.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/HttpJsonSecurityCenterStub.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/HttpJsonSecurityCenterStub.java similarity index 99% rename from owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/HttpJsonSecurityCenterStub.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/HttpJsonSecurityCenterStub.java index 8e4ef11fe..4e376ba4d 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/HttpJsonSecurityCenterStub.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/HttpJsonSecurityCenterStub.java @@ -35,7 +35,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStub.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java similarity index 98% rename from owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java rename to google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java index 17e6c3c40..f8610c6da 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java +++ b/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/SecurityCenterStubSettings.java @@ -108,10 +108,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (securitycenter.googleapis.com) and default port (443) are + *
  • The default service address (securitycenter.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -166,7 +166,8 @@ public class SecurityCenterStubSettings extends StubSettings listFindingsSettings; private final PagedCallSettings< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings; private final PagedCallSettings @@ -302,7 +303,8 @@ public Iterable extractResources( ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult> LIST_FINDINGS_PAGE_STR_DESC = new PagedListDescriptor< - ListFindingsRequest, ListFindingsResponse, + ListFindingsRequest, + ListFindingsResponse, ListFindingsResponse.ListFindingsResult>() { @Override public String emptyToken() { @@ -342,7 +344,8 @@ public Iterable extractResources( ListNotificationConfigsRequest, ListNotificationConfigsResponse, NotificationConfig> LIST_NOTIFICATION_CONFIGS_PAGE_STR_DESC = new PagedListDescriptor< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, NotificationConfig>() { @Override public String emptyToken() { @@ -483,7 +486,8 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListFindingsRequest, ListFindingsResponse, + ListFindingsRequest, + ListFindingsResponse, ListFindingsResponse.ListFindingsResult> pageContext = PageContext.create(callable, LIST_FINDINGS_PAGE_STR_DESC, request, context); @@ -492,11 +496,13 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> LIST_NOTIFICATION_CONFIGS_PAGE_STR_FACT = new PagedListResponseFactory< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -506,7 +512,8 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, NotificationConfig> pageContext = PageContext.create( @@ -602,7 +609,8 @@ public UnaryCallSettings getSourceSettings() { /** Returns the object with the settings used for calls to listNotificationConfigs. */ public PagedCallSettings< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings() { return listNotificationConfigsSettings; @@ -831,7 +839,8 @@ public static class Builder extends StubSettings.Builder listFindingsSettings; private final PagedCallSettings.Builder< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings; private final PagedCallSettings.Builder< @@ -1298,7 +1307,8 @@ public UnaryCallSettings.Builder getSourceSettings() { /** Returns the builder for the settings used for calls to listNotificationConfigs. */ public PagedCallSettings.Builder< - ListNotificationConfigsRequest, ListNotificationConfigsResponse, + ListNotificationConfigsRequest, + ListNotificationConfigsResponse, ListNotificationConfigsPagedResponse> listNotificationConfigsSettings() { return listNotificationConfigsSettings; diff --git a/owl-bot-staging/v1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenter.java b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenter.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenter.java rename to google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenter.java diff --git a/owl-bot-staging/v1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenterImpl.java b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenterImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenterImpl.java rename to google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenterImpl.java diff --git a/owl-bot-staging/v1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java rename to google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java rename to google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenter.java b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenter.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenter.java rename to google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenter.java diff --git a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenterImpl.java b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenterImpl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenterImpl.java rename to google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/MockSecurityCenterImpl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientHttpJsonTest.java b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientHttpJsonTest.java rename to google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientHttpJsonTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientTest.java b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientTest.java rename to google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterClientTest.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/MockSecurityCenter.java b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/MockSecurityCenter.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/MockSecurityCenter.java rename to google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/MockSecurityCenter.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/MockSecurityCenterImpl.java b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/MockSecurityCenterImpl.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/MockSecurityCenterImpl.java rename to google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/MockSecurityCenterImpl.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientHttpJsonTest.java b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientHttpJsonTest.java rename to google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientHttpJsonTest.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientTest.java b/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientTest.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientTest.java rename to google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientTest.java diff --git a/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java b/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java new file mode 100644 index 000000000..20f14b85f --- /dev/null +++ b/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java @@ -0,0 +1,4634 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.securitycenter.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * V1 APIs for Security Center service.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/securitycenter/v1/securitycenter_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SecurityCenterGrpc { + + private SecurityCenterGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.securitycenter.v1.SecurityCenter"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest, + com.google.longrunning.Operation> + getBulkMuteFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BulkMuteFindings", + requestType = com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest, + com.google.longrunning.Operation> + getBulkMuteFindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest, + com.google.longrunning.Operation> + getBulkMuteFindingsMethod; + if ((getBulkMuteFindingsMethod = SecurityCenterGrpc.getBulkMuteFindingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getBulkMuteFindingsMethod = SecurityCenterGrpc.getBulkMuteFindingsMethod) == null) { + SecurityCenterGrpc.getBulkMuteFindingsMethod = + getBulkMuteFindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BulkMuteFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("BulkMuteFindings")) + .build(); + } + } + } + return getBulkMuteFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getCreateSourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSource", + requestType = com.google.cloud.securitycenter.v1.CreateSourceRequest.class, + responseType = com.google.cloud.securitycenter.v1.Source.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getCreateSourceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getCreateSourceMethod; + if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { + SecurityCenterGrpc.getCreateSourceMethod = + getCreateSourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.CreateSourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.Source.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("CreateSource")) + .build(); + } + } + } + return getCreateSourceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateFindingRequest, + com.google.cloud.securitycenter.v1.Finding> + getCreateFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFinding", + requestType = com.google.cloud.securitycenter.v1.CreateFindingRequest.class, + responseType = com.google.cloud.securitycenter.v1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateFindingRequest, + com.google.cloud.securitycenter.v1.Finding> + getCreateFindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateFindingRequest, + com.google.cloud.securitycenter.v1.Finding> + getCreateFindingMethod; + if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { + SecurityCenterGrpc.getCreateFindingMethod = + getCreateFindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.CreateFindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.Finding.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("CreateFinding")) + .build(); + } + } + } + return getCreateFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest, + com.google.cloud.securitycenter.v1.MuteConfig> + getCreateMuteConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMuteConfig", + requestType = com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.class, + responseType = com.google.cloud.securitycenter.v1.MuteConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest, + com.google.cloud.securitycenter.v1.MuteConfig> + getCreateMuteConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest, + com.google.cloud.securitycenter.v1.MuteConfig> + getCreateMuteConfigMethod; + if ((getCreateMuteConfigMethod = SecurityCenterGrpc.getCreateMuteConfigMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateMuteConfigMethod = SecurityCenterGrpc.getCreateMuteConfigMethod) == null) { + SecurityCenterGrpc.getCreateMuteConfigMethod = + getCreateMuteConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMuteConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("CreateMuteConfig")) + .build(); + } + } + } + return getCreateMuteConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest, + com.google.cloud.securitycenter.v1.NotificationConfig> + getCreateNotificationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateNotificationConfig", + requestType = com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.class, + responseType = com.google.cloud.securitycenter.v1.NotificationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest, + com.google.cloud.securitycenter.v1.NotificationConfig> + getCreateNotificationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest, + com.google.cloud.securitycenter.v1.NotificationConfig> + getCreateNotificationConfigMethod; + if ((getCreateNotificationConfigMethod = SecurityCenterGrpc.getCreateNotificationConfigMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateNotificationConfigMethod = + SecurityCenterGrpc.getCreateNotificationConfigMethod) + == null) { + SecurityCenterGrpc.getCreateNotificationConfigMethod = + getCreateNotificationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateNotificationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.NotificationConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("CreateNotificationConfig")) + .build(); + } + } + } + return getCreateNotificationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest, com.google.protobuf.Empty> + getDeleteMuteConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMuteConfig", + requestType = com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest, com.google.protobuf.Empty> + getDeleteMuteConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest, com.google.protobuf.Empty> + getDeleteMuteConfigMethod; + if ((getDeleteMuteConfigMethod = SecurityCenterGrpc.getDeleteMuteConfigMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getDeleteMuteConfigMethod = SecurityCenterGrpc.getDeleteMuteConfigMethod) == null) { + SecurityCenterGrpc.getDeleteMuteConfigMethod = + getDeleteMuteConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMuteConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("DeleteMuteConfig")) + .build(); + } + } + } + return getDeleteMuteConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest, + com.google.protobuf.Empty> + getDeleteNotificationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteNotificationConfig", + requestType = com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest, + com.google.protobuf.Empty> + getDeleteNotificationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest, + com.google.protobuf.Empty> + getDeleteNotificationConfigMethod; + if ((getDeleteNotificationConfigMethod = SecurityCenterGrpc.getDeleteNotificationConfigMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getDeleteNotificationConfigMethod = + SecurityCenterGrpc.getDeleteNotificationConfigMethod) + == null) { + SecurityCenterGrpc.getDeleteNotificationConfigMethod = + getDeleteNotificationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteNotificationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("DeleteNotificationConfig")) + .build(); + } + } + } + return getDeleteNotificationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest, + com.google.cloud.securitycenter.v1.BigQueryExport> + getGetBigQueryExportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBigQueryExport", + requestType = com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.class, + responseType = com.google.cloud.securitycenter.v1.BigQueryExport.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest, + com.google.cloud.securitycenter.v1.BigQueryExport> + getGetBigQueryExportMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest, + com.google.cloud.securitycenter.v1.BigQueryExport> + getGetBigQueryExportMethod; + if ((getGetBigQueryExportMethod = SecurityCenterGrpc.getGetBigQueryExportMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetBigQueryExportMethod = SecurityCenterGrpc.getGetBigQueryExportMethod) == null) { + SecurityCenterGrpc.getGetBigQueryExportMethod = + getGetBigQueryExportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBigQueryExport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.BigQueryExport + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("GetBigQueryExport")) + .build(); + } + } + } + return getGetBigQueryExportMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { + SecurityCenterGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetMuteConfigRequest, + com.google.cloud.securitycenter.v1.MuteConfig> + getGetMuteConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMuteConfig", + requestType = com.google.cloud.securitycenter.v1.GetMuteConfigRequest.class, + responseType = com.google.cloud.securitycenter.v1.MuteConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetMuteConfigRequest, + com.google.cloud.securitycenter.v1.MuteConfig> + getGetMuteConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetMuteConfigRequest, + com.google.cloud.securitycenter.v1.MuteConfig> + getGetMuteConfigMethod; + if ((getGetMuteConfigMethod = SecurityCenterGrpc.getGetMuteConfigMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetMuteConfigMethod = SecurityCenterGrpc.getGetMuteConfigMethod) == null) { + SecurityCenterGrpc.getGetMuteConfigMethod = + getGetMuteConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMuteConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GetMuteConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("GetMuteConfig")) + .build(); + } + } + } + return getGetMuteConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest, + com.google.cloud.securitycenter.v1.NotificationConfig> + getGetNotificationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNotificationConfig", + requestType = com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.class, + responseType = com.google.cloud.securitycenter.v1.NotificationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest, + com.google.cloud.securitycenter.v1.NotificationConfig> + getGetNotificationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest, + com.google.cloud.securitycenter.v1.NotificationConfig> + getGetNotificationConfigMethod; + if ((getGetNotificationConfigMethod = SecurityCenterGrpc.getGetNotificationConfigMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetNotificationConfigMethod = SecurityCenterGrpc.getGetNotificationConfigMethod) + == null) { + SecurityCenterGrpc.getGetNotificationConfigMethod = + getGetNotificationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetNotificationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.NotificationConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("GetNotificationConfig")) + .build(); + } + } + } + return getGetNotificationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings> + getGetOrganizationSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOrganizationSettings", + requestType = com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.class, + responseType = com.google.cloud.securitycenter.v1.OrganizationSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings> + getGetOrganizationSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings> + getGetOrganizationSettingsMethod; + if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) + == null) { + SecurityCenterGrpc.getGetOrganizationSettingsMethod = + getGetOrganizationSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetOrganizationSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.OrganizationSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("GetOrganizationSettings")) + .build(); + } + } + } + return getGetOrganizationSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getGetSourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSource", + requestType = com.google.cloud.securitycenter.v1.GetSourceRequest.class, + responseType = com.google.cloud.securitycenter.v1.Source.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getGetSourceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GetSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getGetSourceMethod; + if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { + SecurityCenterGrpc.getGetSourceMethod = + getGetSourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GetSourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.Source.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetSource")) + .build(); + } + } + } + return getGetSourceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1.GroupAssetsResponse> + getGroupAssetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GroupAssets", + requestType = com.google.cloud.securitycenter.v1.GroupAssetsRequest.class, + responseType = com.google.cloud.securitycenter.v1.GroupAssetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1.GroupAssetsResponse> + getGroupAssetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1.GroupAssetsResponse> + getGroupAssetsMethod; + if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { + SecurityCenterGrpc.getGroupAssetsMethod = + getGroupAssetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GroupAssetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GroupAssetsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("GroupAssets")) + .build(); + } + } + } + return getGroupAssetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1.GroupFindingsResponse> + getGroupFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GroupFindings", + requestType = com.google.cloud.securitycenter.v1.GroupFindingsRequest.class, + responseType = com.google.cloud.securitycenter.v1.GroupFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1.GroupFindingsResponse> + getGroupFindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1.GroupFindingsResponse> + getGroupFindingsMethod; + if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { + SecurityCenterGrpc.getGroupFindingsMethod = + getGroupFindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GroupFindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.GroupFindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("GroupFindings")) + .build(); + } + } + } + return getGroupFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListAssetsRequest, + com.google.cloud.securitycenter.v1.ListAssetsResponse> + getListAssetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAssets", + requestType = com.google.cloud.securitycenter.v1.ListAssetsRequest.class, + responseType = com.google.cloud.securitycenter.v1.ListAssetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListAssetsRequest, + com.google.cloud.securitycenter.v1.ListAssetsResponse> + getListAssetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListAssetsRequest, + com.google.cloud.securitycenter.v1.ListAssetsResponse> + getListAssetsMethod; + if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { + SecurityCenterGrpc.getListAssetsMethod = + getListAssetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListAssetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListAssetsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListAssets")) + .build(); + } + } + } + return getListAssetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListFindingsRequest, + com.google.cloud.securitycenter.v1.ListFindingsResponse> + getListFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindings", + requestType = com.google.cloud.securitycenter.v1.ListFindingsRequest.class, + responseType = com.google.cloud.securitycenter.v1.ListFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListFindingsRequest, + com.google.cloud.securitycenter.v1.ListFindingsResponse> + getListFindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListFindingsRequest, + com.google.cloud.securitycenter.v1.ListFindingsResponse> + getListFindingsMethod; + if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { + SecurityCenterGrpc.getListFindingsMethod = + getListFindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListFindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListFindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("ListFindings")) + .build(); + } + } + } + return getListFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListMuteConfigsRequest, + com.google.cloud.securitycenter.v1.ListMuteConfigsResponse> + getListMuteConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMuteConfigs", + requestType = com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.class, + responseType = com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListMuteConfigsRequest, + com.google.cloud.securitycenter.v1.ListMuteConfigsResponse> + getListMuteConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListMuteConfigsRequest, + com.google.cloud.securitycenter.v1.ListMuteConfigsResponse> + getListMuteConfigsMethod; + if ((getListMuteConfigsMethod = SecurityCenterGrpc.getListMuteConfigsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListMuteConfigsMethod = SecurityCenterGrpc.getListMuteConfigsMethod) == null) { + SecurityCenterGrpc.getListMuteConfigsMethod = + getListMuteConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMuteConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListMuteConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListMuteConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("ListMuteConfigs")) + .build(); + } + } + } + return getListMuteConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest, + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse> + getListNotificationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNotificationConfigs", + requestType = com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.class, + responseType = com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest, + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse> + getListNotificationConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest, + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse> + getListNotificationConfigsMethod; + if ((getListNotificationConfigsMethod = SecurityCenterGrpc.getListNotificationConfigsMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListNotificationConfigsMethod = SecurityCenterGrpc.getListNotificationConfigsMethod) + == null) { + SecurityCenterGrpc.getListNotificationConfigsMethod = + getListNotificationConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListNotificationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("ListNotificationConfigs")) + .build(); + } + } + } + return getListNotificationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListSourcesRequest, + com.google.cloud.securitycenter.v1.ListSourcesResponse> + getListSourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSources", + requestType = com.google.cloud.securitycenter.v1.ListSourcesRequest.class, + responseType = com.google.cloud.securitycenter.v1.ListSourcesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListSourcesRequest, + com.google.cloud.securitycenter.v1.ListSourcesResponse> + getListSourcesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListSourcesRequest, + com.google.cloud.securitycenter.v1.ListSourcesResponse> + getListSourcesMethod; + if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { + SecurityCenterGrpc.getListSourcesMethod = + getListSourcesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListSourcesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListSourcesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("ListSources")) + .build(); + } + } + } + return getListSourcesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation> + getRunAssetDiscoveryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RunAssetDiscovery", + requestType = com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation> + getRunAssetDiscoveryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation> + getRunAssetDiscoveryMethod; + if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { + SecurityCenterGrpc.getRunAssetDiscoveryMethod = + getRunAssetDiscoveryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunAssetDiscovery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("RunAssetDiscovery")) + .build(); + } + } + } + return getRunAssetDiscoveryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1.Finding> + getSetFindingStateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetFindingState", + requestType = com.google.cloud.securitycenter.v1.SetFindingStateRequest.class, + responseType = com.google.cloud.securitycenter.v1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1.Finding> + getSetFindingStateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1.Finding> + getSetFindingStateMethod; + if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { + SecurityCenterGrpc.getSetFindingStateMethod = + getSetFindingStateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetFindingState")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.SetFindingStateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.Finding.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("SetFindingState")) + .build(); + } + } + } + return getSetFindingStateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.SetMuteRequest, + com.google.cloud.securitycenter.v1.Finding> + getSetMuteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetMute", + requestType = com.google.cloud.securitycenter.v1.SetMuteRequest.class, + responseType = com.google.cloud.securitycenter.v1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.SetMuteRequest, + com.google.cloud.securitycenter.v1.Finding> + getSetMuteMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.SetMuteRequest, + com.google.cloud.securitycenter.v1.Finding> + getSetMuteMethod; + if ((getSetMuteMethod = SecurityCenterGrpc.getSetMuteMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getSetMuteMethod = SecurityCenterGrpc.getSetMuteMethod) == null) { + SecurityCenterGrpc.getSetMuteMethod = + getSetMuteMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetMute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.SetMuteRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.Finding.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("SetMute")) + .build(); + } + } + } + return getSetMuteMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { + SecurityCenterGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) + == null) { + SecurityCenterGrpc.getTestIamPermissionsMethod = + getTestIamPermissionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest, + com.google.cloud.securitycenter.v1.ExternalSystem> + getUpdateExternalSystemMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateExternalSystem", + requestType = com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.class, + responseType = com.google.cloud.securitycenter.v1.ExternalSystem.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest, + com.google.cloud.securitycenter.v1.ExternalSystem> + getUpdateExternalSystemMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest, + com.google.cloud.securitycenter.v1.ExternalSystem> + getUpdateExternalSystemMethod; + if ((getUpdateExternalSystemMethod = SecurityCenterGrpc.getUpdateExternalSystemMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateExternalSystemMethod = SecurityCenterGrpc.getUpdateExternalSystemMethod) + == null) { + SecurityCenterGrpc.getUpdateExternalSystemMethod = + getUpdateExternalSystemMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateExternalSystem")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ExternalSystem + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateExternalSystem")) + .build(); + } + } + } + return getUpdateExternalSystemMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1.Finding> + getUpdateFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFinding", + requestType = com.google.cloud.securitycenter.v1.UpdateFindingRequest.class, + responseType = com.google.cloud.securitycenter.v1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1.Finding> + getUpdateFindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1.Finding> + getUpdateFindingMethod; + if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { + SecurityCenterGrpc.getUpdateFindingMethod = + getUpdateFindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.UpdateFindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.Finding.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateFinding")) + .build(); + } + } + } + return getUpdateFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest, + com.google.cloud.securitycenter.v1.MuteConfig> + getUpdateMuteConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMuteConfig", + requestType = com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.class, + responseType = com.google.cloud.securitycenter.v1.MuteConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest, + com.google.cloud.securitycenter.v1.MuteConfig> + getUpdateMuteConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest, + com.google.cloud.securitycenter.v1.MuteConfig> + getUpdateMuteConfigMethod; + if ((getUpdateMuteConfigMethod = SecurityCenterGrpc.getUpdateMuteConfigMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateMuteConfigMethod = SecurityCenterGrpc.getUpdateMuteConfigMethod) == null) { + SecurityCenterGrpc.getUpdateMuteConfigMethod = + getUpdateMuteConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMuteConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateMuteConfig")) + .build(); + } + } + } + return getUpdateMuteConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest, + com.google.cloud.securitycenter.v1.NotificationConfig> + getUpdateNotificationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNotificationConfig", + requestType = com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.class, + responseType = com.google.cloud.securitycenter.v1.NotificationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest, + com.google.cloud.securitycenter.v1.NotificationConfig> + getUpdateNotificationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest, + com.google.cloud.securitycenter.v1.NotificationConfig> + getUpdateNotificationConfigMethod; + if ((getUpdateNotificationConfigMethod = SecurityCenterGrpc.getUpdateNotificationConfigMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateNotificationConfigMethod = + SecurityCenterGrpc.getUpdateNotificationConfigMethod) + == null) { + SecurityCenterGrpc.getUpdateNotificationConfigMethod = + getUpdateNotificationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateNotificationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.NotificationConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateNotificationConfig")) + .build(); + } + } + } + return getUpdateNotificationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings> + getUpdateOrganizationSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateOrganizationSettings", + requestType = com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.class, + responseType = com.google.cloud.securitycenter.v1.OrganizationSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings> + getUpdateOrganizationSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings> + getUpdateOrganizationSettingsMethod; + if ((getUpdateOrganizationSettingsMethod = + SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateOrganizationSettingsMethod = + SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) + == null) { + SecurityCenterGrpc.getUpdateOrganizationSettingsMethod = + getUpdateOrganizationSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateOrganizationSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.OrganizationSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateOrganizationSettings")) + .build(); + } + } + } + return getUpdateOrganizationSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getUpdateSourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSource", + requestType = com.google.cloud.securitycenter.v1.UpdateSourceRequest.class, + responseType = com.google.cloud.securitycenter.v1.Source.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getUpdateSourceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1.Source> + getUpdateSourceMethod; + if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { + SecurityCenterGrpc.getUpdateSourceMethod = + getUpdateSourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.UpdateSourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.Source.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateSource")) + .build(); + } + } + } + return getUpdateSourceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1.SecurityMarks> + getUpdateSecurityMarksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSecurityMarks", + requestType = com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.class, + responseType = com.google.cloud.securitycenter.v1.SecurityMarks.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1.SecurityMarks> + getUpdateSecurityMarksMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1.SecurityMarks> + getUpdateSecurityMarksMethod; + if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) + == null) { + SecurityCenterGrpc.getUpdateSecurityMarksMethod = + getUpdateSecurityMarksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateSecurityMarks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.SecurityMarks + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateSecurityMarks")) + .build(); + } + } + } + return getUpdateSecurityMarksMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest, + com.google.cloud.securitycenter.v1.BigQueryExport> + getCreateBigQueryExportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBigQueryExport", + requestType = com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.class, + responseType = com.google.cloud.securitycenter.v1.BigQueryExport.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest, + com.google.cloud.securitycenter.v1.BigQueryExport> + getCreateBigQueryExportMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest, + com.google.cloud.securitycenter.v1.BigQueryExport> + getCreateBigQueryExportMethod; + if ((getCreateBigQueryExportMethod = SecurityCenterGrpc.getCreateBigQueryExportMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateBigQueryExportMethod = SecurityCenterGrpc.getCreateBigQueryExportMethod) + == null) { + SecurityCenterGrpc.getCreateBigQueryExportMethod = + getCreateBigQueryExportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateBigQueryExport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.BigQueryExport + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("CreateBigQueryExport")) + .build(); + } + } + } + return getCreateBigQueryExportMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest, com.google.protobuf.Empty> + getDeleteBigQueryExportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBigQueryExport", + requestType = com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest, com.google.protobuf.Empty> + getDeleteBigQueryExportMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest, + com.google.protobuf.Empty> + getDeleteBigQueryExportMethod; + if ((getDeleteBigQueryExportMethod = SecurityCenterGrpc.getDeleteBigQueryExportMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getDeleteBigQueryExportMethod = SecurityCenterGrpc.getDeleteBigQueryExportMethod) + == null) { + SecurityCenterGrpc.getDeleteBigQueryExportMethod = + getDeleteBigQueryExportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteBigQueryExport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("DeleteBigQueryExport")) + .build(); + } + } + } + return getDeleteBigQueryExportMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest, + com.google.cloud.securitycenter.v1.BigQueryExport> + getUpdateBigQueryExportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBigQueryExport", + requestType = com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.class, + responseType = com.google.cloud.securitycenter.v1.BigQueryExport.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest, + com.google.cloud.securitycenter.v1.BigQueryExport> + getUpdateBigQueryExportMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest, + com.google.cloud.securitycenter.v1.BigQueryExport> + getUpdateBigQueryExportMethod; + if ((getUpdateBigQueryExportMethod = SecurityCenterGrpc.getUpdateBigQueryExportMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateBigQueryExportMethod = SecurityCenterGrpc.getUpdateBigQueryExportMethod) + == null) { + SecurityCenterGrpc.getUpdateBigQueryExportMethod = + getUpdateBigQueryExportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateBigQueryExport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.BigQueryExport + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateBigQueryExport")) + .build(); + } + } + } + return getUpdateBigQueryExportMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest, + com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse> + getListBigQueryExportsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBigQueryExports", + requestType = com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.class, + responseType = com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest, + com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse> + getListBigQueryExportsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest, + com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse> + getListBigQueryExportsMethod; + if ((getListBigQueryExportsMethod = SecurityCenterGrpc.getListBigQueryExportsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListBigQueryExportsMethod = SecurityCenterGrpc.getListBigQueryExportsMethod) + == null) { + SecurityCenterGrpc.getListBigQueryExportsMethod = + getListBigQueryExportsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListBigQueryExports")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("ListBigQueryExports")) + .build(); + } + } + } + return getListBigQueryExportsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SecurityCenterStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterStub(channel, callOptions); + } + }; + return SecurityCenterStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SecurityCenterBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterBlockingStub(channel, callOptions); + } + }; + return SecurityCenterBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SecurityCenterFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterFutureStub(channel, callOptions); + } + }; + return SecurityCenterFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * V1 APIs for Security Center service.
+   * 
+ */ + public abstract static class SecurityCenterImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Kicks off an LRO to bulk mute findings for a parent based on a filter. The
+     * parent can be either an organization, folder or project. The findings
+     * matched by the filter will be muted after the LRO is done.
+     * 
+ */ + public void bulkMuteFindings( + com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBulkMuteFindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a source.
+     * 
+ */ + public void createSource( + com.google.cloud.securitycenter.v1.CreateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSourceMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a finding. The corresponding source must exist for finding creation
+     * to succeed.
+     * 
+ */ + public void createFinding( + com.google.cloud.securitycenter.v1.CreateFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFindingMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a mute config.
+     * 
+ */ + public void createMuteConfig( + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMuteConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a notification config.
+     * 
+ */ + public void createNotificationConfig( + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateNotificationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an existing mute config.
+     * 
+ */ + public void deleteMuteConfig( + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMuteConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a notification config.
+     * 
+ */ + public void deleteNotificationConfig( + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteNotificationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a big query export.
+     * 
+ */ + public void getBigQueryExport( + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetBigQueryExportMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a mute config.
+     * 
+ */ + public void getMuteConfig( + com.google.cloud.securitycenter.v1.GetMuteConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMuteConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a notification config.
+     * 
+ */ + public void getNotificationConfig( + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNotificationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the settings for an organization.
+     * 
+ */ + public void getOrganizationSettings( + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetOrganizationSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a source.
+     * 
+ */ + public void getSource( + com.google.cloud.securitycenter.v1.GetSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSourceMethod(), responseObserver); + } + + /** + * + * + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public void groupAssets( + com.google.cloud.securitycenter.v1.GroupAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGroupAssetsMethod(), responseObserver); + } + + /** + * + * + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings,
+     * /v1/folders/{folder_id}/sources/-/findings,
+     * /v1/projects/{project_id}/sources/-/findings
+     * 
+ */ + public void groupFindings( + com.google.cloud.securitycenter.v1.GroupFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGroupFindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists an organization's assets.
+     * 
+ */ + public void listAssets( + com.google.cloud.securitycenter.v1.ListAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public void listFindings( + com.google.cloud.securitycenter.v1.ListFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists mute configs.
+     * 
+ */ + public void listMuteConfigs( + com.google.cloud.securitycenter.v1.ListMuteConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMuteConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists notification configs.
+     * 
+ */ + public void listNotificationConfigs( + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNotificationConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public void listSources( + com.google.cloud.securitycenter.v1.ListSourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSourcesMethod(), responseObserver); + } + + /** + * + * + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public void runAssetDiscovery( + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRunAssetDiscoveryMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the state of a finding.
+     * 
+ */ + public void setFindingState( + com.google.cloud.securitycenter.v1.SetFindingStateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetFindingStateMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the mute state of a finding.
+     * 
+ */ + public void setMute( + com.google.cloud.securitycenter.v1.SetMuteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetMuteMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates external system. This is for a given finding.
+     * 
+ */ + public void updateExternalSystem( + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateExternalSystemMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public void updateFinding( + com.google.cloud.securitycenter.v1.UpdateFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFindingMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a mute config.
+     * 
+ */ + public void updateMuteConfig( + com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMuteConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a notification config. The following update
+     * fields are allowed: description, pubsub_topic, streaming_config.filter
+     * 
+ */ + public void updateNotificationConfig( + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateNotificationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an organization's settings.
+     * 
+ */ + public void updateOrganizationSettings( + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateOrganizationSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a source.
+     * 
+ */ + public void updateSource( + com.google.cloud.securitycenter.v1.UpdateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSourceMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates security marks.
+     * 
+ */ + public void updateSecurityMarks( + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSecurityMarksMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a big query export.
+     * 
+ */ + public void createBigQueryExport( + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBigQueryExportMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an existing big query export.
+     * 
+ */ + public void deleteBigQueryExport( + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBigQueryExportMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a BigQuery export.
+     * 
+ */ + public void updateBigQueryExport( + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBigQueryExportMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists BigQuery exports. Note that when requesting BigQuery exports at a
+     * given level all exports under that level are also returned e.g. if
+     * requesting BigQuery exports under a folder, then all BigQuery exports
+     * immediately under the folder plus the ones created under the projects
+     * within the folder are returned.
+     * 
+ */ + public void listBigQueryExports( + com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBigQueryExportsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getBulkMuteFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest, + com.google.longrunning.Operation>(this, METHODID_BULK_MUTE_FINDINGS))) + .addMethod( + getCreateSourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.CreateSourceRequest, + com.google.cloud.securitycenter.v1.Source>(this, METHODID_CREATE_SOURCE))) + .addMethod( + getCreateFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.CreateFindingRequest, + com.google.cloud.securitycenter.v1.Finding>(this, METHODID_CREATE_FINDING))) + .addMethod( + getCreateMuteConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest, + com.google.cloud.securitycenter.v1.MuteConfig>( + this, METHODID_CREATE_MUTE_CONFIG))) + .addMethod( + getCreateNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest, + com.google.cloud.securitycenter.v1.NotificationConfig>( + this, METHODID_CREATE_NOTIFICATION_CONFIG))) + .addMethod( + getDeleteMuteConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_MUTE_CONFIG))) + .addMethod( + getDeleteNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_NOTIFICATION_CONFIG))) + .addMethod( + getGetBigQueryExportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest, + com.google.cloud.securitycenter.v1.BigQueryExport>( + this, METHODID_GET_BIG_QUERY_EXPORT))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getGetMuteConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.GetMuteConfigRequest, + com.google.cloud.securitycenter.v1.MuteConfig>( + this, METHODID_GET_MUTE_CONFIG))) + .addMethod( + getGetNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest, + com.google.cloud.securitycenter.v1.NotificationConfig>( + this, METHODID_GET_NOTIFICATION_CONFIG))) + .addMethod( + getGetOrganizationSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings>( + this, METHODID_GET_ORGANIZATION_SETTINGS))) + .addMethod( + getGetSourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.GetSourceRequest, + com.google.cloud.securitycenter.v1.Source>(this, METHODID_GET_SOURCE))) + .addMethod( + getGroupAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1.GroupAssetsResponse>( + this, METHODID_GROUP_ASSETS))) + .addMethod( + getGroupFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1.GroupFindingsResponse>( + this, METHODID_GROUP_FINDINGS))) + .addMethod( + getListAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.ListAssetsRequest, + com.google.cloud.securitycenter.v1.ListAssetsResponse>( + this, METHODID_LIST_ASSETS))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.ListFindingsRequest, + com.google.cloud.securitycenter.v1.ListFindingsResponse>( + this, METHODID_LIST_FINDINGS))) + .addMethod( + getListMuteConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.ListMuteConfigsRequest, + com.google.cloud.securitycenter.v1.ListMuteConfigsResponse>( + this, METHODID_LIST_MUTE_CONFIGS))) + .addMethod( + getListNotificationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest, + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse>( + this, METHODID_LIST_NOTIFICATION_CONFIGS))) + .addMethod( + getListSourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.ListSourcesRequest, + com.google.cloud.securitycenter.v1.ListSourcesResponse>( + this, METHODID_LIST_SOURCES))) + .addMethod( + getRunAssetDiscoveryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation>(this, METHODID_RUN_ASSET_DISCOVERY))) + .addMethod( + getSetFindingStateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1.Finding>( + this, METHODID_SET_FINDING_STATE))) + .addMethod( + getSetMuteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.SetMuteRequest, + com.google.cloud.securitycenter.v1.Finding>(this, METHODID_SET_MUTE))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) + .addMethod( + getUpdateExternalSystemMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest, + com.google.cloud.securitycenter.v1.ExternalSystem>( + this, METHODID_UPDATE_EXTERNAL_SYSTEM))) + .addMethod( + getUpdateFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1.Finding>(this, METHODID_UPDATE_FINDING))) + .addMethod( + getUpdateMuteConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest, + com.google.cloud.securitycenter.v1.MuteConfig>( + this, METHODID_UPDATE_MUTE_CONFIG))) + .addMethod( + getUpdateNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest, + com.google.cloud.securitycenter.v1.NotificationConfig>( + this, METHODID_UPDATE_NOTIFICATION_CONFIG))) + .addMethod( + getUpdateOrganizationSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1.OrganizationSettings>( + this, METHODID_UPDATE_ORGANIZATION_SETTINGS))) + .addMethod( + getUpdateSourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1.Source>(this, METHODID_UPDATE_SOURCE))) + .addMethod( + getUpdateSecurityMarksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1.SecurityMarks>( + this, METHODID_UPDATE_SECURITY_MARKS))) + .addMethod( + getCreateBigQueryExportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest, + com.google.cloud.securitycenter.v1.BigQueryExport>( + this, METHODID_CREATE_BIG_QUERY_EXPORT))) + .addMethod( + getDeleteBigQueryExportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_BIG_QUERY_EXPORT))) + .addMethod( + getUpdateBigQueryExportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest, + com.google.cloud.securitycenter.v1.BigQueryExport>( + this, METHODID_UPDATE_BIG_QUERY_EXPORT))) + .addMethod( + getListBigQueryExportsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest, + com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse>( + this, METHODID_LIST_BIG_QUERY_EXPORTS))) + .build(); + } + } + + /** + * + * + *
+   * V1 APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterStub + extends io.grpc.stub.AbstractAsyncStub { + private SecurityCenterStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterStub(channel, callOptions); + } + + /** + * + * + *
+     * Kicks off an LRO to bulk mute findings for a parent based on a filter. The
+     * parent can be either an organization, folder or project. The findings
+     * matched by the filter will be muted after the LRO is done.
+     * 
+ */ + public void bulkMuteFindings( + com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBulkMuteFindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a source.
+     * 
+ */ + public void createSource( + com.google.cloud.securitycenter.v1.CreateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSourceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a finding. The corresponding source must exist for finding creation
+     * to succeed.
+     * 
+ */ + public void createFinding( + com.google.cloud.securitycenter.v1.CreateFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a mute config.
+     * 
+ */ + public void createMuteConfig( + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMuteConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a notification config.
+     * 
+ */ + public void createNotificationConfig( + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an existing mute config.
+     * 
+ */ + public void deleteMuteConfig( + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMuteConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a notification config.
+     * 
+ */ + public void deleteNotificationConfig( + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a big query export.
+     * 
+ */ + public void getBigQueryExport( + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBigQueryExportMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a mute config.
+     * 
+ */ + public void getMuteConfig( + com.google.cloud.securitycenter.v1.GetMuteConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMuteConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a notification config.
+     * 
+ */ + public void getNotificationConfig( + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the settings for an organization.
+     * 
+ */ + public void getOrganizationSettings( + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a source.
+     * 
+ */ + public void getSource( + com.google.cloud.securitycenter.v1.GetSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSourceMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public void groupAssets( + com.google.cloud.securitycenter.v1.GroupAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings,
+     * /v1/folders/{folder_id}/sources/-/findings,
+     * /v1/projects/{project_id}/sources/-/findings
+     * 
+ */ + public void groupFindings( + com.google.cloud.securitycenter.v1.GroupFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists an organization's assets.
+     * 
+ */ + public void listAssets( + com.google.cloud.securitycenter.v1.ListAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public void listFindings( + com.google.cloud.securitycenter.v1.ListFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists mute configs.
+     * 
+ */ + public void listMuteConfigs( + com.google.cloud.securitycenter.v1.ListMuteConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMuteConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists notification configs.
+     * 
+ */ + public void listNotificationConfigs( + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public void listSources( + com.google.cloud.securitycenter.v1.ListSourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSourcesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public void runAssetDiscovery( + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the state of a finding.
+     * 
+ */ + public void setFindingState( + com.google.cloud.securitycenter.v1.SetFindingStateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the mute state of a finding.
+     * 
+ */ + public void setMute( + com.google.cloud.securitycenter.v1.SetMuteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetMuteMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates external system. This is for a given finding.
+     * 
+ */ + public void updateExternalSystem( + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateExternalSystemMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public void updateFinding( + com.google.cloud.securitycenter.v1.UpdateFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a mute config.
+     * 
+ */ + public void updateMuteConfig( + com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMuteConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a notification config. The following update
+     * fields are allowed: description, pubsub_topic, streaming_config.filter
+     * 
+ */ + public void updateNotificationConfig( + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNotificationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an organization's settings.
+     * 
+ */ + public void updateOrganizationSettings( + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a source.
+     * 
+ */ + public void updateSource( + com.google.cloud.securitycenter.v1.UpdateSourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates security marks.
+     * 
+ */ + public void updateSecurityMarks( + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a big query export.
+     * 
+ */ + public void createBigQueryExport( + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBigQueryExportMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an existing big query export.
+     * 
+ */ + public void deleteBigQueryExport( + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBigQueryExportMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a BigQuery export.
+     * 
+ */ + public void updateBigQueryExport( + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBigQueryExportMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists BigQuery exports. Note that when requesting BigQuery exports at a
+     * given level all exports under that level are also returned e.g. if
+     * requesting BigQuery exports under a folder, then all BigQuery exports
+     * immediately under the folder plus the ones created under the projects
+     * within the folder are returned.
+     * 
+ */ + public void listBigQueryExports( + com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBigQueryExportsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * V1 APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SecurityCenterBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Kicks off an LRO to bulk mute findings for a parent based on a filter. The
+     * parent can be either an organization, folder or project. The findings
+     * matched by the filter will be muted after the LRO is done.
+     * 
+ */ + public com.google.longrunning.Operation bulkMuteFindings( + com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBulkMuteFindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.Source createSource( + com.google.cloud.securitycenter.v1.CreateSourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSourceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a finding. The corresponding source must exist for finding creation
+     * to succeed.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.Finding createFinding( + com.google.cloud.securitycenter.v1.CreateFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a mute config.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.MuteConfig createMuteConfig( + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMuteConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a notification config.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.NotificationConfig createNotificationConfig( + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNotificationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an existing mute config.
+     * 
+ */ + public com.google.protobuf.Empty deleteMuteConfig( + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMuteConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a notification config.
+     * 
+ */ + public com.google.protobuf.Empty deleteNotificationConfig( + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteNotificationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a big query export.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExport( + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBigQueryExportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a mute config.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.MuteConfig getMuteConfig( + com.google.cloud.securitycenter.v1.GetMuteConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMuteConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a notification config.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig( + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNotificationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the settings for an organization.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSettings( + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetOrganizationSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.Source getSource( + com.google.cloud.securitycenter.v1.GetSourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSourceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.GroupAssetsResponse groupAssets( + com.google.cloud.securitycenter.v1.GroupAssetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGroupAssetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings,
+     * /v1/folders/{folder_id}/sources/-/findings,
+     * /v1/projects/{project_id}/sources/-/findings
+     * 
+ */ + public com.google.cloud.securitycenter.v1.GroupFindingsResponse groupFindings( + com.google.cloud.securitycenter.v1.GroupFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGroupFindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists an organization's assets.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.ListAssetsResponse listAssets( + com.google.cloud.securitycenter.v1.ListAssetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAssetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public com.google.cloud.securitycenter.v1.ListFindingsResponse listFindings( + com.google.cloud.securitycenter.v1.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists mute configs.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.ListMuteConfigsResponse listMuteConfigs( + com.google.cloud.securitycenter.v1.ListMuteConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMuteConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists notification configs.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse + listNotificationConfigs( + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNotificationConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.ListSourcesResponse listSources( + com.google.cloud.securitycenter.v1.ListSourcesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSourcesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public com.google.longrunning.Operation runAssetDiscovery( + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunAssetDiscoveryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the state of a finding.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.Finding setFindingState( + com.google.cloud.securitycenter.v1.SetFindingStateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetFindingStateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the mute state of a finding.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.Finding setMute( + com.google.cloud.securitycenter.v1.SetMuteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetMuteMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates external system. This is for a given finding.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.ExternalSystem updateExternalSystem( + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateExternalSystemMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.Finding updateFinding( + com.google.cloud.securitycenter.v1.UpdateFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a mute config.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.MuteConfig updateMuteConfig( + com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMuteConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a notification config. The following update
+     * fields are allowed: description, pubsub_topic, streaming_config.filter
+     * 
+ */ + public com.google.cloud.securitycenter.v1.NotificationConfig updateNotificationConfig( + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNotificationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an organization's settings.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.OrganizationSettings updateOrganizationSettings( + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateOrganizationSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.Source updateSource( + com.google.cloud.securitycenter.v1.UpdateSourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSourceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates security marks.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.SecurityMarks updateSecurityMarks( + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSecurityMarksMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a big query export.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.BigQueryExport createBigQueryExport( + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBigQueryExportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an existing big query export.
+     * 
+ */ + public com.google.protobuf.Empty deleteBigQueryExport( + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBigQueryExportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a BigQuery export.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.BigQueryExport updateBigQueryExport( + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBigQueryExportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists BigQuery exports. Note that when requesting BigQuery exports at a
+     * given level all exports under that level are also returned e.g. if
+     * requesting BigQuery exports under a folder, then all BigQuery exports
+     * immediately under the folder plus the ones created under the projects
+     * within the folder are returned.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse listBigQueryExports( + com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBigQueryExportsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * V1 APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SecurityCenterFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Kicks off an LRO to bulk mute findings for a parent based on a filter. The
+     * parent can be either an organization, folder or project. The findings
+     * matched by the filter will be muted after the LRO is done.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + bulkMuteFindings(com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBulkMuteFindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.Source> + createSource(com.google.cloud.securitycenter.v1.CreateSourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSourceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a finding. The corresponding source must exist for finding creation
+     * to succeed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.Finding> + createFinding(com.google.cloud.securitycenter.v1.CreateFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a mute config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.MuteConfig> + createMuteConfig(com.google.cloud.securitycenter.v1.CreateMuteConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMuteConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a notification config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.NotificationConfig> + createNotificationConfig( + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an existing mute config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteMuteConfig(com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMuteConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a notification config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteNotificationConfig( + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a big query export.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.BigQueryExport> + getBigQueryExport(com.google.cloud.securitycenter.v1.GetBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBigQueryExportMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a mute config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.MuteConfig> + getMuteConfig(com.google.cloud.securitycenter.v1.GetMuteConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMuteConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a notification config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.NotificationConfig> + getNotificationConfig( + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the settings for an organization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.OrganizationSettings> + getOrganizationSettings( + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.Source> + getSource(com.google.cloud.securitycenter.v1.GetSourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSourceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.GroupAssetsResponse> + groupAssets(com.google.cloud.securitycenter.v1.GroupAssetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings,
+     * /v1/folders/{folder_id}/sources/-/findings,
+     * /v1/projects/{project_id}/sources/-/findings
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.GroupFindingsResponse> + groupFindings(com.google.cloud.securitycenter.v1.GroupFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists an organization's assets.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.ListAssetsResponse> + listAssets(com.google.cloud.securitycenter.v1.ListAssetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAssetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.ListFindingsResponse> + listFindings(com.google.cloud.securitycenter.v1.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists mute configs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.ListMuteConfigsResponse> + listMuteConfigs(com.google.cloud.securitycenter.v1.ListMuteConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMuteConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists notification configs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse> + listNotificationConfigs( + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.ListSourcesResponse> + listSources(com.google.cloud.securitycenter.v1.ListSourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSourcesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + runAssetDiscovery(com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the state of a finding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.Finding> + setFindingState(com.google.cloud.securitycenter.v1.SetFindingStateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the mute state of a finding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.Finding> + setMute(com.google.cloud.securitycenter.v1.SetMuteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetMuteMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v1.TestIamPermissionsResponse> + testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates external system. This is for a given finding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.ExternalSystem> + updateExternalSystem( + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateExternalSystemMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.Finding> + updateFinding(com.google.cloud.securitycenter.v1.UpdateFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a mute config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.MuteConfig> + updateMuteConfig(com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMuteConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a notification config. The following update
+     * fields are allowed: description, pubsub_topic, streaming_config.filter
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.NotificationConfig> + updateNotificationConfig( + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNotificationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an organization's settings.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.OrganizationSettings> + updateOrganizationSettings( + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.Source> + updateSource(com.google.cloud.securitycenter.v1.UpdateSourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates security marks.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.SecurityMarks> + updateSecurityMarks(com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a big query export.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.BigQueryExport> + createBigQueryExport( + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBigQueryExportMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an existing big query export.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteBigQueryExport( + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBigQueryExportMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a BigQuery export.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.BigQueryExport> + updateBigQueryExport( + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBigQueryExportMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists BigQuery exports. Note that when requesting BigQuery exports at a
+     * given level all exports under that level are also returned e.g. if
+     * requesting BigQuery exports under a folder, then all BigQuery exports
+     * immediately under the folder plus the ones created under the projects
+     * within the folder are returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse> + listBigQueryExports(com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBigQueryExportsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_BULK_MUTE_FINDINGS = 0; + private static final int METHODID_CREATE_SOURCE = 1; + private static final int METHODID_CREATE_FINDING = 2; + private static final int METHODID_CREATE_MUTE_CONFIG = 3; + private static final int METHODID_CREATE_NOTIFICATION_CONFIG = 4; + private static final int METHODID_DELETE_MUTE_CONFIG = 5; + private static final int METHODID_DELETE_NOTIFICATION_CONFIG = 6; + private static final int METHODID_GET_BIG_QUERY_EXPORT = 7; + private static final int METHODID_GET_IAM_POLICY = 8; + private static final int METHODID_GET_MUTE_CONFIG = 9; + private static final int METHODID_GET_NOTIFICATION_CONFIG = 10; + private static final int METHODID_GET_ORGANIZATION_SETTINGS = 11; + private static final int METHODID_GET_SOURCE = 12; + private static final int METHODID_GROUP_ASSETS = 13; + private static final int METHODID_GROUP_FINDINGS = 14; + private static final int METHODID_LIST_ASSETS = 15; + private static final int METHODID_LIST_FINDINGS = 16; + private static final int METHODID_LIST_MUTE_CONFIGS = 17; + private static final int METHODID_LIST_NOTIFICATION_CONFIGS = 18; + private static final int METHODID_LIST_SOURCES = 19; + private static final int METHODID_RUN_ASSET_DISCOVERY = 20; + private static final int METHODID_SET_FINDING_STATE = 21; + private static final int METHODID_SET_MUTE = 22; + private static final int METHODID_SET_IAM_POLICY = 23; + private static final int METHODID_TEST_IAM_PERMISSIONS = 24; + private static final int METHODID_UPDATE_EXTERNAL_SYSTEM = 25; + private static final int METHODID_UPDATE_FINDING = 26; + private static final int METHODID_UPDATE_MUTE_CONFIG = 27; + private static final int METHODID_UPDATE_NOTIFICATION_CONFIG = 28; + private static final int METHODID_UPDATE_ORGANIZATION_SETTINGS = 29; + private static final int METHODID_UPDATE_SOURCE = 30; + private static final int METHODID_UPDATE_SECURITY_MARKS = 31; + private static final int METHODID_CREATE_BIG_QUERY_EXPORT = 32; + private static final int METHODID_DELETE_BIG_QUERY_EXPORT = 33; + private static final int METHODID_UPDATE_BIG_QUERY_EXPORT = 34; + private static final int METHODID_LIST_BIG_QUERY_EXPORTS = 35; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SecurityCenterImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SecurityCenterImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_BULK_MUTE_FINDINGS: + serviceImpl.bulkMuteFindings( + (com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SOURCE: + serviceImpl.createSource( + (com.google.cloud.securitycenter.v1.CreateSourceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_FINDING: + serviceImpl.createFinding( + (com.google.cloud.securitycenter.v1.CreateFindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_MUTE_CONFIG: + serviceImpl.createMuteConfig( + (com.google.cloud.securitycenter.v1.CreateMuteConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_NOTIFICATION_CONFIG: + serviceImpl.createNotificationConfig( + (com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_MUTE_CONFIG: + serviceImpl.deleteMuteConfig( + (com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_NOTIFICATION_CONFIG: + serviceImpl.deleteNotificationConfig( + (com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_BIG_QUERY_EXPORT: + serviceImpl.getBigQueryExport( + (com.google.cloud.securitycenter.v1.GetBigQueryExportRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy( + (com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MUTE_CONFIG: + serviceImpl.getMuteConfig( + (com.google.cloud.securitycenter.v1.GetMuteConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_NOTIFICATION_CONFIG: + serviceImpl.getNotificationConfig( + (com.google.cloud.securitycenter.v1.GetNotificationConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_ORGANIZATION_SETTINGS: + serviceImpl.getOrganizationSettings( + (com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SOURCE: + serviceImpl.getSource( + (com.google.cloud.securitycenter.v1.GetSourceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GROUP_ASSETS: + serviceImpl.groupAssets( + (com.google.cloud.securitycenter.v1.GroupAssetsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GROUP_FINDINGS: + serviceImpl.groupFindings( + (com.google.cloud.securitycenter.v1.GroupFindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1.GroupFindingsResponse>) + responseObserver); + break; + case METHODID_LIST_ASSETS: + serviceImpl.listAssets( + (com.google.cloud.securitycenter.v1.ListAssetsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_FINDINGS: + serviceImpl.listFindings( + (com.google.cloud.securitycenter.v1.ListFindingsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_MUTE_CONFIGS: + serviceImpl.listMuteConfigs( + (com.google.cloud.securitycenter.v1.ListMuteConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1.ListMuteConfigsResponse>) + responseObserver); + break; + case METHODID_LIST_NOTIFICATION_CONFIGS: + serviceImpl.listNotificationConfigs( + (com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse>) + responseObserver); + break; + case METHODID_LIST_SOURCES: + serviceImpl.listSources( + (com.google.cloud.securitycenter.v1.ListSourcesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_RUN_ASSET_DISCOVERY: + serviceImpl.runAssetDiscovery( + (com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_FINDING_STATE: + serviceImpl.setFindingState( + (com.google.cloud.securitycenter.v1.SetFindingStateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_MUTE: + serviceImpl.setMute( + (com.google.cloud.securitycenter.v1.SetMuteRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy( + (com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions( + (com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_EXTERNAL_SYSTEM: + serviceImpl.updateExternalSystem( + (com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_FINDING: + serviceImpl.updateFinding( + (com.google.cloud.securitycenter.v1.UpdateFindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_MUTE_CONFIG: + serviceImpl.updateMuteConfig( + (com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_NOTIFICATION_CONFIG: + serviceImpl.updateNotificationConfig( + (com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_ORGANIZATION_SETTINGS: + serviceImpl.updateOrganizationSettings( + (com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_SOURCE: + serviceImpl.updateSource( + (com.google.cloud.securitycenter.v1.UpdateSourceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_SECURITY_MARKS: + serviceImpl.updateSecurityMarks( + (com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_BIG_QUERY_EXPORT: + serviceImpl.createBigQueryExport( + (com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_BIG_QUERY_EXPORT: + serviceImpl.deleteBigQueryExport( + (com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_BIG_QUERY_EXPORT: + serviceImpl.updateBigQueryExport( + (com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_BIG_QUERY_EXPORTS: + serviceImpl.listBigQueryExports( + (com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class SecurityCenterBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SecurityCenterBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SecurityCenter"); + } + } + + private static final class SecurityCenterFileDescriptorSupplier + extends SecurityCenterBaseDescriptorSupplier { + SecurityCenterFileDescriptorSupplier() {} + } + + private static final class SecurityCenterMethodDescriptorSupplier + extends SecurityCenterBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SecurityCenterMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SecurityCenterGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SecurityCenterFileDescriptorSupplier()) + .addMethod(getBulkMuteFindingsMethod()) + .addMethod(getCreateSourceMethod()) + .addMethod(getCreateFindingMethod()) + .addMethod(getCreateMuteConfigMethod()) + .addMethod(getCreateNotificationConfigMethod()) + .addMethod(getDeleteMuteConfigMethod()) + .addMethod(getDeleteNotificationConfigMethod()) + .addMethod(getGetBigQueryExportMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getGetMuteConfigMethod()) + .addMethod(getGetNotificationConfigMethod()) + .addMethod(getGetOrganizationSettingsMethod()) + .addMethod(getGetSourceMethod()) + .addMethod(getGroupAssetsMethod()) + .addMethod(getGroupFindingsMethod()) + .addMethod(getListAssetsMethod()) + .addMethod(getListFindingsMethod()) + .addMethod(getListMuteConfigsMethod()) + .addMethod(getListNotificationConfigsMethod()) + .addMethod(getListSourcesMethod()) + .addMethod(getRunAssetDiscoveryMethod()) + .addMethod(getSetFindingStateMethod()) + .addMethod(getSetMuteMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .addMethod(getUpdateExternalSystemMethod()) + .addMethod(getUpdateFindingMethod()) + .addMethod(getUpdateMuteConfigMethod()) + .addMethod(getUpdateNotificationConfigMethod()) + .addMethod(getUpdateOrganizationSettingsMethod()) + .addMethod(getUpdateSourceMethod()) + .addMethod(getUpdateSecurityMarksMethod()) + .addMethod(getCreateBigQueryExportMethod()) + .addMethod(getDeleteBigQueryExportMethod()) + .addMethod(getUpdateBigQueryExportMethod()) + .addMethod(getListBigQueryExportsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java b/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java new file mode 100644 index 000000000..ebae1dfda --- /dev/null +++ b/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java @@ -0,0 +1,2437 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.securitycenter.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * V1 Beta APIs for Security Center service.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SecurityCenterGrpc { + + private SecurityCenterGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.securitycenter.v1beta1.SecurityCenter"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest, + com.google.cloud.securitycenter.v1beta1.Source> + getCreateSourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSource", + requestType = com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.Source.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest, + com.google.cloud.securitycenter.v1beta1.Source> + getCreateSourceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest, + com.google.cloud.securitycenter.v1beta1.Source> + getCreateSourceMethod; + if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { + SecurityCenterGrpc.getCreateSourceMethod = + getCreateSourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("CreateSource")) + .build(); + } + } + } + return getCreateSourceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest, + com.google.cloud.securitycenter.v1beta1.Finding> + getCreateFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFinding", + requestType = com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest, + com.google.cloud.securitycenter.v1beta1.Finding> + getCreateFindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest, + com.google.cloud.securitycenter.v1beta1.Finding> + getCreateFindingMethod; + if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { + SecurityCenterGrpc.getCreateFindingMethod = + getCreateFindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("CreateFinding")) + .build(); + } + } + } + return getCreateFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { + SecurityCenterGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings> + getGetOrganizationSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOrganizationSettings", + requestType = com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.OrganizationSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings> + getGetOrganizationSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings> + getGetOrganizationSettingsMethod; + if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) + == null) { + SecurityCenterGrpc.getGetOrganizationSettingsMethod = + getGetOrganizationSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetOrganizationSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.OrganizationSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("GetOrganizationSettings")) + .build(); + } + } + } + return getGetOrganizationSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.GetSourceRequest, + com.google.cloud.securitycenter.v1beta1.Source> + getGetSourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSource", + requestType = com.google.cloud.securitycenter.v1beta1.GetSourceRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.Source.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.GetSourceRequest, + com.google.cloud.securitycenter.v1beta1.Source> + getGetSourceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.GetSourceRequest, + com.google.cloud.securitycenter.v1beta1.Source> + getGetSourceMethod; + if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { + SecurityCenterGrpc.getGetSourceMethod = + getGetSourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.GetSourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetSource")) + .build(); + } + } + } + return getGetSourceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse> + getGroupAssetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GroupAssets", + requestType = com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse> + getGroupAssetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse> + getGroupAssetsMethod; + if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { + SecurityCenterGrpc.getGroupAssetsMethod = + getGroupAssetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("GroupAssets")) + .build(); + } + } + } + return getGroupAssetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse> + getGroupFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GroupFindings", + requestType = com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse> + getGroupFindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse> + getGroupFindingsMethod; + if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { + SecurityCenterGrpc.getGroupFindingsMethod = + getGroupFindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("GroupFindings")) + .build(); + } + } + } + return getGroupFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest, + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse> + getListAssetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAssets", + requestType = com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest, + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse> + getListAssetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest, + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse> + getListAssetsMethod; + if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { + SecurityCenterGrpc.getListAssetsMethod = + getListAssetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListAssets")) + .build(); + } + } + } + return getListAssetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest, + com.google.cloud.securitycenter.v1beta1.ListFindingsResponse> + getListFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindings", + requestType = com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest, + com.google.cloud.securitycenter.v1beta1.ListFindingsResponse> + getListFindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest, + com.google.cloud.securitycenter.v1beta1.ListFindingsResponse> + getListFindingsMethod; + if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { + SecurityCenterGrpc.getListFindingsMethod = + getListFindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.ListFindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("ListFindings")) + .build(); + } + } + } + return getListFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest, + com.google.cloud.securitycenter.v1beta1.ListSourcesResponse> + getListSourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSources", + requestType = com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest, + com.google.cloud.securitycenter.v1beta1.ListSourcesResponse> + getListSourcesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest, + com.google.cloud.securitycenter.v1beta1.ListSourcesResponse> + getListSourcesMethod; + if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { + SecurityCenterGrpc.getListSourcesMethod = + getListSourcesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.ListSourcesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("ListSources")) + .build(); + } + } + } + return getListSourcesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation> + getRunAssetDiscoveryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RunAssetDiscovery", + requestType = com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation> + getRunAssetDiscoveryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation> + getRunAssetDiscoveryMethod; + if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { + SecurityCenterGrpc.getRunAssetDiscoveryMethod = + getRunAssetDiscoveryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunAssetDiscovery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("RunAssetDiscovery")) + .build(); + } + } + } + return getRunAssetDiscoveryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1beta1.Finding> + getSetFindingStateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetFindingState", + requestType = com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1beta1.Finding> + getSetFindingStateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1beta1.Finding> + getSetFindingStateMethod; + if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { + SecurityCenterGrpc.getSetFindingStateMethod = + getSetFindingStateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetFindingState")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("SetFindingState")) + .build(); + } + } + } + return getSetFindingStateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { + SecurityCenterGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) + == null) { + SecurityCenterGrpc.getTestIamPermissionsMethod = + getTestIamPermissionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1beta1.Finding> + getUpdateFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFinding", + requestType = com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1beta1.Finding> + getUpdateFindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1beta1.Finding> + getUpdateFindingMethod; + if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { + SecurityCenterGrpc.getUpdateFindingMethod = + getUpdateFindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateFinding")) + .build(); + } + } + } + return getUpdateFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings> + getUpdateOrganizationSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateOrganizationSettings", + requestType = com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.OrganizationSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings> + getUpdateOrganizationSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings> + getUpdateOrganizationSettingsMethod; + if ((getUpdateOrganizationSettingsMethod = + SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateOrganizationSettingsMethod = + SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) + == null) { + SecurityCenterGrpc.getUpdateOrganizationSettingsMethod = + getUpdateOrganizationSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateOrganizationSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1 + .UpdateOrganizationSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.OrganizationSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateOrganizationSettings")) + .build(); + } + } + } + return getUpdateOrganizationSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1beta1.Source> + getUpdateSourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSource", + requestType = com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.Source.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1beta1.Source> + getUpdateSourceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1beta1.Source> + getUpdateSourceMethod; + if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { + SecurityCenterGrpc.getUpdateSourceMethod = + getUpdateSourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateSource")) + .build(); + } + } + } + return getUpdateSourceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1beta1.SecurityMarks> + getUpdateSecurityMarksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSecurityMarks", + requestType = com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.class, + responseType = com.google.cloud.securitycenter.v1beta1.SecurityMarks.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1beta1.SecurityMarks> + getUpdateSecurityMarksMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1beta1.SecurityMarks> + getUpdateSecurityMarksMethod; + if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) + == null) { + SecurityCenterGrpc.getUpdateSecurityMarksMethod = + getUpdateSecurityMarksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateSecurityMarks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1beta1.SecurityMarks + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateSecurityMarks")) + .build(); + } + } + } + return getUpdateSecurityMarksMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SecurityCenterStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterStub(channel, callOptions); + } + }; + return SecurityCenterStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SecurityCenterBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterBlockingStub(channel, callOptions); + } + }; + return SecurityCenterBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SecurityCenterFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterFutureStub(channel, callOptions); + } + }; + return SecurityCenterFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * V1 Beta APIs for Security Center service.
+   * 
+ */ + public abstract static class SecurityCenterImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a source.
+     * 
+ */ + public void createSource( + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSourceMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a finding. The corresponding source must exist for finding creation
+     * to succeed.
+     * 
+ */ + public void createFinding( + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFindingMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the settings for an organization.
+     * 
+ */ + public void getOrganizationSettings( + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetOrganizationSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a source.
+     * 
+ */ + public void getSource( + com.google.cloud.securitycenter.v1beta1.GetSourceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSourceMethod(), responseObserver); + } + + /** + * + * + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public void groupAssets( + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGroupAssetsMethod(), responseObserver); + } + + /** + * + * + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public void groupFindings( + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGroupFindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists an organization's assets.
+     * 
+ */ + public void listAssets( + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public void listFindings( + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public void listSources( + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSourcesMethod(), responseObserver); + } + + /** + * + * + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public void runAssetDiscovery( + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRunAssetDiscoveryMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the state of a finding.
+     * 
+ */ + public void setFindingState( + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetFindingStateMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public void updateFinding( + com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFindingMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an organization's settings.
+     * 
+ */ + public void updateOrganizationSettings( + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateOrganizationSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a source.
+     * 
+ */ + public void updateSource( + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSourceMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates security marks.
+     * 
+ */ + public void updateSecurityMarks( + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSecurityMarksMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateSourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest, + com.google.cloud.securitycenter.v1beta1.Source>( + this, METHODID_CREATE_SOURCE))) + .addMethod( + getCreateFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest, + com.google.cloud.securitycenter.v1beta1.Finding>( + this, METHODID_CREATE_FINDING))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getGetOrganizationSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings>( + this, METHODID_GET_ORGANIZATION_SETTINGS))) + .addMethod( + getGetSourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.GetSourceRequest, + com.google.cloud.securitycenter.v1beta1.Source>(this, METHODID_GET_SOURCE))) + .addMethod( + getGroupAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse>( + this, METHODID_GROUP_ASSETS))) + .addMethod( + getGroupFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse>( + this, METHODID_GROUP_FINDINGS))) + .addMethod( + getListAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest, + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse>( + this, METHODID_LIST_ASSETS))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest, + com.google.cloud.securitycenter.v1beta1.ListFindingsResponse>( + this, METHODID_LIST_FINDINGS))) + .addMethod( + getListSourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest, + com.google.cloud.securitycenter.v1beta1.ListSourcesResponse>( + this, METHODID_LIST_SOURCES))) + .addMethod( + getRunAssetDiscoveryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation>(this, METHODID_RUN_ASSET_DISCOVERY))) + .addMethod( + getSetFindingStateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1beta1.Finding>( + this, METHODID_SET_FINDING_STATE))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) + .addMethod( + getUpdateFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1beta1.Finding>( + this, METHODID_UPDATE_FINDING))) + .addMethod( + getUpdateOrganizationSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings>( + this, METHODID_UPDATE_ORGANIZATION_SETTINGS))) + .addMethod( + getUpdateSourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1beta1.Source>( + this, METHODID_UPDATE_SOURCE))) + .addMethod( + getUpdateSecurityMarksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1beta1.SecurityMarks>( + this, METHODID_UPDATE_SECURITY_MARKS))) + .build(); + } + } + + /** + * + * + *
+   * V1 Beta APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterStub + extends io.grpc.stub.AbstractAsyncStub { + private SecurityCenterStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a source.
+     * 
+ */ + public void createSource( + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSourceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a finding. The corresponding source must exist for finding creation
+     * to succeed.
+     * 
+ */ + public void createFinding( + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the settings for an organization.
+     * 
+ */ + public void getOrganizationSettings( + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a source.
+     * 
+ */ + public void getSource( + com.google.cloud.securitycenter.v1beta1.GetSourceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSourceMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public void groupAssets( + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public void groupFindings( + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists an organization's assets.
+     * 
+ */ + public void listAssets( + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public void listFindings( + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public void listSources( + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSourcesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public void runAssetDiscovery( + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the state of a finding.
+     * 
+ */ + public void setFindingState( + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public void updateFinding( + com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an organization's settings.
+     * 
+ */ + public void updateOrganizationSettings( + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a source.
+     * 
+ */ + public void updateSource( + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates security marks.
+     * 
+ */ + public void updateSecurityMarks( + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * V1 Beta APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SecurityCenterBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.Source createSource( + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSourceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a finding. The corresponding source must exist for finding creation
+     * to succeed.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.Finding createFinding( + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the settings for an organization.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizationSettings( + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetOrganizationSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.Source getSource( + com.google.cloud.securitycenter.v1beta1.GetSourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSourceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse groupAssets( + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGroupAssetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse groupFindings( + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGroupFindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists an organization's assets.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse listAssets( + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAssetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse listFindings( + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.ListSourcesResponse listSources( + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSourcesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public com.google.longrunning.Operation runAssetDiscovery( + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunAssetDiscoveryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the state of a finding.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.Finding setFindingState( + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetFindingStateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.Finding updateFinding( + com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an organization's settings.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings updateOrganizationSettings( + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateOrganizationSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.Source updateSource( + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSourceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates security marks.
+     * 
+ */ + public com.google.cloud.securitycenter.v1beta1.SecurityMarks updateSecurityMarks( + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSecurityMarksMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * V1 Beta APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SecurityCenterFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1beta1.Source> + createSource(com.google.cloud.securitycenter.v1beta1.CreateSourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSourceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a finding. The corresponding source must exist for finding creation
+     * to succeed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1beta1.Finding> + createFinding(com.google.cloud.securitycenter.v1beta1.CreateFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the settings for an organization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1beta1.OrganizationSettings> + getOrganizationSettings( + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1beta1.Source> + getSource(com.google.cloud.securitycenter.v1beta1.GetSourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSourceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse> + groupAssets(com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse> + groupFindings(com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists an organization's assets.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse> + listAssets(com.google.cloud.securitycenter.v1beta1.ListAssetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAssetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1beta1.ListFindingsResponse> + listFindings(com.google.cloud.securitycenter.v1beta1.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1beta1.ListSourcesResponse> + listSources(com.google.cloud.securitycenter.v1beta1.ListSourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSourcesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + runAssetDiscovery( + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the state of a finding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1beta1.Finding> + setFindingState(com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v1.TestIamPermissionsResponse> + testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1beta1.Finding> + updateFinding(com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an organization's settings.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1beta1.OrganizationSettings> + updateOrganizationSettings( + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1beta1.Source> + updateSource(com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates security marks.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1beta1.SecurityMarks> + updateSecurityMarks( + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SOURCE = 0; + private static final int METHODID_CREATE_FINDING = 1; + private static final int METHODID_GET_IAM_POLICY = 2; + private static final int METHODID_GET_ORGANIZATION_SETTINGS = 3; + private static final int METHODID_GET_SOURCE = 4; + private static final int METHODID_GROUP_ASSETS = 5; + private static final int METHODID_GROUP_FINDINGS = 6; + private static final int METHODID_LIST_ASSETS = 7; + private static final int METHODID_LIST_FINDINGS = 8; + private static final int METHODID_LIST_SOURCES = 9; + private static final int METHODID_RUN_ASSET_DISCOVERY = 10; + private static final int METHODID_SET_FINDING_STATE = 11; + private static final int METHODID_SET_IAM_POLICY = 12; + private static final int METHODID_TEST_IAM_PERMISSIONS = 13; + private static final int METHODID_UPDATE_FINDING = 14; + private static final int METHODID_UPDATE_ORGANIZATION_SETTINGS = 15; + private static final int METHODID_UPDATE_SOURCE = 16; + private static final int METHODID_UPDATE_SECURITY_MARKS = 17; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SecurityCenterImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SecurityCenterImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SOURCE: + serviceImpl.createSource( + (com.google.cloud.securitycenter.v1beta1.CreateSourceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_FINDING: + serviceImpl.createFinding( + (com.google.cloud.securitycenter.v1beta1.CreateFindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy( + (com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ORGANIZATION_SETTINGS: + serviceImpl.getOrganizationSettings( + (com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1beta1.OrganizationSettings>) + responseObserver); + break; + case METHODID_GET_SOURCE: + serviceImpl.getSource( + (com.google.cloud.securitycenter.v1beta1.GetSourceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GROUP_ASSETS: + serviceImpl.groupAssets( + (com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse>) + responseObserver); + break; + case METHODID_GROUP_FINDINGS: + serviceImpl.groupFindings( + (com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse>) + responseObserver); + break; + case METHODID_LIST_ASSETS: + serviceImpl.listAssets( + (com.google.cloud.securitycenter.v1beta1.ListAssetsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse>) + responseObserver); + break; + case METHODID_LIST_FINDINGS: + serviceImpl.listFindings( + (com.google.cloud.securitycenter.v1beta1.ListFindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1beta1.ListFindingsResponse>) + responseObserver); + break; + case METHODID_LIST_SOURCES: + serviceImpl.listSources( + (com.google.cloud.securitycenter.v1beta1.ListSourcesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1beta1.ListSourcesResponse>) + responseObserver); + break; + case METHODID_RUN_ASSET_DISCOVERY: + serviceImpl.runAssetDiscovery( + (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_FINDING_STATE: + serviceImpl.setFindingState( + (com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy( + (com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions( + (com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_FINDING: + serviceImpl.updateFinding( + (com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_ORGANIZATION_SETTINGS: + serviceImpl.updateOrganizationSettings( + (com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1beta1.OrganizationSettings>) + responseObserver); + break; + case METHODID_UPDATE_SOURCE: + serviceImpl.updateSource( + (com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_SECURITY_MARKS: + serviceImpl.updateSecurityMarks( + (com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class SecurityCenterBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SecurityCenterBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SecurityCenter"); + } + } + + private static final class SecurityCenterFileDescriptorSupplier + extends SecurityCenterBaseDescriptorSupplier { + SecurityCenterFileDescriptorSupplier() {} + } + + private static final class SecurityCenterMethodDescriptorSupplier + extends SecurityCenterBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SecurityCenterMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SecurityCenterGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SecurityCenterFileDescriptorSupplier()) + .addMethod(getCreateSourceMethod()) + .addMethod(getCreateFindingMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getGetOrganizationSettingsMethod()) + .addMethod(getGetSourceMethod()) + .addMethod(getGroupAssetsMethod()) + .addMethod(getGroupFindingsMethod()) + .addMethod(getListAssetsMethod()) + .addMethod(getListFindingsMethod()) + .addMethod(getListSourcesMethod()) + .addMethod(getRunAssetDiscoveryMethod()) + .addMethod(getSetFindingStateMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .addMethod(getUpdateFindingMethod()) + .addMethod(getUpdateOrganizationSettingsMethod()) + .addMethod(getUpdateSourceMethod()) + .addMethod(getUpdateSecurityMarksMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterGrpc.java b/grpc-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterGrpc.java new file mode 100644 index 000000000..593cee670 --- /dev/null +++ b/grpc-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterGrpc.java @@ -0,0 +1,3087 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.securitycenter.v1p1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * V1p1Beta1 APIs for Security Center service.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SecurityCenterGrpc { + + private SecurityCenterGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.securitycenter.v1p1beta1.SecurityCenter"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest, + com.google.cloud.securitycenter.v1p1beta1.Source> + getCreateSourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSource", + requestType = com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.Source.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest, + com.google.cloud.securitycenter.v1p1beta1.Source> + getCreateSourceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest, + com.google.cloud.securitycenter.v1p1beta1.Source> + getCreateSourceMethod; + if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { + SecurityCenterGrpc.getCreateSourceMethod = + getCreateSourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.Source + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("CreateSource")) + .build(); + } + } + } + return getCreateSourceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest, + com.google.cloud.securitycenter.v1p1beta1.Finding> + getCreateFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFinding", + requestType = com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest, + com.google.cloud.securitycenter.v1p1beta1.Finding> + getCreateFindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest, + com.google.cloud.securitycenter.v1p1beta1.Finding> + getCreateFindingMethod; + if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { + SecurityCenterGrpc.getCreateFindingMethod = + getCreateFindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.Finding + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("CreateFinding")) + .build(); + } + } + } + return getCreateFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> + getCreateNotificationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateNotificationConfig", + requestType = com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> + getCreateNotificationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> + getCreateNotificationConfigMethod; + if ((getCreateNotificationConfigMethod = SecurityCenterGrpc.getCreateNotificationConfigMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getCreateNotificationConfigMethod = + SecurityCenterGrpc.getCreateNotificationConfigMethod) + == null) { + SecurityCenterGrpc.getCreateNotificationConfigMethod = + getCreateNotificationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateNotificationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1 + .CreateNotificationConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("CreateNotificationConfig")) + .build(); + } + } + } + return getCreateNotificationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest, + com.google.protobuf.Empty> + getDeleteNotificationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteNotificationConfig", + requestType = com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest, + com.google.protobuf.Empty> + getDeleteNotificationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest, + com.google.protobuf.Empty> + getDeleteNotificationConfigMethod; + if ((getDeleteNotificationConfigMethod = SecurityCenterGrpc.getDeleteNotificationConfigMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getDeleteNotificationConfigMethod = + SecurityCenterGrpc.getDeleteNotificationConfigMethod) + == null) { + SecurityCenterGrpc.getDeleteNotificationConfigMethod = + getDeleteNotificationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteNotificationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1 + .DeleteNotificationConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("DeleteNotificationConfig")) + .build(); + } + } + } + return getDeleteNotificationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { + SecurityCenterGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> + getGetNotificationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNotificationConfig", + requestType = com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> + getGetNotificationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> + getGetNotificationConfigMethod; + if ((getGetNotificationConfigMethod = SecurityCenterGrpc.getGetNotificationConfigMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetNotificationConfigMethod = SecurityCenterGrpc.getGetNotificationConfigMethod) + == null) { + SecurityCenterGrpc.getGetNotificationConfigMethod = + getGetNotificationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetNotificationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("GetNotificationConfig")) + .build(); + } + } + } + return getGetNotificationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings> + getGetOrganizationSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOrganizationSettings", + requestType = com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings> + getGetOrganizationSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings> + getGetOrganizationSettingsMethod; + if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) + == null) { + SecurityCenterGrpc.getGetOrganizationSettingsMethod = + getGetOrganizationSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetOrganizationSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1 + .GetOrganizationSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("GetOrganizationSettings")) + .build(); + } + } + } + return getGetOrganizationSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest, + com.google.cloud.securitycenter.v1p1beta1.Source> + getGetSourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSource", + requestType = com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.Source.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest, + com.google.cloud.securitycenter.v1p1beta1.Source> + getGetSourceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest, + com.google.cloud.securitycenter.v1p1beta1.Source> + getGetSourceMethod; + if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { + SecurityCenterGrpc.getGetSourceMethod = + getGetSourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.Source + .getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetSource")) + .build(); + } + } + } + return getGetSourceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse> + getGroupAssetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GroupAssets", + requestType = com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse> + getGroupAssetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse> + getGroupAssetsMethod; + if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { + SecurityCenterGrpc.getGroupAssetsMethod = + getGroupAssetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("GroupAssets")) + .build(); + } + } + } + return getGroupAssetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse> + getGroupFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GroupFindings", + requestType = com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse> + getGroupFindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse> + getGroupFindingsMethod; + if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { + SecurityCenterGrpc.getGroupFindingsMethod = + getGroupFindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("GroupFindings")) + .build(); + } + } + } + return getGroupFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse> + getListAssetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAssets", + requestType = com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse> + getListAssetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse> + getListAssetsMethod; + if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { + SecurityCenterGrpc.getListAssetsMethod = + getListAssetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListAssets")) + .build(); + } + } + } + return getListAssetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse> + getListFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindings", + requestType = com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse> + getListFindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse> + getListFindingsMethod; + if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { + SecurityCenterGrpc.getListFindingsMethod = + getListFindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("ListFindings")) + .build(); + } + } + } + return getListFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest, + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse> + getListNotificationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNotificationConfigs", + requestType = com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.class, + responseType = + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest, + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse> + getListNotificationConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest, + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse> + getListNotificationConfigsMethod; + if ((getListNotificationConfigsMethod = SecurityCenterGrpc.getListNotificationConfigsMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListNotificationConfigsMethod = SecurityCenterGrpc.getListNotificationConfigsMethod) + == null) { + SecurityCenterGrpc.getListNotificationConfigsMethod = + getListNotificationConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListNotificationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1 + .ListNotificationConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1 + .ListNotificationConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("ListNotificationConfigs")) + .build(); + } + } + } + return getListNotificationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest, + com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse> + getListSourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSources", + requestType = com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest, + com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse> + getListSourcesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest, + com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse> + getListSourcesMethod; + if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { + SecurityCenterGrpc.getListSourcesMethod = + getListSourcesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("ListSources")) + .build(); + } + } + } + return getListSourcesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation> + getRunAssetDiscoveryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RunAssetDiscovery", + requestType = com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation> + getRunAssetDiscoveryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation> + getRunAssetDiscoveryMethod; + if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { + SecurityCenterGrpc.getRunAssetDiscoveryMethod = + getRunAssetDiscoveryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunAssetDiscovery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("RunAssetDiscovery")) + .build(); + } + } + } + return getRunAssetDiscoveryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1p1beta1.Finding> + getSetFindingStateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetFindingState", + requestType = com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1p1beta1.Finding> + getSetFindingStateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1p1beta1.Finding> + getSetFindingStateMethod; + if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { + SecurityCenterGrpc.getSetFindingStateMethod = + getSetFindingStateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetFindingState")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.Finding + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("SetFindingState")) + .build(); + } + } + } + return getSetFindingStateMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { + SecurityCenterGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) + == null) { + SecurityCenterGrpc.getTestIamPermissionsMethod = + getTestIamPermissionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1p1beta1.Finding> + getUpdateFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFinding", + requestType = com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1p1beta1.Finding> + getUpdateFindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1p1beta1.Finding> + getUpdateFindingMethod; + if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { + SecurityCenterGrpc.getUpdateFindingMethod = + getUpdateFindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.Finding + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateFinding")) + .build(); + } + } + } + return getUpdateFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> + getUpdateNotificationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNotificationConfig", + requestType = com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> + getUpdateNotificationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> + getUpdateNotificationConfigMethod; + if ((getUpdateNotificationConfigMethod = SecurityCenterGrpc.getUpdateNotificationConfigMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateNotificationConfigMethod = + SecurityCenterGrpc.getUpdateNotificationConfigMethod) + == null) { + SecurityCenterGrpc.getUpdateNotificationConfigMethod = + getUpdateNotificationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateNotificationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1 + .UpdateNotificationConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateNotificationConfig")) + .build(); + } + } + } + return getUpdateNotificationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings> + getUpdateOrganizationSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateOrganizationSettings", + requestType = + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings> + getUpdateOrganizationSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings> + getUpdateOrganizationSettingsMethod; + if ((getUpdateOrganizationSettingsMethod = + SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) + == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateOrganizationSettingsMethod = + SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) + == null) { + SecurityCenterGrpc.getUpdateOrganizationSettingsMethod = + getUpdateOrganizationSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateOrganizationSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1 + .UpdateOrganizationSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateOrganizationSettings")) + .build(); + } + } + } + return getUpdateOrganizationSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1p1beta1.Source> + getUpdateSourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSource", + requestType = com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.Source.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1p1beta1.Source> + getUpdateSourceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1p1beta1.Source> + getUpdateSourceMethod; + if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { + SecurityCenterGrpc.getUpdateSourceMethod = + getUpdateSourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.Source + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateSource")) + .build(); + } + } + } + return getUpdateSourceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks> + getUpdateSecurityMarksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSecurityMarks", + requestType = com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.class, + responseType = com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks> + getUpdateSecurityMarksMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks> + getUpdateSecurityMarksMethod; + if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) == null) { + synchronized (SecurityCenterGrpc.class) { + if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) + == null) { + SecurityCenterGrpc.getUpdateSecurityMarksMethod = + getUpdateSecurityMarksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateSecurityMarks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks + .getDefaultInstance())) + .setSchemaDescriptor( + new SecurityCenterMethodDescriptorSupplier("UpdateSecurityMarks")) + .build(); + } + } + } + return getUpdateSecurityMarksMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SecurityCenterStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterStub(channel, callOptions); + } + }; + return SecurityCenterStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SecurityCenterBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterBlockingStub(channel, callOptions); + } + }; + return SecurityCenterBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SecurityCenterFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecurityCenterFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterFutureStub(channel, callOptions); + } + }; + return SecurityCenterFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * V1p1Beta1 APIs for Security Center service.
+   * 
+ */ + public abstract static class SecurityCenterImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a source.
+     * 
+ */ + public void createSource( + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSourceMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a finding. The corresponding source must exist for finding
+     * creation to succeed.
+     * 
+ */ + public void createFinding( + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFindingMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a notification config.
+     * 
+ */ + public void createNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateNotificationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a notification config.
+     * 
+ */ + public void deleteNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteNotificationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a notification config.
+     * 
+ */ + public void getNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNotificationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the settings for an organization.
+     * 
+ */ + public void getOrganizationSettings( + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetOrganizationSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a source.
+     * 
+ */ + public void getSource( + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSourceMethod(), responseObserver); + } + + /** + * + * + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public void groupAssets( + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGroupAssetsMethod(), responseObserver); + } + + /** + * + * + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings,
+     * /v1/folders/{folder_id}/sources/-/findings,
+     * /v1/projects/{project_id}/sources/-/findings
+     * 
+ */ + public void groupFindings( + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGroupFindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists an organization's assets.
+     * 
+ */ + public void listAssets( + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public void listFindings( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists notification configs.
+     * 
+ */ + public void listNotificationConfigs( + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNotificationConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public void listSources( + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSourcesMethod(), responseObserver); + } + + /** + * + * + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public void runAssetDiscovery( + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRunAssetDiscoveryMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the state of a finding.
+     * 
+ */ + public void setFindingState( + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetFindingStateMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public void updateFinding( + com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFindingMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a notification config. The following update
+     * fields are allowed: description, pubsub_topic, streaming_config.filter
+     * 
+ */ + public void updateNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateNotificationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an organization's settings.
+     * 
+ */ + public void updateOrganizationSettings( + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateOrganizationSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a source.
+     * 
+ */ + public void updateSource( + com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSourceMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates security marks.
+     * 
+ */ + public void updateSecurityMarks( + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSecurityMarksMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateSourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest, + com.google.cloud.securitycenter.v1p1beta1.Source>( + this, METHODID_CREATE_SOURCE))) + .addMethod( + getCreateFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest, + com.google.cloud.securitycenter.v1p1beta1.Finding>( + this, METHODID_CREATE_FINDING))) + .addMethod( + getCreateNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig>( + this, METHODID_CREATE_NOTIFICATION_CONFIG))) + .addMethod( + getDeleteNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_NOTIFICATION_CONFIG))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getGetNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig>( + this, METHODID_GET_NOTIFICATION_CONFIG))) + .addMethod( + getGetOrganizationSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings>( + this, METHODID_GET_ORGANIZATION_SETTINGS))) + .addMethod( + getGetSourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest, + com.google.cloud.securitycenter.v1p1beta1.Source>(this, METHODID_GET_SOURCE))) + .addMethod( + getGroupAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest, + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse>( + this, METHODID_GROUP_ASSETS))) + .addMethod( + getGroupFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest, + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse>( + this, METHODID_GROUP_FINDINGS))) + .addMethod( + getListAssetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse>( + this, METHODID_LIST_ASSETS))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse>( + this, METHODID_LIST_FINDINGS))) + .addMethod( + getListNotificationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest, + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse>( + this, METHODID_LIST_NOTIFICATION_CONFIGS))) + .addMethod( + getListSourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest, + com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse>( + this, METHODID_LIST_SOURCES))) + .addMethod( + getRunAssetDiscoveryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest, + com.google.longrunning.Operation>(this, METHODID_RUN_ASSET_DISCOVERY))) + .addMethod( + getSetFindingStateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest, + com.google.cloud.securitycenter.v1p1beta1.Finding>( + this, METHODID_SET_FINDING_STATE))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) + .addMethod( + getUpdateFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest, + com.google.cloud.securitycenter.v1p1beta1.Finding>( + this, METHODID_UPDATE_FINDING))) + .addMethod( + getUpdateNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig>( + this, METHODID_UPDATE_NOTIFICATION_CONFIG))) + .addMethod( + getUpdateOrganizationSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings>( + this, METHODID_UPDATE_ORGANIZATION_SETTINGS))) + .addMethod( + getUpdateSourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest, + com.google.cloud.securitycenter.v1p1beta1.Source>( + this, METHODID_UPDATE_SOURCE))) + .addMethod( + getUpdateSecurityMarksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest, + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks>( + this, METHODID_UPDATE_SECURITY_MARKS))) + .build(); + } + } + + /** + * + * + *
+   * V1p1Beta1 APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterStub + extends io.grpc.stub.AbstractAsyncStub { + private SecurityCenterStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a source.
+     * 
+ */ + public void createSource( + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSourceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a finding. The corresponding source must exist for finding
+     * creation to succeed.
+     * 
+ */ + public void createFinding( + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a notification config.
+     * 
+ */ + public void createNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a notification config.
+     * 
+ */ + public void deleteNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a notification config.
+     * 
+ */ + public void getNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the settings for an organization.
+     * 
+ */ + public void getOrganizationSettings( + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a source.
+     * 
+ */ + public void getSource( + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSourceMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public void groupAssets( + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings,
+     * /v1/folders/{folder_id}/sources/-/findings,
+     * /v1/projects/{project_id}/sources/-/findings
+     * 
+ */ + public void groupFindings( + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists an organization's assets.
+     * 
+ */ + public void listAssets( + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public void listFindings( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists notification configs.
+     * 
+ */ + public void listNotificationConfigs( + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public void listSources( + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSourcesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public void runAssetDiscovery( + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the state of a finding.
+     * 
+ */ + public void setFindingState( + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public void updateFinding( + com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a notification config. The following update
+     * fields are allowed: description, pubsub_topic, streaming_config.filter
+     * 
+ */ + public void updateNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNotificationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an organization's settings.
+     * 
+ */ + public void updateOrganizationSettings( + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a source.
+     * 
+ */ + public void updateSource( + com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates security marks.
+     * 
+ */ + public void updateSecurityMarks( + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * V1p1Beta1 APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SecurityCenterBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.Source createSource( + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSourceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a finding. The corresponding source must exist for finding
+     * creation to succeed.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.Finding createFinding( + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a notification config.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig createNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNotificationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a notification config.
+     * 
+ */ + public com.google.protobuf.Empty deleteNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteNotificationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a notification config.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNotificationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the settings for an organization.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getOrganizationSettings( + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetOrganizationSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.Source getSource( + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSourceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse groupAssets( + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGroupAssetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings,
+     * /v1/folders/{folder_id}/sources/-/findings,
+     * /v1/projects/{project_id}/sources/-/findings
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse groupFindings( + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGroupFindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists an organization's assets.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse listAssets( + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAssetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse listFindings( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists notification configs.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse + listNotificationConfigs( + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNotificationConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse listSources( + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSourcesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public com.google.longrunning.Operation runAssetDiscovery( + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunAssetDiscoveryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the state of a finding.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.Finding setFindingState( + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetFindingStateMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.Finding updateFinding( + com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a notification config. The following update
+     * fields are allowed: description, pubsub_topic, streaming_config.filter
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig updateNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNotificationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an organization's settings.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + updateOrganizationSettings( + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateOrganizationSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a source.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.Source updateSource( + com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSourceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates security marks.
+     * 
+ */ + public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks updateSecurityMarks( + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSecurityMarksMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * V1p1Beta1 APIs for Security Center service.
+   * 
+ */ + public static final class SecurityCenterFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SecurityCenterFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecurityCenterFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecurityCenterFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1p1beta1.Source> + createSource(com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSourceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a finding. The corresponding source must exist for finding
+     * creation to succeed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1p1beta1.Finding> + createFinding(com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a notification config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> + createNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a notification config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the access control policy on the specified Source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a notification config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> + getNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the settings for an organization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings> + getOrganizationSettings( + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1p1beta1.Source> + getSource(com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSourceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Filters an organization's assets and  groups them by their specified
+     * properties.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse> + groupAssets(com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Filters an organization or source's findings and  groups them by their
+     * specified properties.
+     * To group across all sources provide a `-` as the source id.
+     * Example: /v1/organizations/{organization_id}/sources/-/findings,
+     * /v1/folders/{folder_id}/sources/-/findings,
+     * /v1/projects/{project_id}/sources/-/findings
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse> + groupFindings(com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists an organization's assets.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse> + listAssets(com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAssetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists an organization or source's findings.
+     * To list across all sources provide a `-` as the source id.
+     * Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse> + listFindings(com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists notification configs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse> + listNotificationConfigs( + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all sources belonging to an organization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse> + listSources(com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSourcesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Runs asset discovery. The discovery is tracked with a long-running
+     * operation.
+     * This API can only be called with limited frequency for an organization. If
+     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
+     * error.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + runAssetDiscovery( + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the state of a finding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1p1beta1.Finding> + setFindingState(com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the access control policy on the specified Source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the permissions that a caller has on the specified source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v1.TestIamPermissionsResponse> + testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates or updates a finding. The corresponding source must exist for a
+     * finding creation to succeed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1p1beta1.Finding> + updateFinding(com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a notification config. The following update
+     * fields are allowed: description, pubsub_topic, streaming_config.filter
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig> + updateNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNotificationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an organization's settings.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings> + updateOrganizationSettings( + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a source.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1p1beta1.Source> + updateSource(com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates security marks.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks> + updateSecurityMarks( + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SOURCE = 0; + private static final int METHODID_CREATE_FINDING = 1; + private static final int METHODID_CREATE_NOTIFICATION_CONFIG = 2; + private static final int METHODID_DELETE_NOTIFICATION_CONFIG = 3; + private static final int METHODID_GET_IAM_POLICY = 4; + private static final int METHODID_GET_NOTIFICATION_CONFIG = 5; + private static final int METHODID_GET_ORGANIZATION_SETTINGS = 6; + private static final int METHODID_GET_SOURCE = 7; + private static final int METHODID_GROUP_ASSETS = 8; + private static final int METHODID_GROUP_FINDINGS = 9; + private static final int METHODID_LIST_ASSETS = 10; + private static final int METHODID_LIST_FINDINGS = 11; + private static final int METHODID_LIST_NOTIFICATION_CONFIGS = 12; + private static final int METHODID_LIST_SOURCES = 13; + private static final int METHODID_RUN_ASSET_DISCOVERY = 14; + private static final int METHODID_SET_FINDING_STATE = 15; + private static final int METHODID_SET_IAM_POLICY = 16; + private static final int METHODID_TEST_IAM_PERMISSIONS = 17; + private static final int METHODID_UPDATE_FINDING = 18; + private static final int METHODID_UPDATE_NOTIFICATION_CONFIG = 19; + private static final int METHODID_UPDATE_ORGANIZATION_SETTINGS = 20; + private static final int METHODID_UPDATE_SOURCE = 21; + private static final int METHODID_UPDATE_SECURITY_MARKS = 22; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SecurityCenterImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SecurityCenterImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SOURCE: + serviceImpl.createSource( + (com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_FINDING: + serviceImpl.createFinding( + (com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_NOTIFICATION_CONFIG: + serviceImpl.createNotificationConfig( + (com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig>) + responseObserver); + break; + case METHODID_DELETE_NOTIFICATION_CONFIG: + serviceImpl.deleteNotificationConfig( + (com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy( + (com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_NOTIFICATION_CONFIG: + serviceImpl.getNotificationConfig( + (com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig>) + responseObserver); + break; + case METHODID_GET_ORGANIZATION_SETTINGS: + serviceImpl.getOrganizationSettings( + (com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings>) + responseObserver); + break; + case METHODID_GET_SOURCE: + serviceImpl.getSource( + (com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GROUP_ASSETS: + serviceImpl.groupAssets( + (com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse>) + responseObserver); + break; + case METHODID_GROUP_FINDINGS: + serviceImpl.groupFindings( + (com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse>) + responseObserver); + break; + case METHODID_LIST_ASSETS: + serviceImpl.listAssets( + (com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse>) + responseObserver); + break; + case METHODID_LIST_FINDINGS: + serviceImpl.listFindings( + (com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse>) + responseObserver); + break; + case METHODID_LIST_NOTIFICATION_CONFIGS: + serviceImpl.listNotificationConfigs( + (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse>) + responseObserver); + break; + case METHODID_LIST_SOURCES: + serviceImpl.listSources( + (com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse>) + responseObserver); + break; + case METHODID_RUN_ASSET_DISCOVERY: + serviceImpl.runAssetDiscovery( + (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_FINDING_STATE: + serviceImpl.setFindingState( + (com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy( + (com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions( + (com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_FINDING: + serviceImpl.updateFinding( + (com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_NOTIFICATION_CONFIG: + serviceImpl.updateNotificationConfig( + (com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig>) + responseObserver); + break; + case METHODID_UPDATE_ORGANIZATION_SETTINGS: + serviceImpl.updateOrganizationSettings( + (com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings>) + responseObserver); + break; + case METHODID_UPDATE_SOURCE: + serviceImpl.updateSource( + (com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_SECURITY_MARKS: + serviceImpl.updateSecurityMarks( + (com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class SecurityCenterBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SecurityCenterBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SecurityCenter"); + } + } + + private static final class SecurityCenterFileDescriptorSupplier + extends SecurityCenterBaseDescriptorSupplier { + SecurityCenterFileDescriptorSupplier() {} + } + + private static final class SecurityCenterMethodDescriptorSupplier + extends SecurityCenterBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SecurityCenterMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SecurityCenterGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SecurityCenterFileDescriptorSupplier()) + .addMethod(getCreateSourceMethod()) + .addMethod(getCreateFindingMethod()) + .addMethod(getCreateNotificationConfigMethod()) + .addMethod(getDeleteNotificationConfigMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getGetNotificationConfigMethod()) + .addMethod(getGetOrganizationSettingsMethod()) + .addMethod(getGetSourceMethod()) + .addMethod(getGroupAssetsMethod()) + .addMethod(getGroupFindingsMethod()) + .addMethod(getListAssetsMethod()) + .addMethod(getListFindingsMethod()) + .addMethod(getListNotificationConfigsMethod()) + .addMethod(getListSourcesMethod()) + .addMethod(getRunAssetDiscoveryMethod()) + .addMethod(getSetFindingStateMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .addMethod(getUpdateFindingMethod()) + .addMethod(getUpdateNotificationConfigMethod()) + .addMethod(getUpdateOrganizationSettingsMethod()) + .addMethod(getUpdateSourceMethod()) + .addMethod(getUpdateSecurityMarksMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java deleted file mode 100644 index be404ce37..000000000 --- a/owl-bot-staging/v1/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java +++ /dev/null @@ -1,3397 +0,0 @@ -package com.google.cloud.securitycenter.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * V1 APIs for Security Center service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/securitycenter/v1/securitycenter_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SecurityCenterGrpc { - - private SecurityCenterGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.securitycenter.v1.SecurityCenter"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getBulkMuteFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BulkMuteFindings", - requestType = com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBulkMuteFindingsMethod() { - io.grpc.MethodDescriptor getBulkMuteFindingsMethod; - if ((getBulkMuteFindingsMethod = SecurityCenterGrpc.getBulkMuteFindingsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getBulkMuteFindingsMethod = SecurityCenterGrpc.getBulkMuteFindingsMethod) == null) { - SecurityCenterGrpc.getBulkMuteFindingsMethod = getBulkMuteFindingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BulkMuteFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("BulkMuteFindings")) - .build(); - } - } - } - return getBulkMuteFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateSourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSource", - requestType = com.google.cloud.securitycenter.v1.CreateSourceRequest.class, - responseType = com.google.cloud.securitycenter.v1.Source.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSourceMethod() { - io.grpc.MethodDescriptor getCreateSourceMethod; - if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { - SecurityCenterGrpc.getCreateSourceMethod = getCreateSourceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.CreateSourceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.Source.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("CreateSource")) - .build(); - } - } - } - return getCreateSourceMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFinding", - requestType = com.google.cloud.securitycenter.v1.CreateFindingRequest.class, - responseType = com.google.cloud.securitycenter.v1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateFindingMethod() { - io.grpc.MethodDescriptor getCreateFindingMethod; - if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { - SecurityCenterGrpc.getCreateFindingMethod = getCreateFindingMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.CreateFindingRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.Finding.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("CreateFinding")) - .build(); - } - } - } - return getCreateFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateMuteConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateMuteConfig", - requestType = com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.class, - responseType = com.google.cloud.securitycenter.v1.MuteConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateMuteConfigMethod() { - io.grpc.MethodDescriptor getCreateMuteConfigMethod; - if ((getCreateMuteConfigMethod = SecurityCenterGrpc.getCreateMuteConfigMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getCreateMuteConfigMethod = SecurityCenterGrpc.getCreateMuteConfigMethod) == null) { - SecurityCenterGrpc.getCreateMuteConfigMethod = getCreateMuteConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMuteConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("CreateMuteConfig")) - .build(); - } - } - } - return getCreateMuteConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateNotificationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateNotificationConfig", - requestType = com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.class, - responseType = com.google.cloud.securitycenter.v1.NotificationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateNotificationConfigMethod() { - io.grpc.MethodDescriptor getCreateNotificationConfigMethod; - if ((getCreateNotificationConfigMethod = SecurityCenterGrpc.getCreateNotificationConfigMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getCreateNotificationConfigMethod = SecurityCenterGrpc.getCreateNotificationConfigMethod) == null) { - SecurityCenterGrpc.getCreateNotificationConfigMethod = getCreateNotificationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNotificationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("CreateNotificationConfig")) - .build(); - } - } - } - return getCreateNotificationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteMuteConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteMuteConfig", - requestType = com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteMuteConfigMethod() { - io.grpc.MethodDescriptor getDeleteMuteConfigMethod; - if ((getDeleteMuteConfigMethod = SecurityCenterGrpc.getDeleteMuteConfigMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getDeleteMuteConfigMethod = SecurityCenterGrpc.getDeleteMuteConfigMethod) == null) { - SecurityCenterGrpc.getDeleteMuteConfigMethod = getDeleteMuteConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMuteConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("DeleteMuteConfig")) - .build(); - } - } - } - return getDeleteMuteConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteNotificationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteNotificationConfig", - requestType = com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteNotificationConfigMethod() { - io.grpc.MethodDescriptor getDeleteNotificationConfigMethod; - if ((getDeleteNotificationConfigMethod = SecurityCenterGrpc.getDeleteNotificationConfigMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getDeleteNotificationConfigMethod = SecurityCenterGrpc.getDeleteNotificationConfigMethod) == null) { - SecurityCenterGrpc.getDeleteNotificationConfigMethod = getDeleteNotificationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNotificationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("DeleteNotificationConfig")) - .build(); - } - } - } - return getDeleteNotificationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetBigQueryExportMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBigQueryExport", - requestType = com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.class, - responseType = com.google.cloud.securitycenter.v1.BigQueryExport.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBigQueryExportMethod() { - io.grpc.MethodDescriptor getGetBigQueryExportMethod; - if ((getGetBigQueryExportMethod = SecurityCenterGrpc.getGetBigQueryExportMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetBigQueryExportMethod = SecurityCenterGrpc.getGetBigQueryExportMethod) == null) { - SecurityCenterGrpc.getGetBigQueryExportMethod = getGetBigQueryExportMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBigQueryExport")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetBigQueryExport")) - .build(); - } - } - } - return getGetBigQueryExportMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { - io.grpc.MethodDescriptor getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { - SecurityCenterGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetMuteConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMuteConfig", - requestType = com.google.cloud.securitycenter.v1.GetMuteConfigRequest.class, - responseType = com.google.cloud.securitycenter.v1.MuteConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMuteConfigMethod() { - io.grpc.MethodDescriptor getGetMuteConfigMethod; - if ((getGetMuteConfigMethod = SecurityCenterGrpc.getGetMuteConfigMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetMuteConfigMethod = SecurityCenterGrpc.getGetMuteConfigMethod) == null) { - SecurityCenterGrpc.getGetMuteConfigMethod = getGetMuteConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMuteConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.GetMuteConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetMuteConfig")) - .build(); - } - } - } - return getGetMuteConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNotificationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNotificationConfig", - requestType = com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.class, - responseType = com.google.cloud.securitycenter.v1.NotificationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNotificationConfigMethod() { - io.grpc.MethodDescriptor getGetNotificationConfigMethod; - if ((getGetNotificationConfigMethod = SecurityCenterGrpc.getGetNotificationConfigMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetNotificationConfigMethod = SecurityCenterGrpc.getGetNotificationConfigMethod) == null) { - SecurityCenterGrpc.getGetNotificationConfigMethod = getGetNotificationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNotificationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetNotificationConfig")) - .build(); - } - } - } - return getGetNotificationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetOrganizationSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetOrganizationSettings", - requestType = com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.class, - responseType = com.google.cloud.securitycenter.v1.OrganizationSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetOrganizationSettingsMethod() { - io.grpc.MethodDescriptor getGetOrganizationSettingsMethod; - if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) == null) { - SecurityCenterGrpc.getGetOrganizationSettingsMethod = getGetOrganizationSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOrganizationSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetOrganizationSettings")) - .build(); - } - } - } - return getGetOrganizationSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSource", - requestType = com.google.cloud.securitycenter.v1.GetSourceRequest.class, - responseType = com.google.cloud.securitycenter.v1.Source.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSourceMethod() { - io.grpc.MethodDescriptor getGetSourceMethod; - if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { - SecurityCenterGrpc.getGetSourceMethod = getGetSourceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.GetSourceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.Source.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetSource")) - .build(); - } - } - } - return getGetSourceMethod; - } - - private static volatile io.grpc.MethodDescriptor getGroupAssetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GroupAssets", - requestType = com.google.cloud.securitycenter.v1.GroupAssetsRequest.class, - responseType = com.google.cloud.securitycenter.v1.GroupAssetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGroupAssetsMethod() { - io.grpc.MethodDescriptor getGroupAssetsMethod; - if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { - SecurityCenterGrpc.getGroupAssetsMethod = getGroupAssetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.GroupAssetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.GroupAssetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GroupAssets")) - .build(); - } - } - } - return getGroupAssetsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGroupFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GroupFindings", - requestType = com.google.cloud.securitycenter.v1.GroupFindingsRequest.class, - responseType = com.google.cloud.securitycenter.v1.GroupFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGroupFindingsMethod() { - io.grpc.MethodDescriptor getGroupFindingsMethod; - if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { - SecurityCenterGrpc.getGroupFindingsMethod = getGroupFindingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.GroupFindingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.GroupFindingsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GroupFindings")) - .build(); - } - } - } - return getGroupFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListAssetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAssets", - requestType = com.google.cloud.securitycenter.v1.ListAssetsRequest.class, - responseType = com.google.cloud.securitycenter.v1.ListAssetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListAssetsMethod() { - io.grpc.MethodDescriptor getListAssetsMethod; - if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { - SecurityCenterGrpc.getListAssetsMethod = getListAssetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListAssetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListAssetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListAssets")) - .build(); - } - } - } - return getListAssetsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindings", - requestType = com.google.cloud.securitycenter.v1.ListFindingsRequest.class, - responseType = com.google.cloud.securitycenter.v1.ListFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFindingsMethod() { - io.grpc.MethodDescriptor getListFindingsMethod; - if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { - SecurityCenterGrpc.getListFindingsMethod = getListFindingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListFindingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListFindingsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListFindings")) - .build(); - } - } - } - return getListFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListMuteConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMuteConfigs", - requestType = com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.class, - responseType = com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListMuteConfigsMethod() { - io.grpc.MethodDescriptor getListMuteConfigsMethod; - if ((getListMuteConfigsMethod = SecurityCenterGrpc.getListMuteConfigsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListMuteConfigsMethod = SecurityCenterGrpc.getListMuteConfigsMethod) == null) { - SecurityCenterGrpc.getListMuteConfigsMethod = getListMuteConfigsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMuteConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListMuteConfigs")) - .build(); - } - } - } - return getListMuteConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListNotificationConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNotificationConfigs", - requestType = com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.class, - responseType = com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListNotificationConfigsMethod() { - io.grpc.MethodDescriptor getListNotificationConfigsMethod; - if ((getListNotificationConfigsMethod = SecurityCenterGrpc.getListNotificationConfigsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListNotificationConfigsMethod = SecurityCenterGrpc.getListNotificationConfigsMethod) == null) { - SecurityCenterGrpc.getListNotificationConfigsMethod = getListNotificationConfigsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNotificationConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListNotificationConfigs")) - .build(); - } - } - } - return getListNotificationConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSourcesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSources", - requestType = com.google.cloud.securitycenter.v1.ListSourcesRequest.class, - responseType = com.google.cloud.securitycenter.v1.ListSourcesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSourcesMethod() { - io.grpc.MethodDescriptor getListSourcesMethod; - if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { - SecurityCenterGrpc.getListSourcesMethod = getListSourcesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSources")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListSourcesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListSourcesResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListSources")) - .build(); - } - } - } - return getListSourcesMethod; - } - - private static volatile io.grpc.MethodDescriptor getRunAssetDiscoveryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RunAssetDiscovery", - requestType = com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRunAssetDiscoveryMethod() { - io.grpc.MethodDescriptor getRunAssetDiscoveryMethod; - if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { - SecurityCenterGrpc.getRunAssetDiscoveryMethod = getRunAssetDiscoveryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunAssetDiscovery")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("RunAssetDiscovery")) - .build(); - } - } - } - return getRunAssetDiscoveryMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetFindingStateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetFindingState", - requestType = com.google.cloud.securitycenter.v1.SetFindingStateRequest.class, - responseType = com.google.cloud.securitycenter.v1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetFindingStateMethod() { - io.grpc.MethodDescriptor getSetFindingStateMethod; - if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { - SecurityCenterGrpc.getSetFindingStateMethod = getSetFindingStateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetFindingState")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.SetFindingStateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.Finding.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("SetFindingState")) - .build(); - } - } - } - return getSetFindingStateMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetMuteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetMute", - requestType = com.google.cloud.securitycenter.v1.SetMuteRequest.class, - responseType = com.google.cloud.securitycenter.v1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetMuteMethod() { - io.grpc.MethodDescriptor getSetMuteMethod; - if ((getSetMuteMethod = SecurityCenterGrpc.getSetMuteMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getSetMuteMethod = SecurityCenterGrpc.getSetMuteMethod) == null) { - SecurityCenterGrpc.getSetMuteMethod = getSetMuteMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetMute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.SetMuteRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.Finding.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("SetMute")) - .build(); - } - } - } - return getSetMuteMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { - io.grpc.MethodDescriptor getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { - SecurityCenterGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) == null) { - SecurityCenterGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateExternalSystemMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateExternalSystem", - requestType = com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.class, - responseType = com.google.cloud.securitycenter.v1.ExternalSystem.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateExternalSystemMethod() { - io.grpc.MethodDescriptor getUpdateExternalSystemMethod; - if ((getUpdateExternalSystemMethod = SecurityCenterGrpc.getUpdateExternalSystemMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateExternalSystemMethod = SecurityCenterGrpc.getUpdateExternalSystemMethod) == null) { - SecurityCenterGrpc.getUpdateExternalSystemMethod = getUpdateExternalSystemMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateExternalSystem")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateExternalSystem")) - .build(); - } - } - } - return getUpdateExternalSystemMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFinding", - requestType = com.google.cloud.securitycenter.v1.UpdateFindingRequest.class, - responseType = com.google.cloud.securitycenter.v1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateFindingMethod() { - io.grpc.MethodDescriptor getUpdateFindingMethod; - if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { - SecurityCenterGrpc.getUpdateFindingMethod = getUpdateFindingMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.UpdateFindingRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.Finding.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateFinding")) - .build(); - } - } - } - return getUpdateFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateMuteConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateMuteConfig", - requestType = com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.class, - responseType = com.google.cloud.securitycenter.v1.MuteConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateMuteConfigMethod() { - io.grpc.MethodDescriptor getUpdateMuteConfigMethod; - if ((getUpdateMuteConfigMethod = SecurityCenterGrpc.getUpdateMuteConfigMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateMuteConfigMethod = SecurityCenterGrpc.getUpdateMuteConfigMethod) == null) { - SecurityCenterGrpc.getUpdateMuteConfigMethod = getUpdateMuteConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMuteConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateMuteConfig")) - .build(); - } - } - } - return getUpdateMuteConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateNotificationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNotificationConfig", - requestType = com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.class, - responseType = com.google.cloud.securitycenter.v1.NotificationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateNotificationConfigMethod() { - io.grpc.MethodDescriptor getUpdateNotificationConfigMethod; - if ((getUpdateNotificationConfigMethod = SecurityCenterGrpc.getUpdateNotificationConfigMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateNotificationConfigMethod = SecurityCenterGrpc.getUpdateNotificationConfigMethod) == null) { - SecurityCenterGrpc.getUpdateNotificationConfigMethod = getUpdateNotificationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNotificationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateNotificationConfig")) - .build(); - } - } - } - return getUpdateNotificationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateOrganizationSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateOrganizationSettings", - requestType = com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.class, - responseType = com.google.cloud.securitycenter.v1.OrganizationSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateOrganizationSettingsMethod() { - io.grpc.MethodDescriptor getUpdateOrganizationSettingsMethod; - if ((getUpdateOrganizationSettingsMethod = SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateOrganizationSettingsMethod = SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) == null) { - SecurityCenterGrpc.getUpdateOrganizationSettingsMethod = getUpdateOrganizationSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateOrganizationSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateOrganizationSettings")) - .build(); - } - } - } - return getUpdateOrganizationSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSource", - requestType = com.google.cloud.securitycenter.v1.UpdateSourceRequest.class, - responseType = com.google.cloud.securitycenter.v1.Source.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSourceMethod() { - io.grpc.MethodDescriptor getUpdateSourceMethod; - if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { - SecurityCenterGrpc.getUpdateSourceMethod = getUpdateSourceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.UpdateSourceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.Source.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateSource")) - .build(); - } - } - } - return getUpdateSourceMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSecurityMarksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSecurityMarks", - requestType = com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.class, - responseType = com.google.cloud.securitycenter.v1.SecurityMarks.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSecurityMarksMethod() { - io.grpc.MethodDescriptor getUpdateSecurityMarksMethod; - if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) == null) { - SecurityCenterGrpc.getUpdateSecurityMarksMethod = getUpdateSecurityMarksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSecurityMarks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateSecurityMarks")) - .build(); - } - } - } - return getUpdateSecurityMarksMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateBigQueryExportMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateBigQueryExport", - requestType = com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.class, - responseType = com.google.cloud.securitycenter.v1.BigQueryExport.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateBigQueryExportMethod() { - io.grpc.MethodDescriptor getCreateBigQueryExportMethod; - if ((getCreateBigQueryExportMethod = SecurityCenterGrpc.getCreateBigQueryExportMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getCreateBigQueryExportMethod = SecurityCenterGrpc.getCreateBigQueryExportMethod) == null) { - SecurityCenterGrpc.getCreateBigQueryExportMethod = getCreateBigQueryExportMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBigQueryExport")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("CreateBigQueryExport")) - .build(); - } - } - } - return getCreateBigQueryExportMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteBigQueryExportMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteBigQueryExport", - requestType = com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteBigQueryExportMethod() { - io.grpc.MethodDescriptor getDeleteBigQueryExportMethod; - if ((getDeleteBigQueryExportMethod = SecurityCenterGrpc.getDeleteBigQueryExportMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getDeleteBigQueryExportMethod = SecurityCenterGrpc.getDeleteBigQueryExportMethod) == null) { - SecurityCenterGrpc.getDeleteBigQueryExportMethod = getDeleteBigQueryExportMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBigQueryExport")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("DeleteBigQueryExport")) - .build(); - } - } - } - return getDeleteBigQueryExportMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateBigQueryExportMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateBigQueryExport", - requestType = com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.class, - responseType = com.google.cloud.securitycenter.v1.BigQueryExport.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateBigQueryExportMethod() { - io.grpc.MethodDescriptor getUpdateBigQueryExportMethod; - if ((getUpdateBigQueryExportMethod = SecurityCenterGrpc.getUpdateBigQueryExportMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateBigQueryExportMethod = SecurityCenterGrpc.getUpdateBigQueryExportMethod) == null) { - SecurityCenterGrpc.getUpdateBigQueryExportMethod = getUpdateBigQueryExportMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBigQueryExport")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateBigQueryExport")) - .build(); - } - } - } - return getUpdateBigQueryExportMethod; - } - - private static volatile io.grpc.MethodDescriptor getListBigQueryExportsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListBigQueryExports", - requestType = com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.class, - responseType = com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListBigQueryExportsMethod() { - io.grpc.MethodDescriptor getListBigQueryExportsMethod; - if ((getListBigQueryExportsMethod = SecurityCenterGrpc.getListBigQueryExportsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListBigQueryExportsMethod = SecurityCenterGrpc.getListBigQueryExportsMethod) == null) { - SecurityCenterGrpc.getListBigQueryExportsMethod = getListBigQueryExportsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBigQueryExports")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListBigQueryExports")) - .build(); - } - } - } - return getListBigQueryExportsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static SecurityCenterStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterStub(channel, callOptions); - } - }; - return SecurityCenterStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SecurityCenterBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterBlockingStub(channel, callOptions); - } - }; - return SecurityCenterBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static SecurityCenterFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterFutureStub(channel, callOptions); - } - }; - return SecurityCenterFutureStub.newStub(factory, channel); - } - - /** - *
-   * V1 APIs for Security Center service.
-   * 
- */ - public static abstract class SecurityCenterImplBase implements io.grpc.BindableService { - - /** - *
-     * Kicks off an LRO to bulk mute findings for a parent based on a filter. The
-     * parent can be either an organization, folder or project. The findings
-     * matched by the filter will be muted after the LRO is done.
-     * 
- */ - public void bulkMuteFindings(com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBulkMuteFindingsMethod(), responseObserver); - } - - /** - *
-     * Creates a source.
-     * 
- */ - public void createSource(com.google.cloud.securitycenter.v1.CreateSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSourceMethod(), responseObserver); - } - - /** - *
-     * Creates a finding. The corresponding source must exist for finding creation
-     * to succeed.
-     * 
- */ - public void createFinding(com.google.cloud.securitycenter.v1.CreateFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFindingMethod(), responseObserver); - } - - /** - *
-     * Creates a mute config.
-     * 
- */ - public void createMuteConfig(com.google.cloud.securitycenter.v1.CreateMuteConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMuteConfigMethod(), responseObserver); - } - - /** - *
-     * Creates a notification config.
-     * 
- */ - public void createNotificationConfig(com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNotificationConfigMethod(), responseObserver); - } - - /** - *
-     * Deletes an existing mute config.
-     * 
- */ - public void deleteMuteConfig(com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMuteConfigMethod(), responseObserver); - } - - /** - *
-     * Deletes a notification config.
-     * 
- */ - public void deleteNotificationConfig(com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNotificationConfigMethod(), responseObserver); - } - - /** - *
-     * Gets a big query export.
-     * 
- */ - public void getBigQueryExport(com.google.cloud.securitycenter.v1.GetBigQueryExportRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBigQueryExportMethod(), responseObserver); - } - - /** - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Gets a mute config.
-     * 
- */ - public void getMuteConfig(com.google.cloud.securitycenter.v1.GetMuteConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMuteConfigMethod(), responseObserver); - } - - /** - *
-     * Gets a notification config.
-     * 
- */ - public void getNotificationConfig(com.google.cloud.securitycenter.v1.GetNotificationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNotificationConfigMethod(), responseObserver); - } - - /** - *
-     * Gets the settings for an organization.
-     * 
- */ - public void getOrganizationSettings(com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOrganizationSettingsMethod(), responseObserver); - } - - /** - *
-     * Gets a source.
-     * 
- */ - public void getSource(com.google.cloud.securitycenter.v1.GetSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSourceMethod(), responseObserver); - } - - /** - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public void groupAssets(com.google.cloud.securitycenter.v1.GroupAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGroupAssetsMethod(), responseObserver); - } - - /** - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings,
-     * /v1/folders/{folder_id}/sources/-/findings,
-     * /v1/projects/{project_id}/sources/-/findings
-     * 
- */ - public void groupFindings(com.google.cloud.securitycenter.v1.GroupFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGroupFindingsMethod(), responseObserver); - } - - /** - *
-     * Lists an organization's assets.
-     * 
- */ - public void listAssets(com.google.cloud.securitycenter.v1.ListAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver); - } - - /** - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public void listFindings(com.google.cloud.securitycenter.v1.ListFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingsMethod(), responseObserver); - } - - /** - *
-     * Lists mute configs.
-     * 
- */ - public void listMuteConfigs(com.google.cloud.securitycenter.v1.ListMuteConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMuteConfigsMethod(), responseObserver); - } - - /** - *
-     * Lists notification configs.
-     * 
- */ - public void listNotificationConfigs(com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNotificationConfigsMethod(), responseObserver); - } - - /** - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public void listSources(com.google.cloud.securitycenter.v1.ListSourcesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSourcesMethod(), responseObserver); - } - - /** - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public void runAssetDiscovery(com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunAssetDiscoveryMethod(), responseObserver); - } - - /** - *
-     * Updates the state of a finding.
-     * 
- */ - public void setFindingState(com.google.cloud.securitycenter.v1.SetFindingStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetFindingStateMethod(), responseObserver); - } - - /** - *
-     * Updates the mute state of a finding.
-     * 
- */ - public void setMute(com.google.cloud.securitycenter.v1.SetMuteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetMuteMethod(), responseObserver); - } - - /** - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); - } - - /** - *
-     * Updates external system. This is for a given finding.
-     * 
- */ - public void updateExternalSystem(com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateExternalSystemMethod(), responseObserver); - } - - /** - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public void updateFinding(com.google.cloud.securitycenter.v1.UpdateFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFindingMethod(), responseObserver); - } - - /** - *
-     * Updates a mute config.
-     * 
- */ - public void updateMuteConfig(com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMuteConfigMethod(), responseObserver); - } - - /** - *
-     * Updates a notification config. The following update
-     * fields are allowed: description, pubsub_topic, streaming_config.filter
-     * 
- */ - public void updateNotificationConfig(com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNotificationConfigMethod(), responseObserver); - } - - /** - *
-     * Updates an organization's settings.
-     * 
- */ - public void updateOrganizationSettings(com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateOrganizationSettingsMethod(), responseObserver); - } - - /** - *
-     * Updates a source.
-     * 
- */ - public void updateSource(com.google.cloud.securitycenter.v1.UpdateSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSourceMethod(), responseObserver); - } - - /** - *
-     * Updates security marks.
-     * 
- */ - public void updateSecurityMarks(com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSecurityMarksMethod(), responseObserver); - } - - /** - *
-     * Creates a big query export.
-     * 
- */ - public void createBigQueryExport(com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBigQueryExportMethod(), responseObserver); - } - - /** - *
-     * Deletes an existing big query export.
-     * 
- */ - public void deleteBigQueryExport(com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBigQueryExportMethod(), responseObserver); - } - - /** - *
-     * Updates a BigQuery export.
-     * 
- */ - public void updateBigQueryExport(com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBigQueryExportMethod(), responseObserver); - } - - /** - *
-     * Lists BigQuery exports. Note that when requesting BigQuery exports at a
-     * given level all exports under that level are also returned e.g. if
-     * requesting BigQuery exports under a folder, then all BigQuery exports
-     * immediately under the folder plus the ones created under the projects
-     * within the folder are returned.
-     * 
- */ - public void listBigQueryExports(com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBigQueryExportsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getBulkMuteFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest, - com.google.longrunning.Operation>( - this, METHODID_BULK_MUTE_FINDINGS))) - .addMethod( - getCreateSourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.CreateSourceRequest, - com.google.cloud.securitycenter.v1.Source>( - this, METHODID_CREATE_SOURCE))) - .addMethod( - getCreateFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.CreateFindingRequest, - com.google.cloud.securitycenter.v1.Finding>( - this, METHODID_CREATE_FINDING))) - .addMethod( - getCreateMuteConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest, - com.google.cloud.securitycenter.v1.MuteConfig>( - this, METHODID_CREATE_MUTE_CONFIG))) - .addMethod( - getCreateNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest, - com.google.cloud.securitycenter.v1.NotificationConfig>( - this, METHODID_CREATE_NOTIFICATION_CONFIG))) - .addMethod( - getDeleteMuteConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_MUTE_CONFIG))) - .addMethod( - getDeleteNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_NOTIFICATION_CONFIG))) - .addMethod( - getGetBigQueryExportMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest, - com.google.cloud.securitycenter.v1.BigQueryExport>( - this, METHODID_GET_BIG_QUERY_EXPORT))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getGetMuteConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.GetMuteConfigRequest, - com.google.cloud.securitycenter.v1.MuteConfig>( - this, METHODID_GET_MUTE_CONFIG))) - .addMethod( - getGetNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest, - com.google.cloud.securitycenter.v1.NotificationConfig>( - this, METHODID_GET_NOTIFICATION_CONFIG))) - .addMethod( - getGetOrganizationSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1.OrganizationSettings>( - this, METHODID_GET_ORGANIZATION_SETTINGS))) - .addMethod( - getGetSourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.GetSourceRequest, - com.google.cloud.securitycenter.v1.Source>( - this, METHODID_GET_SOURCE))) - .addMethod( - getGroupAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.GroupAssetsRequest, - com.google.cloud.securitycenter.v1.GroupAssetsResponse>( - this, METHODID_GROUP_ASSETS))) - .addMethod( - getGroupFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.GroupFindingsRequest, - com.google.cloud.securitycenter.v1.GroupFindingsResponse>( - this, METHODID_GROUP_FINDINGS))) - .addMethod( - getListAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.ListAssetsRequest, - com.google.cloud.securitycenter.v1.ListAssetsResponse>( - this, METHODID_LIST_ASSETS))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.ListFindingsRequest, - com.google.cloud.securitycenter.v1.ListFindingsResponse>( - this, METHODID_LIST_FINDINGS))) - .addMethod( - getListMuteConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.ListMuteConfigsRequest, - com.google.cloud.securitycenter.v1.ListMuteConfigsResponse>( - this, METHODID_LIST_MUTE_CONFIGS))) - .addMethod( - getListNotificationConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest, - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse>( - this, METHODID_LIST_NOTIFICATION_CONFIGS))) - .addMethod( - getListSourcesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.ListSourcesRequest, - com.google.cloud.securitycenter.v1.ListSourcesResponse>( - this, METHODID_LIST_SOURCES))) - .addMethod( - getRunAssetDiscoveryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest, - com.google.longrunning.Operation>( - this, METHODID_RUN_ASSET_DISCOVERY))) - .addMethod( - getSetFindingStateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.SetFindingStateRequest, - com.google.cloud.securitycenter.v1.Finding>( - this, METHODID_SET_FINDING_STATE))) - .addMethod( - getSetMuteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.SetMuteRequest, - com.google.cloud.securitycenter.v1.Finding>( - this, METHODID_SET_MUTE))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .addMethod( - getUpdateExternalSystemMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest, - com.google.cloud.securitycenter.v1.ExternalSystem>( - this, METHODID_UPDATE_EXTERNAL_SYSTEM))) - .addMethod( - getUpdateFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.UpdateFindingRequest, - com.google.cloud.securitycenter.v1.Finding>( - this, METHODID_UPDATE_FINDING))) - .addMethod( - getUpdateMuteConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest, - com.google.cloud.securitycenter.v1.MuteConfig>( - this, METHODID_UPDATE_MUTE_CONFIG))) - .addMethod( - getUpdateNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest, - com.google.cloud.securitycenter.v1.NotificationConfig>( - this, METHODID_UPDATE_NOTIFICATION_CONFIG))) - .addMethod( - getUpdateOrganizationSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1.OrganizationSettings>( - this, METHODID_UPDATE_ORGANIZATION_SETTINGS))) - .addMethod( - getUpdateSourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.UpdateSourceRequest, - com.google.cloud.securitycenter.v1.Source>( - this, METHODID_UPDATE_SOURCE))) - .addMethod( - getUpdateSecurityMarksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest, - com.google.cloud.securitycenter.v1.SecurityMarks>( - this, METHODID_UPDATE_SECURITY_MARKS))) - .addMethod( - getCreateBigQueryExportMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest, - com.google.cloud.securitycenter.v1.BigQueryExport>( - this, METHODID_CREATE_BIG_QUERY_EXPORT))) - .addMethod( - getDeleteBigQueryExportMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_BIG_QUERY_EXPORT))) - .addMethod( - getUpdateBigQueryExportMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest, - com.google.cloud.securitycenter.v1.BigQueryExport>( - this, METHODID_UPDATE_BIG_QUERY_EXPORT))) - .addMethod( - getListBigQueryExportsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest, - com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse>( - this, METHODID_LIST_BIG_QUERY_EXPORTS))) - .build(); - } - } - - /** - *
-   * V1 APIs for Security Center service.
-   * 
- */ - public static final class SecurityCenterStub extends io.grpc.stub.AbstractAsyncStub { - private SecurityCenterStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterStub(channel, callOptions); - } - - /** - *
-     * Kicks off an LRO to bulk mute findings for a parent based on a filter. The
-     * parent can be either an organization, folder or project. The findings
-     * matched by the filter will be muted after the LRO is done.
-     * 
- */ - public void bulkMuteFindings(com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBulkMuteFindingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a source.
-     * 
- */ - public void createSource(com.google.cloud.securitycenter.v1.CreateSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSourceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a finding. The corresponding source must exist for finding creation
-     * to succeed.
-     * 
- */ - public void createFinding(com.google.cloud.securitycenter.v1.CreateFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFindingMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a mute config.
-     * 
- */ - public void createMuteConfig(com.google.cloud.securitycenter.v1.CreateMuteConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateMuteConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a notification config.
-     * 
- */ - public void createNotificationConfig(com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an existing mute config.
-     * 
- */ - public void deleteMuteConfig(com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteMuteConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a notification config.
-     * 
- */ - public void deleteNotificationConfig(com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a big query export.
-     * 
- */ - public void getBigQueryExport(com.google.cloud.securitycenter.v1.GetBigQueryExportRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetBigQueryExportMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a mute config.
-     * 
- */ - public void getMuteConfig(com.google.cloud.securitycenter.v1.GetMuteConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMuteConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a notification config.
-     * 
- */ - public void getNotificationConfig(com.google.cloud.securitycenter.v1.GetNotificationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the settings for an organization.
-     * 
- */ - public void getOrganizationSettings(com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a source.
-     * 
- */ - public void getSource(com.google.cloud.securitycenter.v1.GetSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSourceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public void groupAssets(com.google.cloud.securitycenter.v1.GroupAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings,
-     * /v1/folders/{folder_id}/sources/-/findings,
-     * /v1/projects/{project_id}/sources/-/findings
-     * 
- */ - public void groupFindings(com.google.cloud.securitycenter.v1.GroupFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists an organization's assets.
-     * 
- */ - public void listAssets(com.google.cloud.securitycenter.v1.ListAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public void listFindings(com.google.cloud.securitycenter.v1.ListFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists mute configs.
-     * 
- */ - public void listMuteConfigs(com.google.cloud.securitycenter.v1.ListMuteConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMuteConfigsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists notification configs.
-     * 
- */ - public void listNotificationConfigs(com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public void listSources(com.google.cloud.securitycenter.v1.ListSourcesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSourcesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public void runAssetDiscovery(com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the state of a finding.
-     * 
- */ - public void setFindingState(com.google.cloud.securitycenter.v1.SetFindingStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the mute state of a finding.
-     * 
- */ - public void setMute(com.google.cloud.securitycenter.v1.SetMuteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetMuteMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates external system. This is for a given finding.
-     * 
- */ - public void updateExternalSystem(com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateExternalSystemMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public void updateFinding(com.google.cloud.securitycenter.v1.UpdateFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a mute config.
-     * 
- */ - public void updateMuteConfig(com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateMuteConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a notification config. The following update
-     * fields are allowed: description, pubsub_topic, streaming_config.filter
-     * 
- */ - public void updateNotificationConfig(com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNotificationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an organization's settings.
-     * 
- */ - public void updateOrganizationSettings(com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a source.
-     * 
- */ - public void updateSource(com.google.cloud.securitycenter.v1.UpdateSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates security marks.
-     * 
- */ - public void updateSecurityMarks(com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a big query export.
-     * 
- */ - public void createBigQueryExport(com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBigQueryExportMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an existing big query export.
-     * 
- */ - public void deleteBigQueryExport(com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBigQueryExportMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a BigQuery export.
-     * 
- */ - public void updateBigQueryExport(com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBigQueryExportMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists BigQuery exports. Note that when requesting BigQuery exports at a
-     * given level all exports under that level are also returned e.g. if
-     * requesting BigQuery exports under a folder, then all BigQuery exports
-     * immediately under the folder plus the ones created under the projects
-     * within the folder are returned.
-     * 
- */ - public void listBigQueryExports(com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBigQueryExportsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * V1 APIs for Security Center service.
-   * 
- */ - public static final class SecurityCenterBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private SecurityCenterBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterBlockingStub(channel, callOptions); - } - - /** - *
-     * Kicks off an LRO to bulk mute findings for a parent based on a filter. The
-     * parent can be either an organization, folder or project. The findings
-     * matched by the filter will be muted after the LRO is done.
-     * 
- */ - public com.google.longrunning.Operation bulkMuteFindings(com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBulkMuteFindingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a source.
-     * 
- */ - public com.google.cloud.securitycenter.v1.Source createSource(com.google.cloud.securitycenter.v1.CreateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSourceMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a finding. The corresponding source must exist for finding creation
-     * to succeed.
-     * 
- */ - public com.google.cloud.securitycenter.v1.Finding createFinding(com.google.cloud.securitycenter.v1.CreateFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFindingMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a mute config.
-     * 
- */ - public com.google.cloud.securitycenter.v1.MuteConfig createMuteConfig(com.google.cloud.securitycenter.v1.CreateMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMuteConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a notification config.
-     * 
- */ - public com.google.cloud.securitycenter.v1.NotificationConfig createNotificationConfig(com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateNotificationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an existing mute config.
-     * 
- */ - public com.google.protobuf.Empty deleteMuteConfig(com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteMuteConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a notification config.
-     * 
- */ - public com.google.protobuf.Empty deleteNotificationConfig(com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteNotificationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a big query export.
-     * 
- */ - public com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExport(com.google.cloud.securitycenter.v1.GetBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetBigQueryExportMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a mute config.
-     * 
- */ - public com.google.cloud.securitycenter.v1.MuteConfig getMuteConfig(com.google.cloud.securitycenter.v1.GetMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMuteConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a notification config.
-     * 
- */ - public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig(com.google.cloud.securitycenter.v1.GetNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNotificationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the settings for an organization.
-     * 
- */ - public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSettings(com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetOrganizationSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a source.
-     * 
- */ - public com.google.cloud.securitycenter.v1.Source getSource(com.google.cloud.securitycenter.v1.GetSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSourceMethod(), getCallOptions(), request); - } - - /** - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public com.google.cloud.securitycenter.v1.GroupAssetsResponse groupAssets(com.google.cloud.securitycenter.v1.GroupAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGroupAssetsMethod(), getCallOptions(), request); - } - - /** - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings,
-     * /v1/folders/{folder_id}/sources/-/findings,
-     * /v1/projects/{project_id}/sources/-/findings
-     * 
- */ - public com.google.cloud.securitycenter.v1.GroupFindingsResponse groupFindings(com.google.cloud.securitycenter.v1.GroupFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGroupFindingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists an organization's assets.
-     * 
- */ - public com.google.cloud.securitycenter.v1.ListAssetsResponse listAssets(com.google.cloud.securitycenter.v1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAssetsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public com.google.cloud.securitycenter.v1.ListFindingsResponse listFindings(com.google.cloud.securitycenter.v1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists mute configs.
-     * 
- */ - public com.google.cloud.securitycenter.v1.ListMuteConfigsResponse listMuteConfigs(com.google.cloud.securitycenter.v1.ListMuteConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMuteConfigsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists notification configs.
-     * 
- */ - public com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse listNotificationConfigs(com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNotificationConfigsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public com.google.cloud.securitycenter.v1.ListSourcesResponse listSources(com.google.cloud.securitycenter.v1.ListSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSourcesMethod(), getCallOptions(), request); - } - - /** - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public com.google.longrunning.Operation runAssetDiscovery(com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRunAssetDiscoveryMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the state of a finding.
-     * 
- */ - public com.google.cloud.securitycenter.v1.Finding setFindingState(com.google.cloud.securitycenter.v1.SetFindingStateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetFindingStateMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the mute state of a finding.
-     * 
- */ - public com.google.cloud.securitycenter.v1.Finding setMute(com.google.cloud.securitycenter.v1.SetMuteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetMuteMethod(), getCallOptions(), request); - } - - /** - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates external system. This is for a given finding.
-     * 
- */ - public com.google.cloud.securitycenter.v1.ExternalSystem updateExternalSystem(com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateExternalSystemMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public com.google.cloud.securitycenter.v1.Finding updateFinding(com.google.cloud.securitycenter.v1.UpdateFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFindingMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a mute config.
-     * 
- */ - public com.google.cloud.securitycenter.v1.MuteConfig updateMuteConfig(com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMuteConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a notification config. The following update
-     * fields are allowed: description, pubsub_topic, streaming_config.filter
-     * 
- */ - public com.google.cloud.securitycenter.v1.NotificationConfig updateNotificationConfig(com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNotificationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an organization's settings.
-     * 
- */ - public com.google.cloud.securitycenter.v1.OrganizationSettings updateOrganizationSettings(com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateOrganizationSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a source.
-     * 
- */ - public com.google.cloud.securitycenter.v1.Source updateSource(com.google.cloud.securitycenter.v1.UpdateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSourceMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates security marks.
-     * 
- */ - public com.google.cloud.securitycenter.v1.SecurityMarks updateSecurityMarks(com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSecurityMarksMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a big query export.
-     * 
- */ - public com.google.cloud.securitycenter.v1.BigQueryExport createBigQueryExport(com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateBigQueryExportMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an existing big query export.
-     * 
- */ - public com.google.protobuf.Empty deleteBigQueryExport(com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBigQueryExportMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a BigQuery export.
-     * 
- */ - public com.google.cloud.securitycenter.v1.BigQueryExport updateBigQueryExport(com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateBigQueryExportMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists BigQuery exports. Note that when requesting BigQuery exports at a
-     * given level all exports under that level are also returned e.g. if
-     * requesting BigQuery exports under a folder, then all BigQuery exports
-     * immediately under the folder plus the ones created under the projects
-     * within the folder are returned.
-     * 
- */ - public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse listBigQueryExports(com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBigQueryExportsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * V1 APIs for Security Center service.
-   * 
- */ - public static final class SecurityCenterFutureStub extends io.grpc.stub.AbstractFutureStub { - private SecurityCenterFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterFutureStub(channel, callOptions); - } - - /** - *
-     * Kicks off an LRO to bulk mute findings for a parent based on a filter. The
-     * parent can be either an organization, folder or project. The findings
-     * matched by the filter will be muted after the LRO is done.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture bulkMuteFindings( - com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBulkMuteFindingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSource( - com.google.cloud.securitycenter.v1.CreateSourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSourceMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a finding. The corresponding source must exist for finding creation
-     * to succeed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createFinding( - com.google.cloud.securitycenter.v1.CreateFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFindingMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a mute config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createMuteConfig( - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateMuteConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a notification config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createNotificationConfig( - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an existing mute config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteMuteConfig( - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteMuteConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a notification config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteNotificationConfig( - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a big query export.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getBigQueryExport( - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetBigQueryExportMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a mute config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getMuteConfig( - com.google.cloud.securitycenter.v1.GetMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMuteConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a notification config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNotificationConfig( - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the settings for an organization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getOrganizationSettings( - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSource( - com.google.cloud.securitycenter.v1.GetSourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSourceMethod(), getCallOptions()), request); - } - - /** - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture groupAssets( - com.google.cloud.securitycenter.v1.GroupAssetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), request); - } - - /** - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings,
-     * /v1/folders/{folder_id}/sources/-/findings,
-     * /v1/projects/{project_id}/sources/-/findings
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture groupFindings( - com.google.cloud.securitycenter.v1.GroupFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists an organization's assets.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listAssets( - com.google.cloud.securitycenter.v1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAssetsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listFindings( - com.google.cloud.securitycenter.v1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists mute configs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listMuteConfigs( - com.google.cloud.securitycenter.v1.ListMuteConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMuteConfigsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists notification configs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listNotificationConfigs( - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSources( - com.google.cloud.securitycenter.v1.ListSourcesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSourcesMethod(), getCallOptions()), request); - } - - /** - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture runAssetDiscovery( - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the state of a finding.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setFindingState( - com.google.cloud.securitycenter.v1.SetFindingStateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the mute state of a finding.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setMute( - com.google.cloud.securitycenter.v1.SetMuteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetMuteMethod(), getCallOptions()), request); - } - - /** - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates external system. This is for a given finding.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateExternalSystem( - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateExternalSystemMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateFinding( - com.google.cloud.securitycenter.v1.UpdateFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a mute config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateMuteConfig( - com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateMuteConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a notification config. The following update
-     * fields are allowed: description, pubsub_topic, streaming_config.filter
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateNotificationConfig( - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNotificationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an organization's settings.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateOrganizationSettings( - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateSource( - com.google.cloud.securitycenter.v1.UpdateSourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates security marks.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateSecurityMarks( - com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a big query export.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createBigQueryExport( - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateBigQueryExportMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an existing big query export.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteBigQueryExport( - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteBigQueryExportMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a BigQuery export.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateBigQueryExport( - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateBigQueryExportMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists BigQuery exports. Note that when requesting BigQuery exports at a
-     * given level all exports under that level are also returned e.g. if
-     * requesting BigQuery exports under a folder, then all BigQuery exports
-     * immediately under the folder plus the ones created under the projects
-     * within the folder are returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listBigQueryExports( - com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListBigQueryExportsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_BULK_MUTE_FINDINGS = 0; - private static final int METHODID_CREATE_SOURCE = 1; - private static final int METHODID_CREATE_FINDING = 2; - private static final int METHODID_CREATE_MUTE_CONFIG = 3; - private static final int METHODID_CREATE_NOTIFICATION_CONFIG = 4; - private static final int METHODID_DELETE_MUTE_CONFIG = 5; - private static final int METHODID_DELETE_NOTIFICATION_CONFIG = 6; - private static final int METHODID_GET_BIG_QUERY_EXPORT = 7; - private static final int METHODID_GET_IAM_POLICY = 8; - private static final int METHODID_GET_MUTE_CONFIG = 9; - private static final int METHODID_GET_NOTIFICATION_CONFIG = 10; - private static final int METHODID_GET_ORGANIZATION_SETTINGS = 11; - private static final int METHODID_GET_SOURCE = 12; - private static final int METHODID_GROUP_ASSETS = 13; - private static final int METHODID_GROUP_FINDINGS = 14; - private static final int METHODID_LIST_ASSETS = 15; - private static final int METHODID_LIST_FINDINGS = 16; - private static final int METHODID_LIST_MUTE_CONFIGS = 17; - private static final int METHODID_LIST_NOTIFICATION_CONFIGS = 18; - private static final int METHODID_LIST_SOURCES = 19; - private static final int METHODID_RUN_ASSET_DISCOVERY = 20; - private static final int METHODID_SET_FINDING_STATE = 21; - private static final int METHODID_SET_MUTE = 22; - private static final int METHODID_SET_IAM_POLICY = 23; - private static final int METHODID_TEST_IAM_PERMISSIONS = 24; - private static final int METHODID_UPDATE_EXTERNAL_SYSTEM = 25; - private static final int METHODID_UPDATE_FINDING = 26; - private static final int METHODID_UPDATE_MUTE_CONFIG = 27; - private static final int METHODID_UPDATE_NOTIFICATION_CONFIG = 28; - private static final int METHODID_UPDATE_ORGANIZATION_SETTINGS = 29; - private static final int METHODID_UPDATE_SOURCE = 30; - private static final int METHODID_UPDATE_SECURITY_MARKS = 31; - private static final int METHODID_CREATE_BIG_QUERY_EXPORT = 32; - private static final int METHODID_DELETE_BIG_QUERY_EXPORT = 33; - private static final int METHODID_UPDATE_BIG_QUERY_EXPORT = 34; - private static final int METHODID_LIST_BIG_QUERY_EXPORTS = 35; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SecurityCenterImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SecurityCenterImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_BULK_MUTE_FINDINGS: - serviceImpl.bulkMuteFindings((com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SOURCE: - serviceImpl.createSource((com.google.cloud.securitycenter.v1.CreateSourceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_FINDING: - serviceImpl.createFinding((com.google.cloud.securitycenter.v1.CreateFindingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_MUTE_CONFIG: - serviceImpl.createMuteConfig((com.google.cloud.securitycenter.v1.CreateMuteConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_NOTIFICATION_CONFIG: - serviceImpl.createNotificationConfig((com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_MUTE_CONFIG: - serviceImpl.deleteMuteConfig((com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_NOTIFICATION_CONFIG: - serviceImpl.deleteNotificationConfig((com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_BIG_QUERY_EXPORT: - serviceImpl.getBigQueryExport((com.google.cloud.securitycenter.v1.GetBigQueryExportRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MUTE_CONFIG: - serviceImpl.getMuteConfig((com.google.cloud.securitycenter.v1.GetMuteConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NOTIFICATION_CONFIG: - serviceImpl.getNotificationConfig((com.google.cloud.securitycenter.v1.GetNotificationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ORGANIZATION_SETTINGS: - serviceImpl.getOrganizationSettings((com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SOURCE: - serviceImpl.getSource((com.google.cloud.securitycenter.v1.GetSourceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GROUP_ASSETS: - serviceImpl.groupAssets((com.google.cloud.securitycenter.v1.GroupAssetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GROUP_FINDINGS: - serviceImpl.groupFindings((com.google.cloud.securitycenter.v1.GroupFindingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ASSETS: - serviceImpl.listAssets((com.google.cloud.securitycenter.v1.ListAssetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FINDINGS: - serviceImpl.listFindings((com.google.cloud.securitycenter.v1.ListFindingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_MUTE_CONFIGS: - serviceImpl.listMuteConfigs((com.google.cloud.securitycenter.v1.ListMuteConfigsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_NOTIFICATION_CONFIGS: - serviceImpl.listNotificationConfigs((com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SOURCES: - serviceImpl.listSources((com.google.cloud.securitycenter.v1.ListSourcesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RUN_ASSET_DISCOVERY: - serviceImpl.runAssetDiscovery((com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_FINDING_STATE: - serviceImpl.setFindingState((com.google.cloud.securitycenter.v1.SetFindingStateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_MUTE: - serviceImpl.setMute((com.google.cloud.securitycenter.v1.SetMuteRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_EXTERNAL_SYSTEM: - serviceImpl.updateExternalSystem((com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_FINDING: - serviceImpl.updateFinding((com.google.cloud.securitycenter.v1.UpdateFindingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_MUTE_CONFIG: - serviceImpl.updateMuteConfig((com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_NOTIFICATION_CONFIG: - serviceImpl.updateNotificationConfig((com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_ORGANIZATION_SETTINGS: - serviceImpl.updateOrganizationSettings((com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SOURCE: - serviceImpl.updateSource((com.google.cloud.securitycenter.v1.UpdateSourceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SECURITY_MARKS: - serviceImpl.updateSecurityMarks((com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_BIG_QUERY_EXPORT: - serviceImpl.createBigQueryExport((com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_BIG_QUERY_EXPORT: - serviceImpl.deleteBigQueryExport((com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_BIG_QUERY_EXPORT: - serviceImpl.updateBigQueryExport((com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_BIG_QUERY_EXPORTS: - serviceImpl.listBigQueryExports((com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class SecurityCenterBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SecurityCenterBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SecurityCenter"); - } - } - - private static final class SecurityCenterFileDescriptorSupplier - extends SecurityCenterBaseDescriptorSupplier { - SecurityCenterFileDescriptorSupplier() {} - } - - private static final class SecurityCenterMethodDescriptorSupplier - extends SecurityCenterBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SecurityCenterMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SecurityCenterGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SecurityCenterFileDescriptorSupplier()) - .addMethod(getBulkMuteFindingsMethod()) - .addMethod(getCreateSourceMethod()) - .addMethod(getCreateFindingMethod()) - .addMethod(getCreateMuteConfigMethod()) - .addMethod(getCreateNotificationConfigMethod()) - .addMethod(getDeleteMuteConfigMethod()) - .addMethod(getDeleteNotificationConfigMethod()) - .addMethod(getGetBigQueryExportMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getGetMuteConfigMethod()) - .addMethod(getGetNotificationConfigMethod()) - .addMethod(getGetOrganizationSettingsMethod()) - .addMethod(getGetSourceMethod()) - .addMethod(getGroupAssetsMethod()) - .addMethod(getGroupFindingsMethod()) - .addMethod(getListAssetsMethod()) - .addMethod(getListFindingsMethod()) - .addMethod(getListMuteConfigsMethod()) - .addMethod(getListNotificationConfigsMethod()) - .addMethod(getListSourcesMethod()) - .addMethod(getRunAssetDiscoveryMethod()) - .addMethod(getSetFindingStateMethod()) - .addMethod(getSetMuteMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .addMethod(getUpdateExternalSystemMethod()) - .addMethod(getUpdateFindingMethod()) - .addMethod(getUpdateMuteConfigMethod()) - .addMethod(getUpdateNotificationConfigMethod()) - .addMethod(getUpdateOrganizationSettingsMethod()) - .addMethod(getUpdateSourceMethod()) - .addMethod(getUpdateSecurityMarksMethod()) - .addMethod(getCreateBigQueryExportMethod()) - .addMethod(getDeleteBigQueryExportMethod()) - .addMethod(getUpdateBigQueryExportMethod()) - .addMethod(getListBigQueryExportsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessProto.java deleted file mode 100644 index 8ac0c9a42..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessProto.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/access.proto - -package com.google.cloud.securitycenter.v1; - -public final class AccessProto { - private AccessProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Access_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Access_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Geolocation_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/securitycenter/v1/access." + - "proto\022\036google.cloud.securitycenter.v1\"\276\001" + - "\n\006Access\022\027\n\017principal_email\030\001 \001(\t\022\021\n\tcal" + - "ler_ip\030\002 \001(\t\022B\n\rcaller_ip_geo\030\003 \001(\0132+.go" + - "ogle.cloud.securitycenter.v1.Geolocation" + - "\022\031\n\021user_agent_family\030\004 \001(\t\022\024\n\014service_n" + - "ame\030\005 \001(\t\022\023\n\013method_name\030\006 \001(\t\"\"\n\013Geoloc" + - "ation\022\023\n\013region_code\030\001 \001(\tB\347\001\n\"com.googl" + - "e.cloud.securitycenter.v1B\013AccessProtoP\001" + - "ZLgoogle.golang.org/genproto/googleapis/" + - "cloud/securitycenter/v1;securitycenter\252\002" + - "\036Google.Cloud.SecurityCenter.V1\312\002\036Google" + - "\\Cloud\\SecurityCenter\\V1\352\002!Google::Cloud" + - "::SecurityCenter::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_securitycenter_v1_Access_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Access_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Access_descriptor, - new java.lang.String[] { "PrincipalEmail", "CallerIp", "CallerIpGeo", "UserAgentFamily", "ServiceName", "MethodName", }); - internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_securitycenter_v1_Geolocation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor, - new java.lang.String[] { "RegionCode", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java deleted file mode 100644 index 8a04ca03c..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java +++ /dev/null @@ -1,133 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/asset.proto - -package com.google.cloud.securitycenter.v1; - -public final class AssetOuterClass { - private AssetOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Asset_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*google/cloud/securitycenter/v1/asset.p" + - "roto\022\036google.cloud.securitycenter.v1\032\031go" + - "ogle/api/resource.proto\032+google/cloud/se" + - "curitycenter/v1/folder.proto\0323google/clo" + - "ud/securitycenter/v1/security_marks.prot" + - "o\032\034google/protobuf/struct.proto\032\037google/" + - "protobuf/timestamp.proto\"\251\010\n\005Asset\022\014\n\004na" + - "me\030\001 \001(\t\022b\n\032security_center_properties\030\002" + - " \001(\0132>.google.cloud.securitycenter.v1.As" + - "set.SecurityCenterProperties\022Z\n\023resource" + - "_properties\030\007 \003(\0132=.google.cloud.securit" + - "ycenter.v1.Asset.ResourcePropertiesEntry" + - "\022E\n\016security_marks\030\010 \001(\0132-.google.cloud." + - "securitycenter.v1.SecurityMarks\022/\n\013creat" + - "e_time\030\t \001(\0132\032.google.protobuf.Timestamp" + - "\022/\n\013update_time\030\n \001(\0132\032.google.protobuf." + - "Timestamp\022C\n\niam_policy\030\013 \001(\0132/.google.c" + - "loud.securitycenter.v1.Asset.IamPolicy\022\026" + - "\n\016canonical_name\030\r \001(\t\032\271\002\n\030SecurityCente" + - "rProperties\022\025\n\rresource_name\030\001 \001(\t\022\025\n\rre" + - "source_type\030\002 \001(\t\022\027\n\017resource_parent\030\003 \001" + - "(\t\022\030\n\020resource_project\030\004 \001(\t\022\027\n\017resource" + - "_owners\030\005 \003(\t\022\035\n\025resource_display_name\030\006" + - " \001(\t\022$\n\034resource_parent_display_name\030\007 \001" + - "(\t\022%\n\035resource_project_display_name\030\010 \001(" + - "\t\0227\n\007folders\030\n \003(\0132&.google.cloud.securi" + - "tycenter.v1.Folder\032 \n\tIamPolicy\022\023\n\013polic" + - "y_blob\030\001 \001(\t\032Q\n\027ResourcePropertiesEntry\022" + - "\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pro" + - "tobuf.Value:\0028\001:\232\001\352A\226\001\n#securitycenter.g" + - "oogleapis.com/Asset\022+organizations/{orga" + - "nization}/assets/{asset}\022\037folders/{folde" + - "r}/assets/{asset}\022!projects/{project}/as" + - "sets/{asset}B\332\001\n\"com.google.cloud.securi" + - "tycenter.v1P\001ZLgoogle.golang.org/genprot" + - "o/googleapis/cloud/securitycenter/v1;sec" + - "uritycenter\252\002\036Google.Cloud.SecurityCente" + - "r.V1\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!" + - "Google::Cloud::SecurityCenter::V1b\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(), - com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_Asset_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Asset_descriptor, - new java.lang.String[] { "Name", "SecurityCenterProperties", "ResourceProperties", "SecurityMarks", "CreateTime", "UpdateTime", "IamPolicy", "CanonicalName", }); - internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor = - internal_static_google_cloud_securitycenter_v1_Asset_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor, - new java.lang.String[] { "ResourceName", "ResourceType", "ResourceParent", "ResourceProject", "ResourceOwners", "ResourceDisplayName", "ResourceParentDisplayName", "ResourceProjectDisplayName", "Folders", }); - internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor = - internal_static_google_cloud_securitycenter_v1_Asset_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor, - new java.lang.String[] { "PolicyBlob", }); - internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_descriptor = - internal_static_google_cloud_securitycenter_v1_Asset_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(); - com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportProto.java deleted file mode 100644 index 59f6d78ac..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportProto.java +++ /dev/null @@ -1,79 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/bigquery_export.proto - -package com.google.cloud.securitycenter.v1; - -public final class BigQueryExportProto { - private BigQueryExportProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_BigQueryExport_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/securitycenter/v1/bigquer" + - "y_export.proto\022\036google.cloud.securitycen" + - "ter.v1\032\037google/api/field_behavior.proto\032" + - "\031google/api/resource.proto\032\037google/proto" + - "buf/timestamp.proto\"\275\003\n\016BigQueryExport\022\014" + - "\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\016\n\006fil" + - "ter\030\003 \001(\t\022\017\n\007dataset\030\004 \001(\t\0224\n\013create_tim" + - "e\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + - "\0224\n\013update_time\030\006 \001(\0132\032.google.protobuf." + - "TimestampB\003\340A\003\022\037\n\022most_recent_editor\030\007 \001" + - "(\tB\003\340A\003\022\026\n\tprincipal\030\010 \001(\tB\003\340A\003:\301\001\352A\275\001\n," + - "securitycenter.googleapis.com/BigQueryEx" + - "port\0225organizations/{organization}/bigQu" + - "eryExports/{export}\022)folders/{folder}/bi" + - "gQueryExports/{export}\022+projects/{projec" + - "t}/bigQueryExports/{export}B\357\001\n\"com.goog" + - "le.cloud.securitycenter.v1B\023BigQueryExpo" + - "rtProtoP\001ZLgoogle.golang.org/genproto/go" + - "ogleapis/cloud/securitycenter/v1;securit" + - "ycenter\252\002\036Google.Cloud.SecurityCenter.V1" + - "\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!Goog" + - "le::Cloud::SecurityCenter::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_BigQueryExport_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor, - new java.lang.String[] { "Name", "Description", "Filter", "Dataset", "CreateTime", "UpdateTime", "MostRecentEditor", "Principal", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponseOrBuilder.java deleted file mode 100644 index 28f111609..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1; - -public interface BulkMuteFindingsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.BulkMuteFindingsResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceProto.java deleted file mode 100644 index 009724a6c..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceProto.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/compliance.proto - -package com.google.cloud.securitycenter.v1; - -public final class ComplianceProto { - private ComplianceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Compliance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Compliance_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n/google/cloud/securitycenter/v1/complia" + - "nce.proto\022\036google.cloud.securitycenter.v" + - "1\"<\n\nCompliance\022\020\n\010standard\030\001 \001(\t\022\017\n\007ver" + - "sion\030\002 \001(\t\022\013\n\003ids\030\003 \003(\tB\353\001\n\"com.google.c" + - "loud.securitycenter.v1B\017ComplianceProtoP" + - "\001ZLgoogle.golang.org/genproto/googleapis" + - "/cloud/securitycenter/v1;securitycenter\252" + - "\002\036Google.Cloud.SecurityCenter.V1\312\002\036Googl" + - "e\\Cloud\\SecurityCenter\\V1\352\002!Google::Clou" + - "d::SecurityCenter::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_securitycenter_v1_Compliance_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Compliance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Compliance_descriptor, - new java.lang.String[] { "Standard", "Version", "Ids", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionProto.java deleted file mode 100644 index 5e2059a76..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionProto.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/connection.proto - -package com.google.cloud.securitycenter.v1; - -public final class ConnectionProto { - private ConnectionProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Connection_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Connection_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n/google/cloud/securitycenter/v1/connect" + - "ion.proto\022\036google.cloud.securitycenter.v" + - "1\"\201\002\n\nConnection\022\026\n\016destination_ip\030\001 \001(\t" + - "\022\030\n\020destination_port\030\002 \001(\005\022\021\n\tsource_ip\030" + - "\003 \001(\t\022\023\n\013source_port\030\004 \001(\005\022E\n\010protocol\030\005" + - " \001(\01623.google.cloud.securitycenter.v1.Co" + - "nnection.Protocol\"R\n\010Protocol\022\030\n\024PROTOCO" + - "L_UNSPECIFIED\020\000\022\010\n\004ICMP\020\001\022\007\n\003TCP\020\006\022\007\n\003UD" + - "P\020\021\022\007\n\003GRE\020/\022\007\n\003ESP\0202B\353\001\n\"com.google.clo" + - "ud.securitycenter.v1B\017ConnectionProtoP\001Z" + - "Lgoogle.golang.org/genproto/googleapis/c" + - "loud/securitycenter/v1;securitycenter\252\002\036" + - "Google.Cloud.SecurityCenter.V1\312\002\036Google\\" + - "Cloud\\SecurityCenter\\V1\352\002!Google::Cloud:" + - ":SecurityCenter::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_securitycenter_v1_Connection_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Connection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Connection_descriptor, - new java.lang.String[] { "DestinationIp", "DestinationPort", "SourceIp", "SourcePort", "Protocol", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequestOrBuilder.java deleted file mode 100644 index e462d0529..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1; - -public interface DeleteBigQueryExportRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the big query export to delete. Its format is
-   * organizations/{organization}/bigQueryExports/{export_id},
-   * folders/{folder}/bigQueryExports/{export_id}, or
-   * projects/{project}/bigQueryExports/{export_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the big query export to delete. Its format is
-   * organizations/{organization}/bigQueryExports/{export_id},
-   * folders/{folder}/bigQueryExports/{export_id}, or
-   * projects/{project}/bigQueryExports/{export_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequestOrBuilder.java deleted file mode 100644 index aa3ea7330..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1; - -public interface DeleteMuteConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.DeleteMuteConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the mute config to delete. Its format is
-   * organizations/{organization}/muteConfigs/{config_id},
-   * folders/{folder}/muteConfigs/{config_id}, or
-   * projects/{project}/muteConfigs/{config_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the mute config to delete. Its format is
-   * organizations/{organization}/muteConfigs/{config_id},
-   * folders/{folder}/muteConfigs/{config_id}, or
-   * projects/{project}/muteConfigs/{config_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequestOrBuilder.java deleted file mode 100644 index e75642df2..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1; - -public interface DeleteNotificationConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the notification config to delete. Its format is
-   * "organizations/[organization_id]/notificationConfigs/[config_id]".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the notification config to delete. Its format is
-   * "organizations/[organization_id]/notificationConfigs/[config_id]".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationProto.java deleted file mode 100644 index d524306b3..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationProto.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/exfiltration.proto - -package com.google.cloud.securitycenter.v1; - -public final class ExfiltrationProto { - private ExfiltrationProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Exfiltration_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ExfilResource_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/securitycenter/v1/exfiltr" + - "ation.proto\022\036google.cloud.securitycenter" + - ".v1\"\216\001\n\014Exfiltration\022>\n\007sources\030\001 \003(\0132-." + - "google.cloud.securitycenter.v1.ExfilReso" + - "urce\022>\n\007targets\030\002 \003(\0132-.google.cloud.sec" + - "uritycenter.v1.ExfilResource\"1\n\rExfilRes" + - "ource\022\014\n\004name\030\001 \001(\t\022\022\n\ncomponents\030\002 \003(\tB" + - "\355\001\n\"com.google.cloud.securitycenter.v1B\021" + - "ExfiltrationProtoP\001ZLgoogle.golang.org/g" + - "enproto/googleapis/cloud/securitycenter/" + - "v1;securitycenter\252\002\036Google.Cloud.Securit" + - "yCenter.V1\312\002\036Google\\Cloud\\SecurityCenter" + - "\\V1\352\002!Google::Cloud::SecurityCenter::V1b" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Exfiltration_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor, - new java.lang.String[] { "Sources", "Targets", }); - internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_securitycenter_v1_ExfilResource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor, - new java.lang.String[] { "Name", "Components", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemProto.java deleted file mode 100644 index 8d9028c66..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemProto.java +++ /dev/null @@ -1,76 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/external_system.proto - -package com.google.cloud.securitycenter.v1; - -public final class ExternalSystemProto { - private ExternalSystemProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/securitycenter/v1/externa" + - "l_system.proto\022\036google.cloud.securitycen" + - "ter.v1\032\031google/api/resource.proto\032\037googl" + - "e/protobuf/timestamp.proto\"\340\003\n\016ExternalS" + - "ystem\022\014\n\004name\030\001 \001(\t\022\021\n\tassignees\030\002 \003(\t\022\024" + - "\n\014external_uid\030\003 \001(\t\022\016\n\006status\030\004 \001(\t\022?\n\033" + - "external_system_update_time\030\005 \001(\0132\032.goog" + - "le.protobuf.Timestamp:\305\002\352A\301\002\n,securityce" + - "nter.googleapis.com/ExternalSystem\022aorga" + - "nizations/{organization}/sources/{source" + - "}/findings/{finding}/externalSystems/{ex" + - "ternalsystem}\022Ufolders/{folder}/sources/" + - "{source}/findings/{finding}/externalSyst" + - "ems/{externalsystem}\022Wprojects/{project}" + - "/sources/{source}/findings/{finding}/ext" + - "ernalSystems/{externalsystem}B\357\001\n\"com.go" + - "ogle.cloud.securitycenter.v1B\023ExternalSy" + - "stemProtoP\001ZLgoogle.golang.org/genproto/" + - "googleapis/cloud/securitycenter/v1;secur" + - "itycenter\252\002\036Google.Cloud.SecurityCenter." + - "V1\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!Go" + - "ogle::Cloud::SecurityCenter::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor, - new java.lang.String[] { "Name", "Assignees", "ExternalUid", "Status", "ExternalSystemUpdateTime", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileProto.java deleted file mode 100644 index 1ac1d8dbf..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileProto.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/file.proto - -package com.google.cloud.securitycenter.v1; - -public final class FileProto { - private FileProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_File_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_File_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/securitycenter/v1/file.pr" + - "oto\022\036google.cloud.securitycenter.v1\"s\n\004F" + - "ile\022\014\n\004path\030\001 \001(\t\022\014\n\004size\030\002 \001(\003\022\016\n\006sha25" + - "6\030\003 \001(\t\022\023\n\013hashed_size\030\004 \001(\003\022\030\n\020partiall" + - "y_hashed\030\005 \001(\010\022\020\n\010contents\030\006 \001(\tB\345\001\n\"com" + - ".google.cloud.securitycenter.v1B\tFilePro" + - "toP\001ZLgoogle.golang.org/genproto/googlea" + - "pis/cloud/securitycenter/v1;securitycent" + - "er\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036Go" + - "ogle\\Cloud\\SecurityCenter\\V1\352\002!Google::C" + - "loud::SecurityCenter::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_securitycenter_v1_File_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_File_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_File_descriptor, - new java.lang.String[] { "Path", "Size", "Sha256", "HashedSize", "PartiallyHashed", "Contents", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java deleted file mode 100644 index 80c4447f8..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java +++ /dev/null @@ -1,183 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/finding.proto - -package com.google.cloud.securitycenter.v1; - -public final class FindingOuterClass { - private FindingOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Finding_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/securitycenter/v1/finding" + - ".proto\022\036google.cloud.securitycenter.v1\032\037" + - "google/api/field_behavior.proto\032\031google/" + - "api/resource.proto\032+google/cloud/securit" + - "ycenter/v1/access.proto\032/google/cloud/se" + - "curitycenter/v1/compliance.proto\032/google" + - "/cloud/securitycenter/v1/connection.prot" + - "o\0321google/cloud/securitycenter/v1/exfilt" + - "ration.proto\0324google/cloud/securitycente" + - "r/v1/external_system.proto\0320google/cloud" + - "/securitycenter/v1/iam_binding.proto\032.go" + - "ogle/cloud/securitycenter/v1/indicator.p" + - "roto\0321google/cloud/securitycenter/v1/mit" + - "re_attack.proto\032,google/cloud/securityce" + - "nter/v1/process.proto\0323google/cloud/secu" + - "ritycenter/v1/security_marks.proto\0322goog" + - "le/cloud/securitycenter/v1/vulnerability" + - ".proto\032\034google/protobuf/struct.proto\032\037go" + - "ogle/protobuf/timestamp.proto\"\232\021\n\007Findin" + - "g\022\014\n\004name\030\001 \001(\t\022\016\n\006parent\030\002 \001(\t\022\025\n\rresou" + - "rce_name\030\003 \001(\t\022<\n\005state\030\004 \001(\0162-.google.c" + - "loud.securitycenter.v1.Finding.State\022\020\n\010" + - "category\030\005 \001(\t\022\024\n\014external_uri\030\006 \001(\t\022X\n\021" + - "source_properties\030\007 \003(\0132=.google.cloud.s" + - "ecuritycenter.v1.Finding.SourcePropertie" + - "sEntry\022J\n\016security_marks\030\010 \001(\0132-.google." + - "cloud.securitycenter.v1.SecurityMarksB\003\340" + - "A\003\022.\n\nevent_time\030\t \001(\0132\032.google.protobuf" + - ".Timestamp\022/\n\013create_time\030\n \001(\0132\032.google" + - ".protobuf.Timestamp\022B\n\010severity\030\014 \001(\01620." + - "google.cloud.securitycenter.v1.Finding.S" + - "everity\022\026\n\016canonical_name\030\016 \001(\t\022:\n\004mute\030" + - "\017 \001(\0162,.google.cloud.securitycenter.v1.F" + - "inding.Mute\022K\n\rfinding_class\030\021 \001(\01624.goo" + - "gle.cloud.securitycenter.v1.Finding.Find" + - "ingClass\022<\n\tindicator\030\022 \001(\0132).google.clo" + - "ud.securitycenter.v1.Indicator\022D\n\rvulner" + - "ability\030\024 \001(\0132-.google.cloud.securitycen" + - "ter.v1.Vulnerability\0229\n\020mute_update_time" + - "\030\025 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + - "[\n\020external_systems\030\026 \003(\0132<.google.cloud" + - ".securitycenter.v1.Finding.ExternalSyste" + - "msEntryB\003\340A\003\022A\n\014mitre_attack\030\031 \001(\0132+.goo" + - "gle.cloud.securitycenter.v1.MitreAttack\022" + - "6\n\006access\030\032 \001(\0132&.google.cloud.securityc" + - "enter.v1.Access\022?\n\013connections\030\037 \003(\0132*.g" + - "oogle.cloud.securitycenter.v1.Connection" + - "\022\026\n\016mute_initiator\030\034 \001(\t\022:\n\tprocesses\030\036 " + - "\003(\0132\'.google.cloud.securitycenter.v1.Pro" + - "cess\022?\n\013compliances\030\" \003(\0132*.google.cloud" + - ".securitycenter.v1.Compliance\022\023\n\013descrip" + - "tion\030% \001(\t\022B\n\014exfiltration\030& \001(\0132,.googl" + - "e.cloud.securitycenter.v1.Exfiltration\022@" + - "\n\014iam_bindings\030\' \003(\0132*.google.cloud.secu" + - "ritycenter.v1.IamBinding\022\022\n\nnext_steps\030(" + - " \001(\t\032O\n\025SourcePropertiesEntry\022\013\n\003key\030\001 \001" + - "(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Valu" + - "e:\0028\001\032f\n\024ExternalSystemsEntry\022\013\n\003key\030\001 \001" + - "(\t\022=\n\005value\030\002 \001(\0132..google.cloud.securit" + - "ycenter.v1.ExternalSystem:\0028\001\"8\n\005State\022\025" + - "\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INA" + - "CTIVE\020\002\"Q\n\010Severity\022\030\n\024SEVERITY_UNSPECIF" + - "IED\020\000\022\014\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020" + - "\003\022\007\n\003LOW\020\004\"C\n\004Mute\022\024\n\020MUTE_UNSPECIFIED\020\000" + - "\022\t\n\005MUTED\020\001\022\013\n\007UNMUTED\020\002\022\r\n\tUNDEFINED\020\004\"" + - "\202\001\n\014FindingClass\022\035\n\031FINDING_CLASS_UNSPEC" + - "IFIED\020\000\022\n\n\006THREAT\020\001\022\021\n\rVULNERABILITY\020\002\022\024" + - "\n\020MISCONFIGURATION\020\003\022\017\n\013OBSERVATION\020\004\022\r\n" + - "\tSCC_ERROR\020\005:\333\001\352A\327\001\n%securitycenter.goog" + - "leapis.com/Finding\022@organizations/{organ" + - "ization}/sources/{source}/findings/{find" + - "ing}\0224folders/{folder}/sources/{source}/" + - "findings/{finding}\0226projects/{project}/s" + - "ources/{source}/findings/{finding}B\332\001\n\"c" + - "om.google.cloud.securitycenter.v1P\001ZLgoo" + - "gle.golang.org/genproto/googleapis/cloud" + - "/securitycenter/v1;securitycenter\252\002\036Goog" + - "le.Cloud.SecurityCenter.V1\312\002\036Google\\Clou" + - "d\\SecurityCenter\\V1\352\002!Google::Cloud::Sec" + - "urityCenter::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.securitycenter.v1.AccessProto.getDescriptor(), - com.google.cloud.securitycenter.v1.ComplianceProto.getDescriptor(), - com.google.cloud.securitycenter.v1.ConnectionProto.getDescriptor(), - com.google.cloud.securitycenter.v1.ExfiltrationProto.getDescriptor(), - com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(), - com.google.cloud.securitycenter.v1.IamBindingProto.getDescriptor(), - com.google.cloud.securitycenter.v1.IndicatorProto.getDescriptor(), - com.google.cloud.securitycenter.v1.MitreAttackProto.getDescriptor(), - com.google.cloud.securitycenter.v1.ProcessProto.getDescriptor(), - com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1.VulnerabilityProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_Finding_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Finding_descriptor, - new java.lang.String[] { "Name", "Parent", "ResourceName", "State", "Category", "ExternalUri", "SourceProperties", "SecurityMarks", "EventTime", "CreateTime", "Severity", "CanonicalName", "Mute", "FindingClass", "Indicator", "Vulnerability", "MuteUpdateTime", "ExternalSystems", "MitreAttack", "Access", "Connections", "MuteInitiator", "Processes", "Compliances", "Description", "Exfiltration", "IamBindings", "NextSteps", }); - internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor = - internal_static_google_cloud_securitycenter_v1_Finding_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_descriptor = - internal_static_google_cloud_securitycenter_v1_Finding_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.securitycenter.v1.AccessProto.getDescriptor(); - com.google.cloud.securitycenter.v1.ComplianceProto.getDescriptor(); - com.google.cloud.securitycenter.v1.ConnectionProto.getDescriptor(); - com.google.cloud.securitycenter.v1.ExfiltrationProto.getDescriptor(); - com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(); - com.google.cloud.securitycenter.v1.IamBindingProto.getDescriptor(); - com.google.cloud.securitycenter.v1.IndicatorProto.getDescriptor(); - com.google.cloud.securitycenter.v1.MitreAttackProto.getDescriptor(); - com.google.cloud.securitycenter.v1.ProcessProto.getDescriptor(); - com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1.VulnerabilityProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderProto.java deleted file mode 100644 index a1295ec42..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderProto.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/folder.proto - -package com.google.cloud.securitycenter.v1; - -public final class FolderProto { - private FolderProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Folder_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Folder_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/securitycenter/v1/folder." + - "proto\022\036google.cloud.securitycenter.v1\"G\n" + - "\006Folder\022\027\n\017resource_folder\030\001 \001(\t\022$\n\034reso" + - "urce_folder_display_name\030\002 \001(\tB\347\001\n\"com.g" + - "oogle.cloud.securitycenter.v1B\013FolderPro" + - "toP\001ZLgoogle.golang.org/genproto/googlea" + - "pis/cloud/securitycenter/v1;securitycent" + - "er\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036Go" + - "ogle\\Cloud\\SecurityCenter\\V1\352\002!Google::C" + - "loud::SecurityCenter::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_securitycenter_v1_Folder_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Folder_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Folder_descriptor, - new java.lang.String[] { "ResourceFolder", "ResourceFolderDisplayName", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GeolocationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GeolocationOrBuilder.java deleted file mode 100644 index 0b3d14d2e..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GeolocationOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/access.proto - -package com.google.cloud.securitycenter.v1; - -public interface GeolocationOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Geolocation) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A CLDR.
-   * 
- * - * string region_code = 1; - * @return The regionCode. - */ - java.lang.String getRegionCode(); - /** - *
-   * A CLDR.
-   * 
- * - * string region_code = 1; - * @return The bytes for regionCode. - */ - com.google.protobuf.ByteString - getRegionCodeBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequestOrBuilder.java deleted file mode 100644 index 24a999b0c..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1; - -public interface GetBigQueryExportRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetBigQueryExportRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the big query export to retrieve. Its format is
-   * organizations/{organization}/bigQueryExports/{export_id},
-   * folders/{folder}/bigQueryExports/{export_id}, or
-   * projects/{project}/bigQueryExports/{export_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the big query export to retrieve. Its format is
-   * organizations/{organization}/bigQueryExports/{export_id},
-   * folders/{folder}/bigQueryExports/{export_id}, or
-   * projects/{project}/bigQueryExports/{export_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequestOrBuilder.java deleted file mode 100644 index c5ae6e39c..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1; - -public interface GetMuteConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetMuteConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the mute config to retrieve. Its format is
-   * organizations/{organization}/muteConfigs/{config_id},
-   * folders/{folder}/muteConfigs/{config_id}, or
-   * projects/{project}/muteConfigs/{config_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the mute config to retrieve. Its format is
-   * organizations/{organization}/muteConfigs/{config_id},
-   * folders/{folder}/muteConfigs/{config_id}, or
-   * projects/{project}/muteConfigs/{config_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequestOrBuilder.java deleted file mode 100644 index 7dae1ef25..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1; - -public interface GetNotificationConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetNotificationConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the notification config to get. Its format is
-   * "organizations/[organization_id]/notificationConfigs/[config_id]".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the notification config to get. Its format is
-   * "organizations/[organization_id]/notificationConfigs/[config_id]".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java deleted file mode 100644 index 9f0dfe98e..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1; - -public interface GetOrganizationSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the organization to get organization settings for. Its format is
-   * "organizations/[organization_id]/organizationSettings".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the organization to get organization settings for. Its format is
-   * "organizations/[organization_id]/organizationSettings".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java deleted file mode 100644 index c25dba2e7..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1; - -public interface GetSourceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetSourceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Relative resource name of the source. Its format is
-   * "organizations/[organization_id]/source/[source_id]".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Relative resource name of the source. Its format is
-   * "organizations/[organization_id]/source/[source_id]".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingProto.java deleted file mode 100644 index eb64b7e0b..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingProto.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/iam_binding.proto - -package com.google.cloud.securitycenter.v1; - -public final class IamBindingProto { - private IamBindingProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_IamBinding_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/securitycenter/v1/iam_bin" + - "ding.proto\022\036google.cloud.securitycenter." + - "v1\"\244\001\n\nIamBinding\022A\n\006action\030\001 \001(\01621.goog" + - "le.cloud.securitycenter.v1.IamBinding.Ac" + - "tion\022\014\n\004role\030\002 \001(\t\022\016\n\006member\030\003 \001(\t\"5\n\006Ac" + - "tion\022\026\n\022ACTION_UNSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n" + - "\006REMOVE\020\002B\353\001\n\"com.google.cloud.securityc" + - "enter.v1B\017IamBindingProtoP\001ZLgoogle.gola" + - "ng.org/genproto/googleapis/cloud/securit" + - "ycenter/v1;securitycenter\252\002\036Google.Cloud" + - ".SecurityCenter.V1\312\002\036Google\\Cloud\\Securi" + - "tyCenter\\V1\352\002!Google::Cloud::SecurityCen" + - "ter::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_IamBinding_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor, - new java.lang.String[] { "Action", "Role", "Member", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorProto.java deleted file mode 100644 index ebcaa4adf..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorProto.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/indicator.proto - -package com.google.cloud.securitycenter.v1; - -public final class IndicatorProto { - private IndicatorProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Indicator_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Indicator_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n.google/cloud/securitycenter/v1/indicat" + - "or.proto\022\036google.cloud.securitycenter.v1" + - "\"2\n\tIndicator\022\024\n\014ip_addresses\030\001 \003(\t\022\017\n\007d" + - "omains\030\002 \003(\tB\352\001\n\"com.google.cloud.securi" + - "tycenter.v1B\016IndicatorProtoP\001ZLgoogle.go" + - "lang.org/genproto/googleapis/cloud/secur" + - "itycenter/v1;securitycenter\252\002\036Google.Clo" + - "ud.SecurityCenter.V1\312\002\036Google\\Cloud\\Secu" + - "rityCenter\\V1\352\002!Google::Cloud::SecurityC" + - "enter::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_securitycenter_v1_Indicator_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Indicator_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Indicator_descriptor, - new java.lang.String[] { "IpAddresses", "Domains", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackProto.java deleted file mode 100644 index 30766a737..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackProto.java +++ /dev/null @@ -1,92 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/mitre_attack.proto - -package com.google.cloud.securitycenter.v1; - -public final class MitreAttackProto { - private MitreAttackProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_MitreAttack_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/securitycenter/v1/mitre_a" + - "ttack.proto\022\036google.cloud.securitycenter" + - ".v1\"\355\013\n\013MitreAttack\022J\n\016primary_tactic\030\001 " + - "\001(\01622.google.cloud.securitycenter.v1.Mit" + - "reAttack.Tactic\022Q\n\022primary_techniques\030\002 " + - "\003(\01625.google.cloud.securitycenter.v1.Mit" + - "reAttack.Technique\022N\n\022additional_tactics" + - "\030\003 \003(\01622.google.cloud.securitycenter.v1." + - "MitreAttack.Tactic\022T\n\025additional_techniq" + - "ues\030\004 \003(\01625.google.cloud.securitycenter." + - "v1.MitreAttack.Technique\022\017\n\007version\030\005 \001(" + - "\t\"\264\002\n\006Tactic\022\026\n\022TACTIC_UNSPECIFIED\020\000\022\022\n\016" + - "RECONNAISSANCE\020\001\022\030\n\024RESOURCE_DEVELOPMENT" + - "\020\002\022\022\n\016INITIAL_ACCESS\020\005\022\r\n\tEXECUTION\020\003\022\017\n" + - "\013PERSISTENCE\020\006\022\030\n\024PRIVILEGE_ESCALATION\020\010" + - "\022\023\n\017DEFENSE_EVASION\020\007\022\025\n\021CREDENTIAL_ACCE" + - "SS\020\t\022\r\n\tDISCOVERY\020\n\022\024\n\020LATERAL_MOVEMENT\020" + - "\013\022\016\n\nCOLLECTION\020\014\022\027\n\023COMMAND_AND_CONTROL" + - "\020\004\022\020\n\014EXFILTRATION\020\r\022\n\n\006IMPACT\020\016\"\320\006\n\tTec" + - "hnique\022\031\n\025TECHNIQUE_UNSPECIFIED\020\000\022\023\n\017ACT" + - "IVE_SCANNING\020\001\022\026\n\022SCANNING_IP_BLOCKS\020\002\022\031" + - "\n\025INGRESS_TOOL_TRANSFER\020\003\022\016\n\nNATIVE_API\020" + - "\004\022\022\n\016SHARED_MODULES\020\005\022%\n!COMMAND_AND_SCR" + - "IPTING_INTERPRETER\020\006\022\016\n\nUNIX_SHELL\020\007\022\026\n\022" + - "RESOURCE_HIJACKING\020\010\022\t\n\005PROXY\020\t\022\022\n\016EXTER" + - "NAL_PROXY\020\n\022\023\n\017MULTI_HOP_PROXY\020\013\022\026\n\022DYNA" + - "MIC_RESOLUTION\020\014\022\031\n\025UNSECURED_CREDENTIAL" + - "S\020\r\022\022\n\016VALID_ACCOUNTS\020\016\022\022\n\016LOCAL_ACCOUNT" + - "S\020\017\022\022\n\016CLOUD_ACCOUNTS\020\020\022\035\n\031NETWORK_DENIA" + - "L_OF_SERVICE\020\021\022\037\n\033PERMISSION_GROUPS_DISC" + - "OVERY\020\022\022\020\n\014CLOUD_GROUPS\020\023\022!\n\035EXFILTRATIO" + - "N_OVER_WEB_SERVICE\020\024\022!\n\035EXFILTRATION_TO_" + - "CLOUD_STORAGE\020\025\022\030\n\024ACCOUNT_MANIPULATION\020" + - "\026\022\027\n\023SSH_AUTHORIZED_KEYS\020\027\022#\n\037CREATE_OR_" + - "MODIFY_SYSTEM_PROCESS\020\030\022\034\n\030STEAL_WEB_SES" + - "SION_COOKIE\020\031\022\'\n#MODIFY_CLOUD_COMPUTE_IN" + - "FRASTRUCTURE\020\032\022%\n!EXPLOIT_PUBLIC_FACING_" + - "APPLICATION\020\033\022!\n\035MODIFY_AUTHENTICATION_P" + - "ROCESS\020\034\022\024\n\020DATA_DESTRUCTION\020\035\022\036\n\032DOMAIN" + - "_POLICY_MODIFICATION\020\036\022\023\n\017IMPAIR_DEFENSE" + - "S\020\037B\354\001\n\"com.google.cloud.securitycenter." + - "v1B\020MitreAttackProtoP\001ZLgoogle.golang.or" + - "g/genproto/googleapis/cloud/securitycent" + - "er/v1;securitycenter\252\002\036Google.Cloud.Secu" + - "rityCenter.V1\312\002\036Google\\Cloud\\SecurityCen" + - "ter\\V1\352\002!Google::Cloud::SecurityCenter::" + - "V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_MitreAttack_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor, - new java.lang.String[] { "PrimaryTactic", "PrimaryTechniques", "AdditionalTactics", "AdditionalTechniques", "Version", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigProto.java deleted file mode 100644 index 5b68c5723..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigProto.java +++ /dev/null @@ -1,79 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/mute_config.proto - -package com.google.cloud.securitycenter.v1; - -public final class MuteConfigProto { - private MuteConfigProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_MuteConfig_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/securitycenter/v1/mute_co" + - "nfig.proto\022\036google.cloud.securitycenter." + - "v1\032\037google/api/field_behavior.proto\032\031goo" + - "gle/api/resource.proto\032\037google/protobuf/" + - "timestamp.proto\"\256\003\n\nMuteConfig\022\014\n\004name\030\001" + - " \001(\t\022\030\n\014display_name\030\002 \001(\tB\002\030\001\022\023\n\013descri" + - "ption\030\003 \001(\t\022\023\n\006filter\030\004 \001(\tB\003\340A\002\0224\n\013crea" + - "te_time\030\005 \001(\0132\032.google.protobuf.Timestam" + - "pB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.google.pro" + - "tobuf.TimestampB\003\340A\003\022\037\n\022most_recent_edit" + - "or\030\007 \001(\tB\003\340A\003:\300\001\352A\274\001\n(securitycenter.goo" + - "gleapis.com/MuteConfig\0226organizations/{o" + - "rganization}/muteConfigs/{mute_config}\022*" + - "folders/{folder}/muteConfigs/{mute_confi" + - "g}\022,projects/{project}/muteConfigs/{mute" + - "_config}B\353\001\n\"com.google.cloud.securityce" + - "nter.v1B\017MuteConfigProtoP\001ZLgoogle.golan" + - "g.org/genproto/googleapis/cloud/security" + - "center/v1;securitycenter\252\002\036Google.Cloud." + - "SecurityCenter.V1\312\002\036Google\\Cloud\\Securit" + - "yCenter\\V1\352\002!Google::Cloud::SecurityCent" + - "er::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_MuteConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Description", "Filter", "CreateTime", "UpdateTime", "MostRecentEditor", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigProto.java deleted file mode 100644 index 5ee99599b..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigProto.java +++ /dev/null @@ -1,91 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/notification_config.proto - -package com.google.cloud.securitycenter.v1; - -public final class NotificationConfigProto { - private NotificationConfigProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_NotificationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/securitycenter/v1/notific" + - "ation_config.proto\022\036google.cloud.securit" + - "ycenter.v1\032\037google/api/field_behavior.pr" + - "oto\032\031google/api/resource.proto\"\240\003\n\022Notif" + - "icationConfig\022\014\n\004name\030\001 \001(\t\022\023\n\013descripti" + - "on\030\002 \001(\t\0226\n\014pubsub_topic\030\003 \001(\tB \372A\035\n\033pub" + - "sub.googleapis.com/Topic\022\034\n\017service_acco" + - "unt\030\004 \001(\tB\003\340A\003\022^\n\020streaming_config\030\005 \001(\013" + - "2B.google.cloud.securitycenter.v1.Notifi" + - "cationConfig.StreamingConfigH\000\032!\n\017Stream" + - "ingConfig\022\016\n\006filter\030\001 \001(\t:}\352Az\n0security" + - "center.googleapis.com/NotificationConfig" + - "\022Forganizations/{organization}/notificat" + - "ionConfigs/{notification_config}B\017\n\rnoti" + - "fy_configB\266\002\n\"com.google.cloud.securityc" + - "enter.v1B\027NotificationConfigProtoP\001ZLgoo" + - "gle.golang.org/genproto/googleapis/cloud" + - "/securitycenter/v1;securitycenter\252\002\036Goog" + - "le.Cloud.SecurityCenter.V1\312\002\036Google\\Clou" + - "d\\SecurityCenter\\V1\352\002!Google::Cloud::Sec" + - "urityCenter::V1\352A@\n\033pubsub.googleapis.co" + - "m/Topic\022!projects/{project}/topics/{topi" + - "c}b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_NotificationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor, - new java.lang.String[] { "Name", "Description", "PubsubTopic", "ServiceAccount", "StreamingConfig", "NotifyConfig", }); - internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor = - internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor, - new java.lang.String[] { "Filter", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java deleted file mode 100644 index 79b163d15..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java +++ /dev/null @@ -1,65 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/notification_message.proto - -package com.google.cloud.securitycenter.v1; - -public final class NotificationMessageProto { - private NotificationMessageProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_NotificationMessage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/securitycenter/v1/notific" + - "ation_message.proto\022\036google.cloud.securi" + - "tycenter.v1\032,google/cloud/securitycenter" + - "/v1/finding.proto\032-google/cloud/security" + - "center/v1/resource.proto\"\270\001\n\023Notificatio" + - "nMessage\022 \n\030notification_config_name\030\001 \001" + - "(\t\022:\n\007finding\030\002 \001(\0132\'.google.cloud.secur" + - "itycenter.v1.FindingH\000\022:\n\010resource\030\003 \001(\013" + - "2(.google.cloud.securitycenter.v1.Resour" + - "ceB\007\n\005eventB\364\001\n\"com.google.cloud.securit" + - "ycenter.v1B\030NotificationMessageProtoP\001ZL" + - "google.golang.org/genproto/googleapis/cl" + - "oud/securitycenter/v1;securitycenter\252\002\036G" + - "oogle.Cloud.SecurityCenter.V1\312\002\036Google\\C" + - "loud\\SecurityCenter\\V1\352\002!Google::Cloud::" + - "SecurityCenter::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_NotificationMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor, - new java.lang.String[] { "NotificationConfigName", "Finding", "Resource", "Event", }); - com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java deleted file mode 100644 index 51880f202..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java +++ /dev/null @@ -1,86 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/organization_settings.proto - -package com.google.cloud.securitycenter.v1; - -public final class OrganizationSettingsOuterClass { - private OrganizationSettingsOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n:google/cloud/securitycenter/v1/organiz" + - "ation_settings.proto\022\036google.cloud.secur" + - "itycenter.v1\032\031google/api/resource.proto\"" + - "\236\004\n\024OrganizationSettings\022\014\n\004name\030\001 \001(\t\022\036" + - "\n\026enable_asset_discovery\030\002 \001(\010\022i\n\026asset_" + - "discovery_config\030\003 \001(\0132I.google.cloud.se" + - "curitycenter.v1.OrganizationSettings.Ass" + - "etDiscoveryConfig\032\200\002\n\024AssetDiscoveryConf" + - "ig\022\023\n\013project_ids\030\001 \003(\t\022o\n\016inclusion_mod" + - "e\030\002 \001(\0162W.google.cloud.securitycenter.v1" + - ".OrganizationSettings.AssetDiscoveryConf" + - "ig.InclusionMode\022\022\n\nfolder_ids\030\003 \003(\t\"N\n\r" + - "InclusionMode\022\036\n\032INCLUSION_MODE_UNSPECIF" + - "IED\020\000\022\020\n\014INCLUDE_ONLY\020\001\022\013\n\007EXCLUDE\020\002:j\352A" + - "g\n2securitycenter.googleapis.com/Organiz" + - "ationSettings\0221organizations/{organizati" + - "on}/organizationSettingsB\332\001\n\"com.google." + - "cloud.securitycenter.v1P\001ZLgoogle.golang" + - ".org/genproto/googleapis/cloud/securityc" + - "enter/v1;securitycenter\252\002\036Google.Cloud.S" + - "ecurityCenter.V1\312\002\036Google\\Cloud\\Security" + - "Center\\V1\352\002!Google::Cloud::SecurityCente" + - "r::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor, - new java.lang.String[] { "Name", "EnableAssetDiscovery", "AssetDiscoveryConfig", }); - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor = - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor, - new java.lang.String[] { "ProjectIds", "InclusionMode", "FolderIds", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessProto.java deleted file mode 100644 index c54291135..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessProto.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/process.proto - -package com.google.cloud.securitycenter.v1; - -public final class ProcessProto { - private ProcessProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Process_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Process_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/securitycenter/v1/process" + - ".proto\022\036google.cloud.securitycenter.v1\032)" + - "google/cloud/securitycenter/v1/file.prot" + - "o\"\347\002\n\007Process\0224\n\006binary\030\003 \001(\0132$.google.c" + - "loud.securitycenter.v1.File\0227\n\tlibraries" + - "\030\004 \003(\0132$.google.cloud.securitycenter.v1." + - "File\0224\n\006script\030\005 \001(\0132$.google.cloud.secu" + - "ritycenter.v1.File\022\014\n\004args\030\006 \003(\t\022\033\n\023argu" + - "ments_truncated\030\007 \001(\010\022J\n\renv_variables\030\010" + - " \003(\01323.google.cloud.securitycenter.v1.En" + - "vironmentVariable\022\037\n\027env_variables_trunc" + - "ated\030\t \001(\010\022\013\n\003pid\030\n \001(\003\022\022\n\nparent_pid\030\013 " + - "\001(\003\"0\n\023EnvironmentVariable\022\014\n\004name\030\001 \001(\t" + - "\022\013\n\003val\030\002 \001(\tB\350\001\n\"com.google.cloud.secur" + - "itycenter.v1B\014ProcessProtoP\001ZLgoogle.gol" + - "ang.org/genproto/googleapis/cloud/securi" + - "tycenter/v1;securitycenter\252\002\036Google.Clou" + - "d.SecurityCenter.V1\312\002\036Google\\Cloud\\Secur" + - "ityCenter\\V1\352\002!Google::Cloud::SecurityCe" + - "nter::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.securitycenter.v1.FileProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_Process_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Process_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Process_descriptor, - new java.lang.String[] { "Binary", "Libraries", "Script", "Args", "ArgumentsTruncated", "EnvVariables", "EnvVariablesTruncated", "Pid", "ParentPid", }); - internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor, - new java.lang.String[] { "Name", "Val", }); - com.google.cloud.securitycenter.v1.FileProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java deleted file mode 100644 index 4431fc83d..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/resource.proto - -package com.google.cloud.securitycenter.v1; - -public final class ResourceProto { - private ResourceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Resource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n-google/cloud/securitycenter/v1/resourc" + - "e.proto\022\036google.cloud.securitycenter.v1\032" + - "\037google/api/field_behavior.proto\032+google" + - "/cloud/securitycenter/v1/folder.proto\"\326\001" + - "\n\010Resource\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name" + - "\030\010 \001(\t\022\014\n\004type\030\006 \001(\t\022\017\n\007project\030\002 \001(\t\022\034\n" + - "\024project_display_name\030\003 \001(\t\022\016\n\006parent\030\004 " + - "\001(\t\022\033\n\023parent_display_name\030\005 \001(\t\022<\n\007fold" + - "ers\030\007 \003(\0132&.google.cloud.securitycenter." + - "v1.FolderB\003\340A\003B\351\001\n\"com.google.cloud.secu" + - "ritycenter.v1B\rResourceProtoP\001ZLgoogle.g" + - "olang.org/genproto/googleapis/cloud/secu" + - "ritycenter/v1;securitycenter\252\002\036Google.Cl" + - "oud.SecurityCenter.V1\312\002\036Google\\Cloud\\Sec" + - "urityCenter\\V1\352\002!Google::Cloud::Security" + - "Center::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_Resource_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Resource_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Type", "Project", "ProjectDisplayName", "Parent", "ParentDisplayName", "Folders", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java deleted file mode 100644 index 47f3cc4f2..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1; - -public interface RunAssetDiscoveryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the organization to run asset discovery for. Its format is
-   * "organizations/[organization_id]".
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Name of the organization to run asset discovery for. Its format is
-   * "organizations/[organization_id]".
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java deleted file mode 100644 index df2adbd0a..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java +++ /dev/null @@ -1,62 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/run_asset_discovery_response.proto - -package com.google.cloud.securitycenter.v1; - -public final class RunAssetDiscoveryResponseOuterClass { - private RunAssetDiscoveryResponseOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nAgoogle/cloud/securitycenter/v1/run_ass" + - "et_discovery_response.proto\022\036google.clou" + - "d.securitycenter.v1\032\036google/protobuf/dur" + - "ation.proto\"\347\001\n\031RunAssetDiscoveryRespons" + - "e\022N\n\005state\030\001 \001(\0162?.google.cloud.security" + - "center.v1.RunAssetDiscoveryResponse.Stat" + - "e\022+\n\010duration\030\002 \001(\0132\031.google.protobuf.Du" + - "ration\"M\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r" + - "\n\tCOMPLETED\020\001\022\016\n\nSUPERSEDED\020\002\022\016\n\nTERMINA" + - "TED\020\003B\332\001\n\"com.google.cloud.securitycente" + - "r.v1P\001ZLgoogle.golang.org/genproto/googl" + - "eapis/cloud/securitycenter/v1;securityce" + - "nter\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036" + - "Google\\Cloud\\SecurityCenter\\V1\352\002!Google:" + - ":Cloud::SecurityCenter::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor, - new java.lang.String[] { "State", "Duration", }); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java deleted file mode 100644 index 0f1dc5db6..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java +++ /dev/null @@ -1,87 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/security_marks.proto - -package com.google.cloud.securitycenter.v1; - -public final class SecurityMarksOuterClass { - private SecurityMarksOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/securitycenter/v1/securit" + - "y_marks.proto\022\036google.cloud.securitycent" + - "er.v1\032\031google/api/resource.proto\"\325\004\n\rSec" + - "urityMarks\022\014\n\004name\030\001 \001(\t\022G\n\005marks\030\002 \003(\0132" + - "8.google.cloud.securitycenter.v1.Securit" + - "yMarks.MarksEntry\022\026\n\016canonical_name\030\003 \001(" + - "\t\032,\n\nMarksEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\t:\0028\001:\246\003\352A\242\003\n+securitycenter.googleapi" + - "s.com/SecurityMarks\0229organizations/{orga" + - "nization}/assets/{asset}/securityMarks\022N" + - "organizations/{organization}/sources/{so" + - "urce}/findings/{finding}/securityMarks\022-" + - "folders/{folder}/assets/{asset}/security" + - "Marks\022/projects/{project}/assets/{asset}" + - "/securityMarks\022Bfolders/{folder}/sources" + - "/{source}/findings/{finding}/securityMar" + - "ks\022Dprojects/{project}/sources/{source}/" + - "findings/{finding}/securityMarksB\332\001\n\"com" + - ".google.cloud.securitycenter.v1P\001ZLgoogl" + - "e.golang.org/genproto/googleapis/cloud/s" + - "ecuritycenter/v1;securitycenter\252\002\036Google" + - ".Cloud.SecurityCenter.V1\312\002\036Google\\Cloud\\" + - "SecurityCenter\\V1\352\002!Google::Cloud::Secur" + - "ityCenter::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor, - new java.lang.String[] { "Name", "Marks", "CanonicalName", }); - internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_descriptor = - internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java deleted file mode 100644 index 8e93a9135..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java +++ /dev/null @@ -1,1085 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1; - -public final class SecuritycenterService { - private SecuritycenterService() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_SetMuteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n;google/cloud/securitycenter/v1/securit" + - "ycenter_service.proto\022\036google.cloud.secu" + - "ritycenter.v1\032Agoogle/cloud/securitycent" + - "er/v1/run_asset_discovery_response.proto" + - "\032\034google/api/annotations.proto\032\027google/a" + - "pi/client.proto\032\037google/api/field_behavi" + - "or.proto\032\031google/api/resource.proto\032*goo" + - "gle/cloud/securitycenter/v1/asset.proto\032" + - "4google/cloud/securitycenter/v1/bigquery" + - "_export.proto\0324google/cloud/securitycent" + - "er/v1/external_system.proto\032,google/clou" + - "d/securitycenter/v1/finding.proto\032+googl" + - "e/cloud/securitycenter/v1/folder.proto\0320" + - "google/cloud/securitycenter/v1/mute_conf" + - "ig.proto\0328google/cloud/securitycenter/v1" + - "/notification_config.proto\032:google/cloud" + - "/securitycenter/v1/organization_settings" + - ".proto\0323google/cloud/securitycenter/v1/s" + - "ecurity_marks.proto\032+google/cloud/securi" + - "tycenter/v1/source.proto\032\036google/iam/v1/" + - "iam_policy.proto\032\032google/iam/v1/policy.p" + - "roto\032#google/longrunning/operations.prot" + - "o\032\036google/protobuf/duration.proto\032\033googl" + - "e/protobuf/empty.proto\032 google/protobuf/" + - "field_mask.proto\032\034google/protobuf/struct" + - ".proto\032\037google/protobuf/timestamp.proto\"" + - "a\n\027BulkMuteFindingsRequest\022\031\n\006parent\030\001 \001" + - "(\tB\t\340A\002\372A\003\n\001*\022\016\n\006filter\030\002 \001(\t\022\033\n\017mute_an" + - "notation\030\003 \001(\tB\002\030\001\"\032\n\030BulkMuteFindingsRe" + - "sponse\"\254\001\n\024CreateFindingRequest\022<\n\006paren" + - "t\030\001 \001(\tB,\340A\002\372A&\n$securitycenter.googleap" + - "is.com/Source\022\027\n\nfinding_id\030\002 \001(\tB\003\340A\002\022=" + - "\n\007finding\030\003 \001(\0132\'.google.cloud.securityc" + - "enter.v1.FindingB\003\340A\002\"\276\001\n\027CreateMuteConf" + - "igRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(secur" + - "itycenter.googleapis.com/MuteConfig\022D\n\013m" + - "ute_config\030\002 \001(\0132*.google.cloud.security" + - "center.v1.MuteConfigB\003\340A\002\022\033\n\016mute_config" + - "_id\030\003 \001(\tB\003\340A\002\"\331\001\n\037CreateNotificationCon" + - "figRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0clou" + - "dresourcemanager.googleapis.com/Organiza" + - "tion\022\026\n\tconfig_id\030\002 \001(\tB\003\340A\002\022T\n\023notifica" + - "tion_config\030\003 \001(\01322.google.cloud.securit" + - "ycenter.v1.NotificationConfigB\003\340A\002\"\234\001\n\023C" + - "reateSourceRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372" + - "A2\n0cloudresourcemanager.googleapis.com/" + - "Organization\022;\n\006source\030\002 \001(\0132&.google.cl" + - "oud.securitycenter.v1.SourceB\003\340A\002\"Y\n\027Del" + - "eteMuteConfigRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372" + - "A*\n(securitycenter.googleapis.com/MuteCo" + - "nfig\"i\n\037DeleteNotificationConfigRequest\022" + - "F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0securitycenter.go" + - "ogleapis.com/NotificationConfig\"^\n\030GetBi" + - "gQueryExportRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A" + - ".\n,securitycenter.googleapis.com/BigQuer" + - "yExport\"V\n\024GetMuteConfigRequest\022>\n\004name\030" + - "\001 \001(\tB0\340A\002\372A*\n(securitycenter.googleapis" + - ".com/MuteConfig\"f\n\034GetNotificationConfig" + - "Request\022F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0securityc" + - "enter.googleapis.com/NotificationConfig\"" + - "j\n\036GetOrganizationSettingsRequest\022H\n\004nam" + - "e\030\001 \001(\tB:\340A\002\372A4\n2securitycenter.googleap" + - "is.com/OrganizationSettings\"N\n\020GetSource" + - "Request\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$securityc" + - "enter.googleapis.com/Source\"\203\002\n\022GroupAss" + - "etsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#secu" + - "ritycenter.googleapis.com/Asset\022\016\n\006filte" + - "r\030\002 \001(\t\022\025\n\010group_by\030\003 \001(\tB\003\340A\002\0223\n\020compar" + - "e_duration\030\004 \001(\0132\031.google.protobuf.Durat" + - "ion\022-\n\tread_time\030\005 \001(\0132\032.google.protobuf" + - ".Timestamp\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpage_s" + - "ize\030\010 \001(\005\"\270\001\n\023GroupAssetsResponse\022E\n\020gro" + - "up_by_results\030\001 \003(\0132+.google.cloud.secur" + - "itycenter.v1.GroupResult\022-\n\tread_time\030\002 " + - "\001(\0132\032.google.protobuf.Timestamp\022\027\n\017next_" + - "page_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\206\002\n" + - "\024GroupFindingsRequest\022<\n\006parent\030\001 \001(\tB,\340" + - "A\002\372A&\n$securitycenter.googleapis.com/Sou" + - "rce\022\016\n\006filter\030\002 \001(\t\022\025\n\010group_by\030\003 \001(\tB\003\340" + - "A\002\022-\n\tread_time\030\004 \001(\0132\032.google.protobuf." + - "Timestamp\0223\n\020compare_duration\030\005 \001(\0132\031.go" + - "ogle.protobuf.Duration\022\022\n\npage_token\030\007 \001" + - "(\t\022\021\n\tpage_size\030\010 \001(\005\"\272\001\n\025GroupFindingsR" + - "esponse\022E\n\020group_by_results\030\001 \003(\0132+.goog" + - "le.cloud.securitycenter.v1.GroupResult\022-" + - "\n\tread_time\030\002 \001(\0132\032.google.protobuf.Time" + - "stamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_" + - "size\030\004 \001(\005\"\270\001\n\013GroupResult\022O\n\nproperties" + - "\030\001 \003(\0132;.google.cloud.securitycenter.v1." + - "GroupResult.PropertiesEntry\022\r\n\005count\030\002 \001" + - "(\003\032I\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005va" + - "lue\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\"\201\001" + - "\n\026ListMuteConfigsRequest\022@\n\006parent\030\001 \001(\t" + - "B0\340A\002\372A*\022(securitycenter.googleapis.com/" + - "MuteConfig\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + - "ken\030\003 \001(\t\"t\n\027ListMuteConfigsResponse\022@\n\014" + - "mute_configs\030\001 \003(\0132*.google.cloud.securi" + - "tycenter.v1.MuteConfig\022\027\n\017next_page_toke" + - "n\030\002 \001(\t\"\221\001\n\036ListNotificationConfigsReque" + - "st\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0cloudresourc" + - "emanager.googleapis.com/Organization\022\022\n\n" + - "page_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"\214\001\n\037" + - "ListNotificationConfigsResponse\022P\n\024notif" + - "ication_configs\030\001 \003(\01322.google.cloud.sec" + - "uritycenter.v1.NotificationConfig\022\027\n\017nex" + - "t_page_token\030\002 \001(\t\"y\n\022ListSourcesRequest" + - "\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$securitycenter" + - ".googleapis.com/Source\022\022\n\npage_token\030\002 \001" + - "(\t\022\021\n\tpage_size\030\007 \001(\005\"g\n\023ListSourcesResp" + - "onse\0227\n\007sources\030\001 \003(\0132&.google.cloud.sec" + - "uritycenter.v1.Source\022\027\n\017next_page_token" + - "\030\002 \001(\t\"\255\002\n\021ListAssetsRequest\022;\n\006parent\030\001" + - " \001(\tB+\340A\002\372A%\022#securitycenter.googleapis." + - "com/Asset\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003 " + - "\001(\t\022-\n\tread_time\030\004 \001(\0132\032.google.protobuf" + - ".Timestamp\0223\n\020compare_duration\030\005 \001(\0132\031.g" + - "oogle.protobuf.Duration\022.\n\nfield_mask\030\007 " + - "\001(\0132\032.google.protobuf.FieldMask\022\022\n\npage_" + - "token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"\303\003\n\022ListA" + - "ssetsResponse\022`\n\023list_assets_results\030\001 \003" + - "(\0132C.google.cloud.securitycenter.v1.List" + - "AssetsResponse.ListAssetsResult\022-\n\tread_" + - "time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\027" + - "\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 " + - "\001(\005\032\356\001\n\020ListAssetsResult\0224\n\005asset\030\001 \001(\0132" + - "%.google.cloud.securitycenter.v1.Asset\022e" + - "\n\014state_change\030\002 \001(\0162O.google.cloud.secu" + - "ritycenter.v1.ListAssetsResponse.ListAss" + - "etsResult.StateChange\"=\n\013StateChange\022\n\n\006" + - "UNUSED\020\000\022\t\n\005ADDED\020\001\022\013\n\007REMOVED\020\002\022\n\n\006ACTI" + - "VE\020\003\"\260\002\n\023ListFindingsRequest\022<\n\006parent\030\001" + - " \001(\tB,\340A\002\372A&\n$securitycenter.googleapis." + - "com/Source\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003" + - " \001(\t\022-\n\tread_time\030\004 \001(\0132\032.google.protobu" + - "f.Timestamp\0223\n\020compare_duration\030\005 \001(\0132\031." + - "google.protobuf.Duration\022.\n\nfield_mask\030\007" + - " \001(\0132\032.google.protobuf.FieldMask\022\022\n\npage" + - "_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"\254\006\n\024List" + - "FindingsResponse\022f\n\025list_findings_result" + - "s\030\001 \003(\0132G.google.cloud.securitycenter.v1" + - ".ListFindingsResponse.ListFindingsResult" + - "\022-\n\tread_time\030\002 \001(\0132\032.google.protobuf.Ti" + - "mestamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntota" + - "l_size\030\004 \001(\005\032\317\004\n\022ListFindingsResult\0228\n\007f" + - "inding\030\001 \001(\0132\'.google.cloud.securitycent" + - "er.v1.Finding\022i\n\014state_change\030\002 \001(\0162S.go" + - "ogle.cloud.securitycenter.v1.ListFinding" + - "sResponse.ListFindingsResult.StateChange" + - "\022g\n\010resource\030\003 \001(\0132P.google.cloud.securi" + - "tycenter.v1.ListFindingsResponse.ListFin" + - "dingsResult.ResourceB\003\340A\003\032\333\001\n\010Resource\022\014" + - "\n\004name\030\001 \001(\t\022\024\n\014display_name\030\010 \001(\t\022\014\n\004ty" + - "pe\030\006 \001(\t\022\024\n\014project_name\030\002 \001(\t\022\034\n\024projec" + - "t_display_name\030\003 \001(\t\022\023\n\013parent_name\030\004 \001(" + - "\t\022\033\n\023parent_display_name\030\005 \001(\t\0227\n\007folder" + - "s\030\007 \003(\0132&.google.cloud.securitycenter.v1" + - ".Folder\"M\n\013StateChange\022\n\n\006UNUSED\020\000\022\013\n\007CH" + - "ANGED\020\001\022\r\n\tUNCHANGED\020\002\022\t\n\005ADDED\020\003\022\013\n\007REM" + - "OVED\020\004\"\315\001\n\026SetFindingStateRequest\022;\n\004nam" + - "e\030\001 \001(\tB-\340A\002\372A\'\n%securitycenter.googleap" + - "is.com/Finding\022A\n\005state\030\002 \001(\0162-.google.c" + - "loud.securitycenter.v1.Finding.StateB\003\340A" + - "\002\0223\n\nstart_time\030\003 \001(\0132\032.google.protobuf." + - "TimestampB\003\340A\002\"\216\001\n\016SetMuteRequest\022;\n\004nam" + - "e\030\001 \001(\tB-\340A\002\372A\'\n%securitycenter.googleap" + - "is.com/Finding\022?\n\004mute\030\002 \001(\0162,.google.cl" + - "oud.securitycenter.v1.Finding.MuteB\003\340A\002\"" + - "d\n\030RunAssetDiscoveryRequest\022H\n\006parent\030\001 " + - "\001(\tB8\340A\002\372A2\n0cloudresourcemanager.google" + - "apis.com/Organization\"\234\001\n\033UpdateExternal" + - "SystemRequest\022L\n\017external_system\030\001 \001(\0132." + - ".google.cloud.securitycenter.v1.External" + - "SystemB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.googl" + - "e.protobuf.FieldMask\"\206\001\n\024UpdateFindingRe" + - "quest\022=\n\007finding\030\001 \001(\0132\'.google.cloud.se" + - "curitycenter.v1.FindingB\003\340A\002\022/\n\013update_m" + - "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\220\001" + - "\n\027UpdateMuteConfigRequest\022D\n\013mute_config" + - "\030\001 \001(\0132*.google.cloud.securitycenter.v1." + - "MuteConfigB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.g" + - "oogle.protobuf.FieldMask\"\250\001\n\037UpdateNotif" + - "icationConfigRequest\022T\n\023notification_con" + - "fig\030\001 \001(\01322.google.cloud.securitycenter." + - "v1.NotificationConfigB\003\340A\002\022/\n\013update_mas" + - "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"\256\001\n!" + - "UpdateOrganizationSettingsRequest\022X\n\025org" + - "anization_settings\030\001 \001(\01324.google.cloud." + - "securitycenter.v1.OrganizationSettingsB\003" + - "\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protob" + - "uf.FieldMask\"\203\001\n\023UpdateSourceRequest\022;\n\006" + - "source\030\001 \001(\0132&.google.cloud.securitycent" + - "er.v1.SourceB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032" + - ".google.protobuf.FieldMask\"\311\001\n\032UpdateSec" + - "urityMarksRequest\022J\n\016security_marks\030\001 \001(" + - "\0132-.google.cloud.securitycenter.v1.Secur" + - "ityMarksB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.goo" + - "gle.protobuf.FieldMask\022.\n\nstart_time\030\003 \001" + - "(\0132\032.google.protobuf.Timestamp\"\324\001\n\033Creat" + - "eBigQueryExportRequest\022D\n\006parent\030\001 \001(\tB4" + - "\340A\002\372A.\022,securitycenter.googleapis.com/Bi" + - "gQueryExport\022M\n\020big_query_export\030\002 \001(\0132." + - ".google.cloud.securitycenter.v1.BigQuery" + - "ExportB\003\340A\002\022 \n\023big_query_export_id\030\003 \001(\t" + - "B\003\340A\002\"\235\001\n\033UpdateBigQueryExportRequest\022M\n" + - "\020big_query_export\030\001 \001(\0132..google.cloud.s" + - "ecuritycenter.v1.BigQueryExportB\003\340A\002\022/\n\013" + - "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + - "dMask\"\211\001\n\032ListBigQueryExportsRequest\022D\n\006" + - "parent\030\001 \001(\tB4\340A\002\372A.\022,securitycenter.goo" + - "gleapis.com/BigQueryExport\022\021\n\tpage_size\030" + - "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\201\001\n\033ListBigQue" + - "ryExportsResponse\022I\n\021big_query_exports\030\001" + - " \003(\0132..google.cloud.securitycenter.v1.Bi" + - "gQueryExport\022\027\n\017next_page_token\030\002 \001(\t\"a\n" + - "\033DeleteBigQueryExportRequest\022B\n\004name\030\001 \001" + - "(\tB4\340A\002\372A.\n,securitycenter.googleapis.co" + - "m/BigQueryExport2\247O\n\016SecurityCenter\022\342\002\n\020" + - "BulkMuteFindings\0227.google.cloud.security" + - "center.v1.BulkMuteFindingsRequest\032\035.goog" + - "le.longrunning.Operation\"\365\001\202\323\344\223\002\222\001\"./v1/" + - "{parent=organizations/*}/findings:bulkMu" + - "te:\001*Z-\"(/v1/{parent=folders/*}/findings" + - ":bulkMute:\001*Z.\")/v1/{parent=projects/*}/" + - "findings:bulkMute:\001*\332A\006parent\312AP\n7google" + - ".cloud.securitycenter.v1.BulkMuteFinding" + - "sResponse\022\025google.protobuf.Empty\022\261\001\n\014Cre" + - "ateSource\0223.google.cloud.securitycenter." + - "v1.CreateSourceRequest\032&.google.cloud.se" + - "curitycenter.v1.Source\"D\202\323\344\223\002.\"$/v1/{par" + - "ent=organizations/*}/sources:\006source\332A\rp" + - "arent,source\022\314\001\n\rCreateFinding\0224.google." + - "cloud.securitycenter.v1.CreateFindingReq" + - "uest\032\'.google.cloud.securitycenter.v1.Fi" + - "nding\"\\\202\323\344\223\002:\"//v1/{parent=organizations" + - "/*/sources/*}/findings:\007finding\332A\031parent" + - ",finding_id,finding\022\330\002\n\020CreateMuteConfig" + - "\0227.google.cloud.securitycenter.v1.Create" + - "MuteConfigRequest\032*.google.cloud.securit" + - "ycenter.v1.MuteConfig\"\336\001\202\323\344\223\002\236\001\"(/v1/{pa" + - "rent=organizations/*}/muteConfigs:\013mute_" + - "configZ1\"\"/v1/{parent=folders/*}/muteCon" + - "figs:\013mute_configZ2\"#/v1/{parent=project" + - "s/*}/muteConfigs:\013mute_config\332A\022parent,m" + - "ute_config\332A!parent,mute_config,mute_con" + - "fig_id\022\243\002\n\030CreateNotificationConfig\022?.go" + - "ogle.cloud.securitycenter.v1.CreateNotif" + - "icationConfigRequest\0322.google.cloud.secu" + - "ritycenter.v1.NotificationConfig\"\221\001\202\323\344\223\002" + - "G\"0/v1/{parent=organizations/*}/notifica" + - "tionConfigs:\023notification_config\332A$paren" + - "t,config_id,notification_config\332A\032parent" + - ",notification_config\022\352\001\n\020DeleteMuteConfi" + - "g\0227.google.cloud.securitycenter.v1.Delet" + - "eMuteConfigRequest\032\026.google.protobuf.Emp" + - "ty\"\204\001\202\323\344\223\002w*(/v1/{name=organizations/*/m" + - "uteConfigs/*}Z$*\"/v1/{name=folders/*/mut" + - "eConfigs/*}Z%*#/v1/{name=projects/*/mute" + - "Configs/*}\332A\004name\022\264\001\n\030DeleteNotification" + - "Config\022?.google.cloud.securitycenter.v1." + - "DeleteNotificationConfigRequest\032\026.google" + - ".protobuf.Empty\"?\202\323\344\223\0022*0/v1/{name=organ" + - "izations/*/notificationConfigs/*}\332A\004name" + - "\022\221\002\n\021GetBigQueryExport\0228.google.cloud.se" + - "curitycenter.v1.GetBigQueryExportRequest" + - "\032..google.cloud.securitycenter.v1.BigQue" + - "ryExport\"\221\001\202\323\344\223\002\203\001\022,/v1/{name=organizati" + - "ons/*/bigQueryExports/*}Z(\022&/v1/{name=fo" + - "lders/*/bigQueryExports/*}Z)\022\'/v1/{name=" + - "projects/*/bigQueryExports/*}\332A\004name\022\226\001\n" + - "\014GetIamPolicy\022\".google.iam.v1.GetIamPoli" + - "cyRequest\032\025.google.iam.v1.Policy\"K\202\323\344\223\002:" + - "\"5/v1/{resource=organizations/*/sources/" + - "*}:getIamPolicy:\001*\332A\010resource\022\370\001\n\rGetMut" + - "eConfig\0224.google.cloud.securitycenter.v1" + - ".GetMuteConfigRequest\032*.google.cloud.sec" + - "uritycenter.v1.MuteConfig\"\204\001\202\323\344\223\002w\022(/v1/" + - "{name=organizations/*/muteConfigs/*}Z$\022\"" + - "/v1/{name=folders/*/muteConfigs/*}Z%\022#/v" + - "1/{name=projects/*/muteConfigs/*}\332A\004name" + - "\022\312\001\n\025GetNotificationConfig\022<.google.clou" + - "d.securitycenter.v1.GetNotificationConfi" + - "gRequest\0322.google.cloud.securitycenter.v" + - "1.NotificationConfig\"?\202\323\344\223\0022\0220/v1/{name=" + - "organizations/*/notificationConfigs/*}\332A" + - "\004name\022\317\001\n\027GetOrganizationSettings\022>.goog" + - "le.cloud.securitycenter.v1.GetOrganizati" + - "onSettingsRequest\0324.google.cloud.securit" + - "ycenter.v1.OrganizationSettings\">\202\323\344\223\0021\022" + - "//v1/{name=organizations/*/organizationS" + - "ettings}\332A\004name\022\232\001\n\tGetSource\0220.google.c" + - "loud.securitycenter.v1.GetSourceRequest\032" + - "&.google.cloud.securitycenter.v1.Source\"" + - "3\202\323\344\223\002&\022$/v1/{name=organizations/*/sourc" + - "es/*}\332A\004name\022\203\002\n\013GroupAssets\0222.google.cl" + - "oud.securitycenter.v1.GroupAssetsRequest" + - "\0323.google.cloud.securitycenter.v1.GroupA" + - "ssetsResponse\"\212\001\202\323\344\223\002\203\001\")/v1/{parent=org" + - "anizations/*}/assets:group:\001*Z(\"#/v1/{pa" + - "rent=folders/*}/assets:group:\001*Z)\"$/v1/{" + - "parent=projects/*}/assets:group:\001*\022\277\002\n\rG" + - "roupFindings\0224.google.cloud.securitycent" + - "er.v1.GroupFindingsRequest\0325.google.clou" + - "d.securitycenter.v1.GroupFindingsRespons" + - "e\"\300\001\202\323\344\223\002\247\001\"5/v1/{parent=organizations/*" + - "/sources/*}/findings:group:\001*Z4\"//v1/{pa" + - "rent=folders/*/sources/*}/findings:group" + - ":\001*Z5\"0/v1/{parent=projects/*/sources/*}" + - "/findings:group:\001*\332A\017parent,group_by\022\343\001\n" + - "\nListAssets\0221.google.cloud.securitycente" + - "r.v1.ListAssetsRequest\0322.google.cloud.se" + - "curitycenter.v1.ListAssetsResponse\"n\202\323\344\223" + - "\002h\022#/v1/{parent=organizations/*}/assetsZ" + - "\037\022\035/v1/{parent=folders/*}/assetsZ \022\036/v1/" + - "{parent=projects/*}/assets\022\217\002\n\014ListFindi" + - "ngs\0223.google.cloud.securitycenter.v1.Lis" + - "tFindingsRequest\0324.google.cloud.security" + - "center.v1.ListFindingsResponse\"\223\001\202\323\344\223\002\214\001" + - "\022//v1/{parent=organizations/*/sources/*}" + - "/findingsZ+\022)/v1/{parent=folders/*/sourc" + - "es/*}/findingsZ,\022*/v1/{parent=projects/*" + - "/sources/*}/findings\022\213\002\n\017ListMuteConfigs" + - "\0226.google.cloud.securitycenter.v1.ListMu" + - "teConfigsRequest\0327.google.cloud.security" + - "center.v1.ListMuteConfigsResponse\"\206\001\202\323\344\223" + - "\002w\022(/v1/{parent=organizations/*}/muteCon" + - "figsZ$\022\"/v1/{parent=folders/*}/muteConfi" + - "gsZ%\022#/v1/{parent=projects/*}/muteConfig" + - "s\332A\006parent\022\335\001\n\027ListNotificationConfigs\022>" + - ".google.cloud.securitycenter.v1.ListNoti" + - "ficationConfigsRequest\032?.google.cloud.se" + - "curitycenter.v1.ListNotificationConfigsR" + - "esponse\"A\202\323\344\223\0022\0220/v1/{parent=organizatio" + - "ns/*}/notificationConfigs\332A\006parent\022\362\001\n\013L" + - "istSources\0222.google.cloud.securitycenter" + - ".v1.ListSourcesRequest\0323.google.cloud.se" + - "curitycenter.v1.ListSourcesResponse\"z\202\323\344" + - "\223\002k\022$/v1/{parent=organizations/*}/source" + - "sZ \022\036/v1/{parent=folders/*}/sourcesZ!\022\037/" + - "v1/{parent=projects/*}/sources\332A\006parent\022" + - "\207\002\n\021RunAssetDiscovery\0228.google.cloud.sec" + - "uritycenter.v1.RunAssetDiscoveryRequest\032" + - "\035.google.longrunning.Operation\"\230\001\202\323\344\223\0025\"" + - "0/v1/{parent=organizations/*}/assets:run" + - "Discovery:\001*\332A\006parent\312AQ\n8google.cloud.s" + - "ecuritycenter.v1.RunAssetDiscoveryRespon" + - "se\022\025google.protobuf.Empty\022\304\002\n\017SetFinding" + - "State\0226.google.cloud.securitycenter.v1.S" + - "etFindingStateRequest\032\'.google.cloud.sec" + - "uritycenter.v1.Finding\"\317\001\202\323\344\223\002\260\001\"8/v1/{n" + - "ame=organizations/*/sources/*/findings/*" + - "}:setState:\001*Z7\"2/v1/{name=folders/*/sou" + - "rces/*/findings/*}:setState:\001*Z8\"3/v1/{n" + - "ame=projects/*/sources/*/findings/*}:set" + - "State:\001*\332A\025name,state,start_time\022\245\002\n\007Set" + - "Mute\022..google.cloud.securitycenter.v1.Se" + - "tMuteRequest\032\'.google.cloud.securitycent" + - "er.v1.Finding\"\300\001\202\323\344\223\002\255\001\"7/v1/{name=organ" + - "izations/*/sources/*/findings/*}:setMute" + - ":\001*Z6\"1/v1/{name=folders/*/sources/*/fin" + - "dings/*}:setMute:\001*Z7\"2/v1/{name=project" + - "s/*/sources/*/findings/*}:setMute:\001*\332A\tn" + - "ame,mute\022\235\001\n\014SetIamPolicy\022\".google.iam.v" + - "1.SetIamPolicyRequest\032\025.google.iam.v1.Po" + - "licy\"R\202\323\344\223\002:\"5/v1/{resource=organization" + - "s/*/sources/*}:setIamPolicy:\001*\332A\017resourc" + - "e,policy\022\310\001\n\022TestIamPermissions\022(.google" + - ".iam.v1.TestIamPermissionsRequest\032).goog" + - "le.iam.v1.TestIamPermissionsResponse\"]\202\323" + - "\344\223\002@\";/v1/{resource=organizations/*/sour" + - "ces/*}:testIamPermissions:\001*\332A\024resource," + - "permissions\022\320\003\n\024UpdateExternalSystem\022;.g" + - "oogle.cloud.securitycenter.v1.UpdateExte" + - "rnalSystemRequest\032..google.cloud.securit" + - "ycenter.v1.ExternalSystem\"\312\002\202\323\344\223\002\245\0022Q/v1" + - "/{external_system.name=organizations/*/s" + - "ources/*/findings/*/externalSystems/*}:\017" + - "external_systemZ^2K/v1/{external_system." + - "name=folders/*/sources/*/findings/*/exte" + - "rnalSystems/*}:\017external_systemZ_2L/v1/{" + - "external_system.name=projects/*/sources/" + - "*/findings/*/externalSystems/*}:\017externa" + - "l_system\332A\033external_system,update_mask\022\301" + - "\002\n\rUpdateFinding\0224.google.cloud.security" + - "center.v1.UpdateFindingRequest\032\'.google." + - "cloud.securitycenter.v1.Finding\"\320\001\202\323\344\223\002\277" + - "\00127/v1/{finding.name=organizations/*/sou" + - "rces/*/findings/*}:\007findingZ<21/v1/{find" + - "ing.name=folders/*/sources/*/findings/*}" + - ":\007findingZ=22/v1/{finding.name=projects/" + - "*/sources/*/findings/*}:\007finding\332A\007findi" + - "ng\022\335\002\n\020UpdateMuteConfig\0227.google.cloud.s" + - "ecuritycenter.v1.UpdateMuteConfigRequest" + - "\032*.google.cloud.securitycenter.v1.MuteCo" + - "nfig\"\343\001\202\323\344\223\002\302\00124/v1/{mute_config.name=or" + - "ganizations/*/muteConfigs/*}:\013mute_confi" + - "gZ=2./v1/{mute_config.name=folders/*/mut" + - "eConfigs/*}:\013mute_configZ>2//v1/{mute_co" + - "nfig.name=projects/*/muteConfigs/*}:\013mut" + - "e_config\332A\027mute_config,update_mask\022\253\002\n\030U" + - "pdateNotificationConfig\022?.google.cloud.s", - "ecuritycenter.v1.UpdateNotificationConfi" + - "gRequest\0322.google.cloud.securitycenter.v" + - "1.NotificationConfig\"\231\001\202\323\344\223\002[2D/v1/{noti" + - "fication_config.name=organizations/*/not" + - "ificationConfigs/*}:\023notification_config" + - "\332A\023notification_config\332A\037notification_co" + - "nfig,update_mask\022\223\002\n\032UpdateOrganizationS" + - "ettings\022A.google.cloud.securitycenter.v1" + - ".UpdateOrganizationSettingsRequest\0324.goo" + - "gle.cloud.securitycenter.v1.Organization" + - "Settings\"|\202\323\344\223\002^2E/v1/{organization_sett" + - "ings.name=organizations/*/organizationSe" + - "ttings}:\025organization_settings\332A\025organiz" + - "ation_settings\022\261\001\n\014UpdateSource\0223.google" + - ".cloud.securitycenter.v1.UpdateSourceReq" + - "uest\032&.google.cloud.securitycenter.v1.So" + - "urce\"D\202\323\344\223\00252+/v1/{source.name=organizat" + - "ions/*/sources/*}:\006source\332A\006source\022\237\005\n\023U" + - "pdateSecurityMarks\022:.google.cloud.securi" + - "tycenter.v1.UpdateSecurityMarksRequest\032-" + - ".google.cloud.securitycenter.v1.Security" + - "Marks\"\234\004\202\323\344\223\002\204\0042@/v1/{security_marks.nam" + - "e=organizations/*/assets/*/securityMarks" + - "}:\016security_marksZL2:/v1/{security_marks" + - ".name=folders/*/assets/*/securityMarks}:" + - "\016security_marksZM2;/v1/{security_marks.n" + - "ame=projects/*/assets/*/securityMarks}:\016" + - "security_marksZ^2L/v1/{security_marks.na" + - "me=organizations/*/sources/*/findings/*/" + - "securityMarks}:\016security_marksZX2F/v1/{s" + - "ecurity_marks.name=folders/*/sources/*/f" + - "indings/*/securityMarks}:\016security_marks" + - "ZY2G/v1/{security_marks.name=projects/*/" + - "sources/*/findings/*/securityMarks}:\016sec" + - "urity_marks\332A\016security_marks\022\364\002\n\024CreateB" + - "igQueryExport\022;.google.cloud.securitycen" + - "ter.v1.CreateBigQueryExportRequest\032..goo" + - "gle.cloud.securitycenter.v1.BigQueryExpo" + - "rt\"\356\001\202\323\344\223\002\271\001\",/v1/{parent=organizations/" + - "*}/bigQueryExports:\020big_query_exportZ:\"&" + - "/v1/{parent=folders/*}/bigQueryExports:\020" + - "big_query_exportZ;\"\'/v1/{parent=projects" + - "/*}/bigQueryExports:\020big_query_export\332A+" + - "parent,big_query_export,big_query_export" + - "_id\022\377\001\n\024DeleteBigQueryExport\022;.google.cl" + - "oud.securitycenter.v1.DeleteBigQueryExpo" + - "rtRequest\032\026.google.protobuf.Empty\"\221\001\202\323\344\223" + - "\002\203\001*,/v1/{name=organizations/*/bigQueryE" + - "xports/*}Z(*&/v1/{name=folders/*/bigQuer" + - "yExports/*}Z)*\'/v1/{name=projects/*/bigQ" + - "ueryExports/*}\332A\004name\022\230\003\n\024UpdateBigQuery" + - "Export\022;.google.cloud.securitycenter.v1." + - "UpdateBigQueryExportRequest\032..google.clo" + - "ud.securitycenter.v1.BigQueryExport\"\222\002\202\323" + - "\344\223\002\354\0012=/v1/{big_query_export.name=organi" + - "zations/*/bigQueryExports/*}:\020big_query_" + - "exportZK27/v1/{big_query_export.name=fol" + - "ders/*/bigQueryExports/*}:\020big_query_exp" + - "ortZL28/v1/{big_query_export.name=projec" + - "ts/*/bigQueryExports/*}:\020big_query_expor" + - "t\332A\034big_query_export,update_mask\022\244\002\n\023Lis" + - "tBigQueryExports\022:.google.cloud.security" + - "center.v1.ListBigQueryExportsRequest\032;.g" + - "oogle.cloud.securitycenter.v1.ListBigQue" + - "ryExportsResponse\"\223\001\202\323\344\223\002\203\001\022,/v1/{parent" + - "=organizations/*}/bigQueryExportsZ(\022&/v1" + - "/{parent=folders/*}/bigQueryExportsZ)\022\'/" + - "v1/{parent=projects/*}/bigQueryExports\332A" + - "\006parent\032Q\312A\035securitycenter.googleapis.co" + - "m\322A.https://www.googleapis.com/auth/clou" + - "d-platformB\332\001\n\"com.google.cloud.security" + - "center.v1P\001ZLgoogle.golang.org/genproto/" + - "googleapis/cloud/securitycenter/v1;secur" + - "itycenter\252\002\036Google.Cloud.SecurityCenter." + - "V1\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!Go" + - "ogle::Cloud::SecurityCenter::V1P\000b\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.securitycenter.v1.AssetOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1.BigQueryExportProto.getDescriptor(), - com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(), - com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(), - com.google.cloud.securitycenter.v1.MuteConfigProto.getDescriptor(), - com.google.cloud.securitycenter.v1.NotificationConfigProto.getDescriptor(), - com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1.SourceOuterClass.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "MuteAnnotation", }); - internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor, - new java.lang.String[] { "Parent", "FindingId", "Finding", }); - internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor, - new java.lang.String[] { "Parent", "MuteConfig", "MuteConfigId", }); - internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor, - new java.lang.String[] { "Parent", "ConfigId", "NotificationConfig", }); - internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor, - new java.lang.String[] { "Parent", "Source", }); - internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "GroupBy", "CompareDuration", "ReadTime", "PageToken", "PageSize", }); - internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor, - new java.lang.String[] { "GroupByResults", "ReadTime", "NextPageToken", "TotalSize", }); - internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "GroupBy", "ReadTime", "CompareDuration", "PageToken", "PageSize", }); - internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor, - new java.lang.String[] { "GroupByResults", "ReadTime", "NextPageToken", "TotalSize", }); - internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor, - new java.lang.String[] { "Properties", "Count", }); - internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor = - internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor, - new java.lang.String[] { "MuteConfigs", "NextPageToken", }); - internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", }); - internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor, - new java.lang.String[] { "NotificationConfigs", "NextPageToken", }); - internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", }); - internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor, - new java.lang.String[] { "Sources", "NextPageToken", }); - internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "OrderBy", "ReadTime", "CompareDuration", "FieldMask", "PageToken", "PageSize", }); - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor, - new java.lang.String[] { "ListAssetsResults", "ReadTime", "NextPageToken", "TotalSize", }); - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor = - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor, - new java.lang.String[] { "Asset", "StateChange", }); - internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "OrderBy", "ReadTime", "CompareDuration", "FieldMask", "PageToken", "PageSize", }); - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor, - new java.lang.String[] { "ListFindingsResults", "ReadTime", "NextPageToken", "TotalSize", }); - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor = - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor, - new java.lang.String[] { "Finding", "StateChange", "Resource", }); - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor = - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Type", "ProjectName", "ProjectDisplayName", "ParentName", "ParentDisplayName", "Folders", }); - internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor, - new java.lang.String[] { "Name", "State", "StartTime", }); - internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_securitycenter_v1_SetMuteRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor, - new java.lang.String[] { "Name", "Mute", }); - internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor, - new java.lang.String[] { "Parent", }); - internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor, - new java.lang.String[] { "ExternalSystem", "UpdateMask", }); - internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor, - new java.lang.String[] { "Finding", "UpdateMask", }); - internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor, - new java.lang.String[] { "MuteConfig", "UpdateMask", }); - internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor, - new java.lang.String[] { "NotificationConfig", "UpdateMask", }); - internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor, - new java.lang.String[] { "OrganizationSettings", "UpdateMask", }); - internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor, - new java.lang.String[] { "Source", "UpdateMask", }); - internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor, - new java.lang.String[] { "SecurityMarks", "UpdateMask", "StartTime", }); - internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor, - new java.lang.String[] { "Parent", "BigQueryExport", "BigQueryExportId", }); - internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor, - new java.lang.String[] { "BigQueryExport", "UpdateMask", }); - internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor, - new java.lang.String[] { "BigQueryExports", "NextPageToken", }); - internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor, - new java.lang.String[] { "Name", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.securitycenter.v1.AssetOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1.BigQueryExportProto.getDescriptor(); - com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(); - com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(); - com.google.cloud.securitycenter.v1.MuteConfigProto.getDescriptor(); - com.google.cloud.securitycenter.v1.NotificationConfigProto.getDescriptor(); - com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1.SourceOuterClass.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java deleted file mode 100644 index 8d7196a14..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java +++ /dev/null @@ -1,67 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/source.proto - -package com.google.cloud.securitycenter.v1; - -public final class SourceOuterClass { - private SourceOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Source_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/securitycenter/v1/source." + - "proto\022\036google.cloud.securitycenter.v1\032\031g" + - "oogle/api/resource.proto\"\375\001\n\006Source\022\014\n\004n" + - "ame\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013descr" + - "iption\030\003 \001(\t\022\026\n\016canonical_name\030\016 \001(\t:\241\001\352" + - "A\235\001\n$securitycenter.googleapis.com/Sourc" + - "e\022-organizations/{organization}/sources/" + - "{source}\022!folders/{folder}/sources/{sour" + - "ce}\022#projects/{project}/sources/{source}" + - "B\332\001\n\"com.google.cloud.securitycenter.v1P" + - "\001ZLgoogle.golang.org/genproto/googleapis" + - "/cloud/securitycenter/v1;securitycenter\252" + - "\002\036Google.Cloud.SecurityCenter.V1\312\002\036Googl" + - "e\\Cloud\\SecurityCenter\\V1\352\002!Google::Clou" + - "d::SecurityCenter::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1_Source_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Source_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Description", "CanonicalName", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityProto.java b/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityProto.java deleted file mode 100644 index 646db76f6..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityProto.java +++ /dev/null @@ -1,127 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1/vulnerability.proto - -package com.google.cloud.securitycenter.v1; - -public final class VulnerabilityProto { - private VulnerabilityProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Vulnerability_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Cve_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Cve_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Reference_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Reference_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1_Cvssv3_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/securitycenter/v1/vulnera" + - "bility.proto\022\036google.cloud.securitycente" + - "r.v1\"A\n\rVulnerability\0220\n\003cve\030\001 \001(\0132#.goo" + - "gle.cloud.securitycenter.v1.Cve\"\250\001\n\003Cve\022" + - "\n\n\002id\030\001 \001(\t\022=\n\nreferences\030\002 \003(\0132).google" + - ".cloud.securitycenter.v1.Reference\0226\n\006cv" + - "ssv3\030\003 \001(\0132&.google.cloud.securitycenter" + - ".v1.Cvssv3\022\036\n\026upstream_fix_available\030\004 \001" + - "(\010\"(\n\tReference\022\016\n\006source\030\001 \001(\t\022\013\n\003uri\030\002" + - " \001(\t\"\261\n\n\006Cvssv3\022\022\n\nbase_score\030\001 \001(\001\022J\n\ra" + - "ttack_vector\030\005 \001(\01623.google.cloud.securi" + - "tycenter.v1.Cvssv3.AttackVector\022R\n\021attac" + - "k_complexity\030\006 \001(\01627.google.cloud.securi" + - "tycenter.v1.Cvssv3.AttackComplexity\022V\n\023p" + - "rivileges_required\030\007 \001(\01629.google.cloud." + - "securitycenter.v1.Cvssv3.PrivilegesRequi" + - "red\022P\n\020user_interaction\030\010 \001(\01626.google.c" + - "loud.securitycenter.v1.Cvssv3.UserIntera" + - "ction\022;\n\005scope\030\t \001(\0162,.google.cloud.secu" + - "ritycenter.v1.Cvssv3.Scope\022M\n\026confidenti" + - "ality_impact\030\n \001(\0162-.google.cloud.securi" + - "tycenter.v1.Cvssv3.Impact\022G\n\020integrity_i" + - "mpact\030\013 \001(\0162-.google.cloud.securitycente" + - "r.v1.Cvssv3.Impact\022J\n\023availability_impac" + - "t\030\014 \001(\0162-.google.cloud.securitycenter.v1" + - ".Cvssv3.Impact\"\231\001\n\014AttackVector\022\035\n\031ATTAC" + - "K_VECTOR_UNSPECIFIED\020\000\022\031\n\025ATTACK_VECTOR_" + - "NETWORK\020\001\022\032\n\026ATTACK_VECTOR_ADJACENT\020\002\022\027\n" + - "\023ATTACK_VECTOR_LOCAL\020\003\022\032\n\026ATTACK_VECTOR_" + - "PHYSICAL\020\004\"l\n\020AttackComplexity\022!\n\035ATTACK" + - "_COMPLEXITY_UNSPECIFIED\020\000\022\031\n\025ATTACK_COMP" + - "LEXITY_LOW\020\001\022\032\n\026ATTACK_COMPLEXITY_HIGH\020\002" + - "\"\222\001\n\022PrivilegesRequired\022#\n\037PRIVILEGES_RE" + - "QUIRED_UNSPECIFIED\020\000\022\034\n\030PRIVILEGES_REQUI" + - "RED_NONE\020\001\022\033\n\027PRIVILEGES_REQUIRED_LOW\020\002\022" + - "\034\n\030PRIVILEGES_REQUIRED_HIGH\020\003\"m\n\017UserInt" + - "eraction\022 \n\034USER_INTERACTION_UNSPECIFIED" + - "\020\000\022\031\n\025USER_INTERACTION_NONE\020\001\022\035\n\031USER_IN" + - "TERACTION_REQUIRED\020\002\"F\n\005Scope\022\025\n\021SCOPE_U" + - "NSPECIFIED\020\000\022\023\n\017SCOPE_UNCHANGED\020\001\022\021\n\rSCO" + - "PE_CHANGED\020\002\"R\n\006Impact\022\026\n\022IMPACT_UNSPECI" + - "FIED\020\000\022\017\n\013IMPACT_HIGH\020\001\022\016\n\nIMPACT_LOW\020\002\022" + - "\017\n\013IMPACT_NONE\020\003B\356\001\n\"com.google.cloud.se" + - "curitycenter.v1B\022VulnerabilityProtoP\001ZLg" + - "oogle.golang.org/genproto/googleapis/clo" + - "ud/securitycenter/v1;securitycenter\252\002\036Go" + - "ogle.Cloud.SecurityCenter.V1\312\002\036Google\\Cl" + - "oud\\SecurityCenter\\V1\352\002!Google::Cloud::S" + - "ecurityCenter::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1_Vulnerability_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor, - new java.lang.String[] { "Cve", }); - internal_static_google_cloud_securitycenter_v1_Cve_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_securitycenter_v1_Cve_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Cve_descriptor, - new java.lang.String[] { "Id", "References", "Cvssv3", "UpstreamFixAvailable", }); - internal_static_google_cloud_securitycenter_v1_Reference_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_securitycenter_v1_Reference_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Reference_descriptor, - new java.lang.String[] { "Source", "Uri", }); - internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_securitycenter_v1_Cvssv3_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor, - new java.lang.String[] { "BaseScore", "AttackVector", "AttackComplexity", "PrivilegesRequired", "UserInteraction", "Scope", "ConfidentialityImpact", "IntegrityImpact", "AvailabilityImpact", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java deleted file mode 100644 index ad339d3bd..000000000 --- a/owl-bot-staging/v1beta1/grpc-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityCenterGrpc.java +++ /dev/null @@ -1,1813 +0,0 @@ -package com.google.cloud.securitycenter.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * V1 Beta APIs for Security Center service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SecurityCenterGrpc { - - private SecurityCenterGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.securitycenter.v1beta1.SecurityCenter"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateSourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSource", - requestType = com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.Source.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSourceMethod() { - io.grpc.MethodDescriptor getCreateSourceMethod; - if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { - SecurityCenterGrpc.getCreateSourceMethod = getCreateSourceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("CreateSource")) - .build(); - } - } - } - return getCreateSourceMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFinding", - requestType = com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateFindingMethod() { - io.grpc.MethodDescriptor getCreateFindingMethod; - if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { - SecurityCenterGrpc.getCreateFindingMethod = getCreateFindingMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("CreateFinding")) - .build(); - } - } - } - return getCreateFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { - io.grpc.MethodDescriptor getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { - SecurityCenterGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetOrganizationSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetOrganizationSettings", - requestType = com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.OrganizationSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetOrganizationSettingsMethod() { - io.grpc.MethodDescriptor getGetOrganizationSettingsMethod; - if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) == null) { - SecurityCenterGrpc.getGetOrganizationSettingsMethod = getGetOrganizationSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOrganizationSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetOrganizationSettings")) - .build(); - } - } - } - return getGetOrganizationSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSource", - requestType = com.google.cloud.securitycenter.v1beta1.GetSourceRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.Source.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSourceMethod() { - io.grpc.MethodDescriptor getGetSourceMethod; - if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { - SecurityCenterGrpc.getGetSourceMethod = getGetSourceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.GetSourceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetSource")) - .build(); - } - } - } - return getGetSourceMethod; - } - - private static volatile io.grpc.MethodDescriptor getGroupAssetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GroupAssets", - requestType = com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGroupAssetsMethod() { - io.grpc.MethodDescriptor getGroupAssetsMethod; - if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { - SecurityCenterGrpc.getGroupAssetsMethod = getGroupAssetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GroupAssets")) - .build(); - } - } - } - return getGroupAssetsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGroupFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GroupFindings", - requestType = com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGroupFindingsMethod() { - io.grpc.MethodDescriptor getGroupFindingsMethod; - if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { - SecurityCenterGrpc.getGroupFindingsMethod = getGroupFindingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GroupFindings")) - .build(); - } - } - } - return getGroupFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListAssetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAssets", - requestType = com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListAssetsMethod() { - io.grpc.MethodDescriptor getListAssetsMethod; - if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { - SecurityCenterGrpc.getListAssetsMethod = getListAssetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListAssets")) - .build(); - } - } - } - return getListAssetsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindings", - requestType = com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFindingsMethod() { - io.grpc.MethodDescriptor getListFindingsMethod; - if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { - SecurityCenterGrpc.getListFindingsMethod = getListFindingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListFindings")) - .build(); - } - } - } - return getListFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSourcesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSources", - requestType = com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSourcesMethod() { - io.grpc.MethodDescriptor getListSourcesMethod; - if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { - SecurityCenterGrpc.getListSourcesMethod = getListSourcesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSources")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListSources")) - .build(); - } - } - } - return getListSourcesMethod; - } - - private static volatile io.grpc.MethodDescriptor getRunAssetDiscoveryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RunAssetDiscovery", - requestType = com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRunAssetDiscoveryMethod() { - io.grpc.MethodDescriptor getRunAssetDiscoveryMethod; - if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { - SecurityCenterGrpc.getRunAssetDiscoveryMethod = getRunAssetDiscoveryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunAssetDiscovery")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("RunAssetDiscovery")) - .build(); - } - } - } - return getRunAssetDiscoveryMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetFindingStateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetFindingState", - requestType = com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetFindingStateMethod() { - io.grpc.MethodDescriptor getSetFindingStateMethod; - if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { - SecurityCenterGrpc.getSetFindingStateMethod = getSetFindingStateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetFindingState")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("SetFindingState")) - .build(); - } - } - } - return getSetFindingStateMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { - io.grpc.MethodDescriptor getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { - SecurityCenterGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) == null) { - SecurityCenterGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFinding", - requestType = com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateFindingMethod() { - io.grpc.MethodDescriptor getUpdateFindingMethod; - if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { - SecurityCenterGrpc.getUpdateFindingMethod = getUpdateFindingMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateFinding")) - .build(); - } - } - } - return getUpdateFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateOrganizationSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateOrganizationSettings", - requestType = com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.OrganizationSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateOrganizationSettingsMethod() { - io.grpc.MethodDescriptor getUpdateOrganizationSettingsMethod; - if ((getUpdateOrganizationSettingsMethod = SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateOrganizationSettingsMethod = SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) == null) { - SecurityCenterGrpc.getUpdateOrganizationSettingsMethod = getUpdateOrganizationSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateOrganizationSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateOrganizationSettings")) - .build(); - } - } - } - return getUpdateOrganizationSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSource", - requestType = com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.Source.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSourceMethod() { - io.grpc.MethodDescriptor getUpdateSourceMethod; - if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { - SecurityCenterGrpc.getUpdateSourceMethod = getUpdateSourceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateSource")) - .build(); - } - } - } - return getUpdateSourceMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSecurityMarksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSecurityMarks", - requestType = com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.class, - responseType = com.google.cloud.securitycenter.v1beta1.SecurityMarks.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSecurityMarksMethod() { - io.grpc.MethodDescriptor getUpdateSecurityMarksMethod; - if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) == null) { - SecurityCenterGrpc.getUpdateSecurityMarksMethod = getUpdateSecurityMarksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSecurityMarks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateSecurityMarks")) - .build(); - } - } - } - return getUpdateSecurityMarksMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static SecurityCenterStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterStub(channel, callOptions); - } - }; - return SecurityCenterStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SecurityCenterBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterBlockingStub(channel, callOptions); - } - }; - return SecurityCenterBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static SecurityCenterFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterFutureStub(channel, callOptions); - } - }; - return SecurityCenterFutureStub.newStub(factory, channel); - } - - /** - *
-   * V1 Beta APIs for Security Center service.
-   * 
- */ - public static abstract class SecurityCenterImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a source.
-     * 
- */ - public void createSource(com.google.cloud.securitycenter.v1beta1.CreateSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSourceMethod(), responseObserver); - } - - /** - *
-     * Creates a finding. The corresponding source must exist for finding creation
-     * to succeed.
-     * 
- */ - public void createFinding(com.google.cloud.securitycenter.v1beta1.CreateFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFindingMethod(), responseObserver); - } - - /** - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Gets the settings for an organization.
-     * 
- */ - public void getOrganizationSettings(com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOrganizationSettingsMethod(), responseObserver); - } - - /** - *
-     * Gets a source.
-     * 
- */ - public void getSource(com.google.cloud.securitycenter.v1beta1.GetSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSourceMethod(), responseObserver); - } - - /** - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public void groupAssets(com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGroupAssetsMethod(), responseObserver); - } - - /** - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public void groupFindings(com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGroupFindingsMethod(), responseObserver); - } - - /** - *
-     * Lists an organization's assets.
-     * 
- */ - public void listAssets(com.google.cloud.securitycenter.v1beta1.ListAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver); - } - - /** - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public void listFindings(com.google.cloud.securitycenter.v1beta1.ListFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingsMethod(), responseObserver); - } - - /** - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public void listSources(com.google.cloud.securitycenter.v1beta1.ListSourcesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSourcesMethod(), responseObserver); - } - - /** - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public void runAssetDiscovery(com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunAssetDiscoveryMethod(), responseObserver); - } - - /** - *
-     * Updates the state of a finding.
-     * 
- */ - public void setFindingState(com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetFindingStateMethod(), responseObserver); - } - - /** - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); - } - - /** - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public void updateFinding(com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFindingMethod(), responseObserver); - } - - /** - *
-     * Updates an organization's settings.
-     * 
- */ - public void updateOrganizationSettings(com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateOrganizationSettingsMethod(), responseObserver); - } - - /** - *
-     * Updates a source.
-     * 
- */ - public void updateSource(com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSourceMethod(), responseObserver); - } - - /** - *
-     * Updates security marks.
-     * 
- */ - public void updateSecurityMarks(com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSecurityMarksMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateSourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest, - com.google.cloud.securitycenter.v1beta1.Source>( - this, METHODID_CREATE_SOURCE))) - .addMethod( - getCreateFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest, - com.google.cloud.securitycenter.v1beta1.Finding>( - this, METHODID_CREATE_FINDING))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getGetOrganizationSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings>( - this, METHODID_GET_ORGANIZATION_SETTINGS))) - .addMethod( - getGetSourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.GetSourceRequest, - com.google.cloud.securitycenter.v1beta1.Source>( - this, METHODID_GET_SOURCE))) - .addMethod( - getGroupAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest, - com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse>( - this, METHODID_GROUP_ASSETS))) - .addMethod( - getGroupFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest, - com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse>( - this, METHODID_GROUP_FINDINGS))) - .addMethod( - getListAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest, - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse>( - this, METHODID_LIST_ASSETS))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest, - com.google.cloud.securitycenter.v1beta1.ListFindingsResponse>( - this, METHODID_LIST_FINDINGS))) - .addMethod( - getListSourcesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest, - com.google.cloud.securitycenter.v1beta1.ListSourcesResponse>( - this, METHODID_LIST_SOURCES))) - .addMethod( - getRunAssetDiscoveryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest, - com.google.longrunning.Operation>( - this, METHODID_RUN_ASSET_DISCOVERY))) - .addMethod( - getSetFindingStateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest, - com.google.cloud.securitycenter.v1beta1.Finding>( - this, METHODID_SET_FINDING_STATE))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .addMethod( - getUpdateFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest, - com.google.cloud.securitycenter.v1beta1.Finding>( - this, METHODID_UPDATE_FINDING))) - .addMethod( - getUpdateOrganizationSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1beta1.OrganizationSettings>( - this, METHODID_UPDATE_ORGANIZATION_SETTINGS))) - .addMethod( - getUpdateSourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest, - com.google.cloud.securitycenter.v1beta1.Source>( - this, METHODID_UPDATE_SOURCE))) - .addMethod( - getUpdateSecurityMarksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest, - com.google.cloud.securitycenter.v1beta1.SecurityMarks>( - this, METHODID_UPDATE_SECURITY_MARKS))) - .build(); - } - } - - /** - *
-   * V1 Beta APIs for Security Center service.
-   * 
- */ - public static final class SecurityCenterStub extends io.grpc.stub.AbstractAsyncStub { - private SecurityCenterStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterStub(channel, callOptions); - } - - /** - *
-     * Creates a source.
-     * 
- */ - public void createSource(com.google.cloud.securitycenter.v1beta1.CreateSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSourceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a finding. The corresponding source must exist for finding creation
-     * to succeed.
-     * 
- */ - public void createFinding(com.google.cloud.securitycenter.v1beta1.CreateFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFindingMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the settings for an organization.
-     * 
- */ - public void getOrganizationSettings(com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a source.
-     * 
- */ - public void getSource(com.google.cloud.securitycenter.v1beta1.GetSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSourceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public void groupAssets(com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public void groupFindings(com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists an organization's assets.
-     * 
- */ - public void listAssets(com.google.cloud.securitycenter.v1beta1.ListAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public void listFindings(com.google.cloud.securitycenter.v1beta1.ListFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public void listSources(com.google.cloud.securitycenter.v1beta1.ListSourcesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSourcesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public void runAssetDiscovery(com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the state of a finding.
-     * 
- */ - public void setFindingState(com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public void updateFinding(com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an organization's settings.
-     * 
- */ - public void updateOrganizationSettings(com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a source.
-     * 
- */ - public void updateSource(com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates security marks.
-     * 
- */ - public void updateSecurityMarks(com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * V1 Beta APIs for Security Center service.
-   * 
- */ - public static final class SecurityCenterBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private SecurityCenterBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a source.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.Source createSource(com.google.cloud.securitycenter.v1beta1.CreateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSourceMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a finding. The corresponding source must exist for finding creation
-     * to succeed.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.Finding createFinding(com.google.cloud.securitycenter.v1beta1.CreateFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFindingMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the settings for an organization.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizationSettings(com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetOrganizationSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a source.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.Source getSource(com.google.cloud.securitycenter.v1beta1.GetSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSourceMethod(), getCallOptions(), request); - } - - /** - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse groupAssets(com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGroupAssetsMethod(), getCallOptions(), request); - } - - /** - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse groupFindings(com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGroupFindingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists an organization's assets.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse listAssets(com.google.cloud.securitycenter.v1beta1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAssetsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse listFindings(com.google.cloud.securitycenter.v1beta1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.ListSourcesResponse listSources(com.google.cloud.securitycenter.v1beta1.ListSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSourcesMethod(), getCallOptions(), request); - } - - /** - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public com.google.longrunning.Operation runAssetDiscovery(com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRunAssetDiscoveryMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the state of a finding.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.Finding setFindingState(com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetFindingStateMethod(), getCallOptions(), request); - } - - /** - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.Finding updateFinding(com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFindingMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an organization's settings.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings updateOrganizationSettings(com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateOrganizationSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a source.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.Source updateSource(com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSourceMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates security marks.
-     * 
- */ - public com.google.cloud.securitycenter.v1beta1.SecurityMarks updateSecurityMarks(com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSecurityMarksMethod(), getCallOptions(), request); - } - } - - /** - *
-   * V1 Beta APIs for Security Center service.
-   * 
- */ - public static final class SecurityCenterFutureStub extends io.grpc.stub.AbstractFutureStub { - private SecurityCenterFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSource( - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSourceMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a finding. The corresponding source must exist for finding creation
-     * to succeed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createFinding( - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFindingMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the settings for an organization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getOrganizationSettings( - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSource( - com.google.cloud.securitycenter.v1beta1.GetSourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSourceMethod(), getCallOptions()), request); - } - - /** - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture groupAssets( - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), request); - } - - /** - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture groupFindings( - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists an organization's assets.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listAssets( - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAssetsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listFindings( - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSources( - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSourcesMethod(), getCallOptions()), request); - } - - /** - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture runAssetDiscovery( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the state of a finding.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setFindingState( - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), request); - } - - /** - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateFinding( - com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an organization's settings.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateOrganizationSettings( - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateSource( - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates security marks.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateSecurityMarks( - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SOURCE = 0; - private static final int METHODID_CREATE_FINDING = 1; - private static final int METHODID_GET_IAM_POLICY = 2; - private static final int METHODID_GET_ORGANIZATION_SETTINGS = 3; - private static final int METHODID_GET_SOURCE = 4; - private static final int METHODID_GROUP_ASSETS = 5; - private static final int METHODID_GROUP_FINDINGS = 6; - private static final int METHODID_LIST_ASSETS = 7; - private static final int METHODID_LIST_FINDINGS = 8; - private static final int METHODID_LIST_SOURCES = 9; - private static final int METHODID_RUN_ASSET_DISCOVERY = 10; - private static final int METHODID_SET_FINDING_STATE = 11; - private static final int METHODID_SET_IAM_POLICY = 12; - private static final int METHODID_TEST_IAM_PERMISSIONS = 13; - private static final int METHODID_UPDATE_FINDING = 14; - private static final int METHODID_UPDATE_ORGANIZATION_SETTINGS = 15; - private static final int METHODID_UPDATE_SOURCE = 16; - private static final int METHODID_UPDATE_SECURITY_MARKS = 17; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SecurityCenterImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SecurityCenterImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_SOURCE: - serviceImpl.createSource((com.google.cloud.securitycenter.v1beta1.CreateSourceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_FINDING: - serviceImpl.createFinding((com.google.cloud.securitycenter.v1beta1.CreateFindingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ORGANIZATION_SETTINGS: - serviceImpl.getOrganizationSettings((com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SOURCE: - serviceImpl.getSource((com.google.cloud.securitycenter.v1beta1.GetSourceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GROUP_ASSETS: - serviceImpl.groupAssets((com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GROUP_FINDINGS: - serviceImpl.groupFindings((com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ASSETS: - serviceImpl.listAssets((com.google.cloud.securitycenter.v1beta1.ListAssetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FINDINGS: - serviceImpl.listFindings((com.google.cloud.securitycenter.v1beta1.ListFindingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SOURCES: - serviceImpl.listSources((com.google.cloud.securitycenter.v1beta1.ListSourcesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RUN_ASSET_DISCOVERY: - serviceImpl.runAssetDiscovery((com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_FINDING_STATE: - serviceImpl.setFindingState((com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_FINDING: - serviceImpl.updateFinding((com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_ORGANIZATION_SETTINGS: - serviceImpl.updateOrganizationSettings((com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SOURCE: - serviceImpl.updateSource((com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SECURITY_MARKS: - serviceImpl.updateSecurityMarks((com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class SecurityCenterBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SecurityCenterBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SecurityCenter"); - } - } - - private static final class SecurityCenterFileDescriptorSupplier - extends SecurityCenterBaseDescriptorSupplier { - SecurityCenterFileDescriptorSupplier() {} - } - - private static final class SecurityCenterMethodDescriptorSupplier - extends SecurityCenterBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SecurityCenterMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SecurityCenterGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SecurityCenterFileDescriptorSupplier()) - .addMethod(getCreateSourceMethod()) - .addMethod(getCreateFindingMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getGetOrganizationSettingsMethod()) - .addMethod(getGetSourceMethod()) - .addMethod(getGroupAssetsMethod()) - .addMethod(getGroupFindingsMethod()) - .addMethod(getListAssetsMethod()) - .addMethod(getListFindingsMethod()) - .addMethod(getListSourcesMethod()) - .addMethod(getRunAssetDiscoveryMethod()) - .addMethod(getSetFindingStateMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .addMethod(getUpdateFindingMethod()) - .addMethod(getUpdateOrganizationSettingsMethod()) - .addMethod(getUpdateSourceMethod()) - .addMethod(getUpdateSecurityMarksMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java deleted file mode 100644 index ce17423cd..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java +++ /dev/null @@ -1,114 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1beta1/asset.proto - -package com.google.cloud.securitycenter.v1beta1; - -public final class AssetOuterClass { - private AssetOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_Asset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n/google/cloud/securitycenter/v1beta1/as" + - "set.proto\022#google.cloud.securitycenter.v" + - "1beta1\032\037google/api/field_behavior.proto\032" + - "\031google/api/resource.proto\0328google/cloud" + - "/securitycenter/v1beta1/security_marks.p" + - "roto\032\034google/protobuf/struct.proto\032\037goog" + - "le/protobuf/timestamp.proto\032\034google/api/" + - "annotations.proto\"\323\005\n\005Asset\022\014\n\004name\030\001 \001(" + - "\t\022g\n\032security_center_properties\030\002 \001(\0132C." + - "google.cloud.securitycenter.v1beta1.Asse" + - "t.SecurityCenterProperties\022_\n\023resource_p" + - "roperties\030\007 \003(\0132B.google.cloud.securityc" + - "enter.v1beta1.Asset.ResourcePropertiesEn" + - "try\022J\n\016security_marks\030\010 \001(\01322.google.clo" + - "ud.securitycenter.v1beta1.SecurityMarks\022" + - "/\n\013create_time\030\t \001(\0132\032.google.protobuf.T" + - "imestamp\022/\n\013update_time\030\n \001(\0132\032.google.p" + - "rotobuf.Timestamp\032\231\001\n\030SecurityCenterProp" + - "erties\022\032\n\rresource_name\030\001 \001(\tB\003\340A\005\022\025\n\rre" + - "source_type\030\002 \001(\t\022\027\n\017resource_parent\030\003 \001" + - "(\t\022\030\n\020resource_project\030\004 \001(\t\022\027\n\017resource" + - "_owners\030\005 \003(\t\032Q\n\027ResourcePropertiesEntry" + - "\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pr" + - "otobuf.Value:\0028\001:U\352AR\n#securitycenter.go" + - "ogleapis.com/Asset\022+organizations/{organ" + - "ization}/assets/{asset}B~\n\'com.google.cl" + - "oud.securitycenter.v1beta1P\001ZQgoogle.gol" + - "ang.org/genproto/googleapis/cloud/securi" + - "tycenter/v1beta1;securitycenterb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1beta1_Asset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor, - new java.lang.String[] { "Name", "SecurityCenterProperties", "ResourceProperties", "SecurityMarks", "CreateTime", "UpdateTime", }); - internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor = - internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor, - new java.lang.String[] { "ResourceName", "ResourceType", "ResourceParent", "ResourceProject", "ResourceOwners", }); - internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_descriptor = - internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java deleted file mode 100644 index 9c7ffdb94..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java +++ /dev/null @@ -1,103 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1beta1/finding.proto - -package com.google.cloud.securitycenter.v1beta1; - -public final class FindingOuterClass { - private FindingOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_Finding_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/securitycenter/v1beta1/fi" + - "nding.proto\022#google.cloud.securitycenter" + - ".v1beta1\032\034google/api/annotations.proto\032\037" + - "google/api/field_behavior.proto\032\031google/" + - "api/resource.proto\0328google/cloud/securit" + - "ycenter/v1beta1/security_marks.proto\032\034go" + - "ogle/protobuf/struct.proto\032\037google/proto" + - "buf/timestamp.proto\"\270\005\n\007Finding\022\014\n\004name\030" + - "\001 \001(\t\022\023\n\006parent\030\002 \001(\tB\003\340A\005\022\025\n\rresource_n" + - "ame\030\003 \001(\t\022A\n\005state\030\004 \001(\01622.google.cloud." + - "securitycenter.v1beta1.Finding.State\022\020\n\010" + - "category\030\005 \001(\t\022\024\n\014external_uri\030\006 \001(\t\022]\n\021" + - "source_properties\030\007 \003(\0132B.google.cloud.s" + - "ecuritycenter.v1beta1.Finding.SourceProp" + - "ertiesEntry\022O\n\016security_marks\030\010 \001(\01322.go" + - "ogle.cloud.securitycenter.v1beta1.Securi" + - "tyMarksB\003\340A\003\022.\n\nevent_time\030\t \001(\0132\032.googl" + - "e.protobuf.Timestamp\022/\n\013create_time\030\n \001(" + - "\0132\032.google.protobuf.Timestamp\032O\n\025SourceP" + - "ropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001" + - "(\0132\026.google.protobuf.Value:\0028\001\"8\n\005State\022" + - "\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010IN" + - "ACTIVE\020\002:l\352Ai\n%securitycenter.googleapis" + - ".com/Finding\022@organizations/{organizatio" + - "n}/sources/{source}/findings/{finding}B~" + - "\n\'com.google.cloud.securitycenter.v1beta" + - "1P\001ZQgoogle.golang.org/genproto/googleap" + - "is/cloud/securitycenter/v1beta1;security" + - "centerb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1beta1_Finding_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor, - new java.lang.String[] { "Name", "Parent", "ResourceName", "State", "Category", "ExternalUri", "SourceProperties", "SecurityMarks", "EventTime", "CreateTime", }); - internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_descriptor = - internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java deleted file mode 100644 index b65dc8b6b..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1beta1; - -public interface GetOrganizationSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the organization to get organization settings for. Its format is
-   * "organizations/[organization_id]/organizationSettings".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the organization to get organization settings for. Its format is
-   * "organizations/[organization_id]/organizationSettings".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java deleted file mode 100644 index 6648e12aa..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1beta1; - -public interface GetSourceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.GetSourceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Relative resource name of the source. Its format is
-   * "organizations/[organization_id]/source/[source_id]".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Relative resource name of the source. Its format is
-   * "organizations/[organization_id]/source/[source_id]".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java deleted file mode 100644 index 90aa8d111..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java +++ /dev/null @@ -1,86 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1beta1/organization_settings.proto - -package com.google.cloud.securitycenter.v1beta1; - -public final class OrganizationSettingsOuterClass { - private OrganizationSettingsOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n?google/cloud/securitycenter/v1beta1/or" + - "ganization_settings.proto\022#google.cloud." + - "securitycenter.v1beta1\032\031google/api/resou" + - "rce.proto\032\034google/api/annotations.proto\"" + - "\224\004\n\024OrganizationSettings\022\014\n\004name\030\001 \001(\t\022\036" + - "\n\026enable_asset_discovery\030\002 \001(\010\022n\n\026asset_" + - "discovery_config\030\003 \001(\0132N.google.cloud.se" + - "curitycenter.v1beta1.OrganizationSetting" + - "s.AssetDiscoveryConfig\032\361\001\n\024AssetDiscover" + - "yConfig\022\023\n\013project_ids\030\001 \003(\t\022t\n\016inclusio" + - "n_mode\030\002 \001(\0162\\.google.cloud.securitycent" + - "er.v1beta1.OrganizationSettings.AssetDis" + - "coveryConfig.InclusionMode\"N\n\rInclusionM" + - "ode\022\036\n\032INCLUSION_MODE_UNSPECIFIED\020\000\022\020\n\014I" + - "NCLUDE_ONLY\020\001\022\013\n\007EXCLUDE\020\002:j\352Ag\n2securit" + - "ycenter.googleapis.com/OrganizationSetti" + - "ngs\0221organizations/{organization}/organi" + - "zationSettingsB~\n\'com.google.cloud.secur" + - "itycenter.v1beta1P\001ZQgoogle.golang.org/g" + - "enproto/googleapis/cloud/securitycenter/" + - "v1beta1;securitycenterb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor, - new java.lang.String[] { "Name", "EnableAssetDiscovery", "AssetDiscoveryConfig", }); - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor = - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor, - new java.lang.String[] { "ProjectIds", "InclusionMode", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java deleted file mode 100644 index 50ed85564..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1beta1; - -public interface RunAssetDiscoveryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the organization to run asset discovery for. Its format is
-   * "organizations/[organization_id]".
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Name of the organization to run asset discovery for. Its format is
-   * "organizations/[organization_id]".
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOuterClass.java deleted file mode 100644 index 31e5906af..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOuterClass.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto - -package com.google.cloud.securitycenter.v1beta1; - -public final class RunAssetDiscoveryResponseOuterClass { - private RunAssetDiscoveryResponseOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nFgoogle/cloud/securitycenter/v1beta1/ru" + - "n_asset_discovery_response.proto\022#google" + - ".cloud.securitycenter.v1beta1\032\036google/pr" + - "otobuf/duration.proto\032\034google/api/annota" + - "tions.proto\"\354\001\n\031RunAssetDiscoveryRespons" + - "e\022S\n\005state\030\001 \001(\0162D.google.cloud.security" + - "center.v1beta1.RunAssetDiscoveryResponse" + - ".State\022+\n\010duration\030\002 \001(\0132\031.google.protob" + - "uf.Duration\"M\n\005State\022\025\n\021STATE_UNSPECIFIE" + - "D\020\000\022\r\n\tCOMPLETED\020\001\022\016\n\nSUPERSEDED\020\002\022\016\n\nTE" + - "RMINATED\020\003B~\n\'com.google.cloud.securityc" + - "enter.v1beta1P\001ZQgoogle.golang.org/genpr" + - "oto/googleapis/cloud/securitycenter/v1be" + - "ta1;securitycenterb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DurationProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor, - new java.lang.String[] { "State", "Duration", }); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java deleted file mode 100644 index 6923ef366..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java +++ /dev/null @@ -1,81 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1beta1/security_marks.proto - -package com.google.cloud.securitycenter.v1beta1; - -public final class SecurityMarksOuterClass { - private SecurityMarksOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/securitycenter/v1beta1/se" + - "curity_marks.proto\022#google.cloud.securit" + - "ycenter.v1beta1\032\031google/api/resource.pro" + - "to\032\034google/api/annotations.proto\"\330\002\n\rSec" + - "urityMarks\022\014\n\004name\030\001 \001(\t\022L\n\005marks\030\002 \003(\0132" + - "=.google.cloud.securitycenter.v1beta1.Se" + - "curityMarks.MarksEntry\032,\n\nMarksEntry\022\013\n\003" + - "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\274\001\352A\270\001\n+sec" + - "uritycenter.googleapis.com/SecurityMarks" + - "\0229organizations/{organization}/assets/{a" + - "sset}/securityMarks\022Norganizations/{orga" + - "nization}/sources/{source}/findings/{fin" + - "ding}/securityMarksB~\n\'com.google.cloud." + - "securitycenter.v1beta1P\001ZQgoogle.golang." + - "org/genproto/googleapis/cloud/securityce" + - "nter/v1beta1;securitycenterb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor, - new java.lang.String[] { "Name", "Marks", }); - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_descriptor = - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java b/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java deleted file mode 100644 index b1013b358..000000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java +++ /dev/null @@ -1,554 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1beta1; - -public final class SecuritycenterService { - private SecuritycenterService() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_GroupResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_GroupResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_GroupResult_PropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_GroupResult_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n@google/cloud/securitycenter/v1beta1/se" + - "curitycenter_service.proto\022#google.cloud" + - ".securitycenter.v1beta1\032\034google/api/anno" + - "tations.proto\032\027google/api/client.proto\032\037" + - "google/api/field_behavior.proto\032\031google/" + - "api/resource.proto\032/google/cloud/securit" + - "ycenter/v1beta1/asset.proto\0321google/clou" + - "d/securitycenter/v1beta1/finding.proto\032?" + - "google/cloud/securitycenter/v1beta1/orga" + - "nization_settings.proto\0328google/cloud/se" + - "curitycenter/v1beta1/security_marks.prot" + - "o\0320google/cloud/securitycenter/v1beta1/s" + - "ource.proto\032\036google/iam/v1/iam_policy.pr" + - "oto\032\032google/iam/v1/policy.proto\032#google/" + - "longrunning/operations.proto\032\036google/pro" + - "tobuf/duration.proto\032\033google/protobuf/em" + - "pty.proto\032 google/protobuf/field_mask.pr" + - "oto\032\034google/protobuf/struct.proto\032\037googl" + - "e/protobuf/timestamp.proto\"\261\001\n\024CreateFin" + - "dingRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$sec" + - "uritycenter.googleapis.com/Source\022\027\n\nfin" + - "ding_id\030\002 \001(\tB\003\340A\002\022B\n\007finding\030\003 \001(\0132,.go" + - "ogle.cloud.securitycenter.v1beta1.Findin" + - "gB\003\340A\002\"\241\001\n\023CreateSourceRequest\022H\n\006parent" + - "\030\001 \001(\tB8\340A\002\372A2\n0cloudresourcemanager.goo" + - "gleapis.com/Organization\022@\n\006source\030\002 \001(\013" + - "2+.google.cloud.securitycenter.v1beta1.S" + - "ourceB\003\340A\002\"j\n\036GetOrganizationSettingsReq" + - "uest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2securitycent" + - "er.googleapis.com/OrganizationSettings\"N" + - "\n\020GetSourceRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&" + - "\n$securitycenter.googleapis.com/Source\"\220" + - "\002\n\022GroupAssetsRequest\022H\n\006parent\030\001 \001(\tB8\340" + - "A\002\372A2\n0cloudresourcemanager.googleapis.c" + - "om/Organization\022\016\n\006filter\030\002 \001(\t\022\025\n\010group" + - "_by\030\003 \001(\tB\003\340A\002\0223\n\020compare_duration\030\004 \001(\013" + - "2\031.google.protobuf.Duration\022-\n\tread_time" + - "\030\005 \001(\0132\032.google.protobuf.Timestamp\022\022\n\npa" + - "ge_token\030\007 \001(\t\022\021\n\tpage_size\030\010 \001(\005\"\251\001\n\023Gr" + - "oupAssetsResponse\022J\n\020group_by_results\030\001 " + - "\003(\01320.google.cloud.securitycenter.v1beta" + - "1.GroupResult\022-\n\tread_time\030\002 \001(\0132\032.googl" + - "e.protobuf.Timestamp\022\027\n\017next_page_token\030" + - "\003 \001(\t\"\321\001\n\024GroupFindingsRequest\022<\n\006parent" + - "\030\001 \001(\tB,\340A\002\372A&\n$securitycenter.googleapi" + - "s.com/Source\022\016\n\006filter\030\002 \001(\t\022\025\n\010group_by" + - "\030\003 \001(\tB\003\340A\002\022-\n\tread_time\030\004 \001(\0132\032.google." + - "protobuf.Timestamp\022\022\n\npage_token\030\005 \001(\t\022\021" + - "\n\tpage_size\030\006 \001(\005\"\253\001\n\025GroupFindingsRespo" + - "nse\022J\n\020group_by_results\030\001 \003(\01320.google.c" + - "loud.securitycenter.v1beta1.GroupResult\022" + - "-\n\tread_time\030\002 \001(\0132\032.google.protobuf.Tim" + - "estamp\022\027\n\017next_page_token\030\003 \001(\t\"\275\001\n\013Grou" + - "pResult\022T\n\nproperties\030\001 \003(\0132@.google.clo" + - "ud.securitycenter.v1beta1.GroupResult.Pr" + - "opertiesEntry\022\r\n\005count\030\002 \001(\003\032I\n\017Properti" + - "esEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.go" + - "ogle.protobuf.Value:\0028\001\"\205\001\n\022ListSourcesR" + - "equest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0cloudres" + - "ourcemanager.googleapis.com/Organization" + - "\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\007 \001(\005\"" + - "l\n\023ListSourcesResponse\022<\n\007sources\030\001 \003(\0132" + - "+.google.cloud.securitycenter.v1beta1.So" + - "urce\022\027\n\017next_page_token\030\002 \001(\t\"\277\002\n\021ListAs" + - "setsRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0clo" + - "udresourcemanager.googleapis.com/Organiz" + - "ation\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022" + - "-\n\tread_time\030\004 \001(\0132\032.google.protobuf.Tim" + - "estamp\0223\n\020compare_duration\030\005 \001(\0132\031.googl" + - "e.protobuf.Duration\0223\n\nfield_mask\030\007 \001(\0132" + - "\032.google.protobuf.FieldMaskB\003\340A\001\022\022\n\npage" + - "_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"\326\003\n\022List" + - "AssetsResponse\022e\n\023list_assets_results\030\001 " + - "\003(\0132H.google.cloud.securitycenter.v1beta" + - "1.ListAssetsResponse.ListAssetsResult\022-\n" + - "\tread_time\030\002 \001(\0132\032.google.protobuf.Times" + - "tamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_s" + - "ize\030\004 \001(\005\032\374\001\n\020ListAssetsResult\0229\n\005asset\030" + - "\001 \001(\0132*.google.cloud.securitycenter.v1be" + - "ta1.Asset\022]\n\005state\030\002 \001(\0162N.google.cloud." + - "securitycenter.v1beta1.ListAssetsRespons" + - "e.ListAssetsResult.State\"N\n\005State\022\025\n\021STA" + - "TE_UNSPECIFIED\020\000\022\n\n\006UNUSED\020\001\022\t\n\005ADDED\020\002\022" + - "\013\n\007REMOVED\020\003\022\n\n\006ACTIVE\020\004\"\200\002\n\023ListFinding" + - "sRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$securi" + - "tycenter.googleapis.com/Source\022\016\n\006filter" + - "\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\tread_time\030\004 " + - "\001(\0132\032.google.protobuf.Timestamp\0223\n\nfield" + - "_mask\030\005 \001(\0132\032.google.protobuf.FieldMaskB" + - "\003\340A\001\022\022\n\npage_token\030\006 \001(\t\022\021\n\tpage_size\030\007 " + - "\001(\005\"\262\001\n\024ListFindingsResponse\022>\n\010findings" + - "\030\001 \003(\0132,.google.cloud.securitycenter.v1b" + - "eta1.Finding\022-\n\tread_time\030\002 \001(\0132\032.google" + - ".protobuf.Timestamp\022\027\n\017next_page_token\030\003" + - " \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\322\001\n\026SetFindingS" + - "tateRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%secur" + - "itycenter.googleapis.com/Finding\022F\n\005stat" + - "e\030\002 \001(\01622.google.cloud.securitycenter.v1" + - "beta1.Finding.StateB\003\340A\002\0223\n\nstart_time\030\003" + - " \001(\0132\032.google.protobuf.TimestampB\003\340A\002\"d\n" + - "\030RunAssetDiscoveryRequest\022H\n\006parent\030\001 \001(" + - "\tB8\340A\002\372A2\n0cloudresourcemanager.googleap" + - "is.com/Organization\"\213\001\n\024UpdateFindingReq" + - "uest\022B\n\007finding\030\001 \001(\0132,.google.cloud.sec" + - "uritycenter.v1beta1.FindingB\003\340A\002\022/\n\013upda" + - "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + - "k\"\263\001\n!UpdateOrganizationSettingsRequest\022" + - "]\n\025organization_settings\030\001 \001(\01329.google." + - "cloud.securitycenter.v1beta1.Organizatio" + - "nSettingsB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.go" + - "ogle.protobuf.FieldMask\"\210\001\n\023UpdateSource" + - "Request\022@\n\006source\030\001 \001(\0132+.google.cloud.s" + - "ecuritycenter.v1beta1.SourceB\003\340A\002\022/\n\013upd" + - "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + - "sk\"\316\001\n\032UpdateSecurityMarksRequest\022O\n\016sec" + - "urity_marks\030\001 \001(\01322.google.cloud.securit" + - "ycenter.v1beta1.SecurityMarksB\003\340A\002\022/\n\013up" + - "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + - "ask\022.\n\nstart_time\030\003 \001(\0132\032.google.protobu" + - "f.Timestamp2\353\036\n\016SecurityCenter\022\300\001\n\014Creat" + - "eSource\0228.google.cloud.securitycenter.v1" + - "beta1.CreateSourceRequest\032+.google.cloud" + - ".securitycenter.v1beta1.Source\"I\202\323\344\223\0023\")" + - "/v1beta1/{parent=organizations/*}/source" + - "s:\006source\332A\rparent,source\022\333\001\n\rCreateFind" + - "ing\0229.google.cloud.securitycenter.v1beta" + - "1.CreateFindingRequest\032,.google.cloud.se" + - "curitycenter.v1beta1.Finding\"a\202\323\344\223\002?\"4/v" + - "1beta1/{parent=organizations/*/sources/*" + - "}/findings:\007finding\332A\031parent,finding_id," + - "finding\022\233\001\n\014GetIamPolicy\022\".google.iam.v1" + - ".GetIamPolicyRequest\032\025.google.iam.v1.Pol" + - "icy\"P\202\323\344\223\002?\":/v1beta1/{resource=organiza" + - "tions/*/sources/*}:getIamPolicy:\001*\332A\010res" + - "ource\022\336\001\n\027GetOrganizationSettings\022C.goog" + - "le.cloud.securitycenter.v1beta1.GetOrgan" + - "izationSettingsRequest\0329.google.cloud.se" + - "curitycenter.v1beta1.OrganizationSetting" + - "s\"C\202\323\344\223\0026\0224/v1beta1/{name=organizations/" + - "*/organizationSettings}\332A\004name\022\251\001\n\tGetSo" + - "urce\0225.google.cloud.securitycenter.v1bet" + - "a1.GetSourceRequest\032+.google.cloud.secur" + - "itycenter.v1beta1.Source\"8\202\323\344\223\002+\022)/v1bet" + - "a1/{name=organizations/*/sources/*}\332A\004na" + - "me\022\273\001\n\013GroupAssets\0227.google.cloud.securi" + - "tycenter.v1beta1.GroupAssetsRequest\0328.go" + - "ogle.cloud.securitycenter.v1beta1.GroupA" + - "ssetsResponse\"9\202\323\344\223\0023\"./v1beta1/{parent=" + - "organizations/*}/assets:group:\001*\022\337\001\n\rGro" + - "upFindings\0229.google.cloud.securitycenter" + - ".v1beta1.GroupFindingsRequest\032:.google.c" + - "loud.securitycenter.v1beta1.GroupFinding" + - "sResponse\"W\202\323\344\223\002?\":/v1beta1/{parent=orga" + - "nizations/*/sources/*}/findings:group:\001*" + - "\332A\017parent,group_by\022\257\001\n\nListAssets\0226.goog" + - "le.cloud.securitycenter.v1beta1.ListAsse" + - "tsRequest\0327.google.cloud.securitycenter." + - "v1beta1.ListAssetsResponse\"0\202\323\344\223\002*\022(/v1b" + - "eta1/{parent=organizations/*}/assets\022\301\001\n" + - "\014ListFindings\0228.google.cloud.securitycen" + - "ter.v1beta1.ListFindingsRequest\0329.google" + - ".cloud.securitycenter.v1beta1.ListFindin" + - "gsResponse\"<\202\323\344\223\0026\0224/v1beta1/{parent=org" + - "anizations/*/sources/*}/findings\022\274\001\n\013Lis" + - "tSources\0227.google.cloud.securitycenter.v" + - "1beta1.ListSourcesRequest\0328.google.cloud" + - ".securitycenter.v1beta1.ListSourcesRespo" + - "nse\":\202\323\344\223\002+\022)/v1beta1/{parent=organizati" + - "ons/*}/sources\332A\006parent\022\355\001\n\021RunAssetDisc" + - "overy\022=.google.cloud.securitycenter.v1be" + - "ta1.RunAssetDiscoveryRequest\032\035.google.lo" + - "ngrunning.Operation\"z\202\323\344\223\002:\"5/v1beta1/{p" + - "arent=organizations/*}/assets:runDiscove" + - "ry:\001*\332A\006parent\312A.\n\025google.protobuf.Empty" + - "\022\025google.protobuf.Empty\022\336\001\n\017SetFindingSt" + - "ate\022;.google.cloud.securitycenter.v1beta" + - "1.SetFindingStateRequest\032,.google.cloud." + - "securitycenter.v1beta1.Finding\"`\202\323\344\223\002B\"=" + - "/v1beta1/{name=organizations/*/sources/*" + - "/findings/*}:setState:\001*\332A\025name,state,st" + - "art_time\022\242\001\n\014SetIamPolicy\022\".google.iam.v" + - "1.SetIamPolicyRequest\032\025.google.iam.v1.Po" + - "licy\"W\202\323\344\223\002?\":/v1beta1/{resource=organiz" + - "ations/*/sources/*}:setIamPolicy:\001*\332A\017re" + - "source,policy\022\315\001\n\022TestIamPermissions\022(.g" + - "oogle.iam.v1.TestIamPermissionsRequest\032)" + - ".google.iam.v1.TestIamPermissionsRespons" + - "e\"b\202\323\344\223\002E\"@/v1beta1/{resource=organizati" + - "ons/*/sources/*}:testIamPermissions:\001*\332A" + - "\024resource,permissions\022\321\001\n\rUpdateFinding\022" + - "9.google.cloud.securitycenter.v1beta1.Up" + - "dateFindingRequest\032,.google.cloud.securi" + - "tycenter.v1beta1.Finding\"W\202\323\344\223\002G2 - * V1p1Beta1 APIs for Security Center service. - *
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SecurityCenterGrpc { - - private SecurityCenterGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.securitycenter.v1p1beta1.SecurityCenter"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateSourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSource", - requestType = com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.Source.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSourceMethod() { - io.grpc.MethodDescriptor getCreateSourceMethod; - if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getCreateSourceMethod = SecurityCenterGrpc.getCreateSourceMethod) == null) { - SecurityCenterGrpc.getCreateSourceMethod = getCreateSourceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("CreateSource")) - .build(); - } - } - } - return getCreateSourceMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFinding", - requestType = com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateFindingMethod() { - io.grpc.MethodDescriptor getCreateFindingMethod; - if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getCreateFindingMethod = SecurityCenterGrpc.getCreateFindingMethod) == null) { - SecurityCenterGrpc.getCreateFindingMethod = getCreateFindingMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("CreateFinding")) - .build(); - } - } - } - return getCreateFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateNotificationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateNotificationConfig", - requestType = com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateNotificationConfigMethod() { - io.grpc.MethodDescriptor getCreateNotificationConfigMethod; - if ((getCreateNotificationConfigMethod = SecurityCenterGrpc.getCreateNotificationConfigMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getCreateNotificationConfigMethod = SecurityCenterGrpc.getCreateNotificationConfigMethod) == null) { - SecurityCenterGrpc.getCreateNotificationConfigMethod = getCreateNotificationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNotificationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("CreateNotificationConfig")) - .build(); - } - } - } - return getCreateNotificationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteNotificationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteNotificationConfig", - requestType = com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteNotificationConfigMethod() { - io.grpc.MethodDescriptor getDeleteNotificationConfigMethod; - if ((getDeleteNotificationConfigMethod = SecurityCenterGrpc.getDeleteNotificationConfigMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getDeleteNotificationConfigMethod = SecurityCenterGrpc.getDeleteNotificationConfigMethod) == null) { - SecurityCenterGrpc.getDeleteNotificationConfigMethod = getDeleteNotificationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNotificationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("DeleteNotificationConfig")) - .build(); - } - } - } - return getDeleteNotificationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { - io.grpc.MethodDescriptor getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetIamPolicyMethod = SecurityCenterGrpc.getGetIamPolicyMethod) == null) { - SecurityCenterGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNotificationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNotificationConfig", - requestType = com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNotificationConfigMethod() { - io.grpc.MethodDescriptor getGetNotificationConfigMethod; - if ((getGetNotificationConfigMethod = SecurityCenterGrpc.getGetNotificationConfigMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetNotificationConfigMethod = SecurityCenterGrpc.getGetNotificationConfigMethod) == null) { - SecurityCenterGrpc.getGetNotificationConfigMethod = getGetNotificationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNotificationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetNotificationConfig")) - .build(); - } - } - } - return getGetNotificationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetOrganizationSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetOrganizationSettings", - requestType = com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetOrganizationSettingsMethod() { - io.grpc.MethodDescriptor getGetOrganizationSettingsMethod; - if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetOrganizationSettingsMethod = SecurityCenterGrpc.getGetOrganizationSettingsMethod) == null) { - SecurityCenterGrpc.getGetOrganizationSettingsMethod = getGetOrganizationSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOrganizationSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetOrganizationSettings")) - .build(); - } - } - } - return getGetOrganizationSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSource", - requestType = com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.Source.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSourceMethod() { - io.grpc.MethodDescriptor getGetSourceMethod; - if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGetSourceMethod = SecurityCenterGrpc.getGetSourceMethod) == null) { - SecurityCenterGrpc.getGetSourceMethod = getGetSourceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GetSource")) - .build(); - } - } - } - return getGetSourceMethod; - } - - private static volatile io.grpc.MethodDescriptor getGroupAssetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GroupAssets", - requestType = com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGroupAssetsMethod() { - io.grpc.MethodDescriptor getGroupAssetsMethod; - if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGroupAssetsMethod = SecurityCenterGrpc.getGroupAssetsMethod) == null) { - SecurityCenterGrpc.getGroupAssetsMethod = getGroupAssetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GroupAssets")) - .build(); - } - } - } - return getGroupAssetsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGroupFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GroupFindings", - requestType = com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGroupFindingsMethod() { - io.grpc.MethodDescriptor getGroupFindingsMethod; - if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getGroupFindingsMethod = SecurityCenterGrpc.getGroupFindingsMethod) == null) { - SecurityCenterGrpc.getGroupFindingsMethod = getGroupFindingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GroupFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("GroupFindings")) - .build(); - } - } - } - return getGroupFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListAssetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAssets", - requestType = com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListAssetsMethod() { - io.grpc.MethodDescriptor getListAssetsMethod; - if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListAssetsMethod = SecurityCenterGrpc.getListAssetsMethod) == null) { - SecurityCenterGrpc.getListAssetsMethod = getListAssetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListAssets")) - .build(); - } - } - } - return getListAssetsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindings", - requestType = com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFindingsMethod() { - io.grpc.MethodDescriptor getListFindingsMethod; - if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListFindingsMethod = SecurityCenterGrpc.getListFindingsMethod) == null) { - SecurityCenterGrpc.getListFindingsMethod = getListFindingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListFindings")) - .build(); - } - } - } - return getListFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListNotificationConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNotificationConfigs", - requestType = com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListNotificationConfigsMethod() { - io.grpc.MethodDescriptor getListNotificationConfigsMethod; - if ((getListNotificationConfigsMethod = SecurityCenterGrpc.getListNotificationConfigsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListNotificationConfigsMethod = SecurityCenterGrpc.getListNotificationConfigsMethod) == null) { - SecurityCenterGrpc.getListNotificationConfigsMethod = getListNotificationConfigsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNotificationConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListNotificationConfigs")) - .build(); - } - } - } - return getListNotificationConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSourcesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSources", - requestType = com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSourcesMethod() { - io.grpc.MethodDescriptor getListSourcesMethod; - if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getListSourcesMethod = SecurityCenterGrpc.getListSourcesMethod) == null) { - SecurityCenterGrpc.getListSourcesMethod = getListSourcesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSources")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("ListSources")) - .build(); - } - } - } - return getListSourcesMethod; - } - - private static volatile io.grpc.MethodDescriptor getRunAssetDiscoveryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RunAssetDiscovery", - requestType = com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRunAssetDiscoveryMethod() { - io.grpc.MethodDescriptor getRunAssetDiscoveryMethod; - if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getRunAssetDiscoveryMethod = SecurityCenterGrpc.getRunAssetDiscoveryMethod) == null) { - SecurityCenterGrpc.getRunAssetDiscoveryMethod = getRunAssetDiscoveryMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunAssetDiscovery")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("RunAssetDiscovery")) - .build(); - } - } - } - return getRunAssetDiscoveryMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetFindingStateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetFindingState", - requestType = com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetFindingStateMethod() { - io.grpc.MethodDescriptor getSetFindingStateMethod; - if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getSetFindingStateMethod = SecurityCenterGrpc.getSetFindingStateMethod) == null) { - SecurityCenterGrpc.getSetFindingStateMethod = getSetFindingStateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetFindingState")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("SetFindingState")) - .build(); - } - } - } - return getSetFindingStateMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { - io.grpc.MethodDescriptor getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getSetIamPolicyMethod = SecurityCenterGrpc.getSetIamPolicyMethod) == null) { - SecurityCenterGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getTestIamPermissionsMethod = SecurityCenterGrpc.getTestIamPermissionsMethod) == null) { - SecurityCenterGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFinding", - requestType = com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateFindingMethod() { - io.grpc.MethodDescriptor getUpdateFindingMethod; - if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateFindingMethod = SecurityCenterGrpc.getUpdateFindingMethod) == null) { - SecurityCenterGrpc.getUpdateFindingMethod = getUpdateFindingMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateFinding")) - .build(); - } - } - } - return getUpdateFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateNotificationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNotificationConfig", - requestType = com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateNotificationConfigMethod() { - io.grpc.MethodDescriptor getUpdateNotificationConfigMethod; - if ((getUpdateNotificationConfigMethod = SecurityCenterGrpc.getUpdateNotificationConfigMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateNotificationConfigMethod = SecurityCenterGrpc.getUpdateNotificationConfigMethod) == null) { - SecurityCenterGrpc.getUpdateNotificationConfigMethod = getUpdateNotificationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNotificationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateNotificationConfig")) - .build(); - } - } - } - return getUpdateNotificationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateOrganizationSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateOrganizationSettings", - requestType = com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateOrganizationSettingsMethod() { - io.grpc.MethodDescriptor getUpdateOrganizationSettingsMethod; - if ((getUpdateOrganizationSettingsMethod = SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateOrganizationSettingsMethod = SecurityCenterGrpc.getUpdateOrganizationSettingsMethod) == null) { - SecurityCenterGrpc.getUpdateOrganizationSettingsMethod = getUpdateOrganizationSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateOrganizationSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateOrganizationSettings")) - .build(); - } - } - } - return getUpdateOrganizationSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSourceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSource", - requestType = com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.Source.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSourceMethod() { - io.grpc.MethodDescriptor getUpdateSourceMethod; - if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateSourceMethod = SecurityCenterGrpc.getUpdateSourceMethod) == null) { - SecurityCenterGrpc.getUpdateSourceMethod = getUpdateSourceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSource")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateSource")) - .build(); - } - } - } - return getUpdateSourceMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSecurityMarksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSecurityMarks", - requestType = com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.class, - responseType = com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSecurityMarksMethod() { - io.grpc.MethodDescriptor getUpdateSecurityMarksMethod; - if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) == null) { - synchronized (SecurityCenterGrpc.class) { - if ((getUpdateSecurityMarksMethod = SecurityCenterGrpc.getUpdateSecurityMarksMethod) == null) { - SecurityCenterGrpc.getUpdateSecurityMarksMethod = getUpdateSecurityMarksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSecurityMarks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance())) - .setSchemaDescriptor(new SecurityCenterMethodDescriptorSupplier("UpdateSecurityMarks")) - .build(); - } - } - } - return getUpdateSecurityMarksMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static SecurityCenterStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterStub(channel, callOptions); - } - }; - return SecurityCenterStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SecurityCenterBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterBlockingStub(channel, callOptions); - } - }; - return SecurityCenterBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static SecurityCenterFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SecurityCenterFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterFutureStub(channel, callOptions); - } - }; - return SecurityCenterFutureStub.newStub(factory, channel); - } - - /** - *
-   * V1p1Beta1 APIs for Security Center service.
-   * 
- */ - public static abstract class SecurityCenterImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a source.
-     * 
- */ - public void createSource(com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSourceMethod(), responseObserver); - } - - /** - *
-     * Creates a finding. The corresponding source must exist for finding
-     * creation to succeed.
-     * 
- */ - public void createFinding(com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFindingMethod(), responseObserver); - } - - /** - *
-     * Creates a notification config.
-     * 
- */ - public void createNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNotificationConfigMethod(), responseObserver); - } - - /** - *
-     * Deletes a notification config.
-     * 
- */ - public void deleteNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNotificationConfigMethod(), responseObserver); - } - - /** - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Gets a notification config.
-     * 
- */ - public void getNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNotificationConfigMethod(), responseObserver); - } - - /** - *
-     * Gets the settings for an organization.
-     * 
- */ - public void getOrganizationSettings(com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOrganizationSettingsMethod(), responseObserver); - } - - /** - *
-     * Gets a source.
-     * 
- */ - public void getSource(com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSourceMethod(), responseObserver); - } - - /** - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public void groupAssets(com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGroupAssetsMethod(), responseObserver); - } - - /** - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings,
-     * /v1/folders/{folder_id}/sources/-/findings,
-     * /v1/projects/{project_id}/sources/-/findings
-     * 
- */ - public void groupFindings(com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGroupFindingsMethod(), responseObserver); - } - - /** - *
-     * Lists an organization's assets.
-     * 
- */ - public void listAssets(com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver); - } - - /** - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public void listFindings(com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingsMethod(), responseObserver); - } - - /** - *
-     * Lists notification configs.
-     * 
- */ - public void listNotificationConfigs(com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNotificationConfigsMethod(), responseObserver); - } - - /** - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public void listSources(com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSourcesMethod(), responseObserver); - } - - /** - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public void runAssetDiscovery(com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunAssetDiscoveryMethod(), responseObserver); - } - - /** - *
-     * Updates the state of a finding.
-     * 
- */ - public void setFindingState(com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetFindingStateMethod(), responseObserver); - } - - /** - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); - } - - /** - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public void updateFinding(com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFindingMethod(), responseObserver); - } - - /** - *
-     * Updates a notification config. The following update
-     * fields are allowed: description, pubsub_topic, streaming_config.filter
-     * 
- */ - public void updateNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNotificationConfigMethod(), responseObserver); - } - - /** - *
-     * Updates an organization's settings.
-     * 
- */ - public void updateOrganizationSettings(com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateOrganizationSettingsMethod(), responseObserver); - } - - /** - *
-     * Updates a source.
-     * 
- */ - public void updateSource(com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSourceMethod(), responseObserver); - } - - /** - *
-     * Updates security marks.
-     * 
- */ - public void updateSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSecurityMarksMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateSourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest, - com.google.cloud.securitycenter.v1p1beta1.Source>( - this, METHODID_CREATE_SOURCE))) - .addMethod( - getCreateFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest, - com.google.cloud.securitycenter.v1p1beta1.Finding>( - this, METHODID_CREATE_FINDING))) - .addMethod( - getCreateNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig>( - this, METHODID_CREATE_NOTIFICATION_CONFIG))) - .addMethod( - getDeleteNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_NOTIFICATION_CONFIG))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getGetNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig>( - this, METHODID_GET_NOTIFICATION_CONFIG))) - .addMethod( - getGetOrganizationSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings>( - this, METHODID_GET_ORGANIZATION_SETTINGS))) - .addMethod( - getGetSourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest, - com.google.cloud.securitycenter.v1p1beta1.Source>( - this, METHODID_GET_SOURCE))) - .addMethod( - getGroupAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest, - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse>( - this, METHODID_GROUP_ASSETS))) - .addMethod( - getGroupFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest, - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse>( - this, METHODID_GROUP_FINDINGS))) - .addMethod( - getListAssetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest, - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse>( - this, METHODID_LIST_ASSETS))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest, - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse>( - this, METHODID_LIST_FINDINGS))) - .addMethod( - getListNotificationConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest, - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse>( - this, METHODID_LIST_NOTIFICATION_CONFIGS))) - .addMethod( - getListSourcesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest, - com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse>( - this, METHODID_LIST_SOURCES))) - .addMethod( - getRunAssetDiscoveryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest, - com.google.longrunning.Operation>( - this, METHODID_RUN_ASSET_DISCOVERY))) - .addMethod( - getSetFindingStateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest, - com.google.cloud.securitycenter.v1p1beta1.Finding>( - this, METHODID_SET_FINDING_STATE))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .addMethod( - getUpdateFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest, - com.google.cloud.securitycenter.v1p1beta1.Finding>( - this, METHODID_UPDATE_FINDING))) - .addMethod( - getUpdateNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest, - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig>( - this, METHODID_UPDATE_NOTIFICATION_CONFIG))) - .addMethod( - getUpdateOrganizationSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest, - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings>( - this, METHODID_UPDATE_ORGANIZATION_SETTINGS))) - .addMethod( - getUpdateSourceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest, - com.google.cloud.securitycenter.v1p1beta1.Source>( - this, METHODID_UPDATE_SOURCE))) - .addMethod( - getUpdateSecurityMarksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest, - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks>( - this, METHODID_UPDATE_SECURITY_MARKS))) - .build(); - } - } - - /** - *
-   * V1p1Beta1 APIs for Security Center service.
-   * 
- */ - public static final class SecurityCenterStub extends io.grpc.stub.AbstractAsyncStub { - private SecurityCenterStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterStub(channel, callOptions); - } - - /** - *
-     * Creates a source.
-     * 
- */ - public void createSource(com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSourceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a finding. The corresponding source must exist for finding
-     * creation to succeed.
-     * 
- */ - public void createFinding(com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFindingMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a notification config.
-     * 
- */ - public void createNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a notification config.
-     * 
- */ - public void deleteNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a notification config.
-     * 
- */ - public void getNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the settings for an organization.
-     * 
- */ - public void getOrganizationSettings(com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a source.
-     * 
- */ - public void getSource(com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSourceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public void groupAssets(com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings,
-     * /v1/folders/{folder_id}/sources/-/findings,
-     * /v1/projects/{project_id}/sources/-/findings
-     * 
- */ - public void groupFindings(com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists an organization's assets.
-     * 
- */ - public void listAssets(com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public void listFindings(com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists notification configs.
-     * 
- */ - public void listNotificationConfigs(com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public void listSources(com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSourcesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public void runAssetDiscovery(com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the state of a finding.
-     * 
- */ - public void setFindingState(com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public void updateFinding(com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a notification config. The following update
-     * fields are allowed: description, pubsub_topic, streaming_config.filter
-     * 
- */ - public void updateNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNotificationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an organization's settings.
-     * 
- */ - public void updateOrganizationSettings(com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a source.
-     * 
- */ - public void updateSource(com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates security marks.
-     * 
- */ - public void updateSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * V1p1Beta1 APIs for Security Center service.
-   * 
- */ - public static final class SecurityCenterBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private SecurityCenterBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a source.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.Source createSource(com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSourceMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a finding. The corresponding source must exist for finding
-     * creation to succeed.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.Finding createFinding(com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFindingMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a notification config.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig createNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateNotificationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a notification config.
-     * 
- */ - public com.google.protobuf.Empty deleteNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteNotificationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a notification config.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNotificationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the settings for an organization.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getOrganizationSettings(com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetOrganizationSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a source.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.Source getSource(com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSourceMethod(), getCallOptions(), request); - } - - /** - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse groupAssets(com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGroupAssetsMethod(), getCallOptions(), request); - } - - /** - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings,
-     * /v1/folders/{folder_id}/sources/-/findings,
-     * /v1/projects/{project_id}/sources/-/findings
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse groupFindings(com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGroupFindingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists an organization's assets.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse listAssets(com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAssetsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse listFindings(com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists notification configs.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse listNotificationConfigs(com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNotificationConfigsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse listSources(com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSourcesMethod(), getCallOptions(), request); - } - - /** - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public com.google.longrunning.Operation runAssetDiscovery(com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRunAssetDiscoveryMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the state of a finding.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.Finding setFindingState(com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetFindingStateMethod(), getCallOptions(), request); - } - - /** - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.Finding updateFinding(com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFindingMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a notification config. The following update
-     * fields are allowed: description, pubsub_topic, streaming_config.filter
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig updateNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNotificationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an organization's settings.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings updateOrganizationSettings(com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateOrganizationSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a source.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.Source updateSource(com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSourceMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates security marks.
-     * 
- */ - public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks updateSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSecurityMarksMethod(), getCallOptions(), request); - } - } - - /** - *
-   * V1p1Beta1 APIs for Security Center service.
-   * 
- */ - public static final class SecurityCenterFutureStub extends io.grpc.stub.AbstractFutureStub { - private SecurityCenterFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SecurityCenterFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SecurityCenterFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSource( - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSourceMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a finding. The corresponding source must exist for finding
-     * creation to succeed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createFinding( - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFindingMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a notification config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a notification config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the access control policy on the specified Source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a notification config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the settings for an organization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getOrganizationSettings( - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSource( - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSourceMethod(), getCallOptions()), request); - } - - /** - *
-     * Filters an organization's assets and  groups them by their specified
-     * properties.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture groupAssets( - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGroupAssetsMethod(), getCallOptions()), request); - } - - /** - *
-     * Filters an organization or source's findings and  groups them by their
-     * specified properties.
-     * To group across all sources provide a `-` as the source id.
-     * Example: /v1/organizations/{organization_id}/sources/-/findings,
-     * /v1/folders/{folder_id}/sources/-/findings,
-     * /v1/projects/{project_id}/sources/-/findings
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture groupFindings( - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGroupFindingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists an organization's assets.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listAssets( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAssetsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists an organization or source's findings.
-     * To list across all sources provide a `-` as the source id.
-     * Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listFindings( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists notification configs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listNotificationConfigs( - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists all sources belonging to an organization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSources( - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSourcesMethod(), getCallOptions()), request); - } - - /** - *
-     * Runs asset discovery. The discovery is tracked with a long-running
-     * operation.
-     * This API can only be called with limited frequency for an organization. If
-     * it is called too frequently the caller will receive a TOO_MANY_REQUESTS
-     * error.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture runAssetDiscovery( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRunAssetDiscoveryMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the state of a finding.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setFindingState( - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetFindingStateMethod(), getCallOptions()), request); - } - - /** - *
-     * Sets the access control policy on the specified Source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the permissions that a caller has on the specified source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates or updates a finding. The corresponding source must exist for a
-     * finding creation to succeed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateFinding( - com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFindingMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a notification config. The following update
-     * fields are allowed: description, pubsub_topic, streaming_config.filter
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateNotificationConfig( - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNotificationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an organization's settings.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateOrganizationSettings( - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a source.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateSource( - com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSourceMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates security marks.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateSecurityMarks( - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSecurityMarksMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SOURCE = 0; - private static final int METHODID_CREATE_FINDING = 1; - private static final int METHODID_CREATE_NOTIFICATION_CONFIG = 2; - private static final int METHODID_DELETE_NOTIFICATION_CONFIG = 3; - private static final int METHODID_GET_IAM_POLICY = 4; - private static final int METHODID_GET_NOTIFICATION_CONFIG = 5; - private static final int METHODID_GET_ORGANIZATION_SETTINGS = 6; - private static final int METHODID_GET_SOURCE = 7; - private static final int METHODID_GROUP_ASSETS = 8; - private static final int METHODID_GROUP_FINDINGS = 9; - private static final int METHODID_LIST_ASSETS = 10; - private static final int METHODID_LIST_FINDINGS = 11; - private static final int METHODID_LIST_NOTIFICATION_CONFIGS = 12; - private static final int METHODID_LIST_SOURCES = 13; - private static final int METHODID_RUN_ASSET_DISCOVERY = 14; - private static final int METHODID_SET_FINDING_STATE = 15; - private static final int METHODID_SET_IAM_POLICY = 16; - private static final int METHODID_TEST_IAM_PERMISSIONS = 17; - private static final int METHODID_UPDATE_FINDING = 18; - private static final int METHODID_UPDATE_NOTIFICATION_CONFIG = 19; - private static final int METHODID_UPDATE_ORGANIZATION_SETTINGS = 20; - private static final int METHODID_UPDATE_SOURCE = 21; - private static final int METHODID_UPDATE_SECURITY_MARKS = 22; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SecurityCenterImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SecurityCenterImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_SOURCE: - serviceImpl.createSource((com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_FINDING: - serviceImpl.createFinding((com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_NOTIFICATION_CONFIG: - serviceImpl.createNotificationConfig((com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_NOTIFICATION_CONFIG: - serviceImpl.deleteNotificationConfig((com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NOTIFICATION_CONFIG: - serviceImpl.getNotificationConfig((com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ORGANIZATION_SETTINGS: - serviceImpl.getOrganizationSettings((com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SOURCE: - serviceImpl.getSource((com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GROUP_ASSETS: - serviceImpl.groupAssets((com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GROUP_FINDINGS: - serviceImpl.groupFindings((com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ASSETS: - serviceImpl.listAssets((com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FINDINGS: - serviceImpl.listFindings((com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_NOTIFICATION_CONFIGS: - serviceImpl.listNotificationConfigs((com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SOURCES: - serviceImpl.listSources((com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RUN_ASSET_DISCOVERY: - serviceImpl.runAssetDiscovery((com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_FINDING_STATE: - serviceImpl.setFindingState((com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_FINDING: - serviceImpl.updateFinding((com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_NOTIFICATION_CONFIG: - serviceImpl.updateNotificationConfig((com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_ORGANIZATION_SETTINGS: - serviceImpl.updateOrganizationSettings((com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SOURCE: - serviceImpl.updateSource((com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SECURITY_MARKS: - serviceImpl.updateSecurityMarks((com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class SecurityCenterBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SecurityCenterBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SecurityCenter"); - } - } - - private static final class SecurityCenterFileDescriptorSupplier - extends SecurityCenterBaseDescriptorSupplier { - SecurityCenterFileDescriptorSupplier() {} - } - - private static final class SecurityCenterMethodDescriptorSupplier - extends SecurityCenterBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SecurityCenterMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SecurityCenterGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SecurityCenterFileDescriptorSupplier()) - .addMethod(getCreateSourceMethod()) - .addMethod(getCreateFindingMethod()) - .addMethod(getCreateNotificationConfigMethod()) - .addMethod(getDeleteNotificationConfigMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getGetNotificationConfigMethod()) - .addMethod(getGetOrganizationSettingsMethod()) - .addMethod(getGetSourceMethod()) - .addMethod(getGroupAssetsMethod()) - .addMethod(getGroupFindingsMethod()) - .addMethod(getListAssetsMethod()) - .addMethod(getListFindingsMethod()) - .addMethod(getListNotificationConfigsMethod()) - .addMethod(getListSourcesMethod()) - .addMethod(getRunAssetDiscoveryMethod()) - .addMethod(getSetFindingStateMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .addMethod(getUpdateFindingMethod()) - .addMethod(getUpdateNotificationConfigMethod()) - .addMethod(getUpdateOrganizationSettingsMethod()) - .addMethod(getUpdateSourceMethod()) - .addMethod(getUpdateSecurityMarksMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOuterClass.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOuterClass.java deleted file mode 100644 index de2263711..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOuterClass.java +++ /dev/null @@ -1,138 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/asset.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class AssetOuterClass { - private AssetOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/securitycenter/v1p1beta1/" + - "asset.proto\022%google.cloud.securitycenter" + - ".v1p1beta1\032\031google/api/resource.proto\0322g" + - "oogle/cloud/securitycenter/v1p1beta1/fol" + - "der.proto\032:google/cloud/securitycenter/v" + - "1p1beta1/security_marks.proto\032\034google/pr" + - "otobuf/struct.proto\032\037google/protobuf/tim" + - "estamp.proto\032\034google/api/annotations.pro" + - "to\"\314\010\n\005Asset\022\014\n\004name\030\001 \001(\t\022i\n\032security_c" + - "enter_properties\030\002 \001(\0132E.google.cloud.se" + - "curitycenter.v1p1beta1.Asset.SecurityCen" + - "terProperties\022a\n\023resource_properties\030\007 \003" + - "(\0132D.google.cloud.securitycenter.v1p1bet" + - "a1.Asset.ResourcePropertiesEntry\022L\n\016secu" + - "rity_marks\030\010 \001(\01324.google.cloud.security" + - "center.v1p1beta1.SecurityMarks\022/\n\013create" + - "_time\030\t \001(\0132\032.google.protobuf.Timestamp\022" + - "/\n\013update_time\030\n \001(\0132\032.google.protobuf.T" + - "imestamp\022J\n\niam_policy\030\013 \001(\01326.google.cl" + - "oud.securitycenter.v1p1beta1.Asset.IamPo" + - "licy\022\026\n\016canonical_name\030\r \001(\t\032\300\002\n\030Securit" + - "yCenterProperties\022\025\n\rresource_name\030\001 \001(\t" + - "\022\025\n\rresource_type\030\002 \001(\t\022\027\n\017resource_pare" + - "nt\030\003 \001(\t\022\030\n\020resource_project\030\004 \001(\t\022\027\n\017re" + - "source_owners\030\005 \003(\t\022\035\n\025resource_display_" + - "name\030\006 \001(\t\022$\n\034resource_parent_display_na" + - "me\030\007 \001(\t\022%\n\035resource_project_display_nam" + - "e\030\010 \001(\t\022>\n\007folders\030\n \003(\0132-.google.cloud." + - "securitycenter.v1p1beta1.Folder\032 \n\tIamPo" + - "licy\022\023\n\013policy_blob\030\001 \001(\t\032Q\n\027ResourcePro" + - "pertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\013" + - "2\026.google.protobuf.Value:\0028\001:\232\001\352A\226\001\n#sec" + - "uritycenter.googleapis.com/Asset\022+organi" + - "zations/{organization}/assets/{asset}\022\037f" + - "olders/{folder}/assets/{asset}\022!projects" + - "/{project}/assets/{asset}B\375\001\n)com.google" + - ".cloud.securitycenter.v1p1beta1P\001ZSgoogl" + - "e.golang.org/genproto/googleapis/cloud/s" + - "ecuritycenter/v1p1beta1;securitycenter\252\002" + - "%Google.Cloud.SecurityCenter.V1P1Beta1\312\002" + - "%Google\\Cloud\\SecurityCenter\\V1p1beta1\352\002" + - "(Google::Cloud::SecurityCenter::V1p1beta" + - "1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor, - new java.lang.String[] { "Name", "SecurityCenterProperties", "ResourceProperties", "SecurityMarks", "CreateTime", "UpdateTime", "IamPolicy", "CanonicalName", }); - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor, - new java.lang.String[] { "ResourceName", "ResourceType", "ResourceParent", "ResourceProject", "ResourceOwners", "ResourceDisplayName", "ResourceParentDisplayName", "ResourceProjectDisplayName", "Folders", }); - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor, - new java.lang.String[] { "PolicyBlob", }); - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequestOrBuilder.java deleted file mode 100644 index d45c246a8..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public interface DeleteNotificationConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the notification config to delete. Its format is
-   * "organizations/[organization_id]/notificationConfigs/[config_id]".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the notification config to delete. Its format is
-   * "organizations/[organization_id]/notificationConfigs/[config_id]".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOuterClass.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOuterClass.java deleted file mode 100644 index 6b2fc2d01..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOuterClass.java +++ /dev/null @@ -1,114 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/finding.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class FindingOuterClass { - private FindingOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/securitycenter/v1p1beta1/" + - "finding.proto\022%google.cloud.securitycent" + - "er.v1p1beta1\032\037google/api/field_behavior." + - "proto\032\031google/api/resource.proto\032:google" + - "/cloud/securitycenter/v1p1beta1/security" + - "_marks.proto\032\034google/protobuf/struct.pro" + - "to\032\037google/protobuf/timestamp.proto\032\034goo" + - "gle/api/annotations.proto\"\337\007\n\007Finding\022\014\n" + - "\004name\030\001 \001(\t\022\016\n\006parent\030\002 \001(\t\022\025\n\rresource_" + - "name\030\003 \001(\t\022C\n\005state\030\004 \001(\01624.google.cloud" + - ".securitycenter.v1p1beta1.Finding.State\022" + - "\020\n\010category\030\005 \001(\t\022\024\n\014external_uri\030\006 \001(\t\022" + - "_\n\021source_properties\030\007 \003(\0132D.google.clou" + - "d.securitycenter.v1p1beta1.Finding.Sourc" + - "ePropertiesEntry\022Q\n\016security_marks\030\010 \001(\013" + - "24.google.cloud.securitycenter.v1p1beta1" + - ".SecurityMarksB\003\340A\003\022.\n\nevent_time\030\t \001(\0132" + - "\032.google.protobuf.Timestamp\022/\n\013create_ti" + - "me\030\n \001(\0132\032.google.protobuf.Timestamp\022I\n\010" + - "severity\030\r \001(\01627.google.cloud.securityce" + - "nter.v1p1beta1.Finding.Severity\022\026\n\016canon" + - "ical_name\030\016 \001(\t\032O\n\025SourcePropertiesEntry" + - "\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pr" + - "otobuf.Value:\0028\001\"8\n\005State\022\025\n\021STATE_UNSPE" + - "CIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002\"Q\n\010Se" + - "verity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRIT" + - "ICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004:\333\001" + - "\352A\327\001\n%securitycenter.googleapis.com/Find" + - "ing\022@organizations/{organization}/source" + - "s/{source}/findings/{finding}\0224folders/{" + - "folder}/sources/{source}/findings/{findi" + - "ng}\0226projects/{project}/sources/{source}" + - "/findings/{finding}B\375\001\n)com.google.cloud" + - ".securitycenter.v1p1beta1P\001ZSgoogle.gola" + - "ng.org/genproto/googleapis/cloud/securit" + - "ycenter/v1p1beta1;securitycenter\252\002%Googl" + - "e.Cloud.SecurityCenter.V1P1Beta1\312\002%Googl" + - "e\\Cloud\\SecurityCenter\\V1p1beta1\352\002(Googl" + - "e::Cloud::SecurityCenter::V1p1beta1b\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor, - new java.lang.String[] { "Name", "Parent", "ResourceName", "State", "Category", "ExternalUri", "SourceProperties", "SecurityMarks", "EventTime", "CreateTime", "Severity", "CanonicalName", }); - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderProto.java deleted file mode 100644 index 9deaea685..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderProto.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/folder.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class FolderProto { - private FolderProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_Folder_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/securitycenter/v1p1beta1/" + - "folder.proto\022%google.cloud.securitycente" + - "r.v1p1beta1\032\034google/api/annotations.prot" + - "o\"G\n\006Folder\022\027\n\017resource_folder\030\001 \001(\t\022$\n\034" + - "resource_folder_display_name\030\002 \001(\tB\212\002\n)c" + - "om.google.cloud.securitycenter.v1p1beta1" + - "B\013FolderProtoP\001ZSgoogle.golang.org/genpr" + - "oto/googleapis/cloud/securitycenter/v1p1" + - "beta1;securitycenter\252\002%Google.Cloud.Secu" + - "rityCenter.V1P1Beta1\312\002%Google\\Cloud\\Secu" + - "rityCenter\\V1p1beta1\352\002(Google::Cloud::Se" + - "curityCenter::V1p1Beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_Folder_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor, - new java.lang.String[] { "ResourceFolder", "ResourceFolderDisplayName", }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequestOrBuilder.java deleted file mode 100644 index 06c29c44d..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public interface GetNotificationConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the notification config to get. Its format is
-   * "organizations/[organization_id]/notificationConfigs/[config_id]".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the notification config to get. Its format is
-   * "organizations/[organization_id]/notificationConfigs/[config_id]".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequestOrBuilder.java deleted file mode 100644 index dd51cbd93..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public interface GetOrganizationSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the organization to get organization settings for. Its format is
-   * "organizations/[organization_id]/organizationSettings".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the organization to get organization settings for. Its format is
-   * "organizations/[organization_id]/organizationSettings".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequestOrBuilder.java deleted file mode 100644 index 1e62927b4..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public interface GetSourceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GetSourceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Relative resource name of the source. Its format is
-   * "organizations/[organization_id]/source/[source_id]".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Relative resource name of the source. Its format is
-   * "organizations/[organization_id]/source/[source_id]".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOuterClass.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOuterClass.java deleted file mode 100644 index c027d7863..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOuterClass.java +++ /dev/null @@ -1,98 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/notification_config.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class NotificationConfigOuterClass { - private NotificationConfigOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n?google/cloud/securitycenter/v1p1beta1/" + - "notification_config.proto\022%google.cloud." + - "securitycenter.v1p1beta1\032\037google/api/fie" + - "ld_behavior.proto\032\031google/api/resource.p" + - "roto\032\034google/api/annotations.proto\"\266\004\n\022N" + - "otificationConfig\022\014\n\004name\030\001 \001(\t\022\023\n\013descr" + - "iption\030\002 \001(\t\022W\n\nevent_type\030\003 \001(\0162C.googl" + - "e.cloud.securitycenter.v1p1beta1.Notific" + - "ationConfig.EventType\0226\n\014pubsub_topic\030\004 " + - "\001(\tB \372A\035\n\033pubsub.googleapis.com/Topic\022\034\n" + - "\017service_account\030\005 \001(\tB\003\340A\003\022e\n\020streaming" + - "_config\030\006 \001(\0132I.google.cloud.securitycen" + - "ter.v1p1beta1.NotificationConfig.Streami" + - "ngConfigH\000\032!\n\017StreamingConfig\022\016\n\006filter\030" + - "\001 \001(\t\"4\n\tEventType\022\032\n\026EVENT_TYPE_UNSPECI" + - "FIED\020\000\022\013\n\007FINDING\020\001:}\352Az\n0securitycenter" + - ".googleapis.com/NotificationConfig\022Forga" + - "nizations/{organization}/notificationCon" + - "figs/{notification_config}B\017\n\rnotify_con" + - "figB\300\002\n)com.google.cloud.securitycenter." + - "v1p1beta1P\001ZSgoogle.golang.org/genproto/" + - "googleapis/cloud/securitycenter/v1p1beta" + - "1;securitycenter\252\002%Google.Cloud.Security" + - "Center.V1P1Beta1\312\002%Google\\Cloud\\Security" + - "Center\\V1p1beta1\352\002(Google::Cloud::Securi" + - "tyCenter::V1p1beta1\352A@\n\033pubsub.googleapi" + - "s.com/Topic\022!projects/{project}/topics/{" + - "topic}b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor, - new java.lang.String[] { "Name", "Description", "EventType", "PubsubTopic", "ServiceAccount", "StreamingConfig", "NotifyConfig", }); - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor, - new java.lang.String[] { "Filter", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java deleted file mode 100644 index 90fd7b98f..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/notification_message.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class NotificationMessageOuterClass { - private NotificationMessageOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n@google/cloud/securitycenter/v1p1beta1/" + - "notification_message.proto\022%google.cloud" + - ".securitycenter.v1p1beta1\0323google/cloud/" + - "securitycenter/v1p1beta1/finding.proto\0324" + - "google/cloud/securitycenter/v1p1beta1/re" + - "source.proto\032\034google/api/annotations.pro" + - "to\"\306\001\n\023NotificationMessage\022 \n\030notificati" + - "on_config_name\030\001 \001(\t\022A\n\007finding\030\002 \001(\0132.." + - "google.cloud.securitycenter.v1p1beta1.Fi" + - "ndingH\000\022A\n\010resource\030\003 \001(\0132/.google.cloud" + - ".securitycenter.v1p1beta1.ResourceB\007\n\005ev" + - "entB\375\001\n)com.google.cloud.securitycenter." + - "v1p1beta1P\001ZSgoogle.golang.org/genproto/" + - "googleapis/cloud/securitycenter/v1p1beta" + - "1;securitycenter\252\002%Google.Cloud.Security" + - "Center.V1P1Beta1\312\002%Google\\Cloud\\Security" + - "Center\\V1p1beta1\352\002(Google::Cloud::Securi" + - "tyCenter::V1p1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.ResourceProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor, - new java.lang.String[] { "NotificationConfigName", "Finding", "Resource", "Event", }); - com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.ResourceProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOuterClass.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOuterClass.java deleted file mode 100644 index d3799b182..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOuterClass.java +++ /dev/null @@ -1,90 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/organization_settings.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class OrganizationSettingsOuterClass { - private OrganizationSettingsOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nAgoogle/cloud/securitycenter/v1p1beta1/" + - "organization_settings.proto\022%google.clou" + - "d.securitycenter.v1p1beta1\032\031google/api/r" + - "esource.proto\032\034google/api/annotations.pr" + - "oto\"\254\004\n\024OrganizationSettings\022\014\n\004name\030\001 \001" + - "(\t\022\036\n\026enable_asset_discovery\030\002 \001(\010\022p\n\026as" + - "set_discovery_config\030\003 \001(\0132P.google.clou" + - "d.securitycenter.v1p1beta1.OrganizationS" + - "ettings.AssetDiscoveryConfig\032\207\002\n\024AssetDi" + - "scoveryConfig\022\023\n\013project_ids\030\001 \003(\t\022v\n\016in" + - "clusion_mode\030\002 \001(\0162^.google.cloud.securi" + - "tycenter.v1p1beta1.OrganizationSettings." + - "AssetDiscoveryConfig.InclusionMode\022\022\n\nfo" + - "lder_ids\030\003 \003(\t\"N\n\rInclusionMode\022\036\n\032INCLU" + - "SION_MODE_UNSPECIFIED\020\000\022\020\n\014INCLUDE_ONLY\020" + - "\001\022\013\n\007EXCLUDE\020\002:j\352Ag\n2securitycenter.goog" + - "leapis.com/OrganizationSettings\0221organiz" + - "ations/{organization}/organizationSettin" + - "gsB\375\001\n)com.google.cloud.securitycenter.v" + - "1p1beta1P\001ZSgoogle.golang.org/genproto/g" + - "oogleapis/cloud/securitycenter/v1p1beta1" + - ";securitycenter\252\002%Google.Cloud.SecurityC" + - "enter.V1P1Beta1\312\002%Google\\Cloud\\SecurityC" + - "enter\\V1p1beta1\352\002(Google::Cloud::Securit" + - "yCenter::V1p1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor, - new java.lang.String[] { "Name", "EnableAssetDiscovery", "AssetDiscoveryConfig", }); - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor, - new java.lang.String[] { "ProjectIds", "InclusionMode", "FolderIds", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java deleted file mode 100644 index 9a42dd82a..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java +++ /dev/null @@ -1,73 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/resource.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class ResourceProto { - private ResourceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/securitycenter/v1p1beta1/" + - "resource.proto\022%google.cloud.securitycen" + - "ter.v1p1beta1\032\037google/api/field_behavior" + - ".proto\0322google/cloud/securitycenter/v1p1" + - "beta1/folder.proto\032\034google/api/annotatio" + - "ns.proto\"\271\001\n\010Resource\022\014\n\004name\030\001 \001(\t\022\017\n\007p" + - "roject\030\002 \001(\t\022\034\n\024project_display_name\030\003 \001" + - "(\t\022\016\n\006parent\030\004 \001(\t\022\033\n\023parent_display_nam" + - "e\030\005 \001(\t\022C\n\007folders\030\007 \003(\0132-.google.cloud." + - "securitycenter.v1p1beta1.FolderB\003\340A\003B\214\002\n" + - ")com.google.cloud.securitycenter.v1p1bet" + - "a1B\rResourceProtoP\001ZSgoogle.golang.org/g" + - "enproto/googleapis/cloud/securitycenter/" + - "v1p1beta1;securitycenter\252\002%Google.Cloud." + - "SecurityCenter.V1P1Beta1\312\002%Google\\Cloud\\" + - "SecurityCenter\\V1p1beta1\352\002(Google::Cloud" + - "::SecurityCenter::V1p1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor, - new java.lang.String[] { "Name", "Project", "ProjectDisplayName", "Parent", "ParentDisplayName", "Folders", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequestOrBuilder.java deleted file mode 100644 index 8d9b673f2..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public interface RunAssetDiscoveryRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the organization to run asset discovery for. Its format is
-   * "organizations/[organization_id]".
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Name of the organization to run asset discovery for. Its format is
-   * "organizations/[organization_id]".
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOuterClass.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOuterClass.java deleted file mode 100644 index 16906dbf8..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOuterClass.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class RunAssetDiscoveryResponseOuterClass { - private RunAssetDiscoveryResponseOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nHgoogle/cloud/securitycenter/v1p1beta1/" + - "run_asset_discovery_response.proto\022%goog" + - "le.cloud.securitycenter.v1p1beta1\032\036googl" + - "e/protobuf/duration.proto\032\034google/api/an" + - "notations.proto\"\356\001\n\031RunAssetDiscoveryRes" + - "ponse\022U\n\005state\030\001 \001(\0162F.google.cloud.secu" + - "ritycenter.v1p1beta1.RunAssetDiscoveryRe" + - "sponse.State\022+\n\010duration\030\002 \001(\0132\031.google." + - "protobuf.Duration\"M\n\005State\022\025\n\021STATE_UNSP" + - "ECIFIED\020\000\022\r\n\tCOMPLETED\020\001\022\016\n\nSUPERSEDED\020\002" + - "\022\016\n\nTERMINATED\020\003B\375\001\n)com.google.cloud.se" + - "curitycenter.v1p1beta1P\001ZSgoogle.golang." + - "org/genproto/googleapis/cloud/securityce" + - "nter/v1p1beta1;securitycenter\252\002%Google.C" + - "loud.SecurityCenter.V1P1Beta1\312\002%Google\\C" + - "loud\\SecurityCenter\\V1p1beta1\352\002(Google::" + - "Cloud::SecurityCenter::V1p1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DurationProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor, - new java.lang.String[] { "State", "Duration", }); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOuterClass.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOuterClass.java deleted file mode 100644 index 5e3e90daa..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOuterClass.java +++ /dev/null @@ -1,91 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/security_marks.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class SecurityMarksOuterClass { - private SecurityMarksOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n:google/cloud/securitycenter/v1p1beta1/" + - "security_marks.proto\022%google.cloud.secur" + - "itycenter.v1p1beta1\032\031google/api/resource" + - ".proto\032\034google/api/annotations.proto\"\334\004\n" + - "\rSecurityMarks\022\014\n\004name\030\001 \001(\t\022N\n\005marks\030\002 " + - "\003(\0132?.google.cloud.securitycenter.v1p1be" + - "ta1.SecurityMarks.MarksEntry\022\026\n\016canonica" + - "l_name\030\003 \001(\t\032,\n\nMarksEntry\022\013\n\003key\030\001 \001(\t\022" + - "\r\n\005value\030\002 \001(\t:\0028\001:\246\003\352A\242\003\n+securitycente" + - "r.googleapis.com/SecurityMarks\0229organiza" + - "tions/{organization}/assets/{asset}/secu" + - "rityMarks\022Norganizations/{organization}/" + - "sources/{source}/findings/{finding}/secu" + - "rityMarks\022-folders/{folder}/assets/{asse" + - "t}/securityMarks\022/projects/{project}/ass" + - "ets/{asset}/securityMarks\022Bfolders/{fold" + - "er}/sources/{source}/findings/{finding}/" + - "securityMarks\022Dprojects/{project}/source" + - "s/{source}/findings/{finding}/securityMa" + - "rksB\375\001\n)com.google.cloud.securitycenter." + - "v1p1beta1P\001ZSgoogle.golang.org/genproto/" + - "googleapis/cloud/securitycenter/v1p1beta" + - "1;securitycenter\252\002%Google.Cloud.Security" + - "Center.V1P1Beta1\312\002%Google\\Cloud\\Security" + - "Center\\V1p1beta1\352\002(Google::Cloud::Securi" + - "tyCenter::V1p1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor, - new java.lang.String[] { "Name", "Marks", "CanonicalName", }); - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecuritycenterService.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecuritycenterService.java deleted file mode 100644 index 31dcd40c8..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecuritycenterService.java +++ /dev/null @@ -1,769 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class SecuritycenterService { - private SecuritycenterService() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nBgoogle/cloud/securitycenter/v1p1beta1/" + - "securitycenter_service.proto\022%google.clo" + - "ud.securitycenter.v1p1beta1\032@google/clou" + - "d/securitycenter/v1p1beta1/notification_" + - "message.proto\032Hgoogle/cloud/securitycent" + - "er/v1p1beta1/run_asset_discovery_respons" + - "e.proto\032\034google/api/annotations.proto\032\027g" + - "oogle/api/client.proto\032\037google/api/field" + - "_behavior.proto\032\031google/api/resource.pro" + - "to\0321google/cloud/securitycenter/v1p1beta" + - "1/asset.proto\0323google/cloud/securitycent" + - "er/v1p1beta1/finding.proto\0322google/cloud" + - "/securitycenter/v1p1beta1/folder.proto\032?" + - "google/cloud/securitycenter/v1p1beta1/no" + - "tification_config.proto\032Agoogle/cloud/se" + - "curitycenter/v1p1beta1/organization_sett" + - "ings.proto\032:google/cloud/securitycenter/" + - "v1p1beta1/security_marks.proto\0322google/c" + - "loud/securitycenter/v1p1beta1/source.pro" + - "to\032\036google/iam/v1/iam_policy.proto\032\032goog" + - "le/iam/v1/policy.proto\032#google/longrunni" + - "ng/operations.proto\032\036google/protobuf/dur" + - "ation.proto\032\033google/protobuf/empty.proto" + - "\032 google/protobuf/field_mask.proto\032\034goog" + - "le/protobuf/struct.proto\032\037google/protobu" + - "f/timestamp.proto\"\263\001\n\024CreateFindingReque" + - "st\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$securitycent" + - "er.googleapis.com/Source\022\027\n\nfinding_id\030\002" + - " \001(\tB\003\340A\002\022D\n\007finding\030\003 \001(\0132..google.clou" + - "d.securitycenter.v1p1beta1.FindingB\003\340A\002\"" + - "\340\001\n\037CreateNotificationConfigRequest\022H\n\006p" + - "arent\030\001 \001(\tB8\340A\002\372A2\n0cloudresourcemanage" + - "r.googleapis.com/Organization\022\026\n\tconfig_" + - "id\030\002 \001(\tB\003\340A\002\022[\n\023notification_config\030\003 \001" + - "(\01329.google.cloud.securitycenter.v1p1bet" + - "a1.NotificationConfigB\003\340A\002\"\243\001\n\023CreateSou" + - "rceRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0clou" + - "dresourcemanager.googleapis.com/Organiza" + - "tion\022B\n\006source\030\002 \001(\0132-.google.cloud.secu" + - "ritycenter.v1p1beta1.SourceB\003\340A\002\"i\n\037Dele" + - "teNotificationConfigRequest\022F\n\004name\030\001 \001(" + - "\tB8\340A\002\372A2\n0securitycenter.googleapis.com" + - "/NotificationConfig\"f\n\034GetNotificationCo" + - "nfigRequest\022F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0secur" + - "itycenter.googleapis.com/NotificationCon" + - "fig\"j\n\036GetOrganizationSettingsRequest\022H\n" + - "\004name\030\001 \001(\tB:\340A\002\372A4\n2securitycenter.goog" + - "leapis.com/OrganizationSettings\"N\n\020GetSo" + - "urceRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$secur" + - "itycenter.googleapis.com/Source\"\203\002\n\022Grou" + - "pAssetsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#" + - "securitycenter.googleapis.com/Asset\022\016\n\006f" + - "ilter\030\002 \001(\t\022\025\n\010group_by\030\003 \001(\tB\003\340A\002\0223\n\020co" + - "mpare_duration\030\004 \001(\0132\031.google.protobuf.D" + - "uration\022-\n\tread_time\030\005 \001(\0132\032.google.prot" + - "obuf.Timestamp\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpa" + - "ge_size\030\010 \001(\005\"\277\001\n\023GroupAssetsResponse\022L\n" + - "\020group_by_results\030\001 \003(\01322.google.cloud.s" + - "ecuritycenter.v1p1beta1.GroupResult\022-\n\tr" + - "ead_time\030\002 \001(\0132\032.google.protobuf.Timesta" + - "mp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_siz" + - "e\030\004 \001(\005\"\206\002\n\024GroupFindingsRequest\022<\n\006pare" + - "nt\030\001 \001(\tB,\340A\002\372A&\n$securitycenter.googlea" + - "pis.com/Source\022\016\n\006filter\030\002 \001(\t\022\025\n\010group_" + - "by\030\003 \001(\tB\003\340A\002\022-\n\tread_time\030\004 \001(\0132\032.googl" + - "e.protobuf.Timestamp\0223\n\020compare_duration" + - "\030\005 \001(\0132\031.google.protobuf.Duration\022\022\n\npag" + - "e_token\030\007 \001(\t\022\021\n\tpage_size\030\010 \001(\005\"\301\001\n\025Gro" + - "upFindingsResponse\022L\n\020group_by_results\030\001" + - " \003(\01322.google.cloud.securitycenter.v1p1b" + - "eta1.GroupResult\022-\n\tread_time\030\002 \001(\0132\032.go" + - "ogle.protobuf.Timestamp\022\027\n\017next_page_tok" + - "en\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\277\001\n\013GroupRe" + - "sult\022V\n\nproperties\030\001 \003(\0132B.google.cloud." + - "securitycenter.v1p1beta1.GroupResult.Pro" + - "pertiesEntry\022\r\n\005count\030\002 \001(\003\032I\n\017Propertie" + - "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo" + - "gle.protobuf.Value:\0028\001\"\221\001\n\036ListNotificat" + - "ionConfigsRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A" + - "2\n0cloudresourcemanager.googleapis.com/O" + - "rganization\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_" + - "size\030\003 \001(\005\"\223\001\n\037ListNotificationConfigsRe" + - "sponse\022W\n\024notification_configs\030\001 \003(\01329.g" + - "oogle.cloud.securitycenter.v1p1beta1.Not" + - "ificationConfig\022\027\n\017next_page_token\030\002 \001(\t" + - "\"y\n\022ListSourcesRequest\022<\n\006parent\030\001 \001(\tB," + - "\340A\002\372A&\022$securitycenter.googleapis.com/So" + - "urce\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\007 " + - "\001(\005\"n\n\023ListSourcesResponse\022>\n\007sources\030\001 " + - "\003(\0132-.google.cloud.securitycenter.v1p1be" + - "ta1.Source\022\027\n\017next_page_token\030\002 \001(\t\"\255\002\n\021" + - "ListAssetsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A" + - "%\022#securitycenter.googleapis.com/Asset\022\016" + - "\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\tread" + - "_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022" + - "3\n\020compare_duration\030\005 \001(\0132\031.google.proto" + - "buf.Duration\022.\n\nfield_mask\030\007 \001(\0132\032.googl" + - "e.protobuf.FieldMask\022\022\n\npage_token\030\010 \001(\t" + - "\022\021\n\tpage_size\030\t \001(\005\"\330\003\n\022ListAssetsRespon" + - "se\022g\n\023list_assets_results\030\001 \003(\0132J.google" + - ".cloud.securitycenter.v1p1beta1.ListAsse" + - "tsResponse.ListAssetsResult\022-\n\tread_time" + - "\030\002 \001(\0132\032.google.protobuf.Timestamp\022\027\n\017ne" + - "xt_page_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\032" + - "\374\001\n\020ListAssetsResult\022;\n\005asset\030\001 \001(\0132,.go" + - "ogle.cloud.securitycenter.v1p1beta1.Asse" + - "t\022l\n\014state_change\030\002 \001(\0162V.google.cloud.s" + - "ecuritycenter.v1p1beta1.ListAssetsRespon" + - "se.ListAssetsResult.StateChange\"=\n\013State" + - "Change\022\n\n\006UNUSED\020\000\022\t\n\005ADDED\020\001\022\013\n\007REMOVED" + - "\020\002\022\n\n\006ACTIVE\020\003\"\260\002\n\023ListFindingsRequest\022<" + - "\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$securitycenter.g" + - "oogleapis.com/Source\022\016\n\006filter\030\002 \001(\t\022\020\n\010" + - "order_by\030\003 \001(\t\022-\n\tread_time\030\004 \001(\0132\032.goog" + - "le.protobuf.Timestamp\0223\n\020compare_duratio" + - "n\030\005 \001(\0132\031.google.protobuf.Duration\022.\n\nfi" + - "eld_mask\030\007 \001(\0132\032.google.protobuf.FieldMa" + - "sk\022\022\n\npage_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(" + - "\005\"\253\006\n\024ListFindingsResponse\022m\n\025list_findi" + - "ngs_results\030\001 \003(\0132N.google.cloud.securit" + - "ycenter.v1p1beta1.ListFindingsResponse.L" + - "istFindingsResult\022-\n\tread_time\030\002 \001(\0132\032.g" + - "oogle.protobuf.Timestamp\022\027\n\017next_page_to" + - "ken\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\032\307\004\n\022ListFi" + - "ndingsResult\022?\n\007finding\030\001 \001(\0132..google.c" + - "loud.securitycenter.v1p1beta1.Finding\022p\n" + - "\014state_change\030\002 \001(\0162Z.google.cloud.secur" + - "itycenter.v1p1beta1.ListFindingsResponse" + - ".ListFindingsResult.StateChange\022n\n\010resou" + - "rce\030\003 \001(\0132W.google.cloud.securitycenter." + - "v1p1beta1.ListFindingsResponse.ListFindi" + - "ngsResult.ResourceB\003\340A\003\032\276\001\n\010Resource\022\014\n\004" + - "name\030\001 \001(\t\022\024\n\014project_name\030\002 \001(\t\022\034\n\024proj" + - "ect_display_name\030\003 \001(\t\022\023\n\013parent_name\030\004 " + - "\001(\t\022\033\n\023parent_display_name\030\005 \001(\t\022>\n\007fold" + - "ers\030\n \003(\0132-.google.cloud.securitycenter." + - "v1p1beta1.Folder\"M\n\013StateChange\022\n\n\006UNUSE" + - "D\020\000\022\013\n\007CHANGED\020\001\022\r\n\tUNCHANGED\020\002\022\t\n\005ADDED" + - "\020\003\022\013\n\007REMOVED\020\004\"\324\001\n\026SetFindingStateReque" + - "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%securitycenter" + - ".googleapis.com/Finding\022H\n\005state\030\002 \001(\01624" + - ".google.cloud.securitycenter.v1p1beta1.F" + - "inding.StateB\003\340A\002\0223\n\nstart_time\030\003 \001(\0132\032." + - "google.protobuf.TimestampB\003\340A\002\"d\n\030RunAss" + - "etDiscoveryRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372" + - "A2\n0cloudresourcemanager.googleapis.com/" + - "Organization\"\215\001\n\024UpdateFindingRequest\022D\n" + - "\007finding\030\001 \001(\0132..google.cloud.securityce" + - "nter.v1p1beta1.FindingB\003\340A\002\022/\n\013update_ma" + - "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"\257\001\n" + - "\037UpdateNotificationConfigRequest\022[\n\023noti" + - "fication_config\030\001 \001(\01329.google.cloud.sec" + - "uritycenter.v1p1beta1.NotificationConfig" + - "B\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.prot" + - "obuf.FieldMask\"\265\001\n!UpdateOrganizationSet" + - "tingsRequest\022_\n\025organization_settings\030\001 " + - "\001(\0132;.google.cloud.securitycenter.v1p1be" + - "ta1.OrganizationSettingsB\003\340A\002\022/\n\013update_" + - "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\212" + - "\001\n\023UpdateSourceRequest\022B\n\006source\030\001 \001(\0132-" + - ".google.cloud.securitycenter.v1p1beta1.S" + - "ourceB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google" + - ".protobuf.FieldMask\"\320\001\n\032UpdateSecurityMa" + - "rksRequest\022Q\n\016security_marks\030\001 \001(\01324.goo" + - "gle.cloud.securitycenter.v1p1beta1.Secur" + - "ityMarksB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.goo" + - "gle.protobuf.FieldMask\022.\n\nstart_time\030\003 \001" + - "(\0132\032.google.protobuf.Timestamp2\3703\n\016Secur" + - "ityCenter\022\306\001\n\014CreateSource\022:.google.clou" + - "d.securitycenter.v1p1beta1.CreateSourceR" + - "equest\032-.google.cloud.securitycenter.v1p" + - "1beta1.Source\"K\202\323\344\223\0025\"+/v1p1beta1/{paren" + - "t=organizations/*}/sources:\006source\332A\rpar" + - "ent,source\022\375\001\n\rCreateFinding\022;.google.cl" + - "oud.securitycenter.v1p1beta1.CreateFindi" + - "ngRequest\032..google.cloud.securitycenter." + - "v1p1beta1.Finding\"\177\202\323\344\223\002A\"6/v1p1beta1/{p" + - "arent=organizations/*/sources/*}/finding" + - "s:\007finding\332A\031parent,finding_id,finding\332A" + - "\031parent,finding,finding_id\022\270\002\n\030CreateNot" + - "ificationConfig\022F.google.cloud.securityc" + - "enter.v1p1beta1.CreateNotificationConfig" + - "Request\0329.google.cloud.securitycenter.v1" + - "p1beta1.NotificationConfig\"\230\001\202\323\344\223\002N\"7/v1" + - "p1beta1/{parent=organizations/*}/notific" + - "ationConfigs:\023notification_config\332A$pare" + - "nt,config_id,notification_config\332A\032paren" + - "t,notification_config\022\302\001\n\030DeleteNotifica" + - "tionConfig\022F.google.cloud.securitycenter" + - ".v1p1beta1.DeleteNotificationConfigReque" + - "st\032\026.google.protobuf.Empty\"F\202\323\344\223\0029*7/v1p" + - "1beta1/{name=organizations/*/notificatio" + - "nConfigs/*}\332A\004name\022\235\001\n\014GetIamPolicy\022\".go" + - "ogle.iam.v1.GetIamPolicyRequest\032\025.google" + - ".iam.v1.Policy\"R\202\323\344\223\002A\"\"9/v1p1beta1/{name=folders/*/source" + - "s/*/findings/*}:setState:\001*Z?\":/v1p1beta" + - "1/{name=projects/*/sources/*/findings/*}" + - ":setState:\001*\332A\025name,state,start_time\022\244\001\n" + - "\014SetIamPolicy\022\".google.iam.v1.SetIamPoli" + - "cyRequest\032\025.google.iam.v1.Policy\"Y\202\323\344\223\002A" + - "\"/v1p1bet" + - "a1/{finding.name=organizations/*/sources" + - "/*/findings/*}:\007findingZC28/v1p1beta1/{f" + - "inding.name=folders/*/sources/*/findings" + - "/*}:\007findingZD29/v1p1beta1/{finding.name" + - "=projects/*/sources/*/findings/*}:\007findi" + - "ng\332A\007finding\332A\023finding,update_mask\022\300\002\n\030U" + - "pdateNotificationConfig\022F.google.cloud.s" + - "ecuritycenter.v1p1beta1.UpdateNotificati" + - "onConfigRequest\0329.google.cloud.securityc" + - "enter.v1p1beta1.NotificationConfig\"\240\001\202\323\344" + - "\223\002b2K/v1p1beta1/{notification_config.nam" + - "e=organizations/*/notificationConfigs/*}" + - ":\023notification_config\332A\023notification_con" + - "fig\332A\037notification_config,update_mask\022\251\002" + - "\n\032UpdateOrganizationSettings\022H.google.cl" + - "oud.securitycenter.v1p1beta1.UpdateOrgan" + - "izationSettingsRequest\032;.google.cloud.se" + - "curitycenter.v1p1beta1.OrganizationSetti" + - "ngs\"\203\001\202\323\344\223\002e2L/v1p1beta1/{organization_s" + - "ettings.name=organizations/*/organizatio" + - "nSettings}:\025organization_settings\332A\025orga" + - "nization_settings\022\333\001\n\014UpdateSource\022:.goo" + - "gle.cloud.securitycenter.v1p1beta1.Updat" + - "eSourceRequest\032-.google.cloud.securityce" + - "nter.v1p1beta1.Source\"`\202\323\344\223\002<22/v1p1beta" + - "1/{source.name=organizations/*/sources/*" + - "}:\006source\332A\006source\332A\022source,update_mask\022" + - "\364\005\n\023UpdateSecurityMarks\022A.google.cloud.s" + - "ecuritycenter.v1p1beta1.UpdateSecurityMa" + - "rksRequest\0324.google.cloud.securitycenter" + - ".v1p1beta1.SecurityMarks\"\343\004\202\323\344\223\002\256\0042G/v1p" + - "1beta1/{security_marks.name=organization" + - "s/*/assets/*/securityMarks}:\016security_ma" + - "rksZS2A/v1p1beta1/{security_marks.name=f" + - "olders/*/assets/*/securityMarks}:\016securi" + - "ty_marksZT2B/v1p1beta1/{security_marks.n" + - "ame=projects/*/assets/*/securityMarks}:\016" + - "security_marksZe2S/v1p1beta1/{security_m" + - "arks.name=organizations/*/sources/*/find" + - "ings/*/securityMarks}:\016security_marksZ_2" + - "M/v1p1beta1/{security_marks.name=folders" + - "/*/sources/*/findings/*/securityMarks}:\016" + - "security_marksZ`2N/v1p1beta1/{security_m" + - "arks.name=projects/*/sources/*/findings/" + - "*/securityMarks}:\016security_marks\332A\016secur" + - "ity_marks\332A\032security_marks,update_mask\032Q" + - "\312A\035securitycenter.googleapis.com\322A.https" + - "://www.googleapis.com/auth/cloud-platfor" + - "mB\375\001\n)com.google.cloud.securitycenter.v1" + - "p1beta1P\001ZSgoogle.golang.org/genproto/go" + - "ogleapis/cloud/securitycenter/v1p1beta1;" + - "securitycenter\252\002%Google.Cloud.SecurityCe" + - "nter.V1P1Beta1\312\002%Google\\Cloud\\SecurityCe" + - "nter\\V1p1beta1\352\002(Google::Cloud::Security" + - "Center::V1p1beta1P\000P\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(), - com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor, - new java.lang.String[] { "Parent", "FindingId", "Finding", }); - internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor, - new java.lang.String[] { "Parent", "ConfigId", "NotificationConfig", }); - internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor, - new java.lang.String[] { "Parent", "Source", }); - internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "GroupBy", "CompareDuration", "ReadTime", "PageToken", "PageSize", }); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor, - new java.lang.String[] { "GroupByResults", "ReadTime", "NextPageToken", "TotalSize", }); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "GroupBy", "ReadTime", "CompareDuration", "PageToken", "PageSize", }); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor, - new java.lang.String[] { "GroupByResults", "ReadTime", "NextPageToken", "TotalSize", }); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor, - new java.lang.String[] { "Properties", "Count", }); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor, - new java.lang.String[] { "NotificationConfigs", "NextPageToken", }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor, - new java.lang.String[] { "Sources", "NextPageToken", }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "OrderBy", "ReadTime", "CompareDuration", "FieldMask", "PageToken", "PageSize", }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor, - new java.lang.String[] { "ListAssetsResults", "ReadTime", "NextPageToken", "TotalSize", }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor, - new java.lang.String[] { "Asset", "StateChange", }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "OrderBy", "ReadTime", "CompareDuration", "FieldMask", "PageToken", "PageSize", }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor, - new java.lang.String[] { "ListFindingsResults", "ReadTime", "NextPageToken", "TotalSize", }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor, - new java.lang.String[] { "Finding", "StateChange", "Resource", }); - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor = - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor, - new java.lang.String[] { "Name", "ProjectName", "ProjectDisplayName", "ParentName", "ParentDisplayName", "Folders", }); - internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor, - new java.lang.String[] { "Name", "State", "StartTime", }); - internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor, - new java.lang.String[] { "Parent", }); - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor, - new java.lang.String[] { "Finding", "UpdateMask", }); - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor, - new java.lang.String[] { "NotificationConfig", "UpdateMask", }); - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor, - new java.lang.String[] { "OrganizationSettings", "UpdateMask", }); - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor, - new java.lang.String[] { "Source", "UpdateMask", }); - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor, - new java.lang.String[] { "SecurityMarks", "UpdateMask", "StartTime", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(); - com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOuterClass.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOuterClass.java deleted file mode 100644 index 0c8da1217..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOuterClass.java +++ /dev/null @@ -1,71 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/securitycenter/v1p1beta1/source.proto - -package com.google.cloud.securitycenter.v1p1beta1; - -public final class SourceOuterClass { - private SourceOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_securitycenter_v1p1beta1_Source_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/securitycenter/v1p1beta1/" + - "source.proto\022%google.cloud.securitycente" + - "r.v1p1beta1\032\031google/api/resource.proto\032\034" + - "google/api/annotations.proto\"\375\001\n\006Source\022" + - "\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013d" + - "escription\030\003 \001(\t\022\026\n\016canonical_name\030\016 \001(\t" + - ":\241\001\352A\235\001\n$securitycenter.googleapis.com/S" + - "ource\022-organizations/{organization}/sour" + - "ces/{source}\022!folders/{folder}/sources/{" + - "source}\022#projects/{project}/sources/{sou" + - "rce}B\375\001\n)com.google.cloud.securitycenter" + - ".v1p1beta1P\001ZSgoogle.golang.org/genproto" + - "/googleapis/cloud/securitycenter/v1p1bet" + - "a1;securitycenter\252\002%Google.Cloud.Securit" + - "yCenter.V1P1Beta1\312\002%Google\\Cloud\\Securit" + - "yCenter\\V1p1beta1\352\002(Google::Cloud::Secur" + - "ityCenter::V1p1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_securitycenter_v1p1beta1_Source_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Description", "CanonicalName", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Access.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Access.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Access.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Access.java index 0ff8db423..0dcdbcfcf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Access.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Access.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/access.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Represents an access event.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Access} */ -public final class Access extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Access extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Access) AccessOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Access.newBuilder() to construct. private Access(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Access() { principalEmail_ = ""; callerIp_ = ""; @@ -29,16 +47,15 @@ private Access() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Access(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Access( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,56 +74,64 @@ private Access( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - principalEmail_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + principalEmail_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - callerIp_ = s; - break; - } - case 26: { - com.google.cloud.securitycenter.v1.Geolocation.Builder subBuilder = null; - if (callerIpGeo_ != null) { - subBuilder = callerIpGeo_.toBuilder(); + callerIp_ = s; + break; } - callerIpGeo_ = input.readMessage(com.google.cloud.securitycenter.v1.Geolocation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(callerIpGeo_); - callerIpGeo_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.securitycenter.v1.Geolocation.Builder subBuilder = null; + if (callerIpGeo_ != null) { + subBuilder = callerIpGeo_.toBuilder(); + } + callerIpGeo_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Geolocation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(callerIpGeo_); + callerIpGeo_ = subBuilder.buildPartial(); + } + + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - userAgentFamily_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + userAgentFamily_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - serviceName_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + serviceName_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - methodName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + methodName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,34 +139,39 @@ private Access( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.AccessProto.internal_static_google_cloud_securitycenter_v1_Access_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.AccessProto + .internal_static_google_cloud_securitycenter_v1_Access_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.AccessProto.internal_static_google_cloud_securitycenter_v1_Access_fieldAccessorTable + return com.google.cloud.securitycenter.v1.AccessProto + .internal_static_google_cloud_securitycenter_v1_Access_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Access.class, com.google.cloud.securitycenter.v1.Access.Builder.class); + com.google.cloud.securitycenter.v1.Access.class, + com.google.cloud.securitycenter.v1.Access.Builder.class); } public static final int PRINCIPAL_EMAIL_FIELD_NUMBER = 1; private volatile java.lang.Object principalEmail_; /** + * + * *
    * Associated email, such as "foo@google.com".
    * 
* * string principal_email = 1; + * * @return The principalEmail. */ @java.lang.Override @@ -150,29 +180,29 @@ public java.lang.String getPrincipalEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principalEmail_ = s; return s; } } /** + * + * *
    * Associated email, such as "foo@google.com".
    * 
* * string principal_email = 1; + * * @return The bytes for principalEmail. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrincipalEmailBytes() { + public com.google.protobuf.ByteString getPrincipalEmailBytes() { java.lang.Object ref = principalEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); principalEmail_ = b; return b; } else { @@ -183,11 +213,14 @@ public java.lang.String getPrincipalEmail() { public static final int CALLER_IP_FIELD_NUMBER = 2; private volatile java.lang.Object callerIp_; /** + * + * *
    * Caller's IP address, such as "1.1.1.1".
    * 
* * string caller_ip = 2; + * * @return The callerIp. */ @java.lang.Override @@ -196,29 +229,29 @@ public java.lang.String getCallerIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); callerIp_ = s; return s; } } /** + * + * *
    * Caller's IP address, such as "1.1.1.1".
    * 
* * string caller_ip = 2; + * * @return The bytes for callerIp. */ @java.lang.Override - public com.google.protobuf.ByteString - getCallerIpBytes() { + public com.google.protobuf.ByteString getCallerIpBytes() { java.lang.Object ref = callerIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); callerIp_ = b; return b; } else { @@ -229,11 +262,14 @@ public java.lang.String getCallerIp() { public static final int CALLER_IP_GEO_FIELD_NUMBER = 3; private com.google.cloud.securitycenter.v1.Geolocation callerIpGeo_; /** + * + * *
    * The caller IP's geolocation, which identifies where the call came from.
    * 
* * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + * * @return Whether the callerIpGeo field is set. */ @java.lang.Override @@ -241,18 +277,25 @@ public boolean hasCallerIpGeo() { return callerIpGeo_ != null; } /** + * + * *
    * The caller IP's geolocation, which identifies where the call came from.
    * 
* * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + * * @return The callerIpGeo. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Geolocation getCallerIpGeo() { - return callerIpGeo_ == null ? com.google.cloud.securitycenter.v1.Geolocation.getDefaultInstance() : callerIpGeo_; + return callerIpGeo_ == null + ? com.google.cloud.securitycenter.v1.Geolocation.getDefaultInstance() + : callerIpGeo_; } /** + * + * *
    * The caller IP's geolocation, which identifies where the call came from.
    * 
@@ -267,12 +310,15 @@ public com.google.cloud.securitycenter.v1.GeolocationOrBuilder getCallerIpGeoOrB public static final int USER_AGENT_FAMILY_FIELD_NUMBER = 4; private volatile java.lang.Object userAgentFamily_; /** + * + * *
    * What kind of user agent is associated, e.g. operating system shells,
    * embedded or stand-alone applications, etc.
    * 
* * string user_agent_family = 4; + * * @return The userAgentFamily. */ @java.lang.Override @@ -281,30 +327,30 @@ public java.lang.String getUserAgentFamily() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userAgentFamily_ = s; return s; } } /** + * + * *
    * What kind of user agent is associated, e.g. operating system shells,
    * embedded or stand-alone applications, etc.
    * 
* * string user_agent_family = 4; + * * @return The bytes for userAgentFamily. */ @java.lang.Override - public com.google.protobuf.ByteString - getUserAgentFamilyBytes() { + public com.google.protobuf.ByteString getUserAgentFamilyBytes() { java.lang.Object ref = userAgentFamily_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userAgentFamily_ = b; return b; } else { @@ -315,12 +361,15 @@ public java.lang.String getUserAgentFamily() { public static final int SERVICE_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object serviceName_; /** + * + * *
    * This is the API service that the service account made a call to, e.g.
    * "iam.googleapis.com"
    * 
* * string service_name = 5; + * * @return The serviceName. */ @java.lang.Override @@ -329,30 +378,30 @@ public java.lang.String getServiceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceName_ = s; return s; } } /** + * + * *
    * This is the API service that the service account made a call to, e.g.
    * "iam.googleapis.com"
    * 
* * string service_name = 5; + * * @return The bytes for serviceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceNameBytes() { + public com.google.protobuf.ByteString getServiceNameBytes() { java.lang.Object ref = serviceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceName_ = b; return b; } else { @@ -363,11 +412,14 @@ public java.lang.String getServiceName() { public static final int METHOD_NAME_FIELD_NUMBER = 6; private volatile java.lang.Object methodName_; /** + * + * *
    * The method that the service account called, e.g. "SetIamPolicy".
    * 
* * string method_name = 6; + * * @return The methodName. */ @java.lang.Override @@ -376,29 +428,29 @@ public java.lang.String getMethodName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); methodName_ = s; return s; } } /** + * + * *
    * The method that the service account called, e.g. "SetIamPolicy".
    * 
* * string method_name = 6; + * * @return The bytes for methodName. */ @java.lang.Override - public com.google.protobuf.ByteString - getMethodNameBytes() { + public com.google.protobuf.ByteString getMethodNameBytes() { java.lang.Object ref = methodName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); methodName_ = b; return b; } else { @@ -407,6 +459,7 @@ public java.lang.String getMethodName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -418,8 +471,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(principalEmail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, principalEmail_); } @@ -454,8 +506,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, callerIp_); } if (callerIpGeo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCallerIpGeo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCallerIpGeo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userAgentFamily_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userAgentFamily_); @@ -474,28 +525,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Access)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Access other = (com.google.cloud.securitycenter.v1.Access) obj; + com.google.cloud.securitycenter.v1.Access other = + (com.google.cloud.securitycenter.v1.Access) obj; - if (!getPrincipalEmail() - .equals(other.getPrincipalEmail())) return false; - if (!getCallerIp() - .equals(other.getCallerIp())) return false; + if (!getPrincipalEmail().equals(other.getPrincipalEmail())) return false; + if (!getCallerIp().equals(other.getCallerIp())) return false; if (hasCallerIpGeo() != other.hasCallerIpGeo()) return false; if (hasCallerIpGeo()) { - if (!getCallerIpGeo() - .equals(other.getCallerIpGeo())) return false; - } - if (!getUserAgentFamily() - .equals(other.getUserAgentFamily())) return false; - if (!getServiceName() - .equals(other.getServiceName())) return false; - if (!getMethodName() - .equals(other.getMethodName())) return false; + if (!getCallerIpGeo().equals(other.getCallerIpGeo())) return false; + } + if (!getUserAgentFamily().equals(other.getUserAgentFamily())) return false; + if (!getServiceName().equals(other.getServiceName())) return false; + if (!getMethodName().equals(other.getMethodName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -526,118 +572,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Access parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Access parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Access parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Access parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Access parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Access parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Access parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Access parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Access parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Access parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.Access parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Access parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Access parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Access parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.Access prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents an access event.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Access} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Access) com.google.cloud.securitycenter.v1.AccessOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.AccessProto.internal_static_google_cloud_securitycenter_v1_Access_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.AccessProto + .internal_static_google_cloud_securitycenter_v1_Access_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.AccessProto.internal_static_google_cloud_securitycenter_v1_Access_fieldAccessorTable + return com.google.cloud.securitycenter.v1.AccessProto + .internal_static_google_cloud_securitycenter_v1_Access_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Access.class, com.google.cloud.securitycenter.v1.Access.Builder.class); + com.google.cloud.securitycenter.v1.Access.class, + com.google.cloud.securitycenter.v1.Access.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.Access.newBuilder() @@ -645,16 +700,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -678,9 +732,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.AccessProto.internal_static_google_cloud_securitycenter_v1_Access_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.AccessProto + .internal_static_google_cloud_securitycenter_v1_Access_descriptor; } @java.lang.Override @@ -699,7 +753,8 @@ public com.google.cloud.securitycenter.v1.Access build() { @java.lang.Override public com.google.cloud.securitycenter.v1.Access buildPartial() { - com.google.cloud.securitycenter.v1.Access result = new com.google.cloud.securitycenter.v1.Access(this); + com.google.cloud.securitycenter.v1.Access result = + new com.google.cloud.securitycenter.v1.Access(this); result.principalEmail_ = principalEmail_; result.callerIp_ = callerIp_; if (callerIpGeoBuilder_ == null) { @@ -718,38 +773,39 @@ public com.google.cloud.securitycenter.v1.Access buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.Access) { - return mergeFrom((com.google.cloud.securitycenter.v1.Access)other); + return mergeFrom((com.google.cloud.securitycenter.v1.Access) other); } else { super.mergeFrom(other); return this; @@ -812,18 +868,20 @@ public Builder mergeFrom( private java.lang.Object principalEmail_ = ""; /** + * + * *
      * Associated email, such as "foo@google.com".
      * 
* * string principal_email = 1; + * * @return The principalEmail. */ public java.lang.String getPrincipalEmail() { java.lang.Object ref = principalEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principalEmail_ = s; return s; @@ -832,20 +890,21 @@ public java.lang.String getPrincipalEmail() { } } /** + * + * *
      * Associated email, such as "foo@google.com".
      * 
* * string principal_email = 1; + * * @return The bytes for principalEmail. */ - public com.google.protobuf.ByteString - getPrincipalEmailBytes() { + public com.google.protobuf.ByteString getPrincipalEmailBytes() { java.lang.Object ref = principalEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); principalEmail_ = b; return b; } else { @@ -853,54 +912,61 @@ public java.lang.String getPrincipalEmail() { } } /** + * + * *
      * Associated email, such as "foo@google.com".
      * 
* * string principal_email = 1; + * * @param value The principalEmail to set. * @return This builder for chaining. */ - public Builder setPrincipalEmail( - java.lang.String value) { + public Builder setPrincipalEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + principalEmail_ = value; onChanged(); return this; } /** + * + * *
      * Associated email, such as "foo@google.com".
      * 
* * string principal_email = 1; + * * @return This builder for chaining. */ public Builder clearPrincipalEmail() { - + principalEmail_ = getDefaultInstance().getPrincipalEmail(); onChanged(); return this; } /** + * + * *
      * Associated email, such as "foo@google.com".
      * 
* * string principal_email = 1; + * * @param value The bytes for principalEmail to set. * @return This builder for chaining. */ - public Builder setPrincipalEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setPrincipalEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principalEmail_ = value; onChanged(); return this; @@ -908,18 +974,20 @@ public Builder setPrincipalEmailBytes( private java.lang.Object callerIp_ = ""; /** + * + * *
      * Caller's IP address, such as "1.1.1.1".
      * 
* * string caller_ip = 2; + * * @return The callerIp. */ public java.lang.String getCallerIp() { java.lang.Object ref = callerIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); callerIp_ = s; return s; @@ -928,20 +996,21 @@ public java.lang.String getCallerIp() { } } /** + * + * *
      * Caller's IP address, such as "1.1.1.1".
      * 
* * string caller_ip = 2; + * * @return The bytes for callerIp. */ - public com.google.protobuf.ByteString - getCallerIpBytes() { + public com.google.protobuf.ByteString getCallerIpBytes() { java.lang.Object ref = callerIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); callerIp_ = b; return b; } else { @@ -949,54 +1018,61 @@ public java.lang.String getCallerIp() { } } /** + * + * *
      * Caller's IP address, such as "1.1.1.1".
      * 
* * string caller_ip = 2; + * * @param value The callerIp to set. * @return This builder for chaining. */ - public Builder setCallerIp( - java.lang.String value) { + public Builder setCallerIp(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + callerIp_ = value; onChanged(); return this; } /** + * + * *
      * Caller's IP address, such as "1.1.1.1".
      * 
* * string caller_ip = 2; + * * @return This builder for chaining. */ public Builder clearCallerIp() { - + callerIp_ = getDefaultInstance().getCallerIp(); onChanged(); return this; } /** + * + * *
      * Caller's IP address, such as "1.1.1.1".
      * 
* * string caller_ip = 2; + * * @param value The bytes for callerIp to set. * @return This builder for chaining. */ - public Builder setCallerIpBytes( - com.google.protobuf.ByteString value) { + public Builder setCallerIpBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + callerIp_ = value; onChanged(); return this; @@ -1004,34 +1080,47 @@ public Builder setCallerIpBytes( private com.google.cloud.securitycenter.v1.Geolocation callerIpGeo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Geolocation, com.google.cloud.securitycenter.v1.Geolocation.Builder, com.google.cloud.securitycenter.v1.GeolocationOrBuilder> callerIpGeoBuilder_; + com.google.cloud.securitycenter.v1.Geolocation, + com.google.cloud.securitycenter.v1.Geolocation.Builder, + com.google.cloud.securitycenter.v1.GeolocationOrBuilder> + callerIpGeoBuilder_; /** + * + * *
      * The caller IP's geolocation, which identifies where the call came from.
      * 
* * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + * * @return Whether the callerIpGeo field is set. */ public boolean hasCallerIpGeo() { return callerIpGeoBuilder_ != null || callerIpGeo_ != null; } /** + * + * *
      * The caller IP's geolocation, which identifies where the call came from.
      * 
* * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + * * @return The callerIpGeo. */ public com.google.cloud.securitycenter.v1.Geolocation getCallerIpGeo() { if (callerIpGeoBuilder_ == null) { - return callerIpGeo_ == null ? com.google.cloud.securitycenter.v1.Geolocation.getDefaultInstance() : callerIpGeo_; + return callerIpGeo_ == null + ? com.google.cloud.securitycenter.v1.Geolocation.getDefaultInstance() + : callerIpGeo_; } else { return callerIpGeoBuilder_.getMessage(); } } /** + * + * *
      * The caller IP's geolocation, which identifies where the call came from.
      * 
@@ -1052,6 +1141,8 @@ public Builder setCallerIpGeo(com.google.cloud.securitycenter.v1.Geolocation val return this; } /** + * + * *
      * The caller IP's geolocation, which identifies where the call came from.
      * 
@@ -1070,6 +1161,8 @@ public Builder setCallerIpGeo( return this; } /** + * + * *
      * The caller IP's geolocation, which identifies where the call came from.
      * 
@@ -1080,7 +1173,9 @@ public Builder mergeCallerIpGeo(com.google.cloud.securitycenter.v1.Geolocation v if (callerIpGeoBuilder_ == null) { if (callerIpGeo_ != null) { callerIpGeo_ = - com.google.cloud.securitycenter.v1.Geolocation.newBuilder(callerIpGeo_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.Geolocation.newBuilder(callerIpGeo_) + .mergeFrom(value) + .buildPartial(); } else { callerIpGeo_ = value; } @@ -1092,6 +1187,8 @@ public Builder mergeCallerIpGeo(com.google.cloud.securitycenter.v1.Geolocation v return this; } /** + * + * *
      * The caller IP's geolocation, which identifies where the call came from.
      * 
@@ -1110,6 +1207,8 @@ public Builder clearCallerIpGeo() { return this; } /** + * + * *
      * The caller IP's geolocation, which identifies where the call came from.
      * 
@@ -1117,11 +1216,13 @@ public Builder clearCallerIpGeo() { * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; */ public com.google.cloud.securitycenter.v1.Geolocation.Builder getCallerIpGeoBuilder() { - + onChanged(); return getCallerIpGeoFieldBuilder().getBuilder(); } /** + * + * *
      * The caller IP's geolocation, which identifies where the call came from.
      * 
@@ -1132,11 +1233,14 @@ public com.google.cloud.securitycenter.v1.GeolocationOrBuilder getCallerIpGeoOrB if (callerIpGeoBuilder_ != null) { return callerIpGeoBuilder_.getMessageOrBuilder(); } else { - return callerIpGeo_ == null ? - com.google.cloud.securitycenter.v1.Geolocation.getDefaultInstance() : callerIpGeo_; + return callerIpGeo_ == null + ? com.google.cloud.securitycenter.v1.Geolocation.getDefaultInstance() + : callerIpGeo_; } } /** + * + * *
      * The caller IP's geolocation, which identifies where the call came from.
      * 
@@ -1144,14 +1248,17 @@ public com.google.cloud.securitycenter.v1.GeolocationOrBuilder getCallerIpGeoOrB * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Geolocation, com.google.cloud.securitycenter.v1.Geolocation.Builder, com.google.cloud.securitycenter.v1.GeolocationOrBuilder> + com.google.cloud.securitycenter.v1.Geolocation, + com.google.cloud.securitycenter.v1.Geolocation.Builder, + com.google.cloud.securitycenter.v1.GeolocationOrBuilder> getCallerIpGeoFieldBuilder() { if (callerIpGeoBuilder_ == null) { - callerIpGeoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Geolocation, com.google.cloud.securitycenter.v1.Geolocation.Builder, com.google.cloud.securitycenter.v1.GeolocationOrBuilder>( - getCallerIpGeo(), - getParentForChildren(), - isClean()); + callerIpGeoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Geolocation, + com.google.cloud.securitycenter.v1.Geolocation.Builder, + com.google.cloud.securitycenter.v1.GeolocationOrBuilder>( + getCallerIpGeo(), getParentForChildren(), isClean()); callerIpGeo_ = null; } return callerIpGeoBuilder_; @@ -1159,19 +1266,21 @@ public com.google.cloud.securitycenter.v1.GeolocationOrBuilder getCallerIpGeoOrB private java.lang.Object userAgentFamily_ = ""; /** + * + * *
      * What kind of user agent is associated, e.g. operating system shells,
      * embedded or stand-alone applications, etc.
      * 
* * string user_agent_family = 4; + * * @return The userAgentFamily. */ public java.lang.String getUserAgentFamily() { java.lang.Object ref = userAgentFamily_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userAgentFamily_ = s; return s; @@ -1180,21 +1289,22 @@ public java.lang.String getUserAgentFamily() { } } /** + * + * *
      * What kind of user agent is associated, e.g. operating system shells,
      * embedded or stand-alone applications, etc.
      * 
* * string user_agent_family = 4; + * * @return The bytes for userAgentFamily. */ - public com.google.protobuf.ByteString - getUserAgentFamilyBytes() { + public com.google.protobuf.ByteString getUserAgentFamilyBytes() { java.lang.Object ref = userAgentFamily_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userAgentFamily_ = b; return b; } else { @@ -1202,57 +1312,64 @@ public java.lang.String getUserAgentFamily() { } } /** + * + * *
      * What kind of user agent is associated, e.g. operating system shells,
      * embedded or stand-alone applications, etc.
      * 
* * string user_agent_family = 4; + * * @param value The userAgentFamily to set. * @return This builder for chaining. */ - public Builder setUserAgentFamily( - java.lang.String value) { + public Builder setUserAgentFamily(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + userAgentFamily_ = value; onChanged(); return this; } /** + * + * *
      * What kind of user agent is associated, e.g. operating system shells,
      * embedded or stand-alone applications, etc.
      * 
* * string user_agent_family = 4; + * * @return This builder for chaining. */ public Builder clearUserAgentFamily() { - + userAgentFamily_ = getDefaultInstance().getUserAgentFamily(); onChanged(); return this; } /** + * + * *
      * What kind of user agent is associated, e.g. operating system shells,
      * embedded or stand-alone applications, etc.
      * 
* * string user_agent_family = 4; + * * @param value The bytes for userAgentFamily to set. * @return This builder for chaining. */ - public Builder setUserAgentFamilyBytes( - com.google.protobuf.ByteString value) { + public Builder setUserAgentFamilyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userAgentFamily_ = value; onChanged(); return this; @@ -1260,19 +1377,21 @@ public Builder setUserAgentFamilyBytes( private java.lang.Object serviceName_ = ""; /** + * + * *
      * This is the API service that the service account made a call to, e.g.
      * "iam.googleapis.com"
      * 
* * string service_name = 5; + * * @return The serviceName. */ public java.lang.String getServiceName() { java.lang.Object ref = serviceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceName_ = s; return s; @@ -1281,21 +1400,22 @@ public java.lang.String getServiceName() { } } /** + * + * *
      * This is the API service that the service account made a call to, e.g.
      * "iam.googleapis.com"
      * 
* * string service_name = 5; + * * @return The bytes for serviceName. */ - public com.google.protobuf.ByteString - getServiceNameBytes() { + public com.google.protobuf.ByteString getServiceNameBytes() { java.lang.Object ref = serviceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceName_ = b; return b; } else { @@ -1303,57 +1423,64 @@ public java.lang.String getServiceName() { } } /** + * + * *
      * This is the API service that the service account made a call to, e.g.
      * "iam.googleapis.com"
      * 
* * string service_name = 5; + * * @param value The serviceName to set. * @return This builder for chaining. */ - public Builder setServiceName( - java.lang.String value) { + public Builder setServiceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceName_ = value; onChanged(); return this; } /** + * + * *
      * This is the API service that the service account made a call to, e.g.
      * "iam.googleapis.com"
      * 
* * string service_name = 5; + * * @return This builder for chaining. */ public Builder clearServiceName() { - + serviceName_ = getDefaultInstance().getServiceName(); onChanged(); return this; } /** + * + * *
      * This is the API service that the service account made a call to, e.g.
      * "iam.googleapis.com"
      * 
* * string service_name = 5; + * * @param value The bytes for serviceName to set. * @return This builder for chaining. */ - public Builder setServiceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceName_ = value; onChanged(); return this; @@ -1361,18 +1488,20 @@ public Builder setServiceNameBytes( private java.lang.Object methodName_ = ""; /** + * + * *
      * The method that the service account called, e.g. "SetIamPolicy".
      * 
* * string method_name = 6; + * * @return The methodName. */ public java.lang.String getMethodName() { java.lang.Object ref = methodName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); methodName_ = s; return s; @@ -1381,20 +1510,21 @@ public java.lang.String getMethodName() { } } /** + * + * *
      * The method that the service account called, e.g. "SetIamPolicy".
      * 
* * string method_name = 6; + * * @return The bytes for methodName. */ - public com.google.protobuf.ByteString - getMethodNameBytes() { + public com.google.protobuf.ByteString getMethodNameBytes() { java.lang.Object ref = methodName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); methodName_ = b; return b; } else { @@ -1402,61 +1532,68 @@ public java.lang.String getMethodName() { } } /** + * + * *
      * The method that the service account called, e.g. "SetIamPolicy".
      * 
* * string method_name = 6; + * * @param value The methodName to set. * @return This builder for chaining. */ - public Builder setMethodName( - java.lang.String value) { + public Builder setMethodName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + methodName_ = value; onChanged(); return this; } /** + * + * *
      * The method that the service account called, e.g. "SetIamPolicy".
      * 
* * string method_name = 6; + * * @return This builder for chaining. */ public Builder clearMethodName() { - + methodName_ = getDefaultInstance().getMethodName(); onChanged(); return this; } /** + * + * *
      * The method that the service account called, e.g. "SetIamPolicy".
      * 
* * string method_name = 6; + * * @param value The bytes for methodName to set. * @return This builder for chaining. */ - public Builder setMethodNameBytes( - com.google.protobuf.ByteString value) { + public Builder setMethodNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + methodName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1466,12 +1603,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Access) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Access) private static final com.google.cloud.securitycenter.v1.Access DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Access(); } @@ -1480,16 +1617,16 @@ public static com.google.cloud.securitycenter.v1.Access getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Access parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Access(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Access parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Access(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1504,6 +1641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Access getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessOrBuilder.java index e377e2fac..d30c7599c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessOrBuilder.java @@ -1,71 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/access.proto package com.google.cloud.securitycenter.v1; -public interface AccessOrBuilder extends +public interface AccessOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Access) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Associated email, such as "foo@google.com".
    * 
* * string principal_email = 1; + * * @return The principalEmail. */ java.lang.String getPrincipalEmail(); /** + * + * *
    * Associated email, such as "foo@google.com".
    * 
* * string principal_email = 1; + * * @return The bytes for principalEmail. */ - com.google.protobuf.ByteString - getPrincipalEmailBytes(); + com.google.protobuf.ByteString getPrincipalEmailBytes(); /** + * + * *
    * Caller's IP address, such as "1.1.1.1".
    * 
* * string caller_ip = 2; + * * @return The callerIp. */ java.lang.String getCallerIp(); /** + * + * *
    * Caller's IP address, such as "1.1.1.1".
    * 
* * string caller_ip = 2; + * * @return The bytes for callerIp. */ - com.google.protobuf.ByteString - getCallerIpBytes(); + com.google.protobuf.ByteString getCallerIpBytes(); /** + * + * *
    * The caller IP's geolocation, which identifies where the call came from.
    * 
* * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + * * @return Whether the callerIpGeo field is set. */ boolean hasCallerIpGeo(); /** + * + * *
    * The caller IP's geolocation, which identifies where the call came from.
    * 
* * .google.cloud.securitycenter.v1.Geolocation caller_ip_geo = 3; + * * @return The callerIpGeo. */ com.google.cloud.securitycenter.v1.Geolocation getCallerIpGeo(); /** + * + * *
    * The caller IP's geolocation, which identifies where the call came from.
    * 
@@ -75,66 +109,81 @@ public interface AccessOrBuilder extends com.google.cloud.securitycenter.v1.GeolocationOrBuilder getCallerIpGeoOrBuilder(); /** + * + * *
    * What kind of user agent is associated, e.g. operating system shells,
    * embedded or stand-alone applications, etc.
    * 
* * string user_agent_family = 4; + * * @return The userAgentFamily. */ java.lang.String getUserAgentFamily(); /** + * + * *
    * What kind of user agent is associated, e.g. operating system shells,
    * embedded or stand-alone applications, etc.
    * 
* * string user_agent_family = 4; + * * @return The bytes for userAgentFamily. */ - com.google.protobuf.ByteString - getUserAgentFamilyBytes(); + com.google.protobuf.ByteString getUserAgentFamilyBytes(); /** + * + * *
    * This is the API service that the service account made a call to, e.g.
    * "iam.googleapis.com"
    * 
* * string service_name = 5; + * * @return The serviceName. */ java.lang.String getServiceName(); /** + * + * *
    * This is the API service that the service account made a call to, e.g.
    * "iam.googleapis.com"
    * 
* * string service_name = 5; + * * @return The bytes for serviceName. */ - com.google.protobuf.ByteString - getServiceNameBytes(); + com.google.protobuf.ByteString getServiceNameBytes(); /** + * + * *
    * The method that the service account called, e.g. "SetIamPolicy".
    * 
* * string method_name = 6; + * * @return The methodName. */ java.lang.String getMethodName(); /** + * + * *
    * The method that the service account called, e.g. "SetIamPolicy".
    * 
* * string method_name = 6; + * * @return The bytes for methodName. */ - com.google.protobuf.ByteString - getMethodNameBytes(); + com.google.protobuf.ByteString getMethodNameBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessProto.java new file mode 100644 index 000000000..efcf4ec4d --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AccessProto.java @@ -0,0 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/access.proto + +package com.google.cloud.securitycenter.v1; + +public final class AccessProto { + private AccessProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Access_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Access_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Geolocation_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/securitycenter/v1/access." + + "proto\022\036google.cloud.securitycenter.v1\"\276\001" + + "\n\006Access\022\027\n\017principal_email\030\001 \001(\t\022\021\n\tcal" + + "ler_ip\030\002 \001(\t\022B\n\rcaller_ip_geo\030\003 \001(\0132+.go" + + "ogle.cloud.securitycenter.v1.Geolocation" + + "\022\031\n\021user_agent_family\030\004 \001(\t\022\024\n\014service_n" + + "ame\030\005 \001(\t\022\023\n\013method_name\030\006 \001(\t\"\"\n\013Geoloc" + + "ation\022\023\n\013region_code\030\001 \001(\tB\347\001\n\"com.googl" + + "e.cloud.securitycenter.v1B\013AccessProtoP\001" + + "ZLgoogle.golang.org/genproto/googleapis/" + + "cloud/securitycenter/v1;securitycenter\252\002" + + "\036Google.Cloud.SecurityCenter.V1\312\002\036Google" + + "\\Cloud\\SecurityCenter\\V1\352\002!Google::Cloud" + + "::SecurityCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_securitycenter_v1_Access_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Access_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Access_descriptor, + new java.lang.String[] { + "PrincipalEmail", + "CallerIp", + "CallerIpGeo", + "UserAgentFamily", + "ServiceName", + "MethodName", + }); + internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_securitycenter_v1_Geolocation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor, + new java.lang.String[] { + "RegionCode", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java index fefa03084..7dded4b14 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/asset.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Security Command Center representation of a Google Cloud
  * resource.
@@ -15,15 +32,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.Asset}
  */
-public final class Asset extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Asset extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Asset)
     AssetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Asset.newBuilder() to construct.
   private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Asset() {
     name_ = "";
     canonicalName_ = "";
@@ -31,16 +49,15 @@ private Asset() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Asset();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Asset(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,103 +77,126 @@ private Asset(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder subBuilder = null;
-            if (securityCenterProperties_ != null) {
-              subBuilder = securityCenterProperties_.toBuilder();
-            }
-            securityCenterProperties_ = input.readMessage(com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(securityCenterProperties_);
-              securityCenterProperties_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder subBuilder =
+                  null;
+              if (securityCenterProperties_ != null) {
+                subBuilder = securityCenterProperties_.toBuilder();
+              }
+              securityCenterProperties_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(securityCenterProperties_);
+                securityCenterProperties_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 58: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              resourceProperties_ = com.google.protobuf.MapField.newMapField(
-                  ResourcePropertiesDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
-            }
-            com.google.protobuf.MapEntry
-            resourceProperties__ = input.readMessage(
-                ResourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            resourceProperties_.getMutableMap().put(
-                resourceProperties__.getKey(), resourceProperties__.getValue());
-            break;
-          }
-          case 66: {
-            com.google.cloud.securitycenter.v1.SecurityMarks.Builder subBuilder = null;
-            if (securityMarks_ != null) {
-              subBuilder = securityMarks_.toBuilder();
+              break;
             }
-            securityMarks_ = input.readMessage(com.google.cloud.securitycenter.v1.SecurityMarks.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(securityMarks_);
-              securityMarks_ = subBuilder.buildPartial();
+          case 58:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                resourceProperties_ =
+                    com.google.protobuf.MapField.newMapField(
+                        ResourcePropertiesDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry
+                  resourceProperties__ =
+                      input.readMessage(
+                          ResourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
+                          extensionRegistry);
+              resourceProperties_
+                  .getMutableMap()
+                  .put(resourceProperties__.getKey(), resourceProperties__.getValue());
+              break;
             }
+          case 66:
+            {
+              com.google.cloud.securitycenter.v1.SecurityMarks.Builder subBuilder = null;
+              if (securityMarks_ != null) {
+                subBuilder = securityMarks_.toBuilder();
+              }
+              securityMarks_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1.SecurityMarks.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(securityMarks_);
+                securityMarks_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 74: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
-            }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+              break;
             }
+          case 74:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 82: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
-            }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+              break;
             }
+          case 82:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 90: {
-            com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder subBuilder = null;
-            if (iamPolicy_ != null) {
-              subBuilder = iamPolicy_.toBuilder();
-            }
-            iamPolicy_ = input.readMessage(com.google.cloud.securitycenter.v1.Asset.IamPolicy.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(iamPolicy_);
-              iamPolicy_ = subBuilder.buildPartial();
+              break;
             }
+          case 90:
+            {
+              com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder subBuilder = null;
+              if (iamPolicy_ != null) {
+                subBuilder = iamPolicy_.toBuilder();
+              }
+              iamPolicy_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1.Asset.IamPolicy.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(iamPolicy_);
+                iamPolicy_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 106: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 106:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            canonicalName_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              canonicalName_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -164,43 +204,47 @@ private Asset(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1.AssetOuterClass
+        .internal_static_google_cloud_securitycenter_v1_Asset_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 7:
         return internalGetResourceProperties();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.AssetOuterClass
+        .internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.Asset.class, com.google.cloud.securitycenter.v1.Asset.Builder.class);
+            com.google.cloud.securitycenter.v1.Asset.class,
+            com.google.cloud.securitycenter.v1.Asset.Builder.class);
   }
 
-  public interface SecurityCenterPropertiesOrBuilder extends
+  public interface SecurityCenterPropertiesOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Asset.SecurityCenterProperties)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -208,10 +252,13 @@ public interface SecurityCenterPropertiesOrBuilder extends
      * 
* * string resource_name = 1; + * * @return The resourceName. */ java.lang.String getResourceName(); /** + * + * *
      * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -219,12 +266,14 @@ public interface SecurityCenterPropertiesOrBuilder extends
      * 
* * string resource_name = 1; + * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString - getResourceNameBytes(); + com.google.protobuf.ByteString getResourceNameBytes(); /** + * + * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -233,10 +282,13 @@ public interface SecurityCenterPropertiesOrBuilder extends
      * 
* * string resource_type = 2; + * * @return The resourceType. */ java.lang.String getResourceType(); /** + * + * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -245,157 +297,194 @@ public interface SecurityCenterPropertiesOrBuilder extends
      * 
* * string resource_type = 2; + * * @return The bytes for resourceType. */ - com.google.protobuf.ByteString - getResourceTypeBytes(); + com.google.protobuf.ByteString getResourceTypeBytes(); /** + * + * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; + * * @return The resourceParent. */ java.lang.String getResourceParent(); /** + * + * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; + * * @return The bytes for resourceParent. */ - com.google.protobuf.ByteString - getResourceParentBytes(); + com.google.protobuf.ByteString getResourceParentBytes(); /** + * + * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; + * * @return The resourceProject. */ java.lang.String getResourceProject(); /** + * + * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; + * * @return The bytes for resourceProject. */ - com.google.protobuf.ByteString - getResourceProjectBytes(); + com.google.protobuf.ByteString getResourceProjectBytes(); /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @return A list containing the resourceOwners. */ - java.util.List - getResourceOwnersList(); + java.util.List getResourceOwnersList(); /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @return The count of resourceOwners. */ int getResourceOwnersCount(); /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ java.lang.String getResourceOwners(int index); /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ - com.google.protobuf.ByteString - getResourceOwnersBytes(int index); + com.google.protobuf.ByteString getResourceOwnersBytes(int index); /** + * + * *
      * The user defined display name for this resource.
      * 
* * string resource_display_name = 6; + * * @return The resourceDisplayName. */ java.lang.String getResourceDisplayName(); /** + * + * *
      * The user defined display name for this resource.
      * 
* * string resource_display_name = 6; + * * @return The bytes for resourceDisplayName. */ - com.google.protobuf.ByteString - getResourceDisplayNameBytes(); + com.google.protobuf.ByteString getResourceDisplayNameBytes(); /** + * + * *
      * The user defined display name for the parent of this resource.
      * 
* * string resource_parent_display_name = 7; + * * @return The resourceParentDisplayName. */ java.lang.String getResourceParentDisplayName(); /** + * + * *
      * The user defined display name for the parent of this resource.
      * 
* * string resource_parent_display_name = 7; + * * @return The bytes for resourceParentDisplayName. */ - com.google.protobuf.ByteString - getResourceParentDisplayNameBytes(); + com.google.protobuf.ByteString getResourceParentDisplayNameBytes(); /** + * + * *
      * The user defined display name for the project of this resource.
      * 
* * string resource_project_display_name = 8; + * * @return The resourceProjectDisplayName. */ java.lang.String getResourceProjectDisplayName(); /** + * + * *
      * The user defined display name for the project of this resource.
      * 
* * string resource_project_display_name = 8; + * * @return The bytes for resourceProjectDisplayName. */ - com.google.protobuf.ByteString - getResourceProjectDisplayNameBytes(); + com.google.protobuf.ByteString getResourceProjectDisplayNameBytes(); /** + * + * *
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -404,9 +493,10 @@ public interface SecurityCenterPropertiesOrBuilder extends
      *
      * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
      */
-    java.util.List 
-        getFoldersList();
+    java.util.List getFoldersList();
     /**
+     *
+     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -417,6 +507,8 @@ public interface SecurityCenterPropertiesOrBuilder extends
      */
     com.google.cloud.securitycenter.v1.Folder getFolders(int index);
     /**
+     *
+     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -427,6 +519,8 @@ public interface SecurityCenterPropertiesOrBuilder extends
      */
     int getFoldersCount();
     /**
+     *
+     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -435,9 +529,11 @@ public interface SecurityCenterPropertiesOrBuilder extends
      *
      * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
      */
-    java.util.List 
+    java.util.List
         getFoldersOrBuilderList();
     /**
+     *
+     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -446,10 +542,11 @@ public interface SecurityCenterPropertiesOrBuilder extends
      *
      * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
      */
-    com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(
-        int index);
+    com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index);
   }
   /**
+   *
+   *
    * 
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
@@ -457,15 +554,16 @@ com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.Asset.SecurityCenterProperties}
    */
-  public static final class SecurityCenterProperties extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class SecurityCenterProperties extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Asset.SecurityCenterProperties)
       SecurityCenterPropertiesOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use SecurityCenterProperties.newBuilder() to construct.
     private SecurityCenterProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private SecurityCenterProperties() {
       resourceName_ = "";
       resourceType_ = "";
@@ -480,16 +578,15 @@ private SecurityCenterProperties() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new SecurityCenterProperties();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private SecurityCenterProperties(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -509,73 +606,83 @@ private SecurityCenterProperties(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              resourceName_ = s;
-              break;
-            }
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
+                resourceName_ = s;
+                break;
+              }
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              resourceType_ = s;
-              break;
-            }
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
+                resourceType_ = s;
+                break;
+              }
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              resourceParent_ = s;
-              break;
-            }
-            case 34: {
-              java.lang.String s = input.readStringRequireUtf8();
+                resourceParent_ = s;
+                break;
+              }
+            case 34:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              resourceProject_ = s;
-              break;
-            }
-            case 42: {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                resourceOwners_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
+                resourceProject_ = s;
+                break;
               }
-              resourceOwners_.add(s);
-              break;
-            }
-            case 50: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 42:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  resourceOwners_ = new com.google.protobuf.LazyStringArrayList();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                resourceOwners_.add(s);
+                break;
+              }
+            case 50:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              resourceDisplayName_ = s;
-              break;
-            }
-            case 58: {
-              java.lang.String s = input.readStringRequireUtf8();
+                resourceDisplayName_ = s;
+                break;
+              }
+            case 58:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              resourceParentDisplayName_ = s;
-              break;
-            }
-            case 66: {
-              java.lang.String s = input.readStringRequireUtf8();
+                resourceParentDisplayName_ = s;
+                break;
+              }
+            case 66:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              resourceProjectDisplayName_ = s;
-              break;
-            }
-            case 82: {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                folders_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
+                resourceProjectDisplayName_ = s;
+                break;
               }
-              folders_.add(
-                  input.readMessage(com.google.cloud.securitycenter.v1.Folder.parser(), extensionRegistry));
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            case 82:
+              {
+                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                  folders_ = new java.util.ArrayList();
+                  mutable_bitField0_ |= 0x00000002;
+                }
+                folders_.add(
+                    input.readMessage(
+                        com.google.cloud.securitycenter.v1.Folder.parser(), extensionRegistry));
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -583,8 +690,7 @@ private SecurityCenterProperties(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           resourceOwners_ = resourceOwners_.getUnmodifiableView();
@@ -596,22 +702,27 @@ private SecurityCenterProperties(
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.AssetOuterClass
+          .internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.AssetOuterClass
+          .internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.class, com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder.class);
+              com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.class,
+              com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder.class);
     }
 
     public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
     private volatile java.lang.Object resourceName_;
     /**
+     *
+     *
      * 
      * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -619,6 +730,7 @@ private SecurityCenterProperties(
      * 
* * string resource_name = 1; + * * @return The resourceName. */ @java.lang.Override @@ -627,14 +739,15 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** + * + * *
      * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -642,16 +755,15 @@ public java.lang.String getResourceName() {
      * 
* * string resource_name = 1; + * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -662,6 +774,8 @@ public java.lang.String getResourceName() { public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object resourceType_; /** + * + * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -670,6 +784,7 @@ public java.lang.String getResourceName() {
      * 
* * string resource_type = 2; + * * @return The resourceType. */ @java.lang.Override @@ -678,14 +793,15 @@ public java.lang.String getResourceType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; } } /** + * + * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -694,16 +810,15 @@ public java.lang.String getResourceType() {
      * 
* * string resource_type = 2; + * * @return The bytes for resourceType. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceTypeBytes() { + public com.google.protobuf.ByteString getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceType_ = b; return b; } else { @@ -714,12 +829,15 @@ public java.lang.String getResourceType() { public static final int RESOURCE_PARENT_FIELD_NUMBER = 3; private volatile java.lang.Object resourceParent_; /** + * + * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; + * * @return The resourceParent. */ @java.lang.Override @@ -728,30 +846,30 @@ public java.lang.String getResourceParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParent_ = s; return s; } } /** + * + * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; + * * @return The bytes for resourceParent. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceParentBytes() { + public com.google.protobuf.ByteString getResourceParentBytes() { java.lang.Object ref = resourceParent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceParent_ = b; return b; } else { @@ -762,12 +880,15 @@ public java.lang.String getResourceParent() { public static final int RESOURCE_PROJECT_FIELD_NUMBER = 4; private volatile java.lang.Object resourceProject_; /** + * + * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; + * * @return The resourceProject. */ @java.lang.Override @@ -776,30 +897,30 @@ public java.lang.String getResourceProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProject_ = s; return s; } } /** + * + * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; + * * @return The bytes for resourceProject. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceProjectBytes() { + public com.google.protobuf.ByteString getResourceProjectBytes() { java.lang.Object ref = resourceProject_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceProject_ = b; return b; } else { @@ -810,34 +931,42 @@ public java.lang.String getResourceProject() { public static final int RESOURCE_OWNERS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList resourceOwners_; /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @return A list containing the resourceOwners. */ - public com.google.protobuf.ProtocolStringList - getResourceOwnersList() { + public com.google.protobuf.ProtocolStringList getResourceOwnersList() { return resourceOwners_; } /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @return The count of resourceOwners. */ public int getResourceOwnersCount() { return resourceOwners_.size(); } /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ @@ -845,27 +974,32 @@ public java.lang.String getResourceOwners(int index) { return resourceOwners_.get(index); } /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ - public com.google.protobuf.ByteString - getResourceOwnersBytes(int index) { + public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { return resourceOwners_.getByteString(index); } public static final int RESOURCE_DISPLAY_NAME_FIELD_NUMBER = 6; private volatile java.lang.Object resourceDisplayName_; /** + * + * *
      * The user defined display name for this resource.
      * 
* * string resource_display_name = 6; + * * @return The resourceDisplayName. */ @java.lang.Override @@ -874,29 +1008,29 @@ public java.lang.String getResourceDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceDisplayName_ = s; return s; } } /** + * + * *
      * The user defined display name for this resource.
      * 
* * string resource_display_name = 6; + * * @return The bytes for resourceDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceDisplayNameBytes() { + public com.google.protobuf.ByteString getResourceDisplayNameBytes() { java.lang.Object ref = resourceDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceDisplayName_ = b; return b; } else { @@ -907,11 +1041,14 @@ public java.lang.String getResourceDisplayName() { public static final int RESOURCE_PARENT_DISPLAY_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object resourceParentDisplayName_; /** + * + * *
      * The user defined display name for the parent of this resource.
      * 
* * string resource_parent_display_name = 7; + * * @return The resourceParentDisplayName. */ @java.lang.Override @@ -920,29 +1057,29 @@ public java.lang.String getResourceParentDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParentDisplayName_ = s; return s; } } /** + * + * *
      * The user defined display name for the parent of this resource.
      * 
* * string resource_parent_display_name = 7; + * * @return The bytes for resourceParentDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceParentDisplayNameBytes() { + public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() { java.lang.Object ref = resourceParentDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceParentDisplayName_ = b; return b; } else { @@ -953,11 +1090,14 @@ public java.lang.String getResourceParentDisplayName() { public static final int RESOURCE_PROJECT_DISPLAY_NAME_FIELD_NUMBER = 8; private volatile java.lang.Object resourceProjectDisplayName_; /** + * + * *
      * The user defined display name for the project of this resource.
      * 
* * string resource_project_display_name = 8; + * * @return The resourceProjectDisplayName. */ @java.lang.Override @@ -966,29 +1106,29 @@ public java.lang.String getResourceProjectDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProjectDisplayName_ = s; return s; } } /** + * + * *
      * The user defined display name for the project of this resource.
      * 
* * string resource_project_display_name = 8; + * * @return The bytes for resourceProjectDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceProjectDisplayNameBytes() { + public com.google.protobuf.ByteString getResourceProjectDisplayNameBytes() { java.lang.Object ref = resourceProjectDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceProjectDisplayName_ = b; return b; } else { @@ -999,6 +1139,8 @@ public java.lang.String getResourceProjectDisplayName() { public static final int FOLDERS_FIELD_NUMBER = 10; private java.util.List folders_; /** + * + * *
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -1012,6 +1154,8 @@ public java.util.List getFoldersList(
       return folders_;
     }
     /**
+     *
+     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -1021,11 +1165,13 @@ public java.util.List getFoldersList(
      * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
      */
     @java.lang.Override
-    public java.util.List 
+    public java.util.List
         getFoldersOrBuilderList() {
       return folders_;
     }
     /**
+     *
+     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -1039,6 +1185,8 @@ public int getFoldersCount() {
       return folders_.size();
     }
     /**
+     *
+     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -1052,6 +1200,8 @@ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) {
       return folders_.get(index);
     }
     /**
+     *
+     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -1061,12 +1211,12 @@ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) {
      * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
      */
     @java.lang.Override
-    public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(
-        int index) {
+    public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index) {
       return folders_.get(index);
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -1078,8 +1228,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
       }
@@ -1140,14 +1289,16 @@ public int getSerializedSize() {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, resourceDisplayName_);
       }
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceParentDisplayName_)) {
-        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, resourceParentDisplayName_);
+        size +=
+            com.google.protobuf.GeneratedMessageV3.computeStringSize(7, resourceParentDisplayName_);
       }
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceProjectDisplayName_)) {
-        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, resourceProjectDisplayName_);
+        size +=
+            com.google.protobuf.GeneratedMessageV3.computeStringSize(
+                8, resourceProjectDisplayName_);
       }
       for (int i = 0; i < folders_.size(); i++) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(10, folders_.get(i));
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, folders_.get(i));
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -1157,31 +1308,25 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
       if (!(obj instanceof com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties)) {
         return super.equals(obj);
       }
-      com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties other = (com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties) obj;
-
-      if (!getResourceName()
-          .equals(other.getResourceName())) return false;
-      if (!getResourceType()
-          .equals(other.getResourceType())) return false;
-      if (!getResourceParent()
-          .equals(other.getResourceParent())) return false;
-      if (!getResourceProject()
-          .equals(other.getResourceProject())) return false;
-      if (!getResourceOwnersList()
-          .equals(other.getResourceOwnersList())) return false;
-      if (!getResourceDisplayName()
-          .equals(other.getResourceDisplayName())) return false;
-      if (!getResourceParentDisplayName()
-          .equals(other.getResourceParentDisplayName())) return false;
-      if (!getResourceProjectDisplayName()
-          .equals(other.getResourceProjectDisplayName())) return false;
-      if (!getFoldersList()
-          .equals(other.getFoldersList())) return false;
+      com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties other =
+          (com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties) obj;
+
+      if (!getResourceName().equals(other.getResourceName())) return false;
+      if (!getResourceType().equals(other.getResourceType())) return false;
+      if (!getResourceParent().equals(other.getResourceParent())) return false;
+      if (!getResourceProject().equals(other.getResourceProject())) return false;
+      if (!getResourceOwnersList().equals(other.getResourceOwnersList())) return false;
+      if (!getResourceDisplayName().equals(other.getResourceDisplayName())) return false;
+      if (!getResourceParentDisplayName().equals(other.getResourceParentDisplayName()))
+        return false;
+      if (!getResourceProjectDisplayName().equals(other.getResourceProjectDisplayName()))
+        return false;
+      if (!getFoldersList().equals(other.getFoldersList())) return false;
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
     }
@@ -1221,87 +1366,95 @@ public int hashCode() {
     }
 
     public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(
+        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
-    public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+
+    public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties
+        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
-    public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties
+        parseDelimitedFrom(
+            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
+
     public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties prototype) {
+
+    public static Builder newBuilder(
+        com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -1311,6 +1464,8 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
@@ -1318,39 +1473,43 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.securitycenter.v1.Asset.SecurityCenterProperties}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Asset.SecurityCenterProperties)
         com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.securitycenter.v1.AssetOuterClass
+            .internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_fieldAccessorTable
+        return com.google.cloud.securitycenter.v1.AssetOuterClass
+            .internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.class, com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder.class);
+                com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.class,
+                com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder.class);
       }
 
-      // Construct using com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.newBuilder()
+      // Construct using
+      // com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
           getFoldersFieldBuilder();
         }
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1380,14 +1539,16 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.securitycenter.v1.AssetOuterClass
+            .internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties getDefaultInstanceForType() {
-        return com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.getDefaultInstance();
+      public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties
+          getDefaultInstanceForType() {
+        return com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties
+            .getDefaultInstance();
       }
 
       @java.lang.Override
@@ -1401,7 +1562,8 @@ public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties build()
 
       @java.lang.Override
       public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties buildPartial() {
-        com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties result = new com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties(this);
+        com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties result =
+            new com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties(this);
         int from_bitField0_ = bitField0_;
         result.resourceName_ = resourceName_;
         result.resourceType_ = resourceType_;
@@ -1432,46 +1594,53 @@ public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties buildPa
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties) {
-          return mergeFrom((com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties)other);
+          return mergeFrom(
+              (com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties other) {
-        if (other == com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties other) {
+        if (other
+            == com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties
+                .getDefaultInstance()) return this;
         if (!other.getResourceName().isEmpty()) {
           resourceName_ = other.resourceName_;
           onChanged();
@@ -1528,9 +1697,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Asset.SecurityCenter
               foldersBuilder_ = null;
               folders_ = other.folders_;
               bitField0_ = (bitField0_ & ~0x00000002);
-              foldersBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getFoldersFieldBuilder() : null;
+              foldersBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getFoldersFieldBuilder()
+                      : null;
             } else {
               foldersBuilder_.addAllMessages(other.folders_);
             }
@@ -1555,7 +1725,9 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1564,10 +1736,13 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
       private java.lang.Object resourceName_ = "";
       /**
+       *
+       *
        * 
        * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1575,13 +1750,13 @@ public Builder mergeFrom(
        * 
* * string resource_name = 1; + * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -1590,6 +1765,8 @@ public java.lang.String getResourceName() { } } /** + * + * *
        * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1597,15 +1774,14 @@ public java.lang.String getResourceName() {
        * 
* * string resource_name = 1; + * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -1613,6 +1789,8 @@ public java.lang.String getResourceName() { } } /** + * + * *
        * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1620,20 +1798,22 @@ public java.lang.String getResourceName() {
        * 
* * string resource_name = 1; + * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName( - java.lang.String value) { + public Builder setResourceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceName_ = value; onChanged(); return this; } /** + * + * *
        * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1641,15 +1821,18 @@ public Builder setResourceName(
        * 
* * string resource_name = 1; + * * @return This builder for chaining. */ public Builder clearResourceName() { - + resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** + * + * *
        * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1657,16 +1840,16 @@ public Builder clearResourceName() {
        * 
* * string resource_name = 1; + * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; onChanged(); return this; @@ -1674,6 +1857,8 @@ public Builder setResourceNameBytes( private java.lang.Object resourceType_ = ""; /** + * + * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1682,13 +1867,13 @@ public Builder setResourceNameBytes(
        * 
* * string resource_type = 2; + * * @return The resourceType. */ public java.lang.String getResourceType() { java.lang.Object ref = resourceType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; @@ -1697,6 +1882,8 @@ public java.lang.String getResourceType() { } } /** + * + * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1705,15 +1892,14 @@ public java.lang.String getResourceType() {
        * 
* * string resource_type = 2; + * * @return The bytes for resourceType. */ - public com.google.protobuf.ByteString - getResourceTypeBytes() { + public com.google.protobuf.ByteString getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceType_ = b; return b; } else { @@ -1721,6 +1907,8 @@ public java.lang.String getResourceType() { } } /** + * + * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1729,20 +1917,22 @@ public java.lang.String getResourceType() {
        * 
* * string resource_type = 2; + * * @param value The resourceType to set. * @return This builder for chaining. */ - public Builder setResourceType( - java.lang.String value) { + public Builder setResourceType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceType_ = value; onChanged(); return this; } /** + * + * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1751,15 +1941,18 @@ public Builder setResourceType(
        * 
* * string resource_type = 2; + * * @return This builder for chaining. */ public Builder clearResourceType() { - + resourceType_ = getDefaultInstance().getResourceType(); onChanged(); return this; } /** + * + * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1768,16 +1961,16 @@ public Builder clearResourceType() {
        * 
* * string resource_type = 2; + * * @param value The bytes for resourceType to set. * @return This builder for chaining. */ - public Builder setResourceTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceType_ = value; onChanged(); return this; @@ -1785,19 +1978,21 @@ public Builder setResourceTypeBytes( private java.lang.Object resourceParent_ = ""; /** + * + * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; + * * @return The resourceParent. */ public java.lang.String getResourceParent() { java.lang.Object ref = resourceParent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParent_ = s; return s; @@ -1806,21 +2001,22 @@ public java.lang.String getResourceParent() { } } /** + * + * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; + * * @return The bytes for resourceParent. */ - public com.google.protobuf.ByteString - getResourceParentBytes() { + public com.google.protobuf.ByteString getResourceParentBytes() { java.lang.Object ref = resourceParent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceParent_ = b; return b; } else { @@ -1828,57 +2024,64 @@ public java.lang.String getResourceParent() { } } /** + * + * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; + * * @param value The resourceParent to set. * @return This builder for chaining. */ - public Builder setResourceParent( - java.lang.String value) { + public Builder setResourceParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceParent_ = value; onChanged(); return this; } /** + * + * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; + * * @return This builder for chaining. */ public Builder clearResourceParent() { - + resourceParent_ = getDefaultInstance().getResourceParent(); onChanged(); return this; } /** + * + * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; + * * @param value The bytes for resourceParent to set. * @return This builder for chaining. */ - public Builder setResourceParentBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceParent_ = value; onChanged(); return this; @@ -1886,19 +2089,21 @@ public Builder setResourceParentBytes( private java.lang.Object resourceProject_ = ""; /** + * + * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; + * * @return The resourceProject. */ public java.lang.String getResourceProject() { java.lang.Object ref = resourceProject_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProject_ = s; return s; @@ -1907,21 +2112,22 @@ public java.lang.String getResourceProject() { } } /** + * + * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; + * * @return The bytes for resourceProject. */ - public com.google.protobuf.ByteString - getResourceProjectBytes() { + public com.google.protobuf.ByteString getResourceProjectBytes() { java.lang.Object ref = resourceProject_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceProject_ = b; return b; } else { @@ -1929,98 +2135,115 @@ public java.lang.String getResourceProject() { } } /** + * + * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; + * * @param value The resourceProject to set. * @return This builder for chaining. */ - public Builder setResourceProject( - java.lang.String value) { + public Builder setResourceProject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceProject_ = value; onChanged(); return this; } /** + * + * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; + * * @return This builder for chaining. */ public Builder clearResourceProject() { - + resourceProject_ = getDefaultInstance().getResourceProject(); onChanged(); return this; } /** + * + * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; + * * @param value The bytes for resourceProject to set. * @return This builder for chaining. */ - public Builder setResourceProjectBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceProject_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList resourceOwners_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList resourceOwners_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureResourceOwnersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resourceOwners_ = new com.google.protobuf.LazyStringArrayList(resourceOwners_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @return A list containing the resourceOwners. */ - public com.google.protobuf.ProtocolStringList - getResourceOwnersList() { + public com.google.protobuf.ProtocolStringList getResourceOwnersList() { return resourceOwners_.getUnmodifiableView(); } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @return The count of resourceOwners. */ public int getResourceOwnersCount() { return resourceOwners_.size(); } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ @@ -2028,80 +2251,90 @@ public java.lang.String getResourceOwners(int index) { return resourceOwners_.get(index); } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ - public com.google.protobuf.ByteString - getResourceOwnersBytes(int index) { + public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { return resourceOwners_.getByteString(index); } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @param index The index to set the value at. * @param value The resourceOwners to set. * @return This builder for chaining. */ - public Builder setResourceOwners( - int index, java.lang.String value) { + public Builder setResourceOwners(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceOwnersIsMutable(); + throw new NullPointerException(); + } + ensureResourceOwnersIsMutable(); resourceOwners_.set(index, value); onChanged(); return this; } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @param value The resourceOwners to add. * @return This builder for chaining. */ - public Builder addResourceOwners( - java.lang.String value) { + public Builder addResourceOwners(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceOwnersIsMutable(); + throw new NullPointerException(); + } + ensureResourceOwnersIsMutable(); resourceOwners_.add(value); onChanged(); return this; } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @param values The resourceOwners to add. * @return This builder for chaining. */ - public Builder addAllResourceOwners( - java.lang.Iterable values) { + public Builder addAllResourceOwners(java.lang.Iterable values) { ensureResourceOwnersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceOwners_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceOwners_); onChanged(); return this; } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @return This builder for chaining. */ public Builder clearResourceOwners() { @@ -2111,20 +2344,22 @@ public Builder clearResourceOwners() { return this; } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @param value The bytes of the resourceOwners to add. * @return This builder for chaining. */ - public Builder addResourceOwnersBytes( - com.google.protobuf.ByteString value) { + public Builder addResourceOwnersBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureResourceOwnersIsMutable(); resourceOwners_.add(value); onChanged(); @@ -2133,18 +2368,20 @@ public Builder addResourceOwnersBytes( private java.lang.Object resourceDisplayName_ = ""; /** + * + * *
        * The user defined display name for this resource.
        * 
* * string resource_display_name = 6; + * * @return The resourceDisplayName. */ public java.lang.String getResourceDisplayName() { java.lang.Object ref = resourceDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceDisplayName_ = s; return s; @@ -2153,20 +2390,21 @@ public java.lang.String getResourceDisplayName() { } } /** + * + * *
        * The user defined display name for this resource.
        * 
* * string resource_display_name = 6; + * * @return The bytes for resourceDisplayName. */ - public com.google.protobuf.ByteString - getResourceDisplayNameBytes() { + public com.google.protobuf.ByteString getResourceDisplayNameBytes() { java.lang.Object ref = resourceDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceDisplayName_ = b; return b; } else { @@ -2174,54 +2412,61 @@ public java.lang.String getResourceDisplayName() { } } /** + * + * *
        * The user defined display name for this resource.
        * 
* * string resource_display_name = 6; + * * @param value The resourceDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceDisplayName( - java.lang.String value) { + public Builder setResourceDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceDisplayName_ = value; onChanged(); return this; } /** + * + * *
        * The user defined display name for this resource.
        * 
* * string resource_display_name = 6; + * * @return This builder for chaining. */ public Builder clearResourceDisplayName() { - + resourceDisplayName_ = getDefaultInstance().getResourceDisplayName(); onChanged(); return this; } /** + * + * *
        * The user defined display name for this resource.
        * 
* * string resource_display_name = 6; + * * @param value The bytes for resourceDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceDisplayName_ = value; onChanged(); return this; @@ -2229,18 +2474,20 @@ public Builder setResourceDisplayNameBytes( private java.lang.Object resourceParentDisplayName_ = ""; /** + * + * *
        * The user defined display name for the parent of this resource.
        * 
* * string resource_parent_display_name = 7; + * * @return The resourceParentDisplayName. */ public java.lang.String getResourceParentDisplayName() { java.lang.Object ref = resourceParentDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParentDisplayName_ = s; return s; @@ -2249,20 +2496,21 @@ public java.lang.String getResourceParentDisplayName() { } } /** + * + * *
        * The user defined display name for the parent of this resource.
        * 
* * string resource_parent_display_name = 7; + * * @return The bytes for resourceParentDisplayName. */ - public com.google.protobuf.ByteString - getResourceParentDisplayNameBytes() { + public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() { java.lang.Object ref = resourceParentDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceParentDisplayName_ = b; return b; } else { @@ -2270,54 +2518,61 @@ public java.lang.String getResourceParentDisplayName() { } } /** + * + * *
        * The user defined display name for the parent of this resource.
        * 
* * string resource_parent_display_name = 7; + * * @param value The resourceParentDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceParentDisplayName( - java.lang.String value) { + public Builder setResourceParentDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceParentDisplayName_ = value; onChanged(); return this; } /** + * + * *
        * The user defined display name for the parent of this resource.
        * 
* * string resource_parent_display_name = 7; + * * @return This builder for chaining. */ public Builder clearResourceParentDisplayName() { - + resourceParentDisplayName_ = getDefaultInstance().getResourceParentDisplayName(); onChanged(); return this; } /** + * + * *
        * The user defined display name for the parent of this resource.
        * 
* * string resource_parent_display_name = 7; + * * @param value The bytes for resourceParentDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceParentDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceParentDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceParentDisplayName_ = value; onChanged(); return this; @@ -2325,18 +2580,20 @@ public Builder setResourceParentDisplayNameBytes( private java.lang.Object resourceProjectDisplayName_ = ""; /** + * + * *
        * The user defined display name for the project of this resource.
        * 
* * string resource_project_display_name = 8; + * * @return The resourceProjectDisplayName. */ public java.lang.String getResourceProjectDisplayName() { java.lang.Object ref = resourceProjectDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProjectDisplayName_ = s; return s; @@ -2345,20 +2602,21 @@ public java.lang.String getResourceProjectDisplayName() { } } /** + * + * *
        * The user defined display name for the project of this resource.
        * 
* * string resource_project_display_name = 8; + * * @return The bytes for resourceProjectDisplayName. */ - public com.google.protobuf.ByteString - getResourceProjectDisplayNameBytes() { + public com.google.protobuf.ByteString getResourceProjectDisplayNameBytes() { java.lang.Object ref = resourceProjectDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceProjectDisplayName_ = b; return b; } else { @@ -2366,72 +2624,85 @@ public java.lang.String getResourceProjectDisplayName() { } } /** + * + * *
        * The user defined display name for the project of this resource.
        * 
* * string resource_project_display_name = 8; + * * @param value The resourceProjectDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceProjectDisplayName( - java.lang.String value) { + public Builder setResourceProjectDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceProjectDisplayName_ = value; onChanged(); return this; } /** + * + * *
        * The user defined display name for the project of this resource.
        * 
* * string resource_project_display_name = 8; + * * @return This builder for chaining. */ public Builder clearResourceProjectDisplayName() { - + resourceProjectDisplayName_ = getDefaultInstance().getResourceProjectDisplayName(); onChanged(); return this; } /** + * + * *
        * The user defined display name for the project of this resource.
        * 
* * string resource_project_display_name = 8; + * * @param value The bytes for resourceProjectDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceProjectDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceProjectDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceProjectDisplayName_ = value; onChanged(); return this; } private java.util.List folders_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { folders_ = new java.util.ArrayList(folders_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder> foldersBuilder_; + com.google.cloud.securitycenter.v1.Folder, + com.google.cloud.securitycenter.v1.Folder.Builder, + com.google.cloud.securitycenter.v1.FolderOrBuilder> + foldersBuilder_; /** + * + * *
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2448,6 +2719,8 @@ public java.util.List getFoldersList(
         }
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2464,6 +2737,8 @@ public int getFoldersCount() {
         }
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2480,6 +2755,8 @@ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) {
         }
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2488,8 +2765,7 @@ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) {
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
        */
-      public Builder setFolders(
-          int index, com.google.cloud.securitycenter.v1.Folder value) {
+      public Builder setFolders(int index, com.google.cloud.securitycenter.v1.Folder value) {
         if (foldersBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -2503,6 +2779,8 @@ public Builder setFolders(
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2523,6 +2801,8 @@ public Builder setFolders(
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2545,6 +2825,8 @@ public Builder addFolders(com.google.cloud.securitycenter.v1.Folder value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2553,8 +2835,7 @@ public Builder addFolders(com.google.cloud.securitycenter.v1.Folder value) {
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
        */
-      public Builder addFolders(
-          int index, com.google.cloud.securitycenter.v1.Folder value) {
+      public Builder addFolders(int index, com.google.cloud.securitycenter.v1.Folder value) {
         if (foldersBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -2568,6 +2849,8 @@ public Builder addFolders(
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2576,8 +2859,7 @@ public Builder addFolders(
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
        */
-      public Builder addFolders(
-          com.google.cloud.securitycenter.v1.Folder.Builder builderForValue) {
+      public Builder addFolders(com.google.cloud.securitycenter.v1.Folder.Builder builderForValue) {
         if (foldersBuilder_ == null) {
           ensureFoldersIsMutable();
           folders_.add(builderForValue.build());
@@ -2588,6 +2870,8 @@ public Builder addFolders(
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2608,6 +2892,8 @@ public Builder addFolders(
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2620,8 +2906,7 @@ public Builder addAllFolders(
           java.lang.Iterable values) {
         if (foldersBuilder_ == null) {
           ensureFoldersIsMutable();
-          com.google.protobuf.AbstractMessageLite.Builder.addAll(
-              values, folders_);
+          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_);
           onChanged();
         } else {
           foldersBuilder_.addAllMessages(values);
@@ -2629,6 +2914,8 @@ public Builder addAllFolders(
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2648,6 +2935,8 @@ public Builder clearFolders() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2667,6 +2956,8 @@ public Builder removeFolders(int index) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2675,11 +2966,12 @@ public Builder removeFolders(int index) {
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
        */
-      public com.google.cloud.securitycenter.v1.Folder.Builder getFoldersBuilder(
-          int index) {
+      public com.google.cloud.securitycenter.v1.Folder.Builder getFoldersBuilder(int index) {
         return getFoldersFieldBuilder().getBuilder(index);
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2688,14 +2980,16 @@ public com.google.cloud.securitycenter.v1.Folder.Builder getFoldersBuilder(
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
        */
-      public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(
-          int index) {
+      public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index) {
         if (foldersBuilder_ == null) {
-          return folders_.get(index);  } else {
+          return folders_.get(index);
+        } else {
           return foldersBuilder_.getMessageOrBuilder(index);
         }
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2704,8 +2998,8 @@ public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
        */
-      public java.util.List 
-           getFoldersOrBuilderList() {
+      public java.util.List
+          getFoldersOrBuilderList() {
         if (foldersBuilder_ != null) {
           return foldersBuilder_.getMessageOrBuilderList();
         } else {
@@ -2713,6 +3007,8 @@ public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(
         }
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2722,10 +3018,12 @@ public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(
        * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
        */
       public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder() {
-        return getFoldersFieldBuilder().addBuilder(
-            com.google.cloud.securitycenter.v1.Folder.getDefaultInstance());
+        return getFoldersFieldBuilder()
+            .addBuilder(com.google.cloud.securitycenter.v1.Folder.getDefaultInstance());
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2734,12 +3032,13 @@ public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder() {
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
        */
-      public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder(
-          int index) {
-        return getFoldersFieldBuilder().addBuilder(
-            index, com.google.cloud.securitycenter.v1.Folder.getDefaultInstance());
+      public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder(int index) {
+        return getFoldersFieldBuilder()
+            .addBuilder(index, com.google.cloud.securitycenter.v1.Folder.getDefaultInstance());
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2748,24 +3047,28 @@ public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder(
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 10;
        */
-      public java.util.List 
-           getFoldersBuilderList() {
+      public java.util.List
+          getFoldersBuilderList() {
         return getFoldersFieldBuilder().getBuilderList();
       }
+
       private com.google.protobuf.RepeatedFieldBuilderV3<
-          com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder> 
+              com.google.cloud.securitycenter.v1.Folder,
+              com.google.cloud.securitycenter.v1.Folder.Builder,
+              com.google.cloud.securitycenter.v1.FolderOrBuilder>
           getFoldersFieldBuilder() {
         if (foldersBuilder_ == null) {
-          foldersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-              com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder>(
-                  folders_,
-                  ((bitField0_ & 0x00000002) != 0),
-                  getParentForChildren(),
-                  isClean());
+          foldersBuilder_ =
+              new com.google.protobuf.RepeatedFieldBuilderV3<
+                  com.google.cloud.securitycenter.v1.Folder,
+                  com.google.cloud.securitycenter.v1.Folder.Builder,
+                  com.google.cloud.securitycenter.v1.FolderOrBuilder>(
+                  folders_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
           folders_ = null;
         }
         return foldersBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -2778,30 +3081,32 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Asset.SecurityCenterProperties)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Asset.SecurityCenterProperties)
-    private static final com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties DEFAULT_INSTANCE;
+    private static final com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties
+        DEFAULT_INSTANCE;
+
     static {
       DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties();
     }
 
-    public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties getDefaultInstance() {
+    public static com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties
+        getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public SecurityCenterProperties parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return new SecurityCenterProperties(input, extensionRegistry);
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public SecurityCenterProperties parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            return new SecurityCenterProperties(input, extensionRegistry);
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -2813,17 +3118,20 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties getDefaultInstanceForType() {
+    public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties
+        getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
-  public interface IamPolicyOrBuilder extends
+  public interface IamPolicyOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Asset.IamPolicy)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The JSON representation of the Policy associated with the asset.
      * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
@@ -2831,10 +3139,13 @@ public interface IamPolicyOrBuilder extends
      * 
* * string policy_blob = 1; + * * @return The policyBlob. */ java.lang.String getPolicyBlob(); /** + * + * *
      * The JSON representation of the Policy associated with the asset.
      * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
@@ -2842,12 +3153,14 @@ public interface IamPolicyOrBuilder extends
      * 
* * string policy_blob = 1; + * * @return The bytes for policyBlob. */ - com.google.protobuf.ByteString - getPolicyBlobBytes(); + com.google.protobuf.ByteString getPolicyBlobBytes(); } /** + * + * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -2857,31 +3170,31 @@ public interface IamPolicyOrBuilder extends
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.Asset.IamPolicy}
    */
-  public static final class IamPolicy extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class IamPolicy extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Asset.IamPolicy)
       IamPolicyOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use IamPolicy.newBuilder() to construct.
     private IamPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private IamPolicy() {
       policyBlob_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new IamPolicy();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private IamPolicy(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -2900,19 +3213,20 @@ private IamPolicy(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              policyBlob_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                policyBlob_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2920,29 +3234,33 @@ private IamPolicy(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.AssetOuterClass
+          .internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.AssetOuterClass
+          .internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.Asset.IamPolicy.class, com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder.class);
+              com.google.cloud.securitycenter.v1.Asset.IamPolicy.class,
+              com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder.class);
     }
 
     public static final int POLICY_BLOB_FIELD_NUMBER = 1;
     private volatile java.lang.Object policyBlob_;
     /**
+     *
+     *
      * 
      * The JSON representation of the Policy associated with the asset.
      * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
@@ -2950,6 +3268,7 @@ private IamPolicy(
      * 
* * string policy_blob = 1; + * * @return The policyBlob. */ @java.lang.Override @@ -2958,14 +3277,15 @@ public java.lang.String getPolicyBlob() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyBlob_ = s; return s; } } /** + * + * *
      * The JSON representation of the Policy associated with the asset.
      * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
@@ -2973,16 +3293,15 @@ public java.lang.String getPolicyBlob() {
      * 
* * string policy_blob = 1; + * * @return The bytes for policyBlob. */ @java.lang.Override - public com.google.protobuf.ByteString - getPolicyBlobBytes() { + public com.google.protobuf.ByteString getPolicyBlobBytes() { java.lang.Object ref = policyBlob_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); policyBlob_ = b; return b; } else { @@ -2991,6 +3310,7 @@ public java.lang.String getPolicyBlob() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3002,8 +3322,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyBlob_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyBlob_); } @@ -3027,15 +3346,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Asset.IamPolicy)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Asset.IamPolicy other = (com.google.cloud.securitycenter.v1.Asset.IamPolicy) obj; + com.google.cloud.securitycenter.v1.Asset.IamPolicy other = + (com.google.cloud.securitycenter.v1.Asset.IamPolicy) obj; - if (!getPolicyBlob() - .equals(other.getPolicyBlob())) return false; + if (!getPolicyBlob().equals(other.getPolicyBlob())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3055,87 +3374,93 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Asset.IamPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.Asset.IamPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3145,6 +3470,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -3154,21 +3481,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.securitycenter.v1.Asset.IamPolicy}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Asset.IamPolicy)
         com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.securitycenter.v1.AssetOuterClass
+            .internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_fieldAccessorTable
+        return com.google.cloud.securitycenter.v1.AssetOuterClass
+            .internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.securitycenter.v1.Asset.IamPolicy.class, com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder.class);
+                com.google.cloud.securitycenter.v1.Asset.IamPolicy.class,
+                com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder.class);
       }
 
       // Construct using com.google.cloud.securitycenter.v1.Asset.IamPolicy.newBuilder()
@@ -3176,16 +3506,15 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -3195,9 +3524,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.securitycenter.v1.AssetOuterClass
+            .internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor;
       }
 
       @java.lang.Override
@@ -3216,7 +3545,8 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicy build() {
 
       @java.lang.Override
       public com.google.cloud.securitycenter.v1.Asset.IamPolicy buildPartial() {
-        com.google.cloud.securitycenter.v1.Asset.IamPolicy result = new com.google.cloud.securitycenter.v1.Asset.IamPolicy(this);
+        com.google.cloud.securitycenter.v1.Asset.IamPolicy result =
+            new com.google.cloud.securitycenter.v1.Asset.IamPolicy(this);
         result.policyBlob_ = policyBlob_;
         onBuilt();
         return result;
@@ -3226,38 +3556,41 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicy buildPartial() {
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.securitycenter.v1.Asset.IamPolicy) {
-          return mergeFrom((com.google.cloud.securitycenter.v1.Asset.IamPolicy)other);
+          return mergeFrom((com.google.cloud.securitycenter.v1.Asset.IamPolicy) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -3265,7 +3598,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.securitycenter.v1.Asset.IamPolicy other) {
-        if (other == com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance()) return this;
+        if (other == com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance())
+          return this;
         if (!other.getPolicyBlob().isEmpty()) {
           policyBlob_ = other.policyBlob_;
           onChanged();
@@ -3289,7 +3623,8 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.securitycenter.v1.Asset.IamPolicy) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.securitycenter.v1.Asset.IamPolicy) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -3301,6 +3636,8 @@ public Builder mergeFrom(
 
       private java.lang.Object policyBlob_ = "";
       /**
+       *
+       *
        * 
        * The JSON representation of the Policy associated with the asset.
        * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
@@ -3308,13 +3645,13 @@ public Builder mergeFrom(
        * 
* * string policy_blob = 1; + * * @return The policyBlob. */ public java.lang.String getPolicyBlob() { java.lang.Object ref = policyBlob_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyBlob_ = s; return s; @@ -3323,6 +3660,8 @@ public java.lang.String getPolicyBlob() { } } /** + * + * *
        * The JSON representation of the Policy associated with the asset.
        * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
@@ -3330,15 +3669,14 @@ public java.lang.String getPolicyBlob() {
        * 
* * string policy_blob = 1; + * * @return The bytes for policyBlob. */ - public com.google.protobuf.ByteString - getPolicyBlobBytes() { + public com.google.protobuf.ByteString getPolicyBlobBytes() { java.lang.Object ref = policyBlob_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); policyBlob_ = b; return b; } else { @@ -3346,6 +3684,8 @@ public java.lang.String getPolicyBlob() { } } /** + * + * *
        * The JSON representation of the Policy associated with the asset.
        * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
@@ -3353,20 +3693,22 @@ public java.lang.String getPolicyBlob() {
        * 
* * string policy_blob = 1; + * * @param value The policyBlob to set. * @return This builder for chaining. */ - public Builder setPolicyBlob( - java.lang.String value) { + public Builder setPolicyBlob(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + policyBlob_ = value; onChanged(); return this; } /** + * + * *
        * The JSON representation of the Policy associated with the asset.
        * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
@@ -3374,15 +3716,18 @@ public Builder setPolicyBlob(
        * 
* * string policy_blob = 1; + * * @return This builder for chaining. */ public Builder clearPolicyBlob() { - + policyBlob_ = getDefaultInstance().getPolicyBlob(); onChanged(); return this; } /** + * + * *
        * The JSON representation of the Policy associated with the asset.
        * See https://cloud.google.com/iam/reference/rest/v1/Policy for format
@@ -3390,20 +3735,21 @@ public Builder clearPolicyBlob() {
        * 
* * string policy_blob = 1; + * * @param value The bytes for policyBlob to set. * @return This builder for chaining. */ - public Builder setPolicyBlobBytes( - com.google.protobuf.ByteString value) { + public Builder setPolicyBlobBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policyBlob_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3416,12 +3762,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Asset.IamPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Asset.IamPolicy) private static final com.google.cloud.securitycenter.v1.Asset.IamPolicy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Asset.IamPolicy(); } @@ -3430,16 +3776,16 @@ public static com.google.cloud.securitycenter.v1.Asset.IamPolicy getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IamPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IamPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IamPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IamPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3454,12 +3800,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Asset.IamPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -3468,6 +3815,7 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicy getDefaultInstanceForT
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -3476,14 +3824,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -3492,16 +3841,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -3510,14 +3858,20 @@ public java.lang.String getName() { } public static final int SECURITY_CENTER_PROPERTIES_FIELD_NUMBER = 2; - private com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties securityCenterProperties_; + private com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties + securityCenterProperties_; /** + * + * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * * @return Whether the securityCenterProperties field is set. */ @java.lang.Override @@ -3525,47 +3879,64 @@ public boolean hasSecurityCenterProperties() { return securityCenterProperties_ != null; } /** + * + * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * * @return The securityCenterProperties. */ @java.lang.Override - public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties getSecurityCenterProperties() { - return securityCenterProperties_ == null ? com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.getDefaultInstance() : securityCenterProperties_; + public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties + getSecurityCenterProperties() { + return securityCenterProperties_ == null + ? com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.getDefaultInstance() + : securityCenterProperties_; } /** + * + * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder() { + public com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder + getSecurityCenterPropertiesOrBuilder() { return getSecurityCenterProperties(); } public static final int RESOURCE_PROPERTIES_FIELD_NUMBER = 7; + private static final class ResourcePropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.Value> defaultEntry = + static final com.google.protobuf.MapEntry + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.securitycenter.v1.AssetOuterClass + .internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> resourceProperties_; + + private com.google.protobuf.MapField + resourceProperties_; + private com.google.protobuf.MapField - internalGetResourceProperties() { + internalGetResourceProperties() { if (resourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( ResourcePropertiesDefaultEntryHolder.defaultEntry); @@ -3577,6 +3948,8 @@ public int getResourcePropertiesCount() { return internalGetResourceProperties().getMap().size(); } /** + * + * *
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -3584,22 +3957,22 @@ public int getResourcePropertiesCount() {
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-
   @java.lang.Override
-  public boolean containsResourceProperties(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsResourceProperties(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetResourceProperties().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getResourcePropertiesMap()} instead.
-   */
+  /** Use {@link #getResourcePropertiesMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getResourceProperties() {
     return getResourcePropertiesMap();
   }
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -3608,11 +3981,12 @@ public java.util.Map getResourcePro
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
   @java.lang.Override
-
   public java.util.Map getResourcePropertiesMap() {
     return internalGetResourceProperties().getMap();
   }
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -3621,16 +3995,18 @@ public java.util.Map getResourcePro
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
   @java.lang.Override
-
   public com.google.protobuf.Value getResourcePropertiesOrDefault(
-      java.lang.String key,
-      com.google.protobuf.Value defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
+      java.lang.String key, com.google.protobuf.Value defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetResourceProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -3639,10 +4015,10 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
   @java.lang.Override
-
-  public com.google.protobuf.Value getResourcePropertiesOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetResourceProperties().getMap();
     if (!map.containsKey(key)) {
@@ -3654,12 +4030,15 @@ public com.google.protobuf.Value getResourcePropertiesOrThrow(
   public static final int SECURITY_MARKS_FIELD_NUMBER = 8;
   private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_;
   /**
+   *
+   *
    * 
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * * @return Whether the securityMarks field is set. */ @java.lang.Override @@ -3667,19 +4046,26 @@ public boolean hasSecurityMarks() { return securityMarks_ != null; } /** + * + * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * * @return The securityMarks. */ @java.lang.Override public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { - return securityMarks_ == null ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() + : securityMarks_; } /** + * + * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
@@ -3695,11 +4081,14 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
   public static final int CREATE_TIME_FIELD_NUMBER = 9;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -3707,11 +4096,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; + * * @return The createTime. */ @java.lang.Override @@ -3719,6 +4111,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time at which the asset was created in Security Command Center.
    * 
@@ -3733,11 +4127,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
* * .google.protobuf.Timestamp update_time = 10; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -3745,11 +4142,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
* * .google.protobuf.Timestamp update_time = 10; + * * @return The updateTime. */ @java.lang.Override @@ -3757,6 +4157,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
@@ -3771,6 +4173,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int IAM_POLICY_FIELD_NUMBER = 11; private com.google.cloud.securitycenter.v1.Asset.IamPolicy iamPolicy_; /** + * + * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -3779,6 +4183,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + * * @return Whether the iamPolicy field is set. */ @java.lang.Override @@ -3786,6 +4191,8 @@ public boolean hasIamPolicy() { return iamPolicy_ != null; } /** + * + * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -3794,13 +4201,18 @@ public boolean hasIamPolicy() {
    * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + * * @return The iamPolicy. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Asset.IamPolicy getIamPolicy() { - return iamPolicy_ == null ? com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance() : iamPolicy_; + return iamPolicy_ == null + ? com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance() + : iamPolicy_; } /** + * + * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -3818,6 +4230,8 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyO
   public static final int CANONICAL_NAME_FIELD_NUMBER = 13;
   private volatile java.lang.Object canonicalName_;
   /**
+   *
+   *
    * 
    * The canonical name of the resource. It's either
    * "organizations/{organization_id}/assets/{asset_id}",
@@ -3827,6 +4241,7 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyO
    * 
* * string canonical_name = 13; + * * @return The canonicalName. */ @java.lang.Override @@ -3835,14 +4250,15 @@ public java.lang.String getCanonicalName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; } } /** + * + * *
    * The canonical name of the resource. It's either
    * "organizations/{organization_id}/assets/{asset_id}",
@@ -3852,16 +4268,15 @@ public java.lang.String getCanonicalName() {
    * 
* * string canonical_name = 13; + * * @return The bytes for canonicalName. */ @java.lang.Override - public com.google.protobuf.ByteString - getCanonicalNameBytes() { + public com.google.protobuf.ByteString getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -3870,6 +4285,7 @@ public java.lang.String getCanonicalName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3881,16 +4297,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (securityCenterProperties_ != null) { output.writeMessage(2, getSecurityCenterProperties()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetResourceProperties(), ResourcePropertiesDefaultEntryHolder.defaultEntry, @@ -3923,34 +4337,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (securityCenterProperties_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSecurityCenterProperties()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getSecurityCenterProperties()); } - for (java.util.Map.Entry entry - : internalGetResourceProperties().getMap().entrySet()) { + for (java.util.Map.Entry entry : + internalGetResourceProperties().getMap().entrySet()) { com.google.protobuf.MapEntry - resourceProperties__ = ResourcePropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, resourceProperties__); + resourceProperties__ = + ResourcePropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, resourceProperties__); } if (securityMarks_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSecurityMarks()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSecurityMarks()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); } if (iamPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getIamPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getIamPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, canonicalName_); @@ -3963,44 +4375,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Asset)) { return super.equals(obj); } com.google.cloud.securitycenter.v1.Asset other = (com.google.cloud.securitycenter.v1.Asset) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasSecurityCenterProperties() != other.hasSecurityCenterProperties()) return false; if (hasSecurityCenterProperties()) { - if (!getSecurityCenterProperties() - .equals(other.getSecurityCenterProperties())) return false; + if (!getSecurityCenterProperties().equals(other.getSecurityCenterProperties())) return false; } - if (!internalGetResourceProperties().equals( - other.internalGetResourceProperties())) return false; + if (!internalGetResourceProperties().equals(other.internalGetResourceProperties())) + return false; if (hasSecurityMarks() != other.hasSecurityMarks()) return false; if (hasSecurityMarks()) { - if (!getSecurityMarks() - .equals(other.getSecurityMarks())) return false; + if (!getSecurityMarks().equals(other.getSecurityMarks())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasIamPolicy() != other.hasIamPolicy()) return false; if (hasIamPolicy()) { - if (!getIamPolicy() - .equals(other.getIamPolicy())) return false; + if (!getIamPolicy().equals(other.getIamPolicy())) return false; } - if (!getCanonicalName() - .equals(other.getCanonicalName())) return false; + if (!getCanonicalName().equals(other.getCanonicalName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4045,97 +4450,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Asset parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Asset parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Asset parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Asset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Asset parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Asset parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Asset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Asset parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Asset parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.Asset parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Asset parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Asset parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Asset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.Asset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Security Command Center representation of a Google Cloud
    * resource.
@@ -4147,43 +4559,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.Asset}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Asset)
       com.google.cloud.securitycenter.v1.AssetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.AssetOuterClass
+          .internal_static_google_cloud_securitycenter_v1_Asset_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 7:
           return internalGetResourceProperties();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 7:
           return internalGetMutableResourceProperties();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.AssetOuterClass
+          .internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.Asset.class, com.google.cloud.securitycenter.v1.Asset.Builder.class);
+              com.google.cloud.securitycenter.v1.Asset.class,
+              com.google.cloud.securitycenter.v1.Asset.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.Asset.newBuilder()
@@ -4191,16 +4603,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -4243,9 +4654,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1_Asset_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.AssetOuterClass
+          .internal_static_google_cloud_securitycenter_v1_Asset_descriptor;
     }
 
     @java.lang.Override
@@ -4264,7 +4675,8 @@ public com.google.cloud.securitycenter.v1.Asset build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.Asset buildPartial() {
-      com.google.cloud.securitycenter.v1.Asset result = new com.google.cloud.securitycenter.v1.Asset(this);
+      com.google.cloud.securitycenter.v1.Asset result =
+          new com.google.cloud.securitycenter.v1.Asset(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (securityCenterPropertiesBuilder_ == null) {
@@ -4303,38 +4715,39 @@ public com.google.cloud.securitycenter.v1.Asset buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.Asset) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.Asset)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.Asset) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -4350,8 +4763,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Asset other) {
       if (other.hasSecurityCenterProperties()) {
         mergeSecurityCenterProperties(other.getSecurityCenterProperties());
       }
-      internalGetMutableResourceProperties().mergeFrom(
-          other.internalGetResourceProperties());
+      internalGetMutableResourceProperties().mergeFrom(other.internalGetResourceProperties());
       if (other.hasSecurityMarks()) {
         mergeSecurityMarks(other.getSecurityMarks());
       }
@@ -4396,10 +4808,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4408,13 +4823,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -4423,6 +4838,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4431,15 +4848,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -4447,6 +4863,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4455,20 +4873,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4477,15 +4897,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4494,61 +4917,83 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties securityCenterProperties_; + private com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties + securityCenterProperties_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder> securityCenterPropertiesBuilder_; + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties, + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder, + com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder> + securityCenterPropertiesBuilder_; /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * * @return Whether the securityCenterProperties field is set. */ public boolean hasSecurityCenterProperties() { return securityCenterPropertiesBuilder_ != null || securityCenterProperties_ != null; } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * * @return The securityCenterProperties. */ - public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties getSecurityCenterProperties() { + public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties + getSecurityCenterProperties() { if (securityCenterPropertiesBuilder_ == null) { - return securityCenterProperties_ == null ? com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.getDefaultInstance() : securityCenterProperties_; + return securityCenterProperties_ == null + ? com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.getDefaultInstance() + : securityCenterProperties_; } else { return securityCenterPropertiesBuilder_.getMessage(); } } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ - public Builder setSecurityCenterProperties(com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties value) { + public Builder setSecurityCenterProperties( + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties value) { if (securityCenterPropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4562,12 +5007,16 @@ public Builder setSecurityCenterProperties(com.google.cloud.securitycenter.v1.As return this; } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ public Builder setSecurityCenterProperties( com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder builderForValue) { @@ -4581,18 +5030,26 @@ public Builder setSecurityCenterProperties( return this; } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ - public Builder mergeSecurityCenterProperties(com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties value) { + public Builder mergeSecurityCenterProperties( + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties value) { if (securityCenterPropertiesBuilder_ == null) { if (securityCenterProperties_ != null) { securityCenterProperties_ = - com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.newBuilder(securityCenterProperties_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.newBuilder( + securityCenterProperties_) + .mergeFrom(value) + .buildPartial(); } else { securityCenterProperties_ = value; } @@ -4604,12 +5061,16 @@ public Builder mergeSecurityCenterProperties(com.google.cloud.securitycenter.v1. return this; } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ public Builder clearSecurityCenterProperties() { if (securityCenterPropertiesBuilder_ == null) { @@ -4623,72 +5084,94 @@ public Builder clearSecurityCenterProperties() { return this; } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ - public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder getSecurityCenterPropertiesBuilder() { - + public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder + getSecurityCenterPropertiesBuilder() { + onChanged(); return getSecurityCenterPropertiesFieldBuilder().getBuilder(); } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ - public com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder() { + public com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder + getSecurityCenterPropertiesOrBuilder() { if (securityCenterPropertiesBuilder_ != null) { return securityCenterPropertiesBuilder_.getMessageOrBuilder(); } else { - return securityCenterProperties_ == null ? - com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.getDefaultInstance() : securityCenterProperties_; + return securityCenterProperties_ == null + ? com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.getDefaultInstance() + : securityCenterProperties_; } } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder> + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties, + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder, + com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder> getSecurityCenterPropertiesFieldBuilder() { if (securityCenterPropertiesBuilder_ == null) { - securityCenterPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder>( - getSecurityCenterProperties(), - getParentForChildren(), - isClean()); + securityCenterPropertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties, + com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder, + com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder>( + getSecurityCenterProperties(), getParentForChildren(), isClean()); securityCenterProperties_ = null; } return securityCenterPropertiesBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> resourceProperties_; private com.google.protobuf.MapField - internalGetResourceProperties() { + resourceProperties_; + + private com.google.protobuf.MapField + internalGetResourceProperties() { if (resourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( ResourcePropertiesDefaultEntryHolder.defaultEntry); } return resourceProperties_; } + private com.google.protobuf.MapField - internalGetMutableResourceProperties() { - onChanged();; + internalGetMutableResourceProperties() { + onChanged(); + ; if (resourceProperties_ == null) { - resourceProperties_ = com.google.protobuf.MapField.newMapField( - ResourcePropertiesDefaultEntryHolder.defaultEntry); + resourceProperties_ = + com.google.protobuf.MapField.newMapField( + ResourcePropertiesDefaultEntryHolder.defaultEntry); } if (!resourceProperties_.isMutable()) { resourceProperties_ = resourceProperties_.copy(); @@ -4700,6 +5183,8 @@ public int getResourcePropertiesCount() { return internalGetResourceProperties().getMap().size(); } /** + * + * *
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -4707,22 +5192,22 @@ public int getResourcePropertiesCount() {
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
-
     @java.lang.Override
-    public boolean containsResourceProperties(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsResourceProperties(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetResourceProperties().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getResourcePropertiesMap()} instead.
-     */
+    /** Use {@link #getResourcePropertiesMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getResourceProperties() {
       return getResourcePropertiesMap();
     }
     /**
+     *
+     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -4731,11 +5216,12 @@ public java.util.Map getResourcePro
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
     @java.lang.Override
-
     public java.util.Map getResourcePropertiesMap() {
       return internalGetResourceProperties().getMap();
     }
     /**
+     *
+     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -4744,16 +5230,18 @@ public java.util.Map getResourcePro
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
     @java.lang.Override
-
     public com.google.protobuf.Value getResourcePropertiesOrDefault(
-        java.lang.String key,
-        com.google.protobuf.Value defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
+        java.lang.String key, com.google.protobuf.Value defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetResourceProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -4762,10 +5250,10 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
     @java.lang.Override
-
-    public com.google.protobuf.Value getResourcePropertiesOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetResourceProperties().getMap();
       if (!map.containsKey(key)) {
@@ -4775,11 +5263,12 @@ public com.google.protobuf.Value getResourcePropertiesOrThrow(
     }
 
     public Builder clearResourceProperties() {
-      internalGetMutableResourceProperties().getMutableMap()
-          .clear();
+      internalGetMutableResourceProperties().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -4787,23 +5276,22 @@ public Builder clearResourceProperties() {
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
-
-    public Builder removeResourceProperties(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableResourceProperties().getMutableMap()
-          .remove(key);
+    public Builder removeResourceProperties(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableResourceProperties().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
     public java.util.Map
-    getMutableResourceProperties() {
+        getMutableResourceProperties() {
       return internalGetMutableResourceProperties().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -4811,19 +5299,20 @@ public Builder removeResourceProperties(
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
-    public Builder putResourceProperties(
-        java.lang.String key,
-        com.google.protobuf.Value value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putResourceProperties(java.lang.String key, com.google.protobuf.Value value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableResourceProperties().getMutableMap()
-          .put(key, value);
+      internalGetMutableResourceProperties().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -4831,46 +5320,57 @@ public Builder putResourceProperties(
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
-
     public Builder putAllResourceProperties(
         java.util.Map values) {
-      internalGetMutableResourceProperties().getMutableMap()
-          .putAll(values);
+      internalGetMutableResourceProperties().getMutableMap().putAll(values);
       return this;
     }
 
     private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> securityMarksBuilder_;
+            com.google.cloud.securitycenter.v1.SecurityMarks,
+            com.google.cloud.securitycenter.v1.SecurityMarks.Builder,
+            com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>
+        securityMarksBuilder_;
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
      * 
* * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; } /** + * + * *
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
      * 
* * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * * @return The securityMarks. */ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { - return securityMarks_ == null ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() + : securityMarks_; } else { return securityMarksBuilder_.getMessage(); } } /** + * + * *
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -4892,6 +5392,8 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks
       return this;
     }
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -4911,6 +5413,8 @@ public Builder setSecurityMarks(
       return this;
     }
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -4922,7 +5426,9 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMar
       if (securityMarksBuilder_ == null) {
         if (securityMarks_ != null) {
           securityMarks_ =
-            com.google.cloud.securitycenter.v1.SecurityMarks.newBuilder(securityMarks_).mergeFrom(value).buildPartial();
+              com.google.cloud.securitycenter.v1.SecurityMarks.newBuilder(securityMarks_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           securityMarks_ = value;
         }
@@ -4934,6 +5440,8 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMar
       return this;
     }
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -4953,6 +5461,8 @@ public Builder clearSecurityMarks() {
       return this;
     }
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -4961,11 +5471,13 @@ public Builder clearSecurityMarks() {
      * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8;
      */
     public com.google.cloud.securitycenter.v1.SecurityMarks.Builder getSecurityMarksBuilder() {
-      
+
       onChanged();
       return getSecurityMarksFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -4977,11 +5489,14 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
       if (securityMarksBuilder_ != null) {
         return securityMarksBuilder_.getMessageOrBuilder();
       } else {
-        return securityMarks_ == null ?
-            com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() : securityMarks_;
+        return securityMarks_ == null
+            ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance()
+            : securityMarks_;
       }
     }
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -4990,14 +5505,17 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
      * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> 
+            com.google.cloud.securitycenter.v1.SecurityMarks,
+            com.google.cloud.securitycenter.v1.SecurityMarks.Builder,
+            com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>
         getSecurityMarksFieldBuilder() {
       if (securityMarksBuilder_ == null) {
-        securityMarksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>(
-                getSecurityMarks(),
-                getParentForChildren(),
-                isClean());
+        securityMarksBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.securitycenter.v1.SecurityMarks,
+                com.google.cloud.securitycenter.v1.SecurityMarks.Builder,
+                com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>(
+                getSecurityMarks(), getParentForChildren(), isClean());
         securityMarks_ = null;
       }
       return securityMarksBuilder_;
@@ -5005,34 +5523,47 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5053,14 +5584,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -5071,6 +5603,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5081,7 +5615,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -5093,6 +5627,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5111,6 +5647,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5118,11 +5656,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 9; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5133,11 +5673,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5145,14 +5688,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -5160,34 +5706,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
* * .google.protobuf.Timestamp update_time = 10; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
* * .google.protobuf.Timestamp update_time = 10; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5208,14 +5767,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
* * .google.protobuf.Timestamp update_time = 10; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -5226,6 +5786,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5236,7 +5798,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -5248,6 +5810,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5266,6 +5830,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5273,11 +5839,13 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 10; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5288,11 +5856,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5300,14 +5871,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -5315,8 +5889,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.cloud.securitycenter.v1.Asset.IamPolicy iamPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Asset.IamPolicy, com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder, com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder> iamPolicyBuilder_; + com.google.cloud.securitycenter.v1.Asset.IamPolicy, + com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder, + com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder> + iamPolicyBuilder_; /** + * + * *
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5325,12 +5904,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + * * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return iamPolicyBuilder_ != null || iamPolicy_ != null; } /** + * + * *
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5339,16 +5921,21 @@ public boolean hasIamPolicy() {
      * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + * * @return The iamPolicy. */ public com.google.cloud.securitycenter.v1.Asset.IamPolicy getIamPolicy() { if (iamPolicyBuilder_ == null) { - return iamPolicy_ == null ? com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance() : iamPolicy_; + return iamPolicy_ == null + ? com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance() + : iamPolicy_; } else { return iamPolicyBuilder_.getMessage(); } } /** + * + * *
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5372,6 +5959,8 @@ public Builder setIamPolicy(com.google.cloud.securitycenter.v1.Asset.IamPolicy v
       return this;
     }
     /**
+     *
+     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5393,6 +5982,8 @@ public Builder setIamPolicy(
       return this;
     }
     /**
+     *
+     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5406,7 +5997,9 @@ public Builder mergeIamPolicy(com.google.cloud.securitycenter.v1.Asset.IamPolicy
       if (iamPolicyBuilder_ == null) {
         if (iamPolicy_ != null) {
           iamPolicy_ =
-            com.google.cloud.securitycenter.v1.Asset.IamPolicy.newBuilder(iamPolicy_).mergeFrom(value).buildPartial();
+              com.google.cloud.securitycenter.v1.Asset.IamPolicy.newBuilder(iamPolicy_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           iamPolicy_ = value;
         }
@@ -5418,6 +6011,8 @@ public Builder mergeIamPolicy(com.google.cloud.securitycenter.v1.Asset.IamPolicy
       return this;
     }
     /**
+     *
+     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5439,6 +6034,8 @@ public Builder clearIamPolicy() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5449,11 +6046,13 @@ public Builder clearIamPolicy() {
      * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;
      */
     public com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder getIamPolicyBuilder() {
-      
+
       onChanged();
       return getIamPolicyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5467,11 +6066,14 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyO
       if (iamPolicyBuilder_ != null) {
         return iamPolicyBuilder_.getMessageOrBuilder();
       } else {
-        return iamPolicy_ == null ?
-            com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance() : iamPolicy_;
+        return iamPolicy_ == null
+            ? com.google.cloud.securitycenter.v1.Asset.IamPolicy.getDefaultInstance()
+            : iamPolicy_;
       }
     }
     /**
+     *
+     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5482,14 +6084,17 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyO
      * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.Asset.IamPolicy, com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder, com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder> 
+            com.google.cloud.securitycenter.v1.Asset.IamPolicy,
+            com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder,
+            com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder>
         getIamPolicyFieldBuilder() {
       if (iamPolicyBuilder_ == null) {
-        iamPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Asset.IamPolicy, com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder, com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder>(
-                getIamPolicy(),
-                getParentForChildren(),
-                isClean());
+        iamPolicyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.securitycenter.v1.Asset.IamPolicy,
+                com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder,
+                com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder>(
+                getIamPolicy(), getParentForChildren(), isClean());
         iamPolicy_ = null;
       }
       return iamPolicyBuilder_;
@@ -5497,6 +6102,8 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyO
 
     private java.lang.Object canonicalName_ = "";
     /**
+     *
+     *
      * 
      * The canonical name of the resource. It's either
      * "organizations/{organization_id}/assets/{asset_id}",
@@ -5506,13 +6113,13 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyO
      * 
* * string canonical_name = 13; + * * @return The canonicalName. */ public java.lang.String getCanonicalName() { java.lang.Object ref = canonicalName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; @@ -5521,6 +6128,8 @@ public java.lang.String getCanonicalName() { } } /** + * + * *
      * The canonical name of the resource. It's either
      * "organizations/{organization_id}/assets/{asset_id}",
@@ -5530,15 +6139,14 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 13; + * * @return The bytes for canonicalName. */ - public com.google.protobuf.ByteString - getCanonicalNameBytes() { + public com.google.protobuf.ByteString getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -5546,6 +6154,8 @@ public java.lang.String getCanonicalName() { } } /** + * + * *
      * The canonical name of the resource. It's either
      * "organizations/{organization_id}/assets/{asset_id}",
@@ -5555,20 +6165,22 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 13; + * * @param value The canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalName( - java.lang.String value) { + public Builder setCanonicalName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + canonicalName_ = value; onChanged(); return this; } /** + * + * *
      * The canonical name of the resource. It's either
      * "organizations/{organization_id}/assets/{asset_id}",
@@ -5578,15 +6190,18 @@ public Builder setCanonicalName(
      * 
* * string canonical_name = 13; + * * @return This builder for chaining. */ public Builder clearCanonicalName() { - + canonicalName_ = getDefaultInstance().getCanonicalName(); onChanged(); return this; } /** + * + * *
      * The canonical name of the resource. It's either
      * "organizations/{organization_id}/assets/{asset_id}",
@@ -5596,23 +6211,23 @@ public Builder clearCanonicalName() {
      * 
* * string canonical_name = 13; + * * @param value The bytes for canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalNameBytes( - com.google.protobuf.ByteString value) { + public Builder setCanonicalNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5622,12 +6237,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Asset) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Asset) private static final com.google.cloud.securitycenter.v1.Asset DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Asset(); } @@ -5636,16 +6251,16 @@ public static com.google.cloud.securitycenter.v1.Asset getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Asset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Asset(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Asset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Asset(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5660,6 +6275,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Asset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetName.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java similarity index 80% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java index 44eb8b021..87023bd82 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/asset.proto package com.google.cloud.securitycenter.v1; -public interface AssetOrBuilder extends +public interface AssetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Asset) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -16,10 +34,13 @@ public interface AssetOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -28,42 +49,59 @@ public interface AssetOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * * @return Whether the securityCenterProperties field is set. */ boolean hasSecurityCenterProperties(); /** + * + * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * * @return The securityCenterProperties. */ com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties getSecurityCenterProperties(); /** + * + * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ - com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder(); + com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder + getSecurityCenterPropertiesOrBuilder(); /** + * + * *
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -73,6 +111,8 @@ public interface AssetOrBuilder extends
    */
   int getResourcePropertiesCount();
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -80,15 +120,13 @@ public interface AssetOrBuilder extends
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-  boolean containsResourceProperties(
-      java.lang.String key);
-  /**
-   * Use {@link #getResourcePropertiesMap()} instead.
-   */
+  boolean containsResourceProperties(java.lang.String key);
+  /** Use {@link #getResourcePropertiesMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getResourceProperties();
+  java.util.Map getResourceProperties();
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -96,9 +134,10 @@ boolean containsResourceProperties(
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-  java.util.Map
-  getResourcePropertiesMap();
+  java.util.Map getResourcePropertiesMap();
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -108,11 +147,13 @@ boolean containsResourceProperties(
    */
 
   /* nullable */
-com.google.protobuf.Value getResourcePropertiesOrDefault(
+  com.google.protobuf.Value getResourcePropertiesOrDefault(
       java.lang.String key,
       /* nullable */
-com.google.protobuf.Value defaultValue);
+      com.google.protobuf.Value defaultValue);
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -120,31 +161,37 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-
-  com.google.protobuf.Value getResourcePropertiesOrThrow(
-      java.lang.String key);
+  com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** + * + * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8; + * * @return The securityMarks. */ com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks(); /** + * + * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
@@ -155,24 +202,32 @@ com.google.protobuf.Value getResourcePropertiesOrThrow(
   com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder();
 
   /**
+   *
+   *
    * 
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time at which the asset was created in Security Command Center.
    * 
@@ -182,24 +237,32 @@ com.google.protobuf.Value getResourcePropertiesOrThrow( com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
* * .google.protobuf.Timestamp update_time = 10; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
* * .google.protobuf.Timestamp update_time = 10; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
@@ -209,6 +272,8 @@ com.google.protobuf.Value getResourcePropertiesOrThrow( com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -217,10 +282,13 @@ com.google.protobuf.Value getResourcePropertiesOrThrow(
    * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + * * @return Whether the iamPolicy field is set. */ boolean hasIamPolicy(); /** + * + * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -229,10 +297,13 @@ com.google.protobuf.Value getResourcePropertiesOrThrow(
    * 
* * .google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11; + * * @return The iamPolicy. */ com.google.cloud.securitycenter.v1.Asset.IamPolicy getIamPolicy(); /** + * + * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -245,6 +316,8 @@ com.google.protobuf.Value getResourcePropertiesOrThrow(
   com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyOrBuilder();
 
   /**
+   *
+   *
    * 
    * The canonical name of the resource. It's either
    * "organizations/{organization_id}/assets/{asset_id}",
@@ -254,10 +327,13 @@ com.google.protobuf.Value getResourcePropertiesOrThrow(
    * 
* * string canonical_name = 13; + * * @return The canonicalName. */ java.lang.String getCanonicalName(); /** + * + * *
    * The canonical name of the resource. It's either
    * "organizations/{organization_id}/assets/{asset_id}",
@@ -267,8 +343,8 @@ com.google.protobuf.Value getResourcePropertiesOrThrow(
    * 
* * string canonical_name = 13; + * * @return The bytes for canonicalName. */ - com.google.protobuf.ByteString - getCanonicalNameBytes(); + com.google.protobuf.ByteString getCanonicalNameBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java new file mode 100644 index 000000000..487cf1492 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/AssetOuterClass.java @@ -0,0 +1,166 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/asset.proto + +package com.google.cloud.securitycenter.v1; + +public final class AssetOuterClass { + private AssetOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Asset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n*google/cloud/securitycenter/v1/asset.p" + + "roto\022\036google.cloud.securitycenter.v1\032\031go" + + "ogle/api/resource.proto\032+google/cloud/se" + + "curitycenter/v1/folder.proto\0323google/clo" + + "ud/securitycenter/v1/security_marks.prot" + + "o\032\034google/protobuf/struct.proto\032\037google/" + + "protobuf/timestamp.proto\"\251\010\n\005Asset\022\014\n\004na" + + "me\030\001 \001(\t\022b\n\032security_center_properties\030\002" + + " \001(\0132>.google.cloud.securitycenter.v1.As" + + "set.SecurityCenterProperties\022Z\n\023resource" + + "_properties\030\007 \003(\0132=.google.cloud.securit" + + "ycenter.v1.Asset.ResourcePropertiesEntry" + + "\022E\n\016security_marks\030\010 \001(\0132-.google.cloud." + + "securitycenter.v1.SecurityMarks\022/\n\013creat" + + "e_time\030\t \001(\0132\032.google.protobuf.Timestamp" + + "\022/\n\013update_time\030\n \001(\0132\032.google.protobuf." + + "Timestamp\022C\n\niam_policy\030\013 \001(\0132/.google.c" + + "loud.securitycenter.v1.Asset.IamPolicy\022\026" + + "\n\016canonical_name\030\r \001(\t\032\271\002\n\030SecurityCente" + + "rProperties\022\025\n\rresource_name\030\001 \001(\t\022\025\n\rre" + + "source_type\030\002 \001(\t\022\027\n\017resource_parent\030\003 \001" + + "(\t\022\030\n\020resource_project\030\004 \001(\t\022\027\n\017resource" + + "_owners\030\005 \003(\t\022\035\n\025resource_display_name\030\006" + + " \001(\t\022$\n\034resource_parent_display_name\030\007 \001" + + "(\t\022%\n\035resource_project_display_name\030\010 \001(" + + "\t\0227\n\007folders\030\n \003(\0132&.google.cloud.securi" + + "tycenter.v1.Folder\032 \n\tIamPolicy\022\023\n\013polic" + + "y_blob\030\001 \001(\t\032Q\n\027ResourcePropertiesEntry\022" + + "\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pro" + + "tobuf.Value:\0028\001:\232\001\352A\226\001\n#securitycenter.g" + + "oogleapis.com/Asset\022+organizations/{orga" + + "nization}/assets/{asset}\022\037folders/{folde" + + "r}/assets/{asset}\022!projects/{project}/as" + + "sets/{asset}B\332\001\n\"com.google.cloud.securi" + + "tycenter.v1P\001ZLgoogle.golang.org/genprot" + + "o/googleapis/cloud/securitycenter/v1;sec" + + "uritycenter\252\002\036Google.Cloud.SecurityCente" + + "r.V1\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!" + + "Google::Cloud::SecurityCenter::V1b\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(), + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_Asset_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Asset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Asset_descriptor, + new java.lang.String[] { + "Name", + "SecurityCenterProperties", + "ResourceProperties", + "SecurityMarks", + "CreateTime", + "UpdateTime", + "IamPolicy", + "CanonicalName", + }); + internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor = + internal_static_google_cloud_securitycenter_v1_Asset_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Asset_SecurityCenterProperties_descriptor, + new java.lang.String[] { + "ResourceName", + "ResourceType", + "ResourceParent", + "ResourceProject", + "ResourceOwners", + "ResourceDisplayName", + "ResourceParentDisplayName", + "ResourceProjectDisplayName", + "Folders", + }); + internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor = + internal_static_google_cloud_securitycenter_v1_Asset_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Asset_IamPolicy_descriptor, + new java.lang.String[] { + "PolicyBlob", + }); + internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_descriptor = + internal_static_google_cloud_securitycenter_v1_Asset_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Asset_ResourcePropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(); + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java index 5c12c3805..8603b33f4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/bigquery_export.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Configures how to deliver Findings to BigQuery Instance.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.BigQueryExport} */ -public final class BigQueryExport extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BigQueryExport extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.BigQueryExport) BigQueryExportOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BigQueryExport.newBuilder() to construct. private BigQueryExport(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BigQueryExport() { name_ = ""; description_ = ""; @@ -30,16 +48,15 @@ private BigQueryExport() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BigQueryExport(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BigQueryExport( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,75 +75,85 @@ private BigQueryExport( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - dataset_ = s; - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + description_ = s; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 50: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + dataset_ = s; + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - mostRecentEditor_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + mostRecentEditor_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - principal_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + principal_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -134,29 +161,33 @@ private BigQueryExport( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.BigQueryExportProto.internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.BigQueryExportProto + .internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.BigQueryExportProto.internal_static_google_cloud_securitycenter_v1_BigQueryExport_fieldAccessorTable + return com.google.cloud.securitycenter.v1.BigQueryExportProto + .internal_static_google_cloud_securitycenter_v1_BigQueryExport_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.BigQueryExport.class, com.google.cloud.securitycenter.v1.BigQueryExport.Builder.class); + com.google.cloud.securitycenter.v1.BigQueryExport.class, + com.google.cloud.securitycenter.v1.BigQueryExport.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The relative resource name of this export. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name.
@@ -169,6 +200,7 @@ private BigQueryExport(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -177,14 +209,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The relative resource name of this export. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name.
@@ -197,16 +230,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -217,11 +249,14 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
    * The description of the export (max of 1024 characters).
    * 
* * string description = 2; + * * @return The description. */ @java.lang.Override @@ -230,29 +265,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * The description of the export (max of 1024 characters).
    * 
* * string description = 2; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -263,6 +298,8 @@ public java.lang.String getDescription() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** + * + * *
    * Expression that defines the filter to apply across create/update events
    * of findings. The expression is a list of zero or more restrictions combined
@@ -282,6 +319,7 @@ public java.lang.String getDescription() {
    * 
* * string filter = 3; + * * @return The filter. */ @java.lang.Override @@ -290,14 +328,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Expression that defines the filter to apply across create/update events
    * of findings. The expression is a list of zero or more restrictions combined
@@ -317,16 +356,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 3; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -337,6 +375,8 @@ public java.lang.String getFilter() { public static final int DATASET_FIELD_NUMBER = 4; private volatile java.lang.Object dataset_; /** + * + * *
    * The dataset to write findings' updates to. Its format is
    * "projects/[project_id]/datasets/[bigquery_dataset_id]".
@@ -345,6 +385,7 @@ public java.lang.String getFilter() {
    * 
* * string dataset = 4; + * * @return The dataset. */ @java.lang.Override @@ -353,14 +394,15 @@ public java.lang.String getDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; } } /** + * + * *
    * The dataset to write findings' updates to. Its format is
    * "projects/[project_id]/datasets/[bigquery_dataset_id]".
@@ -369,16 +411,15 @@ public java.lang.String getDataset() {
    * 
* * string dataset = 4; + * * @return The bytes for dataset. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatasetBytes() { + public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataset_ = b; return b; } else { @@ -389,13 +430,17 @@ public java.lang.String getDataset() { public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time at which the big query export was created.
    * This field is set by the server and will be ignored if provided on export
    * on creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -403,13 +448,17 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time at which the big query export was created.
    * This field is set by the server and will be ignored if provided on export
    * on creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -417,13 +466,16 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time at which the big query export was created.
    * This field is set by the server and will be ignored if provided on export
    * on creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -433,13 +485,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The most recent time at which the big export was updated.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -447,13 +503,17 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The most recent time at which the big export was updated.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -461,13 +521,16 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The most recent time at which the big export was updated.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -477,6 +540,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int MOST_RECENT_EDITOR_FIELD_NUMBER = 7; private volatile java.lang.Object mostRecentEditor_; /** + * + * *
    * Output only. Email address of the user who last edited the big query export.
    * This field is set by the server and will be ignored if provided on export
@@ -484,6 +549,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The mostRecentEditor. */ @java.lang.Override @@ -492,14 +558,15 @@ public java.lang.String getMostRecentEditor() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mostRecentEditor_ = s; return s; } } /** + * + * *
    * Output only. Email address of the user who last edited the big query export.
    * This field is set by the server and will be ignored if provided on export
@@ -507,16 +574,15 @@ public java.lang.String getMostRecentEditor() {
    * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for mostRecentEditor. */ @java.lang.Override - public com.google.protobuf.ByteString - getMostRecentEditorBytes() { + public com.google.protobuf.ByteString getMostRecentEditorBytes() { java.lang.Object ref = mostRecentEditor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mostRecentEditor_ = b; return b; } else { @@ -527,12 +593,15 @@ public java.lang.String getMostRecentEditor() { public static final int PRINCIPAL_FIELD_NUMBER = 8; private volatile java.lang.Object principal_; /** + * + * *
    * Output only. The service account that needs permission to create table, upload data to
    * the big query dataset.
    * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The principal. */ @java.lang.Override @@ -541,30 +610,30 @@ public java.lang.String getPrincipal() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principal_ = s; return s; } } /** + * + * *
    * Output only. The service account that needs permission to create table, upload data to
    * the big query dataset.
    * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for principal. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrincipalBytes() { + public com.google.protobuf.ByteString getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); principal_ = b; return b; } else { @@ -573,6 +642,7 @@ public java.lang.String getPrincipal() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -584,8 +654,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -632,12 +701,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, dataset_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mostRecentEditor_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, mostRecentEditor_); @@ -653,35 +720,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.BigQueryExport)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.BigQueryExport other = (com.google.cloud.securitycenter.v1.BigQueryExport) obj; + com.google.cloud.securitycenter.v1.BigQueryExport other = + (com.google.cloud.securitycenter.v1.BigQueryExport) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getDataset() - .equals(other.getDataset())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getDataset().equals(other.getDataset())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!getMostRecentEditor() - .equals(other.getMostRecentEditor())) return false; - if (!getPrincipal() - .equals(other.getPrincipal())) return false; + if (!getMostRecentEditor().equals(other.getMostRecentEditor())) return false; + if (!getPrincipal().equals(other.getPrincipal())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -719,117 +779,126 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.BigQueryExport parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.BigQueryExport parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.BigQueryExport parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.BigQueryExport parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.BigQueryExport prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configures how to deliver Findings to BigQuery Instance.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.BigQueryExport} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.BigQueryExport) com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.BigQueryExportProto.internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.BigQueryExportProto + .internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.BigQueryExportProto.internal_static_google_cloud_securitycenter_v1_BigQueryExport_fieldAccessorTable + return com.google.cloud.securitycenter.v1.BigQueryExportProto + .internal_static_google_cloud_securitycenter_v1_BigQueryExport_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.BigQueryExport.class, com.google.cloud.securitycenter.v1.BigQueryExport.Builder.class); + com.google.cloud.securitycenter.v1.BigQueryExport.class, + com.google.cloud.securitycenter.v1.BigQueryExport.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.BigQueryExport.newBuilder() @@ -837,16 +906,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -878,9 +946,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.BigQueryExportProto.internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.BigQueryExportProto + .internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor; } @java.lang.Override @@ -899,7 +967,8 @@ public com.google.cloud.securitycenter.v1.BigQueryExport build() { @java.lang.Override public com.google.cloud.securitycenter.v1.BigQueryExport buildPartial() { - com.google.cloud.securitycenter.v1.BigQueryExport result = new com.google.cloud.securitycenter.v1.BigQueryExport(this); + com.google.cloud.securitycenter.v1.BigQueryExport result = + new com.google.cloud.securitycenter.v1.BigQueryExport(this); result.name_ = name_; result.description_ = description_; result.filter_ = filter_; @@ -924,38 +993,39 @@ public com.google.cloud.securitycenter.v1.BigQueryExport buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.BigQueryExport) { - return mergeFrom((com.google.cloud.securitycenter.v1.BigQueryExport)other); + return mergeFrom((com.google.cloud.securitycenter.v1.BigQueryExport) other); } else { super.mergeFrom(other); return this; @@ -963,7 +1033,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.BigQueryExport other) { - if (other == com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1013,7 +1084,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.BigQueryExport) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.BigQueryExport) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1025,6 +1097,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The relative resource name of this export. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name.
@@ -1037,13 +1111,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1052,6 +1126,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this export. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name.
@@ -1064,15 +1140,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1080,6 +1155,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this export. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name.
@@ -1092,20 +1169,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The relative resource name of this export. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name.
@@ -1118,15 +1197,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The relative resource name of this export. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name.
@@ -1139,16 +1221,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1156,18 +1238,20 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * The description of the export (max of 1024 characters).
      * 
* * string description = 2; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1176,20 +1260,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the export (max of 1024 characters).
      * 
* * string description = 2; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1197,54 +1282,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the export (max of 1024 characters).
      * 
* * string description = 2; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * The description of the export (max of 1024 characters).
      * 
* * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * The description of the export (max of 1024 characters).
      * 
* * string description = 2; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1252,6 +1344,8 @@ public Builder setDescriptionBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Expression that defines the filter to apply across create/update events
      * of findings. The expression is a list of zero or more restrictions combined
@@ -1271,13 +1365,13 @@ public Builder setDescriptionBytes(
      * 
* * string filter = 3; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1286,6 +1380,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across create/update events
      * of findings. The expression is a list of zero or more restrictions combined
@@ -1305,15 +1401,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1321,6 +1416,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across create/update events
      * of findings. The expression is a list of zero or more restrictions combined
@@ -1340,20 +1437,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across create/update events
      * of findings. The expression is a list of zero or more restrictions combined
@@ -1373,15 +1472,18 @@ public Builder setFilter(
      * 
* * string filter = 3; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across create/update events
      * of findings. The expression is a list of zero or more restrictions combined
@@ -1401,16 +1503,16 @@ public Builder clearFilter() {
      * 
* * string filter = 3; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1418,6 +1520,8 @@ public Builder setFilterBytes( private java.lang.Object dataset_ = ""; /** + * + * *
      * The dataset to write findings' updates to. Its format is
      * "projects/[project_id]/datasets/[bigquery_dataset_id]".
@@ -1426,13 +1530,13 @@ public Builder setFilterBytes(
      * 
* * string dataset = 4; + * * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; @@ -1441,6 +1545,8 @@ public java.lang.String getDataset() { } } /** + * + * *
      * The dataset to write findings' updates to. Its format is
      * "projects/[project_id]/datasets/[bigquery_dataset_id]".
@@ -1449,15 +1555,14 @@ public java.lang.String getDataset() {
      * 
* * string dataset = 4; + * * @return The bytes for dataset. */ - public com.google.protobuf.ByteString - getDatasetBytes() { + public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataset_ = b; return b; } else { @@ -1465,6 +1570,8 @@ public java.lang.String getDataset() { } } /** + * + * *
      * The dataset to write findings' updates to. Its format is
      * "projects/[project_id]/datasets/[bigquery_dataset_id]".
@@ -1473,20 +1580,22 @@ public java.lang.String getDataset() {
      * 
* * string dataset = 4; + * * @param value The dataset to set. * @return This builder for chaining. */ - public Builder setDataset( - java.lang.String value) { + public Builder setDataset(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataset_ = value; onChanged(); return this; } /** + * + * *
      * The dataset to write findings' updates to. Its format is
      * "projects/[project_id]/datasets/[bigquery_dataset_id]".
@@ -1495,15 +1604,18 @@ public Builder setDataset(
      * 
* * string dataset = 4; + * * @return This builder for chaining. */ public Builder clearDataset() { - + dataset_ = getDefaultInstance().getDataset(); onChanged(); return this; } /** + * + * *
      * The dataset to write findings' updates to. Its format is
      * "projects/[project_id]/datasets/[bigquery_dataset_id]".
@@ -1512,16 +1624,16 @@ public Builder clearDataset() {
      * 
* * string dataset = 4; + * * @param value The bytes for dataset to set. * @return This builder for chaining. */ - public Builder setDatasetBytes( - com.google.protobuf.ByteString value) { + public Builder setDatasetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; onChanged(); return this; @@ -1529,45 +1641,64 @@ public Builder setDatasetBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time at which the big query export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time at which the big query export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which the big query export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1583,16 +1714,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which the big query export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1603,19 +1737,23 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time at which the big query export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1627,13 +1765,17 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which the big query export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1647,54 +1789,70 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time at which the big query export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which the big query export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time at which the big query export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1702,45 +1860,64 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The most recent time at which the big export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The most recent time at which the big export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The most recent time at which the big export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1756,16 +1933,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time at which the big export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1776,19 +1956,23 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The most recent time at which the big export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1800,13 +1984,17 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time at which the big export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1820,54 +2008,70 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The most recent time at which the big export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The most recent time at which the big export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The most recent time at which the big export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -1875,6 +2079,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object mostRecentEditor_ = ""; /** + * + * *
      * Output only. Email address of the user who last edited the big query export.
      * This field is set by the server and will be ignored if provided on export
@@ -1882,13 +2088,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The mostRecentEditor. */ public java.lang.String getMostRecentEditor() { java.lang.Object ref = mostRecentEditor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mostRecentEditor_ = s; return s; @@ -1897,6 +2103,8 @@ public java.lang.String getMostRecentEditor() { } } /** + * + * *
      * Output only. Email address of the user who last edited the big query export.
      * This field is set by the server and will be ignored if provided on export
@@ -1904,15 +2112,14 @@ public java.lang.String getMostRecentEditor() {
      * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for mostRecentEditor. */ - public com.google.protobuf.ByteString - getMostRecentEditorBytes() { + public com.google.protobuf.ByteString getMostRecentEditorBytes() { java.lang.Object ref = mostRecentEditor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mostRecentEditor_ = b; return b; } else { @@ -1920,6 +2127,8 @@ public java.lang.String getMostRecentEditor() { } } /** + * + * *
      * Output only. Email address of the user who last edited the big query export.
      * This field is set by the server and will be ignored if provided on export
@@ -1927,20 +2136,22 @@ public java.lang.String getMostRecentEditor() {
      * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The mostRecentEditor to set. * @return This builder for chaining. */ - public Builder setMostRecentEditor( - java.lang.String value) { + public Builder setMostRecentEditor(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mostRecentEditor_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Email address of the user who last edited the big query export.
      * This field is set by the server and will be ignored if provided on export
@@ -1948,15 +2159,18 @@ public Builder setMostRecentEditor(
      * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearMostRecentEditor() { - + mostRecentEditor_ = getDefaultInstance().getMostRecentEditor(); onChanged(); return this; } /** + * + * *
      * Output only. Email address of the user who last edited the big query export.
      * This field is set by the server and will be ignored if provided on export
@@ -1964,16 +2178,16 @@ public Builder clearMostRecentEditor() {
      * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for mostRecentEditor to set. * @return This builder for chaining. */ - public Builder setMostRecentEditorBytes( - com.google.protobuf.ByteString value) { + public Builder setMostRecentEditorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mostRecentEditor_ = value; onChanged(); return this; @@ -1981,19 +2195,21 @@ public Builder setMostRecentEditorBytes( private java.lang.Object principal_ = ""; /** + * + * *
      * Output only. The service account that needs permission to create table, upload data to
      * the big query dataset.
      * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The principal. */ public java.lang.String getPrincipal() { java.lang.Object ref = principal_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); principal_ = s; return s; @@ -2002,21 +2218,22 @@ public java.lang.String getPrincipal() { } } /** + * + * *
      * Output only. The service account that needs permission to create table, upload data to
      * the big query dataset.
      * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for principal. */ - public com.google.protobuf.ByteString - getPrincipalBytes() { + public com.google.protobuf.ByteString getPrincipalBytes() { java.lang.Object ref = principal_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); principal_ = b; return b; } else { @@ -2024,64 +2241,71 @@ public java.lang.String getPrincipal() { } } /** + * + * *
      * Output only. The service account that needs permission to create table, upload data to
      * the big query dataset.
      * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The principal to set. * @return This builder for chaining. */ - public Builder setPrincipal( - java.lang.String value) { + public Builder setPrincipal(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + principal_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The service account that needs permission to create table, upload data to
      * the big query dataset.
      * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPrincipal() { - + principal_ = getDefaultInstance().getPrincipal(); onChanged(); return this; } /** + * + * *
      * Output only. The service account that needs permission to create table, upload data to
      * the big query dataset.
      * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for principal to set. * @return This builder for chaining. */ - public Builder setPrincipalBytes( - com.google.protobuf.ByteString value) { + public Builder setPrincipalBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principal_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2091,12 +2315,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.BigQueryExport) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.BigQueryExport) private static final com.google.cloud.securitycenter.v1.BigQueryExport DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.BigQueryExport(); } @@ -2105,16 +2329,16 @@ public static com.google.cloud.securitycenter.v1.BigQueryExport getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryExport parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BigQueryExport(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryExport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BigQueryExport(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2129,6 +2353,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.BigQueryExport getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportName.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java similarity index 83% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java index e24d90ab0..913eaddea 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/bigquery_export.proto package com.google.cloud.securitycenter.v1; -public interface BigQueryExportOrBuilder extends +public interface BigQueryExportOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.BigQueryExport) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The relative resource name of this export. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name.
@@ -20,10 +38,13 @@ public interface BigQueryExportOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The relative resource name of this export. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name.
@@ -36,32 +57,39 @@ public interface BigQueryExportOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The description of the export (max of 1024 characters).
    * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * The description of the export (max of 1024 characters).
    * 
* * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Expression that defines the filter to apply across create/update events
    * of findings. The expression is a list of zero or more restrictions combined
@@ -81,10 +109,13 @@ public interface BigQueryExportOrBuilder extends
    * 
* * string filter = 3; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Expression that defines the filter to apply across create/update events
    * of findings. The expression is a list of zero or more restrictions combined
@@ -104,12 +135,14 @@ public interface BigQueryExportOrBuilder extends
    * 
* * string filter = 3; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * The dataset to write findings' updates to. Its format is
    * "projects/[project_id]/datasets/[bigquery_dataset_id]".
@@ -118,10 +151,13 @@ public interface BigQueryExportOrBuilder extends
    * 
* * string dataset = 4; + * * @return The dataset. */ java.lang.String getDataset(); /** + * + * *
    * The dataset to write findings' updates to. Its format is
    * "projects/[project_id]/datasets/[bigquery_dataset_id]".
@@ -130,78 +166,102 @@ public interface BigQueryExportOrBuilder extends
    * 
* * string dataset = 4; + * * @return The bytes for dataset. */ - com.google.protobuf.ByteString - getDatasetBytes(); + com.google.protobuf.ByteString getDatasetBytes(); /** + * + * *
    * Output only. The time at which the big query export was created.
    * This field is set by the server and will be ignored if provided on export
    * on creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time at which the big query export was created.
    * This field is set by the server and will be ignored if provided on export
    * on creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time at which the big query export was created.
    * This field is set by the server and will be ignored if provided on export
    * on creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The most recent time at which the big export was updated.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The most recent time at which the big export was updated.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The most recent time at which the big export was updated.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. Email address of the user who last edited the big query export.
    * This field is set by the server and will be ignored if provided on export
@@ -209,10 +269,13 @@ public interface BigQueryExportOrBuilder extends
    * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The mostRecentEditor. */ java.lang.String getMostRecentEditor(); /** + * + * *
    * Output only. Email address of the user who last edited the big query export.
    * This field is set by the server and will be ignored if provided on export
@@ -220,30 +283,35 @@ public interface BigQueryExportOrBuilder extends
    * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for mostRecentEditor. */ - com.google.protobuf.ByteString - getMostRecentEditorBytes(); + com.google.protobuf.ByteString getMostRecentEditorBytes(); /** + * + * *
    * Output only. The service account that needs permission to create table, upload data to
    * the big query dataset.
    * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The principal. */ java.lang.String getPrincipal(); /** + * + * *
    * Output only. The service account that needs permission to create table, upload data to
    * the big query dataset.
    * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for principal. */ - com.google.protobuf.ByteString - getPrincipalBytes(); + com.google.protobuf.ByteString getPrincipalBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportProto.java new file mode 100644 index 000000000..d95fbeaca --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportProto.java @@ -0,0 +1,101 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/bigquery_export.proto + +package com.google.cloud.securitycenter.v1; + +public final class BigQueryExportProto { + private BigQueryExportProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_BigQueryExport_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/securitycenter/v1/bigquer" + + "y_export.proto\022\036google.cloud.securitycen" + + "ter.v1\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032\037google/proto" + + "buf/timestamp.proto\"\275\003\n\016BigQueryExport\022\014" + + "\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\016\n\006fil" + + "ter\030\003 \001(\t\022\017\n\007dataset\030\004 \001(\t\0224\n\013create_tim" + + "e\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013update_time\030\006 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022\037\n\022most_recent_editor\030\007 \001" + + "(\tB\003\340A\003\022\026\n\tprincipal\030\010 \001(\tB\003\340A\003:\301\001\352A\275\001\n," + + "securitycenter.googleapis.com/BigQueryEx" + + "port\0225organizations/{organization}/bigQu" + + "eryExports/{export}\022)folders/{folder}/bi" + + "gQueryExports/{export}\022+projects/{projec" + + "t}/bigQueryExports/{export}B\357\001\n\"com.goog" + + "le.cloud.securitycenter.v1B\023BigQueryExpo" + + "rtProtoP\001ZLgoogle.golang.org/genproto/go" + + "ogleapis/cloud/securitycenter/v1;securit" + + "ycenter\252\002\036Google.Cloud.SecurityCenter.V1" + + "\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!Goog" + + "le::Cloud::SecurityCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_BigQueryExport_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_BigQueryExport_descriptor, + new java.lang.String[] { + "Name", + "Description", + "Filter", + "Dataset", + "CreateTime", + "UpdateTime", + "MostRecentEditor", + "Principal", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequest.java index 64585cedb..dd8dd5634 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for bulk findings update.
  * Note:
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.BulkMuteFindingsRequest}
  */
-public final class BulkMuteFindingsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BulkMuteFindingsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.BulkMuteFindingsRequest)
     BulkMuteFindingsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BulkMuteFindingsRequest.newBuilder() to construct.
   private BulkMuteFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private BulkMuteFindingsRequest() {
     parent_ = "";
     filter_ = "";
@@ -31,16 +49,15 @@ private BulkMuteFindingsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BulkMuteFindingsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private BulkMuteFindingsRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,31 +76,34 @@ private BulkMuteFindingsRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            parent_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              parent_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            filter_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              filter_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            muteAnnotation_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              muteAnnotation_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -91,36 +111,43 @@ private BulkMuteFindingsRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1.SecuritycenterService
+        .internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.SecuritycenterService
+        .internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.class, com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.Builder.class);
+            com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.class,
+            com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
+   *
+   *
    * 
    * Required. The parent, at which bulk action needs to be applied. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -129,31 +156,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent, at which bulk action needs to be applied. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -164,6 +193,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Expression that identifies findings that should be updated.
    * The expression is a list of zero or more restrictions combined
@@ -183,6 +214,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -191,14 +223,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Expression that identifies findings that should be updated.
    * The expression is a list of zero or more restrictions combined
@@ -218,16 +251,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -238,48 +270,53 @@ public java.lang.String getFilter() { public static final int MUTE_ANNOTATION_FIELD_NUMBER = 3; private volatile java.lang.Object muteAnnotation_; /** + * + * *
    * This can be a mute configuration name or any identifier for mute/unmute
    * of findings based on the filter.
    * 
* * string mute_annotation = 3 [deprecated = true]; - * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. - * See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 + * + * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is + * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 * @return The muteAnnotation. */ @java.lang.Override - @java.lang.Deprecated public java.lang.String getMuteAnnotation() { + @java.lang.Deprecated + public java.lang.String getMuteAnnotation() { java.lang.Object ref = muteAnnotation_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); muteAnnotation_ = s; return s; } } /** + * + * *
    * This can be a mute configuration name or any identifier for mute/unmute
    * of findings based on the filter.
    * 
* * string mute_annotation = 3 [deprecated = true]; - * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. - * See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 + * + * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is + * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 * @return The bytes for muteAnnotation. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getMuteAnnotationBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getMuteAnnotationBytes() { java.lang.Object ref = muteAnnotation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); muteAnnotation_ = b; return b; } else { @@ -288,6 +325,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -299,8 +337,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -336,19 +373,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest other = (com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getMuteAnnotation() - .equals(other.getMuteAnnotation())) return false; + com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest other = + (com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getMuteAnnotation().equals(other.getMuteAnnotation())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,96 +407,104 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for bulk findings update.
    * Note:
@@ -472,21 +515,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.BulkMuteFindingsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.BulkMuteFindingsRequest)
       com.google.cloud.securitycenter.v1.BulkMuteFindingsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.SecuritycenterService
+          .internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.SecuritycenterService
+          .internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.class, com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.Builder.class);
+              com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.class,
+              com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.newBuilder()
@@ -494,16 +539,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -517,9 +561,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.SecuritycenterService
+          .internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -538,7 +582,8 @@ public com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest buildPartial() {
-      com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest result = new com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest(this);
+      com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest result =
+          new com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest(this);
       result.parent_ = parent_;
       result.filter_ = filter_;
       result.muteAnnotation_ = muteAnnotation_;
@@ -550,38 +595,39 @@ public com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -589,7 +635,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest other) {
-      if (other == com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -621,7 +668,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -633,20 +681,24 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The parent, at which bulk action needs to be applied. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -655,22 +707,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, at which bulk action needs to be applied. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -678,60 +733,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, at which bulk action needs to be applied. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent, at which bulk action needs to be applied. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent, at which bulk action needs to be applied. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -739,6 +807,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Expression that identifies findings that should be updated.
      * The expression is a list of zero or more restrictions combined
@@ -758,13 +828,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -773,6 +843,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that identifies findings that should be updated.
      * The expression is a list of zero or more restrictions combined
@@ -792,15 +864,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -808,6 +879,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that identifies findings that should be updated.
      * The expression is a list of zero or more restrictions combined
@@ -827,20 +900,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Expression that identifies findings that should be updated.
      * The expression is a list of zero or more restrictions combined
@@ -860,15 +935,18 @@ public Builder setFilter(
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Expression that identifies findings that should be updated.
      * The expression is a list of zero or more restrictions combined
@@ -888,16 +966,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -905,21 +983,24 @@ public Builder setFilterBytes( private java.lang.Object muteAnnotation_ = ""; /** + * + * *
      * This can be a mute configuration name or any identifier for mute/unmute
      * of findings based on the filter.
      * 
* * string mute_annotation = 3 [deprecated = true]; - * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. - * See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 + * + * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is + * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 * @return The muteAnnotation. */ - @java.lang.Deprecated public java.lang.String getMuteAnnotation() { + @java.lang.Deprecated + public java.lang.String getMuteAnnotation() { java.lang.Object ref = muteAnnotation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); muteAnnotation_ = s; return s; @@ -928,23 +1009,25 @@ public Builder setFilterBytes( } } /** + * + * *
      * This can be a mute configuration name or any identifier for mute/unmute
      * of findings based on the filter.
      * 
* * string mute_annotation = 3 [deprecated = true]; - * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. - * See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 + * + * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is + * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 * @return The bytes for muteAnnotation. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getMuteAnnotationBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getMuteAnnotationBytes() { java.lang.Object ref = muteAnnotation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); muteAnnotation_ = b; return b; } else { @@ -952,70 +1035,80 @@ public Builder setFilterBytes( } } /** + * + * *
      * This can be a mute configuration name or any identifier for mute/unmute
      * of findings based on the filter.
      * 
* * string mute_annotation = 3 [deprecated = true]; - * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. - * See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 + * + * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is + * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 * @param value The muteAnnotation to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setMuteAnnotation( - java.lang.String value) { + @java.lang.Deprecated + public Builder setMuteAnnotation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + muteAnnotation_ = value; onChanged(); return this; } /** + * + * *
      * This can be a mute configuration name or any identifier for mute/unmute
      * of findings based on the filter.
      * 
* * string mute_annotation = 3 [deprecated = true]; - * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. - * See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 + * + * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is + * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearMuteAnnotation() { - + @java.lang.Deprecated + public Builder clearMuteAnnotation() { + muteAnnotation_ = getDefaultInstance().getMuteAnnotation(); onChanged(); return this; } /** + * + * *
      * This can be a mute configuration name or any identifier for mute/unmute
      * of findings based on the filter.
      * 
* * string mute_annotation = 3 [deprecated = true]; - * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. - * See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 + * + * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is + * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 * @param value The bytes for muteAnnotation to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setMuteAnnotationBytes( - com.google.protobuf.ByteString value) { + @java.lang.Deprecated + public Builder setMuteAnnotationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + muteAnnotation_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1025,12 +1118,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.BulkMuteFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.BulkMuteFindingsRequest) private static final com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest(); } @@ -1039,16 +1132,16 @@ public static com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BulkMuteFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BulkMuteFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BulkMuteFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BulkMuteFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1063,6 +1156,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequestOrBuilder.java index b42e89fd7..911496824 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface BulkMuteFindingsRequestOrBuilder extends +public interface BulkMuteFindingsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.BulkMuteFindingsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent, at which bulk action needs to be applied. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent, at which bulk action needs to be applied. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Expression that identifies findings that should be updated.
    * The expression is a list of zero or more restrictions combined
@@ -51,10 +78,13 @@ public interface BulkMuteFindingsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Expression that identifies findings that should be updated.
    * The expression is a list of zero or more restrictions combined
@@ -74,34 +104,41 @@ public interface BulkMuteFindingsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * This can be a mute configuration name or any identifier for mute/unmute
    * of findings based on the filter.
    * 
* * string mute_annotation = 3 [deprecated = true]; - * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. - * See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 + * + * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is + * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 * @return The muteAnnotation. */ - @java.lang.Deprecated java.lang.String getMuteAnnotation(); + @java.lang.Deprecated + java.lang.String getMuteAnnotation(); /** + * + * *
    * This can be a mute configuration name or any identifier for mute/unmute
    * of findings based on the filter.
    * 
* * string mute_annotation = 3 [deprecated = true]; - * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. - * See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 + * + * @deprecated google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is + * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=602 * @return The bytes for muteAnnotation. */ - @java.lang.Deprecated com.google.protobuf.ByteString - getMuteAnnotationBytes(); + @java.lang.Deprecated + com.google.protobuf.ByteString getMuteAnnotationBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponse.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponse.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponse.java index 3355fbffc..12d621360 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponse.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * The response to a BulkMute request. Contains the LRO information.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.BulkMuteFindingsResponse} */ -public final class BulkMuteFindingsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BulkMuteFindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.BulkMuteFindingsResponse) BulkMuteFindingsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BulkMuteFindingsResponse.newBuilder() to construct. private BulkMuteFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BulkMuteFindingsResponse() { - } + + private BulkMuteFindingsResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BulkMuteFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BulkMuteFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private BulkMuteFindingsResponse( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -66,27 +82,30 @@ private BulkMuteFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.class, com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.class, + com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -98,8 +117,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -117,12 +135,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse other = (com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse) obj; + com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse other = + (com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -141,117 +160,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response to a BulkMute request. Contains the LRO information.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.BulkMuteFindingsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.BulkMuteFindingsResponse) com.google.cloud.securitycenter.v1.BulkMuteFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.class, com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.class, + com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.newBuilder() @@ -259,16 +288,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +304,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor; } @java.lang.Override @@ -297,7 +325,8 @@ public com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse buildPartial() { - com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse result = new com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse(this); + com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse result = + new com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse(this); onBuilt(); return result; } @@ -306,38 +335,39 @@ public com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse)other); + return mergeFrom((com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse) other); } else { super.mergeFrom(other); return this; @@ -345,7 +375,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse other) { - if (other == com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -365,7 +396,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +406,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -386,12 +418,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.BulkMuteFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.BulkMuteFindingsResponse) private static final com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse(); } @@ -400,16 +432,16 @@ public static com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BulkMuteFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BulkMuteFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BulkMuteFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BulkMuteFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +456,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.BulkMuteFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponseOrBuilder.java new file mode 100644 index 000000000..15942a820 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface BulkMuteFindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.BulkMuteFindingsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Compliance.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Compliance.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Compliance.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Compliance.java index e38f24f55..0ab2a44ae 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Compliance.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Compliance.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/compliance.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Contains compliance information about a security standard indicating unmet
  * recommendations.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.Compliance}
  */
-public final class Compliance extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Compliance extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Compliance)
     ComplianceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Compliance.newBuilder() to construct.
   private Compliance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Compliance() {
     standard_ = "";
     version_ = "";
@@ -28,16 +46,15 @@ private Compliance() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Compliance();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Compliance(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,34 +74,37 @@ private Compliance(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            standard_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              standard_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            version_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              ids_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              version_ = s;
+              break;
             }
-            ids_.add(s);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                ids_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              ids_.add(s);
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,8 +112,7 @@ private Compliance(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         ids_ = ids_.getUnmodifiableView();
@@ -102,28 +121,34 @@ private Compliance(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1.ComplianceProto.internal_static_google_cloud_securitycenter_v1_Compliance_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1.ComplianceProto
+        .internal_static_google_cloud_securitycenter_v1_Compliance_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.ComplianceProto.internal_static_google_cloud_securitycenter_v1_Compliance_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.ComplianceProto
+        .internal_static_google_cloud_securitycenter_v1_Compliance_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.Compliance.class, com.google.cloud.securitycenter.v1.Compliance.Builder.class);
+            com.google.cloud.securitycenter.v1.Compliance.class,
+            com.google.cloud.securitycenter.v1.Compliance.Builder.class);
   }
 
   public static final int STANDARD_FIELD_NUMBER = 1;
   private volatile java.lang.Object standard_;
   /**
+   *
+   *
    * 
    * Refers to industry wide standards or benchmarks e.g. "cis", "pci", "owasp",
    * etc.
    * 
* * string standard = 1; + * * @return The standard. */ @java.lang.Override @@ -132,30 +157,30 @@ public java.lang.String getStandard() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); standard_ = s; return s; } } /** + * + * *
    * Refers to industry wide standards or benchmarks e.g. "cis", "pci", "owasp",
    * etc.
    * 
* * string standard = 1; + * * @return The bytes for standard. */ @java.lang.Override - public com.google.protobuf.ByteString - getStandardBytes() { + public com.google.protobuf.ByteString getStandardBytes() { java.lang.Object ref = standard_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); standard_ = b; return b; } else { @@ -166,11 +191,14 @@ public java.lang.String getStandard() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** + * + * *
    * Version of the standard/benchmark e.g. 1.1
    * 
* * string version = 2; + * * @return The version. */ @java.lang.Override @@ -179,29 +207,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * Version of the standard/benchmark e.g. 1.1
    * 
* * string version = 2; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -212,34 +240,42 @@ public java.lang.String getVersion() { public static final int IDS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList ids_; /** + * + * *
    * Policies within the standard/benchmark e.g. A.12.4.1
    * 
* * repeated string ids = 3; + * * @return A list containing the ids. */ - public com.google.protobuf.ProtocolStringList - getIdsList() { + public com.google.protobuf.ProtocolStringList getIdsList() { return ids_; } /** + * + * *
    * Policies within the standard/benchmark e.g. A.12.4.1
    * 
* * repeated string ids = 3; + * * @return The count of ids. */ public int getIdsCount() { return ids_.size(); } /** + * + * *
    * Policies within the standard/benchmark e.g. A.12.4.1
    * 
* * repeated string ids = 3; + * * @param index The index of the element to return. * @return The ids at the given index. */ @@ -247,20 +283,23 @@ public java.lang.String getIds(int index) { return ids_.get(index); } /** + * + * *
    * Policies within the standard/benchmark e.g. A.12.4.1
    * 
* * repeated string ids = 3; + * * @param index The index of the value to return. * @return The bytes of the ids at the given index. */ - public com.google.protobuf.ByteString - getIdsBytes(int index) { + public com.google.protobuf.ByteString getIdsBytes(int index) { return ids_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,8 +311,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(standard_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, standard_); } @@ -314,19 +352,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Compliance)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Compliance other = (com.google.cloud.securitycenter.v1.Compliance) obj; + com.google.cloud.securitycenter.v1.Compliance other = + (com.google.cloud.securitycenter.v1.Compliance) obj; - if (!getStandard() - .equals(other.getStandard())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getIdsList() - .equals(other.getIdsList())) return false; + if (!getStandard().equals(other.getStandard())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getIdsList().equals(other.getIdsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -351,97 +387,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Compliance parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Compliance parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Compliance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Compliance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Compliance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Compliance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Compliance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Compliance parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Compliance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Compliance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.Compliance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Compliance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Compliance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Compliance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.Compliance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Contains compliance information about a security standard indicating unmet
    * recommendations.
@@ -449,21 +492,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.Compliance}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Compliance)
       com.google.cloud.securitycenter.v1.ComplianceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.ComplianceProto.internal_static_google_cloud_securitycenter_v1_Compliance_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.ComplianceProto
+          .internal_static_google_cloud_securitycenter_v1_Compliance_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.ComplianceProto.internal_static_google_cloud_securitycenter_v1_Compliance_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.ComplianceProto
+          .internal_static_google_cloud_securitycenter_v1_Compliance_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.Compliance.class, com.google.cloud.securitycenter.v1.Compliance.Builder.class);
+              com.google.cloud.securitycenter.v1.Compliance.class,
+              com.google.cloud.securitycenter.v1.Compliance.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.Compliance.newBuilder()
@@ -471,16 +516,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -494,9 +538,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.ComplianceProto.internal_static_google_cloud_securitycenter_v1_Compliance_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.ComplianceProto
+          .internal_static_google_cloud_securitycenter_v1_Compliance_descriptor;
     }
 
     @java.lang.Override
@@ -515,7 +559,8 @@ public com.google.cloud.securitycenter.v1.Compliance build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.Compliance buildPartial() {
-      com.google.cloud.securitycenter.v1.Compliance result = new com.google.cloud.securitycenter.v1.Compliance(this);
+      com.google.cloud.securitycenter.v1.Compliance result =
+          new com.google.cloud.securitycenter.v1.Compliance(this);
       int from_bitField0_ = bitField0_;
       result.standard_ = standard_;
       result.version_ = version_;
@@ -532,38 +577,39 @@ public com.google.cloud.securitycenter.v1.Compliance buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.Compliance) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.Compliance)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.Compliance) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -618,23 +664,26 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object standard_ = "";
     /**
+     *
+     *
      * 
      * Refers to industry wide standards or benchmarks e.g. "cis", "pci", "owasp",
      * etc.
      * 
* * string standard = 1; + * * @return The standard. */ public java.lang.String getStandard() { java.lang.Object ref = standard_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); standard_ = s; return s; @@ -643,21 +692,22 @@ public java.lang.String getStandard() { } } /** + * + * *
      * Refers to industry wide standards or benchmarks e.g. "cis", "pci", "owasp",
      * etc.
      * 
* * string standard = 1; + * * @return The bytes for standard. */ - public com.google.protobuf.ByteString - getStandardBytes() { + public com.google.protobuf.ByteString getStandardBytes() { java.lang.Object ref = standard_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); standard_ = b; return b; } else { @@ -665,57 +715,64 @@ public java.lang.String getStandard() { } } /** + * + * *
      * Refers to industry wide standards or benchmarks e.g. "cis", "pci", "owasp",
      * etc.
      * 
* * string standard = 1; + * * @param value The standard to set. * @return This builder for chaining. */ - public Builder setStandard( - java.lang.String value) { + public Builder setStandard(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + standard_ = value; onChanged(); return this; } /** + * + * *
      * Refers to industry wide standards or benchmarks e.g. "cis", "pci", "owasp",
      * etc.
      * 
* * string standard = 1; + * * @return This builder for chaining. */ public Builder clearStandard() { - + standard_ = getDefaultInstance().getStandard(); onChanged(); return this; } /** + * + * *
      * Refers to industry wide standards or benchmarks e.g. "cis", "pci", "owasp",
      * etc.
      * 
* * string standard = 1; + * * @param value The bytes for standard to set. * @return This builder for chaining. */ - public Builder setStandardBytes( - com.google.protobuf.ByteString value) { + public Builder setStandardBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + standard_ = value; onChanged(); return this; @@ -723,18 +780,20 @@ public Builder setStandardBytes( private java.lang.Object version_ = ""; /** + * + * *
      * Version of the standard/benchmark e.g. 1.1
      * 
* * string version = 2; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -743,20 +802,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Version of the standard/benchmark e.g. 1.1
      * 
* * string version = 2; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -764,95 +824,111 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Version of the standard/benchmark e.g. 1.1
      * 
* * string version = 2; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * Version of the standard/benchmark e.g. 1.1
      * 
* * string version = 2; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * Version of the standard/benchmark e.g. 1.1
      * 
* * string version = 2; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ids_ = new com.google.protobuf.LazyStringArrayList(ids_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Policies within the standard/benchmark e.g. A.12.4.1
      * 
* * repeated string ids = 3; + * * @return A list containing the ids. */ - public com.google.protobuf.ProtocolStringList - getIdsList() { + public com.google.protobuf.ProtocolStringList getIdsList() { return ids_.getUnmodifiableView(); } /** + * + * *
      * Policies within the standard/benchmark e.g. A.12.4.1
      * 
* * repeated string ids = 3; + * * @return The count of ids. */ public int getIdsCount() { return ids_.size(); } /** + * + * *
      * Policies within the standard/benchmark e.g. A.12.4.1
      * 
* * repeated string ids = 3; + * * @param index The index of the element to return. * @return The ids at the given index. */ @@ -860,80 +936,90 @@ public java.lang.String getIds(int index) { return ids_.get(index); } /** + * + * *
      * Policies within the standard/benchmark e.g. A.12.4.1
      * 
* * repeated string ids = 3; + * * @param index The index of the value to return. * @return The bytes of the ids at the given index. */ - public com.google.protobuf.ByteString - getIdsBytes(int index) { + public com.google.protobuf.ByteString getIdsBytes(int index) { return ids_.getByteString(index); } /** + * + * *
      * Policies within the standard/benchmark e.g. A.12.4.1
      * 
* * repeated string ids = 3; + * * @param index The index to set the value at. * @param value The ids to set. * @return This builder for chaining. */ - public Builder setIds( - int index, java.lang.String value) { + public Builder setIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIdsIsMutable(); + throw new NullPointerException(); + } + ensureIdsIsMutable(); ids_.set(index, value); onChanged(); return this; } /** + * + * *
      * Policies within the standard/benchmark e.g. A.12.4.1
      * 
* * repeated string ids = 3; + * * @param value The ids to add. * @return This builder for chaining. */ - public Builder addIds( - java.lang.String value) { + public Builder addIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIdsIsMutable(); + throw new NullPointerException(); + } + ensureIdsIsMutable(); ids_.add(value); onChanged(); return this; } /** + * + * *
      * Policies within the standard/benchmark e.g. A.12.4.1
      * 
* * repeated string ids = 3; + * * @param values The ids to add. * @return This builder for chaining. */ - public Builder addAllIds( - java.lang.Iterable values) { + public Builder addAllIds(java.lang.Iterable values) { ensureIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ids_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ids_); onChanged(); return this; } /** + * + * *
      * Policies within the standard/benchmark e.g. A.12.4.1
      * 
* * repeated string ids = 3; + * * @return This builder for chaining. */ public Builder clearIds() { @@ -943,28 +1029,30 @@ public Builder clearIds() { return this; } /** + * + * *
      * Policies within the standard/benchmark e.g. A.12.4.1
      * 
* * repeated string ids = 3; + * * @param value The bytes of the ids to add. * @return This builder for chaining. */ - public Builder addIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIdsIsMutable(); ids_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -974,12 +1062,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Compliance) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Compliance) private static final com.google.cloud.securitycenter.v1.Compliance DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Compliance(); } @@ -988,16 +1076,16 @@ public static com.google.cloud.securitycenter.v1.Compliance getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Compliance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Compliance(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Compliance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Compliance(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1012,6 +1100,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Compliance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceOrBuilder.java index f4fca6aff..5c95e93b5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceOrBuilder.java @@ -1,92 +1,128 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/compliance.proto package com.google.cloud.securitycenter.v1; -public interface ComplianceOrBuilder extends +public interface ComplianceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Compliance) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Refers to industry wide standards or benchmarks e.g. "cis", "pci", "owasp",
    * etc.
    * 
* * string standard = 1; + * * @return The standard. */ java.lang.String getStandard(); /** + * + * *
    * Refers to industry wide standards or benchmarks e.g. "cis", "pci", "owasp",
    * etc.
    * 
* * string standard = 1; + * * @return The bytes for standard. */ - com.google.protobuf.ByteString - getStandardBytes(); + com.google.protobuf.ByteString getStandardBytes(); /** + * + * *
    * Version of the standard/benchmark e.g. 1.1
    * 
* * string version = 2; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * Version of the standard/benchmark e.g. 1.1
    * 
* * string version = 2; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
    * Policies within the standard/benchmark e.g. A.12.4.1
    * 
* * repeated string ids = 3; + * * @return A list containing the ids. */ - java.util.List - getIdsList(); + java.util.List getIdsList(); /** + * + * *
    * Policies within the standard/benchmark e.g. A.12.4.1
    * 
* * repeated string ids = 3; + * * @return The count of ids. */ int getIdsCount(); /** + * + * *
    * Policies within the standard/benchmark e.g. A.12.4.1
    * 
* * repeated string ids = 3; + * * @param index The index of the element to return. * @return The ids at the given index. */ java.lang.String getIds(int index); /** + * + * *
    * Policies within the standard/benchmark e.g. A.12.4.1
    * 
* * repeated string ids = 3; + * * @param index The index of the value to return. * @return The bytes of the ids at the given index. */ - com.google.protobuf.ByteString - getIdsBytes(int index); + com.google.protobuf.ByteString getIdsBytes(int index); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceProto.java new file mode 100644 index 000000000..f6df500c8 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ComplianceProto.java @@ -0,0 +1,68 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/compliance.proto + +package com.google.cloud.securitycenter.v1; + +public final class ComplianceProto { + private ComplianceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Compliance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Compliance_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n/google/cloud/securitycenter/v1/complia" + + "nce.proto\022\036google.cloud.securitycenter.v" + + "1\"<\n\nCompliance\022\020\n\010standard\030\001 \001(\t\022\017\n\007ver" + + "sion\030\002 \001(\t\022\013\n\003ids\030\003 \003(\tB\353\001\n\"com.google.c" + + "loud.securitycenter.v1B\017ComplianceProtoP" + + "\001ZLgoogle.golang.org/genproto/googleapis" + + "/cloud/securitycenter/v1;securitycenter\252" + + "\002\036Google.Cloud.SecurityCenter.V1\312\002\036Googl" + + "e\\Cloud\\SecurityCenter\\V1\352\002!Google::Clou" + + "d::SecurityCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_securitycenter_v1_Compliance_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Compliance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Compliance_descriptor, + new java.lang.String[] { + "Standard", "Version", "Ids", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Connection.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Connection.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Connection.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Connection.java index 6faa9b69b..075bd8f1f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Connection.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Connection.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/connection.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Contains information about the IP connection associated with the finding.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Connection} */ -public final class Connection extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Connection extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Connection) ConnectionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Connection.newBuilder() to construct. private Connection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Connection() { destinationIp_ = ""; sourceIp_ = ""; @@ -27,16 +45,15 @@ private Connection() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Connection(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Connection( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,41 +72,44 @@ private Connection( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - destinationIp_ = s; - break; - } - case 16: { - - destinationPort_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceIp_ = s; - break; - } - case 32: { + destinationIp_ = s; + break; + } + case 16: + { + destinationPort_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - sourcePort_ = input.readInt32(); - break; - } - case 40: { - int rawValue = input.readEnum(); + sourceIp_ = s; + break; + } + case 32: + { + sourcePort_ = input.readInt32(); + break; + } + case 40: + { + int rawValue = input.readEnum(); - protocol_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + protocol_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,36 +117,41 @@ private Connection( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.ConnectionProto.internal_static_google_cloud_securitycenter_v1_Connection_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.ConnectionProto + .internal_static_google_cloud_securitycenter_v1_Connection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ConnectionProto.internal_static_google_cloud_securitycenter_v1_Connection_fieldAccessorTable + return com.google.cloud.securitycenter.v1.ConnectionProto + .internal_static_google_cloud_securitycenter_v1_Connection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Connection.class, com.google.cloud.securitycenter.v1.Connection.Builder.class); + com.google.cloud.securitycenter.v1.Connection.class, + com.google.cloud.securitycenter.v1.Connection.Builder.class); } /** + * + * *
    * IANA Internet Protocol Number such as TCP(6) and UDP(17).
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1.Connection.Protocol} */ - public enum Protocol - implements com.google.protobuf.ProtocolMessageEnum { + public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified protocol (not HOPOPT).
      * 
@@ -135,6 +160,8 @@ public enum Protocol */ PROTOCOL_UNSPECIFIED(0), /** + * + * *
      * Internet Control Message Protocol.
      * 
@@ -143,6 +170,8 @@ public enum Protocol */ ICMP(1), /** + * + * *
      * Transmission Control Protocol.
      * 
@@ -151,6 +180,8 @@ public enum Protocol */ TCP(6), /** + * + * *
      * User Datagram Protocol.
      * 
@@ -159,6 +190,8 @@ public enum Protocol */ UDP(17), /** + * + * *
      * Generic Routing Encapsulation.
      * 
@@ -167,6 +200,8 @@ public enum Protocol */ GRE(47), /** + * + * *
      * Encap Security Payload.
      * 
@@ -178,6 +213,8 @@ public enum Protocol ; /** + * + * *
      * Unspecified protocol (not HOPOPT).
      * 
@@ -186,6 +223,8 @@ public enum Protocol */ public static final int PROTOCOL_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Internet Control Message Protocol.
      * 
@@ -194,6 +233,8 @@ public enum Protocol */ public static final int ICMP_VALUE = 1; /** + * + * *
      * Transmission Control Protocol.
      * 
@@ -202,6 +243,8 @@ public enum Protocol */ public static final int TCP_VALUE = 6; /** + * + * *
      * User Datagram Protocol.
      * 
@@ -210,6 +253,8 @@ public enum Protocol */ public static final int UDP_VALUE = 17; /** + * + * *
      * Generic Routing Encapsulation.
      * 
@@ -218,6 +263,8 @@ public enum Protocol */ public static final int GRE_VALUE = 47; /** + * + * *
      * Encap Security Payload.
      * 
@@ -226,7 +273,6 @@ public enum Protocol */ public static final int ESP_VALUE = 50; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -251,52 +297,55 @@ public static Protocol valueOf(int value) { */ public static Protocol forNumber(int value) { switch (value) { - case 0: return PROTOCOL_UNSPECIFIED; - case 1: return ICMP; - case 6: return TCP; - case 17: return UDP; - case 47: return GRE; - case 50: return ESP; - default: return null; + case 0: + return PROTOCOL_UNSPECIFIED; + case 1: + return ICMP; + case 6: + return TCP; + case 17: + return UDP; + case 47: + return GRE; + case 50: + return ESP; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Protocol> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Protocol findValueByNumber(int number) { - return Protocol.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Protocol findValueByNumber(int number) { + return Protocol.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.securitycenter.v1.Connection.getDescriptor().getEnumTypes().get(0); } private static final Protocol[] VALUES = values(); - public static Protocol valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Protocol valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -316,12 +365,15 @@ private Protocol(int value) { public static final int DESTINATION_IP_FIELD_NUMBER = 1; private volatile java.lang.Object destinationIp_; /** + * + * *
    * Destination IP address. Not present for sockets that are listening and not
    * connected.
    * 
* * string destination_ip = 1; + * * @return The destinationIp. */ @java.lang.Override @@ -330,30 +382,30 @@ public java.lang.String getDestinationIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationIp_ = s; return s; } } /** + * + * *
    * Destination IP address. Not present for sockets that are listening and not
    * connected.
    * 
* * string destination_ip = 1; + * * @return The bytes for destinationIp. */ @java.lang.Override - public com.google.protobuf.ByteString - getDestinationIpBytes() { + public com.google.protobuf.ByteString getDestinationIpBytes() { java.lang.Object ref = destinationIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationIp_ = b; return b; } else { @@ -364,12 +416,15 @@ public java.lang.String getDestinationIp() { public static final int DESTINATION_PORT_FIELD_NUMBER = 2; private int destinationPort_; /** + * + * *
    * Destination port. Not present for sockets that are listening and not
    * connected.
    * 
* * int32 destination_port = 2; + * * @return The destinationPort. */ @java.lang.Override @@ -380,11 +435,14 @@ public int getDestinationPort() { public static final int SOURCE_IP_FIELD_NUMBER = 3; private volatile java.lang.Object sourceIp_; /** + * + * *
    * Source IP address.
    * 
* * string source_ip = 3; + * * @return The sourceIp. */ @java.lang.Override @@ -393,29 +451,29 @@ public java.lang.String getSourceIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceIp_ = s; return s; } } /** + * + * *
    * Source IP address.
    * 
* * string source_ip = 3; + * * @return The bytes for sourceIp. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceIpBytes() { + public com.google.protobuf.ByteString getSourceIpBytes() { java.lang.Object ref = sourceIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceIp_ = b; return b; } else { @@ -426,11 +484,14 @@ public java.lang.String getSourceIp() { public static final int SOURCE_PORT_FIELD_NUMBER = 4; private int sourcePort_; /** + * + * *
    * Source port.
    * 
* * int32 source_port = 4; + * * @return The sourcePort. */ @java.lang.Override @@ -441,31 +502,43 @@ public int getSourcePort() { public static final int PROTOCOL_FIELD_NUMBER = 5; private int protocol_; /** + * + * *
    * IANA Internet Protocol Number such as TCP(6) and UDP(17).
    * 
* * .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5; + * * @return The enum numeric value on the wire for protocol. */ - @java.lang.Override public int getProtocolValue() { + @java.lang.Override + public int getProtocolValue() { return protocol_; } /** + * + * *
    * IANA Internet Protocol Number such as TCP(6) and UDP(17).
    * 
* * .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5; + * * @return The protocol. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.Connection.Protocol getProtocol() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.Connection.Protocol getProtocol() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Connection.Protocol result = com.google.cloud.securitycenter.v1.Connection.Protocol.valueOf(protocol_); - return result == null ? com.google.cloud.securitycenter.v1.Connection.Protocol.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.Connection.Protocol result = + com.google.cloud.securitycenter.v1.Connection.Protocol.valueOf(protocol_); + return result == null + ? com.google.cloud.securitycenter.v1.Connection.Protocol.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -477,8 +550,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationIp_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destinationIp_); } @@ -491,7 +563,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (sourcePort_ != 0) { output.writeInt32(4, sourcePort_); } - if (protocol_ != com.google.cloud.securitycenter.v1.Connection.Protocol.PROTOCOL_UNSPECIFIED.getNumber()) { + if (protocol_ + != com.google.cloud.securitycenter.v1.Connection.Protocol.PROTOCOL_UNSPECIFIED + .getNumber()) { output.writeEnum(5, protocol_); } unknownFields.writeTo(output); @@ -507,19 +581,18 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, destinationIp_); } if (destinationPort_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, destinationPort_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, destinationPort_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceIp_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceIp_); } if (sourcePort_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, sourcePort_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, sourcePort_); } - if (protocol_ != com.google.cloud.securitycenter.v1.Connection.Protocol.PROTOCOL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, protocol_); + if (protocol_ + != com.google.cloud.securitycenter.v1.Connection.Protocol.PROTOCOL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, protocol_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -529,21 +602,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Connection)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Connection other = (com.google.cloud.securitycenter.v1.Connection) obj; + com.google.cloud.securitycenter.v1.Connection other = + (com.google.cloud.securitycenter.v1.Connection) obj; - if (!getDestinationIp() - .equals(other.getDestinationIp())) return false; - if (getDestinationPort() - != other.getDestinationPort()) return false; - if (!getSourceIp() - .equals(other.getSourceIp())) return false; - if (getSourcePort() - != other.getSourcePort()) return false; + if (!getDestinationIp().equals(other.getDestinationIp())) return false; + if (getDestinationPort() != other.getDestinationPort()) return false; + if (!getSourceIp().equals(other.getSourceIp())) return false; + if (getSourcePort() != other.getSourcePort()) return false; if (protocol_ != other.protocol_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -571,118 +641,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Connection parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Connection parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Connection parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Connection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Connection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Connection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Connection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Connection parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Connection parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Connection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.Connection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Connection parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Connection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Connection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.Connection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Contains information about the IP connection associated with the finding.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Connection} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Connection) com.google.cloud.securitycenter.v1.ConnectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.ConnectionProto.internal_static_google_cloud_securitycenter_v1_Connection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.ConnectionProto + .internal_static_google_cloud_securitycenter_v1_Connection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ConnectionProto.internal_static_google_cloud_securitycenter_v1_Connection_fieldAccessorTable + return com.google.cloud.securitycenter.v1.ConnectionProto + .internal_static_google_cloud_securitycenter_v1_Connection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Connection.class, com.google.cloud.securitycenter.v1.Connection.Builder.class); + com.google.cloud.securitycenter.v1.Connection.class, + com.google.cloud.securitycenter.v1.Connection.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.Connection.newBuilder() @@ -690,16 +769,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -717,9 +795,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.ConnectionProto.internal_static_google_cloud_securitycenter_v1_Connection_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.ConnectionProto + .internal_static_google_cloud_securitycenter_v1_Connection_descriptor; } @java.lang.Override @@ -738,7 +816,8 @@ public com.google.cloud.securitycenter.v1.Connection build() { @java.lang.Override public com.google.cloud.securitycenter.v1.Connection buildPartial() { - com.google.cloud.securitycenter.v1.Connection result = new com.google.cloud.securitycenter.v1.Connection(this); + com.google.cloud.securitycenter.v1.Connection result = + new com.google.cloud.securitycenter.v1.Connection(this); result.destinationIp_ = destinationIp_; result.destinationPort_ = destinationPort_; result.sourceIp_ = sourceIp_; @@ -752,38 +831,39 @@ public com.google.cloud.securitycenter.v1.Connection buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.Connection) { - return mergeFrom((com.google.cloud.securitycenter.v1.Connection)other); + return mergeFrom((com.google.cloud.securitycenter.v1.Connection) other); } else { super.mergeFrom(other); return this; @@ -840,19 +920,21 @@ public Builder mergeFrom( private java.lang.Object destinationIp_ = ""; /** + * + * *
      * Destination IP address. Not present for sockets that are listening and not
      * connected.
      * 
* * string destination_ip = 1; + * * @return The destinationIp. */ public java.lang.String getDestinationIp() { java.lang.Object ref = destinationIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationIp_ = s; return s; @@ -861,21 +943,22 @@ public java.lang.String getDestinationIp() { } } /** + * + * *
      * Destination IP address. Not present for sockets that are listening and not
      * connected.
      * 
* * string destination_ip = 1; + * * @return The bytes for destinationIp. */ - public com.google.protobuf.ByteString - getDestinationIpBytes() { + public com.google.protobuf.ByteString getDestinationIpBytes() { java.lang.Object ref = destinationIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationIp_ = b; return b; } else { @@ -883,70 +966,80 @@ public java.lang.String getDestinationIp() { } } /** + * + * *
      * Destination IP address. Not present for sockets that are listening and not
      * connected.
      * 
* * string destination_ip = 1; + * * @param value The destinationIp to set. * @return This builder for chaining. */ - public Builder setDestinationIp( - java.lang.String value) { + public Builder setDestinationIp(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + destinationIp_ = value; onChanged(); return this; } /** + * + * *
      * Destination IP address. Not present for sockets that are listening and not
      * connected.
      * 
* * string destination_ip = 1; + * * @return This builder for chaining. */ public Builder clearDestinationIp() { - + destinationIp_ = getDefaultInstance().getDestinationIp(); onChanged(); return this; } /** + * + * *
      * Destination IP address. Not present for sockets that are listening and not
      * connected.
      * 
* * string destination_ip = 1; + * * @param value The bytes for destinationIp to set. * @return This builder for chaining. */ - public Builder setDestinationIpBytes( - com.google.protobuf.ByteString value) { + public Builder setDestinationIpBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationIp_ = value; onChanged(); return this; } - private int destinationPort_ ; + private int destinationPort_; /** + * + * *
      * Destination port. Not present for sockets that are listening and not
      * connected.
      * 
* * int32 destination_port = 2; + * * @return The destinationPort. */ @java.lang.Override @@ -954,32 +1047,38 @@ public int getDestinationPort() { return destinationPort_; } /** + * + * *
      * Destination port. Not present for sockets that are listening and not
      * connected.
      * 
* * int32 destination_port = 2; + * * @param value The destinationPort to set. * @return This builder for chaining. */ public Builder setDestinationPort(int value) { - + destinationPort_ = value; onChanged(); return this; } /** + * + * *
      * Destination port. Not present for sockets that are listening and not
      * connected.
      * 
* * int32 destination_port = 2; + * * @return This builder for chaining. */ public Builder clearDestinationPort() { - + destinationPort_ = 0; onChanged(); return this; @@ -987,18 +1086,20 @@ public Builder clearDestinationPort() { private java.lang.Object sourceIp_ = ""; /** + * + * *
      * Source IP address.
      * 
* * string source_ip = 3; + * * @return The sourceIp. */ public java.lang.String getSourceIp() { java.lang.Object ref = sourceIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceIp_ = s; return s; @@ -1007,20 +1108,21 @@ public java.lang.String getSourceIp() { } } /** + * + * *
      * Source IP address.
      * 
* * string source_ip = 3; + * * @return The bytes for sourceIp. */ - public com.google.protobuf.ByteString - getSourceIpBytes() { + public com.google.protobuf.ByteString getSourceIpBytes() { java.lang.Object ref = sourceIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceIp_ = b; return b; } else { @@ -1028,66 +1130,76 @@ public java.lang.String getSourceIp() { } } /** + * + * *
      * Source IP address.
      * 
* * string source_ip = 3; + * * @param value The sourceIp to set. * @return This builder for chaining. */ - public Builder setSourceIp( - java.lang.String value) { + public Builder setSourceIp(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceIp_ = value; onChanged(); return this; } /** + * + * *
      * Source IP address.
      * 
* * string source_ip = 3; + * * @return This builder for chaining. */ public Builder clearSourceIp() { - + sourceIp_ = getDefaultInstance().getSourceIp(); onChanged(); return this; } /** + * + * *
      * Source IP address.
      * 
* * string source_ip = 3; + * * @param value The bytes for sourceIp to set. * @return This builder for chaining. */ - public Builder setSourceIpBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceIpBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceIp_ = value; onChanged(); return this; } - private int sourcePort_ ; + private int sourcePort_; /** + * + * *
      * Source port.
      * 
* * int32 source_port = 4; + * * @return The sourcePort. */ @java.lang.Override @@ -1095,30 +1207,36 @@ public int getSourcePort() { return sourcePort_; } /** + * + * *
      * Source port.
      * 
* * int32 source_port = 4; + * * @param value The sourcePort to set. * @return This builder for chaining. */ public Builder setSourcePort(int value) { - + sourcePort_ = value; onChanged(); return this; } /** + * + * *
      * Source port.
      * 
* * int32 source_port = 4; + * * @return This builder for chaining. */ public Builder clearSourcePort() { - + sourcePort_ = 0; onChanged(); return this; @@ -1126,51 +1244,67 @@ public Builder clearSourcePort() { private int protocol_ = 0; /** + * + * *
      * IANA Internet Protocol Number such as TCP(6) and UDP(17).
      * 
* * .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5; + * * @return The enum numeric value on the wire for protocol. */ - @java.lang.Override public int getProtocolValue() { + @java.lang.Override + public int getProtocolValue() { return protocol_; } /** + * + * *
      * IANA Internet Protocol Number such as TCP(6) and UDP(17).
      * 
* * .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5; + * * @param value The enum numeric value on the wire for protocol to set. * @return This builder for chaining. */ public Builder setProtocolValue(int value) { - + protocol_ = value; onChanged(); return this; } /** + * + * *
      * IANA Internet Protocol Number such as TCP(6) and UDP(17).
      * 
* * .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5; + * * @return The protocol. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Connection.Protocol getProtocol() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Connection.Protocol result = com.google.cloud.securitycenter.v1.Connection.Protocol.valueOf(protocol_); - return result == null ? com.google.cloud.securitycenter.v1.Connection.Protocol.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.Connection.Protocol result = + com.google.cloud.securitycenter.v1.Connection.Protocol.valueOf(protocol_); + return result == null + ? com.google.cloud.securitycenter.v1.Connection.Protocol.UNRECOGNIZED + : result; } /** + * + * *
      * IANA Internet Protocol Number such as TCP(6) and UDP(17).
      * 
* * .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5; + * * @param value The protocol to set. * @return This builder for chaining. */ @@ -1178,28 +1312,31 @@ public Builder setProtocol(com.google.cloud.securitycenter.v1.Connection.Protoco if (value == null) { throw new NullPointerException(); } - + protocol_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * IANA Internet Protocol Number such as TCP(6) and UDP(17).
      * 
* * .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5; + * * @return This builder for chaining. */ public Builder clearProtocol() { - + protocol_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1209,12 +1346,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Connection) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Connection) private static final com.google.cloud.securitycenter.v1.Connection DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Connection(); } @@ -1223,16 +1360,16 @@ public static com.google.cloud.securitycenter.v1.Connection getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Connection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Connection(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Connection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Connection(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1247,6 +1384,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Connection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionOrBuilder.java index b4767499b..0122fb2f9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionOrBuilder.java @@ -1,90 +1,128 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/connection.proto package com.google.cloud.securitycenter.v1; -public interface ConnectionOrBuilder extends +public interface ConnectionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Connection) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Destination IP address. Not present for sockets that are listening and not
    * connected.
    * 
* * string destination_ip = 1; + * * @return The destinationIp. */ java.lang.String getDestinationIp(); /** + * + * *
    * Destination IP address. Not present for sockets that are listening and not
    * connected.
    * 
* * string destination_ip = 1; + * * @return The bytes for destinationIp. */ - com.google.protobuf.ByteString - getDestinationIpBytes(); + com.google.protobuf.ByteString getDestinationIpBytes(); /** + * + * *
    * Destination port. Not present for sockets that are listening and not
    * connected.
    * 
* * int32 destination_port = 2; + * * @return The destinationPort. */ int getDestinationPort(); /** + * + * *
    * Source IP address.
    * 
* * string source_ip = 3; + * * @return The sourceIp. */ java.lang.String getSourceIp(); /** + * + * *
    * Source IP address.
    * 
* * string source_ip = 3; + * * @return The bytes for sourceIp. */ - com.google.protobuf.ByteString - getSourceIpBytes(); + com.google.protobuf.ByteString getSourceIpBytes(); /** + * + * *
    * Source port.
    * 
* * int32 source_port = 4; + * * @return The sourcePort. */ int getSourcePort(); /** + * + * *
    * IANA Internet Protocol Number such as TCP(6) and UDP(17).
    * 
* * .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5; + * * @return The enum numeric value on the wire for protocol. */ int getProtocolValue(); /** + * + * *
    * IANA Internet Protocol Number such as TCP(6) and UDP(17).
    * 
* * .google.cloud.securitycenter.v1.Connection.Protocol protocol = 5; + * * @return The protocol. */ com.google.cloud.securitycenter.v1.Connection.Protocol getProtocol(); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionProto.java new file mode 100644 index 000000000..db47396e9 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ConnectionProto.java @@ -0,0 +1,73 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/connection.proto + +package com.google.cloud.securitycenter.v1; + +public final class ConnectionProto { + private ConnectionProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Connection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Connection_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n/google/cloud/securitycenter/v1/connect" + + "ion.proto\022\036google.cloud.securitycenter.v" + + "1\"\201\002\n\nConnection\022\026\n\016destination_ip\030\001 \001(\t" + + "\022\030\n\020destination_port\030\002 \001(\005\022\021\n\tsource_ip\030" + + "\003 \001(\t\022\023\n\013source_port\030\004 \001(\005\022E\n\010protocol\030\005" + + " \001(\01623.google.cloud.securitycenter.v1.Co" + + "nnection.Protocol\"R\n\010Protocol\022\030\n\024PROTOCO" + + "L_UNSPECIFIED\020\000\022\010\n\004ICMP\020\001\022\007\n\003TCP\020\006\022\007\n\003UD" + + "P\020\021\022\007\n\003GRE\020/\022\007\n\003ESP\0202B\353\001\n\"com.google.clo" + + "ud.securitycenter.v1B\017ConnectionProtoP\001Z" + + "Lgoogle.golang.org/genproto/googleapis/c" + + "loud/securitycenter/v1;securitycenter\252\002\036" + + "Google.Cloud.SecurityCenter.V1\312\002\036Google\\" + + "Cloud\\SecurityCenter\\V1\352\002!Google::Cloud:" + + ":SecurityCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_securitycenter_v1_Connection_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Connection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Connection_descriptor, + new java.lang.String[] { + "DestinationIp", "DestinationPort", "SourceIp", "SourcePort", "Protocol", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequest.java index 50d3a1894..2a8ae9919 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for creating a big query export.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CreateBigQueryExportRequest} */ -public final class CreateBigQueryExportRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateBigQueryExportRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.CreateBigQueryExportRequest) CreateBigQueryExportRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateBigQueryExportRequest.newBuilder() to construct. private CreateBigQueryExportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateBigQueryExportRequest() { parent_ = ""; bigQueryExportId_ = ""; @@ -26,16 +44,15 @@ private CreateBigQueryExportRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateBigQueryExportRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateBigQueryExportRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,44 @@ private CreateBigQueryExportRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.securitycenter.v1.BigQueryExport.Builder subBuilder = null; - if (bigQueryExport_ != null) { - subBuilder = bigQueryExport_.toBuilder(); - } - bigQueryExport_ = input.readMessage(com.google.cloud.securitycenter.v1.BigQueryExport.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bigQueryExport_); - bigQueryExport_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.securitycenter.v1.BigQueryExport.Builder subBuilder = null; + if (bigQueryExport_ != null) { + subBuilder = bigQueryExport_.toBuilder(); + } + bigQueryExport_ = + input.readMessage( + com.google.cloud.securitycenter.v1.BigQueryExport.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bigQueryExport_); + bigQueryExport_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - bigQueryExportId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + bigQueryExportId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,36 +116,43 @@ private CreateBigQueryExportRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.class, com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.Builder.class); + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.class, + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the new big query export's parent. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]", or
    * "projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -131,31 +161,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the new big query export's parent. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]", or
    * "projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -166,11 +198,16 @@ public java.lang.String getParent() { public static final int BIG_QUERY_EXPORT_FIELD_NUMBER = 2; private com.google.cloud.securitycenter.v1.BigQueryExport bigQueryExport_; /** + * + * *
    * Required. The big query export being created.
    * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the bigQueryExport field is set. */ @java.lang.Override @@ -178,23 +215,34 @@ public boolean hasBigQueryExport() { return bigQueryExport_ != null; } /** + * + * *
    * Required. The big query export being created.
    * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bigQueryExport. */ @java.lang.Override public com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExport() { - return bigQueryExport_ == null ? com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() : bigQueryExport_; + return bigQueryExport_ == null + ? com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() + : bigQueryExport_; } /** + * + * *
    * Required. The big query export being created.
    * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExportOrBuilder() { @@ -204,6 +252,8 @@ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExp public static final int BIG_QUERY_EXPORT_ID_FIELD_NUMBER = 3; private volatile java.lang.Object bigQueryExportId_; /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -212,6 +262,7 @@ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExp
    * 
* * string big_query_export_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bigQueryExportId. */ @java.lang.Override @@ -220,14 +271,15 @@ public java.lang.String getBigQueryExportId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bigQueryExportId_ = s; return s; } } /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -236,16 +288,15 @@ public java.lang.String getBigQueryExportId() {
    * 
* * string big_query_export_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for bigQueryExportId. */ @java.lang.Override - public com.google.protobuf.ByteString - getBigQueryExportIdBytes() { + public com.google.protobuf.ByteString getBigQueryExportIdBytes() { java.lang.Object ref = bigQueryExportId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bigQueryExportId_ = b; return b; } else { @@ -254,6 +305,7 @@ public java.lang.String getBigQueryExportId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +317,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -289,8 +340,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (bigQueryExport_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBigQueryExport()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBigQueryExport()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bigQueryExportId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bigQueryExportId_); @@ -303,22 +353,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest other = (com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest) obj; + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest other = + (com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasBigQueryExport() != other.hasBigQueryExport()) return false; if (hasBigQueryExport()) { - if (!getBigQueryExport() - .equals(other.getBigQueryExport())) return false; + if (!getBigQueryExport().equals(other.getBigQueryExport())) return false; } - if (!getBigQueryExportId() - .equals(other.getBigQueryExportId())) return false; + if (!getBigQueryExportId().equals(other.getBigQueryExportId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -344,117 +392,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for creating a big query export.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CreateBigQueryExportRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.CreateBigQueryExportRequest) com.google.cloud.securitycenter.v1.CreateBigQueryExportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.class, com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.Builder.class); + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.class, + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.newBuilder() @@ -462,16 +520,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -489,13 +546,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.getDefaultInstance(); } @@ -510,7 +568,8 @@ public com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest buildPartial() { - com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest result = new com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest(this); + com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest result = + new com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest(this); result.parent_ = parent_; if (bigQueryExportBuilder_ == null) { result.bigQueryExport_ = bigQueryExport_; @@ -526,38 +585,39 @@ public com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest) other); } else { super.mergeFrom(other); return this; @@ -565,7 +625,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest other) { - if (other == com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -596,7 +658,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,20 +672,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the new big query export's parent. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]", or
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -630,22 +698,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the new big query export's parent. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]", or
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -653,60 +724,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the new big query export's parent. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]", or
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the new big query export's parent. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]", or
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the new big query export's parent. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]", or
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -714,39 +798,58 @@ public Builder setParentBytes( private com.google.cloud.securitycenter.v1.BigQueryExport bigQueryExport_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.BigQueryExport, com.google.cloud.securitycenter.v1.BigQueryExport.Builder, com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> bigQueryExportBuilder_; + com.google.cloud.securitycenter.v1.BigQueryExport, + com.google.cloud.securitycenter.v1.BigQueryExport.Builder, + com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> + bigQueryExportBuilder_; /** + * + * *
      * Required. The big query export being created.
      * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the bigQueryExport field is set. */ public boolean hasBigQueryExport() { return bigQueryExportBuilder_ != null || bigQueryExport_ != null; } /** + * + * *
      * Required. The big query export being created.
      * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bigQueryExport. */ public com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExport() { if (bigQueryExportBuilder_ == null) { - return bigQueryExport_ == null ? com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() : bigQueryExport_; + return bigQueryExport_ == null + ? com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() + : bigQueryExport_; } else { return bigQueryExportBuilder_.getMessage(); } } /** + * + * *
      * Required. The big query export being created.
      * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBigQueryExport(com.google.cloud.securitycenter.v1.BigQueryExport value) { if (bigQueryExportBuilder_ == null) { @@ -762,11 +865,15 @@ public Builder setBigQueryExport(com.google.cloud.securitycenter.v1.BigQueryExpo return this; } /** + * + * *
      * Required. The big query export being created.
      * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBigQueryExport( com.google.cloud.securitycenter.v1.BigQueryExport.Builder builderForValue) { @@ -780,17 +887,23 @@ public Builder setBigQueryExport( return this; } /** + * + * *
      * Required. The big query export being created.
      * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBigQueryExport(com.google.cloud.securitycenter.v1.BigQueryExport value) { if (bigQueryExportBuilder_ == null) { if (bigQueryExport_ != null) { bigQueryExport_ = - com.google.cloud.securitycenter.v1.BigQueryExport.newBuilder(bigQueryExport_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.BigQueryExport.newBuilder(bigQueryExport_) + .mergeFrom(value) + .buildPartial(); } else { bigQueryExport_ = value; } @@ -802,11 +915,15 @@ public Builder mergeBigQueryExport(com.google.cloud.securitycenter.v1.BigQueryEx return this; } /** + * + * *
      * Required. The big query export being created.
      * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBigQueryExport() { if (bigQueryExportBuilder_ == null) { @@ -820,48 +937,64 @@ public Builder clearBigQueryExport() { return this; } /** + * + * *
      * Required. The big query export being created.
      * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.BigQueryExport.Builder getBigQueryExportBuilder() { - + onChanged(); return getBigQueryExportFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The big query export being created.
      * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExportOrBuilder() { if (bigQueryExportBuilder_ != null) { return bigQueryExportBuilder_.getMessageOrBuilder(); } else { - return bigQueryExport_ == null ? - com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() : bigQueryExport_; + return bigQueryExport_ == null + ? com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() + : bigQueryExport_; } } /** + * + * *
      * Required. The big query export being created.
      * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.BigQueryExport, com.google.cloud.securitycenter.v1.BigQueryExport.Builder, com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> + com.google.cloud.securitycenter.v1.BigQueryExport, + com.google.cloud.securitycenter.v1.BigQueryExport.Builder, + com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> getBigQueryExportFieldBuilder() { if (bigQueryExportBuilder_ == null) { - bigQueryExportBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.BigQueryExport, com.google.cloud.securitycenter.v1.BigQueryExport.Builder, com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder>( - getBigQueryExport(), - getParentForChildren(), - isClean()); + bigQueryExportBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.BigQueryExport, + com.google.cloud.securitycenter.v1.BigQueryExport.Builder, + com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder>( + getBigQueryExport(), getParentForChildren(), isClean()); bigQueryExport_ = null; } return bigQueryExportBuilder_; @@ -869,6 +1002,8 @@ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExp private java.lang.Object bigQueryExportId_ = ""; /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -877,13 +1012,13 @@ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExp
      * 
* * string big_query_export_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bigQueryExportId. */ public java.lang.String getBigQueryExportId() { java.lang.Object ref = bigQueryExportId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bigQueryExportId_ = s; return s; @@ -892,6 +1027,8 @@ public java.lang.String getBigQueryExportId() { } } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -900,15 +1037,14 @@ public java.lang.String getBigQueryExportId() {
      * 
* * string big_query_export_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for bigQueryExportId. */ - public com.google.protobuf.ByteString - getBigQueryExportIdBytes() { + public com.google.protobuf.ByteString getBigQueryExportIdBytes() { java.lang.Object ref = bigQueryExportId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bigQueryExportId_ = b; return b; } else { @@ -916,6 +1052,8 @@ public java.lang.String getBigQueryExportId() { } } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -924,20 +1062,22 @@ public java.lang.String getBigQueryExportId() {
      * 
* * string big_query_export_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bigQueryExportId to set. * @return This builder for chaining. */ - public Builder setBigQueryExportId( - java.lang.String value) { + public Builder setBigQueryExportId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + bigQueryExportId_ = value; onChanged(); return this; } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -946,15 +1086,18 @@ public Builder setBigQueryExportId(
      * 
* * string big_query_export_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearBigQueryExportId() { - + bigQueryExportId_ = getDefaultInstance().getBigQueryExportId(); onChanged(); return this; } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -963,23 +1106,23 @@ public Builder clearBigQueryExportId() {
      * 
* * string big_query_export_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for bigQueryExportId to set. * @return This builder for chaining. */ - public Builder setBigQueryExportIdBytes( - com.google.protobuf.ByteString value) { + public Builder setBigQueryExportIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bigQueryExportId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -989,30 +1132,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.CreateBigQueryExportRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.CreateBigQueryExportRequest) - private static final com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest(); } - public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBigQueryExportRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateBigQueryExportRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBigQueryExportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateBigQueryExportRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1024,9 +1169,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.CreateBigQueryExportRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequestOrBuilder.java index 3f272247c..353f15853 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateBigQueryExportRequestOrBuilder.java @@ -1,64 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface CreateBigQueryExportRequestOrBuilder extends +public interface CreateBigQueryExportRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.CreateBigQueryExportRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the new big query export's parent. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]", or
    * "projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the new big query export's parent. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]", or
    * "projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The big query export being created.
    * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the bigQueryExport field is set. */ boolean hasBigQueryExport(); /** + * + * *
    * Required. The big query export being created.
    * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bigQueryExport. */ com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExport(); /** + * + * *
    * Required. The big query export being created.
    * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExportOrBuilder(); /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -67,10 +108,13 @@ public interface CreateBigQueryExportRequestOrBuilder extends
    * 
* * string big_query_export_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bigQueryExportId. */ java.lang.String getBigQueryExportId(); /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -79,8 +123,8 @@ public interface CreateBigQueryExportRequestOrBuilder extends
    * 
* * string big_query_export_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for bigQueryExportId. */ - com.google.protobuf.ByteString - getBigQueryExportIdBytes(); + com.google.protobuf.ByteString getBigQueryExportIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java index ec857615f..e009964c2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for creating a finding.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CreateFindingRequest} */ -public final class CreateFindingRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateFindingRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.CreateFindingRequest) CreateFindingRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateFindingRequest.newBuilder() to construct. private CreateFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateFindingRequest() { parent_ = ""; findingId_ = ""; @@ -26,16 +44,15 @@ private CreateFindingRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateFindingRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - findingId_ = s; - break; - } - case 26: { - com.google.cloud.securitycenter.v1.Finding.Builder subBuilder = null; - if (finding_ != null) { - subBuilder = finding_.toBuilder(); + parent_ = s; + break; } - finding_ = input.readMessage(com.google.cloud.securitycenter.v1.Finding.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(finding_); - finding_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + findingId_ = s; + break; } + case 26: + { + com.google.cloud.securitycenter.v1.Finding.Builder subBuilder = null; + if (finding_ != null) { + subBuilder = finding_.toBuilder(); + } + finding_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Finding.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finding_); + finding_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +115,42 @@ private CreateFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.CreateFindingRequest.class, com.google.cloud.securitycenter.v1.CreateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1.CreateFindingRequest.class, + com.google.cloud.securitycenter.v1.CreateFindingRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -130,30 +159,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -164,6 +195,8 @@ public java.lang.String getParent() { public static final int FINDING_ID_FIELD_NUMBER = 2; private volatile java.lang.Object findingId_; /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
@@ -171,6 +204,7 @@ public java.lang.String getParent() {
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The findingId. */ @java.lang.Override @@ -179,14 +213,15 @@ public java.lang.String getFindingId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingId_ = s; return s; } } /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
@@ -194,16 +229,15 @@ public java.lang.String getFindingId() {
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for findingId. */ @java.lang.Override - public com.google.protobuf.ByteString - getFindingIdBytes() { + public com.google.protobuf.ByteString getFindingIdBytes() { java.lang.Object ref = findingId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); findingId_ = b; return b; } else { @@ -214,12 +248,17 @@ public java.lang.String getFindingId() { public static final int FINDING_FIELD_NUMBER = 3; private com.google.cloud.securitycenter.v1.Finding finding_; /** + * + * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the finding field is set. */ @java.lang.Override @@ -227,25 +266,36 @@ public boolean hasFinding() { return finding_ != null; } /** + * + * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding getFinding() { - return finding_ == null ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() + : finding_; } /** + * + * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { @@ -253,6 +303,7 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,8 +315,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -291,8 +341,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, findingId_); } if (finding_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getFinding()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFinding()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -302,21 +351,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.CreateFindingRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.CreateFindingRequest other = (com.google.cloud.securitycenter.v1.CreateFindingRequest) obj; + com.google.cloud.securitycenter.v1.CreateFindingRequest other = + (com.google.cloud.securitycenter.v1.CreateFindingRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFindingId() - .equals(other.getFindingId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFindingId().equals(other.getFindingId())) return false; if (hasFinding() != other.hasFinding()) return false; if (hasFinding()) { - if (!getFinding() - .equals(other.getFinding())) return false; + if (!getFinding().equals(other.getFinding())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -343,117 +390,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.CreateFindingRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.CreateFindingRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.CreateFindingRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for creating a finding.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CreateFindingRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.CreateFindingRequest) com.google.cloud.securitycenter.v1.CreateFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.CreateFindingRequest.class, com.google.cloud.securitycenter.v1.CreateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1.CreateFindingRequest.class, + com.google.cloud.securitycenter.v1.CreateFindingRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.CreateFindingRequest.newBuilder() @@ -461,16 +518,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -488,9 +544,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor; } @java.lang.Override @@ -509,7 +565,8 @@ public com.google.cloud.securitycenter.v1.CreateFindingRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.CreateFindingRequest buildPartial() { - com.google.cloud.securitycenter.v1.CreateFindingRequest result = new com.google.cloud.securitycenter.v1.CreateFindingRequest(this); + com.google.cloud.securitycenter.v1.CreateFindingRequest result = + new com.google.cloud.securitycenter.v1.CreateFindingRequest(this); result.parent_ = parent_; result.findingId_ = findingId_; if (findingBuilder_ == null) { @@ -525,38 +582,39 @@ public com.google.cloud.securitycenter.v1.CreateFindingRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.CreateFindingRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.CreateFindingRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.CreateFindingRequest) other); } else { super.mergeFrom(other); return this; @@ -564,7 +622,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.CreateFindingRequest other) { - if (other == com.google.cloud.securitycenter.v1.CreateFindingRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.CreateFindingRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -595,7 +654,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.CreateFindingRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.CreateFindingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -607,19 +667,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -628,21 +692,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -650,57 +717,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -708,6 +788,8 @@ public Builder setParentBytes( private java.lang.Object findingId_ = ""; /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
@@ -715,13 +797,13 @@ public Builder setParentBytes(
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The findingId. */ public java.lang.String getFindingId() { java.lang.Object ref = findingId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingId_ = s; return s; @@ -730,6 +812,8 @@ public java.lang.String getFindingId() { } } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
@@ -737,15 +821,14 @@ public java.lang.String getFindingId() {
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for findingId. */ - public com.google.protobuf.ByteString - getFindingIdBytes() { + public com.google.protobuf.ByteString getFindingIdBytes() { java.lang.Object ref = findingId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); findingId_ = b; return b; } else { @@ -753,6 +836,8 @@ public java.lang.String getFindingId() { } } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
@@ -760,20 +845,22 @@ public java.lang.String getFindingId() {
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The findingId to set. * @return This builder for chaining. */ - public Builder setFindingId( - java.lang.String value) { + public Builder setFindingId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + findingId_ = value; onChanged(); return this; } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
@@ -781,15 +868,18 @@ public Builder setFindingId(
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFindingId() { - + findingId_ = getDefaultInstance().getFindingId(); onChanged(); return this; } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
@@ -797,16 +887,16 @@ public Builder clearFindingId() {
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for findingId to set. * @return This builder for chaining. */ - public Builder setFindingIdBytes( - com.google.protobuf.ByteString value) { + public Builder setFindingIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingId_ = value; onChanged(); return this; @@ -814,42 +904,61 @@ public Builder setFindingIdBytes( private com.google.cloud.securitycenter.v1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder> findingBuilder_; + com.google.cloud.securitycenter.v1.Finding, + com.google.cloud.securitycenter.v1.Finding.Builder, + com.google.cloud.securitycenter.v1.FindingOrBuilder> + findingBuilder_; /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The finding. */ public com.google.cloud.securitycenter.v1.Finding getFinding() { if (findingBuilder_ == null) { - return finding_ == null ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() + : finding_; } else { return findingBuilder_.getMessage(); } } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) { if (findingBuilder_ == null) { @@ -865,15 +974,18 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) { return this; } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setFinding( - com.google.cloud.securitycenter.v1.Finding.Builder builderForValue) { + public Builder setFinding(com.google.cloud.securitycenter.v1.Finding.Builder builderForValue) { if (findingBuilder_ == null) { finding_ = builderForValue.build(); onChanged(); @@ -884,18 +996,24 @@ public Builder setFinding( return this; } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) { if (findingBuilder_ == null) { if (finding_ != null) { finding_ = - com.google.cloud.securitycenter.v1.Finding.newBuilder(finding_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.Finding.newBuilder(finding_) + .mergeFrom(value) + .buildPartial(); } else { finding_ = value; } @@ -907,12 +1025,16 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) { return this; } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFinding() { if (findingBuilder_ == null) { @@ -926,58 +1048,74 @@ public Builder clearFinding() { return this; } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() { - + onChanged(); return getFindingFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { if (findingBuilder_ != null) { return findingBuilder_.getMessageOrBuilder(); } else { - return finding_ == null ? - com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() + : finding_; } } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder> + com.google.cloud.securitycenter.v1.Finding, + com.google.cloud.securitycenter.v1.Finding.Builder, + com.google.cloud.securitycenter.v1.FindingOrBuilder> getFindingFieldBuilder() { if (findingBuilder_ == null) { - findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder>( - getFinding(), - getParentForChildren(), - isClean()); + findingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Finding, + com.google.cloud.securitycenter.v1.Finding.Builder, + com.google.cloud.securitycenter.v1.FindingOrBuilder>( + getFinding(), getParentForChildren(), isClean()); finding_ = null; } return findingBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -987,12 +1125,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.CreateFindingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.CreateFindingRequest) private static final com.google.cloud.securitycenter.v1.CreateFindingRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.CreateFindingRequest(); } @@ -1001,16 +1139,16 @@ public static com.google.cloud.securitycenter.v1.CreateFindingRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFindingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFindingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFindingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,6 +1163,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.CreateFindingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java index 3d6ecd597..7b2a8f61d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface CreateFindingRequestOrBuilder extends +public interface CreateFindingRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.CreateFindingRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
@@ -37,10 +64,13 @@ public interface CreateFindingRequestOrBuilder extends
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The findingId. */ java.lang.String getFindingId(); /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
@@ -48,38 +78,52 @@ public interface CreateFindingRequestOrBuilder extends
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for findingId. */ - com.google.protobuf.ByteString - getFindingIdBytes(); + com.google.protobuf.ByteString getFindingIdBytes(); /** + * + * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the finding field is set. */ boolean hasFinding(); /** + * + * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The finding. */ com.google.cloud.securitycenter.v1.Finding getFinding(); /** + * + * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequest.java index 0a4746c96..6a7526d0b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for creating a mute config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CreateMuteConfigRequest} */ -public final class CreateMuteConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateMuteConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.CreateMuteConfigRequest) CreateMuteConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateMuteConfigRequest.newBuilder() to construct. private CreateMuteConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateMuteConfigRequest() { parent_ = ""; muteConfigId_ = ""; @@ -26,16 +44,15 @@ private CreateMuteConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateMuteConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateMuteConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateMuteConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.securitycenter.v1.MuteConfig.Builder subBuilder = null; - if (muteConfig_ != null) { - subBuilder = muteConfig_.toBuilder(); - } - muteConfig_ = input.readMessage(com.google.cloud.securitycenter.v1.MuteConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(muteConfig_); - muteConfig_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.cloud.securitycenter.v1.MuteConfig.Builder subBuilder = null; + if (muteConfig_ != null) { + subBuilder = muteConfig_.toBuilder(); + } + muteConfig_ = + input.readMessage( + com.google.cloud.securitycenter.v1.MuteConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(muteConfig_); + muteConfig_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - muteConfigId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + muteConfigId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,36 +115,43 @@ private CreateMuteConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.class, com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.class, + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the new mute configs's parent. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]", or
    * "projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -131,31 +160,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the new mute configs's parent. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]", or
    * "projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -166,11 +197,16 @@ public java.lang.String getParent() { public static final int MUTE_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.securitycenter.v1.MuteConfig muteConfig_; /** + * + * *
    * Required. The mute config being created.
    * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the muteConfig field is set. */ @java.lang.Override @@ -178,23 +214,34 @@ public boolean hasMuteConfig() { return muteConfig_ != null; } /** + * + * *
    * Required. The mute config being created.
    * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The muteConfig. */ @java.lang.Override public com.google.cloud.securitycenter.v1.MuteConfig getMuteConfig() { - return muteConfig_ == null ? com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() : muteConfig_; + return muteConfig_ == null + ? com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() + : muteConfig_; } /** + * + * *
    * Required. The mute config being created.
    * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBuilder() { @@ -204,6 +251,8 @@ public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBui public static final int MUTE_CONFIG_ID_FIELD_NUMBER = 3; private volatile java.lang.Object muteConfigId_; /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -212,6 +261,7 @@ public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBui
    * 
* * string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The muteConfigId. */ @java.lang.Override @@ -220,14 +270,15 @@ public java.lang.String getMuteConfigId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); muteConfigId_ = s; return s; } } /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -236,16 +287,15 @@ public java.lang.String getMuteConfigId() {
    * 
* * string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for muteConfigId. */ @java.lang.Override - public com.google.protobuf.ByteString - getMuteConfigIdBytes() { + public com.google.protobuf.ByteString getMuteConfigIdBytes() { java.lang.Object ref = muteConfigId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); muteConfigId_ = b; return b; } else { @@ -254,6 +304,7 @@ public java.lang.String getMuteConfigId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +316,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -289,8 +339,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (muteConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMuteConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMuteConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(muteConfigId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, muteConfigId_); @@ -303,22 +352,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.CreateMuteConfigRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest other = (com.google.cloud.securitycenter.v1.CreateMuteConfigRequest) obj; + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest other = + (com.google.cloud.securitycenter.v1.CreateMuteConfigRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasMuteConfig() != other.hasMuteConfig()) return false; if (hasMuteConfig()) { - if (!getMuteConfig() - .equals(other.getMuteConfig())) return false; + if (!getMuteConfig().equals(other.getMuteConfig())) return false; } - if (!getMuteConfigId() - .equals(other.getMuteConfigId())) return false; + if (!getMuteConfigId().equals(other.getMuteConfigId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -344,117 +391,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.CreateMuteConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for creating a mute config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CreateMuteConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.CreateMuteConfigRequest) com.google.cloud.securitycenter.v1.CreateMuteConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.class, com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.class, + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.newBuilder() @@ -462,16 +519,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -489,9 +545,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor; } @java.lang.Override @@ -510,7 +566,8 @@ public com.google.cloud.securitycenter.v1.CreateMuteConfigRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.CreateMuteConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1.CreateMuteConfigRequest result = new com.google.cloud.securitycenter.v1.CreateMuteConfigRequest(this); + com.google.cloud.securitycenter.v1.CreateMuteConfigRequest result = + new com.google.cloud.securitycenter.v1.CreateMuteConfigRequest(this); result.parent_ = parent_; if (muteConfigBuilder_ == null) { result.muteConfig_ = muteConfig_; @@ -526,38 +583,39 @@ public com.google.cloud.securitycenter.v1.CreateMuteConfigRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.CreateMuteConfigRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.CreateMuteConfigRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.CreateMuteConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -565,7 +623,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.CreateMuteConfigRequest other) { - if (other == com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.CreateMuteConfigRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -596,7 +655,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.CreateMuteConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.CreateMuteConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,20 +668,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the new mute configs's parent. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]", or
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -630,22 +694,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the new mute configs's parent. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]", or
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -653,60 +720,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the new mute configs's parent. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]", or
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the new mute configs's parent. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]", or
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the new mute configs's parent. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]", or
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -714,39 +794,58 @@ public Builder setParentBytes( private com.google.cloud.securitycenter.v1.MuteConfig muteConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.MuteConfig, com.google.cloud.securitycenter.v1.MuteConfig.Builder, com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> muteConfigBuilder_; + com.google.cloud.securitycenter.v1.MuteConfig, + com.google.cloud.securitycenter.v1.MuteConfig.Builder, + com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> + muteConfigBuilder_; /** + * + * *
      * Required. The mute config being created.
      * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the muteConfig field is set. */ public boolean hasMuteConfig() { return muteConfigBuilder_ != null || muteConfig_ != null; } /** + * + * *
      * Required. The mute config being created.
      * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The muteConfig. */ public com.google.cloud.securitycenter.v1.MuteConfig getMuteConfig() { if (muteConfigBuilder_ == null) { - return muteConfig_ == null ? com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() : muteConfig_; + return muteConfig_ == null + ? com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() + : muteConfig_; } else { return muteConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The mute config being created.
      * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMuteConfig(com.google.cloud.securitycenter.v1.MuteConfig value) { if (muteConfigBuilder_ == null) { @@ -762,11 +861,15 @@ public Builder setMuteConfig(com.google.cloud.securitycenter.v1.MuteConfig value return this; } /** + * + * *
      * Required. The mute config being created.
      * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMuteConfig( com.google.cloud.securitycenter.v1.MuteConfig.Builder builderForValue) { @@ -780,17 +883,23 @@ public Builder setMuteConfig( return this; } /** + * + * *
      * Required. The mute config being created.
      * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeMuteConfig(com.google.cloud.securitycenter.v1.MuteConfig value) { if (muteConfigBuilder_ == null) { if (muteConfig_ != null) { muteConfig_ = - com.google.cloud.securitycenter.v1.MuteConfig.newBuilder(muteConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.MuteConfig.newBuilder(muteConfig_) + .mergeFrom(value) + .buildPartial(); } else { muteConfig_ = value; } @@ -802,11 +911,15 @@ public Builder mergeMuteConfig(com.google.cloud.securitycenter.v1.MuteConfig val return this; } /** + * + * *
      * Required. The mute config being created.
      * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMuteConfig() { if (muteConfigBuilder_ == null) { @@ -820,48 +933,64 @@ public Builder clearMuteConfig() { return this; } /** + * + * *
      * Required. The mute config being created.
      * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.MuteConfig.Builder getMuteConfigBuilder() { - + onChanged(); return getMuteConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The mute config being created.
      * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBuilder() { if (muteConfigBuilder_ != null) { return muteConfigBuilder_.getMessageOrBuilder(); } else { - return muteConfig_ == null ? - com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() : muteConfig_; + return muteConfig_ == null + ? com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() + : muteConfig_; } } /** + * + * *
      * Required. The mute config being created.
      * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.MuteConfig, com.google.cloud.securitycenter.v1.MuteConfig.Builder, com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> + com.google.cloud.securitycenter.v1.MuteConfig, + com.google.cloud.securitycenter.v1.MuteConfig.Builder, + com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> getMuteConfigFieldBuilder() { if (muteConfigBuilder_ == null) { - muteConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.MuteConfig, com.google.cloud.securitycenter.v1.MuteConfig.Builder, com.google.cloud.securitycenter.v1.MuteConfigOrBuilder>( - getMuteConfig(), - getParentForChildren(), - isClean()); + muteConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.MuteConfig, + com.google.cloud.securitycenter.v1.MuteConfig.Builder, + com.google.cloud.securitycenter.v1.MuteConfigOrBuilder>( + getMuteConfig(), getParentForChildren(), isClean()); muteConfig_ = null; } return muteConfigBuilder_; @@ -869,6 +998,8 @@ public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBui private java.lang.Object muteConfigId_ = ""; /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -877,13 +1008,13 @@ public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBui
      * 
* * string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The muteConfigId. */ public java.lang.String getMuteConfigId() { java.lang.Object ref = muteConfigId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); muteConfigId_ = s; return s; @@ -892,6 +1023,8 @@ public java.lang.String getMuteConfigId() { } } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -900,15 +1033,14 @@ public java.lang.String getMuteConfigId() {
      * 
* * string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for muteConfigId. */ - public com.google.protobuf.ByteString - getMuteConfigIdBytes() { + public com.google.protobuf.ByteString getMuteConfigIdBytes() { java.lang.Object ref = muteConfigId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); muteConfigId_ = b; return b; } else { @@ -916,6 +1048,8 @@ public java.lang.String getMuteConfigId() { } } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -924,20 +1058,22 @@ public java.lang.String getMuteConfigId() {
      * 
* * string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The muteConfigId to set. * @return This builder for chaining. */ - public Builder setMuteConfigId( - java.lang.String value) { + public Builder setMuteConfigId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + muteConfigId_ = value; onChanged(); return this; } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -946,15 +1082,18 @@ public Builder setMuteConfigId(
      * 
* * string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMuteConfigId() { - + muteConfigId_ = getDefaultInstance().getMuteConfigId(); onChanged(); return this; } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -963,23 +1102,23 @@ public Builder clearMuteConfigId() {
      * 
* * string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for muteConfigId to set. * @return This builder for chaining. */ - public Builder setMuteConfigIdBytes( - com.google.protobuf.ByteString value) { + public Builder setMuteConfigIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + muteConfigId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -989,12 +1128,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.CreateMuteConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.CreateMuteConfigRequest) private static final com.google.cloud.securitycenter.v1.CreateMuteConfigRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.CreateMuteConfigRequest(); } @@ -1003,16 +1142,16 @@ public static com.google.cloud.securitycenter.v1.CreateMuteConfigRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateMuteConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateMuteConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMuteConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateMuteConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1027,6 +1166,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.CreateMuteConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequestOrBuilder.java index 2aadf4ad7..07965be0e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateMuteConfigRequestOrBuilder.java @@ -1,64 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface CreateMuteConfigRequestOrBuilder extends +public interface CreateMuteConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.CreateMuteConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the new mute configs's parent. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]", or
    * "projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the new mute configs's parent. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]", or
    * "projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The mute config being created.
    * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the muteConfig field is set. */ boolean hasMuteConfig(); /** + * + * *
    * Required. The mute config being created.
    * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The muteConfig. */ com.google.cloud.securitycenter.v1.MuteConfig getMuteConfig(); /** + * + * *
    * Required. The mute config being created.
    * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBuilder(); /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -67,10 +108,13 @@ public interface CreateMuteConfigRequestOrBuilder extends
    * 
* * string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The muteConfigId. */ java.lang.String getMuteConfigId(); /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must consist of lower case letters, numbers, and hyphen, with the first
@@ -79,8 +123,8 @@ public interface CreateMuteConfigRequestOrBuilder extends
    * 
* * string mute_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for muteConfigId. */ - com.google.protobuf.ByteString - getMuteConfigIdBytes(); + com.google.protobuf.ByteString getMuteConfigIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java index afb05529c..1889b0e70 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for creating a notification config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CreateNotificationConfigRequest} */ -public final class CreateNotificationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.CreateNotificationConfigRequest) CreateNotificationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateNotificationConfigRequest.newBuilder() to construct. - private CreateNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateNotificationConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateNotificationConfigRequest() { parent_ = ""; configId_ = ""; @@ -26,16 +45,15 @@ private CreateNotificationConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateNotificationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateNotificationConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +72,44 @@ private CreateNotificationConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - configId_ = s; - break; - } - case 26: { - com.google.cloud.securitycenter.v1.NotificationConfig.Builder subBuilder = null; - if (notificationConfig_ != null) { - subBuilder = notificationConfig_.toBuilder(); + parent_ = s; + break; } - notificationConfig_ = input.readMessage(com.google.cloud.securitycenter.v1.NotificationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(notificationConfig_); - notificationConfig_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + configId_ = s; + break; } + case 26: + { + com.google.cloud.securitycenter.v1.NotificationConfig.Builder subBuilder = null; + if (notificationConfig_ != null) { + subBuilder = notificationConfig_.toBuilder(); + } + notificationConfig_ = + input.readMessage( + com.google.cloud.securitycenter.v1.NotificationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(notificationConfig_); + notificationConfig_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +117,42 @@ private CreateNotificationConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.class, com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.class, + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the new notification config's parent. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -130,30 +161,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the new notification config's parent. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -164,6 +197,8 @@ public java.lang.String getParent() { public static final int CONFIG_ID_FIELD_NUMBER = 2; private volatile java.lang.Object configId_; /** + * + * *
    * Required.
    * Unique identifier provided by the client within the parent scope.
@@ -172,6 +207,7 @@ public java.lang.String getParent() {
    * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The configId. */ @java.lang.Override @@ -180,14 +216,15 @@ public java.lang.String getConfigId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configId_ = s; return s; } } /** + * + * *
    * Required.
    * Unique identifier provided by the client within the parent scope.
@@ -196,16 +233,15 @@ public java.lang.String getConfigId() {
    * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for configId. */ @java.lang.Override - public com.google.protobuf.ByteString - getConfigIdBytes() { + public com.google.protobuf.ByteString getConfigIdBytes() { java.lang.Object ref = configId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); configId_ = b; return b; } else { @@ -216,12 +252,17 @@ public java.lang.String getConfigId() { public static final int NOTIFICATION_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.securitycenter.v1.NotificationConfig notificationConfig_; /** + * + * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the notificationConfig field is set. */ @java.lang.Override @@ -229,32 +270,45 @@ public boolean hasNotificationConfig() { return notificationConfig_ != null; } /** + * + * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationConfig. */ @java.lang.Override public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig() { - return notificationConfig_ == null ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() : notificationConfig_; + return notificationConfig_ == null + ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() + : notificationConfig_; } /** + * + * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { + public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder + getNotificationConfigOrBuilder() { return getNotificationConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,8 +320,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -293,8 +346,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, configId_); } if (notificationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getNotificationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNotificationConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -304,21 +356,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest other = (com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest) obj; + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest other = + (com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getConfigId() - .equals(other.getConfigId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getConfigId().equals(other.getConfigId())) return false; if (hasNotificationConfig() != other.hasNotificationConfig()) return false; if (hasNotificationConfig()) { - if (!getNotificationConfig() - .equals(other.getNotificationConfig())) return false; + if (!getNotificationConfig().equals(other.getNotificationConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -345,134 +395,145 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for creating a notification config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CreateNotificationConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.CreateNotificationConfigRequest) com.google.cloud.securitycenter.v1.CreateNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.class, com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.class, + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.Builder.class); } - // Construct using com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -490,14 +551,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.getDefaultInstance(); + public com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest + .getDefaultInstance(); } @java.lang.Override @@ -511,7 +574,8 @@ public com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest build( @java.lang.Override public com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest result = new com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest(this); + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest result = + new com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest(this); result.parent_ = parent_; result.configId_ = configId_; if (notificationConfigBuilder_ == null) { @@ -527,46 +591,51 @@ public com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest)other); + return mergeFrom( + (com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest other) { - if (other == com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest other) { + if (other + == com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -597,7 +666,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -609,19 +680,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the new notification config's parent. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -630,21 +705,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the new notification config's parent. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -652,57 +730,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the new notification config's parent. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the new notification config's parent. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the new notification config's parent. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -710,6 +801,8 @@ public Builder setParentBytes( private java.lang.Object configId_ = ""; /** + * + * *
      * Required.
      * Unique identifier provided by the client within the parent scope.
@@ -718,13 +811,13 @@ public Builder setParentBytes(
      * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The configId. */ public java.lang.String getConfigId() { java.lang.Object ref = configId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configId_ = s; return s; @@ -733,6 +826,8 @@ public java.lang.String getConfigId() { } } /** + * + * *
      * Required.
      * Unique identifier provided by the client within the parent scope.
@@ -741,15 +836,14 @@ public java.lang.String getConfigId() {
      * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for configId. */ - public com.google.protobuf.ByteString - getConfigIdBytes() { + public com.google.protobuf.ByteString getConfigIdBytes() { java.lang.Object ref = configId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); configId_ = b; return b; } else { @@ -757,6 +851,8 @@ public java.lang.String getConfigId() { } } /** + * + * *
      * Required.
      * Unique identifier provided by the client within the parent scope.
@@ -765,20 +861,22 @@ public java.lang.String getConfigId() {
      * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The configId to set. * @return This builder for chaining. */ - public Builder setConfigId( - java.lang.String value) { + public Builder setConfigId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + configId_ = value; onChanged(); return this; } /** + * + * *
      * Required.
      * Unique identifier provided by the client within the parent scope.
@@ -787,15 +885,18 @@ public Builder setConfigId(
      * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearConfigId() { - + configId_ = getDefaultInstance().getConfigId(); onChanged(); return this; } /** + * + * *
      * Required.
      * Unique identifier provided by the client within the parent scope.
@@ -804,16 +905,16 @@ public Builder clearConfigId() {
      * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for configId to set. * @return This builder for chaining. */ - public Builder setConfigIdBytes( - com.google.protobuf.ByteString value) { + public Builder setConfigIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + configId_ = value; onChanged(); return this; @@ -821,44 +922,64 @@ public Builder setConfigIdBytes( private com.google.cloud.securitycenter.v1.NotificationConfig notificationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig, com.google.cloud.securitycenter.v1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> notificationConfigBuilder_; + com.google.cloud.securitycenter.v1.NotificationConfig, + com.google.cloud.securitycenter.v1.NotificationConfig.Builder, + com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> + notificationConfigBuilder_; /** + * + * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the notificationConfig field is set. */ public boolean hasNotificationConfig() { return notificationConfigBuilder_ != null || notificationConfig_ != null; } /** + * + * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationConfig. */ public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig() { if (notificationConfigBuilder_ == null) { - return notificationConfig_ == null ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() : notificationConfig_; + return notificationConfig_ == null + ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() + : notificationConfig_; } else { return notificationConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setNotificationConfig(com.google.cloud.securitycenter.v1.NotificationConfig value) { + public Builder setNotificationConfig( + com.google.cloud.securitycenter.v1.NotificationConfig value) { if (notificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -872,12 +993,16 @@ public Builder setNotificationConfig(com.google.cloud.securitycenter.v1.Notifica return this; } /** + * + * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNotificationConfig( com.google.cloud.securitycenter.v1.NotificationConfig.Builder builderForValue) { @@ -891,18 +1016,25 @@ public Builder setNotificationConfig( return this; } /** + * + * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeNotificationConfig(com.google.cloud.securitycenter.v1.NotificationConfig value) { + public Builder mergeNotificationConfig( + com.google.cloud.securitycenter.v1.NotificationConfig value) { if (notificationConfigBuilder_ == null) { if (notificationConfig_ != null) { notificationConfig_ = - com.google.cloud.securitycenter.v1.NotificationConfig.newBuilder(notificationConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.NotificationConfig.newBuilder(notificationConfig_) + .mergeFrom(value) + .buildPartial(); } else { notificationConfig_ = value; } @@ -914,12 +1046,16 @@ public Builder mergeNotificationConfig(com.google.cloud.securitycenter.v1.Notifi return this; } /** + * + * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNotificationConfig() { if (notificationConfigBuilder_ == null) { @@ -933,58 +1069,76 @@ public Builder clearNotificationConfig() { return this; } /** + * + * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycenter.v1.NotificationConfig.Builder getNotificationConfigBuilder() { - + public com.google.cloud.securitycenter.v1.NotificationConfig.Builder + getNotificationConfigBuilder() { + onChanged(); return getNotificationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { + public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder + getNotificationConfigOrBuilder() { if (notificationConfigBuilder_ != null) { return notificationConfigBuilder_.getMessageOrBuilder(); } else { - return notificationConfig_ == null ? - com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() : notificationConfig_; + return notificationConfig_ == null + ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() + : notificationConfig_; } } /** + * + * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig, com.google.cloud.securitycenter.v1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> + com.google.cloud.securitycenter.v1.NotificationConfig, + com.google.cloud.securitycenter.v1.NotificationConfig.Builder, + com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> getNotificationConfigFieldBuilder() { if (notificationConfigBuilder_ == null) { - notificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig, com.google.cloud.securitycenter.v1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder>( - getNotificationConfig(), - getParentForChildren(), - isClean()); + notificationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.NotificationConfig, + com.google.cloud.securitycenter.v1.NotificationConfig.Builder, + com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder>( + getNotificationConfig(), getParentForChildren(), isClean()); notificationConfig_ = null; } return notificationConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -994,30 +1148,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.CreateNotificationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.CreateNotificationConfigRequest) - private static final com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest(); } - public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateNotificationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateNotificationConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateNotificationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateNotificationConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1029,9 +1185,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequestOrBuilder.java index 553e974e8..e133d3953 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateNotificationConfigRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface CreateNotificationConfigRequestOrBuilder extends +public interface CreateNotificationConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.CreateNotificationConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the new notification config's parent. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the new notification config's parent. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required.
    * Unique identifier provided by the client within the parent scope.
@@ -38,10 +65,13 @@ public interface CreateNotificationConfigRequestOrBuilder extends
    * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The configId. */ java.lang.String getConfigId(); /** + * + * *
    * Required.
    * Unique identifier provided by the client within the parent scope.
@@ -50,38 +80,52 @@ public interface CreateNotificationConfigRequestOrBuilder extends
    * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for configId. */ - com.google.protobuf.ByteString - getConfigIdBytes(); + com.google.protobuf.ByteString getConfigIdBytes(); /** + * + * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the notificationConfig field is set. */ boolean hasNotificationConfig(); /** + * + * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationConfig. */ com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig(); /** + * + * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java index b9138b600..0e9e44836 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for creating a source.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CreateSourceRequest} */ -public final class CreateSourceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateSourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.CreateSourceRequest) CreateSourceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateSourceRequest.newBuilder() to construct. private CreateSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateSourceRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateSourceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,36 @@ private CreateSourceRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.securitycenter.v1.Source.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); + parent_ = s; + break; } - source_ = input.readMessage(com.google.cloud.securitycenter.v1.Source.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.securitycenter.v1.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,35 +107,42 @@ private CreateSourceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.CreateSourceRequest.class, com.google.cloud.securitycenter.v1.CreateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1.CreateSourceRequest.class, + com.google.cloud.securitycenter.v1.CreateSourceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,30 +151,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -157,12 +187,17 @@ public java.lang.String getParent() { public static final int SOURCE_FIELD_NUMBER = 2; private com.google.cloud.securitycenter.v1.Source source_; /** + * + * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the source field is set. */ @java.lang.Override @@ -170,25 +205,36 @@ public boolean hasSource() { return source_ != null; } /** + * + * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The source. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Source getSource() { - return source_ == null ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() + : source_; } /** + * + * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { @@ -196,6 +242,7 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,8 +254,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -228,8 +274,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (source_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -239,19 +284,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.CreateSourceRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.CreateSourceRequest other = (com.google.cloud.securitycenter.v1.CreateSourceRequest) obj; + com.google.cloud.securitycenter.v1.CreateSourceRequest other = + (com.google.cloud.securitycenter.v1.CreateSourceRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasSource() != other.hasSource()) return false; if (hasSource()) { - if (!getSource() - .equals(other.getSource())) return false; + if (!getSource().equals(other.getSource())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -276,117 +320,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.CreateSourceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.CreateSourceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.CreateSourceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for creating a source.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CreateSourceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.CreateSourceRequest) com.google.cloud.securitycenter.v1.CreateSourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.CreateSourceRequest.class, com.google.cloud.securitycenter.v1.CreateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1.CreateSourceRequest.class, + com.google.cloud.securitycenter.v1.CreateSourceRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.CreateSourceRequest.newBuilder() @@ -394,16 +448,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -419,9 +472,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; } @java.lang.Override @@ -440,7 +493,8 @@ public com.google.cloud.securitycenter.v1.CreateSourceRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.CreateSourceRequest buildPartial() { - com.google.cloud.securitycenter.v1.CreateSourceRequest result = new com.google.cloud.securitycenter.v1.CreateSourceRequest(this); + com.google.cloud.securitycenter.v1.CreateSourceRequest result = + new com.google.cloud.securitycenter.v1.CreateSourceRequest(this); result.parent_ = parent_; if (sourceBuilder_ == null) { result.source_ = source_; @@ -455,38 +509,39 @@ public com.google.cloud.securitycenter.v1.CreateSourceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.CreateSourceRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.CreateSourceRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.CreateSourceRequest) other); } else { super.mergeFrom(other); return this; @@ -494,7 +549,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.CreateSourceRequest other) { - if (other == com.google.cloud.securitycenter.v1.CreateSourceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.CreateSourceRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -521,7 +577,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.CreateSourceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.CreateSourceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -533,19 +590,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -554,21 +615,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -576,57 +640,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -634,42 +711,61 @@ public Builder setParentBytes( private com.google.cloud.securitycenter.v1.Source source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, com.google.cloud.securitycenter.v1.SourceOrBuilder> sourceBuilder_; + com.google.cloud.securitycenter.v1.Source, + com.google.cloud.securitycenter.v1.Source.Builder, + com.google.cloud.securitycenter.v1.SourceOrBuilder> + sourceBuilder_; /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The source. */ public com.google.cloud.securitycenter.v1.Source getSource() { if (sourceBuilder_ == null) { - return source_ == null ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() + : source_; } else { return sourceBuilder_.getMessage(); } } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSource(com.google.cloud.securitycenter.v1.Source value) { if (sourceBuilder_ == null) { @@ -685,15 +781,18 @@ public Builder setSource(com.google.cloud.securitycenter.v1.Source value) { return this; } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSource( - com.google.cloud.securitycenter.v1.Source.Builder builderForValue) { + public Builder setSource(com.google.cloud.securitycenter.v1.Source.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -704,18 +803,24 @@ public Builder setSource( return this; } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSource(com.google.cloud.securitycenter.v1.Source value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = - com.google.cloud.securitycenter.v1.Source.newBuilder(source_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.Source.newBuilder(source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -727,12 +832,16 @@ public Builder mergeSource(com.google.cloud.securitycenter.v1.Source value) { return this; } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSource() { if (sourceBuilder_ == null) { @@ -746,58 +855,74 @@ public Builder clearSource() { return this; } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.Source.Builder getSourceBuilder() { - + onChanged(); return getSourceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { - return source_ == null ? - com.google.cloud.securitycenter.v1.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() + : source_; } } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, com.google.cloud.securitycenter.v1.SourceOrBuilder> + com.google.cloud.securitycenter.v1.Source, + com.google.cloud.securitycenter.v1.Source.Builder, + com.google.cloud.securitycenter.v1.SourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { - sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, com.google.cloud.securitycenter.v1.SourceOrBuilder>( - getSource(), - getParentForChildren(), - isClean()); + sourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Source, + com.google.cloud.securitycenter.v1.Source.Builder, + com.google.cloud.securitycenter.v1.SourceOrBuilder>( + getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -807,12 +932,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.CreateSourceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.CreateSourceRequest) private static final com.google.cloud.securitycenter.v1.CreateSourceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.CreateSourceRequest(); } @@ -821,16 +946,16 @@ public static com.google.cloud.securitycenter.v1.CreateSourceRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSourceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateSourceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateSourceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -845,6 +970,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.CreateSourceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java index 8552a2d04..66a408e83 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequestOrBuilder.java @@ -1,61 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface CreateSourceRequestOrBuilder extends +public interface CreateSourceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.CreateSourceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the source field is set. */ boolean hasSource(); /** + * + * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The source. */ com.google.cloud.securitycenter.v1.Source getSource(); /** + * + * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cve.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cve.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cve.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cve.java index 1e0e50bc5..b7498fde1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cve.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cve.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/vulnerability.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * CVE stands for Common Vulnerabilities and Exposures.
  * More information: https://cve.mitre.org
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.Cve}
  */
-public final class Cve extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Cve extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Cve)
     CveOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Cve.newBuilder() to construct.
   private Cve(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Cve() {
     id_ = "";
     references_ = java.util.Collections.emptyList();
@@ -27,16 +45,15 @@ private Cve() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Cve();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Cve(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,46 +73,53 @@ private Cve(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            id_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              references_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            references_.add(
-                input.readMessage(com.google.cloud.securitycenter.v1.Reference.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            com.google.cloud.securitycenter.v1.Cvssv3.Builder subBuilder = null;
-            if (cvssv3_ != null) {
-              subBuilder = cvssv3_.toBuilder();
+              id_ = s;
+              break;
             }
-            cvssv3_ = input.readMessage(com.google.cloud.securitycenter.v1.Cvssv3.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(cvssv3_);
-              cvssv3_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                references_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              references_.add(
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1.Reference.parser(), extensionRegistry));
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.securitycenter.v1.Cvssv3.Builder subBuilder = null;
+              if (cvssv3_ != null) {
+                subBuilder = cvssv3_.toBuilder();
+              }
+              cvssv3_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1.Cvssv3.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(cvssv3_);
+                cvssv3_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 32: {
-
-            upstreamFixAvailable_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          case 32:
+            {
+              upstreamFixAvailable_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -103,8 +127,7 @@ private Cve(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         references_ = java.util.Collections.unmodifiableList(references_);
@@ -113,27 +136,33 @@ private Cve(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Cve_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1.VulnerabilityProto
+        .internal_static_google_cloud_securitycenter_v1_Cve_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Cve_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.VulnerabilityProto
+        .internal_static_google_cloud_securitycenter_v1_Cve_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.Cve.class, com.google.cloud.securitycenter.v1.Cve.Builder.class);
+            com.google.cloud.securitycenter.v1.Cve.class,
+            com.google.cloud.securitycenter.v1.Cve.Builder.class);
   }
 
   public static final int ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object id_;
   /**
+   *
+   *
    * 
    * The unique identifier for the vulnerability. e.g. CVE-2021-34527
    * 
* * string id = 1; + * * @return The id. */ @java.lang.Override @@ -142,29 +171,29 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** + * + * *
    * The unique identifier for the vulnerability. e.g. CVE-2021-34527
    * 
* * string id = 1; + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -175,6 +204,8 @@ public java.lang.String getId() { public static final int REFERENCES_FIELD_NUMBER = 2; private java.util.List references_; /** + * + * *
    * Additional information about the CVE.
    * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -187,6 +218,8 @@ public java.util.List getReference
     return references_;
   }
   /**
+   *
+   *
    * 
    * Additional information about the CVE.
    * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -195,11 +228,13 @@ public java.util.List getReference
    * repeated .google.cloud.securitycenter.v1.Reference references = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getReferencesOrBuilderList() {
     return references_;
   }
   /**
+   *
+   *
    * 
    * Additional information about the CVE.
    * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -212,6 +247,8 @@ public int getReferencesCount() {
     return references_.size();
   }
   /**
+   *
+   *
    * 
    * Additional information about the CVE.
    * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -224,6 +261,8 @@ public com.google.cloud.securitycenter.v1.Reference getReferences(int index) {
     return references_.get(index);
   }
   /**
+   *
+   *
    * 
    * Additional information about the CVE.
    * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -232,20 +271,22 @@ public com.google.cloud.securitycenter.v1.Reference getReferences(int index) {
    * repeated .google.cloud.securitycenter.v1.Reference references = 2;
    */
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1.ReferenceOrBuilder getReferencesOrBuilder(
-      int index) {
+  public com.google.cloud.securitycenter.v1.ReferenceOrBuilder getReferencesOrBuilder(int index) {
     return references_.get(index);
   }
 
   public static final int CVSSV3_FIELD_NUMBER = 3;
   private com.google.cloud.securitycenter.v1.Cvssv3 cvssv3_;
   /**
+   *
+   *
    * 
    * Describe Common Vulnerability Scoring System specified at
    * https://www.first.org/cvss/v3.1/specification-document
    * 
* * .google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3; + * * @return Whether the cvssv3 field is set. */ @java.lang.Override @@ -253,19 +294,26 @@ public boolean hasCvssv3() { return cvssv3_ != null; } /** + * + * *
    * Describe Common Vulnerability Scoring System specified at
    * https://www.first.org/cvss/v3.1/specification-document
    * 
* * .google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3; + * * @return The cvssv3. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3 getCvssv3() { - return cvssv3_ == null ? com.google.cloud.securitycenter.v1.Cvssv3.getDefaultInstance() : cvssv3_; + return cvssv3_ == null + ? com.google.cloud.securitycenter.v1.Cvssv3.getDefaultInstance() + : cvssv3_; } /** + * + * *
    * Describe Common Vulnerability Scoring System specified at
    * https://www.first.org/cvss/v3.1/specification-document
@@ -281,11 +329,14 @@ public com.google.cloud.securitycenter.v1.Cvssv3OrBuilder getCvssv3OrBuilder() {
   public static final int UPSTREAM_FIX_AVAILABLE_FIELD_NUMBER = 4;
   private boolean upstreamFixAvailable_;
   /**
+   *
+   *
    * 
    * Whether upstream fix is available for the CVE.
    * 
* * bool upstream_fix_available = 4; + * * @return The upstreamFixAvailable. */ @java.lang.Override @@ -294,6 +345,7 @@ public boolean getUpstreamFixAvailable() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -305,8 +357,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -332,16 +383,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } for (int i = 0; i < references_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, references_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, references_.get(i)); } if (cvssv3_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCvssv3()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCvssv3()); } if (upstreamFixAvailable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, upstreamFixAvailable_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, upstreamFixAvailable_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -351,24 +399,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Cve)) { return super.equals(obj); } com.google.cloud.securitycenter.v1.Cve other = (com.google.cloud.securitycenter.v1.Cve) obj; - if (!getId() - .equals(other.getId())) return false; - if (!getReferencesList() - .equals(other.getReferencesList())) return false; + if (!getId().equals(other.getId())) return false; + if (!getReferencesList().equals(other.getReferencesList())) return false; if (hasCvssv3() != other.hasCvssv3()) return false; if (hasCvssv3()) { - if (!getCvssv3() - .equals(other.getCvssv3())) return false; + if (!getCvssv3().equals(other.getCvssv3())) return false; } - if (getUpstreamFixAvailable() - != other.getUpstreamFixAvailable()) return false; + if (getUpstreamFixAvailable() != other.getUpstreamFixAvailable()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -391,104 +435,110 @@ public int hashCode() { hash = (53 * hash) + getCvssv3().hashCode(); } hash = (37 * hash) + UPSTREAM_FIX_AVAILABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUpstreamFixAvailable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUpstreamFixAvailable()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.securitycenter.v1.Cve parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Cve parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Cve parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Cve parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Cve parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Cve parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Cve parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Cve parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Cve parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Cve parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Cve parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Cve parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Cve parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.Cve prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * CVE stands for Common Vulnerabilities and Exposures.
    * More information: https://cve.mitre.org
@@ -496,21 +546,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.Cve}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Cve)
       com.google.cloud.securitycenter.v1.CveOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Cve_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.VulnerabilityProto
+          .internal_static_google_cloud_securitycenter_v1_Cve_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Cve_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.VulnerabilityProto
+          .internal_static_google_cloud_securitycenter_v1_Cve_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.Cve.class, com.google.cloud.securitycenter.v1.Cve.Builder.class);
+              com.google.cloud.securitycenter.v1.Cve.class,
+              com.google.cloud.securitycenter.v1.Cve.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.Cve.newBuilder()
@@ -518,17 +570,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getReferencesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -552,9 +604,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Cve_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.VulnerabilityProto
+          .internal_static_google_cloud_securitycenter_v1_Cve_descriptor;
     }
 
     @java.lang.Override
@@ -573,7 +625,8 @@ public com.google.cloud.securitycenter.v1.Cve build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.Cve buildPartial() {
-      com.google.cloud.securitycenter.v1.Cve result = new com.google.cloud.securitycenter.v1.Cve(this);
+      com.google.cloud.securitycenter.v1.Cve result =
+          new com.google.cloud.securitycenter.v1.Cve(this);
       int from_bitField0_ = bitField0_;
       result.id_ = id_;
       if (referencesBuilder_ == null) {
@@ -599,38 +652,39 @@ public com.google.cloud.securitycenter.v1.Cve buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.Cve) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.Cve)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.Cve) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -661,9 +715,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Cve other) {
             referencesBuilder_ = null;
             references_ = other.references_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            referencesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getReferencesFieldBuilder() : null;
+            referencesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getReferencesFieldBuilder()
+                    : null;
           } else {
             referencesBuilder_.addAllMessages(other.references_);
           }
@@ -703,22 +758,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object id_ = "";
     /**
+     *
+     *
      * 
      * The unique identifier for the vulnerability. e.g. CVE-2021-34527
      * 
* * string id = 1; + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -727,20 +785,21 @@ public java.lang.String getId() { } } /** + * + * *
      * The unique identifier for the vulnerability. e.g. CVE-2021-34527
      * 
* * string id = 1; + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -748,72 +807,86 @@ public java.lang.String getId() { } } /** + * + * *
      * The unique identifier for the vulnerability. e.g. CVE-2021-34527
      * 
* * string id = 1; + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** + * + * *
      * The unique identifier for the vulnerability. e.g. CVE-2021-34527
      * 
* * string id = 1; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * The unique identifier for the vulnerability. e.g. CVE-2021-34527
      * 
* * string id = 1; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; } private java.util.List references_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureReferencesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - references_ = new java.util.ArrayList(references_); + references_ = + new java.util.ArrayList(references_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Reference, com.google.cloud.securitycenter.v1.Reference.Builder, com.google.cloud.securitycenter.v1.ReferenceOrBuilder> referencesBuilder_; + com.google.cloud.securitycenter.v1.Reference, + com.google.cloud.securitycenter.v1.Reference.Builder, + com.google.cloud.securitycenter.v1.ReferenceOrBuilder> + referencesBuilder_; /** + * + * *
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -829,6 +902,8 @@ public java.util.List getReference
       }
     }
     /**
+     *
+     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -844,6 +919,8 @@ public int getReferencesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -859,6 +936,8 @@ public com.google.cloud.securitycenter.v1.Reference getReferences(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -866,8 +945,7 @@ public com.google.cloud.securitycenter.v1.Reference getReferences(int index) {
      *
      * repeated .google.cloud.securitycenter.v1.Reference references = 2;
      */
-    public Builder setReferences(
-        int index, com.google.cloud.securitycenter.v1.Reference value) {
+    public Builder setReferences(int index, com.google.cloud.securitycenter.v1.Reference value) {
       if (referencesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -881,6 +959,8 @@ public Builder setReferences(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -900,6 +980,8 @@ public Builder setReferences(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -921,6 +1003,8 @@ public Builder addReferences(com.google.cloud.securitycenter.v1.Reference value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -928,8 +1012,7 @@ public Builder addReferences(com.google.cloud.securitycenter.v1.Reference value)
      *
      * repeated .google.cloud.securitycenter.v1.Reference references = 2;
      */
-    public Builder addReferences(
-        int index, com.google.cloud.securitycenter.v1.Reference value) {
+    public Builder addReferences(int index, com.google.cloud.securitycenter.v1.Reference value) {
       if (referencesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -943,6 +1026,8 @@ public Builder addReferences(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -962,6 +1047,8 @@ public Builder addReferences(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -981,6 +1068,8 @@ public Builder addReferences(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -992,8 +1081,7 @@ public Builder addAllReferences(
         java.lang.Iterable values) {
       if (referencesBuilder_ == null) {
         ensureReferencesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, references_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, references_);
         onChanged();
       } else {
         referencesBuilder_.addAllMessages(values);
@@ -1001,6 +1089,8 @@ public Builder addAllReferences(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1019,6 +1109,8 @@ public Builder clearReferences() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1037,6 +1129,8 @@ public Builder removeReferences(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1044,11 +1138,12 @@ public Builder removeReferences(int index) {
      *
      * repeated .google.cloud.securitycenter.v1.Reference references = 2;
      */
-    public com.google.cloud.securitycenter.v1.Reference.Builder getReferencesBuilder(
-        int index) {
+    public com.google.cloud.securitycenter.v1.Reference.Builder getReferencesBuilder(int index) {
       return getReferencesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1056,14 +1151,16 @@ public com.google.cloud.securitycenter.v1.Reference.Builder getReferencesBuilder
      *
      * repeated .google.cloud.securitycenter.v1.Reference references = 2;
      */
-    public com.google.cloud.securitycenter.v1.ReferenceOrBuilder getReferencesOrBuilder(
-        int index) {
+    public com.google.cloud.securitycenter.v1.ReferenceOrBuilder getReferencesOrBuilder(int index) {
       if (referencesBuilder_ == null) {
-        return references_.get(index);  } else {
+        return references_.get(index);
+      } else {
         return referencesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1071,8 +1168,8 @@ public com.google.cloud.securitycenter.v1.ReferenceOrBuilder getReferencesOrBuil
      *
      * repeated .google.cloud.securitycenter.v1.Reference references = 2;
      */
-    public java.util.List 
-         getReferencesOrBuilderList() {
+    public java.util.List
+        getReferencesOrBuilderList() {
       if (referencesBuilder_ != null) {
         return referencesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1080,6 +1177,8 @@ public com.google.cloud.securitycenter.v1.ReferenceOrBuilder getReferencesOrBuil
       }
     }
     /**
+     *
+     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1088,10 +1187,12 @@ public com.google.cloud.securitycenter.v1.ReferenceOrBuilder getReferencesOrBuil
      * repeated .google.cloud.securitycenter.v1.Reference references = 2;
      */
     public com.google.cloud.securitycenter.v1.Reference.Builder addReferencesBuilder() {
-      return getReferencesFieldBuilder().addBuilder(
-          com.google.cloud.securitycenter.v1.Reference.getDefaultInstance());
+      return getReferencesFieldBuilder()
+          .addBuilder(com.google.cloud.securitycenter.v1.Reference.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1099,12 +1200,13 @@ public com.google.cloud.securitycenter.v1.Reference.Builder addReferencesBuilder
      *
      * repeated .google.cloud.securitycenter.v1.Reference references = 2;
      */
-    public com.google.cloud.securitycenter.v1.Reference.Builder addReferencesBuilder(
-        int index) {
-      return getReferencesFieldBuilder().addBuilder(
-          index, com.google.cloud.securitycenter.v1.Reference.getDefaultInstance());
+    public com.google.cloud.securitycenter.v1.Reference.Builder addReferencesBuilder(int index) {
+      return getReferencesFieldBuilder()
+          .addBuilder(index, com.google.cloud.securitycenter.v1.Reference.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Additional information about the CVE.
      * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -1112,20 +1214,23 @@ public com.google.cloud.securitycenter.v1.Reference.Builder addReferencesBuilder
      *
      * repeated .google.cloud.securitycenter.v1.Reference references = 2;
      */
-    public java.util.List 
-         getReferencesBuilderList() {
+    public java.util.List
+        getReferencesBuilderList() {
       return getReferencesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.Reference, com.google.cloud.securitycenter.v1.Reference.Builder, com.google.cloud.securitycenter.v1.ReferenceOrBuilder> 
+            com.google.cloud.securitycenter.v1.Reference,
+            com.google.cloud.securitycenter.v1.Reference.Builder,
+            com.google.cloud.securitycenter.v1.ReferenceOrBuilder>
         getReferencesFieldBuilder() {
       if (referencesBuilder_ == null) {
-        referencesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Reference, com.google.cloud.securitycenter.v1.Reference.Builder, com.google.cloud.securitycenter.v1.ReferenceOrBuilder>(
-                references_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        referencesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.securitycenter.v1.Reference,
+                com.google.cloud.securitycenter.v1.Reference.Builder,
+                com.google.cloud.securitycenter.v1.ReferenceOrBuilder>(
+                references_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         references_ = null;
       }
       return referencesBuilder_;
@@ -1133,36 +1238,49 @@ public com.google.cloud.securitycenter.v1.Reference.Builder addReferencesBuilder
 
     private com.google.cloud.securitycenter.v1.Cvssv3 cvssv3_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.Cvssv3, com.google.cloud.securitycenter.v1.Cvssv3.Builder, com.google.cloud.securitycenter.v1.Cvssv3OrBuilder> cvssv3Builder_;
+            com.google.cloud.securitycenter.v1.Cvssv3,
+            com.google.cloud.securitycenter.v1.Cvssv3.Builder,
+            com.google.cloud.securitycenter.v1.Cvssv3OrBuilder>
+        cvssv3Builder_;
     /**
+     *
+     *
      * 
      * Describe Common Vulnerability Scoring System specified at
      * https://www.first.org/cvss/v3.1/specification-document
      * 
* * .google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3; + * * @return Whether the cvssv3 field is set. */ public boolean hasCvssv3() { return cvssv3Builder_ != null || cvssv3_ != null; } /** + * + * *
      * Describe Common Vulnerability Scoring System specified at
      * https://www.first.org/cvss/v3.1/specification-document
      * 
* * .google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3; + * * @return The cvssv3. */ public com.google.cloud.securitycenter.v1.Cvssv3 getCvssv3() { if (cvssv3Builder_ == null) { - return cvssv3_ == null ? com.google.cloud.securitycenter.v1.Cvssv3.getDefaultInstance() : cvssv3_; + return cvssv3_ == null + ? com.google.cloud.securitycenter.v1.Cvssv3.getDefaultInstance() + : cvssv3_; } else { return cvssv3Builder_.getMessage(); } } /** + * + * *
      * Describe Common Vulnerability Scoring System specified at
      * https://www.first.org/cvss/v3.1/specification-document
@@ -1184,6 +1302,8 @@ public Builder setCvssv3(com.google.cloud.securitycenter.v1.Cvssv3 value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Describe Common Vulnerability Scoring System specified at
      * https://www.first.org/cvss/v3.1/specification-document
@@ -1191,8 +1311,7 @@ public Builder setCvssv3(com.google.cloud.securitycenter.v1.Cvssv3 value) {
      *
      * .google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3;
      */
-    public Builder setCvssv3(
-        com.google.cloud.securitycenter.v1.Cvssv3.Builder builderForValue) {
+    public Builder setCvssv3(com.google.cloud.securitycenter.v1.Cvssv3.Builder builderForValue) {
       if (cvssv3Builder_ == null) {
         cvssv3_ = builderForValue.build();
         onChanged();
@@ -1203,6 +1322,8 @@ public Builder setCvssv3(
       return this;
     }
     /**
+     *
+     *
      * 
      * Describe Common Vulnerability Scoring System specified at
      * https://www.first.org/cvss/v3.1/specification-document
@@ -1214,7 +1335,9 @@ public Builder mergeCvssv3(com.google.cloud.securitycenter.v1.Cvssv3 value) {
       if (cvssv3Builder_ == null) {
         if (cvssv3_ != null) {
           cvssv3_ =
-            com.google.cloud.securitycenter.v1.Cvssv3.newBuilder(cvssv3_).mergeFrom(value).buildPartial();
+              com.google.cloud.securitycenter.v1.Cvssv3.newBuilder(cvssv3_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           cvssv3_ = value;
         }
@@ -1226,6 +1349,8 @@ public Builder mergeCvssv3(com.google.cloud.securitycenter.v1.Cvssv3 value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Describe Common Vulnerability Scoring System specified at
      * https://www.first.org/cvss/v3.1/specification-document
@@ -1245,6 +1370,8 @@ public Builder clearCvssv3() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Describe Common Vulnerability Scoring System specified at
      * https://www.first.org/cvss/v3.1/specification-document
@@ -1253,11 +1380,13 @@ public Builder clearCvssv3() {
      * .google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3;
      */
     public com.google.cloud.securitycenter.v1.Cvssv3.Builder getCvssv3Builder() {
-      
+
       onChanged();
       return getCvssv3FieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Describe Common Vulnerability Scoring System specified at
      * https://www.first.org/cvss/v3.1/specification-document
@@ -1269,11 +1398,14 @@ public com.google.cloud.securitycenter.v1.Cvssv3OrBuilder getCvssv3OrBuilder() {
       if (cvssv3Builder_ != null) {
         return cvssv3Builder_.getMessageOrBuilder();
       } else {
-        return cvssv3_ == null ?
-            com.google.cloud.securitycenter.v1.Cvssv3.getDefaultInstance() : cvssv3_;
+        return cvssv3_ == null
+            ? com.google.cloud.securitycenter.v1.Cvssv3.getDefaultInstance()
+            : cvssv3_;
       }
     }
     /**
+     *
+     *
      * 
      * Describe Common Vulnerability Scoring System specified at
      * https://www.first.org/cvss/v3.1/specification-document
@@ -1282,26 +1414,32 @@ public com.google.cloud.securitycenter.v1.Cvssv3OrBuilder getCvssv3OrBuilder() {
      * .google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.Cvssv3, com.google.cloud.securitycenter.v1.Cvssv3.Builder, com.google.cloud.securitycenter.v1.Cvssv3OrBuilder> 
+            com.google.cloud.securitycenter.v1.Cvssv3,
+            com.google.cloud.securitycenter.v1.Cvssv3.Builder,
+            com.google.cloud.securitycenter.v1.Cvssv3OrBuilder>
         getCvssv3FieldBuilder() {
       if (cvssv3Builder_ == null) {
-        cvssv3Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Cvssv3, com.google.cloud.securitycenter.v1.Cvssv3.Builder, com.google.cloud.securitycenter.v1.Cvssv3OrBuilder>(
-                getCvssv3(),
-                getParentForChildren(),
-                isClean());
+        cvssv3Builder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.securitycenter.v1.Cvssv3,
+                com.google.cloud.securitycenter.v1.Cvssv3.Builder,
+                com.google.cloud.securitycenter.v1.Cvssv3OrBuilder>(
+                getCvssv3(), getParentForChildren(), isClean());
         cvssv3_ = null;
       }
       return cvssv3Builder_;
     }
 
-    private boolean upstreamFixAvailable_ ;
+    private boolean upstreamFixAvailable_;
     /**
+     *
+     *
      * 
      * Whether upstream fix is available for the CVE.
      * 
* * bool upstream_fix_available = 4; + * * @return The upstreamFixAvailable. */ @java.lang.Override @@ -1309,37 +1447,43 @@ public boolean getUpstreamFixAvailable() { return upstreamFixAvailable_; } /** + * + * *
      * Whether upstream fix is available for the CVE.
      * 
* * bool upstream_fix_available = 4; + * * @param value The upstreamFixAvailable to set. * @return This builder for chaining. */ public Builder setUpstreamFixAvailable(boolean value) { - + upstreamFixAvailable_ = value; onChanged(); return this; } /** + * + * *
      * Whether upstream fix is available for the CVE.
      * 
* * bool upstream_fix_available = 4; + * * @return This builder for chaining. */ public Builder clearUpstreamFixAvailable() { - + upstreamFixAvailable_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1349,12 +1493,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Cve) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Cve) private static final com.google.cloud.securitycenter.v1.Cve DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Cve(); } @@ -1363,16 +1507,16 @@ public static com.google.cloud.securitycenter.v1.Cve getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Cve parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Cve(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Cve parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Cve(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1387,6 +1531,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Cve getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CveOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CveOrBuilder.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CveOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CveOrBuilder.java index 049698d86..e0c6b64ba 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CveOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CveOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/vulnerability.proto package com.google.cloud.securitycenter.v1; -public interface CveOrBuilder extends +public interface CveOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Cve) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The unique identifier for the vulnerability. e.g. CVE-2021-34527
    * 
* * string id = 1; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * The unique identifier for the vulnerability. e.g. CVE-2021-34527
    * 
* * string id = 1; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * Additional information about the CVE.
    * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -35,9 +58,10 @@ public interface CveOrBuilder extends
    *
    * repeated .google.cloud.securitycenter.v1.Reference references = 2;
    */
-  java.util.List 
-      getReferencesList();
+  java.util.List getReferencesList();
   /**
+   *
+   *
    * 
    * Additional information about the CVE.
    * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -47,6 +71,8 @@ public interface CveOrBuilder extends
    */
   com.google.cloud.securitycenter.v1.Reference getReferences(int index);
   /**
+   *
+   *
    * 
    * Additional information about the CVE.
    * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -56,6 +82,8 @@ public interface CveOrBuilder extends
    */
   int getReferencesCount();
   /**
+   *
+   *
    * 
    * Additional information about the CVE.
    * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -63,9 +91,11 @@ public interface CveOrBuilder extends
    *
    * repeated .google.cloud.securitycenter.v1.Reference references = 2;
    */
-  java.util.List 
+  java.util.List
       getReferencesOrBuilderList();
   /**
+   *
+   *
    * 
    * Additional information about the CVE.
    * e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
@@ -73,30 +103,37 @@ public interface CveOrBuilder extends
    *
    * repeated .google.cloud.securitycenter.v1.Reference references = 2;
    */
-  com.google.cloud.securitycenter.v1.ReferenceOrBuilder getReferencesOrBuilder(
-      int index);
+  com.google.cloud.securitycenter.v1.ReferenceOrBuilder getReferencesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Describe Common Vulnerability Scoring System specified at
    * https://www.first.org/cvss/v3.1/specification-document
    * 
* * .google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3; + * * @return Whether the cvssv3 field is set. */ boolean hasCvssv3(); /** + * + * *
    * Describe Common Vulnerability Scoring System specified at
    * https://www.first.org/cvss/v3.1/specification-document
    * 
* * .google.cloud.securitycenter.v1.Cvssv3 cvssv3 = 3; + * * @return The cvssv3. */ com.google.cloud.securitycenter.v1.Cvssv3 getCvssv3(); /** + * + * *
    * Describe Common Vulnerability Scoring System specified at
    * https://www.first.org/cvss/v3.1/specification-document
@@ -107,11 +144,14 @@ com.google.cloud.securitycenter.v1.ReferenceOrBuilder getReferencesOrBuilder(
   com.google.cloud.securitycenter.v1.Cvssv3OrBuilder getCvssv3OrBuilder();
 
   /**
+   *
+   *
    * 
    * Whether upstream fix is available for the CVE.
    * 
* * bool upstream_fix_available = 4; + * * @return The upstreamFixAvailable. */ boolean getUpstreamFixAvailable(); diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3.java index 6e6bc286e..56684fba4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/vulnerability.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Common Vulnerability Scoring System version 3.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Cvssv3} */ -public final class Cvssv3 extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Cvssv3 extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Cvssv3) Cvssv3OrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Cvssv3.newBuilder() to construct. private Cvssv3(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Cvssv3() { attackVector_ = 0; attackComplexity_ = 0; @@ -32,16 +50,15 @@ private Cvssv3() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Cvssv3(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Cvssv3( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -60,66 +77,74 @@ private Cvssv3( case 0: done = true; break; - case 9: { - - baseScore_ = input.readDouble(); - break; - } - case 40: { - int rawValue = input.readEnum(); + case 9: + { + baseScore_ = input.readDouble(); + break; + } + case 40: + { + int rawValue = input.readEnum(); - attackVector_ = rawValue; - break; - } - case 48: { - int rawValue = input.readEnum(); + attackVector_ = rawValue; + break; + } + case 48: + { + int rawValue = input.readEnum(); - attackComplexity_ = rawValue; - break; - } - case 56: { - int rawValue = input.readEnum(); + attackComplexity_ = rawValue; + break; + } + case 56: + { + int rawValue = input.readEnum(); - privilegesRequired_ = rawValue; - break; - } - case 64: { - int rawValue = input.readEnum(); + privilegesRequired_ = rawValue; + break; + } + case 64: + { + int rawValue = input.readEnum(); - userInteraction_ = rawValue; - break; - } - case 72: { - int rawValue = input.readEnum(); + userInteraction_ = rawValue; + break; + } + case 72: + { + int rawValue = input.readEnum(); - scope_ = rawValue; - break; - } - case 80: { - int rawValue = input.readEnum(); + scope_ = rawValue; + break; + } + case 80: + { + int rawValue = input.readEnum(); - confidentialityImpact_ = rawValue; - break; - } - case 88: { - int rawValue = input.readEnum(); + confidentialityImpact_ = rawValue; + break; + } + case 88: + { + int rawValue = input.readEnum(); - integrityImpact_ = rawValue; - break; - } - case 96: { - int rawValue = input.readEnum(); + integrityImpact_ = rawValue; + break; + } + case 96: + { + int rawValue = input.readEnum(); - availabilityImpact_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + availabilityImpact_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -127,27 +152,31 @@ private Cvssv3( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.VulnerabilityProto + .internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Cvssv3_fieldAccessorTable + return com.google.cloud.securitycenter.v1.VulnerabilityProto + .internal_static_google_cloud_securitycenter_v1_Cvssv3_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Cvssv3.class, com.google.cloud.securitycenter.v1.Cvssv3.Builder.class); + com.google.cloud.securitycenter.v1.Cvssv3.class, + com.google.cloud.securitycenter.v1.Cvssv3.Builder.class); } /** + * + * *
    * This metric reflects the context by which vulnerability exploitation is
    * possible.
@@ -155,9 +184,10 @@ private Cvssv3(
    *
    * Protobuf enum {@code google.cloud.securitycenter.v1.Cvssv3.AttackVector}
    */
-  public enum AttackVector
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Invalid value.
      * 
@@ -166,6 +196,8 @@ public enum AttackVector */ ATTACK_VECTOR_UNSPECIFIED(0), /** + * + * *
      * The vulnerable component is bound to the network stack and the set of
      * possible attackers extends beyond the other options listed below, up to
@@ -176,6 +208,8 @@ public enum AttackVector
      */
     ATTACK_VECTOR_NETWORK(1),
     /**
+     *
+     *
      * 
      * The vulnerable component is bound to the network stack, but the attack is
      * limited at the protocol level to a logically adjacent topology.
@@ -185,6 +219,8 @@ public enum AttackVector
      */
     ATTACK_VECTOR_ADJACENT(2),
     /**
+     *
+     *
      * 
      * The vulnerable component is not bound to the network stack and the
      * attacker's path is via read/write/execute capabilities.
@@ -194,6 +230,8 @@ public enum AttackVector
      */
     ATTACK_VECTOR_LOCAL(3),
     /**
+     *
+     *
      * 
      * The attack requires the attacker to physically touch or manipulate the
      * vulnerable component.
@@ -206,6 +244,8 @@ public enum AttackVector
     ;
 
     /**
+     *
+     *
      * 
      * Invalid value.
      * 
@@ -214,6 +254,8 @@ public enum AttackVector */ public static final int ATTACK_VECTOR_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The vulnerable component is bound to the network stack and the set of
      * possible attackers extends beyond the other options listed below, up to
@@ -224,6 +266,8 @@ public enum AttackVector
      */
     public static final int ATTACK_VECTOR_NETWORK_VALUE = 1;
     /**
+     *
+     *
      * 
      * The vulnerable component is bound to the network stack, but the attack is
      * limited at the protocol level to a logically adjacent topology.
@@ -233,6 +277,8 @@ public enum AttackVector
      */
     public static final int ATTACK_VECTOR_ADJACENT_VALUE = 2;
     /**
+     *
+     *
      * 
      * The vulnerable component is not bound to the network stack and the
      * attacker's path is via read/write/execute capabilities.
@@ -242,6 +288,8 @@ public enum AttackVector
      */
     public static final int ATTACK_VECTOR_LOCAL_VALUE = 3;
     /**
+     *
+     *
      * 
      * The attack requires the attacker to physically touch or manipulate the
      * vulnerable component.
@@ -251,7 +299,6 @@ public enum AttackVector
      */
     public static final int ATTACK_VECTOR_PHYSICAL_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -276,51 +323,53 @@ public static AttackVector valueOf(int value) {
      */
     public static AttackVector forNumber(int value) {
       switch (value) {
-        case 0: return ATTACK_VECTOR_UNSPECIFIED;
-        case 1: return ATTACK_VECTOR_NETWORK;
-        case 2: return ATTACK_VECTOR_ADJACENT;
-        case 3: return ATTACK_VECTOR_LOCAL;
-        case 4: return ATTACK_VECTOR_PHYSICAL;
-        default: return null;
+        case 0:
+          return ATTACK_VECTOR_UNSPECIFIED;
+        case 1:
+          return ATTACK_VECTOR_NETWORK;
+        case 2:
+          return ATTACK_VECTOR_ADJACENT;
+        case 3:
+          return ATTACK_VECTOR_LOCAL;
+        case 4:
+          return ATTACK_VECTOR_PHYSICAL;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        AttackVector> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public AttackVector findValueByNumber(int number) {
-              return AttackVector.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public AttackVector findValueByNumber(int number) {
+            return AttackVector.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.securitycenter.v1.Cvssv3.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final AttackVector[] VALUES = values();
 
-    public static AttackVector valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static AttackVector valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -338,6 +387,8 @@ private AttackVector(int value) {
   }
 
   /**
+   *
+   *
    * 
    * This metric describes the conditions beyond the attacker's control that
    * must exist in order to exploit the vulnerability.
@@ -345,9 +396,10 @@ private AttackVector(int value) {
    *
    * Protobuf enum {@code google.cloud.securitycenter.v1.Cvssv3.AttackComplexity}
    */
-  public enum AttackComplexity
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum AttackComplexity implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Invalid value.
      * 
@@ -356,6 +408,8 @@ public enum AttackComplexity */ ATTACK_COMPLEXITY_UNSPECIFIED(0), /** + * + * *
      * Specialized access conditions or extenuating circumstances do not exist.
      * An attacker can expect repeatable success when attacking the vulnerable
@@ -366,6 +420,8 @@ public enum AttackComplexity
      */
     ATTACK_COMPLEXITY_LOW(1),
     /**
+     *
+     *
      * 
      * A successful attack depends on conditions beyond the attacker's control.
      * That is, a successful attack cannot be accomplished at will, but requires
@@ -381,6 +437,8 @@ public enum AttackComplexity
     ;
 
     /**
+     *
+     *
      * 
      * Invalid value.
      * 
@@ -389,6 +447,8 @@ public enum AttackComplexity */ public static final int ATTACK_COMPLEXITY_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Specialized access conditions or extenuating circumstances do not exist.
      * An attacker can expect repeatable success when attacking the vulnerable
@@ -399,6 +459,8 @@ public enum AttackComplexity
      */
     public static final int ATTACK_COMPLEXITY_LOW_VALUE = 1;
     /**
+     *
+     *
      * 
      * A successful attack depends on conditions beyond the attacker's control.
      * That is, a successful attack cannot be accomplished at will, but requires
@@ -411,7 +473,6 @@ public enum AttackComplexity
      */
     public static final int ATTACK_COMPLEXITY_HIGH_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -436,39 +497,42 @@ public static AttackComplexity valueOf(int value) {
      */
     public static AttackComplexity forNumber(int value) {
       switch (value) {
-        case 0: return ATTACK_COMPLEXITY_UNSPECIFIED;
-        case 1: return ATTACK_COMPLEXITY_LOW;
-        case 2: return ATTACK_COMPLEXITY_HIGH;
-        default: return null;
+        case 0:
+          return ATTACK_COMPLEXITY_UNSPECIFIED;
+        case 1:
+          return ATTACK_COMPLEXITY_LOW;
+        case 2:
+          return ATTACK_COMPLEXITY_HIGH;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        AttackComplexity> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public AttackComplexity findValueByNumber(int number) {
-              return AttackComplexity.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public AttackComplexity findValueByNumber(int number) {
+                return AttackComplexity.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.securitycenter.v1.Cvssv3.getDescriptor().getEnumTypes().get(1);
     }
 
@@ -477,8 +541,7 @@ public AttackComplexity findValueByNumber(int number) {
     public static AttackComplexity valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -496,6 +559,8 @@ private AttackComplexity(int value) {
   }
 
   /**
+   *
+   *
    * 
    * This metric describes the level of privileges an attacker must possess
    * before successfully exploiting the vulnerability.
@@ -503,9 +568,10 @@ private AttackComplexity(int value) {
    *
    * Protobuf enum {@code google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired}
    */
-  public enum PrivilegesRequired
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum PrivilegesRequired implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Invalid value.
      * 
@@ -514,6 +580,8 @@ public enum PrivilegesRequired */ PRIVILEGES_REQUIRED_UNSPECIFIED(0), /** + * + * *
      * The attacker is unauthorized prior to attack, and therefore does not
      * require any access to settings or files of the vulnerable system to
@@ -524,6 +592,8 @@ public enum PrivilegesRequired
      */
     PRIVILEGES_REQUIRED_NONE(1),
     /**
+     *
+     *
      * 
      * The attacker requires privileges that provide basic user capabilities
      * that could normally affect only settings and files owned by a user.
@@ -535,6 +605,8 @@ public enum PrivilegesRequired
      */
     PRIVILEGES_REQUIRED_LOW(2),
     /**
+     *
+     *
      * 
      * The attacker requires privileges that provide significant (e.g.,
      * administrative) control over the vulnerable component allowing access to
@@ -548,6 +620,8 @@ public enum PrivilegesRequired
     ;
 
     /**
+     *
+     *
      * 
      * Invalid value.
      * 
@@ -556,6 +630,8 @@ public enum PrivilegesRequired */ public static final int PRIVILEGES_REQUIRED_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The attacker is unauthorized prior to attack, and therefore does not
      * require any access to settings or files of the vulnerable system to
@@ -566,6 +642,8 @@ public enum PrivilegesRequired
      */
     public static final int PRIVILEGES_REQUIRED_NONE_VALUE = 1;
     /**
+     *
+     *
      * 
      * The attacker requires privileges that provide basic user capabilities
      * that could normally affect only settings and files owned by a user.
@@ -577,6 +655,8 @@ public enum PrivilegesRequired
      */
     public static final int PRIVILEGES_REQUIRED_LOW_VALUE = 2;
     /**
+     *
+     *
      * 
      * The attacker requires privileges that provide significant (e.g.,
      * administrative) control over the vulnerable component allowing access to
@@ -587,7 +667,6 @@ public enum PrivilegesRequired
      */
     public static final int PRIVILEGES_REQUIRED_HIGH_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -612,11 +691,16 @@ public static PrivilegesRequired valueOf(int value) {
      */
     public static PrivilegesRequired forNumber(int value) {
       switch (value) {
-        case 0: return PRIVILEGES_REQUIRED_UNSPECIFIED;
-        case 1: return PRIVILEGES_REQUIRED_NONE;
-        case 2: return PRIVILEGES_REQUIRED_LOW;
-        case 3: return PRIVILEGES_REQUIRED_HIGH;
-        default: return null;
+        case 0:
+          return PRIVILEGES_REQUIRED_UNSPECIFIED;
+        case 1:
+          return PRIVILEGES_REQUIRED_NONE;
+        case 2:
+          return PRIVILEGES_REQUIRED_LOW;
+        case 3:
+          return PRIVILEGES_REQUIRED_HIGH;
+        default:
+          return null;
       }
     }
 
@@ -624,28 +708,28 @@ public static PrivilegesRequired forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        PrivilegesRequired> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public PrivilegesRequired findValueByNumber(int number) {
-              return PrivilegesRequired.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public PrivilegesRequired findValueByNumber(int number) {
+                return PrivilegesRequired.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.securitycenter.v1.Cvssv3.getDescriptor().getEnumTypes().get(2);
     }
 
@@ -654,8 +738,7 @@ public PrivilegesRequired findValueByNumber(int number) {
     public static PrivilegesRequired valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -673,6 +756,8 @@ private PrivilegesRequired(int value) {
   }
 
   /**
+   *
+   *
    * 
    * This metric captures the requirement for a human user, other than the
    * attacker, to participate in the successful compromise of the vulnerable
@@ -681,9 +766,10 @@ private PrivilegesRequired(int value) {
    *
    * Protobuf enum {@code google.cloud.securitycenter.v1.Cvssv3.UserInteraction}
    */
-  public enum UserInteraction
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum UserInteraction implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Invalid value.
      * 
@@ -692,6 +778,8 @@ public enum UserInteraction */ USER_INTERACTION_UNSPECIFIED(0), /** + * + * *
      * The vulnerable system can be exploited without interaction from any user.
      * 
@@ -700,6 +788,8 @@ public enum UserInteraction */ USER_INTERACTION_NONE(1), /** + * + * *
      * Successful exploitation of this vulnerability requires a user to take
      * some action before the vulnerability can be exploited.
@@ -712,6 +802,8 @@ public enum UserInteraction
     ;
 
     /**
+     *
+     *
      * 
      * Invalid value.
      * 
@@ -720,6 +812,8 @@ public enum UserInteraction */ public static final int USER_INTERACTION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The vulnerable system can be exploited without interaction from any user.
      * 
@@ -728,6 +822,8 @@ public enum UserInteraction */ public static final int USER_INTERACTION_NONE_VALUE = 1; /** + * + * *
      * Successful exploitation of this vulnerability requires a user to take
      * some action before the vulnerability can be exploited.
@@ -737,7 +833,6 @@ public enum UserInteraction
      */
     public static final int USER_INTERACTION_REQUIRED_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -762,39 +857,42 @@ public static UserInteraction valueOf(int value) {
      */
     public static UserInteraction forNumber(int value) {
       switch (value) {
-        case 0: return USER_INTERACTION_UNSPECIFIED;
-        case 1: return USER_INTERACTION_NONE;
-        case 2: return USER_INTERACTION_REQUIRED;
-        default: return null;
+        case 0:
+          return USER_INTERACTION_UNSPECIFIED;
+        case 1:
+          return USER_INTERACTION_NONE;
+        case 2:
+          return USER_INTERACTION_REQUIRED;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        UserInteraction> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public UserInteraction findValueByNumber(int number) {
-              return UserInteraction.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public UserInteraction findValueByNumber(int number) {
+                return UserInteraction.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.securitycenter.v1.Cvssv3.getDescriptor().getEnumTypes().get(3);
     }
 
@@ -803,8 +901,7 @@ public UserInteraction findValueByNumber(int number) {
     public static UserInteraction valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -822,6 +919,8 @@ private UserInteraction(int value) {
   }
 
   /**
+   *
+   *
    * 
    * The Scope metric captures whether a vulnerability in one vulnerable
    * component impacts resources in components beyond its security scope.
@@ -829,9 +928,10 @@ private UserInteraction(int value) {
    *
    * Protobuf enum {@code google.cloud.securitycenter.v1.Cvssv3.Scope}
    */
-  public enum Scope
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Scope implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Invalid value.
      * 
@@ -840,6 +940,8 @@ public enum Scope */ SCOPE_UNSPECIFIED(0), /** + * + * *
      * An exploited vulnerability can only affect resources managed by the same
      * security authority.
@@ -849,6 +951,8 @@ public enum Scope
      */
     SCOPE_UNCHANGED(1),
     /**
+     *
+     *
      * 
      * An exploited vulnerability can affect resources beyond the security scope
      * managed by the security authority of the vulnerable component.
@@ -861,6 +965,8 @@ public enum Scope
     ;
 
     /**
+     *
+     *
      * 
      * Invalid value.
      * 
@@ -869,6 +975,8 @@ public enum Scope */ public static final int SCOPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * An exploited vulnerability can only affect resources managed by the same
      * security authority.
@@ -878,6 +986,8 @@ public enum Scope
      */
     public static final int SCOPE_UNCHANGED_VALUE = 1;
     /**
+     *
+     *
      * 
      * An exploited vulnerability can affect resources beyond the security scope
      * managed by the security authority of the vulnerable component.
@@ -887,7 +997,6 @@ public enum Scope
      */
     public static final int SCOPE_CHANGED_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -912,49 +1021,49 @@ public static Scope valueOf(int value) {
      */
     public static Scope forNumber(int value) {
       switch (value) {
-        case 0: return SCOPE_UNSPECIFIED;
-        case 1: return SCOPE_UNCHANGED;
-        case 2: return SCOPE_CHANGED;
-        default: return null;
+        case 0:
+          return SCOPE_UNSPECIFIED;
+        case 1:
+          return SCOPE_UNCHANGED;
+        case 2:
+          return SCOPE_CHANGED;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        Scope> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Scope findValueByNumber(int number) {
-              return Scope.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Scope findValueByNumber(int number) {
+            return Scope.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.securitycenter.v1.Cvssv3.getDescriptor().getEnumTypes().get(4);
     }
 
     private static final Scope[] VALUES = values();
 
-    public static Scope valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Scope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -972,6 +1081,8 @@ private Scope(int value) {
   }
 
   /**
+   *
+   *
    * 
    * The Impact metrics capture the effects of a successfully exploited
    * vulnerability on the component that suffers the worst outcome that is most
@@ -980,9 +1091,10 @@ private Scope(int value) {
    *
    * Protobuf enum {@code google.cloud.securitycenter.v1.Cvssv3.Impact}
    */
-  public enum Impact
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Impact implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Invalid value.
      * 
@@ -991,6 +1103,8 @@ public enum Impact */ IMPACT_UNSPECIFIED(0), /** + * + * *
      * High impact.
      * 
@@ -999,6 +1113,8 @@ public enum Impact */ IMPACT_HIGH(1), /** + * + * *
      * Low impact.
      * 
@@ -1007,6 +1123,8 @@ public enum Impact */ IMPACT_LOW(2), /** + * + * *
      * No impact.
      * 
@@ -1018,6 +1136,8 @@ public enum Impact ; /** + * + * *
      * Invalid value.
      * 
@@ -1026,6 +1146,8 @@ public enum Impact */ public static final int IMPACT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * High impact.
      * 
@@ -1034,6 +1156,8 @@ public enum Impact */ public static final int IMPACT_HIGH_VALUE = 1; /** + * + * *
      * Low impact.
      * 
@@ -1042,6 +1166,8 @@ public enum Impact */ public static final int IMPACT_LOW_VALUE = 2; /** + * + * *
      * No impact.
      * 
@@ -1050,7 +1176,6 @@ public enum Impact */ public static final int IMPACT_NONE_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1075,50 +1200,51 @@ public static Impact valueOf(int value) { */ public static Impact forNumber(int value) { switch (value) { - case 0: return IMPACT_UNSPECIFIED; - case 1: return IMPACT_HIGH; - case 2: return IMPACT_LOW; - case 3: return IMPACT_NONE; - default: return null; + case 0: + return IMPACT_UNSPECIFIED; + case 1: + return IMPACT_HIGH; + case 2: + return IMPACT_LOW; + case 3: + return IMPACT_NONE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Impact> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Impact findValueByNumber(int number) { - return Impact.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Impact findValueByNumber(int number) { + return Impact.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.securitycenter.v1.Cvssv3.getDescriptor().getEnumTypes().get(5); } private static final Impact[] VALUES = values(); - public static Impact valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Impact valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1138,11 +1264,14 @@ private Impact(int value) { public static final int BASE_SCORE_FIELD_NUMBER = 1; private double baseScore_; /** + * + * *
    * The base score is a function of the base metric scores.
    * 
* * double base_score = 1; + * * @return The baseScore. */ @java.lang.Override @@ -1153,6 +1282,8 @@ public double getBaseScore() { public static final int ATTACK_VECTOR_FIELD_NUMBER = 5; private int attackVector_; /** + * + * *
    * Base Metrics
    * Represents the intrinsic characteristics of a vulnerability that are
@@ -1162,12 +1293,16 @@ public double getBaseScore() {
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5; + * * @return The enum numeric value on the wire for attackVector. */ - @java.lang.Override public int getAttackVectorValue() { + @java.lang.Override + public int getAttackVectorValue() { return attackVector_; } /** + * + * *
    * Base Metrics
    * Represents the intrinsic characteristics of a vulnerability that are
@@ -1177,75 +1312,104 @@ public double getBaseScore() {
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5; + * * @return The attackVector. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.AttackVector getAttackVector() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.Cvssv3.AttackVector getAttackVector() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.AttackVector result = com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.valueOf(attackVector_); - return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.Cvssv3.AttackVector result = + com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.valueOf(attackVector_); + return result == null + ? com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.UNRECOGNIZED + : result; } public static final int ATTACK_COMPLEXITY_FIELD_NUMBER = 6; private int attackComplexity_; /** + * + * *
    * This metric describes the conditions beyond the attacker's control that
    * must exist in order to exploit the vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6; + * * @return The enum numeric value on the wire for attackComplexity. */ - @java.lang.Override public int getAttackComplexityValue() { + @java.lang.Override + public int getAttackComplexityValue() { return attackComplexity_; } /** + * + * *
    * This metric describes the conditions beyond the attacker's control that
    * must exist in order to exploit the vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6; + * * @return The attackComplexity. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity getAttackComplexity() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity getAttackComplexity() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity result = com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.valueOf(attackComplexity_); - return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity result = + com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.valueOf(attackComplexity_); + return result == null + ? com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.UNRECOGNIZED + : result; } public static final int PRIVILEGES_REQUIRED_FIELD_NUMBER = 7; private int privilegesRequired_; /** + * + * *
    * This metric describes the level of privileges an attacker must possess
    * before successfully exploiting the vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; + * * @return The enum numeric value on the wire for privilegesRequired. */ - @java.lang.Override public int getPrivilegesRequiredValue() { + @java.lang.Override + public int getPrivilegesRequiredValue() { return privilegesRequired_; } /** + * + * *
    * This metric describes the level of privileges an attacker must possess
    * before successfully exploiting the vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; + * * @return The privilegesRequired. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired getPrivilegesRequired() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired getPrivilegesRequired() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired result = com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired.valueOf(privilegesRequired_); - return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired result = + com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired.valueOf(privilegesRequired_); + return result == null + ? com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired.UNRECOGNIZED + : result; } public static final int USER_INTERACTION_FIELD_NUMBER = 8; private int userInteraction_; /** + * + * *
    * This metric captures the requirement for a human user, other than the
    * attacker, to participate in the successful compromise of the vulnerable
@@ -1253,12 +1417,16 @@ public double getBaseScore() {
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8; + * * @return The enum numeric value on the wire for userInteraction. */ - @java.lang.Override public int getUserInteractionValue() { + @java.lang.Override + public int getUserInteractionValue() { return userInteraction_; } /** + * + * *
    * This metric captures the requirement for a human user, other than the
    * attacker, to participate in the successful compromise of the vulnerable
@@ -1266,46 +1434,62 @@ public double getBaseScore() {
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8; + * * @return The userInteraction. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction getUserInteraction() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction getUserInteraction() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction result = com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.valueOf(userInteraction_); - return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction result = + com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.valueOf(userInteraction_); + return result == null + ? com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.UNRECOGNIZED + : result; } public static final int SCOPE_FIELD_NUMBER = 9; private int scope_; /** + * + * *
    * The Scope metric captures whether a vulnerability in one vulnerable
    * component impacts resources in components beyond its security scope.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9; + * * @return The enum numeric value on the wire for scope. */ - @java.lang.Override public int getScopeValue() { + @java.lang.Override + public int getScopeValue() { return scope_; } /** + * + * *
    * The Scope metric captures whether a vulnerability in one vulnerable
    * component impacts resources in components beyond its security scope.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9; + * * @return The scope. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.Scope getScope() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.Cvssv3.Scope getScope() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.Scope result = com.google.cloud.securitycenter.v1.Cvssv3.Scope.valueOf(scope_); + com.google.cloud.securitycenter.v1.Cvssv3.Scope result = + com.google.cloud.securitycenter.v1.Cvssv3.Scope.valueOf(scope_); return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.Scope.UNRECOGNIZED : result; } public static final int CONFIDENTIALITY_IMPACT_FIELD_NUMBER = 10; private int confidentialityImpact_; /** + * + * *
    * This metric measures the impact to the confidentiality of the information
    * resources managed by a software component due to a successfully exploited
@@ -1313,12 +1497,16 @@ public double getBaseScore() {
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10; + * * @return The enum numeric value on the wire for confidentialityImpact. */ - @java.lang.Override public int getConfidentialityImpactValue() { + @java.lang.Override + public int getConfidentialityImpactValue() { return confidentialityImpact_; } /** + * + * *
    * This metric measures the impact to the confidentiality of the information
    * resources managed by a software component due to a successfully exploited
@@ -1326,73 +1514,95 @@ public double getBaseScore() {
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10; + * * @return The confidentialityImpact. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.Impact getConfidentialityImpact() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.Cvssv3.Impact getConfidentialityImpact() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.Impact result = com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(confidentialityImpact_); + com.google.cloud.securitycenter.v1.Cvssv3.Impact result = + com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(confidentialityImpact_); return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.Impact.UNRECOGNIZED : result; } public static final int INTEGRITY_IMPACT_FIELD_NUMBER = 11; private int integrityImpact_; /** + * + * *
    * This metric measures the impact to integrity of a successfully exploited
    * vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11; + * * @return The enum numeric value on the wire for integrityImpact. */ - @java.lang.Override public int getIntegrityImpactValue() { + @java.lang.Override + public int getIntegrityImpactValue() { return integrityImpact_; } /** + * + * *
    * This metric measures the impact to integrity of a successfully exploited
    * vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11; + * * @return The integrityImpact. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.Impact getIntegrityImpact() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.Cvssv3.Impact getIntegrityImpact() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.Impact result = com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(integrityImpact_); + com.google.cloud.securitycenter.v1.Cvssv3.Impact result = + com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(integrityImpact_); return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.Impact.UNRECOGNIZED : result; } public static final int AVAILABILITY_IMPACT_FIELD_NUMBER = 12; private int availabilityImpact_; /** + * + * *
    * This metric measures the impact to the availability of the impacted
    * component resulting from a successfully exploited vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact availability_impact = 12; + * * @return The enum numeric value on the wire for availabilityImpact. */ - @java.lang.Override public int getAvailabilityImpactValue() { + @java.lang.Override + public int getAvailabilityImpactValue() { return availabilityImpact_; } /** + * + * *
    * This metric measures the impact to the availability of the impacted
    * component resulting from a successfully exploited vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact availability_impact = 12; + * * @return The availabilityImpact. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.Impact getAvailabilityImpact() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.Cvssv3.Impact getAvailabilityImpact() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.Impact result = com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(availabilityImpact_); + com.google.cloud.securitycenter.v1.Cvssv3.Impact result = + com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(availabilityImpact_); return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.Impact.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1404,33 +1614,44 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Double.doubleToRawLongBits(baseScore_) != 0) { output.writeDouble(1, baseScore_); } - if (attackVector_ != com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.ATTACK_VECTOR_UNSPECIFIED.getNumber()) { + if (attackVector_ + != com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.ATTACK_VECTOR_UNSPECIFIED + .getNumber()) { output.writeEnum(5, attackVector_); } - if (attackComplexity_ != com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.ATTACK_COMPLEXITY_UNSPECIFIED.getNumber()) { + if (attackComplexity_ + != com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.ATTACK_COMPLEXITY_UNSPECIFIED + .getNumber()) { output.writeEnum(6, attackComplexity_); } - if (privilegesRequired_ != com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired.PRIVILEGES_REQUIRED_UNSPECIFIED.getNumber()) { + if (privilegesRequired_ + != com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired + .PRIVILEGES_REQUIRED_UNSPECIFIED + .getNumber()) { output.writeEnum(7, privilegesRequired_); } - if (userInteraction_ != com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.USER_INTERACTION_UNSPECIFIED.getNumber()) { + if (userInteraction_ + != com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.USER_INTERACTION_UNSPECIFIED + .getNumber()) { output.writeEnum(8, userInteraction_); } if (scope_ != com.google.cloud.securitycenter.v1.Cvssv3.Scope.SCOPE_UNSPECIFIED.getNumber()) { output.writeEnum(9, scope_); } - if (confidentialityImpact_ != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { + if (confidentialityImpact_ + != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { output.writeEnum(10, confidentialityImpact_); } - if (integrityImpact_ != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { + if (integrityImpact_ + != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { output.writeEnum(11, integrityImpact_); } - if (availabilityImpact_ != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { + if (availabilityImpact_ + != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { output.writeEnum(12, availabilityImpact_); } unknownFields.writeTo(output); @@ -1443,40 +1664,43 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(baseScore_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, baseScore_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, baseScore_); } - if (attackVector_ != com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.ATTACK_VECTOR_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, attackVector_); + if (attackVector_ + != com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.ATTACK_VECTOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, attackVector_); } - if (attackComplexity_ != com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.ATTACK_COMPLEXITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, attackComplexity_); + if (attackComplexity_ + != com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.ATTACK_COMPLEXITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, attackComplexity_); } - if (privilegesRequired_ != com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired.PRIVILEGES_REQUIRED_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, privilegesRequired_); + if (privilegesRequired_ + != com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired + .PRIVILEGES_REQUIRED_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, privilegesRequired_); } - if (userInteraction_ != com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.USER_INTERACTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, userInteraction_); + if (userInteraction_ + != com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.USER_INTERACTION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, userInteraction_); } if (scope_ != com.google.cloud.securitycenter.v1.Cvssv3.Scope.SCOPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, scope_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, scope_); } - if (confidentialityImpact_ != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, confidentialityImpact_); + if (confidentialityImpact_ + != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, confidentialityImpact_); } - if (integrityImpact_ != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, integrityImpact_); + if (integrityImpact_ + != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, integrityImpact_); } - if (availabilityImpact_ != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, availabilityImpact_); + if (availabilityImpact_ + != com.google.cloud.securitycenter.v1.Cvssv3.Impact.IMPACT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, availabilityImpact_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1486,16 +1710,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Cvssv3)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Cvssv3 other = (com.google.cloud.securitycenter.v1.Cvssv3) obj; + com.google.cloud.securitycenter.v1.Cvssv3 other = + (com.google.cloud.securitycenter.v1.Cvssv3) obj; if (java.lang.Double.doubleToLongBits(getBaseScore()) - != java.lang.Double.doubleToLongBits( - other.getBaseScore())) return false; + != java.lang.Double.doubleToLongBits(other.getBaseScore())) return false; if (attackVector_ != other.attackVector_) return false; if (attackComplexity_ != other.attackComplexity_) return false; if (privilegesRequired_ != other.privilegesRequired_) return false; @@ -1516,8 +1740,10 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BASE_SCORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getBaseScore())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getBaseScore())); hash = (37 * hash) + ATTACK_VECTOR_FIELD_NUMBER; hash = (53 * hash) + attackVector_; hash = (37 * hash) + ATTACK_COMPLEXITY_FIELD_NUMBER; @@ -1539,118 +1765,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Cvssv3 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.Cvssv3 parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Cvssv3 parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Cvssv3 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.Cvssv3 prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Common Vulnerability Scoring System version 3.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Cvssv3} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Cvssv3) com.google.cloud.securitycenter.v1.Cvssv3OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.VulnerabilityProto + .internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Cvssv3_fieldAccessorTable + return com.google.cloud.securitycenter.v1.VulnerabilityProto + .internal_static_google_cloud_securitycenter_v1_Cvssv3_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Cvssv3.class, com.google.cloud.securitycenter.v1.Cvssv3.Builder.class); + com.google.cloud.securitycenter.v1.Cvssv3.class, + com.google.cloud.securitycenter.v1.Cvssv3.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.Cvssv3.newBuilder() @@ -1658,16 +1893,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1693,9 +1927,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.VulnerabilityProto + .internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor; } @java.lang.Override @@ -1714,7 +1948,8 @@ public com.google.cloud.securitycenter.v1.Cvssv3 build() { @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3 buildPartial() { - com.google.cloud.securitycenter.v1.Cvssv3 result = new com.google.cloud.securitycenter.v1.Cvssv3(this); + com.google.cloud.securitycenter.v1.Cvssv3 result = + new com.google.cloud.securitycenter.v1.Cvssv3(this); result.baseScore_ = baseScore_; result.attackVector_ = attackVector_; result.attackComplexity_ = attackComplexity_; @@ -1732,38 +1967,39 @@ public com.google.cloud.securitycenter.v1.Cvssv3 buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.Cvssv3) { - return mergeFrom((com.google.cloud.securitycenter.v1.Cvssv3)other); + return mergeFrom((com.google.cloud.securitycenter.v1.Cvssv3) other); } else { super.mergeFrom(other); return this; @@ -1828,13 +2064,16 @@ public Builder mergeFrom( return this; } - private double baseScore_ ; + private double baseScore_; /** + * + * *
      * The base score is a function of the base metric scores.
      * 
* * double base_score = 1; + * * @return The baseScore. */ @java.lang.Override @@ -1842,30 +2081,36 @@ public double getBaseScore() { return baseScore_; } /** + * + * *
      * The base score is a function of the base metric scores.
      * 
* * double base_score = 1; + * * @param value The baseScore to set. * @return This builder for chaining. */ public Builder setBaseScore(double value) { - + baseScore_ = value; onChanged(); return this; } /** + * + * *
      * The base score is a function of the base metric scores.
      * 
* * double base_score = 1; + * * @return This builder for chaining. */ public Builder clearBaseScore() { - + baseScore_ = 0D; onChanged(); return this; @@ -1873,6 +2118,8 @@ public Builder clearBaseScore() { private int attackVector_ = 0; /** + * + * *
      * Base Metrics
      * Represents the intrinsic characteristics of a vulnerability that are
@@ -1882,12 +2129,16 @@ public Builder clearBaseScore() {
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5; + * * @return The enum numeric value on the wire for attackVector. */ - @java.lang.Override public int getAttackVectorValue() { + @java.lang.Override + public int getAttackVectorValue() { return attackVector_; } /** + * + * *
      * Base Metrics
      * Represents the intrinsic characteristics of a vulnerability that are
@@ -1897,16 +2148,19 @@ public Builder clearBaseScore() {
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5; + * * @param value The enum numeric value on the wire for attackVector to set. * @return This builder for chaining. */ public Builder setAttackVectorValue(int value) { - + attackVector_ = value; onChanged(); return this; } /** + * + * *
      * Base Metrics
      * Represents the intrinsic characteristics of a vulnerability that are
@@ -1916,15 +2170,21 @@ public Builder setAttackVectorValue(int value) {
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5; + * * @return The attackVector. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.AttackVector getAttackVector() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.AttackVector result = com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.valueOf(attackVector_); - return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.Cvssv3.AttackVector result = + com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.valueOf(attackVector_); + return result == null + ? com.google.cloud.securitycenter.v1.Cvssv3.AttackVector.UNRECOGNIZED + : result; } /** + * + * *
      * Base Metrics
      * Represents the intrinsic characteristics of a vulnerability that are
@@ -1934,6 +2194,7 @@ public com.google.cloud.securitycenter.v1.Cvssv3.AttackVector getAttackVector()
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5; + * * @param value The attackVector to set. * @return This builder for chaining. */ @@ -1941,12 +2202,14 @@ public Builder setAttackVector(com.google.cloud.securitycenter.v1.Cvssv3.AttackV if (value == null) { throw new NullPointerException(); } - + attackVector_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Base Metrics
      * Represents the intrinsic characteristics of a vulnerability that are
@@ -1956,10 +2219,11 @@ public Builder setAttackVector(com.google.cloud.securitycenter.v1.Cvssv3.AttackV
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5; + * * @return This builder for chaining. */ public Builder clearAttackVector() { - + attackVector_ = 0; onChanged(); return this; @@ -1967,78 +2231,98 @@ public Builder clearAttackVector() { private int attackComplexity_ = 0; /** + * + * *
      * This metric describes the conditions beyond the attacker's control that
      * must exist in order to exploit the vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6; + * * @return The enum numeric value on the wire for attackComplexity. */ - @java.lang.Override public int getAttackComplexityValue() { + @java.lang.Override + public int getAttackComplexityValue() { return attackComplexity_; } /** + * + * *
      * This metric describes the conditions beyond the attacker's control that
      * must exist in order to exploit the vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6; + * * @param value The enum numeric value on the wire for attackComplexity to set. * @return This builder for chaining. */ public Builder setAttackComplexityValue(int value) { - + attackComplexity_ = value; onChanged(); return this; } /** + * + * *
      * This metric describes the conditions beyond the attacker's control that
      * must exist in order to exploit the vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6; + * * @return The attackComplexity. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity getAttackComplexity() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity result = com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.valueOf(attackComplexity_); - return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity result = + com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.valueOf(attackComplexity_); + return result == null + ? com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity.UNRECOGNIZED + : result; } /** + * + * *
      * This metric describes the conditions beyond the attacker's control that
      * must exist in order to exploit the vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6; + * * @param value The attackComplexity to set. * @return This builder for chaining. */ - public Builder setAttackComplexity(com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity value) { + public Builder setAttackComplexity( + com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity value) { if (value == null) { throw new NullPointerException(); } - + attackComplexity_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * This metric describes the conditions beyond the attacker's control that
      * must exist in order to exploit the vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6; + * * @return This builder for chaining. */ public Builder clearAttackComplexity() { - + attackComplexity_ = 0; onChanged(); return this; @@ -2046,78 +2330,103 @@ public Builder clearAttackComplexity() { private int privilegesRequired_ = 0; /** + * + * *
      * This metric describes the level of privileges an attacker must possess
      * before successfully exploiting the vulnerability.
      * 
* - * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; + * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; + * + * * @return The enum numeric value on the wire for privilegesRequired. */ - @java.lang.Override public int getPrivilegesRequiredValue() { + @java.lang.Override + public int getPrivilegesRequiredValue() { return privilegesRequired_; } /** + * + * *
      * This metric describes the level of privileges an attacker must possess
      * before successfully exploiting the vulnerability.
      * 
* - * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; + * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; + * + * * @param value The enum numeric value on the wire for privilegesRequired to set. * @return This builder for chaining. */ public Builder setPrivilegesRequiredValue(int value) { - + privilegesRequired_ = value; onChanged(); return this; } /** + * + * *
      * This metric describes the level of privileges an attacker must possess
      * before successfully exploiting the vulnerability.
      * 
* - * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; + * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; + * + * * @return The privilegesRequired. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired getPrivilegesRequired() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired result = com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired.valueOf(privilegesRequired_); - return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired result = + com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired.valueOf(privilegesRequired_); + return result == null + ? com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired.UNRECOGNIZED + : result; } /** + * + * *
      * This metric describes the level of privileges an attacker must possess
      * before successfully exploiting the vulnerability.
      * 
* - * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; + * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; + * + * * @param value The privilegesRequired to set. * @return This builder for chaining. */ - public Builder setPrivilegesRequired(com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired value) { + public Builder setPrivilegesRequired( + com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired value) { if (value == null) { throw new NullPointerException(); } - + privilegesRequired_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * This metric describes the level of privileges an attacker must possess
      * before successfully exploiting the vulnerability.
      * 
* - * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; + * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; + * + * * @return This builder for chaining. */ public Builder clearPrivilegesRequired() { - + privilegesRequired_ = 0; onChanged(); return this; @@ -2125,6 +2434,8 @@ public Builder clearPrivilegesRequired() { private int userInteraction_ = 0; /** + * + * *
      * This metric captures the requirement for a human user, other than the
      * attacker, to participate in the successful compromise of the vulnerable
@@ -2132,12 +2443,16 @@ public Builder clearPrivilegesRequired() {
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8; + * * @return The enum numeric value on the wire for userInteraction. */ - @java.lang.Override public int getUserInteractionValue() { + @java.lang.Override + public int getUserInteractionValue() { return userInteraction_; } /** + * + * *
      * This metric captures the requirement for a human user, other than the
      * attacker, to participate in the successful compromise of the vulnerable
@@ -2145,16 +2460,19 @@ public Builder clearPrivilegesRequired() {
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8; + * * @param value The enum numeric value on the wire for userInteraction to set. * @return This builder for chaining. */ public Builder setUserInteractionValue(int value) { - + userInteraction_ = value; onChanged(); return this; } /** + * + * *
      * This metric captures the requirement for a human user, other than the
      * attacker, to participate in the successful compromise of the vulnerable
@@ -2162,15 +2480,21 @@ public Builder setUserInteractionValue(int value) {
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8; + * * @return The userInteraction. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction getUserInteraction() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction result = com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.valueOf(userInteraction_); - return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction result = + com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.valueOf(userInteraction_); + return result == null + ? com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction.UNRECOGNIZED + : result; } /** + * + * *
      * This metric captures the requirement for a human user, other than the
      * attacker, to participate in the successful compromise of the vulnerable
@@ -2178,19 +2502,23 @@ public com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction getUserInteract
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8; + * * @param value The userInteraction to set. * @return This builder for chaining. */ - public Builder setUserInteraction(com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction value) { + public Builder setUserInteraction( + com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction value) { if (value == null) { throw new NullPointerException(); } - + userInteraction_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * This metric captures the requirement for a human user, other than the
      * attacker, to participate in the successful compromise of the vulnerable
@@ -2198,10 +2526,11 @@ public Builder setUserInteraction(com.google.cloud.securitycenter.v1.Cvssv3.User
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8; + * * @return This builder for chaining. */ public Builder clearUserInteraction() { - + userInteraction_ = 0; onChanged(); return this; @@ -2209,55 +2538,69 @@ public Builder clearUserInteraction() { private int scope_ = 0; /** + * + * *
      * The Scope metric captures whether a vulnerability in one vulnerable
      * component impacts resources in components beyond its security scope.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9; + * * @return The enum numeric value on the wire for scope. */ - @java.lang.Override public int getScopeValue() { + @java.lang.Override + public int getScopeValue() { return scope_; } /** + * + * *
      * The Scope metric captures whether a vulnerability in one vulnerable
      * component impacts resources in components beyond its security scope.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9; + * * @param value The enum numeric value on the wire for scope to set. * @return This builder for chaining. */ public Builder setScopeValue(int value) { - + scope_ = value; onChanged(); return this; } /** + * + * *
      * The Scope metric captures whether a vulnerability in one vulnerable
      * component impacts resources in components beyond its security scope.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9; + * * @return The scope. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.Scope getScope() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.Scope result = com.google.cloud.securitycenter.v1.Cvssv3.Scope.valueOf(scope_); + com.google.cloud.securitycenter.v1.Cvssv3.Scope result = + com.google.cloud.securitycenter.v1.Cvssv3.Scope.valueOf(scope_); return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.Scope.UNRECOGNIZED : result; } /** + * + * *
      * The Scope metric captures whether a vulnerability in one vulnerable
      * component impacts resources in components beyond its security scope.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9; + * * @param value The scope to set. * @return This builder for chaining. */ @@ -2265,22 +2608,25 @@ public Builder setScope(com.google.cloud.securitycenter.v1.Cvssv3.Scope value) { if (value == null) { throw new NullPointerException(); } - + scope_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The Scope metric captures whether a vulnerability in one vulnerable
      * component impacts resources in components beyond its security scope.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9; + * * @return This builder for chaining. */ public Builder clearScope() { - + scope_ = 0; onChanged(); return this; @@ -2288,6 +2634,8 @@ public Builder clearScope() { private int confidentialityImpact_ = 0; /** + * + * *
      * This metric measures the impact to the confidentiality of the information
      * resources managed by a software component due to a successfully exploited
@@ -2295,12 +2643,16 @@ public Builder clearScope() {
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10; + * * @return The enum numeric value on the wire for confidentialityImpact. */ - @java.lang.Override public int getConfidentialityImpactValue() { + @java.lang.Override + public int getConfidentialityImpactValue() { return confidentialityImpact_; } /** + * + * *
      * This metric measures the impact to the confidentiality of the information
      * resources managed by a software component due to a successfully exploited
@@ -2308,16 +2660,19 @@ public Builder clearScope() {
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10; + * * @param value The enum numeric value on the wire for confidentialityImpact to set. * @return This builder for chaining. */ public Builder setConfidentialityImpactValue(int value) { - + confidentialityImpact_ = value; onChanged(); return this; } /** + * + * *
      * This metric measures the impact to the confidentiality of the information
      * resources managed by a software component due to a successfully exploited
@@ -2325,15 +2680,21 @@ public Builder setConfidentialityImpactValue(int value) {
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10; + * * @return The confidentialityImpact. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.Impact getConfidentialityImpact() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.Impact result = com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(confidentialityImpact_); - return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.Impact.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.Cvssv3.Impact result = + com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(confidentialityImpact_); + return result == null + ? com.google.cloud.securitycenter.v1.Cvssv3.Impact.UNRECOGNIZED + : result; } /** + * + * *
      * This metric measures the impact to the confidentiality of the information
      * resources managed by a software component due to a successfully exploited
@@ -2341,19 +2702,23 @@ public com.google.cloud.securitycenter.v1.Cvssv3.Impact getConfidentialityImpact
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10; + * * @param value The confidentialityImpact to set. * @return This builder for chaining. */ - public Builder setConfidentialityImpact(com.google.cloud.securitycenter.v1.Cvssv3.Impact value) { + public Builder setConfidentialityImpact( + com.google.cloud.securitycenter.v1.Cvssv3.Impact value) { if (value == null) { throw new NullPointerException(); } - + confidentialityImpact_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * This metric measures the impact to the confidentiality of the information
      * resources managed by a software component due to a successfully exploited
@@ -2361,10 +2726,11 @@ public Builder setConfidentialityImpact(com.google.cloud.securitycenter.v1.Cvssv
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10; + * * @return This builder for chaining. */ public Builder clearConfidentialityImpact() { - + confidentialityImpact_ = 0; onChanged(); return this; @@ -2372,55 +2738,71 @@ public Builder clearConfidentialityImpact() { private int integrityImpact_ = 0; /** + * + * *
      * This metric measures the impact to integrity of a successfully exploited
      * vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11; + * * @return The enum numeric value on the wire for integrityImpact. */ - @java.lang.Override public int getIntegrityImpactValue() { + @java.lang.Override + public int getIntegrityImpactValue() { return integrityImpact_; } /** + * + * *
      * This metric measures the impact to integrity of a successfully exploited
      * vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11; + * * @param value The enum numeric value on the wire for integrityImpact to set. * @return This builder for chaining. */ public Builder setIntegrityImpactValue(int value) { - + integrityImpact_ = value; onChanged(); return this; } /** + * + * *
      * This metric measures the impact to integrity of a successfully exploited
      * vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11; + * * @return The integrityImpact. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.Impact getIntegrityImpact() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.Impact result = com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(integrityImpact_); - return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.Impact.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.Cvssv3.Impact result = + com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(integrityImpact_); + return result == null + ? com.google.cloud.securitycenter.v1.Cvssv3.Impact.UNRECOGNIZED + : result; } /** + * + * *
      * This metric measures the impact to integrity of a successfully exploited
      * vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11; + * * @param value The integrityImpact to set. * @return This builder for chaining. */ @@ -2428,22 +2810,25 @@ public Builder setIntegrityImpact(com.google.cloud.securitycenter.v1.Cvssv3.Impa if (value == null) { throw new NullPointerException(); } - + integrityImpact_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * This metric measures the impact to integrity of a successfully exploited
      * vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11; + * * @return This builder for chaining. */ public Builder clearIntegrityImpact() { - + integrityImpact_ = 0; onChanged(); return this; @@ -2451,55 +2836,71 @@ public Builder clearIntegrityImpact() { private int availabilityImpact_ = 0; /** + * + * *
      * This metric measures the impact to the availability of the impacted
      * component resulting from a successfully exploited vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact availability_impact = 12; + * * @return The enum numeric value on the wire for availabilityImpact. */ - @java.lang.Override public int getAvailabilityImpactValue() { + @java.lang.Override + public int getAvailabilityImpactValue() { return availabilityImpact_; } /** + * + * *
      * This metric measures the impact to the availability of the impacted
      * component resulting from a successfully exploited vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact availability_impact = 12; + * * @param value The enum numeric value on the wire for availabilityImpact to set. * @return This builder for chaining. */ public Builder setAvailabilityImpactValue(int value) { - + availabilityImpact_ = value; onChanged(); return this; } /** + * + * *
      * This metric measures the impact to the availability of the impacted
      * component resulting from a successfully exploited vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact availability_impact = 12; + * * @return The availabilityImpact. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Cvssv3.Impact getAvailabilityImpact() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Cvssv3.Impact result = com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(availabilityImpact_); - return result == null ? com.google.cloud.securitycenter.v1.Cvssv3.Impact.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.Cvssv3.Impact result = + com.google.cloud.securitycenter.v1.Cvssv3.Impact.valueOf(availabilityImpact_); + return result == null + ? com.google.cloud.securitycenter.v1.Cvssv3.Impact.UNRECOGNIZED + : result; } /** + * + * *
      * This metric measures the impact to the availability of the impacted
      * component resulting from a successfully exploited vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact availability_impact = 12; + * * @param value The availabilityImpact to set. * @return This builder for chaining. */ @@ -2507,29 +2908,32 @@ public Builder setAvailabilityImpact(com.google.cloud.securitycenter.v1.Cvssv3.I if (value == null) { throw new NullPointerException(); } - + availabilityImpact_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * This metric measures the impact to the availability of the impacted
      * component resulting from a successfully exploited vulnerability.
      * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact availability_impact = 12; + * * @return This builder for chaining. */ public Builder clearAvailabilityImpact() { - + availabilityImpact_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2539,12 +2943,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Cvssv3) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Cvssv3) private static final com.google.cloud.securitycenter.v1.Cvssv3 DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Cvssv3(); } @@ -2553,16 +2957,16 @@ public static com.google.cloud.securitycenter.v1.Cvssv3 getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Cvssv3 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Cvssv3(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Cvssv3 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Cvssv3(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2577,6 +2981,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Cvssv3 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3OrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3OrBuilder.java similarity index 88% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3OrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3OrBuilder.java index 2f70ec964..057b0e685 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3OrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Cvssv3OrBuilder.java @@ -1,23 +1,44 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/vulnerability.proto package com.google.cloud.securitycenter.v1; -public interface Cvssv3OrBuilder extends +public interface Cvssv3OrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Cvssv3) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The base score is a function of the base metric scores.
    * 
* * double base_score = 1; + * * @return The baseScore. */ double getBaseScore(); /** + * + * *
    * Base Metrics
    * Represents the intrinsic characteristics of a vulnerability that are
@@ -27,10 +48,13 @@ public interface Cvssv3OrBuilder extends
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5; + * * @return The enum numeric value on the wire for attackVector. */ int getAttackVectorValue(); /** + * + * *
    * Base Metrics
    * Represents the intrinsic characteristics of a vulnerability that are
@@ -40,53 +64,68 @@ public interface Cvssv3OrBuilder extends
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackVector attack_vector = 5; + * * @return The attackVector. */ com.google.cloud.securitycenter.v1.Cvssv3.AttackVector getAttackVector(); /** + * + * *
    * This metric describes the conditions beyond the attacker's control that
    * must exist in order to exploit the vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6; + * * @return The enum numeric value on the wire for attackComplexity. */ int getAttackComplexityValue(); /** + * + * *
    * This metric describes the conditions beyond the attacker's control that
    * must exist in order to exploit the vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.AttackComplexity attack_complexity = 6; + * * @return The attackComplexity. */ com.google.cloud.securitycenter.v1.Cvssv3.AttackComplexity getAttackComplexity(); /** + * + * *
    * This metric describes the level of privileges an attacker must possess
    * before successfully exploiting the vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; + * * @return The enum numeric value on the wire for privilegesRequired. */ int getPrivilegesRequiredValue(); /** + * + * *
    * This metric describes the level of privileges an attacker must possess
    * before successfully exploiting the vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired privileges_required = 7; + * * @return The privilegesRequired. */ com.google.cloud.securitycenter.v1.Cvssv3.PrivilegesRequired getPrivilegesRequired(); /** + * + * *
    * This metric captures the requirement for a human user, other than the
    * attacker, to participate in the successful compromise of the vulnerable
@@ -94,10 +133,13 @@ public interface Cvssv3OrBuilder extends
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8; + * * @return The enum numeric value on the wire for userInteraction. */ int getUserInteractionValue(); /** + * + * *
    * This metric captures the requirement for a human user, other than the
    * attacker, to participate in the successful compromise of the vulnerable
@@ -105,32 +147,41 @@ public interface Cvssv3OrBuilder extends
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.UserInteraction user_interaction = 8; + * * @return The userInteraction. */ com.google.cloud.securitycenter.v1.Cvssv3.UserInteraction getUserInteraction(); /** + * + * *
    * The Scope metric captures whether a vulnerability in one vulnerable
    * component impacts resources in components beyond its security scope.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9; + * * @return The enum numeric value on the wire for scope. */ int getScopeValue(); /** + * + * *
    * The Scope metric captures whether a vulnerability in one vulnerable
    * component impacts resources in components beyond its security scope.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Scope scope = 9; + * * @return The scope. */ com.google.cloud.securitycenter.v1.Cvssv3.Scope getScope(); /** + * + * *
    * This metric measures the impact to the confidentiality of the information
    * resources managed by a software component due to a successfully exploited
@@ -138,10 +189,13 @@ public interface Cvssv3OrBuilder extends
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10; + * * @return The enum numeric value on the wire for confidentialityImpact. */ int getConfidentialityImpactValue(); /** + * + * *
    * This metric measures the impact to the confidentiality of the information
    * resources managed by a software component due to a successfully exploited
@@ -149,48 +203,61 @@ public interface Cvssv3OrBuilder extends
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact confidentiality_impact = 10; + * * @return The confidentialityImpact. */ com.google.cloud.securitycenter.v1.Cvssv3.Impact getConfidentialityImpact(); /** + * + * *
    * This metric measures the impact to integrity of a successfully exploited
    * vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11; + * * @return The enum numeric value on the wire for integrityImpact. */ int getIntegrityImpactValue(); /** + * + * *
    * This metric measures the impact to integrity of a successfully exploited
    * vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact integrity_impact = 11; + * * @return The integrityImpact. */ com.google.cloud.securitycenter.v1.Cvssv3.Impact getIntegrityImpact(); /** + * + * *
    * This metric measures the impact to the availability of the impacted
    * component resulting from a successfully exploited vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact availability_impact = 12; + * * @return The enum numeric value on the wire for availabilityImpact. */ int getAvailabilityImpactValue(); /** + * + * *
    * This metric measures the impact to the availability of the impacted
    * component resulting from a successfully exploited vulnerability.
    * 
* * .google.cloud.securitycenter.v1.Cvssv3.Impact availability_impact = 12; + * * @return The availabilityImpact. */ com.google.cloud.securitycenter.v1.Cvssv3.Impact getAvailabilityImpact(); diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequest.java index 3f16b9ad4..e2d85ccf1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for deleting a big query export.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.DeleteBigQueryExportRequest} */ -public final class DeleteBigQueryExportRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteBigQueryExportRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) DeleteBigQueryExportRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteBigQueryExportRequest.newBuilder() to construct. private DeleteBigQueryExportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteBigQueryExportRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteBigQueryExportRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteBigQueryExportRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteBigQueryExportRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private DeleteBigQueryExportRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.class, com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.Builder.class); + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.class, + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the big query export to delete. Its format is
    * organizations/{organization}/bigQueryExports/{export_id},
@@ -103,7 +125,10 @@ private DeleteBigQueryExportRequest(
    * projects/{project}/bigQueryExports/{export_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -112,14 +137,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the big query export to delete. Its format is
    * organizations/{organization}/bigQueryExports/{export_id},
@@ -127,17 +153,18 @@ public java.lang.String getName() {
    * projects/{project}/bigQueryExports/{export_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -146,6 +173,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,8 +185,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -182,15 +209,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest other = (com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) obj; + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest other = + (com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -210,117 +237,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for deleting a big query export.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.DeleteBigQueryExportRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.class, com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.Builder.class); + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.class, + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.newBuilder() @@ -328,16 +365,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -347,13 +383,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.getDefaultInstance(); } @@ -368,7 +405,8 @@ public com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest buildPartial() { - com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest result = new com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest(this); + com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest result = + new com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest(this); result.name_ = name_; onBuilt(); return result; @@ -378,38 +416,39 @@ public com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) other); } else { super.mergeFrom(other); return this; @@ -417,7 +456,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest other) { - if (other == com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -441,7 +482,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -453,6 +496,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the big query export to delete. Its format is
      * organizations/{organization}/bigQueryExports/{export_id},
@@ -460,14 +505,16 @@ public Builder mergeFrom(
      * projects/{project}/bigQueryExports/{export_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -476,6 +523,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the big query export to delete. Its format is
      * organizations/{organization}/bigQueryExports/{export_id},
@@ -483,16 +532,17 @@ public java.lang.String getName() {
      * projects/{project}/bigQueryExports/{export_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -500,6 +550,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the big query export to delete. Its format is
      * organizations/{organization}/bigQueryExports/{export_id},
@@ -507,21 +559,25 @@ public java.lang.String getName() {
      * projects/{project}/bigQueryExports/{export_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the big query export to delete. Its format is
      * organizations/{organization}/bigQueryExports/{export_id},
@@ -529,16 +585,21 @@ public Builder setName(
      * projects/{project}/bigQueryExports/{export_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the big query export to delete. Its format is
      * organizations/{organization}/bigQueryExports/{export_id},
@@ -546,24 +607,26 @@ public Builder clearName() {
      * projects/{project}/bigQueryExports/{export_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -573,30 +636,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) - private static final com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest(); } - public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBigQueryExportRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteBigQueryExportRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBigQueryExportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteBigQueryExportRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -608,9 +673,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequestOrBuilder.java new file mode 100644 index 000000000..8f4cd840d --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteBigQueryExportRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface DeleteBigQueryExportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.DeleteBigQueryExportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the big query export to delete. Its format is
+   * organizations/{organization}/bigQueryExports/{export_id},
+   * folders/{folder}/bigQueryExports/{export_id}, or
+   * projects/{project}/bigQueryExports/{export_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the big query export to delete. Its format is
+   * organizations/{organization}/bigQueryExports/{export_id},
+   * folders/{folder}/bigQueryExports/{export_id}, or
+   * projects/{project}/bigQueryExports/{export_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequest.java index 29b3c12f0..710e89a2b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for deleting a mute config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.DeleteMuteConfigRequest} */ -public final class DeleteMuteConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteMuteConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.DeleteMuteConfigRequest) DeleteMuteConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteMuteConfigRequest.newBuilder() to construct. private DeleteMuteConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteMuteConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteMuteConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteMuteConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteMuteConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private DeleteMuteConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.class, com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.class, + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the mute config to delete. Its format is
    * organizations/{organization}/muteConfigs/{config_id},
@@ -103,7 +125,10 @@ private DeleteMuteConfigRequest(
    * projects/{project}/muteConfigs/{config_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -112,14 +137,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the mute config to delete. Its format is
    * organizations/{organization}/muteConfigs/{config_id},
@@ -127,17 +153,18 @@ public java.lang.String getName() {
    * projects/{project}/muteConfigs/{config_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -146,6 +173,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,8 +185,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -182,15 +209,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest other = (com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest) obj; + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest other = + (com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -210,117 +237,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for deleting a mute config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.DeleteMuteConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.DeleteMuteConfigRequest) com.google.cloud.securitycenter.v1.DeleteMuteConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.class, com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.class, + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.newBuilder() @@ -328,16 +365,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -347,9 +383,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor; } @java.lang.Override @@ -368,7 +404,8 @@ public com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest result = new com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest(this); + com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest result = + new com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -378,38 +415,39 @@ public com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -417,7 +455,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest other) { - if (other == com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -441,7 +480,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -453,6 +493,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the mute config to delete. Its format is
      * organizations/{organization}/muteConfigs/{config_id},
@@ -460,14 +502,16 @@ public Builder mergeFrom(
      * projects/{project}/muteConfigs/{config_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -476,6 +520,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the mute config to delete. Its format is
      * organizations/{organization}/muteConfigs/{config_id},
@@ -483,16 +529,17 @@ public java.lang.String getName() {
      * projects/{project}/muteConfigs/{config_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -500,6 +547,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the mute config to delete. Its format is
      * organizations/{organization}/muteConfigs/{config_id},
@@ -507,21 +556,25 @@ public java.lang.String getName() {
      * projects/{project}/muteConfigs/{config_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the mute config to delete. Its format is
      * organizations/{organization}/muteConfigs/{config_id},
@@ -529,16 +582,21 @@ public Builder setName(
      * projects/{project}/muteConfigs/{config_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the mute config to delete. Its format is
      * organizations/{organization}/muteConfigs/{config_id},
@@ -546,24 +604,26 @@ public Builder clearName() {
      * projects/{project}/muteConfigs/{config_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -573,12 +633,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.DeleteMuteConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.DeleteMuteConfigRequest) private static final com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest(); } @@ -587,16 +647,16 @@ public static com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteMuteConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteMuteConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMuteConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteMuteConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -611,6 +671,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequestOrBuilder.java new file mode 100644 index 000000000..488c64d4a --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteMuteConfigRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface DeleteMuteConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.DeleteMuteConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the mute config to delete. Its format is
+   * organizations/{organization}/muteConfigs/{config_id},
+   * folders/{folder}/muteConfigs/{config_id}, or
+   * projects/{project}/muteConfigs/{config_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the mute config to delete. Its format is
+   * organizations/{organization}/muteConfigs/{config_id},
+   * folders/{folder}/muteConfigs/{config_id}, or
+   * projects/{project}/muteConfigs/{config_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java index 7e2dda533..a660730d1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequest.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for deleting a notification config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.DeleteNotificationConfigRequest} */ -public final class DeleteNotificationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) DeleteNotificationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteNotificationConfigRequest.newBuilder() to construct. - private DeleteNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteNotificationConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteNotificationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteNotificationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteNotificationConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +71,20 @@ private DeleteNotificationConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +92,42 @@ private DeleteNotificationConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.class, com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.class, + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the notification config to delete. Its format is
    * "organizations/[organization_id]/notificationConfigs/[config_id]".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +136,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the notification config to delete. Its format is
    * "organizations/[organization_id]/notificationConfigs/[config_id]".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +170,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +182,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +206,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest other = (com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) obj; + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest other = + (com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,134 +234,145 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for deleting a notification config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.DeleteNotificationConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.class, com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.class, + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.Builder.class); } - // Construct using com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,14 +382,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.getDefaultInstance(); + public com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + .getDefaultInstance(); } @java.lang.Override @@ -364,7 +405,8 @@ public com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest build( @java.lang.Override public com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest result = new com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest(this); + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest result = + new com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +416,51 @@ public com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest)other); + return mergeFrom( + (com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest other) { - if (other == com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest other) { + if (other + == com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +484,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +498,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the notification config to delete. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +523,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the notification config to delete. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +548,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the notification config to delete. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the notification config to delete. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the notification config to delete. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +628,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) - private static final com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest(); } - public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteNotificationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteNotificationConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteNotificationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteNotificationConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +665,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequestOrBuilder.java new file mode 100644 index 000000000..eadbd4aa2 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteNotificationConfigRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface DeleteNotificationConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the notification config to delete. Its format is
+   * "organizations/[organization_id]/notificationConfigs/[config_id]".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the notification config to delete. Its format is
+   * "organizations/[organization_id]/notificationConfigs/[config_id]".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariable.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariable.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariable.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariable.java index dc2e89732..b9509f210 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariable.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariable.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/process.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * EnvironmentVariable is a name-value pair to store environment variables for
  * Process.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.EnvironmentVariable}
  */
-public final class EnvironmentVariable extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class EnvironmentVariable extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.EnvironmentVariable)
     EnvironmentVariableOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use EnvironmentVariable.newBuilder() to construct.
   private EnvironmentVariable(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private EnvironmentVariable() {
     name_ = "";
     val_ = "";
@@ -27,16 +45,15 @@ private EnvironmentVariable() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new EnvironmentVariable();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private EnvironmentVariable(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,25 +72,27 @@ private EnvironmentVariable(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            val_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              val_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,34 +100,39 @@ private EnvironmentVariable(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1.ProcessProto.internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1.ProcessProto
+        .internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.ProcessProto.internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.ProcessProto
+        .internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.EnvironmentVariable.class, com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder.class);
+            com.google.cloud.securitycenter.v1.EnvironmentVariable.class,
+            com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Environment variable name as a JSON encoded string.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -117,29 +141,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Environment variable name as a JSON encoded string.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -150,11 +174,14 @@ public java.lang.String getName() { public static final int VAL_FIELD_NUMBER = 2; private volatile java.lang.Object val_; /** + * + * *
    * Environment variable value as a JSON encoded string.
    * 
* * string val = 2; + * * @return The val. */ @java.lang.Override @@ -163,29 +190,29 @@ public java.lang.String getVal() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); val_ = s; return s; } } /** + * + * *
    * Environment variable value as a JSON encoded string.
    * 
* * string val = 2; + * * @return The bytes for val. */ @java.lang.Override - public com.google.protobuf.ByteString - getValBytes() { + public com.google.protobuf.ByteString getValBytes() { java.lang.Object ref = val_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); val_ = b; return b; } else { @@ -194,6 +221,7 @@ public java.lang.String getVal() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,8 +233,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -236,17 +263,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.EnvironmentVariable)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.EnvironmentVariable other = (com.google.cloud.securitycenter.v1.EnvironmentVariable) obj; + com.google.cloud.securitycenter.v1.EnvironmentVariable other = + (com.google.cloud.securitycenter.v1.EnvironmentVariable) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getVal() - .equals(other.getVal())) return false; + if (!getName().equals(other.getName())) return false; + if (!getVal().equals(other.getVal())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -268,96 +294,104 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.EnvironmentVariable parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.EnvironmentVariable prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.EnvironmentVariable prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * EnvironmentVariable is a name-value pair to store environment variables for
    * Process.
@@ -365,21 +399,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.EnvironmentVariable}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.EnvironmentVariable)
       com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.ProcessProto.internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.ProcessProto
+          .internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.ProcessProto.internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.ProcessProto
+          .internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.EnvironmentVariable.class, com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder.class);
+              com.google.cloud.securitycenter.v1.EnvironmentVariable.class,
+              com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.EnvironmentVariable.newBuilder()
@@ -387,16 +423,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -408,9 +443,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.ProcessProto.internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.ProcessProto
+          .internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor;
     }
 
     @java.lang.Override
@@ -429,7 +464,8 @@ public com.google.cloud.securitycenter.v1.EnvironmentVariable build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.EnvironmentVariable buildPartial() {
-      com.google.cloud.securitycenter.v1.EnvironmentVariable result = new com.google.cloud.securitycenter.v1.EnvironmentVariable(this);
+      com.google.cloud.securitycenter.v1.EnvironmentVariable result =
+          new com.google.cloud.securitycenter.v1.EnvironmentVariable(this);
       result.name_ = name_;
       result.val_ = val_;
       onBuilt();
@@ -440,38 +476,39 @@ public com.google.cloud.securitycenter.v1.EnvironmentVariable buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.EnvironmentVariable) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.EnvironmentVariable)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.EnvironmentVariable) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -479,7 +516,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1.EnvironmentVariable other) {
-      if (other == com.google.cloud.securitycenter.v1.EnvironmentVariable.getDefaultInstance()) return this;
+      if (other == com.google.cloud.securitycenter.v1.EnvironmentVariable.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -507,7 +545,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.securitycenter.v1.EnvironmentVariable) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.securitycenter.v1.EnvironmentVariable) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -519,18 +558,20 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Environment variable name as a JSON encoded string.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -539,20 +580,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Environment variable name as a JSON encoded string.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -560,54 +602,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Environment variable name as a JSON encoded string.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Environment variable name as a JSON encoded string.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Environment variable name as a JSON encoded string.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -615,18 +664,20 @@ public Builder setNameBytes( private java.lang.Object val_ = ""; /** + * + * *
      * Environment variable value as a JSON encoded string.
      * 
* * string val = 2; + * * @return The val. */ public java.lang.String getVal() { java.lang.Object ref = val_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); val_ = s; return s; @@ -635,20 +686,21 @@ public java.lang.String getVal() { } } /** + * + * *
      * Environment variable value as a JSON encoded string.
      * 
* * string val = 2; + * * @return The bytes for val. */ - public com.google.protobuf.ByteString - getValBytes() { + public com.google.protobuf.ByteString getValBytes() { java.lang.Object ref = val_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); val_ = b; return b; } else { @@ -656,61 +708,68 @@ public java.lang.String getVal() { } } /** + * + * *
      * Environment variable value as a JSON encoded string.
      * 
* * string val = 2; + * * @param value The val to set. * @return This builder for chaining. */ - public Builder setVal( - java.lang.String value) { + public Builder setVal(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + val_ = value; onChanged(); return this; } /** + * + * *
      * Environment variable value as a JSON encoded string.
      * 
* * string val = 2; + * * @return This builder for chaining. */ public Builder clearVal() { - + val_ = getDefaultInstance().getVal(); onChanged(); return this; } /** + * + * *
      * Environment variable value as a JSON encoded string.
      * 
* * string val = 2; + * * @param value The bytes for val to set. * @return This builder for chaining. */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { + public Builder setValBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + val_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -720,12 +779,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.EnvironmentVariable) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.EnvironmentVariable) private static final com.google.cloud.securitycenter.v1.EnvironmentVariable DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.EnvironmentVariable(); } @@ -734,16 +793,16 @@ public static com.google.cloud.securitycenter.v1.EnvironmentVariable getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnvironmentVariable parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnvironmentVariable(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnvironmentVariable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnvironmentVariable(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -758,6 +817,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.EnvironmentVariable getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariableOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariableOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariableOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariableOrBuilder.java index bcbbd3523..a041145cf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariableOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EnvironmentVariableOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/process.proto package com.google.cloud.securitycenter.v1; -public interface EnvironmentVariableOrBuilder extends +public interface EnvironmentVariableOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.EnvironmentVariable) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Environment variable name as a JSON encoded string.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Environment variable name as a JSON encoded string.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Environment variable value as a JSON encoded string.
    * 
* * string val = 2; + * * @return The val. */ java.lang.String getVal(); /** + * + * *
    * Environment variable value as a JSON encoded string.
    * 
* * string val = 2; + * * @return The bytes for val. */ - com.google.protobuf.ByteString - getValBytes(); + com.google.protobuf.ByteString getValBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResource.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResource.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResource.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResource.java index 840ff6c82..79365402d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResource.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResource.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/exfiltration.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Resource that has been exfiltrated or exfiltrated_to.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ExfilResource} */ -public final class ExfilResource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ExfilResource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ExfilResource) ExfilResourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExfilResource.newBuilder() to construct. private ExfilResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ExfilResource() { name_ = ""; components_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,16 +44,15 @@ private ExfilResource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExfilResource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExfilResource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,30 @@ private ExfilResource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - components_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + name_ = s; + break; } - components_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + components_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + components_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +103,7 @@ private ExfilResource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { components_ = components_.getUnmodifiableView(); @@ -94,27 +112,33 @@ private ExfilResource( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.ExfiltrationProto.internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.ExfiltrationProto + .internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ExfiltrationProto.internal_static_google_cloud_securitycenter_v1_ExfilResource_fieldAccessorTable + return com.google.cloud.securitycenter.v1.ExfiltrationProto + .internal_static_google_cloud_securitycenter_v1_ExfilResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ExfilResource.class, com.google.cloud.securitycenter.v1.ExfilResource.Builder.class); + com.google.cloud.securitycenter.v1.ExfilResource.class, + com.google.cloud.securitycenter.v1.ExfilResource.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Resource's URI (https://google.aip.dev/122#full-resource-names)
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -123,29 +147,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Resource's URI (https://google.aip.dev/122#full-resource-names)
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -156,6 +180,8 @@ public java.lang.String getName() { public static final int COMPONENTS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList components_; /** + * + * *
    * Subcomponents of the asset that is exfiltrated - these could be
    * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -164,13 +190,15 @@ public java.lang.String getName() {
    * 
* * repeated string components = 2; + * * @return A list containing the components. */ - public com.google.protobuf.ProtocolStringList - getComponentsList() { + public com.google.protobuf.ProtocolStringList getComponentsList() { return components_; } /** + * + * *
    * Subcomponents of the asset that is exfiltrated - these could be
    * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -179,12 +207,15 @@ public java.lang.String getName() {
    * 
* * repeated string components = 2; + * * @return The count of components. */ public int getComponentsCount() { return components_.size(); } /** + * + * *
    * Subcomponents of the asset that is exfiltrated - these could be
    * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -193,6 +224,7 @@ public int getComponentsCount() {
    * 
* * repeated string components = 2; + * * @param index The index of the element to return. * @return The components at the given index. */ @@ -200,6 +232,8 @@ public java.lang.String getComponents(int index) { return components_.get(index); } /** + * + * *
    * Subcomponents of the asset that is exfiltrated - these could be
    * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -208,15 +242,16 @@ public java.lang.String getComponents(int index) {
    * 
* * repeated string components = 2; + * * @param index The index of the value to return. * @return The bytes of the components at the given index. */ - public com.google.protobuf.ByteString - getComponentsBytes(int index) { + public com.google.protobuf.ByteString getComponentsBytes(int index) { return components_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -264,17 +298,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ExfilResource)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ExfilResource other = (com.google.cloud.securitycenter.v1.ExfilResource) obj; + com.google.cloud.securitycenter.v1.ExfilResource other = + (com.google.cloud.securitycenter.v1.ExfilResource) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getComponentsList() - .equals(other.getComponentsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getComponentsList().equals(other.getComponentsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -297,118 +330,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ExfilResource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ExfilResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ExfilResource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ExfilResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.ExfilResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Resource that has been exfiltrated or exfiltrated_to.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ExfilResource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ExfilResource) com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.ExfiltrationProto.internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.ExfiltrationProto + .internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ExfiltrationProto.internal_static_google_cloud_securitycenter_v1_ExfilResource_fieldAccessorTable + return com.google.cloud.securitycenter.v1.ExfiltrationProto + .internal_static_google_cloud_securitycenter_v1_ExfilResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ExfilResource.class, com.google.cloud.securitycenter.v1.ExfilResource.Builder.class); + com.google.cloud.securitycenter.v1.ExfilResource.class, + com.google.cloud.securitycenter.v1.ExfilResource.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ExfilResource.newBuilder() @@ -416,16 +458,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.ExfiltrationProto.internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.ExfiltrationProto + .internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor; } @java.lang.Override @@ -458,7 +499,8 @@ public com.google.cloud.securitycenter.v1.ExfilResource build() { @java.lang.Override public com.google.cloud.securitycenter.v1.ExfilResource buildPartial() { - com.google.cloud.securitycenter.v1.ExfilResource result = new com.google.cloud.securitycenter.v1.ExfilResource(this); + com.google.cloud.securitycenter.v1.ExfilResource result = + new com.google.cloud.securitycenter.v1.ExfilResource(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (((bitField0_ & 0x00000001) != 0)) { @@ -474,38 +516,39 @@ public com.google.cloud.securitycenter.v1.ExfilResource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ExfilResource) { - return mergeFrom((com.google.cloud.securitycenter.v1.ExfilResource)other); + return mergeFrom((com.google.cloud.securitycenter.v1.ExfilResource) other); } else { super.mergeFrom(other); return this; @@ -513,7 +556,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ExfilResource other) { - if (other == com.google.cloud.securitycenter.v1.ExfilResource.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.ExfilResource.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -556,22 +600,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Resource's URI (https://google.aip.dev/122#full-resource-names)
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -580,20 +627,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Resource's URI (https://google.aip.dev/122#full-resource-names)
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -601,67 +649,78 @@ public java.lang.String getName() { } } /** + * + * *
      * Resource's URI (https://google.aip.dev/122#full-resource-names)
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Resource's URI (https://google.aip.dev/122#full-resource-names)
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Resource's URI (https://google.aip.dev/122#full-resource-names)
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList components_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList components_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureComponentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { components_ = new com.google.protobuf.LazyStringArrayList(components_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Subcomponents of the asset that is exfiltrated - these could be
      * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -670,13 +729,15 @@ private void ensureComponentsIsMutable() {
      * 
* * repeated string components = 2; + * * @return A list containing the components. */ - public com.google.protobuf.ProtocolStringList - getComponentsList() { + public com.google.protobuf.ProtocolStringList getComponentsList() { return components_.getUnmodifiableView(); } /** + * + * *
      * Subcomponents of the asset that is exfiltrated - these could be
      * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -685,12 +746,15 @@ private void ensureComponentsIsMutable() {
      * 
* * repeated string components = 2; + * * @return The count of components. */ public int getComponentsCount() { return components_.size(); } /** + * + * *
      * Subcomponents of the asset that is exfiltrated - these could be
      * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -699,6 +763,7 @@ public int getComponentsCount() {
      * 
* * repeated string components = 2; + * * @param index The index of the element to return. * @return The components at the given index. */ @@ -706,6 +771,8 @@ public java.lang.String getComponents(int index) { return components_.get(index); } /** + * + * *
      * Subcomponents of the asset that is exfiltrated - these could be
      * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -714,14 +781,16 @@ public java.lang.String getComponents(int index) {
      * 
* * repeated string components = 2; + * * @param index The index of the value to return. * @return The bytes of the components at the given index. */ - public com.google.protobuf.ByteString - getComponentsBytes(int index) { + public com.google.protobuf.ByteString getComponentsBytes(int index) { return components_.getByteString(index); } /** + * + * *
      * Subcomponents of the asset that is exfiltrated - these could be
      * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -730,21 +799,23 @@ public java.lang.String getComponents(int index) {
      * 
* * repeated string components = 2; + * * @param index The index to set the value at. * @param value The components to set. * @return This builder for chaining. */ - public Builder setComponents( - int index, java.lang.String value) { + public Builder setComponents(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureComponentsIsMutable(); + throw new NullPointerException(); + } + ensureComponentsIsMutable(); components_.set(index, value); onChanged(); return this; } /** + * + * *
      * Subcomponents of the asset that is exfiltrated - these could be
      * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -753,20 +824,22 @@ public Builder setComponents(
      * 
* * repeated string components = 2; + * * @param value The components to add. * @return This builder for chaining. */ - public Builder addComponents( - java.lang.String value) { + public Builder addComponents(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureComponentsIsMutable(); + throw new NullPointerException(); + } + ensureComponentsIsMutable(); components_.add(value); onChanged(); return this; } /** + * + * *
      * Subcomponents of the asset that is exfiltrated - these could be
      * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -775,18 +848,19 @@ public Builder addComponents(
      * 
* * repeated string components = 2; + * * @param values The components to add. * @return This builder for chaining. */ - public Builder addAllComponents( - java.lang.Iterable values) { + public Builder addAllComponents(java.lang.Iterable values) { ensureComponentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, components_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, components_); onChanged(); return this; } /** + * + * *
      * Subcomponents of the asset that is exfiltrated - these could be
      * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -795,6 +869,7 @@ public Builder addAllComponents(
      * 
* * repeated string components = 2; + * * @return This builder for chaining. */ public Builder clearComponents() { @@ -804,6 +879,8 @@ public Builder clearComponents() { return this; } /** + * + * *
      * Subcomponents of the asset that is exfiltrated - these could be
      * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -812,23 +889,23 @@ public Builder clearComponents() {
      * 
* * repeated string components = 2; + * * @param value The bytes of the components to add. * @return This builder for chaining. */ - public Builder addComponentsBytes( - com.google.protobuf.ByteString value) { + public Builder addComponentsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureComponentsIsMutable(); components_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -838,12 +915,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ExfilResource) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ExfilResource) private static final com.google.cloud.securitycenter.v1.ExfilResource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ExfilResource(); } @@ -852,16 +929,16 @@ public static com.google.cloud.securitycenter.v1.ExfilResource getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExfilResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExfilResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExfilResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExfilResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -876,6 +953,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.ExfilResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResourceOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResourceOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResourceOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResourceOrBuilder.java index 544908750..40756efb7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResourceOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfilResourceOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/exfiltration.proto package com.google.cloud.securitycenter.v1; -public interface ExfilResourceOrBuilder extends +public interface ExfilResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ExfilResource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Resource's URI (https://google.aip.dev/122#full-resource-names)
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Resource's URI (https://google.aip.dev/122#full-resource-names)
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Subcomponents of the asset that is exfiltrated - these could be
    * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -36,11 +59,13 @@ public interface ExfilResourceOrBuilder extends
    * 
* * repeated string components = 2; + * * @return A list containing the components. */ - java.util.List - getComponentsList(); + java.util.List getComponentsList(); /** + * + * *
    * Subcomponents of the asset that is exfiltrated - these could be
    * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -49,10 +74,13 @@ public interface ExfilResourceOrBuilder extends
    * 
* * repeated string components = 2; + * * @return The count of components. */ int getComponentsCount(); /** + * + * *
    * Subcomponents of the asset that is exfiltrated - these could be
    * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -61,11 +89,14 @@ public interface ExfilResourceOrBuilder extends
    * 
* * repeated string components = 2; + * * @param index The index of the element to return. * @return The components at the given index. */ java.lang.String getComponents(int index); /** + * + * *
    * Subcomponents of the asset that is exfiltrated - these could be
    * URIs used during exfiltration, table names, databases, filenames, etc.
@@ -74,9 +105,9 @@ public interface ExfilResourceOrBuilder extends
    * 
* * repeated string components = 2; + * * @param index The index of the value to return. * @return The bytes of the components at the given index. */ - com.google.protobuf.ByteString - getComponentsBytes(int index); + com.google.protobuf.ByteString getComponentsBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Exfiltration.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Exfiltration.java similarity index 78% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Exfiltration.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Exfiltration.java index e39c44786..7d864369b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Exfiltration.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Exfiltration.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/exfiltration.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Exfiltration represents a data exfiltration attempt of one or more
  * sources to one or more targets.  Sources represent the source
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.Exfiltration}
  */
-public final class Exfiltration extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Exfiltration extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Exfiltration)
     ExfiltrationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Exfiltration.newBuilder() to construct.
   private Exfiltration(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Exfiltration() {
     sources_ = java.util.Collections.emptyList();
     targets_ = java.util.Collections.emptyList();
@@ -29,16 +47,15 @@ private Exfiltration() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Exfiltration();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Exfiltration(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,31 +75,39 @@ private Exfiltration(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              sources_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                sources_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              sources_.add(
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1.ExfilResource.parser(),
+                      extensionRegistry));
+              break;
             }
-            sources_.add(
-                input.readMessage(com.google.cloud.securitycenter.v1.ExfilResource.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              targets_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                targets_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              targets_.add(
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1.ExfilResource.parser(),
+                      extensionRegistry));
+              break;
             }
-            targets_.add(
-                input.readMessage(com.google.cloud.securitycenter.v1.ExfilResource.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -90,8 +115,7 @@ private Exfiltration(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         sources_ = java.util.Collections.unmodifiableList(sources_);
@@ -103,22 +127,27 @@ private Exfiltration(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1.ExfiltrationProto.internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1.ExfiltrationProto
+        .internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.ExfiltrationProto.internal_static_google_cloud_securitycenter_v1_Exfiltration_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.ExfiltrationProto
+        .internal_static_google_cloud_securitycenter_v1_Exfiltration_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.Exfiltration.class, com.google.cloud.securitycenter.v1.Exfiltration.Builder.class);
+            com.google.cloud.securitycenter.v1.Exfiltration.class,
+            com.google.cloud.securitycenter.v1.Exfiltration.Builder.class);
   }
 
   public static final int SOURCES_FIELD_NUMBER = 1;
   private java.util.List sources_;
   /**
+   *
+   *
    * 
    * If there are multiple sources, then the data is considered "joined" between
    * them. For instance, BigQuery can join multiple tables, and each
@@ -132,6 +161,8 @@ public java.util.List getSourc
     return sources_;
   }
   /**
+   *
+   *
    * 
    * If there are multiple sources, then the data is considered "joined" between
    * them. For instance, BigQuery can join multiple tables, and each
@@ -141,11 +172,13 @@ public java.util.List getSourc
    * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getSourcesOrBuilderList() {
     return sources_;
   }
   /**
+   *
+   *
    * 
    * If there are multiple sources, then the data is considered "joined" between
    * them. For instance, BigQuery can join multiple tables, and each
@@ -159,6 +192,8 @@ public int getSourcesCount() {
     return sources_.size();
   }
   /**
+   *
+   *
    * 
    * If there are multiple sources, then the data is considered "joined" between
    * them. For instance, BigQuery can join multiple tables, and each
@@ -172,6 +207,8 @@ public com.google.cloud.securitycenter.v1.ExfilResource getSources(int index) {
     return sources_.get(index);
   }
   /**
+   *
+   *
    * 
    * If there are multiple sources, then the data is considered "joined" between
    * them. For instance, BigQuery can join multiple tables, and each
@@ -181,14 +218,15 @@ public com.google.cloud.securitycenter.v1.ExfilResource getSources(int index) {
    * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
    */
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBuilder(
-      int index) {
+  public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBuilder(int index) {
     return sources_.get(index);
   }
 
   public static final int TARGETS_FIELD_NUMBER = 2;
   private java.util.List targets_;
   /**
+   *
+   *
    * 
    * If there are multiple targets, each target would get a complete copy of the
    * "joined" source data.
@@ -201,6 +239,8 @@ public java.util.List getTarge
     return targets_;
   }
   /**
+   *
+   *
    * 
    * If there are multiple targets, each target would get a complete copy of the
    * "joined" source data.
@@ -209,11 +249,13 @@ public java.util.List getTarge
    * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getTargetsOrBuilderList() {
     return targets_;
   }
   /**
+   *
+   *
    * 
    * If there are multiple targets, each target would get a complete copy of the
    * "joined" source data.
@@ -226,6 +268,8 @@ public int getTargetsCount() {
     return targets_.size();
   }
   /**
+   *
+   *
    * 
    * If there are multiple targets, each target would get a complete copy of the
    * "joined" source data.
@@ -238,6 +282,8 @@ public com.google.cloud.securitycenter.v1.ExfilResource getTargets(int index) {
     return targets_.get(index);
   }
   /**
+   *
+   *
    * 
    * If there are multiple targets, each target would get a complete copy of the
    * "joined" source data.
@@ -246,12 +292,12 @@ public com.google.cloud.securitycenter.v1.ExfilResource getTargets(int index) {
    * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
    */
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getTargetsOrBuilder(
-      int index) {
+  public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getTargetsOrBuilder(int index) {
     return targets_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -263,8 +309,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < sources_.size(); i++) {
       output.writeMessage(1, sources_.get(i));
     }
@@ -281,12 +326,10 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < sources_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, sources_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sources_.get(i));
     }
     for (int i = 0; i < targets_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, targets_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, targets_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -296,17 +339,16 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.Exfiltration)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.Exfiltration other = (com.google.cloud.securitycenter.v1.Exfiltration) obj;
+    com.google.cloud.securitycenter.v1.Exfiltration other =
+        (com.google.cloud.securitycenter.v1.Exfiltration) obj;
 
-    if (!getSourcesList()
-        .equals(other.getSourcesList())) return false;
-    if (!getTargetsList()
-        .equals(other.getTargetsList())) return false;
+    if (!getSourcesList().equals(other.getSourcesList())) return false;
+    if (!getTargetsList().equals(other.getTargetsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -331,97 +373,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.Exfiltration parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.Exfiltration parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.Exfiltration parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.Exfiltration parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.securitycenter.v1.Exfiltration prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Exfiltration represents a data exfiltration attempt of one or more
    * sources to one or more targets.  Sources represent the source
@@ -431,21 +480,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.Exfiltration}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Exfiltration)
       com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.ExfiltrationProto.internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.ExfiltrationProto
+          .internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.ExfiltrationProto.internal_static_google_cloud_securitycenter_v1_Exfiltration_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.ExfiltrationProto
+          .internal_static_google_cloud_securitycenter_v1_Exfiltration_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.Exfiltration.class, com.google.cloud.securitycenter.v1.Exfiltration.Builder.class);
+              com.google.cloud.securitycenter.v1.Exfiltration.class,
+              com.google.cloud.securitycenter.v1.Exfiltration.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.Exfiltration.newBuilder()
@@ -453,18 +504,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getSourcesFieldBuilder();
         getTargetsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -484,9 +535,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.ExfiltrationProto.internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.ExfiltrationProto
+          .internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor;
     }
 
     @java.lang.Override
@@ -505,7 +556,8 @@ public com.google.cloud.securitycenter.v1.Exfiltration build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.Exfiltration buildPartial() {
-      com.google.cloud.securitycenter.v1.Exfiltration result = new com.google.cloud.securitycenter.v1.Exfiltration(this);
+      com.google.cloud.securitycenter.v1.Exfiltration result =
+          new com.google.cloud.securitycenter.v1.Exfiltration(this);
       int from_bitField0_ = bitField0_;
       if (sourcesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -533,38 +585,39 @@ public com.google.cloud.securitycenter.v1.Exfiltration buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.Exfiltration) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.Exfiltration)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.Exfiltration) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -572,7 +625,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1.Exfiltration other) {
-      if (other == com.google.cloud.securitycenter.v1.Exfiltration.getDefaultInstance()) return this;
+      if (other == com.google.cloud.securitycenter.v1.Exfiltration.getDefaultInstance())
+        return this;
       if (sourcesBuilder_ == null) {
         if (!other.sources_.isEmpty()) {
           if (sources_.isEmpty()) {
@@ -591,9 +645,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Exfiltration other)
             sourcesBuilder_ = null;
             sources_ = other.sources_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            sourcesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSourcesFieldBuilder() : null;
+            sourcesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSourcesFieldBuilder()
+                    : null;
           } else {
             sourcesBuilder_.addAllMessages(other.sources_);
           }
@@ -617,9 +672,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Exfiltration other)
             targetsBuilder_ = null;
             targets_ = other.targets_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            targetsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getTargetsFieldBuilder() : null;
+            targetsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getTargetsFieldBuilder()
+                    : null;
           } else {
             targetsBuilder_.addAllMessages(other.targets_);
           }
@@ -653,21 +709,29 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List sources_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureSourcesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        sources_ = new java.util.ArrayList(sources_);
+        sources_ =
+            new java.util.ArrayList(sources_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.ExfilResource, com.google.cloud.securitycenter.v1.ExfilResource.Builder, com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder> sourcesBuilder_;
+            com.google.cloud.securitycenter.v1.ExfilResource,
+            com.google.cloud.securitycenter.v1.ExfilResource.Builder,
+            com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder>
+        sourcesBuilder_;
 
     /**
+     *
+     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -684,6 +748,8 @@ public java.util.List getSourc
       }
     }
     /**
+     *
+     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -700,6 +766,8 @@ public int getSourcesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -716,6 +784,8 @@ public com.google.cloud.securitycenter.v1.ExfilResource getSources(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -724,8 +794,7 @@ public com.google.cloud.securitycenter.v1.ExfilResource getSources(int index) {
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
      */
-    public Builder setSources(
-        int index, com.google.cloud.securitycenter.v1.ExfilResource value) {
+    public Builder setSources(int index, com.google.cloud.securitycenter.v1.ExfilResource value) {
       if (sourcesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -739,6 +808,8 @@ public Builder setSources(
       return this;
     }
     /**
+     *
+     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -759,6 +830,8 @@ public Builder setSources(
       return this;
     }
     /**
+     *
+     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -781,6 +854,8 @@ public Builder addSources(com.google.cloud.securitycenter.v1.ExfilResource value
       return this;
     }
     /**
+     *
+     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -789,8 +864,7 @@ public Builder addSources(com.google.cloud.securitycenter.v1.ExfilResource value
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
      */
-    public Builder addSources(
-        int index, com.google.cloud.securitycenter.v1.ExfilResource value) {
+    public Builder addSources(int index, com.google.cloud.securitycenter.v1.ExfilResource value) {
       if (sourcesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -804,6 +878,8 @@ public Builder addSources(
       return this;
     }
     /**
+     *
+     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -824,6 +900,8 @@ public Builder addSources(
       return this;
     }
     /**
+     *
+     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -844,6 +922,8 @@ public Builder addSources(
       return this;
     }
     /**
+     *
+     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -856,8 +936,7 @@ public Builder addAllSources(
         java.lang.Iterable values) {
       if (sourcesBuilder_ == null) {
         ensureSourcesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, sources_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sources_);
         onChanged();
       } else {
         sourcesBuilder_.addAllMessages(values);
@@ -865,6 +944,8 @@ public Builder addAllSources(
       return this;
     }
     /**
+     *
+     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -884,6 +965,8 @@ public Builder clearSources() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -903,6 +986,8 @@ public Builder removeSources(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -911,11 +996,12 @@ public Builder removeSources(int index) {
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
      */
-    public com.google.cloud.securitycenter.v1.ExfilResource.Builder getSourcesBuilder(
-        int index) {
+    public com.google.cloud.securitycenter.v1.ExfilResource.Builder getSourcesBuilder(int index) {
       return getSourcesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -927,11 +1013,14 @@ public com.google.cloud.securitycenter.v1.ExfilResource.Builder getSourcesBuilde
     public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBuilder(
         int index) {
       if (sourcesBuilder_ == null) {
-        return sources_.get(index);  } else {
+        return sources_.get(index);
+      } else {
         return sourcesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -940,8 +1029,8 @@ public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBui
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
      */
-    public java.util.List 
-         getSourcesOrBuilderList() {
+    public java.util.List
+        getSourcesOrBuilderList() {
       if (sourcesBuilder_ != null) {
         return sourcesBuilder_.getMessageOrBuilderList();
       } else {
@@ -949,6 +1038,8 @@ public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBui
       }
     }
     /**
+     *
+     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -958,10 +1049,12 @@ public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBui
      * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
      */
     public com.google.cloud.securitycenter.v1.ExfilResource.Builder addSourcesBuilder() {
-      return getSourcesFieldBuilder().addBuilder(
-          com.google.cloud.securitycenter.v1.ExfilResource.getDefaultInstance());
+      return getSourcesFieldBuilder()
+          .addBuilder(com.google.cloud.securitycenter.v1.ExfilResource.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -970,12 +1063,13 @@ public com.google.cloud.securitycenter.v1.ExfilResource.Builder addSourcesBuilde
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
      */
-    public com.google.cloud.securitycenter.v1.ExfilResource.Builder addSourcesBuilder(
-        int index) {
-      return getSourcesFieldBuilder().addBuilder(
-          index, com.google.cloud.securitycenter.v1.ExfilResource.getDefaultInstance());
+    public com.google.cloud.securitycenter.v1.ExfilResource.Builder addSourcesBuilder(int index) {
+      return getSourcesFieldBuilder()
+          .addBuilder(index, com.google.cloud.securitycenter.v1.ExfilResource.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * If there are multiple sources, then the data is considered "joined" between
      * them. For instance, BigQuery can join multiple tables, and each
@@ -984,38 +1078,48 @@ public com.google.cloud.securitycenter.v1.ExfilResource.Builder addSourcesBuilde
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
      */
-    public java.util.List 
-         getSourcesBuilderList() {
+    public java.util.List
+        getSourcesBuilderList() {
       return getSourcesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.ExfilResource, com.google.cloud.securitycenter.v1.ExfilResource.Builder, com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder> 
+            com.google.cloud.securitycenter.v1.ExfilResource,
+            com.google.cloud.securitycenter.v1.ExfilResource.Builder,
+            com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder>
         getSourcesFieldBuilder() {
       if (sourcesBuilder_ == null) {
-        sourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.ExfilResource, com.google.cloud.securitycenter.v1.ExfilResource.Builder, com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder>(
-                sources_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        sourcesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.securitycenter.v1.ExfilResource,
+                com.google.cloud.securitycenter.v1.ExfilResource.Builder,
+                com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder>(
+                sources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         sources_ = null;
       }
       return sourcesBuilder_;
     }
 
     private java.util.List targets_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureTargetsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        targets_ = new java.util.ArrayList(targets_);
+        targets_ =
+            new java.util.ArrayList(targets_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.ExfilResource, com.google.cloud.securitycenter.v1.ExfilResource.Builder, com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder> targetsBuilder_;
+            com.google.cloud.securitycenter.v1.ExfilResource,
+            com.google.cloud.securitycenter.v1.ExfilResource.Builder,
+            com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder>
+        targetsBuilder_;
 
     /**
+     *
+     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1031,6 +1135,8 @@ public java.util.List getTarge
       }
     }
     /**
+     *
+     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1046,6 +1152,8 @@ public int getTargetsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1061,6 +1169,8 @@ public com.google.cloud.securitycenter.v1.ExfilResource getTargets(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1068,8 +1178,7 @@ public com.google.cloud.securitycenter.v1.ExfilResource getTargets(int index) {
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
      */
-    public Builder setTargets(
-        int index, com.google.cloud.securitycenter.v1.ExfilResource value) {
+    public Builder setTargets(int index, com.google.cloud.securitycenter.v1.ExfilResource value) {
       if (targetsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1083,6 +1192,8 @@ public Builder setTargets(
       return this;
     }
     /**
+     *
+     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1102,6 +1213,8 @@ public Builder setTargets(
       return this;
     }
     /**
+     *
+     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1123,6 +1236,8 @@ public Builder addTargets(com.google.cloud.securitycenter.v1.ExfilResource value
       return this;
     }
     /**
+     *
+     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1130,8 +1245,7 @@ public Builder addTargets(com.google.cloud.securitycenter.v1.ExfilResource value
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
      */
-    public Builder addTargets(
-        int index, com.google.cloud.securitycenter.v1.ExfilResource value) {
+    public Builder addTargets(int index, com.google.cloud.securitycenter.v1.ExfilResource value) {
       if (targetsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1145,6 +1259,8 @@ public Builder addTargets(
       return this;
     }
     /**
+     *
+     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1164,6 +1280,8 @@ public Builder addTargets(
       return this;
     }
     /**
+     *
+     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1183,6 +1301,8 @@ public Builder addTargets(
       return this;
     }
     /**
+     *
+     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1194,8 +1314,7 @@ public Builder addAllTargets(
         java.lang.Iterable values) {
       if (targetsBuilder_ == null) {
         ensureTargetsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, targets_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targets_);
         onChanged();
       } else {
         targetsBuilder_.addAllMessages(values);
@@ -1203,6 +1322,8 @@ public Builder addAllTargets(
       return this;
     }
     /**
+     *
+     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1221,6 +1342,8 @@ public Builder clearTargets() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1239,6 +1362,8 @@ public Builder removeTargets(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1246,11 +1371,12 @@ public Builder removeTargets(int index) {
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
      */
-    public com.google.cloud.securitycenter.v1.ExfilResource.Builder getTargetsBuilder(
-        int index) {
+    public com.google.cloud.securitycenter.v1.ExfilResource.Builder getTargetsBuilder(int index) {
       return getTargetsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1261,11 +1387,14 @@ public com.google.cloud.securitycenter.v1.ExfilResource.Builder getTargetsBuilde
     public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getTargetsOrBuilder(
         int index) {
       if (targetsBuilder_ == null) {
-        return targets_.get(index);  } else {
+        return targets_.get(index);
+      } else {
         return targetsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1273,8 +1402,8 @@ public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getTargetsOrBui
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
      */
-    public java.util.List 
-         getTargetsOrBuilderList() {
+    public java.util.List
+        getTargetsOrBuilderList() {
       if (targetsBuilder_ != null) {
         return targetsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1282,6 +1411,8 @@ public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getTargetsOrBui
       }
     }
     /**
+     *
+     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1290,10 +1421,12 @@ public com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getTargetsOrBui
      * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
      */
     public com.google.cloud.securitycenter.v1.ExfilResource.Builder addTargetsBuilder() {
-      return getTargetsFieldBuilder().addBuilder(
-          com.google.cloud.securitycenter.v1.ExfilResource.getDefaultInstance());
+      return getTargetsFieldBuilder()
+          .addBuilder(com.google.cloud.securitycenter.v1.ExfilResource.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1301,12 +1434,13 @@ public com.google.cloud.securitycenter.v1.ExfilResource.Builder addTargetsBuilde
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
      */
-    public com.google.cloud.securitycenter.v1.ExfilResource.Builder addTargetsBuilder(
-        int index) {
-      return getTargetsFieldBuilder().addBuilder(
-          index, com.google.cloud.securitycenter.v1.ExfilResource.getDefaultInstance());
+    public com.google.cloud.securitycenter.v1.ExfilResource.Builder addTargetsBuilder(int index) {
+      return getTargetsFieldBuilder()
+          .addBuilder(index, com.google.cloud.securitycenter.v1.ExfilResource.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * If there are multiple targets, each target would get a complete copy of the
      * "joined" source data.
@@ -1314,27 +1448,30 @@ public com.google.cloud.securitycenter.v1.ExfilResource.Builder addTargetsBuilde
      *
      * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
      */
-    public java.util.List 
-         getTargetsBuilderList() {
+    public java.util.List
+        getTargetsBuilderList() {
       return getTargetsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.ExfilResource, com.google.cloud.securitycenter.v1.ExfilResource.Builder, com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder> 
+            com.google.cloud.securitycenter.v1.ExfilResource,
+            com.google.cloud.securitycenter.v1.ExfilResource.Builder,
+            com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder>
         getTargetsFieldBuilder() {
       if (targetsBuilder_ == null) {
-        targetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.ExfilResource, com.google.cloud.securitycenter.v1.ExfilResource.Builder, com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder>(
-                targets_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        targetsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.securitycenter.v1.ExfilResource,
+                com.google.cloud.securitycenter.v1.ExfilResource.Builder,
+                com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder>(
+                targets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         targets_ = null;
       }
       return targetsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1344,12 +1481,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Exfiltration)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Exfiltration)
   private static final com.google.cloud.securitycenter.v1.Exfiltration DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Exfiltration();
   }
@@ -1358,16 +1495,16 @@ public static com.google.cloud.securitycenter.v1.Exfiltration getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Exfiltration parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Exfiltration(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Exfiltration parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Exfiltration(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1382,6 +1519,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.securitycenter.v1.Exfiltration getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationOrBuilder.java
similarity index 80%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationOrBuilder.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationOrBuilder.java
index 5167c57ad..f84ebb366 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/exfiltration.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface ExfiltrationOrBuilder extends
+public interface ExfiltrationOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Exfiltration)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * If there are multiple sources, then the data is considered "joined" between
    * them. For instance, BigQuery can join multiple tables, and each
@@ -16,9 +34,10 @@ public interface ExfiltrationOrBuilder extends
    *
    * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
    */
-  java.util.List 
-      getSourcesList();
+  java.util.List getSourcesList();
   /**
+   *
+   *
    * 
    * If there are multiple sources, then the data is considered "joined" between
    * them. For instance, BigQuery can join multiple tables, and each
@@ -29,6 +48,8 @@ public interface ExfiltrationOrBuilder extends
    */
   com.google.cloud.securitycenter.v1.ExfilResource getSources(int index);
   /**
+   *
+   *
    * 
    * If there are multiple sources, then the data is considered "joined" between
    * them. For instance, BigQuery can join multiple tables, and each
@@ -39,6 +60,8 @@ public interface ExfiltrationOrBuilder extends
    */
   int getSourcesCount();
   /**
+   *
+   *
    * 
    * If there are multiple sources, then the data is considered "joined" between
    * them. For instance, BigQuery can join multiple tables, and each
@@ -47,9 +70,11 @@ public interface ExfiltrationOrBuilder extends
    *
    * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
    */
-  java.util.List 
+  java.util.List
       getSourcesOrBuilderList();
   /**
+   *
+   *
    * 
    * If there are multiple sources, then the data is considered "joined" between
    * them. For instance, BigQuery can join multiple tables, and each
@@ -58,10 +83,11 @@ public interface ExfiltrationOrBuilder extends
    *
    * repeated .google.cloud.securitycenter.v1.ExfilResource sources = 1;
    */
-  com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBuilder(
-      int index);
+  com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * If there are multiple targets, each target would get a complete copy of the
    * "joined" source data.
@@ -69,9 +95,10 @@ com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBuilder(
    *
    * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
    */
-  java.util.List 
-      getTargetsList();
+  java.util.List getTargetsList();
   /**
+   *
+   *
    * 
    * If there are multiple targets, each target would get a complete copy of the
    * "joined" source data.
@@ -81,6 +108,8 @@ com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBuilder(
    */
   com.google.cloud.securitycenter.v1.ExfilResource getTargets(int index);
   /**
+   *
+   *
    * 
    * If there are multiple targets, each target would get a complete copy of the
    * "joined" source data.
@@ -90,6 +119,8 @@ com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBuilder(
    */
   int getTargetsCount();
   /**
+   *
+   *
    * 
    * If there are multiple targets, each target would get a complete copy of the
    * "joined" source data.
@@ -97,9 +128,11 @@ com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBuilder(
    *
    * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
    */
-  java.util.List 
+  java.util.List
       getTargetsOrBuilderList();
   /**
+   *
+   *
    * 
    * If there are multiple targets, each target would get a complete copy of the
    * "joined" source data.
@@ -107,6 +140,5 @@ com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getSourcesOrBuilder(
    *
    * repeated .google.cloud.securitycenter.v1.ExfilResource targets = 2;
    */
-  com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getTargetsOrBuilder(
-      int index);
+  com.google.cloud.securitycenter.v1.ExfilResourceOrBuilder getTargetsOrBuilder(int index);
 }
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationProto.java
new file mode 100644
index 000000000..40827fa73
--- /dev/null
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExfiltrationProto.java
@@ -0,0 +1,84 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/securitycenter/v1/exfiltration.proto
+
+package com.google.cloud.securitycenter.v1;
+
+public final class ExfiltrationProto {
+  private ExfiltrationProto() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1_Exfiltration_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1_ExfilResource_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n1google/cloud/securitycenter/v1/exfiltr"
+          + "ation.proto\022\036google.cloud.securitycenter"
+          + ".v1\"\216\001\n\014Exfiltration\022>\n\007sources\030\001 \003(\0132-."
+          + "google.cloud.securitycenter.v1.ExfilReso"
+          + "urce\022>\n\007targets\030\002 \003(\0132-.google.cloud.sec"
+          + "uritycenter.v1.ExfilResource\"1\n\rExfilRes"
+          + "ource\022\014\n\004name\030\001 \001(\t\022\022\n\ncomponents\030\002 \003(\tB"
+          + "\355\001\n\"com.google.cloud.securitycenter.v1B\021"
+          + "ExfiltrationProtoP\001ZLgoogle.golang.org/g"
+          + "enproto/googleapis/cloud/securitycenter/"
+          + "v1;securitycenter\252\002\036Google.Cloud.Securit"
+          + "yCenter.V1\312\002\036Google\\Cloud\\SecurityCenter"
+          + "\\V1\352\002!Google::Cloud::SecurityCenter::V1b"
+          + "\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
+    internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_securitycenter_v1_Exfiltration_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_securitycenter_v1_Exfiltration_descriptor,
+            new java.lang.String[] {
+              "Sources", "Targets",
+            });
+    internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_securitycenter_v1_ExfilResource_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_securitycenter_v1_ExfilResource_descriptor,
+            new java.lang.String[] {
+              "Name", "Components",
+            });
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystem.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystem.java
similarity index 74%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystem.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystem.java
index 0ea1bcb0e..fd9a7f95c 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystem.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystem.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/external_system.proto
 
 package com.google.cloud.securitycenter.v1;
 
 /**
+ *
+ *
  * 
  * Representation of third party SIEM/SOAR fields within SCC.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ExternalSystem} */ -public final class ExternalSystem extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ExternalSystem extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ExternalSystem) ExternalSystemOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExternalSystem.newBuilder() to construct. private ExternalSystem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ExternalSystem() { name_ = ""; assignees_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -28,16 +46,15 @@ private ExternalSystem() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExternalSystem(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExternalSystem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,53 +74,59 @@ private ExternalSystem( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - assignees_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + name_ = s; + break; } - assignees_.add(s); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - externalUid_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + assignees_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + assignees_.add(s); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - status_ = s; - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (externalSystemUpdateTime_ != null) { - subBuilder = externalSystemUpdateTime_.toBuilder(); + externalUid_ = s; + break; } - externalSystemUpdateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(externalSystemUpdateTime_); - externalSystemUpdateTime_ = subBuilder.buildPartial(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + status_ = s; + break; } + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (externalSystemUpdateTime_ != null) { + subBuilder = externalSystemUpdateTime_.toBuilder(); + } + externalSystemUpdateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(externalSystemUpdateTime_); + externalSystemUpdateTime_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -111,8 +134,7 @@ private ExternalSystem( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { assignees_ = assignees_.getUnmodifiableView(); @@ -121,22 +143,27 @@ private ExternalSystem( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.ExternalSystemProto.internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.ExternalSystemProto + .internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ExternalSystemProto.internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable + return com.google.cloud.securitycenter.v1.ExternalSystemProto + .internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ExternalSystem.class, com.google.cloud.securitycenter.v1.ExternalSystem.Builder.class); + com.google.cloud.securitycenter.v1.ExternalSystem.class, + com.google.cloud.securitycenter.v1.ExternalSystem.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * External System Name e.g. jira, demisto, etc.
    *  e.g.:
@@ -146,6 +173,7 @@ private ExternalSystem(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -154,14 +182,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * External System Name e.g. jira, demisto, etc.
    *  e.g.:
@@ -171,16 +200,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -191,34 +219,42 @@ public java.lang.String getName() { public static final int ASSIGNEES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList assignees_; /** + * + * *
    * References primary/secondary etc assignees in the external system.
    * 
* * repeated string assignees = 2; + * * @return A list containing the assignees. */ - public com.google.protobuf.ProtocolStringList - getAssigneesList() { + public com.google.protobuf.ProtocolStringList getAssigneesList() { return assignees_; } /** + * + * *
    * References primary/secondary etc assignees in the external system.
    * 
* * repeated string assignees = 2; + * * @return The count of assignees. */ public int getAssigneesCount() { return assignees_.size(); } /** + * + * *
    * References primary/secondary etc assignees in the external system.
    * 
* * repeated string assignees = 2; + * * @param index The index of the element to return. * @return The assignees at the given index. */ @@ -226,27 +262,32 @@ public java.lang.String getAssignees(int index) { return assignees_.get(index); } /** + * + * *
    * References primary/secondary etc assignees in the external system.
    * 
* * repeated string assignees = 2; + * * @param index The index of the value to return. * @return The bytes of the assignees at the given index. */ - public com.google.protobuf.ByteString - getAssigneesBytes(int index) { + public com.google.protobuf.ByteString getAssigneesBytes(int index) { return assignees_.getByteString(index); } public static final int EXTERNAL_UID_FIELD_NUMBER = 3; private volatile java.lang.Object externalUid_; /** + * + * *
    * Identifier that's used to track the given finding in the external system.
    * 
* * string external_uid = 3; + * * @return The externalUid. */ @java.lang.Override @@ -255,29 +296,29 @@ public java.lang.String getExternalUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalUid_ = s; return s; } } /** + * + * *
    * Identifier that's used to track the given finding in the external system.
    * 
* * string external_uid = 3; + * * @return The bytes for externalUid. */ @java.lang.Override - public com.google.protobuf.ByteString - getExternalUidBytes() { + public com.google.protobuf.ByteString getExternalUidBytes() { java.lang.Object ref = externalUid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalUid_ = b; return b; } else { @@ -288,12 +329,15 @@ public java.lang.String getExternalUid() { public static final int STATUS_FIELD_NUMBER = 4; private volatile java.lang.Object status_; /** + * + * *
    * Most recent status of the corresponding finding's ticket/tracker in the
    * external system.
    * 
* * string status = 4; + * * @return The status. */ @java.lang.Override @@ -302,30 +346,30 @@ public java.lang.String getStatus() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); status_ = s; return s; } } /** + * + * *
    * Most recent status of the corresponding finding's ticket/tracker in the
    * external system.
    * 
* * string status = 4; + * * @return The bytes for status. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusBytes() { + public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); status_ = b; return b; } else { @@ -336,12 +380,15 @@ public java.lang.String getStatus() { public static final int EXTERNAL_SYSTEM_UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp externalSystemUpdateTime_; /** + * + * *
    * The most recent time when the corresponding finding's ticket/tracker was
    * updated in the external system.
    * 
* * .google.protobuf.Timestamp external_system_update_time = 5; + * * @return Whether the externalSystemUpdateTime field is set. */ @java.lang.Override @@ -349,19 +396,26 @@ public boolean hasExternalSystemUpdateTime() { return externalSystemUpdateTime_ != null; } /** + * + * *
    * The most recent time when the corresponding finding's ticket/tracker was
    * updated in the external system.
    * 
* * .google.protobuf.Timestamp external_system_update_time = 5; + * * @return The externalSystemUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExternalSystemUpdateTime() { - return externalSystemUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : externalSystemUpdateTime_; + return externalSystemUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : externalSystemUpdateTime_; } /** + * + * *
    * The most recent time when the corresponding finding's ticket/tracker was
    * updated in the external system.
@@ -375,6 +429,7 @@ public com.google.protobuf.TimestampOrBuilder getExternalSystemUpdateTimeOrBuild
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -386,8 +441,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -430,8 +484,9 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, status_);
     }
     if (externalSystemUpdateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getExternalSystemUpdateTime());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              5, getExternalSystemUpdateTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -441,25 +496,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.ExternalSystem)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.ExternalSystem other = (com.google.cloud.securitycenter.v1.ExternalSystem) obj;
+    com.google.cloud.securitycenter.v1.ExternalSystem other =
+        (com.google.cloud.securitycenter.v1.ExternalSystem) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getAssigneesList()
-        .equals(other.getAssigneesList())) return false;
-    if (!getExternalUid()
-        .equals(other.getExternalUid())) return false;
-    if (!getStatus()
-        .equals(other.getStatus())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getAssigneesList().equals(other.getAssigneesList())) return false;
+    if (!getExternalUid().equals(other.getExternalUid())) return false;
+    if (!getStatus().equals(other.getStatus())) return false;
     if (hasExternalSystemUpdateTime() != other.hasExternalSystemUpdateTime()) return false;
     if (hasExternalSystemUpdateTime()) {
-      if (!getExternalSystemUpdateTime()
-          .equals(other.getExternalSystemUpdateTime())) return false;
+      if (!getExternalSystemUpdateTime().equals(other.getExternalSystemUpdateTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -492,117 +543,126 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.ExternalSystem parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.ExternalSystem parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.ExternalSystem parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.securitycenter.v1.ExternalSystem prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Representation of third party SIEM/SOAR fields within SCC.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ExternalSystem} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ExternalSystem) com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.ExternalSystemProto.internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.ExternalSystemProto + .internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ExternalSystemProto.internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable + return com.google.cloud.securitycenter.v1.ExternalSystemProto + .internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ExternalSystem.class, com.google.cloud.securitycenter.v1.ExternalSystem.Builder.class); + com.google.cloud.securitycenter.v1.ExternalSystem.class, + com.google.cloud.securitycenter.v1.ExternalSystem.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ExternalSystem.newBuilder() @@ -610,16 +670,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -641,9 +700,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.ExternalSystemProto.internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.ExternalSystemProto + .internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor; } @java.lang.Override @@ -662,7 +721,8 @@ public com.google.cloud.securitycenter.v1.ExternalSystem build() { @java.lang.Override public com.google.cloud.securitycenter.v1.ExternalSystem buildPartial() { - com.google.cloud.securitycenter.v1.ExternalSystem result = new com.google.cloud.securitycenter.v1.ExternalSystem(this); + com.google.cloud.securitycenter.v1.ExternalSystem result = + new com.google.cloud.securitycenter.v1.ExternalSystem(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (((bitField0_ & 0x00000001) != 0)) { @@ -685,38 +745,39 @@ public com.google.cloud.securitycenter.v1.ExternalSystem buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ExternalSystem) { - return mergeFrom((com.google.cloud.securitycenter.v1.ExternalSystem)other); + return mergeFrom((com.google.cloud.securitycenter.v1.ExternalSystem) other); } else { super.mergeFrom(other); return this; @@ -724,7 +785,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ExternalSystem other) { - if (other == com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -769,7 +831,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.ExternalSystem) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.ExternalSystem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -778,10 +841,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * External System Name e.g. jira, demisto, etc.
      *  e.g.:
@@ -791,13 +857,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -806,6 +872,8 @@ public java.lang.String getName() { } } /** + * + * *
      * External System Name e.g. jira, demisto, etc.
      *  e.g.:
@@ -815,15 +883,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -831,6 +898,8 @@ public java.lang.String getName() { } } /** + * + * *
      * External System Name e.g. jira, demisto, etc.
      *  e.g.:
@@ -840,20 +909,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * External System Name e.g. jira, demisto, etc.
      *  e.g.:
@@ -863,15 +934,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * External System Name e.g. jira, demisto, etc.
      *  e.g.:
@@ -881,57 +955,67 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList assignees_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList assignees_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAssigneesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { assignees_ = new com.google.protobuf.LazyStringArrayList(assignees_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * References primary/secondary etc assignees in the external system.
      * 
* * repeated string assignees = 2; + * * @return A list containing the assignees. */ - public com.google.protobuf.ProtocolStringList - getAssigneesList() { + public com.google.protobuf.ProtocolStringList getAssigneesList() { return assignees_.getUnmodifiableView(); } /** + * + * *
      * References primary/secondary etc assignees in the external system.
      * 
* * repeated string assignees = 2; + * * @return The count of assignees. */ public int getAssigneesCount() { return assignees_.size(); } /** + * + * *
      * References primary/secondary etc assignees in the external system.
      * 
* * repeated string assignees = 2; + * * @param index The index of the element to return. * @return The assignees at the given index. */ @@ -939,80 +1023,90 @@ public java.lang.String getAssignees(int index) { return assignees_.get(index); } /** + * + * *
      * References primary/secondary etc assignees in the external system.
      * 
* * repeated string assignees = 2; + * * @param index The index of the value to return. * @return The bytes of the assignees at the given index. */ - public com.google.protobuf.ByteString - getAssigneesBytes(int index) { + public com.google.protobuf.ByteString getAssigneesBytes(int index) { return assignees_.getByteString(index); } /** + * + * *
      * References primary/secondary etc assignees in the external system.
      * 
* * repeated string assignees = 2; + * * @param index The index to set the value at. * @param value The assignees to set. * @return This builder for chaining. */ - public Builder setAssignees( - int index, java.lang.String value) { + public Builder setAssignees(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssigneesIsMutable(); + throw new NullPointerException(); + } + ensureAssigneesIsMutable(); assignees_.set(index, value); onChanged(); return this; } /** + * + * *
      * References primary/secondary etc assignees in the external system.
      * 
* * repeated string assignees = 2; + * * @param value The assignees to add. * @return This builder for chaining. */ - public Builder addAssignees( - java.lang.String value) { + public Builder addAssignees(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAssigneesIsMutable(); + throw new NullPointerException(); + } + ensureAssigneesIsMutable(); assignees_.add(value); onChanged(); return this; } /** + * + * *
      * References primary/secondary etc assignees in the external system.
      * 
* * repeated string assignees = 2; + * * @param values The assignees to add. * @return This builder for chaining. */ - public Builder addAllAssignees( - java.lang.Iterable values) { + public Builder addAllAssignees(java.lang.Iterable values) { ensureAssigneesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assignees_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assignees_); onChanged(); return this; } /** + * + * *
      * References primary/secondary etc assignees in the external system.
      * 
* * repeated string assignees = 2; + * * @return This builder for chaining. */ public Builder clearAssignees() { @@ -1022,20 +1116,22 @@ public Builder clearAssignees() { return this; } /** + * + * *
      * References primary/secondary etc assignees in the external system.
      * 
* * repeated string assignees = 2; + * * @param value The bytes of the assignees to add. * @return This builder for chaining. */ - public Builder addAssigneesBytes( - com.google.protobuf.ByteString value) { + public Builder addAssigneesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAssigneesIsMutable(); assignees_.add(value); onChanged(); @@ -1044,18 +1140,20 @@ public Builder addAssigneesBytes( private java.lang.Object externalUid_ = ""; /** + * + * *
      * Identifier that's used to track the given finding in the external system.
      * 
* * string external_uid = 3; + * * @return The externalUid. */ public java.lang.String getExternalUid() { java.lang.Object ref = externalUid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalUid_ = s; return s; @@ -1064,20 +1162,21 @@ public java.lang.String getExternalUid() { } } /** + * + * *
      * Identifier that's used to track the given finding in the external system.
      * 
* * string external_uid = 3; + * * @return The bytes for externalUid. */ - public com.google.protobuf.ByteString - getExternalUidBytes() { + public com.google.protobuf.ByteString getExternalUidBytes() { java.lang.Object ref = externalUid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalUid_ = b; return b; } else { @@ -1085,54 +1184,61 @@ public java.lang.String getExternalUid() { } } /** + * + * *
      * Identifier that's used to track the given finding in the external system.
      * 
* * string external_uid = 3; + * * @param value The externalUid to set. * @return This builder for chaining. */ - public Builder setExternalUid( - java.lang.String value) { + public Builder setExternalUid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalUid_ = value; onChanged(); return this; } /** + * + * *
      * Identifier that's used to track the given finding in the external system.
      * 
* * string external_uid = 3; + * * @return This builder for chaining. */ public Builder clearExternalUid() { - + externalUid_ = getDefaultInstance().getExternalUid(); onChanged(); return this; } /** + * + * *
      * Identifier that's used to track the given finding in the external system.
      * 
* * string external_uid = 3; + * * @param value The bytes for externalUid to set. * @return This builder for chaining. */ - public Builder setExternalUidBytes( - com.google.protobuf.ByteString value) { + public Builder setExternalUidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalUid_ = value; onChanged(); return this; @@ -1140,19 +1246,21 @@ public Builder setExternalUidBytes( private java.lang.Object status_ = ""; /** + * + * *
      * Most recent status of the corresponding finding's ticket/tracker in the
      * external system.
      * 
* * string status = 4; + * * @return The status. */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); status_ = s; return s; @@ -1161,21 +1269,22 @@ public java.lang.String getStatus() { } } /** + * + * *
      * Most recent status of the corresponding finding's ticket/tracker in the
      * external system.
      * 
* * string status = 4; + * * @return The bytes for status. */ - public com.google.protobuf.ByteString - getStatusBytes() { + public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); status_ = b; return b; } else { @@ -1183,57 +1292,64 @@ public java.lang.String getStatus() { } } /** + * + * *
      * Most recent status of the corresponding finding's ticket/tracker in the
      * external system.
      * 
* * string status = 4; + * * @param value The status to set. * @return This builder for chaining. */ - public Builder setStatus( - java.lang.String value) { + public Builder setStatus(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + status_ = value; onChanged(); return this; } /** + * + * *
      * Most recent status of the corresponding finding's ticket/tracker in the
      * external system.
      * 
* * string status = 4; + * * @return This builder for chaining. */ public Builder clearStatus() { - + status_ = getDefaultInstance().getStatus(); onChanged(); return this; } /** + * + * *
      * Most recent status of the corresponding finding's ticket/tracker in the
      * external system.
      * 
* * string status = 4; + * * @param value The bytes for status to set. * @return This builder for chaining. */ - public Builder setStatusBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + status_ = value; onChanged(); return this; @@ -1241,36 +1357,49 @@ public Builder setStatusBytes( private com.google.protobuf.Timestamp externalSystemUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> externalSystemUpdateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + externalSystemUpdateTimeBuilder_; /** + * + * *
      * The most recent time when the corresponding finding's ticket/tracker was
      * updated in the external system.
      * 
* * .google.protobuf.Timestamp external_system_update_time = 5; + * * @return Whether the externalSystemUpdateTime field is set. */ public boolean hasExternalSystemUpdateTime() { return externalSystemUpdateTimeBuilder_ != null || externalSystemUpdateTime_ != null; } /** + * + * *
      * The most recent time when the corresponding finding's ticket/tracker was
      * updated in the external system.
      * 
* * .google.protobuf.Timestamp external_system_update_time = 5; + * * @return The externalSystemUpdateTime. */ public com.google.protobuf.Timestamp getExternalSystemUpdateTime() { if (externalSystemUpdateTimeBuilder_ == null) { - return externalSystemUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : externalSystemUpdateTime_; + return externalSystemUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : externalSystemUpdateTime_; } else { return externalSystemUpdateTimeBuilder_.getMessage(); } } /** + * + * *
      * The most recent time when the corresponding finding's ticket/tracker was
      * updated in the external system.
@@ -1292,6 +1421,8 @@ public Builder setExternalSystemUpdateTime(com.google.protobuf.Timestamp value)
       return this;
     }
     /**
+     *
+     *
      * 
      * The most recent time when the corresponding finding's ticket/tracker was
      * updated in the external system.
@@ -1311,6 +1442,8 @@ public Builder setExternalSystemUpdateTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The most recent time when the corresponding finding's ticket/tracker was
      * updated in the external system.
@@ -1322,7 +1455,9 @@ public Builder mergeExternalSystemUpdateTime(com.google.protobuf.Timestamp value
       if (externalSystemUpdateTimeBuilder_ == null) {
         if (externalSystemUpdateTime_ != null) {
           externalSystemUpdateTime_ =
-            com.google.protobuf.Timestamp.newBuilder(externalSystemUpdateTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(externalSystemUpdateTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           externalSystemUpdateTime_ = value;
         }
@@ -1334,6 +1469,8 @@ public Builder mergeExternalSystemUpdateTime(com.google.protobuf.Timestamp value
       return this;
     }
     /**
+     *
+     *
      * 
      * The most recent time when the corresponding finding's ticket/tracker was
      * updated in the external system.
@@ -1353,6 +1490,8 @@ public Builder clearExternalSystemUpdateTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The most recent time when the corresponding finding's ticket/tracker was
      * updated in the external system.
@@ -1361,11 +1500,13 @@ public Builder clearExternalSystemUpdateTime() {
      * .google.protobuf.Timestamp external_system_update_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getExternalSystemUpdateTimeBuilder() {
-      
+
       onChanged();
       return getExternalSystemUpdateTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The most recent time when the corresponding finding's ticket/tracker was
      * updated in the external system.
@@ -1377,11 +1518,14 @@ public com.google.protobuf.TimestampOrBuilder getExternalSystemUpdateTimeOrBuild
       if (externalSystemUpdateTimeBuilder_ != null) {
         return externalSystemUpdateTimeBuilder_.getMessageOrBuilder();
       } else {
-        return externalSystemUpdateTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : externalSystemUpdateTime_;
+        return externalSystemUpdateTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : externalSystemUpdateTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The most recent time when the corresponding finding's ticket/tracker was
      * updated in the external system.
@@ -1390,21 +1534,24 @@ public com.google.protobuf.TimestampOrBuilder getExternalSystemUpdateTimeOrBuild
      * .google.protobuf.Timestamp external_system_update_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getExternalSystemUpdateTimeFieldBuilder() {
       if (externalSystemUpdateTimeBuilder_ == null) {
-        externalSystemUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getExternalSystemUpdateTime(),
-                getParentForChildren(),
-                isClean());
+        externalSystemUpdateTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getExternalSystemUpdateTime(), getParentForChildren(), isClean());
         externalSystemUpdateTime_ = null;
       }
       return externalSystemUpdateTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1414,12 +1561,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ExternalSystem)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ExternalSystem)
   private static final com.google.cloud.securitycenter.v1.ExternalSystem DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ExternalSystem();
   }
@@ -1428,16 +1575,16 @@ public static com.google.cloud.securitycenter.v1.ExternalSystem getDefaultInstan
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ExternalSystem parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new ExternalSystem(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ExternalSystem parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new ExternalSystem(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1452,6 +1599,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.securitycenter.v1.ExternalSystem getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemOrBuilder.java
similarity index 78%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemOrBuilder.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemOrBuilder.java
index 2f83a97f8..ccb54495b 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/external_system.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface ExternalSystemOrBuilder extends
+public interface ExternalSystemOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ExternalSystem)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * External System Name e.g. jira, demisto, etc.
    *  e.g.:
@@ -17,10 +35,13 @@ public interface ExternalSystemOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * External System Name e.g. jira, demisto, etc.
    *  e.g.:
@@ -30,115 +51,143 @@ public interface ExternalSystemOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * References primary/secondary etc assignees in the external system.
    * 
* * repeated string assignees = 2; + * * @return A list containing the assignees. */ - java.util.List - getAssigneesList(); + java.util.List getAssigneesList(); /** + * + * *
    * References primary/secondary etc assignees in the external system.
    * 
* * repeated string assignees = 2; + * * @return The count of assignees. */ int getAssigneesCount(); /** + * + * *
    * References primary/secondary etc assignees in the external system.
    * 
* * repeated string assignees = 2; + * * @param index The index of the element to return. * @return The assignees at the given index. */ java.lang.String getAssignees(int index); /** + * + * *
    * References primary/secondary etc assignees in the external system.
    * 
* * repeated string assignees = 2; + * * @param index The index of the value to return. * @return The bytes of the assignees at the given index. */ - com.google.protobuf.ByteString - getAssigneesBytes(int index); + com.google.protobuf.ByteString getAssigneesBytes(int index); /** + * + * *
    * Identifier that's used to track the given finding in the external system.
    * 
* * string external_uid = 3; + * * @return The externalUid. */ java.lang.String getExternalUid(); /** + * + * *
    * Identifier that's used to track the given finding in the external system.
    * 
* * string external_uid = 3; + * * @return The bytes for externalUid. */ - com.google.protobuf.ByteString - getExternalUidBytes(); + com.google.protobuf.ByteString getExternalUidBytes(); /** + * + * *
    * Most recent status of the corresponding finding's ticket/tracker in the
    * external system.
    * 
* * string status = 4; + * * @return The status. */ java.lang.String getStatus(); /** + * + * *
    * Most recent status of the corresponding finding's ticket/tracker in the
    * external system.
    * 
* * string status = 4; + * * @return The bytes for status. */ - com.google.protobuf.ByteString - getStatusBytes(); + com.google.protobuf.ByteString getStatusBytes(); /** + * + * *
    * The most recent time when the corresponding finding's ticket/tracker was
    * updated in the external system.
    * 
* * .google.protobuf.Timestamp external_system_update_time = 5; + * * @return Whether the externalSystemUpdateTime field is set. */ boolean hasExternalSystemUpdateTime(); /** + * + * *
    * The most recent time when the corresponding finding's ticket/tracker was
    * updated in the external system.
    * 
* * .google.protobuf.Timestamp external_system_update_time = 5; + * * @return The externalSystemUpdateTime. */ com.google.protobuf.Timestamp getExternalSystemUpdateTime(); /** + * + * *
    * The most recent time when the corresponding finding's ticket/tracker was
    * updated in the external system.
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemProto.java
new file mode 100644
index 000000000..e8f818e39
--- /dev/null
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemProto.java
@@ -0,0 +1,91 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/securitycenter/v1/external_system.proto
+
+package com.google.cloud.securitycenter.v1;
+
+public final class ExternalSystemProto {
+  private ExternalSystemProto() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n4google/cloud/securitycenter/v1/externa"
+          + "l_system.proto\022\036google.cloud.securitycen"
+          + "ter.v1\032\031google/api/resource.proto\032\037googl"
+          + "e/protobuf/timestamp.proto\"\340\003\n\016ExternalS"
+          + "ystem\022\014\n\004name\030\001 \001(\t\022\021\n\tassignees\030\002 \003(\t\022\024"
+          + "\n\014external_uid\030\003 \001(\t\022\016\n\006status\030\004 \001(\t\022?\n\033"
+          + "external_system_update_time\030\005 \001(\0132\032.goog"
+          + "le.protobuf.Timestamp:\305\002\352A\301\002\n,securityce"
+          + "nter.googleapis.com/ExternalSystem\022aorga"
+          + "nizations/{organization}/sources/{source"
+          + "}/findings/{finding}/externalSystems/{ex"
+          + "ternalsystem}\022Ufolders/{folder}/sources/"
+          + "{source}/findings/{finding}/externalSyst"
+          + "ems/{externalsystem}\022Wprojects/{project}"
+          + "/sources/{source}/findings/{finding}/ext"
+          + "ernalSystems/{externalsystem}B\357\001\n\"com.go"
+          + "ogle.cloud.securitycenter.v1B\023ExternalSy"
+          + "stemProtoP\001ZLgoogle.golang.org/genproto/"
+          + "googleapis/cloud/securitycenter/v1;secur"
+          + "itycenter\252\002\036Google.Cloud.SecurityCenter."
+          + "V1\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!Go"
+          + "ogle::Cloud::SecurityCenter::V1b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.protobuf.TimestampProto.getDescriptor(),
+            });
+    internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor,
+            new java.lang.String[] {
+              "Name", "Assignees", "ExternalUid", "Status", "ExternalSystemUpdateTime",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/File.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/File.java
similarity index 73%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/File.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/File.java
index aeae58185..693bf5ff4 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/File.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/File.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/file.proto
 
 package com.google.cloud.securitycenter.v1;
 
 /**
+ *
+ *
  * 
  * File information about the related binary/library used by an executable, or
  * the script used by a script interpreter
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.File}
  */
-public final class File extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class File extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.File)
     FileOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use File.newBuilder() to construct.
   private File(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private File() {
     path_ = "";
     sha256_ = "";
@@ -28,16 +46,15 @@ private File() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new File();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private File(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,46 +73,49 @@ private File(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            path_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            size_ = input.readInt64();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            sha256_ = s;
-            break;
-          }
-          case 32: {
-
-            hashedSize_ = input.readInt64();
-            break;
-          }
-          case 40: {
+              path_ = s;
+              break;
+            }
+          case 16:
+            {
+              size_ = input.readInt64();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            partiallyHashed_ = input.readBool();
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
+              sha256_ = s;
+              break;
+            }
+          case 32:
+            {
+              hashedSize_ = input.readInt64();
+              break;
+            }
+          case 40:
+            {
+              partiallyHashed_ = input.readBool();
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            contents_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              contents_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -103,34 +123,39 @@ private File(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1.FileProto.internal_static_google_cloud_securitycenter_v1_File_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1.FileProto
+        .internal_static_google_cloud_securitycenter_v1_File_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.FileProto.internal_static_google_cloud_securitycenter_v1_File_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.FileProto
+        .internal_static_google_cloud_securitycenter_v1_File_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.File.class, com.google.cloud.securitycenter.v1.File.Builder.class);
+            com.google.cloud.securitycenter.v1.File.class,
+            com.google.cloud.securitycenter.v1.File.Builder.class);
   }
 
   public static final int PATH_FIELD_NUMBER = 1;
   private volatile java.lang.Object path_;
   /**
+   *
+   *
    * 
    * Absolute path of the file as a JSON encoded string.
    * 
* * string path = 1; + * * @return The path. */ @java.lang.Override @@ -139,29 +164,29 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** + * + * *
    * Absolute path of the file as a JSON encoded string.
    * 
* * string path = 1; + * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -172,11 +197,14 @@ public java.lang.String getPath() { public static final int SIZE_FIELD_NUMBER = 2; private long size_; /** + * + * *
    * Size of the file in bytes.
    * 
* * int64 size = 2; + * * @return The size. */ @java.lang.Override @@ -187,6 +215,8 @@ public long getSize() { public static final int SHA256_FIELD_NUMBER = 3; private volatile java.lang.Object sha256_; /** + * + * *
    * SHA256 hash of the first hashed_size bytes of the file encoded as a
    * hex string.  If hashed_size == size, hash_sha256 represents the SHA256 hash
@@ -194,6 +224,7 @@ public long getSize() {
    * 
* * string sha256 = 3; + * * @return The sha256. */ @java.lang.Override @@ -202,14 +233,15 @@ public java.lang.String getSha256() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha256_ = s; return s; } } /** + * + * *
    * SHA256 hash of the first hashed_size bytes of the file encoded as a
    * hex string.  If hashed_size == size, hash_sha256 represents the SHA256 hash
@@ -217,16 +249,15 @@ public java.lang.String getSha256() {
    * 
* * string sha256 = 3; + * * @return The bytes for sha256. */ @java.lang.Override - public com.google.protobuf.ByteString - getSha256Bytes() { + public com.google.protobuf.ByteString getSha256Bytes() { java.lang.Object ref = sha256_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sha256_ = b; return b; } else { @@ -237,6 +268,8 @@ public java.lang.String getSha256() { public static final int HASHED_SIZE_FIELD_NUMBER = 4; private long hashedSize_; /** + * + * *
    * The length in bytes of the file prefix that was hashed.  If
    * hashed_size == size, any hashes reported represent the entire
@@ -244,6 +277,7 @@ public java.lang.String getSha256() {
    * 
* * int64 hashed_size = 4; + * * @return The hashedSize. */ @java.lang.Override @@ -254,11 +288,14 @@ public long getHashedSize() { public static final int PARTIALLY_HASHED_FIELD_NUMBER = 5; private boolean partiallyHashed_; /** + * + * *
    * True when the hash covers only a prefix of the file.
    * 
* * bool partially_hashed = 5; + * * @return The partiallyHashed. */ @java.lang.Override @@ -269,12 +306,15 @@ public boolean getPartiallyHashed() { public static final int CONTENTS_FIELD_NUMBER = 6; private volatile java.lang.Object contents_; /** + * + * *
    * Prefix of the file contents as a JSON encoded string.
    * (Currently only populated for Malicious Script Executed findings.)
    * 
* * string contents = 6; + * * @return The contents. */ @java.lang.Override @@ -283,30 +323,30 @@ public java.lang.String getContents() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contents_ = s; return s; } } /** + * + * *
    * Prefix of the file contents as a JSON encoded string.
    * (Currently only populated for Malicious Script Executed findings.)
    * 
* * string contents = 6; + * * @return The bytes for contents. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentsBytes() { + public com.google.protobuf.ByteString getContentsBytes() { java.lang.Object ref = contents_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); contents_ = b; return b; } else { @@ -315,6 +355,7 @@ public java.lang.String getContents() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,8 +367,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } @@ -359,19 +399,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } if (size_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, size_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, size_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sha256_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sha256_); } if (hashedSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, hashedSize_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, hashedSize_); } if (partiallyHashed_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, partiallyHashed_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, partiallyHashed_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contents_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, contents_); @@ -384,25 +421,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.File)) { return super.equals(obj); } com.google.cloud.securitycenter.v1.File other = (com.google.cloud.securitycenter.v1.File) obj; - if (!getPath() - .equals(other.getPath())) return false; - if (getSize() - != other.getSize()) return false; - if (!getSha256() - .equals(other.getSha256())) return false; - if (getHashedSize() - != other.getHashedSize()) return false; - if (getPartiallyHashed() - != other.getPartiallyHashed()) return false; - if (!getContents() - .equals(other.getContents())) return false; + if (!getPath().equals(other.getPath())) return false; + if (getSize() != other.getSize()) return false; + if (!getSha256().equals(other.getSha256())) return false; + if (getHashedSize() != other.getHashedSize()) return false; + if (getPartiallyHashed() != other.getPartiallyHashed()) return false; + if (!getContents().equals(other.getContents())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -417,16 +448,13 @@ public int hashCode() { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSize()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSize()); hash = (37 * hash) + SHA256_FIELD_NUMBER; hash = (53 * hash) + getSha256().hashCode(); hash = (37 * hash) + HASHED_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHashedSize()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHashedSize()); hash = (37 * hash) + PARTIALLY_HASHED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPartiallyHashed()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPartiallyHashed()); hash = (37 * hash) + CONTENTS_FIELD_NUMBER; hash = (53 * hash) + getContents().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -434,97 +462,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.File parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.File parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.File parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.File parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.File parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.File parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.File parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.File parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.File parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.File parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.File parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.File parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.File parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.File parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.File prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * File information about the related binary/library used by an executable, or
    * the script used by a script interpreter
@@ -532,21 +567,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.File}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.File)
       com.google.cloud.securitycenter.v1.FileOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.FileProto.internal_static_google_cloud_securitycenter_v1_File_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.FileProto
+          .internal_static_google_cloud_securitycenter_v1_File_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.FileProto.internal_static_google_cloud_securitycenter_v1_File_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.FileProto
+          .internal_static_google_cloud_securitycenter_v1_File_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.File.class, com.google.cloud.securitycenter.v1.File.Builder.class);
+              com.google.cloud.securitycenter.v1.File.class,
+              com.google.cloud.securitycenter.v1.File.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.File.newBuilder()
@@ -554,16 +591,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -583,9 +619,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.FileProto.internal_static_google_cloud_securitycenter_v1_File_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.FileProto
+          .internal_static_google_cloud_securitycenter_v1_File_descriptor;
     }
 
     @java.lang.Override
@@ -604,7 +640,8 @@ public com.google.cloud.securitycenter.v1.File build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.File buildPartial() {
-      com.google.cloud.securitycenter.v1.File result = new com.google.cloud.securitycenter.v1.File(this);
+      com.google.cloud.securitycenter.v1.File result =
+          new com.google.cloud.securitycenter.v1.File(this);
       result.path_ = path_;
       result.size_ = size_;
       result.sha256_ = sha256_;
@@ -619,38 +656,39 @@ public com.google.cloud.securitycenter.v1.File buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.File) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.File)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.File) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -711,18 +749,20 @@ public Builder mergeFrom(
 
     private java.lang.Object path_ = "";
     /**
+     *
+     *
      * 
      * Absolute path of the file as a JSON encoded string.
      * 
* * string path = 1; + * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -731,20 +771,21 @@ public java.lang.String getPath() { } } /** + * + * *
      * Absolute path of the file as a JSON encoded string.
      * 
* * string path = 1; + * * @return The bytes for path. */ - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -752,66 +793,76 @@ public java.lang.String getPath() { } } /** + * + * *
      * Absolute path of the file as a JSON encoded string.
      * 
* * string path = 1; + * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath( - java.lang.String value) { + public Builder setPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + path_ = value; onChanged(); return this; } /** + * + * *
      * Absolute path of the file as a JSON encoded string.
      * 
* * string path = 1; + * * @return This builder for chaining. */ public Builder clearPath() { - + path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** + * + * *
      * Absolute path of the file as a JSON encoded string.
      * 
* * string path = 1; + * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { + public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; onChanged(); return this; } - private long size_ ; + private long size_; /** + * + * *
      * Size of the file in bytes.
      * 
* * int64 size = 2; + * * @return The size. */ @java.lang.Override @@ -819,30 +870,36 @@ public long getSize() { return size_; } /** + * + * *
      * Size of the file in bytes.
      * 
* * int64 size = 2; + * * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(long value) { - + size_ = value; onChanged(); return this; } /** + * + * *
      * Size of the file in bytes.
      * 
* * int64 size = 2; + * * @return This builder for chaining. */ public Builder clearSize() { - + size_ = 0L; onChanged(); return this; @@ -850,6 +907,8 @@ public Builder clearSize() { private java.lang.Object sha256_ = ""; /** + * + * *
      * SHA256 hash of the first hashed_size bytes of the file encoded as a
      * hex string.  If hashed_size == size, hash_sha256 represents the SHA256 hash
@@ -857,13 +916,13 @@ public Builder clearSize() {
      * 
* * string sha256 = 3; + * * @return The sha256. */ public java.lang.String getSha256() { java.lang.Object ref = sha256_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha256_ = s; return s; @@ -872,6 +931,8 @@ public java.lang.String getSha256() { } } /** + * + * *
      * SHA256 hash of the first hashed_size bytes of the file encoded as a
      * hex string.  If hashed_size == size, hash_sha256 represents the SHA256 hash
@@ -879,15 +940,14 @@ public java.lang.String getSha256() {
      * 
* * string sha256 = 3; + * * @return The bytes for sha256. */ - public com.google.protobuf.ByteString - getSha256Bytes() { + public com.google.protobuf.ByteString getSha256Bytes() { java.lang.Object ref = sha256_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sha256_ = b; return b; } else { @@ -895,6 +955,8 @@ public java.lang.String getSha256() { } } /** + * + * *
      * SHA256 hash of the first hashed_size bytes of the file encoded as a
      * hex string.  If hashed_size == size, hash_sha256 represents the SHA256 hash
@@ -902,20 +964,22 @@ public java.lang.String getSha256() {
      * 
* * string sha256 = 3; + * * @param value The sha256 to set. * @return This builder for chaining. */ - public Builder setSha256( - java.lang.String value) { + public Builder setSha256(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sha256_ = value; onChanged(); return this; } /** + * + * *
      * SHA256 hash of the first hashed_size bytes of the file encoded as a
      * hex string.  If hashed_size == size, hash_sha256 represents the SHA256 hash
@@ -923,15 +987,18 @@ public Builder setSha256(
      * 
* * string sha256 = 3; + * * @return This builder for chaining. */ public Builder clearSha256() { - + sha256_ = getDefaultInstance().getSha256(); onChanged(); return this; } /** + * + * *
      * SHA256 hash of the first hashed_size bytes of the file encoded as a
      * hex string.  If hashed_size == size, hash_sha256 represents the SHA256 hash
@@ -939,23 +1006,25 @@ public Builder clearSha256() {
      * 
* * string sha256 = 3; + * * @param value The bytes for sha256 to set. * @return This builder for chaining. */ - public Builder setSha256Bytes( - com.google.protobuf.ByteString value) { + public Builder setSha256Bytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sha256_ = value; onChanged(); return this; } - private long hashedSize_ ; + private long hashedSize_; /** + * + * *
      * The length in bytes of the file prefix that was hashed.  If
      * hashed_size == size, any hashes reported represent the entire
@@ -963,6 +1032,7 @@ public Builder setSha256Bytes(
      * 
* * int64 hashed_size = 4; + * * @return The hashedSize. */ @java.lang.Override @@ -970,6 +1040,8 @@ public long getHashedSize() { return hashedSize_; } /** + * + * *
      * The length in bytes of the file prefix that was hashed.  If
      * hashed_size == size, any hashes reported represent the entire
@@ -977,16 +1049,19 @@ public long getHashedSize() {
      * 
* * int64 hashed_size = 4; + * * @param value The hashedSize to set. * @return This builder for chaining. */ public Builder setHashedSize(long value) { - + hashedSize_ = value; onChanged(); return this; } /** + * + * *
      * The length in bytes of the file prefix that was hashed.  If
      * hashed_size == size, any hashes reported represent the entire
@@ -994,22 +1069,26 @@ public Builder setHashedSize(long value) {
      * 
* * int64 hashed_size = 4; + * * @return This builder for chaining. */ public Builder clearHashedSize() { - + hashedSize_ = 0L; onChanged(); return this; } - private boolean partiallyHashed_ ; + private boolean partiallyHashed_; /** + * + * *
      * True when the hash covers only a prefix of the file.
      * 
* * bool partially_hashed = 5; + * * @return The partiallyHashed. */ @java.lang.Override @@ -1017,30 +1096,36 @@ public boolean getPartiallyHashed() { return partiallyHashed_; } /** + * + * *
      * True when the hash covers only a prefix of the file.
      * 
* * bool partially_hashed = 5; + * * @param value The partiallyHashed to set. * @return This builder for chaining. */ public Builder setPartiallyHashed(boolean value) { - + partiallyHashed_ = value; onChanged(); return this; } /** + * + * *
      * True when the hash covers only a prefix of the file.
      * 
* * bool partially_hashed = 5; + * * @return This builder for chaining. */ public Builder clearPartiallyHashed() { - + partiallyHashed_ = false; onChanged(); return this; @@ -1048,19 +1133,21 @@ public Builder clearPartiallyHashed() { private java.lang.Object contents_ = ""; /** + * + * *
      * Prefix of the file contents as a JSON encoded string.
      * (Currently only populated for Malicious Script Executed findings.)
      * 
* * string contents = 6; + * * @return The contents. */ public java.lang.String getContents() { java.lang.Object ref = contents_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contents_ = s; return s; @@ -1069,21 +1156,22 @@ public java.lang.String getContents() { } } /** + * + * *
      * Prefix of the file contents as a JSON encoded string.
      * (Currently only populated for Malicious Script Executed findings.)
      * 
* * string contents = 6; + * * @return The bytes for contents. */ - public com.google.protobuf.ByteString - getContentsBytes() { + public com.google.protobuf.ByteString getContentsBytes() { java.lang.Object ref = contents_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); contents_ = b; return b; } else { @@ -1091,64 +1179,71 @@ public java.lang.String getContents() { } } /** + * + * *
      * Prefix of the file contents as a JSON encoded string.
      * (Currently only populated for Malicious Script Executed findings.)
      * 
* * string contents = 6; + * * @param value The contents to set. * @return This builder for chaining. */ - public Builder setContents( - java.lang.String value) { + public Builder setContents(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + contents_ = value; onChanged(); return this; } /** + * + * *
      * Prefix of the file contents as a JSON encoded string.
      * (Currently only populated for Malicious Script Executed findings.)
      * 
* * string contents = 6; + * * @return This builder for chaining. */ public Builder clearContents() { - + contents_ = getDefaultInstance().getContents(); onChanged(); return this; } /** + * + * *
      * Prefix of the file contents as a JSON encoded string.
      * (Currently only populated for Malicious Script Executed findings.)
      * 
* * string contents = 6; + * * @param value The bytes for contents to set. * @return This builder for chaining. */ - public Builder setContentsBytes( - com.google.protobuf.ByteString value) { + public Builder setContentsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contents_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1158,12 +1253,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.File) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.File) private static final com.google.cloud.securitycenter.v1.File DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.File(); } @@ -1172,16 +1267,16 @@ public static com.google.cloud.securitycenter.v1.File getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public File parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new File(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public File parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new File(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1196,6 +1291,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.File getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileOrBuilder.java index 45b8a8843..b48ec9954 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileOrBuilder.java @@ -1,43 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/file.proto package com.google.cloud.securitycenter.v1; -public interface FileOrBuilder extends +public interface FileOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.File) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Absolute path of the file as a JSON encoded string.
    * 
* * string path = 1; + * * @return The path. */ java.lang.String getPath(); /** + * + * *
    * Absolute path of the file as a JSON encoded string.
    * 
* * string path = 1; + * * @return The bytes for path. */ - com.google.protobuf.ByteString - getPathBytes(); + com.google.protobuf.ByteString getPathBytes(); /** + * + * *
    * Size of the file in bytes.
    * 
* * int64 size = 2; + * * @return The size. */ long getSize(); /** + * + * *
    * SHA256 hash of the first hashed_size bytes of the file encoded as a
    * hex string.  If hashed_size == size, hash_sha256 represents the SHA256 hash
@@ -45,10 +71,13 @@ public interface FileOrBuilder extends
    * 
* * string sha256 = 3; + * * @return The sha256. */ java.lang.String getSha256(); /** + * + * *
    * SHA256 hash of the first hashed_size bytes of the file encoded as a
    * hex string.  If hashed_size == size, hash_sha256 represents the SHA256 hash
@@ -56,12 +85,14 @@ public interface FileOrBuilder extends
    * 
* * string sha256 = 3; + * * @return The bytes for sha256. */ - com.google.protobuf.ByteString - getSha256Bytes(); + com.google.protobuf.ByteString getSha256Bytes(); /** + * + * *
    * The length in bytes of the file prefix that was hashed.  If
    * hashed_size == size, any hashes reported represent the entire
@@ -69,39 +100,48 @@ public interface FileOrBuilder extends
    * 
* * int64 hashed_size = 4; + * * @return The hashedSize. */ long getHashedSize(); /** + * + * *
    * True when the hash covers only a prefix of the file.
    * 
* * bool partially_hashed = 5; + * * @return The partiallyHashed. */ boolean getPartiallyHashed(); /** + * + * *
    * Prefix of the file contents as a JSON encoded string.
    * (Currently only populated for Malicious Script Executed findings.)
    * 
* * string contents = 6; + * * @return The contents. */ java.lang.String getContents(); /** + * + * *
    * Prefix of the file contents as a JSON encoded string.
    * (Currently only populated for Malicious Script Executed findings.)
    * 
* * string contents = 6; + * * @return The bytes for contents. */ - com.google.protobuf.ByteString - getContentsBytes(); + com.google.protobuf.ByteString getContentsBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileProto.java new file mode 100644 index 000000000..2f6f2c0f9 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FileProto.java @@ -0,0 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/file.proto + +package com.google.cloud.securitycenter.v1; + +public final class FileProto { + private FileProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_File_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_File_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/securitycenter/v1/file.pr" + + "oto\022\036google.cloud.securitycenter.v1\"s\n\004F" + + "ile\022\014\n\004path\030\001 \001(\t\022\014\n\004size\030\002 \001(\003\022\016\n\006sha25" + + "6\030\003 \001(\t\022\023\n\013hashed_size\030\004 \001(\003\022\030\n\020partiall" + + "y_hashed\030\005 \001(\010\022\020\n\010contents\030\006 \001(\tB\345\001\n\"com" + + ".google.cloud.securitycenter.v1B\tFilePro" + + "toP\001ZLgoogle.golang.org/genproto/googlea" + + "pis/cloud/securitycenter/v1;securitycent" + + "er\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036Go" + + "ogle\\Cloud\\SecurityCenter\\V1\352\002!Google::C" + + "loud::SecurityCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_securitycenter_v1_File_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_File_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_File_descriptor, + new java.lang.String[] { + "Path", "Size", "Sha256", "HashedSize", "PartiallyHashed", "Contents", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java index 44d5e078a..e1c0d0890 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/finding.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Security Command Center finding.
  * A finding is a record of assessment data like security, risk, health, or
@@ -15,15 +32,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.Finding}
  */
-public final class Finding extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Finding extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Finding)
     FindingOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Finding.newBuilder() to construct.
   private Finding(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Finding() {
     name_ = "";
     parent_ = "";
@@ -46,16 +64,15 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Finding();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Finding(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,270 +92,329 @@ private Finding(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            parent_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              parent_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            resourceName_ = s;
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
+              resourceName_ = s;
+              break;
+            }
+          case 32:
+            {
+              int rawValue = input.readEnum();
 
-            state_ = rawValue;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+              state_ = rawValue;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            category_ = s;
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
+              category_ = s;
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            externalUri_ = s;
-            break;
-          }
-          case 58: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              sourceProperties_ = com.google.protobuf.MapField.newMapField(
-                  SourcePropertiesDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              externalUri_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            sourceProperties__ = input.readMessage(
-                SourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            sourceProperties_.getMutableMap().put(
-                sourceProperties__.getKey(), sourceProperties__.getValue());
-            break;
-          }
-          case 66: {
-            com.google.cloud.securitycenter.v1.SecurityMarks.Builder subBuilder = null;
-            if (securityMarks_ != null) {
-              subBuilder = securityMarks_.toBuilder();
+          case 58:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                sourceProperties_ =
+                    com.google.protobuf.MapField.newMapField(
+                        SourcePropertiesDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry
+                  sourceProperties__ =
+                      input.readMessage(
+                          SourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
+                          extensionRegistry);
+              sourceProperties_
+                  .getMutableMap()
+                  .put(sourceProperties__.getKey(), sourceProperties__.getValue());
+              break;
             }
-            securityMarks_ = input.readMessage(com.google.cloud.securitycenter.v1.SecurityMarks.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(securityMarks_);
-              securityMarks_ = subBuilder.buildPartial();
+          case 66:
+            {
+              com.google.cloud.securitycenter.v1.SecurityMarks.Builder subBuilder = null;
+              if (securityMarks_ != null) {
+                subBuilder = securityMarks_.toBuilder();
+              }
+              securityMarks_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1.SecurityMarks.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(securityMarks_);
+                securityMarks_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 74: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (eventTime_ != null) {
-              subBuilder = eventTime_.toBuilder();
+          case 74:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (eventTime_ != null) {
+                subBuilder = eventTime_.toBuilder();
+              }
+              eventTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(eventTime_);
+                eventTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            eventTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(eventTime_);
-              eventTime_ = subBuilder.buildPartial();
+          case 82:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 96:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 82: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              severity_ = rawValue;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 96: {
-            int rawValue = input.readEnum();
-
-            severity_ = rawValue;
-            break;
-          }
-          case 114: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            canonicalName_ = s;
-            break;
-          }
-          case 120: {
-            int rawValue = input.readEnum();
-
-            mute_ = rawValue;
-            break;
-          }
-          case 136: {
-            int rawValue = input.readEnum();
+          case 114:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            findingClass_ = rawValue;
-            break;
-          }
-          case 146: {
-            com.google.cloud.securitycenter.v1.Indicator.Builder subBuilder = null;
-            if (indicator_ != null) {
-              subBuilder = indicator_.toBuilder();
-            }
-            indicator_ = input.readMessage(com.google.cloud.securitycenter.v1.Indicator.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(indicator_);
-              indicator_ = subBuilder.buildPartial();
+              canonicalName_ = s;
+              break;
             }
+          case 120:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 162: {
-            com.google.cloud.securitycenter.v1.Vulnerability.Builder subBuilder = null;
-            if (vulnerability_ != null) {
-              subBuilder = vulnerability_.toBuilder();
-            }
-            vulnerability_ = input.readMessage(com.google.cloud.securitycenter.v1.Vulnerability.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(vulnerability_);
-              vulnerability_ = subBuilder.buildPartial();
+              mute_ = rawValue;
+              break;
             }
+          case 136:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 170: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (muteUpdateTime_ != null) {
-              subBuilder = muteUpdateTime_.toBuilder();
+              findingClass_ = rawValue;
+              break;
             }
-            muteUpdateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(muteUpdateTime_);
-              muteUpdateTime_ = subBuilder.buildPartial();
+          case 146:
+            {
+              com.google.cloud.securitycenter.v1.Indicator.Builder subBuilder = null;
+              if (indicator_ != null) {
+                subBuilder = indicator_.toBuilder();
+              }
+              indicator_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1.Indicator.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(indicator_);
+                indicator_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 178: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              externalSystems_ = com.google.protobuf.MapField.newMapField(
-                  ExternalSystemsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000002;
+          case 162:
+            {
+              com.google.cloud.securitycenter.v1.Vulnerability.Builder subBuilder = null;
+              if (vulnerability_ != null) {
+                subBuilder = vulnerability_.toBuilder();
+              }
+              vulnerability_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1.Vulnerability.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(vulnerability_);
+                vulnerability_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            com.google.protobuf.MapEntry
-            externalSystems__ = input.readMessage(
-                ExternalSystemsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            externalSystems_.getMutableMap().put(
-                externalSystems__.getKey(), externalSystems__.getValue());
-            break;
-          }
-          case 202: {
-            com.google.cloud.securitycenter.v1.MitreAttack.Builder subBuilder = null;
-            if (mitreAttack_ != null) {
-              subBuilder = mitreAttack_.toBuilder();
+          case 170:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (muteUpdateTime_ != null) {
+                subBuilder = muteUpdateTime_.toBuilder();
+              }
+              muteUpdateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(muteUpdateTime_);
+                muteUpdateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            mitreAttack_ = input.readMessage(com.google.cloud.securitycenter.v1.MitreAttack.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(mitreAttack_);
-              mitreAttack_ = subBuilder.buildPartial();
+          case 178:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                externalSystems_ =
+                    com.google.protobuf.MapField.newMapField(
+                        ExternalSystemsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000002;
+              }
+              com.google.protobuf.MapEntry<
+                      java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem>
+                  externalSystems__ =
+                      input.readMessage(
+                          ExternalSystemsDefaultEntryHolder.defaultEntry.getParserForType(),
+                          extensionRegistry);
+              externalSystems_
+                  .getMutableMap()
+                  .put(externalSystems__.getKey(), externalSystems__.getValue());
+              break;
             }
-
-            break;
-          }
-          case 210: {
-            com.google.cloud.securitycenter.v1.Access.Builder subBuilder = null;
-            if (access_ != null) {
-              subBuilder = access_.toBuilder();
+          case 202:
+            {
+              com.google.cloud.securitycenter.v1.MitreAttack.Builder subBuilder = null;
+              if (mitreAttack_ != null) {
+                subBuilder = mitreAttack_.toBuilder();
+              }
+              mitreAttack_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1.MitreAttack.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(mitreAttack_);
+                mitreAttack_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            access_ = input.readMessage(com.google.cloud.securitycenter.v1.Access.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(access_);
-              access_ = subBuilder.buildPartial();
+          case 210:
+            {
+              com.google.cloud.securitycenter.v1.Access.Builder subBuilder = null;
+              if (access_ != null) {
+                subBuilder = access_.toBuilder();
+              }
+              access_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1.Access.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(access_);
+                access_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 226:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 226: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            muteInitiator_ = s;
-            break;
-          }
-          case 242: {
-            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-              processes_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000008;
+              muteInitiator_ = s;
+              break;
             }
-            processes_.add(
-                input.readMessage(com.google.cloud.securitycenter.v1.Process.parser(), extensionRegistry));
-            break;
-          }
-          case 250: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              connections_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000004;
+          case 242:
+            {
+              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+                processes_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000008;
+              }
+              processes_.add(
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1.Process.parser(), extensionRegistry));
+              break;
             }
-            connections_.add(
-                input.readMessage(com.google.cloud.securitycenter.v1.Connection.parser(), extensionRegistry));
-            break;
-          }
-          case 274: {
-            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-              compliances_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000010;
+          case 250:
+            {
+              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                connections_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000004;
+              }
+              connections_.add(
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1.Connection.parser(), extensionRegistry));
+              break;
             }
-            compliances_.add(
-                input.readMessage(com.google.cloud.securitycenter.v1.Compliance.parser(), extensionRegistry));
-            break;
-          }
-          case 298: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 274:
+            {
+              if (!((mutable_bitField0_ & 0x00000010) != 0)) {
+                compliances_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000010;
+              }
+              compliances_.add(
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1.Compliance.parser(), extensionRegistry));
+              break;
+            }
+          case 298:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          case 306: {
-            com.google.cloud.securitycenter.v1.Exfiltration.Builder subBuilder = null;
-            if (exfiltration_ != null) {
-              subBuilder = exfiltration_.toBuilder();
+              description_ = s;
+              break;
             }
-            exfiltration_ = input.readMessage(com.google.cloud.securitycenter.v1.Exfiltration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(exfiltration_);
-              exfiltration_ = subBuilder.buildPartial();
+          case 306:
+            {
+              com.google.cloud.securitycenter.v1.Exfiltration.Builder subBuilder = null;
+              if (exfiltration_ != null) {
+                subBuilder = exfiltration_.toBuilder();
+              }
+              exfiltration_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1.Exfiltration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(exfiltration_);
+                exfiltration_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 314: {
-            if (!((mutable_bitField0_ & 0x00000020) != 0)) {
-              iamBindings_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000020;
+          case 314:
+            {
+              if (!((mutable_bitField0_ & 0x00000020) != 0)) {
+                iamBindings_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000020;
+              }
+              iamBindings_.add(
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1.IamBinding.parser(), extensionRegistry));
+              break;
             }
-            iamBindings_.add(
-                input.readMessage(com.google.cloud.securitycenter.v1.IamBinding.parser(), extensionRegistry));
-            break;
-          }
-          case 322: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 322:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            nextSteps_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              nextSteps_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -346,8 +422,7 @@ private Finding(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000008) != 0)) {
         processes_ = java.util.Collections.unmodifiableList(processes_);
@@ -365,43 +440,48 @@ private Finding(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1_Finding_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1.FindingOuterClass
+        .internal_static_google_cloud_securitycenter_v1_Finding_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 7:
         return internalGetSourceProperties();
       case 22:
         return internalGetExternalSystems();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.FindingOuterClass
+        .internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.Finding.class, com.google.cloud.securitycenter.v1.Finding.Builder.class);
+            com.google.cloud.securitycenter.v1.Finding.class,
+            com.google.cloud.securitycenter.v1.Finding.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The state of the finding.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1.Finding.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified state.
      * 
@@ -410,6 +490,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The finding requires attention and has not been addressed yet.
      * 
@@ -418,6 +500,8 @@ public enum State */ ACTIVE(1), /** + * + * *
      * The finding has been fixed, triaged as a non-issue or otherwise addressed
      * and is no longer active.
@@ -430,6 +514,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified state.
      * 
@@ -438,6 +524,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The finding requires attention and has not been addressed yet.
      * 
@@ -446,6 +534,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
      * The finding has been fixed, triaged as a non-issue or otherwise addressed
      * and is no longer active.
@@ -455,7 +545,6 @@ public enum State
      */
     public static final int INACTIVE_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -480,49 +569,49 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return ACTIVE;
-        case 2: return INACTIVE;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return ACTIVE;
+        case 2:
+          return INACTIVE;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.securitycenter.v1.Finding.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -540,15 +629,18 @@ private State(int value) {
   }
 
   /**
+   *
+   *
    * 
    * The severity of the finding.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1.Finding.Severity} */ - public enum Severity - implements com.google.protobuf.ProtocolMessageEnum { + public enum Severity implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * This value is used for findings when a source doesn't write a severity
      * value.
@@ -558,6 +650,8 @@ public enum Severity
      */
     SEVERITY_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * Vulnerability:
      * A critical vulnerability is easily discoverable by an external actor,
@@ -574,6 +668,8 @@ public enum Severity
      */
     CRITICAL(1),
     /**
+     *
+     *
      * 
      * Vulnerability:
      * A high risk vulnerability can be easily discovered and exploited in
@@ -593,6 +689,8 @@ public enum Severity
      */
     HIGH(2),
     /**
+     *
+     *
      * 
      * Vulnerability:
      * A medium risk vulnerability could be used by an actor to gain access to
@@ -611,6 +709,8 @@ public enum Severity
      */
     MEDIUM(3),
     /**
+     *
+     *
      * 
      * Vulnerability:
      * A low risk vulnerability hampers a security organization's ability to
@@ -629,6 +729,8 @@ public enum Severity
     ;
 
     /**
+     *
+     *
      * 
      * This value is used for findings when a source doesn't write a severity
      * value.
@@ -638,6 +740,8 @@ public enum Severity
      */
     public static final int SEVERITY_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Vulnerability:
      * A critical vulnerability is easily discoverable by an external actor,
@@ -654,6 +758,8 @@ public enum Severity
      */
     public static final int CRITICAL_VALUE = 1;
     /**
+     *
+     *
      * 
      * Vulnerability:
      * A high risk vulnerability can be easily discovered and exploited in
@@ -673,6 +779,8 @@ public enum Severity
      */
     public static final int HIGH_VALUE = 2;
     /**
+     *
+     *
      * 
      * Vulnerability:
      * A medium risk vulnerability could be used by an actor to gain access to
@@ -691,6 +799,8 @@ public enum Severity
      */
     public static final int MEDIUM_VALUE = 3;
     /**
+     *
+     *
      * 
      * Vulnerability:
      * A low risk vulnerability hampers a security organization's ability to
@@ -706,7 +816,6 @@ public enum Severity
      */
     public static final int LOW_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -731,51 +840,53 @@ public static Severity valueOf(int value) {
      */
     public static Severity forNumber(int value) {
       switch (value) {
-        case 0: return SEVERITY_UNSPECIFIED;
-        case 1: return CRITICAL;
-        case 2: return HIGH;
-        case 3: return MEDIUM;
-        case 4: return LOW;
-        default: return null;
+        case 0:
+          return SEVERITY_UNSPECIFIED;
+        case 1:
+          return CRITICAL;
+        case 2:
+          return HIGH;
+        case 3:
+          return MEDIUM;
+        case 4:
+          return LOW;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        Severity> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Severity findValueByNumber(int number) {
-              return Severity.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Severity findValueByNumber(int number) {
+            return Severity.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.securitycenter.v1.Finding.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final Severity[] VALUES = values();
 
-    public static Severity valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -793,15 +904,18 @@ private Severity(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Mute state a finding can be in.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1.Finding.Mute} */ - public enum Mute - implements com.google.protobuf.ProtocolMessageEnum { + public enum Mute implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified.
      * 
@@ -810,6 +924,8 @@ public enum Mute */ MUTE_UNSPECIFIED(0), /** + * + * *
      * Finding has been muted.
      * 
@@ -818,6 +934,8 @@ public enum Mute */ MUTED(1), /** + * + * *
      * Finding has been unmuted.
      * 
@@ -826,6 +944,8 @@ public enum Mute */ UNMUTED(2), /** + * + * *
      * Finding has never been muted/unmuted.
      * 
@@ -837,6 +957,8 @@ public enum Mute ; /** + * + * *
      * Unspecified.
      * 
@@ -845,6 +967,8 @@ public enum Mute */ public static final int MUTE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Finding has been muted.
      * 
@@ -853,6 +977,8 @@ public enum Mute */ public static final int MUTED_VALUE = 1; /** + * + * *
      * Finding has been unmuted.
      * 
@@ -861,6 +987,8 @@ public enum Mute */ public static final int UNMUTED_VALUE = 2; /** + * + * *
      * Finding has never been muted/unmuted.
      * 
@@ -869,7 +997,6 @@ public enum Mute */ public static final int UNDEFINED_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -894,50 +1021,51 @@ public static Mute valueOf(int value) { */ public static Mute forNumber(int value) { switch (value) { - case 0: return MUTE_UNSPECIFIED; - case 1: return MUTED; - case 2: return UNMUTED; - case 4: return UNDEFINED; - default: return null; + case 0: + return MUTE_UNSPECIFIED; + case 1: + return MUTED; + case 2: + return UNMUTED; + case 4: + return UNDEFINED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Mute> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Mute findValueByNumber(int number) { - return Mute.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mute findValueByNumber(int number) { + return Mute.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.securitycenter.v1.Finding.getDescriptor().getEnumTypes().get(2); } private static final Mute[] VALUES = values(); - public static Mute valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Mute valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -955,15 +1083,18 @@ private Mute(int value) { } /** + * + * *
    * Represents what kind of Finding it is.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1.Finding.FindingClass} */ - public enum FindingClass - implements com.google.protobuf.ProtocolMessageEnum { + public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified finding class.
      * 
@@ -972,6 +1103,8 @@ public enum FindingClass */ FINDING_CLASS_UNSPECIFIED(0), /** + * + * *
      * Describes unwanted or malicious activity.
      * 
@@ -980,6 +1113,8 @@ public enum FindingClass */ THREAT(1), /** + * + * *
      * Describes a potential weakness in software that increases risk to
      * Confidentiality & Integrity & Availability.
@@ -989,6 +1124,8 @@ public enum FindingClass
      */
     VULNERABILITY(2),
     /**
+     *
+     *
      * 
      * Describes a potential weakness in cloud resource/asset configuration that
      * increases risk.
@@ -998,6 +1135,8 @@ public enum FindingClass
      */
     MISCONFIGURATION(3),
     /**
+     *
+     *
      * 
      * Describes a security observation that is for informational purposes.
      * 
@@ -1006,6 +1145,8 @@ public enum FindingClass */ OBSERVATION(4), /** + * + * *
      * Describes an error that prevents some SCC functionality.
      * 
@@ -1017,6 +1158,8 @@ public enum FindingClass ; /** + * + * *
      * Unspecified finding class.
      * 
@@ -1025,6 +1168,8 @@ public enum FindingClass */ public static final int FINDING_CLASS_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Describes unwanted or malicious activity.
      * 
@@ -1033,6 +1178,8 @@ public enum FindingClass */ public static final int THREAT_VALUE = 1; /** + * + * *
      * Describes a potential weakness in software that increases risk to
      * Confidentiality & Integrity & Availability.
@@ -1042,6 +1189,8 @@ public enum FindingClass
      */
     public static final int VULNERABILITY_VALUE = 2;
     /**
+     *
+     *
      * 
      * Describes a potential weakness in cloud resource/asset configuration that
      * increases risk.
@@ -1051,6 +1200,8 @@ public enum FindingClass
      */
     public static final int MISCONFIGURATION_VALUE = 3;
     /**
+     *
+     *
      * 
      * Describes a security observation that is for informational purposes.
      * 
@@ -1059,6 +1210,8 @@ public enum FindingClass */ public static final int OBSERVATION_VALUE = 4; /** + * + * *
      * Describes an error that prevents some SCC functionality.
      * 
@@ -1067,7 +1220,6 @@ public enum FindingClass */ public static final int SCC_ERROR_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1092,52 +1244,55 @@ public static FindingClass valueOf(int value) { */ public static FindingClass forNumber(int value) { switch (value) { - case 0: return FINDING_CLASS_UNSPECIFIED; - case 1: return THREAT; - case 2: return VULNERABILITY; - case 3: return MISCONFIGURATION; - case 4: return OBSERVATION; - case 5: return SCC_ERROR; - default: return null; + case 0: + return FINDING_CLASS_UNSPECIFIED; + case 1: + return THREAT; + case 2: + return VULNERABILITY; + case 3: + return MISCONFIGURATION; + case 4: + return OBSERVATION; + case 5: + return SCC_ERROR; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - FindingClass> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FindingClass findValueByNumber(int number) { - return FindingClass.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FindingClass findValueByNumber(int number) { + return FindingClass.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.securitycenter.v1.Finding.getDescriptor().getEnumTypes().get(3); } private static final FindingClass[] VALUES = values(); - public static FindingClass valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static FindingClass valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1157,6 +1312,8 @@ private FindingClass(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1165,6 +1322,7 @@ private FindingClass(int value) {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -1173,14 +1331,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1189,16 +1348,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1209,6 +1367,8 @@ public java.lang.String getName() { public static final int PARENT_FIELD_NUMBER = 2; private volatile java.lang.Object parent_; /** + * + * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1218,6 +1378,7 @@ public java.lang.String getName() {
    * 
* * string parent = 2; + * * @return The parent. */ @java.lang.Override @@ -1226,14 +1387,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1243,16 +1405,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 2; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1263,6 +1424,8 @@ public java.lang.String getParent() { public static final int RESOURCE_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object resourceName_; /** + * + * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -1273,6 +1436,7 @@ public java.lang.String getParent() {
    * 
* * string resource_name = 3; + * * @return The resourceName. */ @java.lang.Override @@ -1281,14 +1445,15 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** + * + * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -1299,16 +1464,15 @@ public java.lang.String getResourceName() {
    * 
* * string resource_name = 3; + * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -1319,33 +1483,44 @@ public java.lang.String getResourceName() { public static final int STATE_FIELD_NUMBER = 4; private int state_; /** + * + * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.State state = 4; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.State state = 4; + * * @return The state. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.State getState() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.State result = com.google.cloud.securitycenter.v1.Finding.State.valueOf(state_); + com.google.cloud.securitycenter.v1.Finding.State result = + com.google.cloud.securitycenter.v1.Finding.State.valueOf(state_); return result == null ? com.google.cloud.securitycenter.v1.Finding.State.UNRECOGNIZED : result; } public static final int CATEGORY_FIELD_NUMBER = 5; private volatile java.lang.Object category_; /** + * + * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -1353,6 +1528,7 @@ public java.lang.String getResourceName() {
    * 
* * string category = 5; + * * @return The category. */ @java.lang.Override @@ -1361,14 +1537,15 @@ public java.lang.String getCategory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; } } /** + * + * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -1376,16 +1553,15 @@ public java.lang.String getCategory() {
    * 
* * string category = 5; + * * @return The bytes for category. */ @java.lang.Override - public com.google.protobuf.ByteString - getCategoryBytes() { + public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); category_ = b; return b; } else { @@ -1396,6 +1572,8 @@ public java.lang.String getCategory() { public static final int EXTERNAL_URI_FIELD_NUMBER = 6; private volatile java.lang.Object externalUri_; /** + * + * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -1403,6 +1581,7 @@ public java.lang.String getCategory() {
    * 
* * string external_uri = 6; + * * @return The externalUri. */ @java.lang.Override @@ -1411,14 +1590,15 @@ public java.lang.String getExternalUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalUri_ = s; return s; } } /** + * + * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -1426,16 +1606,15 @@ public java.lang.String getExternalUri() {
    * 
* * string external_uri = 6; + * * @return The bytes for externalUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getExternalUriBytes() { + public com.google.protobuf.ByteString getExternalUriBytes() { java.lang.Object ref = externalUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalUri_ = b; return b; } else { @@ -1444,21 +1623,25 @@ public java.lang.String getExternalUri() { } public static final int SOURCE_PROPERTIES_FIELD_NUMBER = 7; + private static final class SourcePropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.Value> defaultEntry = + static final com.google.protobuf.MapEntry + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.securitycenter.v1.FindingOuterClass + .internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> sourceProperties_; + + private com.google.protobuf.MapField + sourceProperties_; + private com.google.protobuf.MapField - internalGetSourceProperties() { + internalGetSourceProperties() { if (sourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( SourcePropertiesDefaultEntryHolder.defaultEntry); @@ -1470,6 +1653,8 @@ public int getSourcePropertiesCount() { return internalGetSourceProperties().getMap().size(); } /** + * + * *
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -1479,22 +1664,22 @@ public int getSourcePropertiesCount() {
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-
   @java.lang.Override
-  public boolean containsSourceProperties(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsSourceProperties(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetSourceProperties().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getSourcePropertiesMap()} instead.
-   */
+  /** Use {@link #getSourcePropertiesMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getSourceProperties() {
     return getSourcePropertiesMap();
   }
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -1505,11 +1690,12 @@ public java.util.Map getSourcePrope
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
   @java.lang.Override
-
   public java.util.Map getSourcePropertiesMap() {
     return internalGetSourceProperties().getMap();
   }
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -1520,16 +1706,18 @@ public java.util.Map getSourcePrope
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
   @java.lang.Override
-
   public com.google.protobuf.Value getSourcePropertiesOrDefault(
-      java.lang.String key,
-      com.google.protobuf.Value defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
+      java.lang.String key, com.google.protobuf.Value defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetSourceProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -1540,10 +1728,10 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault(
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
   @java.lang.Override
-
-  public com.google.protobuf.Value getSourcePropertiesOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetSourceProperties().getMap();
     if (!map.containsKey(key)) {
@@ -1555,13 +1743,18 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(
   public static final int SECURITY_MARKS_FIELD_NUMBER = 8;
   private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_;
   /**
+   *
+   *
    * 
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the securityMarks field is set. */ @java.lang.Override @@ -1569,27 +1762,38 @@ public boolean hasSecurityMarks() { return securityMarks_ != null; } /** + * + * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The securityMarks. */ @java.lang.Override public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { - return securityMarks_ == null ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() + : securityMarks_; } /** + * + * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { @@ -1599,6 +1803,8 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark public static final int EVENT_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp eventTime_; /** + * + * *
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -1610,6 +1816,7 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
    * 
* * .google.protobuf.Timestamp event_time = 9; + * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -1617,6 +1824,8 @@ public boolean hasEventTime() { return eventTime_ != null; } /** + * + * *
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -1628,6 +1837,7 @@ public boolean hasEventTime() {
    * 
* * .google.protobuf.Timestamp event_time = 9; + * * @return The eventTime. */ @java.lang.Override @@ -1635,6 +1845,8 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** + * + * *
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -1655,11 +1867,14 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
   public static final int CREATE_TIME_FIELD_NUMBER = 10;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1667,11 +1882,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return The createTime. */ @java.lang.Override @@ -1679,6 +1897,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time at which the finding was created in Security Command Center.
    * 
@@ -1693,35 +1913,48 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int SEVERITY_FIELD_NUMBER = 12; private int severity_; /** + * + * *
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.Severity severity = 12; + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.Severity severity = 12; + * * @return The severity. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.Severity getSeverity() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.Finding.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.Severity result = com.google.cloud.securitycenter.v1.Finding.Severity.valueOf(severity_); - return result == null ? com.google.cloud.securitycenter.v1.Finding.Severity.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.Finding.Severity result = + com.google.cloud.securitycenter.v1.Finding.Severity.valueOf(severity_); + return result == null + ? com.google.cloud.securitycenter.v1.Finding.Severity.UNRECOGNIZED + : result; } public static final int CANONICAL_NAME_FIELD_NUMBER = 14; private volatile java.lang.Object canonicalName_; /** + * + * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -1732,6 +1965,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * 
* * string canonical_name = 14; + * * @return The canonicalName. */ @java.lang.Override @@ -1740,14 +1974,15 @@ public java.lang.String getCanonicalName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; } } /** + * + * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -1758,16 +1993,15 @@ public java.lang.String getCanonicalName() {
    * 
* * string canonical_name = 14; + * * @return The bytes for canonicalName. */ @java.lang.Override - public com.google.protobuf.ByteString - getCanonicalNameBytes() { + public com.google.protobuf.ByteString getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -1778,6 +2012,8 @@ public java.lang.String getCanonicalName() { public static final int MUTE_FIELD_NUMBER = 15; private int mute_; /** + * + * *
    * Indicates the mute state of a finding (either muted, unmuted
    * or undefined). Unlike other attributes of a finding, a finding provider
@@ -1785,12 +2021,16 @@ public java.lang.String getCanonicalName() {
    * 
* * .google.cloud.securitycenter.v1.Finding.Mute mute = 15; + * * @return The enum numeric value on the wire for mute. */ - @java.lang.Override public int getMuteValue() { + @java.lang.Override + public int getMuteValue() { return mute_; } /** + * + * *
    * Indicates the mute state of a finding (either muted, unmuted
    * or undefined). Unlike other attributes of a finding, a finding provider
@@ -1798,44 +2038,60 @@ public java.lang.String getCanonicalName() {
    * 
* * .google.cloud.securitycenter.v1.Finding.Mute mute = 15; + * * @return The mute. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.Mute getMute() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.Finding.Mute getMute() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.Mute result = com.google.cloud.securitycenter.v1.Finding.Mute.valueOf(mute_); + com.google.cloud.securitycenter.v1.Finding.Mute result = + com.google.cloud.securitycenter.v1.Finding.Mute.valueOf(mute_); return result == null ? com.google.cloud.securitycenter.v1.Finding.Mute.UNRECOGNIZED : result; } public static final int FINDING_CLASS_FIELD_NUMBER = 17; private int findingClass_; /** + * + * *
    * The class of the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.FindingClass finding_class = 17; + * * @return The enum numeric value on the wire for findingClass. */ - @java.lang.Override public int getFindingClassValue() { + @java.lang.Override + public int getFindingClassValue() { return findingClass_; } /** + * + * *
    * The class of the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.FindingClass finding_class = 17; + * * @return The findingClass. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.FindingClass getFindingClass() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.Finding.FindingClass getFindingClass() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.FindingClass result = com.google.cloud.securitycenter.v1.Finding.FindingClass.valueOf(findingClass_); - return result == null ? com.google.cloud.securitycenter.v1.Finding.FindingClass.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.Finding.FindingClass result = + com.google.cloud.securitycenter.v1.Finding.FindingClass.valueOf(findingClass_); + return result == null + ? com.google.cloud.securitycenter.v1.Finding.FindingClass.UNRECOGNIZED + : result; } public static final int INDICATOR_FIELD_NUMBER = 18; private com.google.cloud.securitycenter.v1.Indicator indicator_; /** + * + * *
    * Represents what's commonly known as an Indicator of compromise (IoC) in
    * computer forensics. This is an artifact observed on a network or in an
@@ -1845,6 +2101,7 @@ public java.lang.String getCanonicalName() {
    * 
* * .google.cloud.securitycenter.v1.Indicator indicator = 18; + * * @return Whether the indicator field is set. */ @java.lang.Override @@ -1852,6 +2109,8 @@ public boolean hasIndicator() { return indicator_ != null; } /** + * + * *
    * Represents what's commonly known as an Indicator of compromise (IoC) in
    * computer forensics. This is an artifact observed on a network or in an
@@ -1861,13 +2120,18 @@ public boolean hasIndicator() {
    * 
* * .google.cloud.securitycenter.v1.Indicator indicator = 18; + * * @return The indicator. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Indicator getIndicator() { - return indicator_ == null ? com.google.cloud.securitycenter.v1.Indicator.getDefaultInstance() : indicator_; + return indicator_ == null + ? com.google.cloud.securitycenter.v1.Indicator.getDefaultInstance() + : indicator_; } /** + * + * *
    * Represents what's commonly known as an Indicator of compromise (IoC) in
    * computer forensics. This is an artifact observed on a network or in an
@@ -1886,6 +2150,8 @@ public com.google.cloud.securitycenter.v1.IndicatorOrBuilder getIndicatorOrBuild
   public static final int VULNERABILITY_FIELD_NUMBER = 20;
   private com.google.cloud.securitycenter.v1.Vulnerability vulnerability_;
   /**
+   *
+   *
    * 
    * Represents vulnerability specific fields like cve, cvss scores etc.
    * CVE stands for Common Vulnerabilities and Exposures
@@ -1893,6 +2159,7 @@ public com.google.cloud.securitycenter.v1.IndicatorOrBuilder getIndicatorOrBuild
    * 
* * .google.cloud.securitycenter.v1.Vulnerability vulnerability = 20; + * * @return Whether the vulnerability field is set. */ @java.lang.Override @@ -1900,6 +2167,8 @@ public boolean hasVulnerability() { return vulnerability_ != null; } /** + * + * *
    * Represents vulnerability specific fields like cve, cvss scores etc.
    * CVE stands for Common Vulnerabilities and Exposures
@@ -1907,13 +2176,18 @@ public boolean hasVulnerability() {
    * 
* * .google.cloud.securitycenter.v1.Vulnerability vulnerability = 20; + * * @return The vulnerability. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Vulnerability getVulnerability() { - return vulnerability_ == null ? com.google.cloud.securitycenter.v1.Vulnerability.getDefaultInstance() : vulnerability_; + return vulnerability_ == null + ? com.google.cloud.securitycenter.v1.Vulnerability.getDefaultInstance() + : vulnerability_; } /** + * + * *
    * Represents vulnerability specific fields like cve, cvss scores etc.
    * CVE stands for Common Vulnerabilities and Exposures
@@ -1930,11 +2204,16 @@ public com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder getVulnerabilit
   public static final int MUTE_UPDATE_TIME_FIELD_NUMBER = 21;
   private com.google.protobuf.Timestamp muteUpdateTime_;
   /**
+   *
+   *
    * 
    * Output only. The most recent time this finding was muted or unmuted.
    * 
* - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the muteUpdateTime field is set. */ @java.lang.Override @@ -1942,23 +2221,34 @@ public boolean hasMuteUpdateTime() { return muteUpdateTime_ != null; } /** + * + * *
    * Output only. The most recent time this finding was muted or unmuted.
    * 
* - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The muteUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getMuteUpdateTime() { - return muteUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : muteUpdateTime_; + return muteUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : muteUpdateTime_; } /** + * + * *
    * Output only. The most recent time this finding was muted or unmuted.
    * 
* - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getMuteUpdateTimeOrBuilder() { @@ -1966,21 +2256,29 @@ public com.google.protobuf.TimestampOrBuilder getMuteUpdateTimeOrBuilder() { } public static final int EXTERNAL_SYSTEMS_FIELD_NUMBER = 22; + private static final class ExternalSystemsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem> defaultEntry = + java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.securitycenter.v1.FindingOuterClass + .internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance()); } + private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem> externalSystems_; - private com.google.protobuf.MapField - internalGetExternalSystems() { + java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem> + externalSystems_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem> + internalGetExternalSystems() { if (externalSystems_ == null) { return com.google.protobuf.MapField.emptyMapField( ExternalSystemsDefaultEntryHolder.defaultEntry); @@ -1992,72 +2290,88 @@ public int getExternalSystemsCount() { return internalGetExternalSystems().getMap().size(); } /** + * + * *
    * Output only. Third party SIEM/SOAR fields within SCC, contains external
    * system information and external system finding fields.
    * 
* - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsExternalSystems( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsExternalSystems(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetExternalSystems().getMap().containsKey(key); } - /** - * Use {@link #getExternalSystemsMap()} instead. - */ + /** Use {@link #getExternalSystemsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getExternalSystems() { + public java.util.Map + getExternalSystems() { return getExternalSystemsMap(); } /** + * + * *
    * Output only. Third party SIEM/SOAR fields within SCC, contains external
    * system information and external system finding fields.
    * 
* - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - - public java.util.Map getExternalSystemsMap() { + public java.util.Map + getExternalSystemsMap() { return internalGetExternalSystems().getMap(); } /** + * + * *
    * Output only. Third party SIEM/SOAR fields within SCC, contains external
    * system information and external system finding fields.
    * 
* - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault( - java.lang.String key, - com.google.cloud.securitycenter.v1.ExternalSystem defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.cloud.securitycenter.v1.ExternalSystem defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetExternalSystems().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Output only. Third party SIEM/SOAR fields within SCC, contains external
    * system information and external system finding fields.
    * 
* - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetExternalSystems().getMap(); if (!map.containsKey(key)) { @@ -2069,12 +2383,15 @@ public com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrThr public static final int MITRE_ATTACK_FIELD_NUMBER = 25; private com.google.cloud.securitycenter.v1.MitreAttack mitreAttack_; /** + * + * *
    * MITRE ATT&CK tactics and techniques related to this finding.
    * See: https://attack.mitre.org
    * 
* * .google.cloud.securitycenter.v1.MitreAttack mitre_attack = 25; + * * @return Whether the mitreAttack field is set. */ @java.lang.Override @@ -2082,19 +2399,26 @@ public boolean hasMitreAttack() { return mitreAttack_ != null; } /** + * + * *
    * MITRE ATT&CK tactics and techniques related to this finding.
    * See: https://attack.mitre.org
    * 
* * .google.cloud.securitycenter.v1.MitreAttack mitre_attack = 25; + * * @return The mitreAttack. */ @java.lang.Override public com.google.cloud.securitycenter.v1.MitreAttack getMitreAttack() { - return mitreAttack_ == null ? com.google.cloud.securitycenter.v1.MitreAttack.getDefaultInstance() : mitreAttack_; + return mitreAttack_ == null + ? com.google.cloud.securitycenter.v1.MitreAttack.getDefaultInstance() + : mitreAttack_; } /** + * + * *
    * MITRE ATT&CK tactics and techniques related to this finding.
    * See: https://attack.mitre.org
@@ -2110,12 +2434,15 @@ public com.google.cloud.securitycenter.v1.MitreAttackOrBuilder getMitreAttackOrB
   public static final int ACCESS_FIELD_NUMBER = 26;
   private com.google.cloud.securitycenter.v1.Access access_;
   /**
+   *
+   *
    * 
    * Access details associated to the Finding, such as more information on the
    * caller, which method was accessed, from where, etc.
    * 
* * .google.cloud.securitycenter.v1.Access access = 26; + * * @return Whether the access field is set. */ @java.lang.Override @@ -2123,19 +2450,26 @@ public boolean hasAccess() { return access_ != null; } /** + * + * *
    * Access details associated to the Finding, such as more information on the
    * caller, which method was accessed, from where, etc.
    * 
* * .google.cloud.securitycenter.v1.Access access = 26; + * * @return The access. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Access getAccess() { - return access_ == null ? com.google.cloud.securitycenter.v1.Access.getDefaultInstance() : access_; + return access_ == null + ? com.google.cloud.securitycenter.v1.Access.getDefaultInstance() + : access_; } /** + * + * *
    * Access details associated to the Finding, such as more information on the
    * caller, which method was accessed, from where, etc.
@@ -2151,6 +2485,8 @@ public com.google.cloud.securitycenter.v1.AccessOrBuilder getAccessOrBuilder() {
   public static final int CONNECTIONS_FIELD_NUMBER = 31;
   private java.util.List connections_;
   /**
+   *
+   *
    * 
    * Contains information about the IP connection associated with the finding.
    * 
@@ -2162,6 +2498,8 @@ public java.util.List getConnecti return connections_; } /** + * + * *
    * Contains information about the IP connection associated with the finding.
    * 
@@ -2169,11 +2507,13 @@ public java.util.List getConnecti * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ @java.lang.Override - public java.util.List + public java.util.List getConnectionsOrBuilderList() { return connections_; } /** + * + * *
    * Contains information about the IP connection associated with the finding.
    * 
@@ -2185,6 +2525,8 @@ public int getConnectionsCount() { return connections_.size(); } /** + * + * *
    * Contains information about the IP connection associated with the finding.
    * 
@@ -2196,6 +2538,8 @@ public com.google.cloud.securitycenter.v1.Connection getConnections(int index) { return connections_.get(index); } /** + * + * *
    * Contains information about the IP connection associated with the finding.
    * 
@@ -2203,14 +2547,15 @@ public com.google.cloud.securitycenter.v1.Connection getConnections(int index) { * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ConnectionOrBuilder getConnectionsOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1.ConnectionOrBuilder getConnectionsOrBuilder(int index) { return connections_.get(index); } public static final int MUTE_INITIATOR_FIELD_NUMBER = 28; private volatile java.lang.Object muteInitiator_; /** + * + * *
    * First known as mute_annotation. Records additional information about the
    * mute operation e.g. mute config that muted the finding, user who muted the
@@ -2219,6 +2564,7 @@ public com.google.cloud.securitycenter.v1.ConnectionOrBuilder getConnectionsOrBu
    * 
* * string mute_initiator = 28; + * * @return The muteInitiator. */ @java.lang.Override @@ -2227,14 +2573,15 @@ public java.lang.String getMuteInitiator() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); muteInitiator_ = s; return s; } } /** + * + * *
    * First known as mute_annotation. Records additional information about the
    * mute operation e.g. mute config that muted the finding, user who muted the
@@ -2243,16 +2590,15 @@ public java.lang.String getMuteInitiator() {
    * 
* * string mute_initiator = 28; + * * @return The bytes for muteInitiator. */ @java.lang.Override - public com.google.protobuf.ByteString - getMuteInitiatorBytes() { + public com.google.protobuf.ByteString getMuteInitiatorBytes() { java.lang.Object ref = muteInitiator_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); muteInitiator_ = b; return b; } else { @@ -2263,6 +2609,8 @@ public java.lang.String getMuteInitiator() { public static final int PROCESSES_FIELD_NUMBER = 30; private java.util.List processes_; /** + * + * *
    * Represents operating system processes associated with the Finding.
    * 
@@ -2274,6 +2622,8 @@ public java.util.List getProcessesLi return processes_; } /** + * + * *
    * Represents operating system processes associated with the Finding.
    * 
@@ -2281,11 +2631,13 @@ public java.util.List getProcessesLi * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ @java.lang.Override - public java.util.List + public java.util.List getProcessesOrBuilderList() { return processes_; } /** + * + * *
    * Represents operating system processes associated with the Finding.
    * 
@@ -2297,6 +2649,8 @@ public int getProcessesCount() { return processes_.size(); } /** + * + * *
    * Represents operating system processes associated with the Finding.
    * 
@@ -2308,6 +2662,8 @@ public com.google.cloud.securitycenter.v1.Process getProcesses(int index) { return processes_.get(index); } /** + * + * *
    * Represents operating system processes associated with the Finding.
    * 
@@ -2315,14 +2671,15 @@ public com.google.cloud.securitycenter.v1.Process getProcesses(int index) { * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder(int index) { return processes_.get(index); } public static final int COMPLIANCES_FIELD_NUMBER = 34; private java.util.List compliances_; /** + * + * *
    * Contains compliance information for security standards associated to the
    * finding.
@@ -2335,6 +2692,8 @@ public java.util.List getComplian
     return compliances_;
   }
   /**
+   *
+   *
    * 
    * Contains compliance information for security standards associated to the
    * finding.
@@ -2343,11 +2702,13 @@ public java.util.List getComplian
    * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getCompliancesOrBuilderList() {
     return compliances_;
   }
   /**
+   *
+   *
    * 
    * Contains compliance information for security standards associated to the
    * finding.
@@ -2360,6 +2721,8 @@ public int getCompliancesCount() {
     return compliances_.size();
   }
   /**
+   *
+   *
    * 
    * Contains compliance information for security standards associated to the
    * finding.
@@ -2372,6 +2735,8 @@ public com.google.cloud.securitycenter.v1.Compliance getCompliances(int index) {
     return compliances_.get(index);
   }
   /**
+   *
+   *
    * 
    * Contains compliance information for security standards associated to the
    * finding.
@@ -2380,19 +2745,21 @@ public com.google.cloud.securitycenter.v1.Compliance getCompliances(int index) {
    * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
    */
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBuilder(
-      int index) {
+  public com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBuilder(int index) {
     return compliances_.get(index);
   }
 
   public static final int DESCRIPTION_FIELD_NUMBER = 37;
   private volatile java.lang.Object description_;
   /**
+   *
+   *
    * 
    * Contains more detail about the finding.
    * 
* * string description = 37; + * * @return The description. */ @java.lang.Override @@ -2401,29 +2768,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Contains more detail about the finding.
    * 
* * string description = 37; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -2434,11 +2801,14 @@ public java.lang.String getDescription() { public static final int EXFILTRATION_FIELD_NUMBER = 38; private com.google.cloud.securitycenter.v1.Exfiltration exfiltration_; /** + * + * *
    * Represents exfiltration associated with the Finding.
    * 
* * .google.cloud.securitycenter.v1.Exfiltration exfiltration = 38; + * * @return Whether the exfiltration field is set. */ @java.lang.Override @@ -2446,18 +2816,25 @@ public boolean hasExfiltration() { return exfiltration_ != null; } /** + * + * *
    * Represents exfiltration associated with the Finding.
    * 
* * .google.cloud.securitycenter.v1.Exfiltration exfiltration = 38; + * * @return The exfiltration. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Exfiltration getExfiltration() { - return exfiltration_ == null ? com.google.cloud.securitycenter.v1.Exfiltration.getDefaultInstance() : exfiltration_; + return exfiltration_ == null + ? com.google.cloud.securitycenter.v1.Exfiltration.getDefaultInstance() + : exfiltration_; } /** + * + * *
    * Represents exfiltration associated with the Finding.
    * 
@@ -2472,6 +2849,8 @@ public com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder getExfiltrationO public static final int IAM_BINDINGS_FIELD_NUMBER = 39; private java.util.List iamBindings_; /** + * + * *
    * Represents IAM bindings associated with the Finding.
    * 
@@ -2483,6 +2862,8 @@ public java.util.List getIamBindi return iamBindings_; } /** + * + * *
    * Represents IAM bindings associated with the Finding.
    * 
@@ -2490,11 +2871,13 @@ public java.util.List getIamBindi * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ @java.lang.Override - public java.util.List + public java.util.List getIamBindingsOrBuilderList() { return iamBindings_; } /** + * + * *
    * Represents IAM bindings associated with the Finding.
    * 
@@ -2506,6 +2889,8 @@ public int getIamBindingsCount() { return iamBindings_.size(); } /** + * + * *
    * Represents IAM bindings associated with the Finding.
    * 
@@ -2517,6 +2902,8 @@ public com.google.cloud.securitycenter.v1.IamBinding getIamBindings(int index) { return iamBindings_.get(index); } /** + * + * *
    * Represents IAM bindings associated with the Finding.
    * 
@@ -2524,19 +2911,21 @@ public com.google.cloud.securitycenter.v1.IamBinding getIamBindings(int index) { * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.IamBindingOrBuilder getIamBindingsOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1.IamBindingOrBuilder getIamBindingsOrBuilder(int index) { return iamBindings_.get(index); } public static final int NEXT_STEPS_FIELD_NUMBER = 40; private volatile java.lang.Object nextSteps_; /** + * + * *
    * Next steps associate to the finding.
    * 
* * string next_steps = 40; + * * @return The nextSteps. */ @java.lang.Override @@ -2545,29 +2934,29 @@ public java.lang.String getNextSteps() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextSteps_ = s; return s; } } /** + * + * *
    * Next steps associate to the finding.
    * 
* * string next_steps = 40; + * * @return The bytes for nextSteps. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextStepsBytes() { + public com.google.protobuf.ByteString getNextStepsBytes() { java.lang.Object ref = nextSteps_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextSteps_ = b; return b; } else { @@ -2576,6 +2965,7 @@ public java.lang.String getNextSteps() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2587,8 +2977,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -2607,12 +2996,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, externalUri_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetSourceProperties(), - SourcePropertiesDefaultEntryHolder.defaultEntry, - 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetSourceProperties(), SourcePropertiesDefaultEntryHolder.defaultEntry, 7); if (securityMarks_ != null) { output.writeMessage(8, getSecurityMarks()); } @@ -2622,7 +3007,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (createTime_ != null) { output.writeMessage(10, getCreateTime()); } - if (severity_ != com.google.cloud.securitycenter.v1.Finding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + if (severity_ + != com.google.cloud.securitycenter.v1.Finding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { output.writeEnum(12, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { @@ -2631,7 +3017,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (mute_ != com.google.cloud.securitycenter.v1.Finding.Mute.MUTE_UNSPECIFIED.getNumber()) { output.writeEnum(15, mute_); } - if (findingClass_ != com.google.cloud.securitycenter.v1.Finding.FindingClass.FINDING_CLASS_UNSPECIFIED.getNumber()) { + if (findingClass_ + != com.google.cloud.securitycenter.v1.Finding.FindingClass.FINDING_CLASS_UNSPECIFIED + .getNumber()) { output.writeEnum(17, findingClass_); } if (indicator_ != null) { @@ -2643,12 +3031,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (muteUpdateTime_ != null) { output.writeMessage(21, getMuteUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetExternalSystems(), - ExternalSystemsDefaultEntryHolder.defaultEntry, - 22); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetExternalSystems(), ExternalSystemsDefaultEntryHolder.defaultEntry, 22); if (mitreAttack_ != null) { output.writeMessage(25, getMitreAttack()); } @@ -2698,8 +3082,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceName_); } if (state_ != com.google.cloud.securitycenter.v1.Finding.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, category_); @@ -2707,98 +3090,87 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, externalUri_); } - for (java.util.Map.Entry entry - : internalGetSourceProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry - sourceProperties__ = SourcePropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, sourceProperties__); + for (java.util.Map.Entry entry : + internalGetSourceProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry sourceProperties__ = + SourcePropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, sourceProperties__); } if (securityMarks_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSecurityMarks()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSecurityMarks()); } if (eventTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getEventTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getEventTime()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreateTime()); } - if (severity_ != com.google.cloud.securitycenter.v1.Finding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, severity_); + if (severity_ + != com.google.cloud.securitycenter.v1.Finding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, canonicalName_); } if (mute_ != com.google.cloud.securitycenter.v1.Finding.Mute.MUTE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, mute_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, mute_); } - if (findingClass_ != com.google.cloud.securitycenter.v1.Finding.FindingClass.FINDING_CLASS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(17, findingClass_); + if (findingClass_ + != com.google.cloud.securitycenter.v1.Finding.FindingClass.FINDING_CLASS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, findingClass_); } if (indicator_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getIndicator()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getIndicator()); } if (vulnerability_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getVulnerability()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getVulnerability()); } if (muteUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getMuteUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetExternalSystems().getMap().entrySet()) { - com.google.protobuf.MapEntry - externalSystems__ = ExternalSystemsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, externalSystems__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getMuteUpdateTime()); + } + for (java.util.Map.Entry + entry : internalGetExternalSystems().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem> + externalSystems__ = + ExternalSystemsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, externalSystems__); } if (mitreAttack_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, getMitreAttack()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getMitreAttack()); } if (access_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(26, getAccess()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getAccess()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(muteInitiator_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, muteInitiator_); } for (int i = 0; i < processes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(30, processes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, processes_.get(i)); } for (int i = 0; i < connections_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(31, connections_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, connections_.get(i)); } for (int i = 0; i < compliances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(34, compliances_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(34, compliances_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37, description_); } if (exfiltration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(38, getExfiltration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getExfiltration()); } for (int i = 0; i < iamBindings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(39, iamBindings_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(39, iamBindings_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextSteps_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(40, nextSteps_); @@ -2811,92 +3183,69 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Finding)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Finding other = (com.google.cloud.securitycenter.v1.Finding) obj; + com.google.cloud.securitycenter.v1.Finding other = + (com.google.cloud.securitycenter.v1.Finding) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getParent() - .equals(other.getParent())) return false; - if (!getResourceName() - .equals(other.getResourceName())) return false; + if (!getName().equals(other.getName())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getResourceName().equals(other.getResourceName())) return false; if (state_ != other.state_) return false; - if (!getCategory() - .equals(other.getCategory())) return false; - if (!getExternalUri() - .equals(other.getExternalUri())) return false; - if (!internalGetSourceProperties().equals( - other.internalGetSourceProperties())) return false; + if (!getCategory().equals(other.getCategory())) return false; + if (!getExternalUri().equals(other.getExternalUri())) return false; + if (!internalGetSourceProperties().equals(other.internalGetSourceProperties())) return false; if (hasSecurityMarks() != other.hasSecurityMarks()) return false; if (hasSecurityMarks()) { - if (!getSecurityMarks() - .equals(other.getSecurityMarks())) return false; + if (!getSecurityMarks().equals(other.getSecurityMarks())) return false; } if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { - if (!getEventTime() - .equals(other.getEventTime())) return false; + if (!getEventTime().equals(other.getEventTime())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (severity_ != other.severity_) return false; - if (!getCanonicalName() - .equals(other.getCanonicalName())) return false; + if (!getCanonicalName().equals(other.getCanonicalName())) return false; if (mute_ != other.mute_) return false; if (findingClass_ != other.findingClass_) return false; if (hasIndicator() != other.hasIndicator()) return false; if (hasIndicator()) { - if (!getIndicator() - .equals(other.getIndicator())) return false; + if (!getIndicator().equals(other.getIndicator())) return false; } if (hasVulnerability() != other.hasVulnerability()) return false; if (hasVulnerability()) { - if (!getVulnerability() - .equals(other.getVulnerability())) return false; + if (!getVulnerability().equals(other.getVulnerability())) return false; } if (hasMuteUpdateTime() != other.hasMuteUpdateTime()) return false; if (hasMuteUpdateTime()) { - if (!getMuteUpdateTime() - .equals(other.getMuteUpdateTime())) return false; + if (!getMuteUpdateTime().equals(other.getMuteUpdateTime())) return false; } - if (!internalGetExternalSystems().equals( - other.internalGetExternalSystems())) return false; + if (!internalGetExternalSystems().equals(other.internalGetExternalSystems())) return false; if (hasMitreAttack() != other.hasMitreAttack()) return false; if (hasMitreAttack()) { - if (!getMitreAttack() - .equals(other.getMitreAttack())) return false; + if (!getMitreAttack().equals(other.getMitreAttack())) return false; } if (hasAccess() != other.hasAccess()) return false; if (hasAccess()) { - if (!getAccess() - .equals(other.getAccess())) return false; - } - if (!getConnectionsList() - .equals(other.getConnectionsList())) return false; - if (!getMuteInitiator() - .equals(other.getMuteInitiator())) return false; - if (!getProcessesList() - .equals(other.getProcessesList())) return false; - if (!getCompliancesList() - .equals(other.getCompliancesList())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getAccess().equals(other.getAccess())) return false; + } + if (!getConnectionsList().equals(other.getConnectionsList())) return false; + if (!getMuteInitiator().equals(other.getMuteInitiator())) return false; + if (!getProcessesList().equals(other.getProcessesList())) return false; + if (!getCompliancesList().equals(other.getCompliancesList())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasExfiltration() != other.hasExfiltration()) return false; if (hasExfiltration()) { - if (!getExfiltration() - .equals(other.getExfiltration())) return false; + if (!getExfiltration().equals(other.getExfiltration())) return false; } - if (!getIamBindingsList() - .equals(other.getIamBindingsList())) return false; - if (!getNextSteps() - .equals(other.getNextSteps())) return false; + if (!getIamBindingsList().equals(other.getIamBindingsList())) return false; + if (!getNextSteps().equals(other.getNextSteps())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2999,97 +3348,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Finding parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Finding parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Finding parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Finding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Finding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Finding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Finding parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Finding parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Finding parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Finding parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.Finding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Finding parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Finding parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Finding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.Finding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Security Command Center finding.
    * A finding is a record of assessment data like security, risk, health, or
@@ -3101,47 +3457,47 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.Finding}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Finding)
       com.google.cloud.securitycenter.v1.FindingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1_Finding_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.FindingOuterClass
+          .internal_static_google_cloud_securitycenter_v1_Finding_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 7:
           return internalGetSourceProperties();
         case 22:
           return internalGetExternalSystems();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 7:
           return internalGetMutableSourceProperties();
         case 22:
           return internalGetMutableExternalSystems();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.FindingOuterClass
+          .internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.Finding.class, com.google.cloud.securitycenter.v1.Finding.Builder.class);
+              com.google.cloud.securitycenter.v1.Finding.class,
+              com.google.cloud.securitycenter.v1.Finding.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.Finding.newBuilder()
@@ -3149,20 +3505,20 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getConnectionsFieldBuilder();
         getProcessesFieldBuilder();
         getCompliancesFieldBuilder();
         getIamBindingsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3276,9 +3632,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1_Finding_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.FindingOuterClass
+          .internal_static_google_cloud_securitycenter_v1_Finding_descriptor;
     }
 
     @java.lang.Override
@@ -3297,7 +3653,8 @@ public com.google.cloud.securitycenter.v1.Finding build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.Finding buildPartial() {
-      com.google.cloud.securitycenter.v1.Finding result = new com.google.cloud.securitycenter.v1.Finding(this);
+      com.google.cloud.securitycenter.v1.Finding result =
+          new com.google.cloud.securitycenter.v1.Finding(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.parent_ = parent_;
@@ -3405,38 +3762,39 @@ public com.google.cloud.securitycenter.v1.Finding buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.Finding) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.Finding)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.Finding) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3468,8 +3826,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) {
         externalUri_ = other.externalUri_;
         onChanged();
       }
-      internalGetMutableSourceProperties().mergeFrom(
-          other.internalGetSourceProperties());
+      internalGetMutableSourceProperties().mergeFrom(other.internalGetSourceProperties());
       if (other.hasSecurityMarks()) {
         mergeSecurityMarks(other.getSecurityMarks());
       }
@@ -3501,8 +3858,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) {
       if (other.hasMuteUpdateTime()) {
         mergeMuteUpdateTime(other.getMuteUpdateTime());
       }
-      internalGetMutableExternalSystems().mergeFrom(
-          other.internalGetExternalSystems());
+      internalGetMutableExternalSystems().mergeFrom(other.internalGetExternalSystems());
       if (other.hasMitreAttack()) {
         mergeMitreAttack(other.getMitreAttack());
       }
@@ -3527,9 +3883,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) {
             connectionsBuilder_ = null;
             connections_ = other.connections_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            connectionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConnectionsFieldBuilder() : null;
+            connectionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConnectionsFieldBuilder()
+                    : null;
           } else {
             connectionsBuilder_.addAllMessages(other.connections_);
           }
@@ -3557,9 +3914,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) {
             processesBuilder_ = null;
             processes_ = other.processes_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            processesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getProcessesFieldBuilder() : null;
+            processesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getProcessesFieldBuilder()
+                    : null;
           } else {
             processesBuilder_.addAllMessages(other.processes_);
           }
@@ -3583,9 +3941,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) {
             compliancesBuilder_ = null;
             compliances_ = other.compliances_;
             bitField0_ = (bitField0_ & ~0x00000010);
-            compliancesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getCompliancesFieldBuilder() : null;
+            compliancesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getCompliancesFieldBuilder()
+                    : null;
           } else {
             compliancesBuilder_.addAllMessages(other.compliances_);
           }
@@ -3616,9 +3975,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) {
             iamBindingsBuilder_ = null;
             iamBindings_ = other.iamBindings_;
             bitField0_ = (bitField0_ & ~0x00000020);
-            iamBindingsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getIamBindingsFieldBuilder() : null;
+            iamBindingsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getIamBindingsFieldBuilder()
+                    : null;
           } else {
             iamBindingsBuilder_.addAllMessages(other.iamBindings_);
           }
@@ -3656,10 +4016,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -3668,13 +4031,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3683,6 +4046,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -3691,15 +4056,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -3707,6 +4071,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -3715,20 +4081,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -3737,15 +4105,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -3754,16 +4125,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -3771,6 +4142,8 @@ public Builder setNameBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -3780,13 +4153,13 @@ public Builder setNameBytes(
      * 
* * string parent = 2; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -3795,6 +4168,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -3804,15 +4179,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 2; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -3820,6 +4194,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -3829,20 +4205,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 2; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -3852,15 +4230,18 @@ public Builder setParent(
      * 
* * string parent = 2; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -3870,16 +4251,16 @@ public Builder clearParent() {
      * 
* * string parent = 2; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -3887,6 +4268,8 @@ public Builder setParentBytes( private java.lang.Object resourceName_ = ""; /** + * + * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -3897,13 +4280,13 @@ public Builder setParentBytes(
      * 
* * string resource_name = 3; + * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -3912,6 +4295,8 @@ public java.lang.String getResourceName() { } } /** + * + * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -3922,15 +4307,14 @@ public java.lang.String getResourceName() {
      * 
* * string resource_name = 3; + * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -3938,6 +4322,8 @@ public java.lang.String getResourceName() { } } /** + * + * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -3948,20 +4334,22 @@ public java.lang.String getResourceName() {
      * 
* * string resource_name = 3; + * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName( - java.lang.String value) { + public Builder setResourceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceName_ = value; onChanged(); return this; } /** + * + * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -3972,15 +4360,18 @@ public Builder setResourceName(
      * 
* * string resource_name = 3; + * * @return This builder for chaining. */ public Builder clearResourceName() { - + resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** + * + * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -3991,16 +4382,16 @@ public Builder clearResourceName() {
      * 
* * string resource_name = 3; + * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; onChanged(); return this; @@ -4008,51 +4399,67 @@ public Builder setResourceNameBytes( private int state_ = 0; /** + * + * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.State state = 4; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.State state = 4; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.State state = 4; + * * @return The state. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.State result = com.google.cloud.securitycenter.v1.Finding.State.valueOf(state_); - return result == null ? com.google.cloud.securitycenter.v1.Finding.State.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.Finding.State result = + com.google.cloud.securitycenter.v1.Finding.State.valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1.Finding.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.State state = 4; + * * @param value The state to set. * @return This builder for chaining. */ @@ -4060,21 +4467,24 @@ public Builder setState(com.google.cloud.securitycenter.v1.Finding.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.State state = 4; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -4082,6 +4492,8 @@ public Builder clearState() { private java.lang.Object category_ = ""; /** + * + * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -4089,13 +4501,13 @@ public Builder clearState() {
      * 
* * string category = 5; + * * @return The category. */ public java.lang.String getCategory() { java.lang.Object ref = category_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; @@ -4104,6 +4516,8 @@ public java.lang.String getCategory() { } } /** + * + * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -4111,15 +4525,14 @@ public java.lang.String getCategory() {
      * 
* * string category = 5; + * * @return The bytes for category. */ - public com.google.protobuf.ByteString - getCategoryBytes() { + public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); category_ = b; return b; } else { @@ -4127,6 +4540,8 @@ public java.lang.String getCategory() { } } /** + * + * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -4134,20 +4549,22 @@ public java.lang.String getCategory() {
      * 
* * string category = 5; + * * @param value The category to set. * @return This builder for chaining. */ - public Builder setCategory( - java.lang.String value) { + public Builder setCategory(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + category_ = value; onChanged(); return this; } /** + * + * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -4155,15 +4572,18 @@ public Builder setCategory(
      * 
* * string category = 5; + * * @return This builder for chaining. */ public Builder clearCategory() { - + category_ = getDefaultInstance().getCategory(); onChanged(); return this; } /** + * + * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -4171,16 +4591,16 @@ public Builder clearCategory() {
      * 
* * string category = 5; + * * @param value The bytes for category to set. * @return This builder for chaining. */ - public Builder setCategoryBytes( - com.google.protobuf.ByteString value) { + public Builder setCategoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + category_ = value; onChanged(); return this; @@ -4188,6 +4608,8 @@ public Builder setCategoryBytes( private java.lang.Object externalUri_ = ""; /** + * + * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -4195,13 +4617,13 @@ public Builder setCategoryBytes(
      * 
* * string external_uri = 6; + * * @return The externalUri. */ public java.lang.String getExternalUri() { java.lang.Object ref = externalUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalUri_ = s; return s; @@ -4210,6 +4632,8 @@ public java.lang.String getExternalUri() { } } /** + * + * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -4217,15 +4641,14 @@ public java.lang.String getExternalUri() {
      * 
* * string external_uri = 6; + * * @return The bytes for externalUri. */ - public com.google.protobuf.ByteString - getExternalUriBytes() { + public com.google.protobuf.ByteString getExternalUriBytes() { java.lang.Object ref = externalUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalUri_ = b; return b; } else { @@ -4233,6 +4656,8 @@ public java.lang.String getExternalUri() { } } /** + * + * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -4240,20 +4665,22 @@ public java.lang.String getExternalUri() {
      * 
* * string external_uri = 6; + * * @param value The externalUri to set. * @return This builder for chaining. */ - public Builder setExternalUri( - java.lang.String value) { + public Builder setExternalUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalUri_ = value; onChanged(); return this; } /** + * + * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -4261,15 +4688,18 @@ public Builder setExternalUri(
      * 
* * string external_uri = 6; + * * @return This builder for chaining. */ public Builder clearExternalUri() { - + externalUri_ = getDefaultInstance().getExternalUri(); onChanged(); return this; } /** + * + * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -4277,37 +4707,41 @@ public Builder clearExternalUri() {
      * 
* * string external_uri = 6; + * * @param value The bytes for externalUri to set. * @return This builder for chaining. */ - public Builder setExternalUriBytes( - com.google.protobuf.ByteString value) { + public Builder setExternalUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalUri_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> sourceProperties_; private com.google.protobuf.MapField - internalGetSourceProperties() { + sourceProperties_; + + private com.google.protobuf.MapField + internalGetSourceProperties() { if (sourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( SourcePropertiesDefaultEntryHolder.defaultEntry); } return sourceProperties_; } + private com.google.protobuf.MapField - internalGetMutableSourceProperties() { - onChanged();; + internalGetMutableSourceProperties() { + onChanged(); + ; if (sourceProperties_ == null) { - sourceProperties_ = com.google.protobuf.MapField.newMapField( - SourcePropertiesDefaultEntryHolder.defaultEntry); + sourceProperties_ = + com.google.protobuf.MapField.newMapField( + SourcePropertiesDefaultEntryHolder.defaultEntry); } if (!sourceProperties_.isMutable()) { sourceProperties_ = sourceProperties_.copy(); @@ -4319,6 +4753,8 @@ public int getSourcePropertiesCount() { return internalGetSourceProperties().getMap().size(); } /** + * + * *
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -4328,22 +4764,22 @@ public int getSourcePropertiesCount() {
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
-
     @java.lang.Override
-    public boolean containsSourceProperties(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsSourceProperties(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetSourceProperties().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getSourcePropertiesMap()} instead.
-     */
+    /** Use {@link #getSourcePropertiesMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getSourceProperties() {
       return getSourcePropertiesMap();
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -4354,11 +4790,12 @@ public java.util.Map getSourcePrope
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
     @java.lang.Override
-
     public java.util.Map getSourcePropertiesMap() {
       return internalGetSourceProperties().getMap();
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -4369,16 +4806,18 @@ public java.util.Map getSourcePrope
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
     @java.lang.Override
-
     public com.google.protobuf.Value getSourcePropertiesOrDefault(
-        java.lang.String key,
-        com.google.protobuf.Value defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
+        java.lang.String key, com.google.protobuf.Value defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetSourceProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -4389,10 +4828,10 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault(
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
     @java.lang.Override
-
-    public com.google.protobuf.Value getSourcePropertiesOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetSourceProperties().getMap();
       if (!map.containsKey(key)) {
@@ -4402,11 +4841,12 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(
     }
 
     public Builder clearSourceProperties() {
-      internalGetMutableSourceProperties().getMutableMap()
-          .clear();
+      internalGetMutableSourceProperties().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -4416,23 +4856,21 @@ public Builder clearSourceProperties() {
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
-
-    public Builder removeSourceProperties(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableSourceProperties().getMutableMap()
-          .remove(key);
+    public Builder removeSourceProperties(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableSourceProperties().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableSourceProperties() {
+    public java.util.Map getMutableSourceProperties() {
       return internalGetMutableSourceProperties().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -4442,19 +4880,20 @@ public Builder removeSourceProperties(
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
-    public Builder putSourceProperties(
-        java.lang.String key,
-        com.google.protobuf.Value value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putSourceProperties(java.lang.String key, com.google.protobuf.Value value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableSourceProperties().getMutableMap()
-          .put(key, value);
+      internalGetMutableSourceProperties().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -4464,55 +4903,72 @@ public Builder putSourceProperties(
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
-
     public Builder putAllSourceProperties(
         java.util.Map values) {
-      internalGetMutableSourceProperties().getMutableMap()
-          .putAll(values);
+      internalGetMutableSourceProperties().getMutableMap().putAll(values);
       return this;
     }
 
     private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> securityMarksBuilder_;
+            com.google.cloud.securitycenter.v1.SecurityMarks,
+            com.google.cloud.securitycenter.v1.SecurityMarks.Builder,
+            com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>
+        securityMarksBuilder_;
     /**
+     *
+     *
      * 
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The securityMarks. */ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { - return securityMarks_ == null ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() + : securityMarks_; } else { return securityMarksBuilder_.getMessage(); } } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks value) { if (securityMarksBuilder_ == null) { @@ -4528,13 +4984,17 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks return this; } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSecurityMarks( com.google.cloud.securitycenter.v1.SecurityMarks.Builder builderForValue) { @@ -4548,19 +5008,25 @@ public Builder setSecurityMarks( return this; } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks value) { if (securityMarksBuilder_ == null) { if (securityMarks_ != null) { securityMarks_ = - com.google.cloud.securitycenter.v1.SecurityMarks.newBuilder(securityMarks_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.SecurityMarks.newBuilder(securityMarks_) + .mergeFrom(value) + .buildPartial(); } else { securityMarks_ = value; } @@ -4572,13 +5038,17 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMar return this; } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -4592,54 +5062,70 @@ public Builder clearSecurityMarks() { return this; } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.securitycenter.v1.SecurityMarks.Builder getSecurityMarksBuilder() { - + onChanged(); return getSecurityMarksFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { if (securityMarksBuilder_ != null) { return securityMarksBuilder_.getMessageOrBuilder(); } else { - return securityMarks_ == null ? - com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() + : securityMarks_; } } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> + com.google.cloud.securitycenter.v1.SecurityMarks, + com.google.cloud.securitycenter.v1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> getSecurityMarksFieldBuilder() { if (securityMarksBuilder_ == null) { - securityMarksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>( - getSecurityMarks(), - getParentForChildren(), - isClean()); + securityMarksBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityMarks, + com.google.cloud.securitycenter.v1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>( + getSecurityMarks(), getParentForChildren(), isClean()); securityMarks_ = null; } return securityMarksBuilder_; @@ -4647,8 +5133,13 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark private com.google.protobuf.Timestamp eventTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + eventTimeBuilder_; /** + * + * *
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -4660,12 +5151,15 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
      * 
* * .google.protobuf.Timestamp event_time = 9; + * * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return eventTimeBuilder_ != null || eventTime_ != null; } /** + * + * *
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -4677,6 +5171,7 @@ public boolean hasEventTime() {
      * 
* * .google.protobuf.Timestamp event_time = 9; + * * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { @@ -4687,6 +5182,8 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** + * + * *
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -4713,6 +5210,8 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -4725,8 +5224,7 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp event_time = 9;
      */
-    public Builder setEventTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (eventTimeBuilder_ == null) {
         eventTime_ = builderForValue.build();
         onChanged();
@@ -4737,6 +5235,8 @@ public Builder setEventTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -4753,7 +5253,7 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       if (eventTimeBuilder_ == null) {
         if (eventTime_ != null) {
           eventTime_ =
-            com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial();
         } else {
           eventTime_ = value;
         }
@@ -4765,6 +5265,8 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -4789,6 +5291,8 @@ public Builder clearEventTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -4802,11 +5306,13 @@ public Builder clearEventTime() {
      * .google.protobuf.Timestamp event_time = 9;
      */
     public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() {
-      
+
       onChanged();
       return getEventTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -4823,11 +5329,12 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
       if (eventTimeBuilder_ != null) {
         return eventTimeBuilder_.getMessageOrBuilder();
       } else {
-        return eventTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+        return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time the finding was first detected. If an existing finding is updated,
      * then this is the time the update occurred.
@@ -4841,14 +5348,17 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
      * .google.protobuf.Timestamp event_time = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEventTimeFieldBuilder() {
       if (eventTimeBuilder_ == null) {
-        eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEventTime(),
-                getParentForChildren(),
-                isClean());
+        eventTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEventTime(), getParentForChildren(), isClean());
         eventTime_ = null;
       }
       return eventTimeBuilder_;
@@ -4856,34 +5366,47 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -4904,14 +5427,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -4922,6 +5446,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -4932,7 +5458,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -4944,6 +5470,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -4962,6 +5490,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -4969,11 +5499,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 10; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -4984,11 +5516,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -4996,14 +5531,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -5011,55 +5549,71 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int severity_ = 0; /** + * + * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.Severity severity = 12; + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.Severity severity = 12; + * * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ public Builder setSeverityValue(int value) { - + severity_ = value; onChanged(); return this; } /** + * + * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.Severity severity = 12; + * * @return The severity. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.Severity result = com.google.cloud.securitycenter.v1.Finding.Severity.valueOf(severity_); - return result == null ? com.google.cloud.securitycenter.v1.Finding.Severity.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.Finding.Severity result = + com.google.cloud.securitycenter.v1.Finding.Severity.valueOf(severity_); + return result == null + ? com.google.cloud.securitycenter.v1.Finding.Severity.UNRECOGNIZED + : result; } /** + * + * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.Severity severity = 12; + * * @param value The severity to set. * @return This builder for chaining. */ @@ -5067,22 +5621,25 @@ public Builder setSeverity(com.google.cloud.securitycenter.v1.Finding.Severity v if (value == null) { throw new NullPointerException(); } - + severity_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.Severity severity = 12; + * * @return This builder for chaining. */ public Builder clearSeverity() { - + severity_ = 0; onChanged(); return this; @@ -5090,6 +5647,8 @@ public Builder clearSeverity() { private java.lang.Object canonicalName_ = ""; /** + * + * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -5100,13 +5659,13 @@ public Builder clearSeverity() {
      * 
* * string canonical_name = 14; + * * @return The canonicalName. */ public java.lang.String getCanonicalName() { java.lang.Object ref = canonicalName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; @@ -5115,6 +5674,8 @@ public java.lang.String getCanonicalName() { } } /** + * + * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -5125,15 +5686,14 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 14; + * * @return The bytes for canonicalName. */ - public com.google.protobuf.ByteString - getCanonicalNameBytes() { + public com.google.protobuf.ByteString getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -5141,6 +5701,8 @@ public java.lang.String getCanonicalName() { } } /** + * + * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -5151,20 +5713,22 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 14; + * * @param value The canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalName( - java.lang.String value) { + public Builder setCanonicalName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + canonicalName_ = value; onChanged(); return this; } /** + * + * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -5175,15 +5739,18 @@ public Builder setCanonicalName(
      * 
* * string canonical_name = 14; + * * @return This builder for chaining. */ public Builder clearCanonicalName() { - + canonicalName_ = getDefaultInstance().getCanonicalName(); onChanged(); return this; } /** + * + * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -5194,16 +5761,16 @@ public Builder clearCanonicalName() {
      * 
* * string canonical_name = 14; + * * @param value The bytes for canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalNameBytes( - com.google.protobuf.ByteString value) { + public Builder setCanonicalNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalName_ = value; onChanged(); return this; @@ -5211,6 +5778,8 @@ public Builder setCanonicalNameBytes( private int mute_ = 0; /** + * + * *
      * Indicates the mute state of a finding (either muted, unmuted
      * or undefined). Unlike other attributes of a finding, a finding provider
@@ -5218,12 +5787,16 @@ public Builder setCanonicalNameBytes(
      * 
* * .google.cloud.securitycenter.v1.Finding.Mute mute = 15; + * * @return The enum numeric value on the wire for mute. */ - @java.lang.Override public int getMuteValue() { + @java.lang.Override + public int getMuteValue() { return mute_; } /** + * + * *
      * Indicates the mute state of a finding (either muted, unmuted
      * or undefined). Unlike other attributes of a finding, a finding provider
@@ -5231,16 +5804,19 @@ public Builder setCanonicalNameBytes(
      * 
* * .google.cloud.securitycenter.v1.Finding.Mute mute = 15; + * * @param value The enum numeric value on the wire for mute to set. * @return This builder for chaining. */ public Builder setMuteValue(int value) { - + mute_ = value; onChanged(); return this; } /** + * + * *
      * Indicates the mute state of a finding (either muted, unmuted
      * or undefined). Unlike other attributes of a finding, a finding provider
@@ -5248,15 +5824,19 @@ public Builder setMuteValue(int value) {
      * 
* * .google.cloud.securitycenter.v1.Finding.Mute mute = 15; + * * @return The mute. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.Mute getMute() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.Mute result = com.google.cloud.securitycenter.v1.Finding.Mute.valueOf(mute_); + com.google.cloud.securitycenter.v1.Finding.Mute result = + com.google.cloud.securitycenter.v1.Finding.Mute.valueOf(mute_); return result == null ? com.google.cloud.securitycenter.v1.Finding.Mute.UNRECOGNIZED : result; } /** + * + * *
      * Indicates the mute state of a finding (either muted, unmuted
      * or undefined). Unlike other attributes of a finding, a finding provider
@@ -5264,6 +5844,7 @@ public com.google.cloud.securitycenter.v1.Finding.Mute getMute() {
      * 
* * .google.cloud.securitycenter.v1.Finding.Mute mute = 15; + * * @param value The mute to set. * @return This builder for chaining. */ @@ -5271,12 +5852,14 @@ public Builder setMute(com.google.cloud.securitycenter.v1.Finding.Mute value) { if (value == null) { throw new NullPointerException(); } - + mute_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Indicates the mute state of a finding (either muted, unmuted
      * or undefined). Unlike other attributes of a finding, a finding provider
@@ -5284,10 +5867,11 @@ public Builder setMute(com.google.cloud.securitycenter.v1.Finding.Mute value) {
      * 
* * .google.cloud.securitycenter.v1.Finding.Mute mute = 15; + * * @return This builder for chaining. */ public Builder clearMute() { - + mute_ = 0; onChanged(); return this; @@ -5295,51 +5879,67 @@ public Builder clearMute() { private int findingClass_ = 0; /** + * + * *
      * The class of the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.FindingClass finding_class = 17; + * * @return The enum numeric value on the wire for findingClass. */ - @java.lang.Override public int getFindingClassValue() { + @java.lang.Override + public int getFindingClassValue() { return findingClass_; } /** + * + * *
      * The class of the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.FindingClass finding_class = 17; + * * @param value The enum numeric value on the wire for findingClass to set. * @return This builder for chaining. */ public Builder setFindingClassValue(int value) { - + findingClass_ = value; onChanged(); return this; } /** + * + * *
      * The class of the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.FindingClass finding_class = 17; + * * @return The findingClass. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.FindingClass getFindingClass() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.FindingClass result = com.google.cloud.securitycenter.v1.Finding.FindingClass.valueOf(findingClass_); - return result == null ? com.google.cloud.securitycenter.v1.Finding.FindingClass.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.Finding.FindingClass result = + com.google.cloud.securitycenter.v1.Finding.FindingClass.valueOf(findingClass_); + return result == null + ? com.google.cloud.securitycenter.v1.Finding.FindingClass.UNRECOGNIZED + : result; } /** + * + * *
      * The class of the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.FindingClass finding_class = 17; + * * @param value The findingClass to set. * @return This builder for chaining. */ @@ -5347,21 +5947,24 @@ public Builder setFindingClass(com.google.cloud.securitycenter.v1.Finding.Findin if (value == null) { throw new NullPointerException(); } - + findingClass_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The class of the finding.
      * 
* * .google.cloud.securitycenter.v1.Finding.FindingClass finding_class = 17; + * * @return This builder for chaining. */ public Builder clearFindingClass() { - + findingClass_ = 0; onChanged(); return this; @@ -5369,8 +5972,13 @@ public Builder clearFindingClass() { private com.google.cloud.securitycenter.v1.Indicator indicator_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Indicator, com.google.cloud.securitycenter.v1.Indicator.Builder, com.google.cloud.securitycenter.v1.IndicatorOrBuilder> indicatorBuilder_; + com.google.cloud.securitycenter.v1.Indicator, + com.google.cloud.securitycenter.v1.Indicator.Builder, + com.google.cloud.securitycenter.v1.IndicatorOrBuilder> + indicatorBuilder_; /** + * + * *
      * Represents what's commonly known as an Indicator of compromise (IoC) in
      * computer forensics. This is an artifact observed on a network or in an
@@ -5380,12 +5988,15 @@ public Builder clearFindingClass() {
      * 
* * .google.cloud.securitycenter.v1.Indicator indicator = 18; + * * @return Whether the indicator field is set. */ public boolean hasIndicator() { return indicatorBuilder_ != null || indicator_ != null; } /** + * + * *
      * Represents what's commonly known as an Indicator of compromise (IoC) in
      * computer forensics. This is an artifact observed on a network or in an
@@ -5395,16 +6006,21 @@ public boolean hasIndicator() {
      * 
* * .google.cloud.securitycenter.v1.Indicator indicator = 18; + * * @return The indicator. */ public com.google.cloud.securitycenter.v1.Indicator getIndicator() { if (indicatorBuilder_ == null) { - return indicator_ == null ? com.google.cloud.securitycenter.v1.Indicator.getDefaultInstance() : indicator_; + return indicator_ == null + ? com.google.cloud.securitycenter.v1.Indicator.getDefaultInstance() + : indicator_; } else { return indicatorBuilder_.getMessage(); } } /** + * + * *
      * Represents what's commonly known as an Indicator of compromise (IoC) in
      * computer forensics. This is an artifact observed on a network or in an
@@ -5429,6 +6045,8 @@ public Builder setIndicator(com.google.cloud.securitycenter.v1.Indicator value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Represents what's commonly known as an Indicator of compromise (IoC) in
      * computer forensics. This is an artifact observed on a network or in an
@@ -5451,6 +6069,8 @@ public Builder setIndicator(
       return this;
     }
     /**
+     *
+     *
      * 
      * Represents what's commonly known as an Indicator of compromise (IoC) in
      * computer forensics. This is an artifact observed on a network or in an
@@ -5465,7 +6085,9 @@ public Builder mergeIndicator(com.google.cloud.securitycenter.v1.Indicator value
       if (indicatorBuilder_ == null) {
         if (indicator_ != null) {
           indicator_ =
-            com.google.cloud.securitycenter.v1.Indicator.newBuilder(indicator_).mergeFrom(value).buildPartial();
+              com.google.cloud.securitycenter.v1.Indicator.newBuilder(indicator_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           indicator_ = value;
         }
@@ -5477,6 +6099,8 @@ public Builder mergeIndicator(com.google.cloud.securitycenter.v1.Indicator value
       return this;
     }
     /**
+     *
+     *
      * 
      * Represents what's commonly known as an Indicator of compromise (IoC) in
      * computer forensics. This is an artifact observed on a network or in an
@@ -5499,6 +6123,8 @@ public Builder clearIndicator() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Represents what's commonly known as an Indicator of compromise (IoC) in
      * computer forensics. This is an artifact observed on a network or in an
@@ -5510,11 +6136,13 @@ public Builder clearIndicator() {
      * .google.cloud.securitycenter.v1.Indicator indicator = 18;
      */
     public com.google.cloud.securitycenter.v1.Indicator.Builder getIndicatorBuilder() {
-      
+
       onChanged();
       return getIndicatorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Represents what's commonly known as an Indicator of compromise (IoC) in
      * computer forensics. This is an artifact observed on a network or in an
@@ -5529,11 +6157,14 @@ public com.google.cloud.securitycenter.v1.IndicatorOrBuilder getIndicatorOrBuild
       if (indicatorBuilder_ != null) {
         return indicatorBuilder_.getMessageOrBuilder();
       } else {
-        return indicator_ == null ?
-            com.google.cloud.securitycenter.v1.Indicator.getDefaultInstance() : indicator_;
+        return indicator_ == null
+            ? com.google.cloud.securitycenter.v1.Indicator.getDefaultInstance()
+            : indicator_;
       }
     }
     /**
+     *
+     *
      * 
      * Represents what's commonly known as an Indicator of compromise (IoC) in
      * computer forensics. This is an artifact observed on a network or in an
@@ -5545,14 +6176,17 @@ public com.google.cloud.securitycenter.v1.IndicatorOrBuilder getIndicatorOrBuild
      * .google.cloud.securitycenter.v1.Indicator indicator = 18;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.Indicator, com.google.cloud.securitycenter.v1.Indicator.Builder, com.google.cloud.securitycenter.v1.IndicatorOrBuilder> 
+            com.google.cloud.securitycenter.v1.Indicator,
+            com.google.cloud.securitycenter.v1.Indicator.Builder,
+            com.google.cloud.securitycenter.v1.IndicatorOrBuilder>
         getIndicatorFieldBuilder() {
       if (indicatorBuilder_ == null) {
-        indicatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Indicator, com.google.cloud.securitycenter.v1.Indicator.Builder, com.google.cloud.securitycenter.v1.IndicatorOrBuilder>(
-                getIndicator(),
-                getParentForChildren(),
-                isClean());
+        indicatorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.securitycenter.v1.Indicator,
+                com.google.cloud.securitycenter.v1.Indicator.Builder,
+                com.google.cloud.securitycenter.v1.IndicatorOrBuilder>(
+                getIndicator(), getParentForChildren(), isClean());
         indicator_ = null;
       }
       return indicatorBuilder_;
@@ -5560,8 +6194,13 @@ public com.google.cloud.securitycenter.v1.IndicatorOrBuilder getIndicatorOrBuild
 
     private com.google.cloud.securitycenter.v1.Vulnerability vulnerability_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.Vulnerability, com.google.cloud.securitycenter.v1.Vulnerability.Builder, com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder> vulnerabilityBuilder_;
+            com.google.cloud.securitycenter.v1.Vulnerability,
+            com.google.cloud.securitycenter.v1.Vulnerability.Builder,
+            com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder>
+        vulnerabilityBuilder_;
     /**
+     *
+     *
      * 
      * Represents vulnerability specific fields like cve, cvss scores etc.
      * CVE stands for Common Vulnerabilities and Exposures
@@ -5569,12 +6208,15 @@ public com.google.cloud.securitycenter.v1.IndicatorOrBuilder getIndicatorOrBuild
      * 
* * .google.cloud.securitycenter.v1.Vulnerability vulnerability = 20; + * * @return Whether the vulnerability field is set. */ public boolean hasVulnerability() { return vulnerabilityBuilder_ != null || vulnerability_ != null; } /** + * + * *
      * Represents vulnerability specific fields like cve, cvss scores etc.
      * CVE stands for Common Vulnerabilities and Exposures
@@ -5582,16 +6224,21 @@ public boolean hasVulnerability() {
      * 
* * .google.cloud.securitycenter.v1.Vulnerability vulnerability = 20; + * * @return The vulnerability. */ public com.google.cloud.securitycenter.v1.Vulnerability getVulnerability() { if (vulnerabilityBuilder_ == null) { - return vulnerability_ == null ? com.google.cloud.securitycenter.v1.Vulnerability.getDefaultInstance() : vulnerability_; + return vulnerability_ == null + ? com.google.cloud.securitycenter.v1.Vulnerability.getDefaultInstance() + : vulnerability_; } else { return vulnerabilityBuilder_.getMessage(); } } /** + * + * *
      * Represents vulnerability specific fields like cve, cvss scores etc.
      * CVE stands for Common Vulnerabilities and Exposures
@@ -5614,6 +6261,8 @@ public Builder setVulnerability(com.google.cloud.securitycenter.v1.Vulnerability
       return this;
     }
     /**
+     *
+     *
      * 
      * Represents vulnerability specific fields like cve, cvss scores etc.
      * CVE stands for Common Vulnerabilities and Exposures
@@ -5634,6 +6283,8 @@ public Builder setVulnerability(
       return this;
     }
     /**
+     *
+     *
      * 
      * Represents vulnerability specific fields like cve, cvss scores etc.
      * CVE stands for Common Vulnerabilities and Exposures
@@ -5646,7 +6297,9 @@ public Builder mergeVulnerability(com.google.cloud.securitycenter.v1.Vulnerabili
       if (vulnerabilityBuilder_ == null) {
         if (vulnerability_ != null) {
           vulnerability_ =
-            com.google.cloud.securitycenter.v1.Vulnerability.newBuilder(vulnerability_).mergeFrom(value).buildPartial();
+              com.google.cloud.securitycenter.v1.Vulnerability.newBuilder(vulnerability_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           vulnerability_ = value;
         }
@@ -5658,6 +6311,8 @@ public Builder mergeVulnerability(com.google.cloud.securitycenter.v1.Vulnerabili
       return this;
     }
     /**
+     *
+     *
      * 
      * Represents vulnerability specific fields like cve, cvss scores etc.
      * CVE stands for Common Vulnerabilities and Exposures
@@ -5678,6 +6333,8 @@ public Builder clearVulnerability() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Represents vulnerability specific fields like cve, cvss scores etc.
      * CVE stands for Common Vulnerabilities and Exposures
@@ -5687,11 +6344,13 @@ public Builder clearVulnerability() {
      * .google.cloud.securitycenter.v1.Vulnerability vulnerability = 20;
      */
     public com.google.cloud.securitycenter.v1.Vulnerability.Builder getVulnerabilityBuilder() {
-      
+
       onChanged();
       return getVulnerabilityFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Represents vulnerability specific fields like cve, cvss scores etc.
      * CVE stands for Common Vulnerabilities and Exposures
@@ -5704,11 +6363,14 @@ public com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder getVulnerabilit
       if (vulnerabilityBuilder_ != null) {
         return vulnerabilityBuilder_.getMessageOrBuilder();
       } else {
-        return vulnerability_ == null ?
-            com.google.cloud.securitycenter.v1.Vulnerability.getDefaultInstance() : vulnerability_;
+        return vulnerability_ == null
+            ? com.google.cloud.securitycenter.v1.Vulnerability.getDefaultInstance()
+            : vulnerability_;
       }
     }
     /**
+     *
+     *
      * 
      * Represents vulnerability specific fields like cve, cvss scores etc.
      * CVE stands for Common Vulnerabilities and Exposures
@@ -5718,14 +6380,17 @@ public com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder getVulnerabilit
      * .google.cloud.securitycenter.v1.Vulnerability vulnerability = 20;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.Vulnerability, com.google.cloud.securitycenter.v1.Vulnerability.Builder, com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder> 
+            com.google.cloud.securitycenter.v1.Vulnerability,
+            com.google.cloud.securitycenter.v1.Vulnerability.Builder,
+            com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder>
         getVulnerabilityFieldBuilder() {
       if (vulnerabilityBuilder_ == null) {
-        vulnerabilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Vulnerability, com.google.cloud.securitycenter.v1.Vulnerability.Builder, com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder>(
-                getVulnerability(),
-                getParentForChildren(),
-                isClean());
+        vulnerabilityBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.securitycenter.v1.Vulnerability,
+                com.google.cloud.securitycenter.v1.Vulnerability.Builder,
+                com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder>(
+                getVulnerability(), getParentForChildren(), isClean());
         vulnerability_ = null;
       }
       return vulnerabilityBuilder_;
@@ -5733,39 +6398,58 @@ public com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder getVulnerabilit
 
     private com.google.protobuf.Timestamp muteUpdateTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> muteUpdateTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        muteUpdateTimeBuilder_;
     /**
+     *
+     *
      * 
      * Output only. The most recent time this finding was muted or unmuted.
      * 
* - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the muteUpdateTime field is set. */ public boolean hasMuteUpdateTime() { return muteUpdateTimeBuilder_ != null || muteUpdateTime_ != null; } /** + * + * *
      * Output only. The most recent time this finding was muted or unmuted.
      * 
* - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The muteUpdateTime. */ public com.google.protobuf.Timestamp getMuteUpdateTime() { if (muteUpdateTimeBuilder_ == null) { - return muteUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : muteUpdateTime_; + return muteUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : muteUpdateTime_; } else { return muteUpdateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The most recent time this finding was muted or unmuted.
      * 
* - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setMuteUpdateTime(com.google.protobuf.Timestamp value) { if (muteUpdateTimeBuilder_ == null) { @@ -5781,14 +6465,17 @@ public Builder setMuteUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time this finding was muted or unmuted.
      * 
* - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setMuteUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setMuteUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (muteUpdateTimeBuilder_ == null) { muteUpdateTime_ = builderForValue.build(); onChanged(); @@ -5799,17 +6486,23 @@ public Builder setMuteUpdateTime( return this; } /** + * + * *
      * Output only. The most recent time this finding was muted or unmuted.
      * 
* - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeMuteUpdateTime(com.google.protobuf.Timestamp value) { if (muteUpdateTimeBuilder_ == null) { if (muteUpdateTime_ != null) { muteUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(muteUpdateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(muteUpdateTime_) + .mergeFrom(value) + .buildPartial(); } else { muteUpdateTime_ = value; } @@ -5821,11 +6514,15 @@ public Builder mergeMuteUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time this finding was muted or unmuted.
      * 
* - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearMuteUpdateTime() { if (muteUpdateTimeBuilder_ == null) { @@ -5839,69 +6536,92 @@ public Builder clearMuteUpdateTime() { return this; } /** + * + * *
      * Output only. The most recent time this finding was muted or unmuted.
      * 
* - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getMuteUpdateTimeBuilder() { - + onChanged(); return getMuteUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The most recent time this finding was muted or unmuted.
      * 
* - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getMuteUpdateTimeOrBuilder() { if (muteUpdateTimeBuilder_ != null) { return muteUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return muteUpdateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : muteUpdateTime_; + return muteUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : muteUpdateTime_; } } /** + * + * *
      * Output only. The most recent time this finding was muted or unmuted.
      * 
* - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getMuteUpdateTimeFieldBuilder() { if (muteUpdateTimeBuilder_ == null) { - muteUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getMuteUpdateTime(), - getParentForChildren(), - isClean()); + muteUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getMuteUpdateTime(), getParentForChildren(), isClean()); muteUpdateTime_ = null; } return muteUpdateTimeBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem> externalSystems_; - private com.google.protobuf.MapField - internalGetExternalSystems() { + java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem> + externalSystems_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem> + internalGetExternalSystems() { if (externalSystems_ == null) { return com.google.protobuf.MapField.emptyMapField( ExternalSystemsDefaultEntryHolder.defaultEntry); } return externalSystems_; } - private com.google.protobuf.MapField - internalGetMutableExternalSystems() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.securitycenter.v1.ExternalSystem> + internalGetMutableExternalSystems() { + onChanged(); + ; if (externalSystems_ == null) { - externalSystems_ = com.google.protobuf.MapField.newMapField( - ExternalSystemsDefaultEntryHolder.defaultEntry); + externalSystems_ = + com.google.protobuf.MapField.newMapField( + ExternalSystemsDefaultEntryHolder.defaultEntry); } if (!externalSystems_.isMutable()) { externalSystems_ = externalSystems_.copy(); @@ -5913,72 +6633,88 @@ public int getExternalSystemsCount() { return internalGetExternalSystems().getMap().size(); } /** + * + * *
      * Output only. Third party SIEM/SOAR fields within SCC, contains external
      * system information and external system finding fields.
      * 
* - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsExternalSystems( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsExternalSystems(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetExternalSystems().getMap().containsKey(key); } - /** - * Use {@link #getExternalSystemsMap()} instead. - */ + /** Use {@link #getExternalSystemsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getExternalSystems() { + public java.util.Map + getExternalSystems() { return getExternalSystemsMap(); } /** + * + * *
      * Output only. Third party SIEM/SOAR fields within SCC, contains external
      * system information and external system finding fields.
      * 
* - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - - public java.util.Map getExternalSystemsMap() { + public java.util.Map + getExternalSystemsMap() { return internalGetExternalSystems().getMap(); } /** + * + * *
      * Output only. Third party SIEM/SOAR fields within SCC, contains external
      * system information and external system finding fields.
      * 
* - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault( - java.lang.String key, - com.google.cloud.securitycenter.v1.ExternalSystem defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.cloud.securitycenter.v1.ExternalSystem defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetExternalSystems().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Output only. Third party SIEM/SOAR fields within SCC, contains external
      * system information and external system finding fields.
      * 
* - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetExternalSystems().getMap(); if (!map.containsKey(key)) { @@ -5988,102 +6724,121 @@ public com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrThr } public Builder clearExternalSystems() { - internalGetMutableExternalSystems().getMutableMap() - .clear(); + internalGetMutableExternalSystems().getMutableMap().clear(); return this; } /** + * + * *
      * Output only. Third party SIEM/SOAR fields within SCC, contains external
      * system information and external system finding fields.
      * 
* - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - public Builder removeExternalSystems( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableExternalSystems().getMutableMap() - .remove(key); + public Builder removeExternalSystems(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableExternalSystems().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map - getMutableExternalSystems() { + getMutableExternalSystems() { return internalGetMutableExternalSystems().getMutableMap(); } /** + * + * *
      * Output only. Third party SIEM/SOAR fields within SCC, contains external
      * system information and external system finding fields.
      * 
* - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder putExternalSystems( - java.lang.String key, - com.google.cloud.securitycenter.v1.ExternalSystem value) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.cloud.securitycenter.v1.ExternalSystem value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableExternalSystems().getMutableMap() - .put(key, value); + internalGetMutableExternalSystems().getMutableMap().put(key, value); return this; } /** + * + * *
      * Output only. Third party SIEM/SOAR fields within SCC, contains external
      * system information and external system finding fields.
      * 
* - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putAllExternalSystems( java.util.Map values) { - internalGetMutableExternalSystems().getMutableMap() - .putAll(values); + internalGetMutableExternalSystems().getMutableMap().putAll(values); return this; } private com.google.cloud.securitycenter.v1.MitreAttack mitreAttack_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.MitreAttack, com.google.cloud.securitycenter.v1.MitreAttack.Builder, com.google.cloud.securitycenter.v1.MitreAttackOrBuilder> mitreAttackBuilder_; + com.google.cloud.securitycenter.v1.MitreAttack, + com.google.cloud.securitycenter.v1.MitreAttack.Builder, + com.google.cloud.securitycenter.v1.MitreAttackOrBuilder> + mitreAttackBuilder_; /** + * + * *
      * MITRE ATT&CK tactics and techniques related to this finding.
      * See: https://attack.mitre.org
      * 
* * .google.cloud.securitycenter.v1.MitreAttack mitre_attack = 25; + * * @return Whether the mitreAttack field is set. */ public boolean hasMitreAttack() { return mitreAttackBuilder_ != null || mitreAttack_ != null; } /** + * + * *
      * MITRE ATT&CK tactics and techniques related to this finding.
      * See: https://attack.mitre.org
      * 
* * .google.cloud.securitycenter.v1.MitreAttack mitre_attack = 25; + * * @return The mitreAttack. */ public com.google.cloud.securitycenter.v1.MitreAttack getMitreAttack() { if (mitreAttackBuilder_ == null) { - return mitreAttack_ == null ? com.google.cloud.securitycenter.v1.MitreAttack.getDefaultInstance() : mitreAttack_; + return mitreAttack_ == null + ? com.google.cloud.securitycenter.v1.MitreAttack.getDefaultInstance() + : mitreAttack_; } else { return mitreAttackBuilder_.getMessage(); } } /** + * + * *
      * MITRE ATT&CK tactics and techniques related to this finding.
      * See: https://attack.mitre.org
@@ -6105,6 +6860,8 @@ public Builder setMitreAttack(com.google.cloud.securitycenter.v1.MitreAttack val
       return this;
     }
     /**
+     *
+     *
      * 
      * MITRE ATT&CK tactics and techniques related to this finding.
      * See: https://attack.mitre.org
@@ -6124,6 +6881,8 @@ public Builder setMitreAttack(
       return this;
     }
     /**
+     *
+     *
      * 
      * MITRE ATT&CK tactics and techniques related to this finding.
      * See: https://attack.mitre.org
@@ -6135,7 +6894,9 @@ public Builder mergeMitreAttack(com.google.cloud.securitycenter.v1.MitreAttack v
       if (mitreAttackBuilder_ == null) {
         if (mitreAttack_ != null) {
           mitreAttack_ =
-            com.google.cloud.securitycenter.v1.MitreAttack.newBuilder(mitreAttack_).mergeFrom(value).buildPartial();
+              com.google.cloud.securitycenter.v1.MitreAttack.newBuilder(mitreAttack_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           mitreAttack_ = value;
         }
@@ -6147,6 +6908,8 @@ public Builder mergeMitreAttack(com.google.cloud.securitycenter.v1.MitreAttack v
       return this;
     }
     /**
+     *
+     *
      * 
      * MITRE ATT&CK tactics and techniques related to this finding.
      * See: https://attack.mitre.org
@@ -6166,6 +6929,8 @@ public Builder clearMitreAttack() {
       return this;
     }
     /**
+     *
+     *
      * 
      * MITRE ATT&CK tactics and techniques related to this finding.
      * See: https://attack.mitre.org
@@ -6174,11 +6939,13 @@ public Builder clearMitreAttack() {
      * .google.cloud.securitycenter.v1.MitreAttack mitre_attack = 25;
      */
     public com.google.cloud.securitycenter.v1.MitreAttack.Builder getMitreAttackBuilder() {
-      
+
       onChanged();
       return getMitreAttackFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * MITRE ATT&CK tactics and techniques related to this finding.
      * See: https://attack.mitre.org
@@ -6190,11 +6957,14 @@ public com.google.cloud.securitycenter.v1.MitreAttackOrBuilder getMitreAttackOrB
       if (mitreAttackBuilder_ != null) {
         return mitreAttackBuilder_.getMessageOrBuilder();
       } else {
-        return mitreAttack_ == null ?
-            com.google.cloud.securitycenter.v1.MitreAttack.getDefaultInstance() : mitreAttack_;
+        return mitreAttack_ == null
+            ? com.google.cloud.securitycenter.v1.MitreAttack.getDefaultInstance()
+            : mitreAttack_;
       }
     }
     /**
+     *
+     *
      * 
      * MITRE ATT&CK tactics and techniques related to this finding.
      * See: https://attack.mitre.org
@@ -6203,14 +6973,17 @@ public com.google.cloud.securitycenter.v1.MitreAttackOrBuilder getMitreAttackOrB
      * .google.cloud.securitycenter.v1.MitreAttack mitre_attack = 25;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.MitreAttack, com.google.cloud.securitycenter.v1.MitreAttack.Builder, com.google.cloud.securitycenter.v1.MitreAttackOrBuilder> 
+            com.google.cloud.securitycenter.v1.MitreAttack,
+            com.google.cloud.securitycenter.v1.MitreAttack.Builder,
+            com.google.cloud.securitycenter.v1.MitreAttackOrBuilder>
         getMitreAttackFieldBuilder() {
       if (mitreAttackBuilder_ == null) {
-        mitreAttackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.MitreAttack, com.google.cloud.securitycenter.v1.MitreAttack.Builder, com.google.cloud.securitycenter.v1.MitreAttackOrBuilder>(
-                getMitreAttack(),
-                getParentForChildren(),
-                isClean());
+        mitreAttackBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.securitycenter.v1.MitreAttack,
+                com.google.cloud.securitycenter.v1.MitreAttack.Builder,
+                com.google.cloud.securitycenter.v1.MitreAttackOrBuilder>(
+                getMitreAttack(), getParentForChildren(), isClean());
         mitreAttack_ = null;
       }
       return mitreAttackBuilder_;
@@ -6218,36 +6991,49 @@ public com.google.cloud.securitycenter.v1.MitreAttackOrBuilder getMitreAttackOrB
 
     private com.google.cloud.securitycenter.v1.Access access_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.Access, com.google.cloud.securitycenter.v1.Access.Builder, com.google.cloud.securitycenter.v1.AccessOrBuilder> accessBuilder_;
+            com.google.cloud.securitycenter.v1.Access,
+            com.google.cloud.securitycenter.v1.Access.Builder,
+            com.google.cloud.securitycenter.v1.AccessOrBuilder>
+        accessBuilder_;
     /**
+     *
+     *
      * 
      * Access details associated to the Finding, such as more information on the
      * caller, which method was accessed, from where, etc.
      * 
* * .google.cloud.securitycenter.v1.Access access = 26; + * * @return Whether the access field is set. */ public boolean hasAccess() { return accessBuilder_ != null || access_ != null; } /** + * + * *
      * Access details associated to the Finding, such as more information on the
      * caller, which method was accessed, from where, etc.
      * 
* * .google.cloud.securitycenter.v1.Access access = 26; + * * @return The access. */ public com.google.cloud.securitycenter.v1.Access getAccess() { if (accessBuilder_ == null) { - return access_ == null ? com.google.cloud.securitycenter.v1.Access.getDefaultInstance() : access_; + return access_ == null + ? com.google.cloud.securitycenter.v1.Access.getDefaultInstance() + : access_; } else { return accessBuilder_.getMessage(); } } /** + * + * *
      * Access details associated to the Finding, such as more information on the
      * caller, which method was accessed, from where, etc.
@@ -6269,6 +7055,8 @@ public Builder setAccess(com.google.cloud.securitycenter.v1.Access value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Access details associated to the Finding, such as more information on the
      * caller, which method was accessed, from where, etc.
@@ -6276,8 +7064,7 @@ public Builder setAccess(com.google.cloud.securitycenter.v1.Access value) {
      *
      * .google.cloud.securitycenter.v1.Access access = 26;
      */
-    public Builder setAccess(
-        com.google.cloud.securitycenter.v1.Access.Builder builderForValue) {
+    public Builder setAccess(com.google.cloud.securitycenter.v1.Access.Builder builderForValue) {
       if (accessBuilder_ == null) {
         access_ = builderForValue.build();
         onChanged();
@@ -6288,6 +7075,8 @@ public Builder setAccess(
       return this;
     }
     /**
+     *
+     *
      * 
      * Access details associated to the Finding, such as more information on the
      * caller, which method was accessed, from where, etc.
@@ -6299,7 +7088,9 @@ public Builder mergeAccess(com.google.cloud.securitycenter.v1.Access value) {
       if (accessBuilder_ == null) {
         if (access_ != null) {
           access_ =
-            com.google.cloud.securitycenter.v1.Access.newBuilder(access_).mergeFrom(value).buildPartial();
+              com.google.cloud.securitycenter.v1.Access.newBuilder(access_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           access_ = value;
         }
@@ -6311,6 +7102,8 @@ public Builder mergeAccess(com.google.cloud.securitycenter.v1.Access value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Access details associated to the Finding, such as more information on the
      * caller, which method was accessed, from where, etc.
@@ -6330,6 +7123,8 @@ public Builder clearAccess() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Access details associated to the Finding, such as more information on the
      * caller, which method was accessed, from where, etc.
@@ -6338,11 +7133,13 @@ public Builder clearAccess() {
      * .google.cloud.securitycenter.v1.Access access = 26;
      */
     public com.google.cloud.securitycenter.v1.Access.Builder getAccessBuilder() {
-      
+
       onChanged();
       return getAccessFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Access details associated to the Finding, such as more information on the
      * caller, which method was accessed, from where, etc.
@@ -6354,11 +7151,14 @@ public com.google.cloud.securitycenter.v1.AccessOrBuilder getAccessOrBuilder() {
       if (accessBuilder_ != null) {
         return accessBuilder_.getMessageOrBuilder();
       } else {
-        return access_ == null ?
-            com.google.cloud.securitycenter.v1.Access.getDefaultInstance() : access_;
+        return access_ == null
+            ? com.google.cloud.securitycenter.v1.Access.getDefaultInstance()
+            : access_;
       }
     }
     /**
+     *
+     *
      * 
      * Access details associated to the Finding, such as more information on the
      * caller, which method was accessed, from where, etc.
@@ -6367,32 +7167,42 @@ public com.google.cloud.securitycenter.v1.AccessOrBuilder getAccessOrBuilder() {
      * .google.cloud.securitycenter.v1.Access access = 26;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.Access, com.google.cloud.securitycenter.v1.Access.Builder, com.google.cloud.securitycenter.v1.AccessOrBuilder> 
+            com.google.cloud.securitycenter.v1.Access,
+            com.google.cloud.securitycenter.v1.Access.Builder,
+            com.google.cloud.securitycenter.v1.AccessOrBuilder>
         getAccessFieldBuilder() {
       if (accessBuilder_ == null) {
-        accessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Access, com.google.cloud.securitycenter.v1.Access.Builder, com.google.cloud.securitycenter.v1.AccessOrBuilder>(
-                getAccess(),
-                getParentForChildren(),
-                isClean());
+        accessBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.securitycenter.v1.Access,
+                com.google.cloud.securitycenter.v1.Access.Builder,
+                com.google.cloud.securitycenter.v1.AccessOrBuilder>(
+                getAccess(), getParentForChildren(), isClean());
         access_ = null;
       }
       return accessBuilder_;
     }
 
     private java.util.List connections_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureConnectionsIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
-        connections_ = new java.util.ArrayList(connections_);
+        connections_ =
+            new java.util.ArrayList(connections_);
         bitField0_ |= 0x00000004;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.Connection, com.google.cloud.securitycenter.v1.Connection.Builder, com.google.cloud.securitycenter.v1.ConnectionOrBuilder> connectionsBuilder_;
+            com.google.cloud.securitycenter.v1.Connection,
+            com.google.cloud.securitycenter.v1.Connection.Builder,
+            com.google.cloud.securitycenter.v1.ConnectionOrBuilder>
+        connectionsBuilder_;
 
     /**
+     *
+     *
      * 
      * Contains information about the IP connection associated with the finding.
      * 
@@ -6407,6 +7217,8 @@ public java.util.List getConnecti } } /** + * + * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -6421,6 +7233,8 @@ public int getConnectionsCount() { } } /** + * + * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -6435,14 +7249,15 @@ public com.google.cloud.securitycenter.v1.Connection getConnections(int index) { } } /** + * + * *
      * Contains information about the IP connection associated with the finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ - public Builder setConnections( - int index, com.google.cloud.securitycenter.v1.Connection value) { + public Builder setConnections(int index, com.google.cloud.securitycenter.v1.Connection value) { if (connectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6456,6 +7271,8 @@ public Builder setConnections( return this; } /** + * + * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -6474,6 +7291,8 @@ public Builder setConnections( return this; } /** + * + * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -6494,14 +7313,15 @@ public Builder addConnections(com.google.cloud.securitycenter.v1.Connection valu return this; } /** + * + * *
      * Contains information about the IP connection associated with the finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ - public Builder addConnections( - int index, com.google.cloud.securitycenter.v1.Connection value) { + public Builder addConnections(int index, com.google.cloud.securitycenter.v1.Connection value) { if (connectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6515,6 +7335,8 @@ public Builder addConnections( return this; } /** + * + * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -6533,6 +7355,8 @@ public Builder addConnections( return this; } /** + * + * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -6551,6 +7375,8 @@ public Builder addConnections( return this; } /** + * + * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -6561,8 +7387,7 @@ public Builder addAllConnections( java.lang.Iterable values) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connections_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connections_); onChanged(); } else { connectionsBuilder_.addAllMessages(values); @@ -6570,6 +7395,8 @@ public Builder addAllConnections( return this; } /** + * + * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -6587,6 +7414,8 @@ public Builder clearConnections() { return this; } /** + * + * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -6604,17 +7433,20 @@ public Builder removeConnections(int index) { return this; } /** + * + * *
      * Contains information about the IP connection associated with the finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ - public com.google.cloud.securitycenter.v1.Connection.Builder getConnectionsBuilder( - int index) { + public com.google.cloud.securitycenter.v1.Connection.Builder getConnectionsBuilder(int index) { return getConnectionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -6624,19 +7456,22 @@ public com.google.cloud.securitycenter.v1.Connection.Builder getConnectionsBuild public com.google.cloud.securitycenter.v1.ConnectionOrBuilder getConnectionsOrBuilder( int index) { if (connectionsBuilder_ == null) { - return connections_.get(index); } else { + return connections_.get(index); + } else { return connectionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Contains information about the IP connection associated with the finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ - public java.util.List - getConnectionsOrBuilderList() { + public java.util.List + getConnectionsOrBuilderList() { if (connectionsBuilder_ != null) { return connectionsBuilder_.getMessageOrBuilderList(); } else { @@ -6644,6 +7479,8 @@ public com.google.cloud.securitycenter.v1.ConnectionOrBuilder getConnectionsOrBu } } /** + * + * *
      * Contains information about the IP connection associated with the finding.
      * 
@@ -6651,42 +7488,48 @@ public com.google.cloud.securitycenter.v1.ConnectionOrBuilder getConnectionsOrBu * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ public com.google.cloud.securitycenter.v1.Connection.Builder addConnectionsBuilder() { - return getConnectionsFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1.Connection.getDefaultInstance()); + return getConnectionsFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1.Connection.getDefaultInstance()); } /** + * + * *
      * Contains information about the IP connection associated with the finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ - public com.google.cloud.securitycenter.v1.Connection.Builder addConnectionsBuilder( - int index) { - return getConnectionsFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1.Connection.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.Connection.Builder addConnectionsBuilder(int index) { + return getConnectionsFieldBuilder() + .addBuilder(index, com.google.cloud.securitycenter.v1.Connection.getDefaultInstance()); } /** + * + * *
      * Contains information about the IP connection associated with the finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ - public java.util.List - getConnectionsBuilderList() { + public java.util.List + getConnectionsBuilderList() { return getConnectionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Connection, com.google.cloud.securitycenter.v1.Connection.Builder, com.google.cloud.securitycenter.v1.ConnectionOrBuilder> + com.google.cloud.securitycenter.v1.Connection, + com.google.cloud.securitycenter.v1.Connection.Builder, + com.google.cloud.securitycenter.v1.ConnectionOrBuilder> getConnectionsFieldBuilder() { if (connectionsBuilder_ == null) { - connectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Connection, com.google.cloud.securitycenter.v1.Connection.Builder, com.google.cloud.securitycenter.v1.ConnectionOrBuilder>( - connections_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + connectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.Connection, + com.google.cloud.securitycenter.v1.Connection.Builder, + com.google.cloud.securitycenter.v1.ConnectionOrBuilder>( + connections_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); connections_ = null; } return connectionsBuilder_; @@ -6694,6 +7537,8 @@ public com.google.cloud.securitycenter.v1.Connection.Builder addConnectionsBuild private java.lang.Object muteInitiator_ = ""; /** + * + * *
      * First known as mute_annotation. Records additional information about the
      * mute operation e.g. mute config that muted the finding, user who muted the
@@ -6702,13 +7547,13 @@ public com.google.cloud.securitycenter.v1.Connection.Builder addConnectionsBuild
      * 
* * string mute_initiator = 28; + * * @return The muteInitiator. */ public java.lang.String getMuteInitiator() { java.lang.Object ref = muteInitiator_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); muteInitiator_ = s; return s; @@ -6717,6 +7562,8 @@ public java.lang.String getMuteInitiator() { } } /** + * + * *
      * First known as mute_annotation. Records additional information about the
      * mute operation e.g. mute config that muted the finding, user who muted the
@@ -6725,15 +7572,14 @@ public java.lang.String getMuteInitiator() {
      * 
* * string mute_initiator = 28; + * * @return The bytes for muteInitiator. */ - public com.google.protobuf.ByteString - getMuteInitiatorBytes() { + public com.google.protobuf.ByteString getMuteInitiatorBytes() { java.lang.Object ref = muteInitiator_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); muteInitiator_ = b; return b; } else { @@ -6741,6 +7587,8 @@ public java.lang.String getMuteInitiator() { } } /** + * + * *
      * First known as mute_annotation. Records additional information about the
      * mute operation e.g. mute config that muted the finding, user who muted the
@@ -6749,20 +7597,22 @@ public java.lang.String getMuteInitiator() {
      * 
* * string mute_initiator = 28; + * * @param value The muteInitiator to set. * @return This builder for chaining. */ - public Builder setMuteInitiator( - java.lang.String value) { + public Builder setMuteInitiator(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + muteInitiator_ = value; onChanged(); return this; } /** + * + * *
      * First known as mute_annotation. Records additional information about the
      * mute operation e.g. mute config that muted the finding, user who muted the
@@ -6771,15 +7621,18 @@ public Builder setMuteInitiator(
      * 
* * string mute_initiator = 28; + * * @return This builder for chaining. */ public Builder clearMuteInitiator() { - + muteInitiator_ = getDefaultInstance().getMuteInitiator(); onChanged(); return this; } /** + * + * *
      * First known as mute_annotation. Records additional information about the
      * mute operation e.g. mute config that muted the finding, user who muted the
@@ -6788,34 +7641,41 @@ public Builder clearMuteInitiator() {
      * 
* * string mute_initiator = 28; + * * @param value The bytes for muteInitiator to set. * @return This builder for chaining. */ - public Builder setMuteInitiatorBytes( - com.google.protobuf.ByteString value) { + public Builder setMuteInitiatorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + muteInitiator_ = value; onChanged(); return this; } private java.util.List processes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureProcessesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - processes_ = new java.util.ArrayList(processes_); + processes_ = + new java.util.ArrayList(processes_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Process, com.google.cloud.securitycenter.v1.Process.Builder, com.google.cloud.securitycenter.v1.ProcessOrBuilder> processesBuilder_; + com.google.cloud.securitycenter.v1.Process, + com.google.cloud.securitycenter.v1.Process.Builder, + com.google.cloud.securitycenter.v1.ProcessOrBuilder> + processesBuilder_; /** + * + * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -6830,6 +7690,8 @@ public java.util.List getProcessesLi } } /** + * + * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -6844,6 +7706,8 @@ public int getProcessesCount() { } } /** + * + * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -6858,14 +7722,15 @@ public com.google.cloud.securitycenter.v1.Process getProcesses(int index) { } } /** + * + * *
      * Represents operating system processes associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ - public Builder setProcesses( - int index, com.google.cloud.securitycenter.v1.Process value) { + public Builder setProcesses(int index, com.google.cloud.securitycenter.v1.Process value) { if (processesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6879,6 +7744,8 @@ public Builder setProcesses( return this; } /** + * + * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -6897,6 +7764,8 @@ public Builder setProcesses( return this; } /** + * + * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -6917,14 +7786,15 @@ public Builder addProcesses(com.google.cloud.securitycenter.v1.Process value) { return this; } /** + * + * *
      * Represents operating system processes associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ - public Builder addProcesses( - int index, com.google.cloud.securitycenter.v1.Process value) { + public Builder addProcesses(int index, com.google.cloud.securitycenter.v1.Process value) { if (processesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6938,6 +7808,8 @@ public Builder addProcesses( return this; } /** + * + * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -6956,6 +7828,8 @@ public Builder addProcesses( return this; } /** + * + * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -6974,6 +7848,8 @@ public Builder addProcesses( return this; } /** + * + * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -6984,8 +7860,7 @@ public Builder addAllProcesses( java.lang.Iterable values) { if (processesBuilder_ == null) { ensureProcessesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, processes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, processes_); onChanged(); } else { processesBuilder_.addAllMessages(values); @@ -6993,6 +7868,8 @@ public Builder addAllProcesses( return this; } /** + * + * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -7010,6 +7887,8 @@ public Builder clearProcesses() { return this; } /** + * + * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -7027,39 +7906,44 @@ public Builder removeProcesses(int index) { return this; } /** + * + * *
      * Represents operating system processes associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ - public com.google.cloud.securitycenter.v1.Process.Builder getProcessesBuilder( - int index) { + public com.google.cloud.securitycenter.v1.Process.Builder getProcessesBuilder(int index) { return getProcessesFieldBuilder().getBuilder(index); } /** + * + * *
      * Represents operating system processes associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ - public com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder(int index) { if (processesBuilder_ == null) { - return processes_.get(index); } else { + return processes_.get(index); + } else { return processesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Represents operating system processes associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ - public java.util.List - getProcessesOrBuilderList() { + public java.util.List + getProcessesOrBuilderList() { if (processesBuilder_ != null) { return processesBuilder_.getMessageOrBuilderList(); } else { @@ -7067,6 +7951,8 @@ public com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder } } /** + * + * *
      * Represents operating system processes associated with the Finding.
      * 
@@ -7074,60 +7960,73 @@ public com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ public com.google.cloud.securitycenter.v1.Process.Builder addProcessesBuilder() { - return getProcessesFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1.Process.getDefaultInstance()); + return getProcessesFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1.Process.getDefaultInstance()); } /** + * + * *
      * Represents operating system processes associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ - public com.google.cloud.securitycenter.v1.Process.Builder addProcessesBuilder( - int index) { - return getProcessesFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1.Process.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.Process.Builder addProcessesBuilder(int index) { + return getProcessesFieldBuilder() + .addBuilder(index, com.google.cloud.securitycenter.v1.Process.getDefaultInstance()); } /** + * + * *
      * Represents operating system processes associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ - public java.util.List - getProcessesBuilderList() { + public java.util.List + getProcessesBuilderList() { return getProcessesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Process, com.google.cloud.securitycenter.v1.Process.Builder, com.google.cloud.securitycenter.v1.ProcessOrBuilder> + com.google.cloud.securitycenter.v1.Process, + com.google.cloud.securitycenter.v1.Process.Builder, + com.google.cloud.securitycenter.v1.ProcessOrBuilder> getProcessesFieldBuilder() { if (processesBuilder_ == null) { - processesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Process, com.google.cloud.securitycenter.v1.Process.Builder, com.google.cloud.securitycenter.v1.ProcessOrBuilder>( - processes_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + processesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.Process, + com.google.cloud.securitycenter.v1.Process.Builder, + com.google.cloud.securitycenter.v1.ProcessOrBuilder>( + processes_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); processes_ = null; } return processesBuilder_; } private java.util.List compliances_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCompliancesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - compliances_ = new java.util.ArrayList(compliances_); + compliances_ = + new java.util.ArrayList(compliances_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Compliance, com.google.cloud.securitycenter.v1.Compliance.Builder, com.google.cloud.securitycenter.v1.ComplianceOrBuilder> compliancesBuilder_; + com.google.cloud.securitycenter.v1.Compliance, + com.google.cloud.securitycenter.v1.Compliance.Builder, + com.google.cloud.securitycenter.v1.ComplianceOrBuilder> + compliancesBuilder_; /** + * + * *
      * Contains compliance information for security standards associated to the
      * finding.
@@ -7143,6 +8042,8 @@ public java.util.List getComplian
       }
     }
     /**
+     *
+     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -7158,6 +8059,8 @@ public int getCompliancesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -7173,6 +8076,8 @@ public com.google.cloud.securitycenter.v1.Compliance getCompliances(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -7180,8 +8085,7 @@ public com.google.cloud.securitycenter.v1.Compliance getCompliances(int index) {
      *
      * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
      */
-    public Builder setCompliances(
-        int index, com.google.cloud.securitycenter.v1.Compliance value) {
+    public Builder setCompliances(int index, com.google.cloud.securitycenter.v1.Compliance value) {
       if (compliancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -7195,6 +8099,8 @@ public Builder setCompliances(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -7214,6 +8120,8 @@ public Builder setCompliances(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -7235,6 +8143,8 @@ public Builder addCompliances(com.google.cloud.securitycenter.v1.Compliance valu
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -7242,8 +8152,7 @@ public Builder addCompliances(com.google.cloud.securitycenter.v1.Compliance valu
      *
      * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
      */
-    public Builder addCompliances(
-        int index, com.google.cloud.securitycenter.v1.Compliance value) {
+    public Builder addCompliances(int index, com.google.cloud.securitycenter.v1.Compliance value) {
       if (compliancesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -7257,6 +8166,8 @@ public Builder addCompliances(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -7276,6 +8187,8 @@ public Builder addCompliances(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -7295,6 +8208,8 @@ public Builder addCompliances(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -7306,8 +8221,7 @@ public Builder addAllCompliances(
         java.lang.Iterable values) {
       if (compliancesBuilder_ == null) {
         ensureCompliancesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, compliances_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, compliances_);
         onChanged();
       } else {
         compliancesBuilder_.addAllMessages(values);
@@ -7315,6 +8229,8 @@ public Builder addAllCompliances(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -7333,6 +8249,8 @@ public Builder clearCompliances() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -7351,6 +8269,8 @@ public Builder removeCompliances(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -7358,11 +8278,12 @@ public Builder removeCompliances(int index) {
      *
      * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
      */
-    public com.google.cloud.securitycenter.v1.Compliance.Builder getCompliancesBuilder(
-        int index) {
+    public com.google.cloud.securitycenter.v1.Compliance.Builder getCompliancesBuilder(int index) {
       return getCompliancesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -7373,11 +8294,14 @@ public com.google.cloud.securitycenter.v1.Compliance.Builder getCompliancesBuild
     public com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBuilder(
         int index) {
       if (compliancesBuilder_ == null) {
-        return compliances_.get(index);  } else {
+        return compliances_.get(index);
+      } else {
         return compliancesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -7385,8 +8309,8 @@ public com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBu
      *
      * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
      */
-    public java.util.List 
-         getCompliancesOrBuilderList() {
+    public java.util.List
+        getCompliancesOrBuilderList() {
       if (compliancesBuilder_ != null) {
         return compliancesBuilder_.getMessageOrBuilderList();
       } else {
@@ -7394,6 +8318,8 @@ public com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBu
       }
     }
     /**
+     *
+     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -7402,10 +8328,12 @@ public com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBu
      * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
      */
     public com.google.cloud.securitycenter.v1.Compliance.Builder addCompliancesBuilder() {
-      return getCompliancesFieldBuilder().addBuilder(
-          com.google.cloud.securitycenter.v1.Compliance.getDefaultInstance());
+      return getCompliancesFieldBuilder()
+          .addBuilder(com.google.cloud.securitycenter.v1.Compliance.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -7413,12 +8341,13 @@ public com.google.cloud.securitycenter.v1.Compliance.Builder addCompliancesBuild
      *
      * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
      */
-    public com.google.cloud.securitycenter.v1.Compliance.Builder addCompliancesBuilder(
-        int index) {
-      return getCompliancesFieldBuilder().addBuilder(
-          index, com.google.cloud.securitycenter.v1.Compliance.getDefaultInstance());
+    public com.google.cloud.securitycenter.v1.Compliance.Builder addCompliancesBuilder(int index) {
+      return getCompliancesFieldBuilder()
+          .addBuilder(index, com.google.cloud.securitycenter.v1.Compliance.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Contains compliance information for security standards associated to the
      * finding.
@@ -7426,20 +8355,23 @@ public com.google.cloud.securitycenter.v1.Compliance.Builder addCompliancesBuild
      *
      * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
      */
-    public java.util.List 
-         getCompliancesBuilderList() {
+    public java.util.List
+        getCompliancesBuilderList() {
       return getCompliancesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.Compliance, com.google.cloud.securitycenter.v1.Compliance.Builder, com.google.cloud.securitycenter.v1.ComplianceOrBuilder> 
+            com.google.cloud.securitycenter.v1.Compliance,
+            com.google.cloud.securitycenter.v1.Compliance.Builder,
+            com.google.cloud.securitycenter.v1.ComplianceOrBuilder>
         getCompliancesFieldBuilder() {
       if (compliancesBuilder_ == null) {
-        compliancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Compliance, com.google.cloud.securitycenter.v1.Compliance.Builder, com.google.cloud.securitycenter.v1.ComplianceOrBuilder>(
-                compliances_,
-                ((bitField0_ & 0x00000010) != 0),
-                getParentForChildren(),
-                isClean());
+        compliancesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.securitycenter.v1.Compliance,
+                com.google.cloud.securitycenter.v1.Compliance.Builder,
+                com.google.cloud.securitycenter.v1.ComplianceOrBuilder>(
+                compliances_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean());
         compliances_ = null;
       }
       return compliancesBuilder_;
@@ -7447,18 +8379,20 @@ public com.google.cloud.securitycenter.v1.Compliance.Builder addCompliancesBuild
 
     private java.lang.Object description_ = "";
     /**
+     *
+     *
      * 
      * Contains more detail about the finding.
      * 
* * string description = 37; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -7467,20 +8401,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Contains more detail about the finding.
      * 
* * string description = 37; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -7488,54 +8423,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Contains more detail about the finding.
      * 
* * string description = 37; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Contains more detail about the finding.
      * 
* * string description = 37; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Contains more detail about the finding.
      * 
* * string description = 37; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -7543,34 +8485,47 @@ public Builder setDescriptionBytes( private com.google.cloud.securitycenter.v1.Exfiltration exfiltration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Exfiltration, com.google.cloud.securitycenter.v1.Exfiltration.Builder, com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder> exfiltrationBuilder_; + com.google.cloud.securitycenter.v1.Exfiltration, + com.google.cloud.securitycenter.v1.Exfiltration.Builder, + com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder> + exfiltrationBuilder_; /** + * + * *
      * Represents exfiltration associated with the Finding.
      * 
* * .google.cloud.securitycenter.v1.Exfiltration exfiltration = 38; + * * @return Whether the exfiltration field is set. */ public boolean hasExfiltration() { return exfiltrationBuilder_ != null || exfiltration_ != null; } /** + * + * *
      * Represents exfiltration associated with the Finding.
      * 
* * .google.cloud.securitycenter.v1.Exfiltration exfiltration = 38; + * * @return The exfiltration. */ public com.google.cloud.securitycenter.v1.Exfiltration getExfiltration() { if (exfiltrationBuilder_ == null) { - return exfiltration_ == null ? com.google.cloud.securitycenter.v1.Exfiltration.getDefaultInstance() : exfiltration_; + return exfiltration_ == null + ? com.google.cloud.securitycenter.v1.Exfiltration.getDefaultInstance() + : exfiltration_; } else { return exfiltrationBuilder_.getMessage(); } } /** + * + * *
      * Represents exfiltration associated with the Finding.
      * 
@@ -7591,6 +8546,8 @@ public Builder setExfiltration(com.google.cloud.securitycenter.v1.Exfiltration v return this; } /** + * + * *
      * Represents exfiltration associated with the Finding.
      * 
@@ -7609,6 +8566,8 @@ public Builder setExfiltration( return this; } /** + * + * *
      * Represents exfiltration associated with the Finding.
      * 
@@ -7619,7 +8578,9 @@ public Builder mergeExfiltration(com.google.cloud.securitycenter.v1.Exfiltration if (exfiltrationBuilder_ == null) { if (exfiltration_ != null) { exfiltration_ = - com.google.cloud.securitycenter.v1.Exfiltration.newBuilder(exfiltration_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.Exfiltration.newBuilder(exfiltration_) + .mergeFrom(value) + .buildPartial(); } else { exfiltration_ = value; } @@ -7631,6 +8592,8 @@ public Builder mergeExfiltration(com.google.cloud.securitycenter.v1.Exfiltration return this; } /** + * + * *
      * Represents exfiltration associated with the Finding.
      * 
@@ -7649,6 +8612,8 @@ public Builder clearExfiltration() { return this; } /** + * + * *
      * Represents exfiltration associated with the Finding.
      * 
@@ -7656,11 +8621,13 @@ public Builder clearExfiltration() { * .google.cloud.securitycenter.v1.Exfiltration exfiltration = 38; */ public com.google.cloud.securitycenter.v1.Exfiltration.Builder getExfiltrationBuilder() { - + onChanged(); return getExfiltrationFieldBuilder().getBuilder(); } /** + * + * *
      * Represents exfiltration associated with the Finding.
      * 
@@ -7671,11 +8638,14 @@ public com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder getExfiltrationO if (exfiltrationBuilder_ != null) { return exfiltrationBuilder_.getMessageOrBuilder(); } else { - return exfiltration_ == null ? - com.google.cloud.securitycenter.v1.Exfiltration.getDefaultInstance() : exfiltration_; + return exfiltration_ == null + ? com.google.cloud.securitycenter.v1.Exfiltration.getDefaultInstance() + : exfiltration_; } } /** + * + * *
      * Represents exfiltration associated with the Finding.
      * 
@@ -7683,32 +8653,42 @@ public com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder getExfiltrationO * .google.cloud.securitycenter.v1.Exfiltration exfiltration = 38; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Exfiltration, com.google.cloud.securitycenter.v1.Exfiltration.Builder, com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder> + com.google.cloud.securitycenter.v1.Exfiltration, + com.google.cloud.securitycenter.v1.Exfiltration.Builder, + com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder> getExfiltrationFieldBuilder() { if (exfiltrationBuilder_ == null) { - exfiltrationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Exfiltration, com.google.cloud.securitycenter.v1.Exfiltration.Builder, com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder>( - getExfiltration(), - getParentForChildren(), - isClean()); + exfiltrationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Exfiltration, + com.google.cloud.securitycenter.v1.Exfiltration.Builder, + com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder>( + getExfiltration(), getParentForChildren(), isClean()); exfiltration_ = null; } return exfiltrationBuilder_; } private java.util.List iamBindings_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureIamBindingsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - iamBindings_ = new java.util.ArrayList(iamBindings_); + iamBindings_ = + new java.util.ArrayList(iamBindings_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.IamBinding, com.google.cloud.securitycenter.v1.IamBinding.Builder, com.google.cloud.securitycenter.v1.IamBindingOrBuilder> iamBindingsBuilder_; + com.google.cloud.securitycenter.v1.IamBinding, + com.google.cloud.securitycenter.v1.IamBinding.Builder, + com.google.cloud.securitycenter.v1.IamBindingOrBuilder> + iamBindingsBuilder_; /** + * + * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -7723,6 +8703,8 @@ public java.util.List getIamBindi } } /** + * + * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -7737,6 +8719,8 @@ public int getIamBindingsCount() { } } /** + * + * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -7751,14 +8735,15 @@ public com.google.cloud.securitycenter.v1.IamBinding getIamBindings(int index) { } } /** + * + * *
      * Represents IAM bindings associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ - public Builder setIamBindings( - int index, com.google.cloud.securitycenter.v1.IamBinding value) { + public Builder setIamBindings(int index, com.google.cloud.securitycenter.v1.IamBinding value) { if (iamBindingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7772,6 +8757,8 @@ public Builder setIamBindings( return this; } /** + * + * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -7790,6 +8777,8 @@ public Builder setIamBindings( return this; } /** + * + * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -7810,14 +8799,15 @@ public Builder addIamBindings(com.google.cloud.securitycenter.v1.IamBinding valu return this; } /** + * + * *
      * Represents IAM bindings associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ - public Builder addIamBindings( - int index, com.google.cloud.securitycenter.v1.IamBinding value) { + public Builder addIamBindings(int index, com.google.cloud.securitycenter.v1.IamBinding value) { if (iamBindingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7831,6 +8821,8 @@ public Builder addIamBindings( return this; } /** + * + * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -7849,6 +8841,8 @@ public Builder addIamBindings( return this; } /** + * + * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -7867,6 +8861,8 @@ public Builder addIamBindings( return this; } /** + * + * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -7877,8 +8873,7 @@ public Builder addAllIamBindings( java.lang.Iterable values) { if (iamBindingsBuilder_ == null) { ensureIamBindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, iamBindings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, iamBindings_); onChanged(); } else { iamBindingsBuilder_.addAllMessages(values); @@ -7886,6 +8881,8 @@ public Builder addAllIamBindings( return this; } /** + * + * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -7903,6 +8900,8 @@ public Builder clearIamBindings() { return this; } /** + * + * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -7920,17 +8919,20 @@ public Builder removeIamBindings(int index) { return this; } /** + * + * *
      * Represents IAM bindings associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ - public com.google.cloud.securitycenter.v1.IamBinding.Builder getIamBindingsBuilder( - int index) { + public com.google.cloud.securitycenter.v1.IamBinding.Builder getIamBindingsBuilder(int index) { return getIamBindingsFieldBuilder().getBuilder(index); } /** + * + * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -7940,19 +8942,22 @@ public com.google.cloud.securitycenter.v1.IamBinding.Builder getIamBindingsBuild public com.google.cloud.securitycenter.v1.IamBindingOrBuilder getIamBindingsOrBuilder( int index) { if (iamBindingsBuilder_ == null) { - return iamBindings_.get(index); } else { + return iamBindings_.get(index); + } else { return iamBindingsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Represents IAM bindings associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ - public java.util.List - getIamBindingsOrBuilderList() { + public java.util.List + getIamBindingsOrBuilderList() { if (iamBindingsBuilder_ != null) { return iamBindingsBuilder_.getMessageOrBuilderList(); } else { @@ -7960,6 +8965,8 @@ public com.google.cloud.securitycenter.v1.IamBindingOrBuilder getIamBindingsOrBu } } /** + * + * *
      * Represents IAM bindings associated with the Finding.
      * 
@@ -7967,42 +8974,48 @@ public com.google.cloud.securitycenter.v1.IamBindingOrBuilder getIamBindingsOrBu * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ public com.google.cloud.securitycenter.v1.IamBinding.Builder addIamBindingsBuilder() { - return getIamBindingsFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1.IamBinding.getDefaultInstance()); + return getIamBindingsFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1.IamBinding.getDefaultInstance()); } /** + * + * *
      * Represents IAM bindings associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ - public com.google.cloud.securitycenter.v1.IamBinding.Builder addIamBindingsBuilder( - int index) { - return getIamBindingsFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1.IamBinding.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.IamBinding.Builder addIamBindingsBuilder(int index) { + return getIamBindingsFieldBuilder() + .addBuilder(index, com.google.cloud.securitycenter.v1.IamBinding.getDefaultInstance()); } /** + * + * *
      * Represents IAM bindings associated with the Finding.
      * 
* * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ - public java.util.List - getIamBindingsBuilderList() { + public java.util.List + getIamBindingsBuilderList() { return getIamBindingsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.IamBinding, com.google.cloud.securitycenter.v1.IamBinding.Builder, com.google.cloud.securitycenter.v1.IamBindingOrBuilder> + com.google.cloud.securitycenter.v1.IamBinding, + com.google.cloud.securitycenter.v1.IamBinding.Builder, + com.google.cloud.securitycenter.v1.IamBindingOrBuilder> getIamBindingsFieldBuilder() { if (iamBindingsBuilder_ == null) { - iamBindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.IamBinding, com.google.cloud.securitycenter.v1.IamBinding.Builder, com.google.cloud.securitycenter.v1.IamBindingOrBuilder>( - iamBindings_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); + iamBindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.IamBinding, + com.google.cloud.securitycenter.v1.IamBinding.Builder, + com.google.cloud.securitycenter.v1.IamBindingOrBuilder>( + iamBindings_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); iamBindings_ = null; } return iamBindingsBuilder_; @@ -8010,18 +9023,20 @@ public com.google.cloud.securitycenter.v1.IamBinding.Builder addIamBindingsBuild private java.lang.Object nextSteps_ = ""; /** + * + * *
      * Next steps associate to the finding.
      * 
* * string next_steps = 40; + * * @return The nextSteps. */ public java.lang.String getNextSteps() { java.lang.Object ref = nextSteps_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextSteps_ = s; return s; @@ -8030,20 +9045,21 @@ public java.lang.String getNextSteps() { } } /** + * + * *
      * Next steps associate to the finding.
      * 
* * string next_steps = 40; + * * @return The bytes for nextSteps. */ - public com.google.protobuf.ByteString - getNextStepsBytes() { + public com.google.protobuf.ByteString getNextStepsBytes() { java.lang.Object ref = nextSteps_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextSteps_ = b; return b; } else { @@ -8051,61 +9067,68 @@ public java.lang.String getNextSteps() { } } /** + * + * *
      * Next steps associate to the finding.
      * 
* * string next_steps = 40; + * * @param value The nextSteps to set. * @return This builder for chaining. */ - public Builder setNextSteps( - java.lang.String value) { + public Builder setNextSteps(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextSteps_ = value; onChanged(); return this; } /** + * + * *
      * Next steps associate to the finding.
      * 
* * string next_steps = 40; + * * @return This builder for chaining. */ public Builder clearNextSteps() { - + nextSteps_ = getDefaultInstance().getNextSteps(); onChanged(); return this; } /** + * + * *
      * Next steps associate to the finding.
      * 
* * string next_steps = 40; + * * @param value The bytes for nextSteps to set. * @return This builder for chaining. */ - public Builder setNextStepsBytes( - com.google.protobuf.ByteString value) { + public Builder setNextStepsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextSteps_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -8115,12 +9138,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Finding) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Finding) private static final com.google.cloud.securitycenter.v1.Finding DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Finding(); } @@ -8129,16 +9152,16 @@ public static com.google.cloud.securitycenter.v1.Finding getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Finding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Finding(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Finding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Finding(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8153,6 +9176,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java similarity index 84% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java index 9c7f5d4c5..0bc5d05ae 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/finding.proto package com.google.cloud.securitycenter.v1; -public interface FindingOrBuilder extends +public interface FindingOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Finding) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -16,10 +34,13 @@ public interface FindingOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -28,12 +49,14 @@ public interface FindingOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -43,10 +66,13 @@ public interface FindingOrBuilder extends
    * 
* * string parent = 2; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -56,12 +82,14 @@ public interface FindingOrBuilder extends
    * 
* * string parent = 2; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -72,10 +100,13 @@ public interface FindingOrBuilder extends
    * 
* * string resource_name = 3; + * * @return The resourceName. */ java.lang.String getResourceName(); /** + * + * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -86,31 +117,39 @@ public interface FindingOrBuilder extends
    * 
* * string resource_name = 3; + * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString - getResourceNameBytes(); + com.google.protobuf.ByteString getResourceNameBytes(); /** + * + * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.State state = 4; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.State state = 4; + * * @return The state. */ com.google.cloud.securitycenter.v1.Finding.State getState(); /** + * + * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -118,10 +157,13 @@ public interface FindingOrBuilder extends
    * 
* * string category = 5; + * * @return The category. */ java.lang.String getCategory(); /** + * + * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -129,12 +171,14 @@ public interface FindingOrBuilder extends
    * 
* * string category = 5; + * * @return The bytes for category. */ - com.google.protobuf.ByteString - getCategoryBytes(); + com.google.protobuf.ByteString getCategoryBytes(); /** + * + * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -142,10 +186,13 @@ public interface FindingOrBuilder extends
    * 
* * string external_uri = 6; + * * @return The externalUri. */ java.lang.String getExternalUri(); /** + * + * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -153,12 +200,14 @@ public interface FindingOrBuilder extends
    * 
* * string external_uri = 6; + * * @return The bytes for externalUri. */ - com.google.protobuf.ByteString - getExternalUriBytes(); + com.google.protobuf.ByteString getExternalUriBytes(); /** + * + * *
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -170,6 +219,8 @@ public interface FindingOrBuilder extends
    */
   int getSourcePropertiesCount();
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -179,15 +230,13 @@ public interface FindingOrBuilder extends
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-  boolean containsSourceProperties(
-      java.lang.String key);
-  /**
-   * Use {@link #getSourcePropertiesMap()} instead.
-   */
+  boolean containsSourceProperties(java.lang.String key);
+  /** Use {@link #getSourcePropertiesMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getSourceProperties();
+  java.util.Map getSourceProperties();
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -197,9 +246,10 @@ boolean containsSourceProperties(
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-  java.util.Map
-  getSourcePropertiesMap();
+  java.util.Map getSourcePropertiesMap();
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -211,11 +261,13 @@ boolean containsSourceProperties(
    */
 
   /* nullable */
-com.google.protobuf.Value getSourcePropertiesOrDefault(
+  com.google.protobuf.Value getSourcePropertiesOrDefault(
       java.lang.String key,
       /* nullable */
-com.google.protobuf.Value defaultValue);
+      com.google.protobuf.Value defaultValue);
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -225,44 +277,58 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-
-  com.google.protobuf.Value getSourcePropertiesOrThrow(
-      java.lang.String key);
+  com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** + * + * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The securityMarks. */ com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks(); /** + * + * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder(); /** + * + * *
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -274,10 +340,13 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
    * 
* * .google.protobuf.Timestamp event_time = 9; + * * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** + * + * *
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -289,10 +358,13 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
    * 
* * .google.protobuf.Timestamp event_time = 9; + * * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** + * + * *
    * The time the finding was first detected. If an existing finding is updated,
    * then this is the time the update occurred.
@@ -308,24 +380,32 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
   com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time at which the finding was created in Security Command Center.
    * 
@@ -335,27 +415,35 @@ com.google.protobuf.Value getSourcePropertiesOrThrow( com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.Severity severity = 12; + * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** + * + * *
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.Severity severity = 12; + * * @return The severity. */ com.google.cloud.securitycenter.v1.Finding.Severity getSeverity(); /** + * + * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -366,10 +454,13 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
    * 
* * string canonical_name = 14; + * * @return The canonicalName. */ java.lang.String getCanonicalName(); /** + * + * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -380,12 +471,14 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
    * 
* * string canonical_name = 14; + * * @return The bytes for canonicalName. */ - com.google.protobuf.ByteString - getCanonicalNameBytes(); + com.google.protobuf.ByteString getCanonicalNameBytes(); /** + * + * *
    * Indicates the mute state of a finding (either muted, unmuted
    * or undefined). Unlike other attributes of a finding, a finding provider
@@ -393,10 +486,13 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
    * 
* * .google.cloud.securitycenter.v1.Finding.Mute mute = 15; + * * @return The enum numeric value on the wire for mute. */ int getMuteValue(); /** + * + * *
    * Indicates the mute state of a finding (either muted, unmuted
    * or undefined). Unlike other attributes of a finding, a finding provider
@@ -404,30 +500,39 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
    * 
* * .google.cloud.securitycenter.v1.Finding.Mute mute = 15; + * * @return The mute. */ com.google.cloud.securitycenter.v1.Finding.Mute getMute(); /** + * + * *
    * The class of the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.FindingClass finding_class = 17; + * * @return The enum numeric value on the wire for findingClass. */ int getFindingClassValue(); /** + * + * *
    * The class of the finding.
    * 
* * .google.cloud.securitycenter.v1.Finding.FindingClass finding_class = 17; + * * @return The findingClass. */ com.google.cloud.securitycenter.v1.Finding.FindingClass getFindingClass(); /** + * + * *
    * Represents what's commonly known as an Indicator of compromise (IoC) in
    * computer forensics. This is an artifact observed on a network or in an
@@ -437,10 +542,13 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
    * 
* * .google.cloud.securitycenter.v1.Indicator indicator = 18; + * * @return Whether the indicator field is set. */ boolean hasIndicator(); /** + * + * *
    * Represents what's commonly known as an Indicator of compromise (IoC) in
    * computer forensics. This is an artifact observed on a network or in an
@@ -450,10 +558,13 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
    * 
* * .google.cloud.securitycenter.v1.Indicator indicator = 18; + * * @return The indicator. */ com.google.cloud.securitycenter.v1.Indicator getIndicator(); /** + * + * *
    * Represents what's commonly known as an Indicator of compromise (IoC) in
    * computer forensics. This is an artifact observed on a network or in an
@@ -467,6 +578,8 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
   com.google.cloud.securitycenter.v1.IndicatorOrBuilder getIndicatorOrBuilder();
 
   /**
+   *
+   *
    * 
    * Represents vulnerability specific fields like cve, cvss scores etc.
    * CVE stands for Common Vulnerabilities and Exposures
@@ -474,10 +587,13 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
    * 
* * .google.cloud.securitycenter.v1.Vulnerability vulnerability = 20; + * * @return Whether the vulnerability field is set. */ boolean hasVulnerability(); /** + * + * *
    * Represents vulnerability specific fields like cve, cvss scores etc.
    * CVE stands for Common Vulnerabilities and Exposures
@@ -485,10 +601,13 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
    * 
* * .google.cloud.securitycenter.v1.Vulnerability vulnerability = 20; + * * @return The vulnerability. */ com.google.cloud.securitycenter.v1.Vulnerability getVulnerability(); /** + * + * *
    * Represents vulnerability specific fields like cve, cvss scores etc.
    * CVE stands for Common Vulnerabilities and Exposures
@@ -500,114 +619,151 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
   com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder getVulnerabilityOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The most recent time this finding was muted or unmuted.
    * 
* - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the muteUpdateTime field is set. */ boolean hasMuteUpdateTime(); /** + * + * *
    * Output only. The most recent time this finding was muted or unmuted.
    * 
* - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The muteUpdateTime. */ com.google.protobuf.Timestamp getMuteUpdateTime(); /** + * + * *
    * Output only. The most recent time this finding was muted or unmuted.
    * 
* - * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp mute_update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getMuteUpdateTimeOrBuilder(); /** + * + * *
    * Output only. Third party SIEM/SOAR fields within SCC, contains external
    * system information and external system finding fields.
    * 
* - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getExternalSystemsCount(); /** + * + * *
    * Output only. Third party SIEM/SOAR fields within SCC, contains external
    * system information and external system finding fields.
    * 
* - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - boolean containsExternalSystems( - java.lang.String key); - /** - * Use {@link #getExternalSystemsMap()} instead. + * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ + boolean containsExternalSystems(java.lang.String key); + /** Use {@link #getExternalSystemsMap()} instead. */ @java.lang.Deprecated java.util.Map - getExternalSystems(); + getExternalSystems(); /** + * + * *
    * Output only. Third party SIEM/SOAR fields within SCC, contains external
    * system information and external system finding fields.
    * 
* - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ java.util.Map - getExternalSystemsMap(); + getExternalSystemsMap(); /** + * + * *
    * Output only. Third party SIEM/SOAR fields within SCC, contains external
    * system information and external system finding fields.
    * 
* - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ /* nullable */ -com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault( + com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.securitycenter.v1.ExternalSystem defaultValue); + com.google.cloud.securitycenter.v1.ExternalSystem defaultValue); /** + * + * *
    * Output only. Third party SIEM/SOAR fields within SCC, contains external
    * system information and external system finding fields.
    * 
* - * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.securitycenter.v1.ExternalSystem> external_systems = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrThrow( - java.lang.String key); + com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrThrow(java.lang.String key); /** + * + * *
    * MITRE ATT&CK tactics and techniques related to this finding.
    * See: https://attack.mitre.org
    * 
* * .google.cloud.securitycenter.v1.MitreAttack mitre_attack = 25; + * * @return Whether the mitreAttack field is set. */ boolean hasMitreAttack(); /** + * + * *
    * MITRE ATT&CK tactics and techniques related to this finding.
    * See: https://attack.mitre.org
    * 
* * .google.cloud.securitycenter.v1.MitreAttack mitre_attack = 25; + * * @return The mitreAttack. */ com.google.cloud.securitycenter.v1.MitreAttack getMitreAttack(); /** + * + * *
    * MITRE ATT&CK tactics and techniques related to this finding.
    * See: https://attack.mitre.org
@@ -618,26 +774,34 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrThrow(
   com.google.cloud.securitycenter.v1.MitreAttackOrBuilder getMitreAttackOrBuilder();
 
   /**
+   *
+   *
    * 
    * Access details associated to the Finding, such as more information on the
    * caller, which method was accessed, from where, etc.
    * 
* * .google.cloud.securitycenter.v1.Access access = 26; + * * @return Whether the access field is set. */ boolean hasAccess(); /** + * + * *
    * Access details associated to the Finding, such as more information on the
    * caller, which method was accessed, from where, etc.
    * 
* * .google.cloud.securitycenter.v1.Access access = 26; + * * @return The access. */ com.google.cloud.securitycenter.v1.Access getAccess(); /** + * + * *
    * Access details associated to the Finding, such as more information on the
    * caller, which method was accessed, from where, etc.
@@ -648,15 +812,18 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrThrow(
   com.google.cloud.securitycenter.v1.AccessOrBuilder getAccessOrBuilder();
 
   /**
+   *
+   *
    * 
    * Contains information about the IP connection associated with the finding.
    * 
* * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ - java.util.List - getConnectionsList(); + java.util.List getConnectionsList(); /** + * + * *
    * Contains information about the IP connection associated with the finding.
    * 
@@ -665,6 +832,8 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrThrow( */ com.google.cloud.securitycenter.v1.Connection getConnections(int index); /** + * + * *
    * Contains information about the IP connection associated with the finding.
    * 
@@ -673,25 +842,30 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrThrow( */ int getConnectionsCount(); /** + * + * *
    * Contains information about the IP connection associated with the finding.
    * 
* * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ - java.util.List + java.util.List getConnectionsOrBuilderList(); /** + * + * *
    * Contains information about the IP connection associated with the finding.
    * 
* * repeated .google.cloud.securitycenter.v1.Connection connections = 31; */ - com.google.cloud.securitycenter.v1.ConnectionOrBuilder getConnectionsOrBuilder( - int index); + com.google.cloud.securitycenter.v1.ConnectionOrBuilder getConnectionsOrBuilder(int index); /** + * + * *
    * First known as mute_annotation. Records additional information about the
    * mute operation e.g. mute config that muted the finding, user who muted the
@@ -700,10 +874,13 @@ com.google.cloud.securitycenter.v1.ConnectionOrBuilder getConnectionsOrBuilder(
    * 
* * string mute_initiator = 28; + * * @return The muteInitiator. */ java.lang.String getMuteInitiator(); /** + * + * *
    * First known as mute_annotation. Records additional information about the
    * mute operation e.g. mute config that muted the finding, user who muted the
@@ -712,21 +889,24 @@ com.google.cloud.securitycenter.v1.ConnectionOrBuilder getConnectionsOrBuilder(
    * 
* * string mute_initiator = 28; + * * @return The bytes for muteInitiator. */ - com.google.protobuf.ByteString - getMuteInitiatorBytes(); + com.google.protobuf.ByteString getMuteInitiatorBytes(); /** + * + * *
    * Represents operating system processes associated with the Finding.
    * 
* * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ - java.util.List - getProcessesList(); + java.util.List getProcessesList(); /** + * + * *
    * Represents operating system processes associated with the Finding.
    * 
@@ -735,6 +915,8 @@ com.google.cloud.securitycenter.v1.ConnectionOrBuilder getConnectionsOrBuilder( */ com.google.cloud.securitycenter.v1.Process getProcesses(int index); /** + * + * *
    * Represents operating system processes associated with the Finding.
    * 
@@ -743,25 +925,30 @@ com.google.cloud.securitycenter.v1.ConnectionOrBuilder getConnectionsOrBuilder( */ int getProcessesCount(); /** + * + * *
    * Represents operating system processes associated with the Finding.
    * 
* * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ - java.util.List + java.util.List getProcessesOrBuilderList(); /** + * + * *
    * Represents operating system processes associated with the Finding.
    * 
* * repeated .google.cloud.securitycenter.v1.Process processes = 30; */ - com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder( - int index); + com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder(int index); /** + * + * *
    * Contains compliance information for security standards associated to the
    * finding.
@@ -769,9 +956,10 @@ com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder(
    *
    * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
    */
-  java.util.List 
-      getCompliancesList();
+  java.util.List getCompliancesList();
   /**
+   *
+   *
    * 
    * Contains compliance information for security standards associated to the
    * finding.
@@ -781,6 +969,8 @@ com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder(
    */
   com.google.cloud.securitycenter.v1.Compliance getCompliances(int index);
   /**
+   *
+   *
    * 
    * Contains compliance information for security standards associated to the
    * finding.
@@ -790,6 +980,8 @@ com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder(
    */
   int getCompliancesCount();
   /**
+   *
+   *
    * 
    * Contains compliance information for security standards associated to the
    * finding.
@@ -797,9 +989,11 @@ com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder(
    *
    * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
    */
-  java.util.List 
+  java.util.List
       getCompliancesOrBuilderList();
   /**
+   *
+   *
    * 
    * Contains compliance information for security standards associated to the
    * finding.
@@ -807,48 +1001,60 @@ com.google.cloud.securitycenter.v1.ProcessOrBuilder getProcessesOrBuilder(
    *
    * repeated .google.cloud.securitycenter.v1.Compliance compliances = 34;
    */
-  com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBuilder(
-      int index);
+  com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Contains more detail about the finding.
    * 
* * string description = 37; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Contains more detail about the finding.
    * 
* * string description = 37; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Represents exfiltration associated with the Finding.
    * 
* * .google.cloud.securitycenter.v1.Exfiltration exfiltration = 38; + * * @return Whether the exfiltration field is set. */ boolean hasExfiltration(); /** + * + * *
    * Represents exfiltration associated with the Finding.
    * 
* * .google.cloud.securitycenter.v1.Exfiltration exfiltration = 38; + * * @return The exfiltration. */ com.google.cloud.securitycenter.v1.Exfiltration getExfiltration(); /** + * + * *
    * Represents exfiltration associated with the Finding.
    * 
@@ -858,15 +1064,18 @@ com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBuilder( com.google.cloud.securitycenter.v1.ExfiltrationOrBuilder getExfiltrationOrBuilder(); /** + * + * *
    * Represents IAM bindings associated with the Finding.
    * 
* * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ - java.util.List - getIamBindingsList(); + java.util.List getIamBindingsList(); /** + * + * *
    * Represents IAM bindings associated with the Finding.
    * 
@@ -875,6 +1084,8 @@ com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBuilder( */ com.google.cloud.securitycenter.v1.IamBinding getIamBindings(int index); /** + * + * *
    * Represents IAM bindings associated with the Finding.
    * 
@@ -883,41 +1094,49 @@ com.google.cloud.securitycenter.v1.ComplianceOrBuilder getCompliancesOrBuilder( */ int getIamBindingsCount(); /** + * + * *
    * Represents IAM bindings associated with the Finding.
    * 
* * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ - java.util.List + java.util.List getIamBindingsOrBuilderList(); /** + * + * *
    * Represents IAM bindings associated with the Finding.
    * 
* * repeated .google.cloud.securitycenter.v1.IamBinding iam_bindings = 39; */ - com.google.cloud.securitycenter.v1.IamBindingOrBuilder getIamBindingsOrBuilder( - int index); + com.google.cloud.securitycenter.v1.IamBindingOrBuilder getIamBindingsOrBuilder(int index); /** + * + * *
    * Next steps associate to the finding.
    * 
* * string next_steps = 40; + * * @return The nextSteps. */ java.lang.String getNextSteps(); /** + * + * *
    * Next steps associate to the finding.
    * 
* * string next_steps = 40; + * * @return The bytes for nextSteps. */ - com.google.protobuf.ByteString - getNextStepsBytes(); + com.google.protobuf.ByteString getNextStepsBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java new file mode 100644 index 000000000..a25500939 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java @@ -0,0 +1,227 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/finding.proto + +package com.google.cloud.securitycenter.v1; + +public final class FindingOuterClass { + private FindingOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Finding_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/securitycenter/v1/finding" + + ".proto\022\036google.cloud.securitycenter.v1\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\032+google/cloud/securit" + + "ycenter/v1/access.proto\032/google/cloud/se" + + "curitycenter/v1/compliance.proto\032/google" + + "/cloud/securitycenter/v1/connection.prot" + + "o\0321google/cloud/securitycenter/v1/exfilt" + + "ration.proto\0324google/cloud/securitycente" + + "r/v1/external_system.proto\0320google/cloud" + + "/securitycenter/v1/iam_binding.proto\032.go" + + "ogle/cloud/securitycenter/v1/indicator.p" + + "roto\0321google/cloud/securitycenter/v1/mit" + + "re_attack.proto\032,google/cloud/securityce" + + "nter/v1/process.proto\0323google/cloud/secu" + + "ritycenter/v1/security_marks.proto\0322goog" + + "le/cloud/securitycenter/v1/vulnerability" + + ".proto\032\034google/protobuf/struct.proto\032\037go" + + "ogle/protobuf/timestamp.proto\"\232\021\n\007Findin" + + "g\022\014\n\004name\030\001 \001(\t\022\016\n\006parent\030\002 \001(\t\022\025\n\rresou" + + "rce_name\030\003 \001(\t\022<\n\005state\030\004 \001(\0162-.google.c" + + "loud.securitycenter.v1.Finding.State\022\020\n\010" + + "category\030\005 \001(\t\022\024\n\014external_uri\030\006 \001(\t\022X\n\021" + + "source_properties\030\007 \003(\0132=.google.cloud.s" + + "ecuritycenter.v1.Finding.SourcePropertie" + + "sEntry\022J\n\016security_marks\030\010 \001(\0132-.google." + + "cloud.securitycenter.v1.SecurityMarksB\003\340" + + "A\003\022.\n\nevent_time\030\t \001(\0132\032.google.protobuf" + + ".Timestamp\022/\n\013create_time\030\n \001(\0132\032.google" + + ".protobuf.Timestamp\022B\n\010severity\030\014 \001(\01620." + + "google.cloud.securitycenter.v1.Finding.S" + + "everity\022\026\n\016canonical_name\030\016 \001(\t\022:\n\004mute\030" + + "\017 \001(\0162,.google.cloud.securitycenter.v1.F" + + "inding.Mute\022K\n\rfinding_class\030\021 \001(\01624.goo" + + "gle.cloud.securitycenter.v1.Finding.Find" + + "ingClass\022<\n\tindicator\030\022 \001(\0132).google.clo" + + "ud.securitycenter.v1.Indicator\022D\n\rvulner" + + "ability\030\024 \001(\0132-.google.cloud.securitycen" + + "ter.v1.Vulnerability\0229\n\020mute_update_time" + + "\030\025 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "[\n\020external_systems\030\026 \003(\0132<.google.cloud" + + ".securitycenter.v1.Finding.ExternalSyste" + + "msEntryB\003\340A\003\022A\n\014mitre_attack\030\031 \001(\0132+.goo" + + "gle.cloud.securitycenter.v1.MitreAttack\022" + + "6\n\006access\030\032 \001(\0132&.google.cloud.securityc" + + "enter.v1.Access\022?\n\013connections\030\037 \003(\0132*.g" + + "oogle.cloud.securitycenter.v1.Connection" + + "\022\026\n\016mute_initiator\030\034 \001(\t\022:\n\tprocesses\030\036 " + + "\003(\0132\'.google.cloud.securitycenter.v1.Pro" + + "cess\022?\n\013compliances\030\" \003(\0132*.google.cloud" + + ".securitycenter.v1.Compliance\022\023\n\013descrip" + + "tion\030% \001(\t\022B\n\014exfiltration\030& \001(\0132,.googl" + + "e.cloud.securitycenter.v1.Exfiltration\022@" + + "\n\014iam_bindings\030\' \003(\0132*.google.cloud.secu" + + "ritycenter.v1.IamBinding\022\022\n\nnext_steps\030(" + + " \001(\t\032O\n\025SourcePropertiesEntry\022\013\n\003key\030\001 \001" + + "(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Valu" + + "e:\0028\001\032f\n\024ExternalSystemsEntry\022\013\n\003key\030\001 \001" + + "(\t\022=\n\005value\030\002 \001(\0132..google.cloud.securit" + + "ycenter.v1.ExternalSystem:\0028\001\"8\n\005State\022\025" + + "\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INA" + + "CTIVE\020\002\"Q\n\010Severity\022\030\n\024SEVERITY_UNSPECIF" + + "IED\020\000\022\014\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020" + + "\003\022\007\n\003LOW\020\004\"C\n\004Mute\022\024\n\020MUTE_UNSPECIFIED\020\000" + + "\022\t\n\005MUTED\020\001\022\013\n\007UNMUTED\020\002\022\r\n\tUNDEFINED\020\004\"" + + "\202\001\n\014FindingClass\022\035\n\031FINDING_CLASS_UNSPEC" + + "IFIED\020\000\022\n\n\006THREAT\020\001\022\021\n\rVULNERABILITY\020\002\022\024" + + "\n\020MISCONFIGURATION\020\003\022\017\n\013OBSERVATION\020\004\022\r\n" + + "\tSCC_ERROR\020\005:\333\001\352A\327\001\n%securitycenter.goog" + + "leapis.com/Finding\022@organizations/{organ" + + "ization}/sources/{source}/findings/{find" + + "ing}\0224folders/{folder}/sources/{source}/" + + "findings/{finding}\0226projects/{project}/s" + + "ources/{source}/findings/{finding}B\332\001\n\"c" + + "om.google.cloud.securitycenter.v1P\001ZLgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/securitycenter/v1;securitycenter\252\002\036Goog" + + "le.Cloud.SecurityCenter.V1\312\002\036Google\\Clou" + + "d\\SecurityCenter\\V1\352\002!Google::Cloud::Sec" + + "urityCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.securitycenter.v1.AccessProto.getDescriptor(), + com.google.cloud.securitycenter.v1.ComplianceProto.getDescriptor(), + com.google.cloud.securitycenter.v1.ConnectionProto.getDescriptor(), + com.google.cloud.securitycenter.v1.ExfiltrationProto.getDescriptor(), + com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(), + com.google.cloud.securitycenter.v1.IamBindingProto.getDescriptor(), + com.google.cloud.securitycenter.v1.IndicatorProto.getDescriptor(), + com.google.cloud.securitycenter.v1.MitreAttackProto.getDescriptor(), + com.google.cloud.securitycenter.v1.ProcessProto.getDescriptor(), + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.VulnerabilityProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_Finding_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Finding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Finding_descriptor, + new java.lang.String[] { + "Name", + "Parent", + "ResourceName", + "State", + "Category", + "ExternalUri", + "SourceProperties", + "SecurityMarks", + "EventTime", + "CreateTime", + "Severity", + "CanonicalName", + "Mute", + "FindingClass", + "Indicator", + "Vulnerability", + "MuteUpdateTime", + "ExternalSystems", + "MitreAttack", + "Access", + "Connections", + "MuteInitiator", + "Processes", + "Compliances", + "Description", + "Exfiltration", + "IamBindings", + "NextSteps", + }); + internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor = + internal_static_google_cloud_securitycenter_v1_Finding_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_descriptor = + internal_static_google_cloud_securitycenter_v1_Finding_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Finding_ExternalSystemsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.securitycenter.v1.AccessProto.getDescriptor(); + com.google.cloud.securitycenter.v1.ComplianceProto.getDescriptor(); + com.google.cloud.securitycenter.v1.ConnectionProto.getDescriptor(); + com.google.cloud.securitycenter.v1.ExfiltrationProto.getDescriptor(); + com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(); + com.google.cloud.securitycenter.v1.IamBindingProto.getDescriptor(); + com.google.cloud.securitycenter.v1.IndicatorProto.getDescriptor(); + com.google.cloud.securitycenter.v1.MitreAttackProto.getDescriptor(); + com.google.cloud.securitycenter.v1.ProcessProto.getDescriptor(); + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.VulnerabilityProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Folder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Folder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Folder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Folder.java index 647029637..b0a6035e3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Folder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Folder.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/folder.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Message that contains the resource name and display name of a folder
  * resource.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.Folder}
  */
-public final class Folder extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Folder extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Folder)
     FolderOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Folder.newBuilder() to construct.
   private Folder(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Folder() {
     resourceFolder_ = "";
     resourceFolderDisplayName_ = "";
@@ -27,16 +45,15 @@ private Folder() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Folder();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Folder(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,25 +72,27 @@ private Folder(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            resourceFolder_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              resourceFolder_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            resourceFolderDisplayName_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              resourceFolderDisplayName_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,35 +100,40 @@ private Folder(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1.FolderProto.internal_static_google_cloud_securitycenter_v1_Folder_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1.FolderProto
+        .internal_static_google_cloud_securitycenter_v1_Folder_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.FolderProto.internal_static_google_cloud_securitycenter_v1_Folder_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.FolderProto
+        .internal_static_google_cloud_securitycenter_v1_Folder_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.Folder.class, com.google.cloud.securitycenter.v1.Folder.Builder.class);
+            com.google.cloud.securitycenter.v1.Folder.class,
+            com.google.cloud.securitycenter.v1.Folder.Builder.class);
   }
 
   public static final int RESOURCE_FOLDER_FIELD_NUMBER = 1;
   private volatile java.lang.Object resourceFolder_;
   /**
+   *
+   *
    * 
    * Full resource name of this folder. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string resource_folder = 1; + * * @return The resourceFolder. */ @java.lang.Override @@ -118,30 +142,30 @@ public java.lang.String getResourceFolder() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFolder_ = s; return s; } } /** + * + * *
    * Full resource name of this folder. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string resource_folder = 1; + * * @return The bytes for resourceFolder. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceFolderBytes() { + public com.google.protobuf.ByteString getResourceFolderBytes() { java.lang.Object ref = resourceFolder_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceFolder_ = b; return b; } else { @@ -152,11 +176,14 @@ public java.lang.String getResourceFolder() { public static final int RESOURCE_FOLDER_DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object resourceFolderDisplayName_; /** + * + * *
    * The user defined display name for this folder.
    * 
* * string resource_folder_display_name = 2; + * * @return The resourceFolderDisplayName. */ @java.lang.Override @@ -165,29 +192,29 @@ public java.lang.String getResourceFolderDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFolderDisplayName_ = s; return s; } } /** + * + * *
    * The user defined display name for this folder.
    * 
* * string resource_folder_display_name = 2; + * * @return The bytes for resourceFolderDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceFolderDisplayNameBytes() { + public com.google.protobuf.ByteString getResourceFolderDisplayNameBytes() { java.lang.Object ref = resourceFolderDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceFolderDisplayName_ = b; return b; } else { @@ -196,6 +223,7 @@ public java.lang.String getResourceFolderDisplayName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,8 +235,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceFolder_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceFolder_); } @@ -228,7 +255,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceFolder_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceFolderDisplayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceFolderDisplayName_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceFolderDisplayName_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -238,17 +266,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Folder)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Folder other = (com.google.cloud.securitycenter.v1.Folder) obj; + com.google.cloud.securitycenter.v1.Folder other = + (com.google.cloud.securitycenter.v1.Folder) obj; - if (!getResourceFolder() - .equals(other.getResourceFolder())) return false; - if (!getResourceFolderDisplayName() - .equals(other.getResourceFolderDisplayName())) return false; + if (!getResourceFolder().equals(other.getResourceFolder())) return false; + if (!getResourceFolderDisplayName().equals(other.getResourceFolderDisplayName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -269,97 +296,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Folder parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Folder parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Folder parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Folder parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Folder parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Folder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Folder parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Folder parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Folder parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Folder parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.Folder parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Folder parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Folder parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Folder parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.Folder prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message that contains the resource name and display name of a folder
    * resource.
@@ -367,21 +401,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.Folder}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Folder)
       com.google.cloud.securitycenter.v1.FolderOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.FolderProto.internal_static_google_cloud_securitycenter_v1_Folder_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.FolderProto
+          .internal_static_google_cloud_securitycenter_v1_Folder_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.FolderProto.internal_static_google_cloud_securitycenter_v1_Folder_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.FolderProto
+          .internal_static_google_cloud_securitycenter_v1_Folder_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.Folder.class, com.google.cloud.securitycenter.v1.Folder.Builder.class);
+              com.google.cloud.securitycenter.v1.Folder.class,
+              com.google.cloud.securitycenter.v1.Folder.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.Folder.newBuilder()
@@ -389,16 +425,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -410,9 +445,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.FolderProto.internal_static_google_cloud_securitycenter_v1_Folder_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.FolderProto
+          .internal_static_google_cloud_securitycenter_v1_Folder_descriptor;
     }
 
     @java.lang.Override
@@ -431,7 +466,8 @@ public com.google.cloud.securitycenter.v1.Folder build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.Folder buildPartial() {
-      com.google.cloud.securitycenter.v1.Folder result = new com.google.cloud.securitycenter.v1.Folder(this);
+      com.google.cloud.securitycenter.v1.Folder result =
+          new com.google.cloud.securitycenter.v1.Folder(this);
       result.resourceFolder_ = resourceFolder_;
       result.resourceFolderDisplayName_ = resourceFolderDisplayName_;
       onBuilt();
@@ -442,38 +478,39 @@ public com.google.cloud.securitycenter.v1.Folder buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.Folder) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.Folder)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.Folder) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -521,19 +558,21 @@ public Builder mergeFrom(
 
     private java.lang.Object resourceFolder_ = "";
     /**
+     *
+     *
      * 
      * Full resource name of this folder. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_folder = 1; + * * @return The resourceFolder. */ public java.lang.String getResourceFolder() { java.lang.Object ref = resourceFolder_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFolder_ = s; return s; @@ -542,21 +581,22 @@ public java.lang.String getResourceFolder() { } } /** + * + * *
      * Full resource name of this folder. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_folder = 1; + * * @return The bytes for resourceFolder. */ - public com.google.protobuf.ByteString - getResourceFolderBytes() { + public com.google.protobuf.ByteString getResourceFolderBytes() { java.lang.Object ref = resourceFolder_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceFolder_ = b; return b; } else { @@ -564,57 +604,64 @@ public java.lang.String getResourceFolder() { } } /** + * + * *
      * Full resource name of this folder. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_folder = 1; + * * @param value The resourceFolder to set. * @return This builder for chaining. */ - public Builder setResourceFolder( - java.lang.String value) { + public Builder setResourceFolder(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceFolder_ = value; onChanged(); return this; } /** + * + * *
      * Full resource name of this folder. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_folder = 1; + * * @return This builder for chaining. */ public Builder clearResourceFolder() { - + resourceFolder_ = getDefaultInstance().getResourceFolder(); onChanged(); return this; } /** + * + * *
      * Full resource name of this folder. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_folder = 1; + * * @param value The bytes for resourceFolder to set. * @return This builder for chaining. */ - public Builder setResourceFolderBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceFolderBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceFolder_ = value; onChanged(); return this; @@ -622,18 +669,20 @@ public Builder setResourceFolderBytes( private java.lang.Object resourceFolderDisplayName_ = ""; /** + * + * *
      * The user defined display name for this folder.
      * 
* * string resource_folder_display_name = 2; + * * @return The resourceFolderDisplayName. */ public java.lang.String getResourceFolderDisplayName() { java.lang.Object ref = resourceFolderDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFolderDisplayName_ = s; return s; @@ -642,20 +691,21 @@ public java.lang.String getResourceFolderDisplayName() { } } /** + * + * *
      * The user defined display name for this folder.
      * 
* * string resource_folder_display_name = 2; + * * @return The bytes for resourceFolderDisplayName. */ - public com.google.protobuf.ByteString - getResourceFolderDisplayNameBytes() { + public com.google.protobuf.ByteString getResourceFolderDisplayNameBytes() { java.lang.Object ref = resourceFolderDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceFolderDisplayName_ = b; return b; } else { @@ -663,61 +713,68 @@ public java.lang.String getResourceFolderDisplayName() { } } /** + * + * *
      * The user defined display name for this folder.
      * 
* * string resource_folder_display_name = 2; + * * @param value The resourceFolderDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceFolderDisplayName( - java.lang.String value) { + public Builder setResourceFolderDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceFolderDisplayName_ = value; onChanged(); return this; } /** + * + * *
      * The user defined display name for this folder.
      * 
* * string resource_folder_display_name = 2; + * * @return This builder for chaining. */ public Builder clearResourceFolderDisplayName() { - + resourceFolderDisplayName_ = getDefaultInstance().getResourceFolderDisplayName(); onChanged(); return this; } /** + * + * *
      * The user defined display name for this folder.
      * 
* * string resource_folder_display_name = 2; + * * @param value The bytes for resourceFolderDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceFolderDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceFolderDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceFolderDisplayName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -727,12 +784,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Folder) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Folder) private static final com.google.cloud.securitycenter.v1.Folder DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Folder(); } @@ -741,16 +798,16 @@ public static com.google.cloud.securitycenter.v1.Folder getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Folder parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Folder(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Folder parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Folder(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -765,6 +822,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Folder getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderName.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderOrBuilder.java index 3e97d4e38..325d2ec0d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderOrBuilder.java @@ -1,51 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/folder.proto package com.google.cloud.securitycenter.v1; -public interface FolderOrBuilder extends +public interface FolderOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Folder) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Full resource name of this folder. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string resource_folder = 1; + * * @return The resourceFolder. */ java.lang.String getResourceFolder(); /** + * + * *
    * Full resource name of this folder. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string resource_folder = 1; + * * @return The bytes for resourceFolder. */ - com.google.protobuf.ByteString - getResourceFolderBytes(); + com.google.protobuf.ByteString getResourceFolderBytes(); /** + * + * *
    * The user defined display name for this folder.
    * 
* * string resource_folder_display_name = 2; + * * @return The resourceFolderDisplayName. */ java.lang.String getResourceFolderDisplayName(); /** + * + * *
    * The user defined display name for this folder.
    * 
* * string resource_folder_display_name = 2; + * * @return The bytes for resourceFolderDisplayName. */ - com.google.protobuf.ByteString - getResourceFolderDisplayNameBytes(); + com.google.protobuf.ByteString getResourceFolderDisplayNameBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderProto.java new file mode 100644 index 000000000..a86b98b9f --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FolderProto.java @@ -0,0 +1,68 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/folder.proto + +package com.google.cloud.securitycenter.v1; + +public final class FolderProto { + private FolderProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Folder_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Folder_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/securitycenter/v1/folder." + + "proto\022\036google.cloud.securitycenter.v1\"G\n" + + "\006Folder\022\027\n\017resource_folder\030\001 \001(\t\022$\n\034reso" + + "urce_folder_display_name\030\002 \001(\tB\347\001\n\"com.g" + + "oogle.cloud.securitycenter.v1B\013FolderPro" + + "toP\001ZLgoogle.golang.org/genproto/googlea" + + "pis/cloud/securitycenter/v1;securitycent" + + "er\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036Go" + + "ogle\\Cloud\\SecurityCenter\\V1\352\002!Google::C" + + "loud::SecurityCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_securitycenter_v1_Folder_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Folder_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Folder_descriptor, + new java.lang.String[] { + "ResourceFolder", "ResourceFolderDisplayName", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Geolocation.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Geolocation.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Geolocation.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Geolocation.java index faf1a2c0a..930766df7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Geolocation.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Geolocation.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/access.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Represents a geographical location for a given access.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Geolocation} */ -public final class Geolocation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Geolocation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Geolocation) GeolocationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Geolocation.newBuilder() to construct. private Geolocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Geolocation() { regionCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Geolocation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Geolocation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private Geolocation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - regionCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + regionCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,39 @@ private Geolocation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.AccessProto.internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.AccessProto + .internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.AccessProto.internal_static_google_cloud_securitycenter_v1_Geolocation_fieldAccessorTable + return com.google.cloud.securitycenter.v1.AccessProto + .internal_static_google_cloud_securitycenter_v1_Geolocation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Geolocation.class, com.google.cloud.securitycenter.v1.Geolocation.Builder.class); + com.google.cloud.securitycenter.v1.Geolocation.class, + com.google.cloud.securitycenter.v1.Geolocation.Builder.class); } public static final int REGION_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object regionCode_; /** + * + * *
    * A CLDR.
    * 
* * string region_code = 1; + * * @return The regionCode. */ @java.lang.Override @@ -109,29 +132,29 @@ public java.lang.String getRegionCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); regionCode_ = s; return s; } } /** + * + * *
    * A CLDR.
    * 
* * string region_code = 1; + * * @return The bytes for regionCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionCodeBytes() { + public com.google.protobuf.ByteString getRegionCodeBytes() { java.lang.Object ref = regionCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); regionCode_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getRegionCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, regionCode_); } @@ -176,15 +199,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Geolocation)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Geolocation other = (com.google.cloud.securitycenter.v1.Geolocation) obj; + com.google.cloud.securitycenter.v1.Geolocation other = + (com.google.cloud.securitycenter.v1.Geolocation) obj; - if (!getRegionCode() - .equals(other.getRegionCode())) return false; + if (!getRegionCode().equals(other.getRegionCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,118 +226,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Geolocation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Geolocation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Geolocation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Geolocation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Geolocation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Geolocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Geolocation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Geolocation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Geolocation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Geolocation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.Geolocation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Geolocation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Geolocation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Geolocation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.Geolocation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents a geographical location for a given access.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Geolocation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Geolocation) com.google.cloud.securitycenter.v1.GeolocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.AccessProto.internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.AccessProto + .internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.AccessProto.internal_static_google_cloud_securitycenter_v1_Geolocation_fieldAccessorTable + return com.google.cloud.securitycenter.v1.AccessProto + .internal_static_google_cloud_securitycenter_v1_Geolocation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Geolocation.class, com.google.cloud.securitycenter.v1.Geolocation.Builder.class); + com.google.cloud.securitycenter.v1.Geolocation.class, + com.google.cloud.securitycenter.v1.Geolocation.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.Geolocation.newBuilder() @@ -322,16 +354,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +372,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.AccessProto.internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.AccessProto + .internal_static_google_cloud_securitycenter_v1_Geolocation_descriptor; } @java.lang.Override @@ -362,7 +393,8 @@ public com.google.cloud.securitycenter.v1.Geolocation build() { @java.lang.Override public com.google.cloud.securitycenter.v1.Geolocation buildPartial() { - com.google.cloud.securitycenter.v1.Geolocation result = new com.google.cloud.securitycenter.v1.Geolocation(this); + com.google.cloud.securitycenter.v1.Geolocation result = + new com.google.cloud.securitycenter.v1.Geolocation(this); result.regionCode_ = regionCode_; onBuilt(); return result; @@ -372,38 +404,39 @@ public com.google.cloud.securitycenter.v1.Geolocation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.Geolocation) { - return mergeFrom((com.google.cloud.securitycenter.v1.Geolocation)other); + return mergeFrom((com.google.cloud.securitycenter.v1.Geolocation) other); } else { super.mergeFrom(other); return this; @@ -447,18 +480,20 @@ public Builder mergeFrom( private java.lang.Object regionCode_ = ""; /** + * + * *
      * A CLDR.
      * 
* * string region_code = 1; + * * @return The regionCode. */ public java.lang.String getRegionCode() { java.lang.Object ref = regionCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); regionCode_ = s; return s; @@ -467,20 +502,21 @@ public java.lang.String getRegionCode() { } } /** + * + * *
      * A CLDR.
      * 
* * string region_code = 1; + * * @return The bytes for regionCode. */ - public com.google.protobuf.ByteString - getRegionCodeBytes() { + public com.google.protobuf.ByteString getRegionCodeBytes() { java.lang.Object ref = regionCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); regionCode_ = b; return b; } else { @@ -488,61 +524,68 @@ public java.lang.String getRegionCode() { } } /** + * + * *
      * A CLDR.
      * 
* * string region_code = 1; + * * @param value The regionCode to set. * @return This builder for chaining. */ - public Builder setRegionCode( - java.lang.String value) { + public Builder setRegionCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + regionCode_ = value; onChanged(); return this; } /** + * + * *
      * A CLDR.
      * 
* * string region_code = 1; + * * @return This builder for chaining. */ public Builder clearRegionCode() { - + regionCode_ = getDefaultInstance().getRegionCode(); onChanged(); return this; } /** + * + * *
      * A CLDR.
      * 
* * string region_code = 1; + * * @param value The bytes for regionCode to set. * @return This builder for chaining. */ - public Builder setRegionCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + regionCode_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,12 +595,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Geolocation) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Geolocation) private static final com.google.cloud.securitycenter.v1.Geolocation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Geolocation(); } @@ -566,16 +609,16 @@ public static com.google.cloud.securitycenter.v1.Geolocation getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Geolocation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Geolocation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Geolocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Geolocation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +633,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Geolocation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GeolocationOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GeolocationOrBuilder.java new file mode 100644 index 000000000..4a8e58cad --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GeolocationOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/access.proto + +package com.google.cloud.securitycenter.v1; + +public interface GeolocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Geolocation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A CLDR.
+   * 
+ * + * string region_code = 1; + * + * @return The regionCode. + */ + java.lang.String getRegionCode(); + /** + * + * + *
+   * A CLDR.
+   * 
+ * + * string region_code = 1; + * + * @return The bytes for regionCode. + */ + com.google.protobuf.ByteString getRegionCodeBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequest.java index 70e2f5737..f1a98e72d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for retrieving a big query export.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GetBigQueryExportRequest} */ -public final class GetBigQueryExportRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetBigQueryExportRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GetBigQueryExportRequest) GetBigQueryExportRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetBigQueryExportRequest.newBuilder() to construct. private GetBigQueryExportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetBigQueryExportRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetBigQueryExportRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetBigQueryExportRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetBigQueryExportRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private GetBigQueryExportRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.class, com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.Builder.class); + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.class, + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the big query export to retrieve. Its format is
    * organizations/{organization}/bigQueryExports/{export_id},
@@ -103,7 +125,10 @@ private GetBigQueryExportRequest(
    * projects/{project}/bigQueryExports/{export_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -112,14 +137,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the big query export to retrieve. Its format is
    * organizations/{organization}/bigQueryExports/{export_id},
@@ -127,17 +153,18 @@ public java.lang.String getName() {
    * projects/{project}/bigQueryExports/{export_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -146,6 +173,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,8 +185,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -182,15 +209,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.GetBigQueryExportRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest other = (com.google.cloud.securitycenter.v1.GetBigQueryExportRequest) obj; + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest other = + (com.google.cloud.securitycenter.v1.GetBigQueryExportRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -210,117 +237,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.GetBigQueryExportRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for retrieving a big query export.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GetBigQueryExportRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GetBigQueryExportRequest) com.google.cloud.securitycenter.v1.GetBigQueryExportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.class, com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.Builder.class); + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.class, + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.newBuilder() @@ -328,16 +365,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -347,9 +383,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor; } @java.lang.Override @@ -368,7 +404,8 @@ public com.google.cloud.securitycenter.v1.GetBigQueryExportRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.GetBigQueryExportRequest buildPartial() { - com.google.cloud.securitycenter.v1.GetBigQueryExportRequest result = new com.google.cloud.securitycenter.v1.GetBigQueryExportRequest(this); + com.google.cloud.securitycenter.v1.GetBigQueryExportRequest result = + new com.google.cloud.securitycenter.v1.GetBigQueryExportRequest(this); result.name_ = name_; onBuilt(); return result; @@ -378,38 +415,39 @@ public com.google.cloud.securitycenter.v1.GetBigQueryExportRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.GetBigQueryExportRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.GetBigQueryExportRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.GetBigQueryExportRequest) other); } else { super.mergeFrom(other); return this; @@ -417,7 +455,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.GetBigQueryExportRequest other) { - if (other == com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.GetBigQueryExportRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -441,7 +480,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.GetBigQueryExportRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.GetBigQueryExportRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -453,6 +493,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the big query export to retrieve. Its format is
      * organizations/{organization}/bigQueryExports/{export_id},
@@ -460,14 +502,16 @@ public Builder mergeFrom(
      * projects/{project}/bigQueryExports/{export_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -476,6 +520,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the big query export to retrieve. Its format is
      * organizations/{organization}/bigQueryExports/{export_id},
@@ -483,16 +529,17 @@ public java.lang.String getName() {
      * projects/{project}/bigQueryExports/{export_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -500,6 +547,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the big query export to retrieve. Its format is
      * organizations/{organization}/bigQueryExports/{export_id},
@@ -507,21 +556,25 @@ public java.lang.String getName() {
      * projects/{project}/bigQueryExports/{export_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the big query export to retrieve. Its format is
      * organizations/{organization}/bigQueryExports/{export_id},
@@ -529,16 +582,21 @@ public Builder setName(
      * projects/{project}/bigQueryExports/{export_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the big query export to retrieve. Its format is
      * organizations/{organization}/bigQueryExports/{export_id},
@@ -546,24 +604,26 @@ public Builder clearName() {
      * projects/{project}/bigQueryExports/{export_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -573,12 +633,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GetBigQueryExportRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GetBigQueryExportRequest) private static final com.google.cloud.securitycenter.v1.GetBigQueryExportRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GetBigQueryExportRequest(); } @@ -587,16 +647,16 @@ public static com.google.cloud.securitycenter.v1.GetBigQueryExportRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBigQueryExportRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetBigQueryExportRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBigQueryExportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetBigQueryExportRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -611,6 +671,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.GetBigQueryExportRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequestOrBuilder.java new file mode 100644 index 000000000..9504ee0ed --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetBigQueryExportRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface GetBigQueryExportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetBigQueryExportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the big query export to retrieve. Its format is
+   * organizations/{organization}/bigQueryExports/{export_id},
+   * folders/{folder}/bigQueryExports/{export_id}, or
+   * projects/{project}/bigQueryExports/{export_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the big query export to retrieve. Its format is
+   * organizations/{organization}/bigQueryExports/{export_id},
+   * folders/{folder}/bigQueryExports/{export_id}, or
+   * projects/{project}/bigQueryExports/{export_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequest.java index 7953b91fb..2c35d2635 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for retrieving a mute config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GetMuteConfigRequest} */ -public final class GetMuteConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetMuteConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GetMuteConfigRequest) GetMuteConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetMuteConfigRequest.newBuilder() to construct. private GetMuteConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetMuteConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetMuteConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetMuteConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetMuteConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private GetMuteConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GetMuteConfigRequest.class, com.google.cloud.securitycenter.v1.GetMuteConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.GetMuteConfigRequest.class, + com.google.cloud.securitycenter.v1.GetMuteConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the mute config to retrieve. Its format is
    * organizations/{organization}/muteConfigs/{config_id},
@@ -103,7 +125,10 @@ private GetMuteConfigRequest(
    * projects/{project}/muteConfigs/{config_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -112,14 +137,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the mute config to retrieve. Its format is
    * organizations/{organization}/muteConfigs/{config_id},
@@ -127,17 +153,18 @@ public java.lang.String getName() {
    * projects/{project}/muteConfigs/{config_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -146,6 +173,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,8 +185,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -182,15 +209,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.GetMuteConfigRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.GetMuteConfigRequest other = (com.google.cloud.securitycenter.v1.GetMuteConfigRequest) obj; + com.google.cloud.securitycenter.v1.GetMuteConfigRequest other = + (com.google.cloud.securitycenter.v1.GetMuteConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -210,117 +237,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.GetMuteConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.GetMuteConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for retrieving a mute config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GetMuteConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GetMuteConfigRequest) com.google.cloud.securitycenter.v1.GetMuteConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GetMuteConfigRequest.class, com.google.cloud.securitycenter.v1.GetMuteConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.GetMuteConfigRequest.class, + com.google.cloud.securitycenter.v1.GetMuteConfigRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.GetMuteConfigRequest.newBuilder() @@ -328,16 +365,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -347,9 +383,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor; } @java.lang.Override @@ -368,7 +404,8 @@ public com.google.cloud.securitycenter.v1.GetMuteConfigRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.GetMuteConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1.GetMuteConfigRequest result = new com.google.cloud.securitycenter.v1.GetMuteConfigRequest(this); + com.google.cloud.securitycenter.v1.GetMuteConfigRequest result = + new com.google.cloud.securitycenter.v1.GetMuteConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -378,38 +415,39 @@ public com.google.cloud.securitycenter.v1.GetMuteConfigRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.GetMuteConfigRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.GetMuteConfigRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.GetMuteConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -417,7 +455,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.GetMuteConfigRequest other) { - if (other == com.google.cloud.securitycenter.v1.GetMuteConfigRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.GetMuteConfigRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -441,7 +480,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.GetMuteConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.GetMuteConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -453,6 +493,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the mute config to retrieve. Its format is
      * organizations/{organization}/muteConfigs/{config_id},
@@ -460,14 +502,16 @@ public Builder mergeFrom(
      * projects/{project}/muteConfigs/{config_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -476,6 +520,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the mute config to retrieve. Its format is
      * organizations/{organization}/muteConfigs/{config_id},
@@ -483,16 +529,17 @@ public java.lang.String getName() {
      * projects/{project}/muteConfigs/{config_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -500,6 +547,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the mute config to retrieve. Its format is
      * organizations/{organization}/muteConfigs/{config_id},
@@ -507,21 +556,25 @@ public java.lang.String getName() {
      * projects/{project}/muteConfigs/{config_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the mute config to retrieve. Its format is
      * organizations/{organization}/muteConfigs/{config_id},
@@ -529,16 +582,21 @@ public Builder setName(
      * projects/{project}/muteConfigs/{config_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the mute config to retrieve. Its format is
      * organizations/{organization}/muteConfigs/{config_id},
@@ -546,24 +604,26 @@ public Builder clearName() {
      * projects/{project}/muteConfigs/{config_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -573,12 +633,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GetMuteConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GetMuteConfigRequest) private static final com.google.cloud.securitycenter.v1.GetMuteConfigRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GetMuteConfigRequest(); } @@ -587,16 +647,16 @@ public static com.google.cloud.securitycenter.v1.GetMuteConfigRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMuteConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetMuteConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMuteConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetMuteConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -611,6 +671,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.GetMuteConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequestOrBuilder.java new file mode 100644 index 000000000..2bc73edce --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetMuteConfigRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface GetMuteConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetMuteConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the mute config to retrieve. Its format is
+   * organizations/{organization}/muteConfigs/{config_id},
+   * folders/{folder}/muteConfigs/{config_id}, or
+   * projects/{project}/muteConfigs/{config_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the mute config to retrieve. Its format is
+   * organizations/{organization}/muteConfigs/{config_id},
+   * folders/{folder}/muteConfigs/{config_id}, or
+   * projects/{project}/muteConfigs/{config_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequest.java index 7d504bee3..dee55f9a2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for getting a notification config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GetNotificationConfigRequest} */ -public final class GetNotificationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GetNotificationConfigRequest) GetNotificationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetNotificationConfigRequest.newBuilder() to construct. private GetNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetNotificationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetNotificationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetNotificationConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetNotificationConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetNotificationConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.class, com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.class, + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the notification config to get. Its format is
    * "organizations/[organization_id]/notificationConfigs/[config_id]".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the notification config to get. Its format is
    * "organizations/[organization_id]/notificationConfigs/[config_id]".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.GetNotificationConfigRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest other = (com.google.cloud.securitycenter.v1.GetNotificationConfigRequest) obj; + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest other = + (com.google.cloud.securitycenter.v1.GetNotificationConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.GetNotificationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for getting a notification config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GetNotificationConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GetNotificationConfigRequest) com.google.cloud.securitycenter.v1.GetNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.class, com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.class, + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.newBuilder() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,13 +379,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.GetNotificationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.GetNotificationConfigRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.getDefaultInstance(); } @@ -364,7 +401,8 @@ public com.google.cloud.securitycenter.v1.GetNotificationConfigRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.GetNotificationConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1.GetNotificationConfigRequest result = new com.google.cloud.securitycenter.v1.GetNotificationConfigRequest(this); + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest result = + new com.google.cloud.securitycenter.v1.GetNotificationConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +412,50 @@ public com.google.cloud.securitycenter.v1.GetNotificationConfigRequest buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.GetNotificationConfigRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.GetNotificationConfigRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.GetNotificationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1.GetNotificationConfigRequest other) { - if (other == com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.GetNotificationConfigRequest other) { + if (other + == com.google.cloud.securitycenter.v1.GetNotificationConfigRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +479,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.GetNotificationConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.GetNotificationConfigRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +493,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the notification config to get. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +518,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the notification config to get. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +543,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the notification config to get. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the notification config to get. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the notification config to get. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +623,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GetNotificationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GetNotificationConfigRequest) - private static final com.google.cloud.securitycenter.v1.GetNotificationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1.GetNotificationConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GetNotificationConfigRequest(); } - public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.GetNotificationConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNotificationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNotificationConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNotificationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetNotificationConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +660,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.securitycenter.v1.GetNotificationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.GetNotificationConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequestOrBuilder.java new file mode 100644 index 000000000..c2d3b5b53 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetNotificationConfigRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface GetNotificationConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetNotificationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the notification config to get. Its format is
+   * "organizations/[organization_id]/notificationConfigs/[config_id]".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the notification config to get. Its format is
+   * "organizations/[organization_id]/notificationConfigs/[config_id]".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java index fbb5039c6..8e000df4f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for getting organization settings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GetOrganizationSettingsRequest} */ -public final class GetOrganizationSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetOrganizationSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) GetOrganizationSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetOrganizationSettingsRequest.newBuilder() to construct. - private GetOrganizationSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetOrganizationSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetOrganizationSettingsRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetOrganizationSettingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetOrganizationSettingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +71,20 @@ private GetOrganizationSettingsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +92,42 @@ private GetOrganizationSettingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.Builder.class); + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.class, + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the organization to get organization settings for. Its format is
    * "organizations/[organization_id]/organizationSettings".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +136,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the organization to get organization settings for. Its format is
    * "organizations/[organization_id]/organizationSettings".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +170,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +182,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +206,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest other = (com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) obj; + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest other = + (com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,134 +234,145 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for getting organization settings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GetOrganizationSettingsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.Builder.class); + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.class, + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.Builder.class); } - // Construct using com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,13 +382,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.getDefaultInstance(); } @@ -364,7 +404,8 @@ public com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest build() @java.lang.Override public com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest buildPartial() { - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest result = new com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest(this); + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest result = + new com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +415,50 @@ public com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest other) { - if (other == com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest other) { + if (other + == com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +482,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +496,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +521,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +546,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +626,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) - private static final com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest(); } - public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOrganizationSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetOrganizationSettingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrganizationSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetOrganizationSettingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +663,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java new file mode 100644 index 000000000..2d2f64a25 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface GetOrganizationSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the organization to get organization settings for. Its format is
+   * "organizations/[organization_id]/organizationSettings".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the organization to get organization settings for. Its format is
+   * "organizations/[organization_id]/organizationSettings".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java index 47e1b6656..8593eb8fe 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for getting a source.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GetSourceRequest} */ -public final class GetSourceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GetSourceRequest) GetSourceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSourceRequest.newBuilder() to construct. private GetSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSourceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetSourceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetSourceRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetSourceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GetSourceRequest.class, com.google.cloud.securitycenter.v1.GetSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1.GetSourceRequest.class, + com.google.cloud.securitycenter.v1.GetSourceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Relative resource name of the source. Its format is
    * "organizations/[organization_id]/source/[source_id]".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Relative resource name of the source. Its format is
    * "organizations/[organization_id]/source/[source_id]".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.GetSourceRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.GetSourceRequest other = (com.google.cloud.securitycenter.v1.GetSourceRequest) obj; + com.google.cloud.securitycenter.v1.GetSourceRequest other = + (com.google.cloud.securitycenter.v1.GetSourceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,126 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GetSourceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GetSourceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.GetSourceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for getting a source.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GetSourceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GetSourceRequest) com.google.cloud.securitycenter.v1.GetSourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GetSourceRequest.class, com.google.cloud.securitycenter.v1.GetSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1.GetSourceRequest.class, + com.google.cloud.securitycenter.v1.GetSourceRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.GetSourceRequest.newBuilder() @@ -324,16 +360,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; } @java.lang.Override @@ -364,7 +399,8 @@ public com.google.cloud.securitycenter.v1.GetSourceRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.GetSourceRequest buildPartial() { - com.google.cloud.securitycenter.v1.GetSourceRequest result = new com.google.cloud.securitycenter.v1.GetSourceRequest(this); + com.google.cloud.securitycenter.v1.GetSourceRequest result = + new com.google.cloud.securitycenter.v1.GetSourceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.cloud.securitycenter.v1.GetSourceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.GetSourceRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.GetSourceRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.GetSourceRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +450,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.GetSourceRequest other) { - if (other == com.google.cloud.securitycenter.v1.GetSourceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.GetSourceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +475,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.GetSourceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.GetSourceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +488,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +513,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +538,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +618,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GetSourceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GetSourceRequest) private static final com.google.cloud.securitycenter.v1.GetSourceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GetSourceRequest(); } @@ -573,16 +632,16 @@ public static com.google.cloud.securitycenter.v1.GetSourceRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSourceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSourceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSourceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +656,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.GetSourceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java new file mode 100644 index 000000000..646e14474 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface GetSourceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetSourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Relative resource name of the source. Its format is
+   * "organizations/[organization_id]/source/[source_id]".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Relative resource name of the source. Its format is
+   * "organizations/[organization_id]/source/[source_id]".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java similarity index 84% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java index 39b8c0111..6704c358d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for grouping by assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GroupAssetsRequest} */ -public final class GroupAssetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GroupAssetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GroupAssetsRequest) GroupAssetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GroupAssetsRequest.newBuilder() to construct. private GroupAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GroupAssetsRequest() { parent_ = ""; filter_ = ""; @@ -28,16 +46,15 @@ private GroupAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GroupAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GroupAssetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,68 +73,76 @@ private GroupAssetsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - groupBy_ = s; - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (compareDuration_ != null) { - subBuilder = compareDuration_.toBuilder(); + groupBy_ = s; + break; } - compareDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compareDuration_); - compareDuration_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); + } + compareDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); + } + + break; } + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); + pageToken_ = s; + break; } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 64: + { + pageSize_ = input.readInt32(); + break; } - - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 64: { - - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,36 +150,43 @@ private GroupAssetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GroupAssetsRequest.class, com.google.cloud.securitycenter.v1.GroupAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1.GroupAssetsRequest.class, + com.google.cloud.securitycenter.v1.GroupAssetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -163,31 +195,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -198,6 +232,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -249,6 +285,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -257,14 +294,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -316,16 +354,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -336,6 +373,8 @@ public java.lang.String getFilter() { public static final int GROUP_BY_FIELD_NUMBER = 3; private volatile java.lang.Object groupBy_; /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -354,6 +393,7 @@ public java.lang.String getFilter() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The groupBy. */ @java.lang.Override @@ -362,14 +402,15 @@ public java.lang.String getGroupBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; } } /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -388,16 +429,15 @@ public java.lang.String getGroupBy() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for groupBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getGroupByBytes() { + public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); groupBy_ = b; return b; } else { @@ -408,6 +448,8 @@ public java.lang.String getGroupBy() { public static final int COMPARE_DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration compareDuration_; /** + * + * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -434,6 +476,7 @@ public java.lang.String getGroupBy() {
    * 
* * .google.protobuf.Duration compare_duration = 4; + * * @return Whether the compareDuration field is set. */ @java.lang.Override @@ -441,6 +484,8 @@ public boolean hasCompareDuration() { return compareDuration_ != null; } /** + * + * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -467,13 +512,18 @@ public boolean hasCompareDuration() {
    * 
* * .google.protobuf.Duration compare_duration = 4; + * * @return The compareDuration. */ @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { - return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; } /** + * + * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -509,6 +559,8 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
   public static final int READ_TIME_FIELD_NUMBER = 5;
   private com.google.protobuf.Timestamp readTime_;
   /**
+   *
+   *
    * 
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -517,6 +569,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
    * 
* * .google.protobuf.Timestamp read_time = 5; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -524,6 +577,8 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -532,6 +587,7 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 5; + * * @return The readTime. */ @java.lang.Override @@ -539,6 +595,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -556,6 +614,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int PAGE_TOKEN_FIELD_NUMBER = 7;
   private volatile java.lang.Object pageToken_;
   /**
+   *
+   *
    * 
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -563,6 +623,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * string page_token = 7; + * * @return The pageToken. */ @java.lang.Override @@ -571,14 +632,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -586,16 +648,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 7; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -606,12 +667,15 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 8; private int pageSize_; /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 8; + * * @return The pageSize. */ @java.lang.Override @@ -620,6 +684,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -631,8 +696,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -673,19 +737,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, groupBy_); } if (compareDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCompareDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCompareDuration()); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(8, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -695,33 +756,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.GroupAssetsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.GroupAssetsRequest other = (com.google.cloud.securitycenter.v1.GroupAssetsRequest) obj; + com.google.cloud.securitycenter.v1.GroupAssetsRequest other = + (com.google.cloud.securitycenter.v1.GroupAssetsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getGroupBy() - .equals(other.getGroupBy())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getGroupBy().equals(other.getGroupBy())) return false; if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - if (!getCompareDuration() - .equals(other.getCompareDuration())) return false; + if (!getCompareDuration().equals(other.getCompareDuration())) return false; } if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -757,117 +812,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GroupAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.GroupAssetsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.GroupAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for grouping by assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GroupAssetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GroupAssetsRequest) com.google.cloud.securitycenter.v1.GroupAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GroupAssetsRequest.class, com.google.cloud.securitycenter.v1.GroupAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1.GroupAssetsRequest.class, + com.google.cloud.securitycenter.v1.GroupAssetsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.GroupAssetsRequest.newBuilder() @@ -875,16 +940,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -914,9 +978,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor; } @java.lang.Override @@ -935,7 +999,8 @@ public com.google.cloud.securitycenter.v1.GroupAssetsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.GroupAssetsRequest buildPartial() { - com.google.cloud.securitycenter.v1.GroupAssetsRequest result = new com.google.cloud.securitycenter.v1.GroupAssetsRequest(this); + com.google.cloud.securitycenter.v1.GroupAssetsRequest result = + new com.google.cloud.securitycenter.v1.GroupAssetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.groupBy_ = groupBy_; @@ -959,38 +1024,39 @@ public com.google.cloud.securitycenter.v1.GroupAssetsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.GroupAssetsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.GroupAssetsRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.GroupAssetsRequest) other); } else { super.mergeFrom(other); return this; @@ -998,7 +1064,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupAssetsRequest other) { - if (other == com.google.cloud.securitycenter.v1.GroupAssetsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.GroupAssetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1043,7 +1110,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.GroupAssetsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.GroupAssetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1055,20 +1123,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1077,22 +1149,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1100,60 +1175,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1161,6 +1249,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1212,13 +1302,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1227,6 +1317,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1278,15 +1370,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1294,6 +1385,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1345,20 +1438,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1410,15 +1505,18 @@ public Builder setFilter(
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1470,16 +1568,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1487,6 +1585,8 @@ public Builder setFilterBytes( private java.lang.Object groupBy_ = ""; /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1505,13 +1605,13 @@ public Builder setFilterBytes(
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The groupBy. */ public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; @@ -1520,6 +1620,8 @@ public java.lang.String getGroupBy() { } } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1538,15 +1640,14 @@ public java.lang.String getGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for groupBy. */ - public com.google.protobuf.ByteString - getGroupByBytes() { + public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); groupBy_ = b; return b; } else { @@ -1554,6 +1655,8 @@ public java.lang.String getGroupBy() { } } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1572,20 +1675,22 @@ public java.lang.String getGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The groupBy to set. * @return This builder for chaining. */ - public Builder setGroupBy( - java.lang.String value) { + public Builder setGroupBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + groupBy_ = value; onChanged(); return this; } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1604,15 +1709,18 @@ public Builder setGroupBy(
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearGroupBy() { - + groupBy_ = getDefaultInstance().getGroupBy(); onChanged(); return this; } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1631,16 +1739,16 @@ public Builder clearGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for groupBy to set. * @return This builder for chaining. */ - public Builder setGroupByBytes( - com.google.protobuf.ByteString value) { + public Builder setGroupByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + groupBy_ = value; onChanged(); return this; @@ -1648,8 +1756,13 @@ public Builder setGroupByBytes( private com.google.protobuf.Duration compareDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> compareDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + compareDurationBuilder_; /** + * + * *
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1676,12 +1789,15 @@ public Builder setGroupByBytes(
      * 
* * .google.protobuf.Duration compare_duration = 4; + * * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; } /** + * + * *
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1708,16 +1824,21 @@ public boolean hasCompareDuration() {
      * 
* * .google.protobuf.Duration compare_duration = 4; + * * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { - return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; } else { return compareDurationBuilder_.getMessage(); } } /** + * + * *
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1759,6 +1880,8 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1786,8 +1909,7 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration compare_duration = 4;
      */
-    public Builder setCompareDuration(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) {
       if (compareDurationBuilder_ == null) {
         compareDuration_ = builderForValue.build();
         onChanged();
@@ -1798,6 +1920,8 @@ public Builder setCompareDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1829,7 +1953,9 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       if (compareDurationBuilder_ == null) {
         if (compareDuration_ != null) {
           compareDuration_ =
-            com.google.protobuf.Duration.newBuilder(compareDuration_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(compareDuration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           compareDuration_ = value;
         }
@@ -1841,6 +1967,8 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1880,6 +2008,8 @@ public Builder clearCompareDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1908,11 +2038,13 @@ public Builder clearCompareDuration() {
      * .google.protobuf.Duration compare_duration = 4;
      */
     public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
-      
+
       onChanged();
       return getCompareDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1944,11 +2076,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
       if (compareDurationBuilder_ != null) {
         return compareDurationBuilder_.getMessageOrBuilder();
       } else {
-        return compareDuration_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : compareDuration_;
+        return compareDuration_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : compareDuration_;
       }
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1977,14 +2112,17 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * .google.protobuf.Duration compare_duration = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getCompareDurationFieldBuilder() {
       if (compareDurationBuilder_ == null) {
-        compareDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getCompareDuration(),
-                getParentForChildren(),
-                isClean());
+        compareDurationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getCompareDuration(), getParentForChildren(), isClean());
         compareDuration_ = null;
       }
       return compareDurationBuilder_;
@@ -1992,8 +2130,13 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
 
     private com.google.protobuf.Timestamp readTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        readTimeBuilder_;
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2002,12 +2145,15 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * 
* * .google.protobuf.Timestamp read_time = 5; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2016,6 +2162,7 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 5; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -2026,6 +2173,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2049,6 +2198,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2058,8 +2209,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 5;
      */
-    public Builder setReadTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -2070,6 +2220,8 @@ public Builder setReadTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2083,7 +2235,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -2095,6 +2247,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2116,6 +2270,8 @@ public Builder clearReadTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2126,11 +2282,13 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-      
+
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2144,11 +2302,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2159,14 +2318,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(),
-                getParentForChildren(),
-                isClean());
+        readTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(), getParentForChildren(), isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -2174,6 +2336,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private java.lang.Object pageToken_ = "";
     /**
+     *
+     *
      * 
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2181,13 +2345,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * string page_token = 7; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2196,6 +2360,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2203,15 +2369,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 7; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2219,6 +2384,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2226,20 +2393,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 7; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2247,15 +2416,18 @@ public Builder setPageToken(
      * 
* * string page_token = 7; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2263,29 +2435,32 @@ public Builder clearPageToken() {
      * 
* * string page_token = 7; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; + * * @return The pageSize. */ @java.lang.Override @@ -2293,39 +2468,45 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2335,12 +2516,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GroupAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GroupAssetsRequest) private static final com.google.cloud.securitycenter.v1.GroupAssetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GroupAssetsRequest(); } @@ -2349,16 +2530,16 @@ public static com.google.cloud.securitycenter.v1.GroupAssetsRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupAssetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAssetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2373,6 +2554,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.GroupAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java similarity index 91% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java index e24e974e8..b6eb60a72 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface GroupAssetsRequestOrBuilder extends +public interface GroupAssetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GroupAssetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -83,10 +110,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -138,12 +168,14 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -162,10 +194,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The groupBy. */ java.lang.String getGroupBy(); /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -184,12 +219,14 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for groupBy. */ - com.google.protobuf.ByteString - getGroupByBytes(); + com.google.protobuf.ByteString getGroupByBytes(); /** + * + * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -216,10 +253,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Duration compare_duration = 4; + * * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** + * + * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -246,10 +286,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Duration compare_duration = 4; + * * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** + * + * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -280,6 +323,8 @@ public interface GroupAssetsRequestOrBuilder extends
   com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
 
   /**
+   *
+   *
    * 
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -288,10 +333,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 5; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -300,10 +348,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 5; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -316,6 +367,8 @@ public interface GroupAssetsRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -323,10 +376,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * string page_token = 7; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -334,18 +390,21 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * string page_token = 7; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 8; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java index bb81d5891..32c351f0b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Response message for grouping by assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GroupAssetsResponse} */ -public final class GroupAssetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GroupAssetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GroupAssetsResponse) GroupAssetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GroupAssetsResponse.newBuilder() to construct. private GroupAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GroupAssetsResponse() { groupByResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private GroupAssetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GroupAssetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GroupAssetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,46 +72,52 @@ private GroupAssetsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - groupByResults_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - groupByResults_.add( - input.readMessage(com.google.cloud.securitycenter.v1.GroupResult.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + groupByResults_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + groupByResults_.add( + input.readMessage( + com.google.cloud.securitycenter.v1.GroupResult.parser(), extensionRegistry)); + break; } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 32: { + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - totalSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + case 32: + { + totalSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,8 +125,7 @@ private GroupAssetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); @@ -112,22 +134,27 @@ private GroupAssetsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GroupAssetsResponse.class, com.google.cloud.securitycenter.v1.GroupAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1.GroupAssetsResponse.class, + com.google.cloud.securitycenter.v1.GroupAssetsResponse.Builder.class); } public static final int GROUP_BY_RESULTS_FIELD_NUMBER = 1; private java.util.List groupByResults_; /** + * + * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -141,6 +168,8 @@ public java.util.List getGroupBy
     return groupByResults_;
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -150,11 +179,13 @@ public java.util.List getGroupBy
    * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getGroupByResultsOrBuilderList() {
     return groupByResults_;
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -168,6 +199,8 @@ public int getGroupByResultsCount() {
     return groupByResults_.size();
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -181,6 +214,8 @@ public com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int inde
     return groupByResults_.get(index);
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -198,11 +233,14 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults
   public static final int READ_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Timestamp readTime_;
   /**
+   *
+   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -210,11 +248,14 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ @java.lang.Override @@ -222,6 +263,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used for executing the groupBy request.
    * 
@@ -236,12 +279,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ @java.lang.Override @@ -250,30 +296,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -284,11 +330,14 @@ public java.lang.String getNextPageToken() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_; /** + * + * *
    * The total number of results matching the query.
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -297,6 +346,7 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,8 +358,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < groupByResults_.size(); i++) { output.writeMessage(1, groupByResults_.get(i)); } @@ -332,19 +381,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < groupByResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, groupByResults_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, groupByResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -354,24 +400,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.GroupAssetsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.GroupAssetsResponse other = (com.google.cloud.securitycenter.v1.GroupAssetsResponse) obj; + com.google.cloud.securitycenter.v1.GroupAssetsResponse other = + (com.google.cloud.securitycenter.v1.GroupAssetsResponse) obj; - if (!getGroupByResultsList() - .equals(other.getGroupByResultsList())) return false; + if (!getGroupByResultsList().equals(other.getGroupByResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (getTotalSize() - != other.getTotalSize()) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -401,117 +444,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GroupAssetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.GroupAssetsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.GroupAssetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for grouping by assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GroupAssetsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GroupAssetsResponse) com.google.cloud.securitycenter.v1.GroupAssetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GroupAssetsResponse.class, com.google.cloud.securitycenter.v1.GroupAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1.GroupAssetsResponse.class, + com.google.cloud.securitycenter.v1.GroupAssetsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.GroupAssetsResponse.newBuilder() @@ -519,17 +572,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getGroupByResultsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -553,9 +606,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor; } @java.lang.Override @@ -574,7 +627,8 @@ public com.google.cloud.securitycenter.v1.GroupAssetsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1.GroupAssetsResponse buildPartial() { - com.google.cloud.securitycenter.v1.GroupAssetsResponse result = new com.google.cloud.securitycenter.v1.GroupAssetsResponse(this); + com.google.cloud.securitycenter.v1.GroupAssetsResponse result = + new com.google.cloud.securitycenter.v1.GroupAssetsResponse(this); int from_bitField0_ = bitField0_; if (groupByResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -600,38 +654,39 @@ public com.google.cloud.securitycenter.v1.GroupAssetsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.GroupAssetsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1.GroupAssetsResponse)other); + return mergeFrom((com.google.cloud.securitycenter.v1.GroupAssetsResponse) other); } else { super.mergeFrom(other); return this; @@ -639,7 +694,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupAssetsResponse other) { - if (other == com.google.cloud.securitycenter.v1.GroupAssetsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.GroupAssetsResponse.getDefaultInstance()) + return this; if (groupByResultsBuilder_ == null) { if (!other.groupByResults_.isEmpty()) { if (groupByResults_.isEmpty()) { @@ -658,9 +714,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupAssetsResponse groupByResultsBuilder_ = null; groupByResults_ = other.groupByResults_; bitField0_ = (bitField0_ & ~0x00000001); - groupByResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGroupByResultsFieldBuilder() : null; + groupByResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroupByResultsFieldBuilder() + : null; } else { groupByResultsBuilder_.addAllMessages(other.groupByResults_); } @@ -695,7 +752,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.GroupAssetsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.GroupAssetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -704,21 +762,30 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List groupByResults_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureGroupByResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - groupByResults_ = new java.util.ArrayList(groupByResults_); + groupByResults_ = + new java.util.ArrayList( + groupByResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.GroupResult, com.google.cloud.securitycenter.v1.GroupResult.Builder, com.google.cloud.securitycenter.v1.GroupResultOrBuilder> groupByResultsBuilder_; + com.google.cloud.securitycenter.v1.GroupResult, + com.google.cloud.securitycenter.v1.GroupResult.Builder, + com.google.cloud.securitycenter.v1.GroupResultOrBuilder> + groupByResultsBuilder_; /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -735,6 +802,8 @@ public java.util.List getGroupBy
       }
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -751,6 +820,8 @@ public int getGroupByResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -767,6 +838,8 @@ public com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int inde
       }
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -790,6 +863,8 @@ public Builder setGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -810,6 +885,8 @@ public Builder setGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -832,6 +909,8 @@ public Builder addGroupByResults(com.google.cloud.securitycenter.v1.GroupResult
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -855,6 +934,8 @@ public Builder addGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -875,6 +956,8 @@ public Builder addGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -895,6 +978,8 @@ public Builder addGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -907,8 +992,7 @@ public Builder addAllGroupByResults(
         java.lang.Iterable values) {
       if (groupByResultsBuilder_ == null) {
         ensureGroupByResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, groupByResults_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupByResults_);
         onChanged();
       } else {
         groupByResultsBuilder_.addAllMessages(values);
@@ -916,6 +1000,8 @@ public Builder addAllGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -935,6 +1021,8 @@ public Builder clearGroupByResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -954,6 +1042,8 @@ public Builder removeGroupByResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -967,6 +1057,8 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder getGroupByResultsB
       return getGroupByResultsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -978,11 +1070,14 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder getGroupByResultsB
     public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder(
         int index) {
       if (groupByResultsBuilder_ == null) {
-        return groupByResults_.get(index);  } else {
+        return groupByResults_.get(index);
+      } else {
         return groupByResultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -991,8 +1086,8 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults
      *
      * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
      */
-    public java.util.List 
-         getGroupByResultsOrBuilderList() {
+    public java.util.List
+        getGroupByResultsOrBuilderList() {
       if (groupByResultsBuilder_ != null) {
         return groupByResultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1000,6 +1095,8 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults
       }
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1009,10 +1106,12 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults
      * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
      */
     public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsBuilder() {
-      return getGroupByResultsFieldBuilder().addBuilder(
-          com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance());
+      return getGroupByResultsFieldBuilder()
+          .addBuilder(com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1023,10 +1122,12 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsB
      */
     public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsBuilder(
         int index) {
-      return getGroupByResultsFieldBuilder().addBuilder(
-          index, com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance());
+      return getGroupByResultsFieldBuilder()
+          .addBuilder(index, com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1035,16 +1136,22 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsB
      *
      * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
      */
-    public java.util.List 
-         getGroupByResultsBuilderList() {
+    public java.util.List
+        getGroupByResultsBuilderList() {
       return getGroupByResultsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.GroupResult, com.google.cloud.securitycenter.v1.GroupResult.Builder, com.google.cloud.securitycenter.v1.GroupResultOrBuilder> 
+            com.google.cloud.securitycenter.v1.GroupResult,
+            com.google.cloud.securitycenter.v1.GroupResult.Builder,
+            com.google.cloud.securitycenter.v1.GroupResultOrBuilder>
         getGroupByResultsFieldBuilder() {
       if (groupByResultsBuilder_ == null) {
-        groupByResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.GroupResult, com.google.cloud.securitycenter.v1.GroupResult.Builder, com.google.cloud.securitycenter.v1.GroupResultOrBuilder>(
+        groupByResultsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.securitycenter.v1.GroupResult,
+                com.google.cloud.securitycenter.v1.GroupResult.Builder,
+                com.google.cloud.securitycenter.v1.GroupResultOrBuilder>(
                 groupByResults_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1056,24 +1163,33 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsB
 
     private com.google.protobuf.Timestamp readTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        readTimeBuilder_;
     /**
+     *
+     *
      * 
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1084,6 +1200,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1104,14 +1222,15 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -1122,6 +1241,8 @@ public Builder setReadTime( return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1132,7 +1253,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -1144,6 +1265,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1162,6 +1285,8 @@ public Builder clearReadTime() { return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1169,11 +1294,13 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1184,11 +1311,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1196,14 +1324,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReadTime(), - getParentForChildren(), - isClean()); + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); readTime_ = null; } return readTimeBuilder_; @@ -1211,19 +1342,21 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1232,21 +1365,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1254,69 +1388,79 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_ ; + private int totalSize_; /** + * + * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -1324,37 +1468,43 @@ public int getTotalSize() { return totalSize_; } /** + * + * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; + * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** + * + * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; + * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1364,12 +1514,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GroupAssetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GroupAssetsResponse) private static final com.google.cloud.securitycenter.v1.GroupAssetsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GroupAssetsResponse(); } @@ -1378,16 +1528,16 @@ public static com.google.cloud.securitycenter.v1.GroupAssetsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupAssetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupAssetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAssetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAssetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1402,6 +1552,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.GroupAssetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java index 8e1053426..98c950b78 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface GroupAssetsResponseOrBuilder extends +public interface GroupAssetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GroupAssetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -16,9 +34,10 @@ public interface GroupAssetsResponseOrBuilder extends
    *
    * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
    */
-  java.util.List 
-      getGroupByResultsList();
+  java.util.List getGroupByResultsList();
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -29,6 +48,8 @@ public interface GroupAssetsResponseOrBuilder extends
    */
   com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int index);
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -39,6 +60,8 @@ public interface GroupAssetsResponseOrBuilder extends
    */
   int getGroupByResultsCount();
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -47,9 +70,11 @@ public interface GroupAssetsResponseOrBuilder extends
    *
    * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
    */
-  java.util.List 
+  java.util.List
       getGroupByResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -58,28 +83,35 @@ public interface GroupAssetsResponseOrBuilder extends
    *
    * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
    */
-  com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder(
-      int index);
+  com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used for executing the groupBy request.
    * 
@@ -89,33 +121,41 @@ com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuild com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * The total number of results matching the query.
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ int getTotalSize(); diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java similarity index 84% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java index f9ddb9b92..0a4b5e509 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for grouping by findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GroupFindingsRequest} */ -public final class GroupFindingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GroupFindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GroupFindingsRequest) GroupFindingsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GroupFindingsRequest.newBuilder() to construct. private GroupFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GroupFindingsRequest() { parent_ = ""; filter_ = ""; @@ -28,16 +46,15 @@ private GroupFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GroupFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GroupFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,68 +73,76 @@ private GroupFindingsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - groupBy_ = s; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); + groupBy_ = s; + break; } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; } + case 42: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); + } + compareDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 42: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (compareDuration_ != null) { - subBuilder = compareDuration_.toBuilder(); + pageToken_ = s; + break; } - compareDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compareDuration_); - compareDuration_ = subBuilder.buildPartial(); + case 64: + { + pageSize_ = input.readInt32(); + break; } - - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 64: { - - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,29 +150,33 @@ private GroupFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GroupFindingsRequest.class, com.google.cloud.securitycenter.v1.GroupFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1.GroupFindingsRequest.class, + com.google.cloud.securitycenter.v1.GroupFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]",
@@ -158,7 +187,10 @@ private GroupFindingsRequest(
    * or projects/{project_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -167,14 +199,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]",
@@ -185,17 +218,18 @@ public java.lang.String getParent() {
    * or projects/{project_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -206,6 +240,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -255,6 +291,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -263,14 +300,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -320,16 +358,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -340,6 +377,8 @@ public java.lang.String getFilter() { public static final int GROUP_BY_FIELD_NUMBER = 3; private volatile java.lang.Object groupBy_; /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state_change`). The string value should follow SQL syntax: comma separated
@@ -355,6 +394,7 @@ public java.lang.String getFilter() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The groupBy. */ @java.lang.Override @@ -363,14 +403,15 @@ public java.lang.String getGroupBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; } } /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state_change`). The string value should follow SQL syntax: comma separated
@@ -386,16 +427,15 @@ public java.lang.String getGroupBy() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for groupBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getGroupByBytes() { + public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); groupBy_ = b; return b; } else { @@ -406,6 +446,8 @@ public java.lang.String getGroupBy() { public static final int READ_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp readTime_; /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -414,6 +456,7 @@ public java.lang.String getGroupBy() {
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -421,6 +464,8 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -429,6 +474,7 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ @java.lang.Override @@ -436,6 +482,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -453,6 +501,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int COMPARE_DURATION_FIELD_NUMBER = 5;
   private com.google.protobuf.Duration compareDuration_;
   /**
+   *
+   *
    * 
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -484,6 +534,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ @java.lang.Override @@ -491,6 +542,8 @@ public boolean hasCompareDuration() { return compareDuration_ != null; } /** + * + * *
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -522,13 +575,18 @@ public boolean hasCompareDuration() {
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { - return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; } /** + * + * *
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -569,6 +627,8 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
   public static final int PAGE_TOKEN_FIELD_NUMBER = 7;
   private volatile java.lang.Object pageToken_;
   /**
+   *
+   *
    * 
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -576,6 +636,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
    * 
* * string page_token = 7; + * * @return The pageToken. */ @java.lang.Override @@ -584,14 +645,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -599,16 +661,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 7; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -619,12 +680,15 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 8; private int pageSize_; /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 8; + * * @return The pageSize. */ @java.lang.Override @@ -633,6 +697,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -644,8 +709,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -686,19 +750,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, groupBy_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); } if (compareDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCompareDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(8, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -708,33 +769,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.GroupFindingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.GroupFindingsRequest other = (com.google.cloud.securitycenter.v1.GroupFindingsRequest) obj; + com.google.cloud.securitycenter.v1.GroupFindingsRequest other = + (com.google.cloud.securitycenter.v1.GroupFindingsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getGroupBy() - .equals(other.getGroupBy())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getGroupBy().equals(other.getGroupBy())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - if (!getCompareDuration() - .equals(other.getCompareDuration())) return false; + if (!getCompareDuration().equals(other.getCompareDuration())) return false; } - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -770,117 +825,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GroupFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.GroupFindingsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.GroupFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for grouping by findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GroupFindingsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GroupFindingsRequest) com.google.cloud.securitycenter.v1.GroupFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GroupFindingsRequest.class, com.google.cloud.securitycenter.v1.GroupFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1.GroupFindingsRequest.class, + com.google.cloud.securitycenter.v1.GroupFindingsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.GroupFindingsRequest.newBuilder() @@ -888,16 +953,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -927,9 +991,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor; } @java.lang.Override @@ -948,7 +1012,8 @@ public com.google.cloud.securitycenter.v1.GroupFindingsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.GroupFindingsRequest buildPartial() { - com.google.cloud.securitycenter.v1.GroupFindingsRequest result = new com.google.cloud.securitycenter.v1.GroupFindingsRequest(this); + com.google.cloud.securitycenter.v1.GroupFindingsRequest result = + new com.google.cloud.securitycenter.v1.GroupFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.groupBy_ = groupBy_; @@ -972,38 +1037,39 @@ public com.google.cloud.securitycenter.v1.GroupFindingsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.GroupFindingsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.GroupFindingsRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.GroupFindingsRequest) other); } else { super.mergeFrom(other); return this; @@ -1011,7 +1077,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupFindingsRequest other) { - if (other == com.google.cloud.securitycenter.v1.GroupFindingsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.GroupFindingsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1056,7 +1123,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.GroupFindingsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.GroupFindingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1068,6 +1136,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]",
@@ -1078,14 +1148,16 @@ public Builder mergeFrom(
      * or projects/{project_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1094,6 +1166,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]",
@@ -1104,16 +1178,17 @@ public java.lang.String getParent() {
      * or projects/{project_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1121,6 +1196,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]",
@@ -1131,21 +1208,25 @@ public java.lang.String getParent() {
      * or projects/{project_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]",
@@ -1156,16 +1237,21 @@ public Builder setParent(
      * or projects/{project_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]",
@@ -1176,17 +1262,19 @@ public Builder clearParent() {
      * or projects/{project_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1194,6 +1282,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1243,13 +1333,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1258,6 +1348,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1307,15 +1399,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1323,6 +1414,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1372,20 +1465,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1435,15 +1530,18 @@ public Builder setFilter(
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1493,16 +1591,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1510,6 +1608,8 @@ public Builder setFilterBytes( private java.lang.Object groupBy_ = ""; /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
@@ -1525,13 +1625,13 @@ public Builder setFilterBytes(
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The groupBy. */ public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; @@ -1540,6 +1640,8 @@ public java.lang.String getGroupBy() { } } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
@@ -1555,15 +1657,14 @@ public java.lang.String getGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for groupBy. */ - public com.google.protobuf.ByteString - getGroupByBytes() { + public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); groupBy_ = b; return b; } else { @@ -1571,6 +1672,8 @@ public java.lang.String getGroupBy() { } } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
@@ -1586,20 +1689,22 @@ public java.lang.String getGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The groupBy to set. * @return This builder for chaining. */ - public Builder setGroupBy( - java.lang.String value) { + public Builder setGroupBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + groupBy_ = value; onChanged(); return this; } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
@@ -1615,15 +1720,18 @@ public Builder setGroupBy(
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearGroupBy() { - + groupBy_ = getDefaultInstance().getGroupBy(); onChanged(); return this; } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
@@ -1639,16 +1747,16 @@ public Builder clearGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for groupBy to set. * @return This builder for chaining. */ - public Builder setGroupByBytes( - com.google.protobuf.ByteString value) { + public Builder setGroupByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + groupBy_ = value; onChanged(); return this; @@ -1656,8 +1764,13 @@ public Builder setGroupByBytes( private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1666,12 +1779,15 @@ public Builder setGroupByBytes(
      * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1680,6 +1796,7 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1690,6 +1807,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1713,6 +1832,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1722,8 +1843,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 4;
      */
-    public Builder setReadTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1734,6 +1854,8 @@ public Builder setReadTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1747,7 +1869,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -1759,6 +1881,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1780,6 +1904,8 @@ public Builder clearReadTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1790,11 +1916,13 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-      
+
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1808,11 +1936,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1823,14 +1952,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(),
-                getParentForChildren(),
-                isClean());
+        readTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(), getParentForChildren(), isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -1838,8 +1970,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private com.google.protobuf.Duration compareDuration_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> compareDurationBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        compareDurationBuilder_;
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -1871,12 +2008,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; } /** + * + * *
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -1908,16 +2048,21 @@ public boolean hasCompareDuration() {
      * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { - return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; } else { return compareDurationBuilder_.getMessage(); } } /** + * + * *
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -1964,6 +2109,8 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -1996,8 +2143,7 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration compare_duration = 5;
      */
-    public Builder setCompareDuration(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) {
       if (compareDurationBuilder_ == null) {
         compareDuration_ = builderForValue.build();
         onChanged();
@@ -2008,6 +2154,8 @@ public Builder setCompareDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2044,7 +2192,9 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       if (compareDurationBuilder_ == null) {
         if (compareDuration_ != null) {
           compareDuration_ =
-            com.google.protobuf.Duration.newBuilder(compareDuration_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(compareDuration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           compareDuration_ = value;
         }
@@ -2056,6 +2206,8 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2100,6 +2252,8 @@ public Builder clearCompareDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2133,11 +2287,13 @@ public Builder clearCompareDuration() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
-      
+
       onChanged();
       return getCompareDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2174,11 +2330,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
       if (compareDurationBuilder_ != null) {
         return compareDurationBuilder_.getMessageOrBuilder();
       } else {
-        return compareDuration_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : compareDuration_;
+        return compareDuration_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : compareDuration_;
       }
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2212,14 +2371,17 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getCompareDurationFieldBuilder() {
       if (compareDurationBuilder_ == null) {
-        compareDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getCompareDuration(),
-                getParentForChildren(),
-                isClean());
+        compareDurationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getCompareDuration(), getParentForChildren(), isClean());
         compareDuration_ = null;
       }
       return compareDurationBuilder_;
@@ -2227,6 +2389,8 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
 
     private java.lang.Object pageToken_ = "";
     /**
+     *
+     *
      * 
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -2234,13 +2398,13 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * 
* * string page_token = 7; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2249,6 +2413,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -2256,15 +2422,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 7; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2272,6 +2437,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -2279,20 +2446,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 7; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -2300,15 +2469,18 @@ public Builder setPageToken(
      * 
* * string page_token = 7; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -2316,29 +2488,32 @@ public Builder clearPageToken() {
      * 
* * string page_token = 7; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; + * * @return The pageSize. */ @java.lang.Override @@ -2346,39 +2521,45 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2388,12 +2569,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GroupFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GroupFindingsRequest) private static final com.google.cloud.securitycenter.v1.GroupFindingsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GroupFindingsRequest(); } @@ -2402,16 +2583,16 @@ public static com.google.cloud.securitycenter.v1.GroupFindingsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2426,6 +2607,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.GroupFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java similarity index 91% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java index ee6835622..6fedd107a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface GroupFindingsRequestOrBuilder extends +public interface GroupFindingsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GroupFindingsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]",
@@ -18,11 +36,16 @@ public interface GroupFindingsRequestOrBuilder extends
    * or projects/{project_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]",
@@ -33,13 +56,17 @@ public interface GroupFindingsRequestOrBuilder extends
    * or projects/{project_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -89,10 +116,13 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -142,12 +172,14 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state_change`). The string value should follow SQL syntax: comma separated
@@ -163,10 +195,13 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The groupBy. */ java.lang.String getGroupBy(); /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state_change`). The string value should follow SQL syntax: comma separated
@@ -182,12 +217,14 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for groupBy. */ - com.google.protobuf.ByteString - getGroupByBytes(); + com.google.protobuf.ByteString getGroupByBytes(); /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -196,10 +233,13 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -208,10 +248,13 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -224,6 +267,8 @@ public interface GroupFindingsRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -255,10 +300,13 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** + * + * *
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -290,10 +338,13 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** + * + * *
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -329,6 +380,8 @@ public interface GroupFindingsRequestOrBuilder extends
   com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
 
   /**
+   *
+   *
    * 
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -336,10 +389,13 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * string page_token = 7; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -347,18 +403,21 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * string page_token = 7; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 8; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java index 2471a641e..b5fa86cee 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Response message for group by findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GroupFindingsResponse} */ -public final class GroupFindingsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GroupFindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GroupFindingsResponse) GroupFindingsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GroupFindingsResponse.newBuilder() to construct. private GroupFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GroupFindingsResponse() { groupByResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private GroupFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GroupFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GroupFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,46 +72,52 @@ private GroupFindingsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - groupByResults_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - groupByResults_.add( - input.readMessage(com.google.cloud.securitycenter.v1.GroupResult.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + groupByResults_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + groupByResults_.add( + input.readMessage( + com.google.cloud.securitycenter.v1.GroupResult.parser(), extensionRegistry)); + break; } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 32: { + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - totalSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + case 32: + { + totalSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,8 +125,7 @@ private GroupFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); @@ -112,22 +134,27 @@ private GroupFindingsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GroupFindingsResponse.class, com.google.cloud.securitycenter.v1.GroupFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1.GroupFindingsResponse.class, + com.google.cloud.securitycenter.v1.GroupFindingsResponse.Builder.class); } public static final int GROUP_BY_RESULTS_FIELD_NUMBER = 1; private java.util.List groupByResults_; /** + * + * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -141,6 +168,8 @@ public java.util.List getGroupBy
     return groupByResults_;
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -150,11 +179,13 @@ public java.util.List getGroupBy
    * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getGroupByResultsOrBuilderList() {
     return groupByResults_;
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -168,6 +199,8 @@ public int getGroupByResultsCount() {
     return groupByResults_.size();
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -181,6 +214,8 @@ public com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int inde
     return groupByResults_.get(index);
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -198,11 +233,14 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults
   public static final int READ_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Timestamp readTime_;
   /**
+   *
+   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -210,11 +248,14 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ @java.lang.Override @@ -222,6 +263,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used for executing the groupBy request.
    * 
@@ -236,12 +279,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ @java.lang.Override @@ -250,30 +296,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -284,11 +330,14 @@ public java.lang.String getNextPageToken() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_; /** + * + * *
    * The total number of results matching the query.
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -297,6 +346,7 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,8 +358,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < groupByResults_.size(); i++) { output.writeMessage(1, groupByResults_.get(i)); } @@ -332,19 +381,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < groupByResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, groupByResults_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, groupByResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -354,24 +400,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.GroupFindingsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.GroupFindingsResponse other = (com.google.cloud.securitycenter.v1.GroupFindingsResponse) obj; + com.google.cloud.securitycenter.v1.GroupFindingsResponse other = + (com.google.cloud.securitycenter.v1.GroupFindingsResponse) obj; - if (!getGroupByResultsList() - .equals(other.getGroupByResultsList())) return false; + if (!getGroupByResultsList().equals(other.getGroupByResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (getTotalSize() - != other.getTotalSize()) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -401,117 +444,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GroupFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.GroupFindingsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.GroupFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for group by findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GroupFindingsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GroupFindingsResponse) com.google.cloud.securitycenter.v1.GroupFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GroupFindingsResponse.class, com.google.cloud.securitycenter.v1.GroupFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1.GroupFindingsResponse.class, + com.google.cloud.securitycenter.v1.GroupFindingsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.GroupFindingsResponse.newBuilder() @@ -519,17 +572,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getGroupByResultsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -553,9 +606,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor; } @java.lang.Override @@ -574,7 +627,8 @@ public com.google.cloud.securitycenter.v1.GroupFindingsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1.GroupFindingsResponse buildPartial() { - com.google.cloud.securitycenter.v1.GroupFindingsResponse result = new com.google.cloud.securitycenter.v1.GroupFindingsResponse(this); + com.google.cloud.securitycenter.v1.GroupFindingsResponse result = + new com.google.cloud.securitycenter.v1.GroupFindingsResponse(this); int from_bitField0_ = bitField0_; if (groupByResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -600,38 +654,39 @@ public com.google.cloud.securitycenter.v1.GroupFindingsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.GroupFindingsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1.GroupFindingsResponse)other); + return mergeFrom((com.google.cloud.securitycenter.v1.GroupFindingsResponse) other); } else { super.mergeFrom(other); return this; @@ -639,7 +694,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupFindingsResponse other) { - if (other == com.google.cloud.securitycenter.v1.GroupFindingsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.GroupFindingsResponse.getDefaultInstance()) + return this; if (groupByResultsBuilder_ == null) { if (!other.groupByResults_.isEmpty()) { if (groupByResults_.isEmpty()) { @@ -658,9 +714,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupFindingsRespons groupByResultsBuilder_ = null; groupByResults_ = other.groupByResults_; bitField0_ = (bitField0_ & ~0x00000001); - groupByResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGroupByResultsFieldBuilder() : null; + groupByResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroupByResultsFieldBuilder() + : null; } else { groupByResultsBuilder_.addAllMessages(other.groupByResults_); } @@ -695,7 +752,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.GroupFindingsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.GroupFindingsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -704,21 +762,30 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List groupByResults_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureGroupByResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - groupByResults_ = new java.util.ArrayList(groupByResults_); + groupByResults_ = + new java.util.ArrayList( + groupByResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.GroupResult, com.google.cloud.securitycenter.v1.GroupResult.Builder, com.google.cloud.securitycenter.v1.GroupResultOrBuilder> groupByResultsBuilder_; + com.google.cloud.securitycenter.v1.GroupResult, + com.google.cloud.securitycenter.v1.GroupResult.Builder, + com.google.cloud.securitycenter.v1.GroupResultOrBuilder> + groupByResultsBuilder_; /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -735,6 +802,8 @@ public java.util.List getGroupBy
       }
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -751,6 +820,8 @@ public int getGroupByResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -767,6 +838,8 @@ public com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int inde
       }
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -790,6 +863,8 @@ public Builder setGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -810,6 +885,8 @@ public Builder setGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -832,6 +909,8 @@ public Builder addGroupByResults(com.google.cloud.securitycenter.v1.GroupResult
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -855,6 +934,8 @@ public Builder addGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -875,6 +956,8 @@ public Builder addGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -895,6 +978,8 @@ public Builder addGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -907,8 +992,7 @@ public Builder addAllGroupByResults(
         java.lang.Iterable values) {
       if (groupByResultsBuilder_ == null) {
         ensureGroupByResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, groupByResults_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupByResults_);
         onChanged();
       } else {
         groupByResultsBuilder_.addAllMessages(values);
@@ -916,6 +1000,8 @@ public Builder addAllGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -935,6 +1021,8 @@ public Builder clearGroupByResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -954,6 +1042,8 @@ public Builder removeGroupByResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -967,6 +1057,8 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder getGroupByResultsB
       return getGroupByResultsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -978,11 +1070,14 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder getGroupByResultsB
     public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder(
         int index) {
       if (groupByResultsBuilder_ == null) {
-        return groupByResults_.get(index);  } else {
+        return groupByResults_.get(index);
+      } else {
         return groupByResultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -991,8 +1086,8 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults
      *
      * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
      */
-    public java.util.List 
-         getGroupByResultsOrBuilderList() {
+    public java.util.List
+        getGroupByResultsOrBuilderList() {
       if (groupByResultsBuilder_ != null) {
         return groupByResultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1000,6 +1095,8 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults
       }
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1009,10 +1106,12 @@ public com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResults
      * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
      */
     public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsBuilder() {
-      return getGroupByResultsFieldBuilder().addBuilder(
-          com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance());
+      return getGroupByResultsFieldBuilder()
+          .addBuilder(com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1023,10 +1122,12 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsB
      */
     public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsBuilder(
         int index) {
-      return getGroupByResultsFieldBuilder().addBuilder(
-          index, com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance());
+      return getGroupByResultsFieldBuilder()
+          .addBuilder(index, com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -1035,16 +1136,22 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsB
      *
      * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
      */
-    public java.util.List 
-         getGroupByResultsBuilderList() {
+    public java.util.List
+        getGroupByResultsBuilderList() {
       return getGroupByResultsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.GroupResult, com.google.cloud.securitycenter.v1.GroupResult.Builder, com.google.cloud.securitycenter.v1.GroupResultOrBuilder> 
+            com.google.cloud.securitycenter.v1.GroupResult,
+            com.google.cloud.securitycenter.v1.GroupResult.Builder,
+            com.google.cloud.securitycenter.v1.GroupResultOrBuilder>
         getGroupByResultsFieldBuilder() {
       if (groupByResultsBuilder_ == null) {
-        groupByResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.GroupResult, com.google.cloud.securitycenter.v1.GroupResult.Builder, com.google.cloud.securitycenter.v1.GroupResultOrBuilder>(
+        groupByResultsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.securitycenter.v1.GroupResult,
+                com.google.cloud.securitycenter.v1.GroupResult.Builder,
+                com.google.cloud.securitycenter.v1.GroupResultOrBuilder>(
                 groupByResults_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1056,24 +1163,33 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsB
 
     private com.google.protobuf.Timestamp readTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        readTimeBuilder_;
     /**
+     *
+     *
      * 
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1084,6 +1200,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1104,14 +1222,15 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -1122,6 +1241,8 @@ public Builder setReadTime( return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1132,7 +1253,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -1144,6 +1265,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1162,6 +1285,8 @@ public Builder clearReadTime() { return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1169,11 +1294,13 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1184,11 +1311,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1196,14 +1324,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReadTime(), - getParentForChildren(), - isClean()); + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); readTime_ = null; } return readTimeBuilder_; @@ -1211,19 +1342,21 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1232,21 +1365,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1254,69 +1388,79 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_ ; + private int totalSize_; /** + * + * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -1324,37 +1468,43 @@ public int getTotalSize() { return totalSize_; } /** + * + * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; + * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** + * + * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; + * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1364,12 +1514,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GroupFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GroupFindingsResponse) private static final com.google.cloud.securitycenter.v1.GroupFindingsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GroupFindingsResponse(); } @@ -1378,16 +1528,16 @@ public static com.google.cloud.securitycenter.v1.GroupFindingsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1402,6 +1552,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.GroupFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java index c283f5262..8a33fee8c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface GroupFindingsResponseOrBuilder extends +public interface GroupFindingsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GroupFindingsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -16,9 +34,10 @@ public interface GroupFindingsResponseOrBuilder extends
    *
    * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
    */
-  java.util.List 
-      getGroupByResultsList();
+  java.util.List getGroupByResultsList();
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -29,6 +48,8 @@ public interface GroupFindingsResponseOrBuilder extends
    */
   com.google.cloud.securitycenter.v1.GroupResult getGroupByResults(int index);
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -39,6 +60,8 @@ public interface GroupFindingsResponseOrBuilder extends
    */
   int getGroupByResultsCount();
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -47,9 +70,11 @@ public interface GroupFindingsResponseOrBuilder extends
    *
    * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
    */
-  java.util.List 
+  java.util.List
       getGroupByResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -58,28 +83,35 @@ public interface GroupFindingsResponseOrBuilder extends
    *
    * repeated .google.cloud.securitycenter.v1.GroupResult group_by_results = 1;
    */
-  com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder(
-      int index);
+  com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used for executing the groupBy request.
    * 
@@ -89,33 +121,41 @@ com.google.cloud.securitycenter.v1.GroupResultOrBuilder getGroupByResultsOrBuild com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * The total number of results matching the query.
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ int getTotalSize(); diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java index c5c7e4947..983f8ac00 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Result containing the properties and count of a groupBy request.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GroupResult} */ -public final class GroupResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GroupResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GroupResult) GroupResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GroupResult.newBuilder() to construct. private GroupResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GroupResult() { - } + + private GroupResult() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GroupResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GroupResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,31 +69,34 @@ private GroupResult( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - properties_ = com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + properties_ = + com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); + break; } - com.google.protobuf.MapEntry - properties__ = input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - properties_.getMutableMap().put( - properties__.getKey(), properties__.getValue()); - break; - } - case 16: { - - count_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 16: + { + count_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,57 +104,60 @@ private GroupResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetProperties(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GroupResult.class, com.google.cloud.securitycenter.v1.GroupResult.Builder.class); + com.google.cloud.securitycenter.v1.GroupResult.class, + com.google.cloud.securitycenter.v1.GroupResult.Builder.class); } public static final int PROPERTIES_FIELD_NUMBER = 1; + private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.Value> defaultEntry = + static final com.google.protobuf.MapEntry + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> properties_; + .newDefaultInstance( + com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); + } + + private com.google.protobuf.MapField properties_; + private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -144,28 +166,30 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -173,11 +197,12 @@ public java.util.Map getProperties( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -185,16 +210,18 @@ public java.util.Map getPropertiesM * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - public com.google.protobuf.Value getPropertiesOrDefault( - java.lang.String key, - com.google.protobuf.Value defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.protobuf.Value defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -202,10 +229,10 @@ public com.google.protobuf.Value getPropertiesOrDefault( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - - public com.google.protobuf.Value getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { @@ -217,11 +244,14 @@ public com.google.protobuf.Value getPropertiesOrThrow( public static final int COUNT_FIELD_NUMBER = 2; private long count_; /** + * + * *
    * Total count of resources for the given properties.
    * 
* * int64 count = 2; + * * @return The count. */ @java.lang.Override @@ -230,6 +260,7 @@ public long getCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -241,14 +272,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetProperties(), - PropertiesDefaultEntryHolder.defaultEntry, - 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 1); if (count_ != 0L) { output.writeInt64(2, count_); } @@ -261,19 +287,18 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry - properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, properties__); + for (java.util.Map.Entry entry : + internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry properties__ = + PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, properties__); } if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, count_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, count_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -283,17 +308,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.GroupResult)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.GroupResult other = (com.google.cloud.securitycenter.v1.GroupResult) obj; + com.google.cloud.securitycenter.v1.GroupResult other = + (com.google.cloud.securitycenter.v1.GroupResult) obj; - if (!internalGetProperties().equals( - other.internalGetProperties())) return false; - if (getCount() - != other.getCount()) return false; + if (!internalGetProperties().equals(other.internalGetProperties())) return false; + if (getCount() != other.getCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -310,147 +334,153 @@ public int hashCode() { hash = (53 * hash) + internalGetProperties().hashCode(); } hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.GroupResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.GroupResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GroupResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.GroupResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.GroupResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Result containing the properties and count of a groupBy request.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.GroupResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GroupResult) com.google.cloud.securitycenter.v1.GroupResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetProperties(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableProperties(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.GroupResult.class, com.google.cloud.securitycenter.v1.GroupResult.Builder.class); + com.google.cloud.securitycenter.v1.GroupResult.class, + com.google.cloud.securitycenter.v1.GroupResult.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.GroupResult.newBuilder() @@ -458,16 +488,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +507,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor; } @java.lang.Override @@ -499,7 +528,8 @@ public com.google.cloud.securitycenter.v1.GroupResult build() { @java.lang.Override public com.google.cloud.securitycenter.v1.GroupResult buildPartial() { - com.google.cloud.securitycenter.v1.GroupResult result = new com.google.cloud.securitycenter.v1.GroupResult(this); + com.google.cloud.securitycenter.v1.GroupResult result = + new com.google.cloud.securitycenter.v1.GroupResult(this); int from_bitField0_ = bitField0_; result.properties_ = internalGetProperties(); result.properties_.makeImmutable(); @@ -512,38 +542,39 @@ public com.google.cloud.securitycenter.v1.GroupResult buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.GroupResult) { - return mergeFrom((com.google.cloud.securitycenter.v1.GroupResult)other); + return mergeFrom((com.google.cloud.securitycenter.v1.GroupResult) other); } else { super.mergeFrom(other); return this; @@ -552,8 +583,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupResult other) { if (other == com.google.cloud.securitycenter.v1.GroupResult.getDefaultInstance()) return this; - internalGetMutableProperties().mergeFrom( - other.internalGetProperties()); + internalGetMutableProperties().mergeFrom(other.internalGetProperties()); if (other.getCount() != 0L) { setCount(other.getCount()); } @@ -585,24 +615,27 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> properties_; + private com.google.protobuf.MapField properties_; + private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } + private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged();; + internalGetMutableProperties() { + onChanged(); + ; if (properties_ == null) { - properties_ = com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); + properties_ = + com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -614,28 +647,30 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
@@ -643,11 +678,12 @@ public java.util.Map getProperties( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
@@ -655,16 +691,18 @@ public java.util.Map getPropertiesM * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - public com.google.protobuf.Value getPropertiesOrDefault( - java.lang.String key, - com.google.protobuf.Value defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.protobuf.Value defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
@@ -672,10 +710,10 @@ public com.google.protobuf.Value getPropertiesOrDefault( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - - public com.google.protobuf.Value getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { @@ -685,74 +723,75 @@ public com.google.protobuf.Value getPropertiesOrThrow( } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap() - .clear(); + internalGetMutableProperties().getMutableMap().clear(); return this; } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ - - public Builder removeProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableProperties().getMutableMap() - .remove(key); + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableProperties().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableProperties() { + public java.util.Map getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ - public Builder putProperties( - java.lang.String key, - com.google.protobuf.Value value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putProperties(java.lang.String key, com.google.protobuf.Value value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableProperties().getMutableMap() - .put(key, value); + internalGetMutableProperties().getMutableMap().put(key, value); return this; } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ - public Builder putAllProperties( java.util.Map values) { - internalGetMutableProperties().getMutableMap() - .putAll(values); + internalGetMutableProperties().getMutableMap().putAll(values); return this; } - private long count_ ; + private long count_; /** + * + * *
      * Total count of resources for the given properties.
      * 
* * int64 count = 2; + * * @return The count. */ @java.lang.Override @@ -760,37 +799,43 @@ public long getCount() { return count_; } /** + * + * *
      * Total count of resources for the given properties.
      * 
* * int64 count = 2; + * * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(long value) { - + count_ = value; onChanged(); return this; } /** + * + * *
      * Total count of resources for the given properties.
      * 
* * int64 count = 2; + * * @return This builder for chaining. */ public Builder clearCount() { - + count_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -800,12 +845,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GroupResult) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GroupResult) private static final com.google.cloud.securitycenter.v1.GroupResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GroupResult(); } @@ -814,16 +859,16 @@ public static com.google.cloud.securitycenter.v1.GroupResult getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -838,6 +883,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.GroupResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java index cf6bc3f33..85083b4c5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResultOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface GroupResultOrBuilder extends +public interface GroupResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GroupResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -16,30 +34,31 @@ public interface GroupResultOrBuilder extends */ int getPropertiesCount(); /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - boolean containsProperties( - java.lang.String key); - /** - * Use {@link #getPropertiesMap()} instead. - */ + boolean containsProperties(java.lang.String key); + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getProperties(); + java.util.Map getProperties(); /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - java.util.Map - getPropertiesMap(); + java.util.Map getPropertiesMap(); /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -48,27 +67,30 @@ boolean containsProperties( */ /* nullable */ -com.google.protobuf.Value getPropertiesOrDefault( + com.google.protobuf.Value getPropertiesOrDefault( java.lang.String key, /* nullable */ -com.google.protobuf.Value defaultValue); + com.google.protobuf.Value defaultValue); /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - - com.google.protobuf.Value getPropertiesOrThrow( - java.lang.String key); + com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key); /** + * + * *
    * Total count of resources for the given properties.
    * 
* * int64 count = 2; + * * @return The count. */ long getCount(); diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBinding.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBinding.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBinding.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBinding.java index c1648a2bb..a6bc54298 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBinding.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBinding.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/iam_binding.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Represents a particular IAM binding, which captures a member's role addition,
  * removal, or state.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.IamBinding}
  */
-public final class IamBinding extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class IamBinding extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.IamBinding)
     IamBindingOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use IamBinding.newBuilder() to construct.
   private IamBinding(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private IamBinding() {
     action_ = 0;
     role_ = "";
@@ -28,16 +46,15 @@ private IamBinding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new IamBinding();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private IamBinding(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,31 +73,34 @@ private IamBinding(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            action_ = rawValue;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              action_ = rawValue;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            role_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              role_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            member_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              member_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -88,36 +108,41 @@ private IamBinding(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1.IamBindingProto.internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1.IamBindingProto
+        .internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.IamBindingProto.internal_static_google_cloud_securitycenter_v1_IamBinding_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.IamBindingProto
+        .internal_static_google_cloud_securitycenter_v1_IamBinding_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.IamBinding.class, com.google.cloud.securitycenter.v1.IamBinding.Builder.class);
+            com.google.cloud.securitycenter.v1.IamBinding.class,
+            com.google.cloud.securitycenter.v1.IamBinding.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The type of action performed on a Binding in a policy.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1.IamBinding.Action} */ - public enum Action - implements com.google.protobuf.ProtocolMessageEnum { + public enum Action implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified.
      * 
@@ -126,6 +151,8 @@ public enum Action */ ACTION_UNSPECIFIED(0), /** + * + * *
      * Addition of a Binding.
      * 
@@ -134,6 +161,8 @@ public enum Action */ ADD(1), /** + * + * *
      * Removal of a Binding.
      * 
@@ -145,6 +174,8 @@ public enum Action ; /** + * + * *
      * Unspecified.
      * 
@@ -153,6 +184,8 @@ public enum Action */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Addition of a Binding.
      * 
@@ -161,6 +194,8 @@ public enum Action */ public static final int ADD_VALUE = 1; /** + * + * *
      * Removal of a Binding.
      * 
@@ -169,7 +204,6 @@ public enum Action */ public static final int REMOVE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -194,49 +228,49 @@ public static Action valueOf(int value) { */ public static Action forNumber(int value) { switch (value) { - case 0: return ACTION_UNSPECIFIED; - case 1: return ADD; - case 2: return REMOVE; - default: return null; + case 0: + return ACTION_UNSPECIFIED; + case 1: + return ADD; + case 2: + return REMOVE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Action> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Action findValueByNumber(int number) { - return Action.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.securitycenter.v1.IamBinding.getDescriptor().getEnumTypes().get(0); } private static final Action[] VALUES = values(); - public static Action valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Action valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -256,39 +290,53 @@ private Action(int value) { public static final int ACTION_FIELD_NUMBER = 1; private int action_; /** + * + * *
    * The action that was performed on a Binding.
    * 
* * .google.cloud.securitycenter.v1.IamBinding.Action action = 1; + * * @return The enum numeric value on the wire for action. */ - @java.lang.Override public int getActionValue() { + @java.lang.Override + public int getActionValue() { return action_; } /** + * + * *
    * The action that was performed on a Binding.
    * 
* * .google.cloud.securitycenter.v1.IamBinding.Action action = 1; + * * @return The action. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.IamBinding.Action getAction() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.IamBinding.Action getAction() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.IamBinding.Action result = com.google.cloud.securitycenter.v1.IamBinding.Action.valueOf(action_); - return result == null ? com.google.cloud.securitycenter.v1.IamBinding.Action.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.IamBinding.Action result = + com.google.cloud.securitycenter.v1.IamBinding.Action.valueOf(action_); + return result == null + ? com.google.cloud.securitycenter.v1.IamBinding.Action.UNRECOGNIZED + : result; } public static final int ROLE_FIELD_NUMBER = 2; private volatile java.lang.Object role_; /** + * + * *
    * Role that is assigned to "members".
    * For example, "roles/viewer", "roles/editor", or "roles/owner".
    * 
* * string role = 2; + * * @return The role. */ @java.lang.Override @@ -297,30 +345,30 @@ public java.lang.String getRole() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } } /** + * + * *
    * Role that is assigned to "members".
    * For example, "roles/viewer", "roles/editor", or "roles/owner".
    * 
* * string role = 2; + * * @return The bytes for role. */ @java.lang.Override - public com.google.protobuf.ByteString - getRoleBytes() { + public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); role_ = b; return b; } else { @@ -331,12 +379,15 @@ public java.lang.String getRole() { public static final int MEMBER_FIELD_NUMBER = 3; private volatile java.lang.Object member_; /** + * + * *
    * A single identity requesting access for a Cloud Platform resource,
    * e.g. "foo@google.com".
    * 
* * string member = 3; + * * @return The member. */ @java.lang.Override @@ -345,30 +396,30 @@ public java.lang.String getMember() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); member_ = s; return s; } } /** + * + * *
    * A single identity requesting access for a Cloud Platform resource,
    * e.g. "foo@google.com".
    * 
* * string member = 3; + * * @return The bytes for member. */ @java.lang.Override - public com.google.protobuf.ByteString - getMemberBytes() { + public com.google.protobuf.ByteString getMemberBytes() { java.lang.Object ref = member_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); member_ = b; return b; } else { @@ -377,6 +428,7 @@ public java.lang.String getMember() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -388,9 +440,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (action_ != com.google.cloud.securitycenter.v1.IamBinding.Action.ACTION_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (action_ + != com.google.cloud.securitycenter.v1.IamBinding.Action.ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(1, action_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { @@ -408,9 +460,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (action_ != com.google.cloud.securitycenter.v1.IamBinding.Action.ACTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, action_); + if (action_ + != com.google.cloud.securitycenter.v1.IamBinding.Action.ACTION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, action_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, role_); @@ -426,18 +478,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.IamBinding)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.IamBinding other = (com.google.cloud.securitycenter.v1.IamBinding) obj; + com.google.cloud.securitycenter.v1.IamBinding other = + (com.google.cloud.securitycenter.v1.IamBinding) obj; if (action_ != other.action_) return false; - if (!getRole() - .equals(other.getRole())) return false; - if (!getMember() - .equals(other.getMember())) return false; + if (!getRole().equals(other.getRole())) return false; + if (!getMember().equals(other.getMember())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -460,97 +511,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.IamBinding parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.IamBinding parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.IamBinding parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.IamBinding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.IamBinding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.IamBinding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.IamBinding parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.IamBinding parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.IamBinding parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.IamBinding parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.IamBinding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.IamBinding parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.IamBinding parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.IamBinding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.IamBinding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents a particular IAM binding, which captures a member's role addition,
    * removal, or state.
@@ -558,21 +616,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.IamBinding}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.IamBinding)
       com.google.cloud.securitycenter.v1.IamBindingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.IamBindingProto.internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.IamBindingProto
+          .internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.IamBindingProto.internal_static_google_cloud_securitycenter_v1_IamBinding_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.IamBindingProto
+          .internal_static_google_cloud_securitycenter_v1_IamBinding_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.IamBinding.class, com.google.cloud.securitycenter.v1.IamBinding.Builder.class);
+              com.google.cloud.securitycenter.v1.IamBinding.class,
+              com.google.cloud.securitycenter.v1.IamBinding.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.IamBinding.newBuilder()
@@ -580,16 +640,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -603,9 +662,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.IamBindingProto.internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.IamBindingProto
+          .internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor;
     }
 
     @java.lang.Override
@@ -624,7 +683,8 @@ public com.google.cloud.securitycenter.v1.IamBinding build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.IamBinding buildPartial() {
-      com.google.cloud.securitycenter.v1.IamBinding result = new com.google.cloud.securitycenter.v1.IamBinding(this);
+      com.google.cloud.securitycenter.v1.IamBinding result =
+          new com.google.cloud.securitycenter.v1.IamBinding(this);
       result.action_ = action_;
       result.role_ = role_;
       result.member_ = member_;
@@ -636,38 +696,39 @@ public com.google.cloud.securitycenter.v1.IamBinding buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.IamBinding) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.IamBinding)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.IamBinding) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -718,51 +779,67 @@ public Builder mergeFrom(
 
     private int action_ = 0;
     /**
+     *
+     *
      * 
      * The action that was performed on a Binding.
      * 
* * .google.cloud.securitycenter.v1.IamBinding.Action action = 1; + * * @return The enum numeric value on the wire for action. */ - @java.lang.Override public int getActionValue() { + @java.lang.Override + public int getActionValue() { return action_; } /** + * + * *
      * The action that was performed on a Binding.
      * 
* * .google.cloud.securitycenter.v1.IamBinding.Action action = 1; + * * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ public Builder setActionValue(int value) { - + action_ = value; onChanged(); return this; } /** + * + * *
      * The action that was performed on a Binding.
      * 
* * .google.cloud.securitycenter.v1.IamBinding.Action action = 1; + * * @return The action. */ @java.lang.Override public com.google.cloud.securitycenter.v1.IamBinding.Action getAction() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.IamBinding.Action result = com.google.cloud.securitycenter.v1.IamBinding.Action.valueOf(action_); - return result == null ? com.google.cloud.securitycenter.v1.IamBinding.Action.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.IamBinding.Action result = + com.google.cloud.securitycenter.v1.IamBinding.Action.valueOf(action_); + return result == null + ? com.google.cloud.securitycenter.v1.IamBinding.Action.UNRECOGNIZED + : result; } /** + * + * *
      * The action that was performed on a Binding.
      * 
* * .google.cloud.securitycenter.v1.IamBinding.Action action = 1; + * * @param value The action to set. * @return This builder for chaining. */ @@ -770,21 +847,24 @@ public Builder setAction(com.google.cloud.securitycenter.v1.IamBinding.Action va if (value == null) { throw new NullPointerException(); } - + action_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The action that was performed on a Binding.
      * 
* * .google.cloud.securitycenter.v1.IamBinding.Action action = 1; + * * @return This builder for chaining. */ public Builder clearAction() { - + action_ = 0; onChanged(); return this; @@ -792,19 +872,21 @@ public Builder clearAction() { private java.lang.Object role_ = ""; /** + * + * *
      * Role that is assigned to "members".
      * For example, "roles/viewer", "roles/editor", or "roles/owner".
      * 
* * string role = 2; + * * @return The role. */ public java.lang.String getRole() { java.lang.Object ref = role_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; @@ -813,21 +895,22 @@ public java.lang.String getRole() { } } /** + * + * *
      * Role that is assigned to "members".
      * For example, "roles/viewer", "roles/editor", or "roles/owner".
      * 
* * string role = 2; + * * @return The bytes for role. */ - public com.google.protobuf.ByteString - getRoleBytes() { + public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); role_ = b; return b; } else { @@ -835,57 +918,64 @@ public java.lang.String getRole() { } } /** + * + * *
      * Role that is assigned to "members".
      * For example, "roles/viewer", "roles/editor", or "roles/owner".
      * 
* * string role = 2; + * * @param value The role to set. * @return This builder for chaining. */ - public Builder setRole( - java.lang.String value) { + public Builder setRole(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + role_ = value; onChanged(); return this; } /** + * + * *
      * Role that is assigned to "members".
      * For example, "roles/viewer", "roles/editor", or "roles/owner".
      * 
* * string role = 2; + * * @return This builder for chaining. */ public Builder clearRole() { - + role_ = getDefaultInstance().getRole(); onChanged(); return this; } /** + * + * *
      * Role that is assigned to "members".
      * For example, "roles/viewer", "roles/editor", or "roles/owner".
      * 
* * string role = 2; + * * @param value The bytes for role to set. * @return This builder for chaining. */ - public Builder setRoleBytes( - com.google.protobuf.ByteString value) { + public Builder setRoleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + role_ = value; onChanged(); return this; @@ -893,19 +983,21 @@ public Builder setRoleBytes( private java.lang.Object member_ = ""; /** + * + * *
      * A single identity requesting access for a Cloud Platform resource,
      * e.g. "foo@google.com".
      * 
* * string member = 3; + * * @return The member. */ public java.lang.String getMember() { java.lang.Object ref = member_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); member_ = s; return s; @@ -914,21 +1006,22 @@ public java.lang.String getMember() { } } /** + * + * *
      * A single identity requesting access for a Cloud Platform resource,
      * e.g. "foo@google.com".
      * 
* * string member = 3; + * * @return The bytes for member. */ - public com.google.protobuf.ByteString - getMemberBytes() { + public com.google.protobuf.ByteString getMemberBytes() { java.lang.Object ref = member_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); member_ = b; return b; } else { @@ -936,64 +1029,71 @@ public java.lang.String getMember() { } } /** + * + * *
      * A single identity requesting access for a Cloud Platform resource,
      * e.g. "foo@google.com".
      * 
* * string member = 3; + * * @param value The member to set. * @return This builder for chaining. */ - public Builder setMember( - java.lang.String value) { + public Builder setMember(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + member_ = value; onChanged(); return this; } /** + * + * *
      * A single identity requesting access for a Cloud Platform resource,
      * e.g. "foo@google.com".
      * 
* * string member = 3; + * * @return This builder for chaining. */ public Builder clearMember() { - + member_ = getDefaultInstance().getMember(); onChanged(); return this; } /** + * + * *
      * A single identity requesting access for a Cloud Platform resource,
      * e.g. "foo@google.com".
      * 
* * string member = 3; + * * @param value The bytes for member to set. * @return This builder for chaining. */ - public Builder setMemberBytes( - com.google.protobuf.ByteString value) { + public Builder setMemberBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + member_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1003,12 +1103,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.IamBinding) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.IamBinding) private static final com.google.cloud.securitycenter.v1.IamBinding DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.IamBinding(); } @@ -1017,16 +1117,16 @@ public static com.google.cloud.securitycenter.v1.IamBinding getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IamBinding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IamBinding(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IamBinding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IamBinding(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1041,6 +1141,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.IamBinding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingOrBuilder.java index 5a36e59aa..c5fed6b31 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingOrBuilder.java @@ -1,72 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/iam_binding.proto package com.google.cloud.securitycenter.v1; -public interface IamBindingOrBuilder extends +public interface IamBindingOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.IamBinding) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The action that was performed on a Binding.
    * 
* * .google.cloud.securitycenter.v1.IamBinding.Action action = 1; + * * @return The enum numeric value on the wire for action. */ int getActionValue(); /** + * + * *
    * The action that was performed on a Binding.
    * 
* * .google.cloud.securitycenter.v1.IamBinding.Action action = 1; + * * @return The action. */ com.google.cloud.securitycenter.v1.IamBinding.Action getAction(); /** + * + * *
    * Role that is assigned to "members".
    * For example, "roles/viewer", "roles/editor", or "roles/owner".
    * 
* * string role = 2; + * * @return The role. */ java.lang.String getRole(); /** + * + * *
    * Role that is assigned to "members".
    * For example, "roles/viewer", "roles/editor", or "roles/owner".
    * 
* * string role = 2; + * * @return The bytes for role. */ - com.google.protobuf.ByteString - getRoleBytes(); + com.google.protobuf.ByteString getRoleBytes(); /** + * + * *
    * A single identity requesting access for a Cloud Platform resource,
    * e.g. "foo@google.com".
    * 
* * string member = 3; + * * @return The member. */ java.lang.String getMember(); /** + * + * *
    * A single identity requesting access for a Cloud Platform resource,
    * e.g. "foo@google.com".
    * 
* * string member = 3; + * * @return The bytes for member. */ - com.google.protobuf.ByteString - getMemberBytes(); + com.google.protobuf.ByteString getMemberBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingProto.java new file mode 100644 index 000000000..b37cd930a --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IamBindingProto.java @@ -0,0 +1,71 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/iam_binding.proto + +package com.google.cloud.securitycenter.v1; + +public final class IamBindingProto { + private IamBindingProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_IamBinding_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/securitycenter/v1/iam_bin" + + "ding.proto\022\036google.cloud.securitycenter." + + "v1\"\244\001\n\nIamBinding\022A\n\006action\030\001 \001(\01621.goog" + + "le.cloud.securitycenter.v1.IamBinding.Ac" + + "tion\022\014\n\004role\030\002 \001(\t\022\016\n\006member\030\003 \001(\t\"5\n\006Ac" + + "tion\022\026\n\022ACTION_UNSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n" + + "\006REMOVE\020\002B\353\001\n\"com.google.cloud.securityc" + + "enter.v1B\017IamBindingProtoP\001ZLgoogle.gola" + + "ng.org/genproto/googleapis/cloud/securit" + + "ycenter/v1;securitycenter\252\002\036Google.Cloud" + + ".SecurityCenter.V1\312\002\036Google\\Cloud\\Securi" + + "tyCenter\\V1\352\002!Google::Cloud::SecurityCen" + + "ter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_IamBinding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_IamBinding_descriptor, + new java.lang.String[] { + "Action", "Role", "Member", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Indicator.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Indicator.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Indicator.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Indicator.java index 227276144..3a70f24ee 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Indicator.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Indicator.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/indicator.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Represents what's commonly known as an Indicator of compromise (IoC) in
  * computer forensics. This is an artifact observed on a network or in an
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.Indicator}
  */
-public final class Indicator extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Indicator extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Indicator)
     IndicatorOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Indicator.newBuilder() to construct.
   private Indicator(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Indicator() {
     ipAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     domains_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -29,16 +47,15 @@ private Indicator() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Indicator();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Indicator(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,31 +75,33 @@ private Indicator(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              ipAddresses_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                ipAddresses_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              ipAddresses_.add(s);
+              break;
             }
-            ipAddresses_.add(s);
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              domains_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                domains_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              domains_.add(s);
+              break;
             }
-            domains_.add(s);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -90,8 +109,7 @@ private Indicator(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         ipAddresses_ = ipAddresses_.getUnmodifiableView();
@@ -103,50 +121,61 @@ private Indicator(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1.IndicatorProto.internal_static_google_cloud_securitycenter_v1_Indicator_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1.IndicatorProto
+        .internal_static_google_cloud_securitycenter_v1_Indicator_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.IndicatorProto.internal_static_google_cloud_securitycenter_v1_Indicator_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.IndicatorProto
+        .internal_static_google_cloud_securitycenter_v1_Indicator_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.Indicator.class, com.google.cloud.securitycenter.v1.Indicator.Builder.class);
+            com.google.cloud.securitycenter.v1.Indicator.class,
+            com.google.cloud.securitycenter.v1.Indicator.Builder.class);
   }
 
   public static final int IP_ADDRESSES_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList ipAddresses_;
   /**
+   *
+   *
    * 
    * List of ip addresses associated to the Finding.
    * 
* * repeated string ip_addresses = 1; + * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList - getIpAddressesList() { + public com.google.protobuf.ProtocolStringList getIpAddressesList() { return ipAddresses_; } /** + * + * *
    * List of ip addresses associated to the Finding.
    * 
* * repeated string ip_addresses = 1; + * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** + * + * *
    * List of ip addresses associated to the Finding.
    * 
* * repeated string ip_addresses = 1; + * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -154,50 +183,60 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** + * + * *
    * List of ip addresses associated to the Finding.
    * 
* * repeated string ip_addresses = 1; + * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString - getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } public static final int DOMAINS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList domains_; /** + * + * *
    * List of domains associated to the Finding.
    * 
* * repeated string domains = 2; + * * @return A list containing the domains. */ - public com.google.protobuf.ProtocolStringList - getDomainsList() { + public com.google.protobuf.ProtocolStringList getDomainsList() { return domains_; } /** + * + * *
    * List of domains associated to the Finding.
    * 
* * repeated string domains = 2; + * * @return The count of domains. */ public int getDomainsCount() { return domains_.size(); } /** + * + * *
    * List of domains associated to the Finding.
    * 
* * repeated string domains = 2; + * * @param index The index of the element to return. * @return The domains at the given index. */ @@ -205,20 +244,23 @@ public java.lang.String getDomains(int index) { return domains_.get(index); } /** + * + * *
    * List of domains associated to the Finding.
    * 
* * repeated string domains = 2; + * * @param index The index of the value to return. * @return The bytes of the domains at the given index. */ - public com.google.protobuf.ByteString - getDomainsBytes(int index) { + public com.google.protobuf.ByteString getDomainsBytes(int index) { return domains_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,8 +272,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < ipAddresses_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipAddresses_.getRaw(i)); } @@ -271,17 +312,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Indicator)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Indicator other = (com.google.cloud.securitycenter.v1.Indicator) obj; + com.google.cloud.securitycenter.v1.Indicator other = + (com.google.cloud.securitycenter.v1.Indicator) obj; - if (!getIpAddressesList() - .equals(other.getIpAddressesList())) return false; - if (!getDomainsList() - .equals(other.getDomainsList())) return false; + if (!getIpAddressesList().equals(other.getIpAddressesList())) return false; + if (!getDomainsList().equals(other.getDomainsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -306,97 +346,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Indicator parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Indicator parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Indicator parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Indicator parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Indicator parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Indicator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Indicator parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Indicator parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Indicator parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Indicator parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.Indicator parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Indicator parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Indicator parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Indicator parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.Indicator prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents what's commonly known as an Indicator of compromise (IoC) in
    * computer forensics. This is an artifact observed on a network or in an
@@ -406,21 +453,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.Indicator}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Indicator)
       com.google.cloud.securitycenter.v1.IndicatorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.IndicatorProto.internal_static_google_cloud_securitycenter_v1_Indicator_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.IndicatorProto
+          .internal_static_google_cloud_securitycenter_v1_Indicator_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.IndicatorProto.internal_static_google_cloud_securitycenter_v1_Indicator_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.IndicatorProto
+          .internal_static_google_cloud_securitycenter_v1_Indicator_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.Indicator.class, com.google.cloud.securitycenter.v1.Indicator.Builder.class);
+              com.google.cloud.securitycenter.v1.Indicator.class,
+              com.google.cloud.securitycenter.v1.Indicator.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.Indicator.newBuilder()
@@ -428,16 +477,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -449,9 +497,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.IndicatorProto.internal_static_google_cloud_securitycenter_v1_Indicator_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.IndicatorProto
+          .internal_static_google_cloud_securitycenter_v1_Indicator_descriptor;
     }
 
     @java.lang.Override
@@ -470,7 +518,8 @@ public com.google.cloud.securitycenter.v1.Indicator build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.Indicator buildPartial() {
-      com.google.cloud.securitycenter.v1.Indicator result = new com.google.cloud.securitycenter.v1.Indicator(this);
+      com.google.cloud.securitycenter.v1.Indicator result =
+          new com.google.cloud.securitycenter.v1.Indicator(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         ipAddresses_ = ipAddresses_.getUnmodifiableView();
@@ -490,38 +539,39 @@ public com.google.cloud.securitycenter.v1.Indicator buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.Indicator) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.Indicator)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.Indicator) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -578,44 +628,55 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList ipAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList ipAddresses_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensureIpAddressesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         ipAddresses_ = new com.google.protobuf.LazyStringArrayList(ipAddresses_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * List of ip addresses associated to the Finding.
      * 
* * repeated string ip_addresses = 1; + * * @return A list containing the ipAddresses. */ - public com.google.protobuf.ProtocolStringList - getIpAddressesList() { + public com.google.protobuf.ProtocolStringList getIpAddressesList() { return ipAddresses_.getUnmodifiableView(); } /** + * + * *
      * List of ip addresses associated to the Finding.
      * 
* * repeated string ip_addresses = 1; + * * @return The count of ipAddresses. */ public int getIpAddressesCount() { return ipAddresses_.size(); } /** + * + * *
      * List of ip addresses associated to the Finding.
      * 
* * repeated string ip_addresses = 1; + * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ @@ -623,80 +684,90 @@ public java.lang.String getIpAddresses(int index) { return ipAddresses_.get(index); } /** + * + * *
      * List of ip addresses associated to the Finding.
      * 
* * repeated string ip_addresses = 1; + * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - public com.google.protobuf.ByteString - getIpAddressesBytes(int index) { + public com.google.protobuf.ByteString getIpAddressesBytes(int index) { return ipAddresses_.getByteString(index); } /** + * + * *
      * List of ip addresses associated to the Finding.
      * 
* * repeated string ip_addresses = 1; + * * @param index The index to set the value at. * @param value The ipAddresses to set. * @return This builder for chaining. */ - public Builder setIpAddresses( - int index, java.lang.String value) { + public Builder setIpAddresses(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of ip addresses associated to the Finding.
      * 
* * repeated string ip_addresses = 1; + * * @param value The ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddresses( - java.lang.String value) { + public Builder addIpAddresses(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureIpAddressesIsMutable(); + throw new NullPointerException(); + } + ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); return this; } /** + * + * *
      * List of ip addresses associated to the Finding.
      * 
* * repeated string ip_addresses = 1; + * * @param values The ipAddresses to add. * @return This builder for chaining. */ - public Builder addAllIpAddresses( - java.lang.Iterable values) { + public Builder addAllIpAddresses(java.lang.Iterable values) { ensureIpAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ipAddresses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipAddresses_); onChanged(); return this; } /** + * + * *
      * List of ip addresses associated to the Finding.
      * 
* * repeated string ip_addresses = 1; + * * @return This builder for chaining. */ public Builder clearIpAddresses() { @@ -706,62 +777,74 @@ public Builder clearIpAddresses() { return this; } /** + * + * *
      * List of ip addresses associated to the Finding.
      * 
* * repeated string ip_addresses = 1; + * * @param value The bytes of the ipAddresses to add. * @return This builder for chaining. */ - public Builder addIpAddressesBytes( - com.google.protobuf.ByteString value) { + public Builder addIpAddressesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureIpAddressesIsMutable(); ipAddresses_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList domains_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDomainsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { domains_ = new com.google.protobuf.LazyStringArrayList(domains_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * List of domains associated to the Finding.
      * 
* * repeated string domains = 2; + * * @return A list containing the domains. */ - public com.google.protobuf.ProtocolStringList - getDomainsList() { + public com.google.protobuf.ProtocolStringList getDomainsList() { return domains_.getUnmodifiableView(); } /** + * + * *
      * List of domains associated to the Finding.
      * 
* * repeated string domains = 2; + * * @return The count of domains. */ public int getDomainsCount() { return domains_.size(); } /** + * + * *
      * List of domains associated to the Finding.
      * 
* * repeated string domains = 2; + * * @param index The index of the element to return. * @return The domains at the given index. */ @@ -769,80 +852,90 @@ public java.lang.String getDomains(int index) { return domains_.get(index); } /** + * + * *
      * List of domains associated to the Finding.
      * 
* * repeated string domains = 2; + * * @param index The index of the value to return. * @return The bytes of the domains at the given index. */ - public com.google.protobuf.ByteString - getDomainsBytes(int index) { + public com.google.protobuf.ByteString getDomainsBytes(int index) { return domains_.getByteString(index); } /** + * + * *
      * List of domains associated to the Finding.
      * 
* * repeated string domains = 2; + * * @param index The index to set the value at. * @param value The domains to set. * @return This builder for chaining. */ - public Builder setDomains( - int index, java.lang.String value) { + public Builder setDomains(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDomainsIsMutable(); + throw new NullPointerException(); + } + ensureDomainsIsMutable(); domains_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of domains associated to the Finding.
      * 
* * repeated string domains = 2; + * * @param value The domains to add. * @return This builder for chaining. */ - public Builder addDomains( - java.lang.String value) { + public Builder addDomains(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDomainsIsMutable(); + throw new NullPointerException(); + } + ensureDomainsIsMutable(); domains_.add(value); onChanged(); return this; } /** + * + * *
      * List of domains associated to the Finding.
      * 
* * repeated string domains = 2; + * * @param values The domains to add. * @return This builder for chaining. */ - public Builder addAllDomains( - java.lang.Iterable values) { + public Builder addAllDomains(java.lang.Iterable values) { ensureDomainsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, domains_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, domains_); onChanged(); return this; } /** + * + * *
      * List of domains associated to the Finding.
      * 
* * repeated string domains = 2; + * * @return This builder for chaining. */ public Builder clearDomains() { @@ -852,28 +945,30 @@ public Builder clearDomains() { return this; } /** + * + * *
      * List of domains associated to the Finding.
      * 
* * repeated string domains = 2; + * * @param value The bytes of the domains to add. * @return This builder for chaining. */ - public Builder addDomainsBytes( - com.google.protobuf.ByteString value) { + public Builder addDomainsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDomainsIsMutable(); domains_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -883,12 +978,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Indicator) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Indicator) private static final com.google.cloud.securitycenter.v1.Indicator DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Indicator(); } @@ -897,16 +992,16 @@ public static com.google.cloud.securitycenter.v1.Indicator getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Indicator parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Indicator(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Indicator parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Indicator(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -921,6 +1016,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Indicator getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorOrBuilder.java index 487c02b1e..651b1f369 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorOrBuilder.java @@ -1,91 +1,127 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/indicator.proto package com.google.cloud.securitycenter.v1; -public interface IndicatorOrBuilder extends +public interface IndicatorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Indicator) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of ip addresses associated to the Finding.
    * 
* * repeated string ip_addresses = 1; + * * @return A list containing the ipAddresses. */ - java.util.List - getIpAddressesList(); + java.util.List getIpAddressesList(); /** + * + * *
    * List of ip addresses associated to the Finding.
    * 
* * repeated string ip_addresses = 1; + * * @return The count of ipAddresses. */ int getIpAddressesCount(); /** + * + * *
    * List of ip addresses associated to the Finding.
    * 
* * repeated string ip_addresses = 1; + * * @param index The index of the element to return. * @return The ipAddresses at the given index. */ java.lang.String getIpAddresses(int index); /** + * + * *
    * List of ip addresses associated to the Finding.
    * 
* * repeated string ip_addresses = 1; + * * @param index The index of the value to return. * @return The bytes of the ipAddresses at the given index. */ - com.google.protobuf.ByteString - getIpAddressesBytes(int index); + com.google.protobuf.ByteString getIpAddressesBytes(int index); /** + * + * *
    * List of domains associated to the Finding.
    * 
* * repeated string domains = 2; + * * @return A list containing the domains. */ - java.util.List - getDomainsList(); + java.util.List getDomainsList(); /** + * + * *
    * List of domains associated to the Finding.
    * 
* * repeated string domains = 2; + * * @return The count of domains. */ int getDomainsCount(); /** + * + * *
    * List of domains associated to the Finding.
    * 
* * repeated string domains = 2; + * * @param index The index of the element to return. * @return The domains at the given index. */ java.lang.String getDomains(int index); /** + * + * *
    * List of domains associated to the Finding.
    * 
* * repeated string domains = 2; + * * @param index The index of the value to return. * @return The bytes of the domains at the given index. */ - com.google.protobuf.ByteString - getDomainsBytes(int index); + com.google.protobuf.ByteString getDomainsBytes(int index); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorProto.java new file mode 100644 index 000000000..a06405f60 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorProto.java @@ -0,0 +1,68 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/indicator.proto + +package com.google.cloud.securitycenter.v1; + +public final class IndicatorProto { + private IndicatorProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Indicator_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Indicator_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n.google/cloud/securitycenter/v1/indicat" + + "or.proto\022\036google.cloud.securitycenter.v1" + + "\"2\n\tIndicator\022\024\n\014ip_addresses\030\001 \003(\t\022\017\n\007d" + + "omains\030\002 \003(\tB\352\001\n\"com.google.cloud.securi" + + "tycenter.v1B\016IndicatorProtoP\001ZLgoogle.go" + + "lang.org/genproto/googleapis/cloud/secur" + + "itycenter/v1;securitycenter\252\002\036Google.Clo" + + "ud.SecurityCenter.V1\312\002\036Google\\Cloud\\Secu" + + "rityCenter\\V1\352\002!Google::Cloud::SecurityC" + + "enter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_securitycenter_v1_Indicator_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Indicator_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Indicator_descriptor, + new java.lang.String[] { + "IpAddresses", "Domains", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java similarity index 84% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java index 7058a8179..aff15e2b8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for listing assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListAssetsRequest} */ -public final class ListAssetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAssetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListAssetsRequest) ListAssetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAssetsRequest.newBuilder() to construct. private ListAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAssetsRequest() { parent_ = ""; filter_ = ""; @@ -28,16 +46,15 @@ private ListAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListAssetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,81 +73,91 @@ private ListAssetsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); + orderBy_ = s; + break; } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 42: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (compareDuration_ != null) { - subBuilder = compareDuration_.toBuilder(); + case 42: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); + } + compareDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); + } + + break; } - compareDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compareDuration_); - compareDuration_ = subBuilder.buildPartial(); + case 58: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); + } + fieldMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); + } + + break; } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 58: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (fieldMask_ != null) { - subBuilder = fieldMask_.toBuilder(); + pageToken_ = s; + break; } - fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fieldMask_); - fieldMask_ = subBuilder.buildPartial(); + case 72: + { + pageSize_ = input.readInt32(); + break; } - - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 72: { - - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -138,36 +165,43 @@ private ListAssetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListAssetsRequest.class, com.google.cloud.securitycenter.v1.ListAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1.ListAssetsRequest.class, + com.google.cloud.securitycenter.v1.ListAssetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -176,31 +210,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -211,6 +247,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -262,6 +300,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -270,14 +309,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -329,16 +369,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -349,6 +388,8 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 3; private volatile java.lang.Object orderBy_; /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -373,6 +414,7 @@ public java.lang.String getFilter() {
    * 
* * string order_by = 3; + * * @return The orderBy. */ @java.lang.Override @@ -381,14 +423,15 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -413,16 +456,15 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 3; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -433,6 +475,8 @@ public java.lang.String getOrderBy() { public static final int READ_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp readTime_; /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -441,6 +485,7 @@ public java.lang.String getOrderBy() {
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -448,6 +493,8 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -456,6 +503,7 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ @java.lang.Override @@ -463,6 +511,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -480,6 +530,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int COMPARE_DURATION_FIELD_NUMBER = 5;
   private com.google.protobuf.Duration compareDuration_;
   /**
+   *
+   *
    * 
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -504,6 +556,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ @java.lang.Override @@ -511,6 +564,8 @@ public boolean hasCompareDuration() { return compareDuration_ != null; } /** + * + * *
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -535,13 +590,18 @@ public boolean hasCompareDuration() {
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { - return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; } /** + * + * *
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -575,6 +635,8 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
   public static final int FIELD_MASK_FIELD_NUMBER = 7;
   private com.google.protobuf.FieldMask fieldMask_;
   /**
+   *
+   *
    * 
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -582,6 +644,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
    * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -589,6 +652,8 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** + * + * *
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -596,6 +661,7 @@ public boolean hasFieldMask() {
    * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return The fieldMask. */ @java.lang.Override @@ -603,6 +669,8 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** + * + * *
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -619,6 +687,8 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
   public static final int PAGE_TOKEN_FIELD_NUMBER = 8;
   private volatile java.lang.Object pageToken_;
   /**
+   *
+   *
    * 
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -626,6 +696,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
    * 
* * string page_token = 8; + * * @return The pageToken. */ @java.lang.Override @@ -634,14 +705,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -649,16 +721,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 8; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -669,12 +740,15 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 9; private int pageSize_; /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 9; + * * @return The pageSize. */ @java.lang.Override @@ -683,6 +757,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -694,8 +769,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -739,23 +813,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, orderBy_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); } if (compareDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCompareDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getFieldMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFieldMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -765,38 +835,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListAssetsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListAssetsRequest other = (com.google.cloud.securitycenter.v1.ListAssetsRequest) obj; + com.google.cloud.securitycenter.v1.ListAssetsRequest other = + (com.google.cloud.securitycenter.v1.ListAssetsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - if (!getCompareDuration() - .equals(other.getCompareDuration())) return false; + if (!getCompareDuration().equals(other.getCompareDuration())) return false; } if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - if (!getFieldMask() - .equals(other.getFieldMask())) return false; + if (!getFieldMask().equals(other.getFieldMask())) return false; } - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -836,117 +899,126 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for listing assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListAssetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListAssetsRequest) com.google.cloud.securitycenter.v1.ListAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListAssetsRequest.class, com.google.cloud.securitycenter.v1.ListAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1.ListAssetsRequest.class, + com.google.cloud.securitycenter.v1.ListAssetsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ListAssetsRequest.newBuilder() @@ -954,16 +1026,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -999,9 +1070,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor; } @java.lang.Override @@ -1020,7 +1091,8 @@ public com.google.cloud.securitycenter.v1.ListAssetsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.ListAssetsRequest buildPartial() { - com.google.cloud.securitycenter.v1.ListAssetsRequest result = new com.google.cloud.securitycenter.v1.ListAssetsRequest(this); + com.google.cloud.securitycenter.v1.ListAssetsRequest result = + new com.google.cloud.securitycenter.v1.ListAssetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.orderBy_ = orderBy_; @@ -1049,38 +1121,39 @@ public com.google.cloud.securitycenter.v1.ListAssetsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ListAssetsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListAssetsRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.ListAssetsRequest) other); } else { super.mergeFrom(other); return this; @@ -1088,7 +1161,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListAssetsRequest other) { - if (other == com.google.cloud.securitycenter.v1.ListAssetsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.ListAssetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1136,7 +1210,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.ListAssetsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.ListAssetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1148,20 +1223,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1170,22 +1249,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1193,60 +1275,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1254,6 +1349,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1305,13 +1402,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1320,6 +1417,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1371,15 +1470,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1387,6 +1485,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1438,20 +1538,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1503,15 +1605,18 @@ public Builder setFilter(
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1563,16 +1668,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1580,6 +1685,8 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1604,13 +1711,13 @@ public Builder setFilterBytes(
      * 
* * string order_by = 3; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1619,6 +1726,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1643,15 +1752,14 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1659,6 +1767,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1683,20 +1793,22 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1721,15 +1833,18 @@ public Builder setOrderBy(
      * 
* * string order_by = 3; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1754,16 +1869,16 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 3; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; @@ -1771,8 +1886,13 @@ public Builder setOrderByBytes( private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1781,12 +1901,15 @@ public Builder setOrderByBytes(
      * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1795,6 +1918,7 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1805,6 +1929,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1828,6 +1954,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1837,8 +1965,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 4;
      */
-    public Builder setReadTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1849,6 +1976,8 @@ public Builder setReadTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1862,7 +1991,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -1874,6 +2003,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1895,6 +2026,8 @@ public Builder clearReadTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1905,11 +2038,13 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-      
+
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1923,11 +2058,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1938,14 +2074,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(),
-                getParentForChildren(),
-                isClean());
+        readTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(), getParentForChildren(), isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -1953,8 +2092,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private com.google.protobuf.Duration compareDuration_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> compareDurationBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        compareDurationBuilder_;
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -1979,12 +2123,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; } /** + * + * *
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2009,16 +2156,21 @@ public boolean hasCompareDuration() {
      * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { - return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; } else { return compareDurationBuilder_.getMessage(); } } /** + * + * *
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2058,6 +2210,8 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2083,8 +2237,7 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration compare_duration = 5;
      */
-    public Builder setCompareDuration(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) {
       if (compareDurationBuilder_ == null) {
         compareDuration_ = builderForValue.build();
         onChanged();
@@ -2095,6 +2248,8 @@ public Builder setCompareDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2124,7 +2279,9 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       if (compareDurationBuilder_ == null) {
         if (compareDuration_ != null) {
           compareDuration_ =
-            com.google.protobuf.Duration.newBuilder(compareDuration_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(compareDuration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           compareDuration_ = value;
         }
@@ -2136,6 +2293,8 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2173,6 +2332,8 @@ public Builder clearCompareDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2199,11 +2360,13 @@ public Builder clearCompareDuration() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
-      
+
       onChanged();
       return getCompareDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2233,11 +2396,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
       if (compareDurationBuilder_ != null) {
         return compareDurationBuilder_.getMessageOrBuilder();
       } else {
-        return compareDuration_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : compareDuration_;
+        return compareDuration_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : compareDuration_;
       }
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2264,14 +2430,17 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getCompareDurationFieldBuilder() {
       if (compareDurationBuilder_ == null) {
-        compareDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getCompareDuration(),
-                getParentForChildren(),
-                isClean());
+        compareDurationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getCompareDuration(), getParentForChildren(), isClean());
         compareDuration_ = null;
       }
       return compareDurationBuilder_;
@@ -2279,8 +2448,13 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
 
     private com.google.protobuf.FieldMask fieldMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> fieldMaskBuilder_;
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
+        fieldMaskBuilder_;
     /**
+     *
+     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2288,12 +2462,15 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** + * + * *
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2301,6 +2478,7 @@ public boolean hasFieldMask() {
      * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -2311,6 +2489,8 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** + * + * *
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2333,6 +2513,8 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2341,8 +2523,7 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask field_mask = 7;
      */
-    public Builder setFieldMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (fieldMaskBuilder_ == null) {
         fieldMask_ = builderForValue.build();
         onChanged();
@@ -2353,6 +2534,8 @@ public Builder setFieldMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2365,7 +2548,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       if (fieldMaskBuilder_ == null) {
         if (fieldMask_ != null) {
           fieldMask_ =
-            com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
         } else {
           fieldMask_ = value;
         }
@@ -2377,6 +2560,8 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2397,6 +2582,8 @@ public Builder clearFieldMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2406,11 +2593,13 @@ public Builder clearFieldMask() {
      * .google.protobuf.FieldMask field_mask = 7;
      */
     public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() {
-      
+
       onChanged();
       return getFieldMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2423,11 +2612,12 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
       if (fieldMaskBuilder_ != null) {
         return fieldMaskBuilder_.getMessageOrBuilder();
       } else {
-        return fieldMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
+        return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
       }
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2437,14 +2627,17 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * .google.protobuf.FieldMask field_mask = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getFieldMaskFieldBuilder() {
       if (fieldMaskBuilder_ == null) {
-        fieldMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getFieldMask(),
-                getParentForChildren(),
-                isClean());
+        fieldMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getFieldMask(), getParentForChildren(), isClean());
         fieldMask_ = null;
       }
       return fieldMaskBuilder_;
@@ -2452,6 +2645,8 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
 
     private java.lang.Object pageToken_ = "";
     /**
+     *
+     *
      * 
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2459,13 +2654,13 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * 
* * string page_token = 8; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2474,6 +2669,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2481,15 +2678,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 8; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2497,6 +2693,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2504,20 +2702,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 8; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2525,15 +2725,18 @@ public Builder setPageToken(
      * 
* * string page_token = 8; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2541,29 +2744,32 @@ public Builder clearPageToken() {
      * 
* * string page_token = 8; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; + * * @return The pageSize. */ @java.lang.Override @@ -2571,39 +2777,45 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2613,12 +2825,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListAssetsRequest) private static final com.google.cloud.securitycenter.v1.ListAssetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListAssetsRequest(); } @@ -2627,16 +2839,16 @@ public static com.google.cloud.securitycenter.v1.ListAssetsRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2651,6 +2863,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.ListAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java similarity index 92% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java index 3558b5333..94682a9d8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListAssetsRequestOrBuilder extends +public interface ListAssetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListAssetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -83,10 +110,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -138,12 +168,14 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -168,10 +200,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * string order_by = 3; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -196,12 +231,14 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * string order_by = 3; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -210,10 +247,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -222,10 +262,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -238,6 +281,8 @@ public interface ListAssetsRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -262,10 +307,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** + * + * *
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -290,10 +338,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** + * + * *
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -322,6 +373,8 @@ public interface ListAssetsRequestOrBuilder extends
   com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
 
   /**
+   *
+   *
    * 
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -329,10 +382,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** + * + * *
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -340,10 +396,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** + * + * *
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -355,6 +414,8 @@ public interface ListAssetsRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -362,10 +423,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * string page_token = 8; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -373,18 +437,21 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * string page_token = 8; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 9; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java index 74e62eb61..a5f7d3cbd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Response message for listing assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListAssetsResponse} */ -public final class ListAssetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAssetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListAssetsResponse) ListAssetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAssetsResponse.newBuilder() to construct. private ListAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAssetsResponse() { listAssetsResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListAssetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAssetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListAssetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,46 +72,55 @@ private ListAssetsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - listAssetsResults_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - listAssetsResults_.add( - input.readMessage(com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + listAssetsResults_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult>(); + mutable_bitField0_ |= 0x00000001; + } + listAssetsResults_.add( + input.readMessage( + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + .parser(), + extensionRegistry)); + break; } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 32: { + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - totalSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + case 32: + { + totalSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,8 +128,7 @@ private ListAssetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { listAssetsResults_ = java.util.Collections.unmodifiableList(listAssetsResults_); @@ -112,42 +137,54 @@ private ListAssetsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListAssetsResponse.class, com.google.cloud.securitycenter.v1.ListAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListAssetsResponse.class, + com.google.cloud.securitycenter.v1.ListAssetsResponse.Builder.class); } - public interface ListAssetsResultOrBuilder extends + public interface ListAssetsResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1.Asset asset = 1; + * * @return Whether the asset field is set. */ boolean hasAsset(); /** + * + * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1.Asset asset = 1; + * * @return The asset. */ com.google.cloud.securitycenter.v1.Asset getAsset(); /** + * + * *
      * Asset matching the search request.
      * 
@@ -157,56 +194,69 @@ public interface ListAssetsResultOrBuilder extends com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder(); /** + * + * *
      * State change of the asset between the points in time.
      * 
* - * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * * @return The enum numeric value on the wire for stateChange. */ int getStateChangeValue(); /** + * + * *
      * State change of the asset between the points in time.
      * 
* - * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * * @return The stateChange. */ - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange getStateChange(); + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange + getStateChange(); } /** + * + * *
    * Result containing the Asset and its State.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult} */ - public static final class ListAssetsResult extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ListAssetsResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) ListAssetsResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAssetsResult.newBuilder() to construct. private ListAssetsResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAssetsResult() { stateChange_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAssetsResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListAssetsResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -225,32 +275,36 @@ private ListAssetsResult( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1.Asset.Builder subBuilder = null; - if (asset_ != null) { - subBuilder = asset_.toBuilder(); - } - asset_ = input.readMessage(com.google.cloud.securitycenter.v1.Asset.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(asset_); - asset_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.securitycenter.v1.Asset.Builder subBuilder = null; + if (asset_ != null) { + subBuilder = asset_.toBuilder(); + } + asset_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Asset.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(asset_); + asset_ = subBuilder.buildPartial(); + } + + break; } + case 16: + { + int rawValue = input.readEnum(); - break; - } - case 16: { - int rawValue = input.readEnum(); - - stateChange_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + stateChange_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -258,27 +312,31 @@ private ListAssetsResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.class, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder.class); + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.class, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder.class); } /** + * + * *
      * The change in state of the asset.
      * When querying across two points in time this describes
@@ -287,11 +345,13 @@ private ListAssetsResult(
      * will be: UNUSED
      * 
* - * Protobuf enum {@code google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange} + * Protobuf enum {@code + * google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange} */ - public enum StateChange - implements com.google.protobuf.ProtocolMessageEnum { + public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * State change is unused, this is the canonical default for this enum.
        * 
@@ -300,6 +360,8 @@ public enum StateChange */ UNUSED(0), /** + * + * *
        * Asset was added between the points in time.
        * 
@@ -308,6 +370,8 @@ public enum StateChange */ ADDED(1), /** + * + * *
        * Asset was removed between the points in time.
        * 
@@ -316,6 +380,8 @@ public enum StateChange */ REMOVED(2), /** + * + * *
        * Asset was present at both point(s) in time.
        * 
@@ -327,6 +393,8 @@ public enum StateChange ; /** + * + * *
        * State change is unused, this is the canonical default for this enum.
        * 
@@ -335,6 +403,8 @@ public enum StateChange */ public static final int UNUSED_VALUE = 0; /** + * + * *
        * Asset was added between the points in time.
        * 
@@ -343,6 +413,8 @@ public enum StateChange */ public static final int ADDED_VALUE = 1; /** + * + * *
        * Asset was removed between the points in time.
        * 
@@ -351,6 +423,8 @@ public enum StateChange */ public static final int REMOVED_VALUE = 2; /** + * + * *
        * Asset was present at both point(s) in time.
        * 
@@ -359,7 +433,6 @@ public enum StateChange */ public static final int ACTIVE_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -384,50 +457,54 @@ public static StateChange valueOf(int value) { */ public static StateChange forNumber(int value) { switch (value) { - case 0: return UNUSED; - case 1: return ADDED; - case 2: return REMOVED; - case 3: return ACTIVE; - default: return null; + case 0: + return UNUSED; + case 1: + return ADDED; + case 2: + return REMOVED; + case 3: + return ACTIVE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - StateChange> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StateChange findValueByNumber(int number) { - return StateChange.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StateChange findValueByNumber(int number) { + return StateChange.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + .getDescriptor() + .getEnumTypes() + .get(0); } private static final StateChange[] VALUES = values(); - public static StateChange valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static StateChange valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -447,11 +524,14 @@ private StateChange(int value) { public static final int ASSET_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.Asset asset_; /** + * + * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1.Asset asset = 1; + * * @return Whether the asset field is set. */ @java.lang.Override @@ -459,18 +539,25 @@ public boolean hasAsset() { return asset_ != null; } /** + * + * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1.Asset asset = 1; + * * @return The asset. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Asset getAsset() { - return asset_ == null ? com.google.cloud.securitycenter.v1.Asset.getDefaultInstance() : asset_; + return asset_ == null + ? com.google.cloud.securitycenter.v1.Asset.getDefaultInstance() + : asset_; } /** + * + * *
      * Asset matching the search request.
      * 
@@ -485,31 +572,50 @@ public com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder() { public static final int STATE_CHANGE_FIELD_NUMBER = 2; private int stateChange_; /** + * + * *
      * State change of the asset between the points in time.
      * 
* - * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * * @return The enum numeric value on the wire for stateChange. */ - @java.lang.Override public int getStateChangeValue() { + @java.lang.Override + public int getStateChangeValue() { return stateChange_; } /** + * + * *
      * State change of the asset between the points in time.
      * 
* - * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * * @return The stateChange. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange getStateChange() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange + getStateChange() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange result = com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange.valueOf(stateChange_); - return result == null ? com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange result = + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange + .valueOf(stateChange_); + return result == null + ? com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange + .UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -521,12 +627,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (asset_ != null) { output.writeMessage(1, getAsset()); } - if (stateChange_ != com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange.UNUSED.getNumber()) { + if (stateChange_ + != com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange + .UNUSED + .getNumber()) { output.writeEnum(2, stateChange_); } unknownFields.writeTo(output); @@ -539,12 +647,13 @@ public int getSerializedSize() { size = 0; if (asset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAsset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAsset()); } - if (stateChange_ != com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange.UNUSED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, stateChange_); + if (stateChange_ + != com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange + .UNUSED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, stateChange_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -554,17 +663,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult)) { + if (!(obj + instanceof com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult other = (com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) obj; + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult other = + (com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) obj; if (hasAsset() != other.hasAsset()) return false; if (hasAsset()) { - if (!getAsset() - .equals(other.getAsset())) return false; + if (!getAsset().equals(other.getAsset())) return false; } if (stateChange_ != other.stateChange_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -590,87 +700,95 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -680,44 +798,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Result containing the Asset and its State.
      * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.class, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder.class); + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.class, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder + .class); } - // Construct using com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -733,19 +857,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.getDefaultInstance(); + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult build() { - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult result = buildPartial(); + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -754,7 +881,8 @@ public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult bu @java.lang.Override public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult buildPartial() { - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult result = new com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult(this); + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult result = + new com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult(this); if (assetBuilder_ == null) { result.asset_ = asset_; } else { @@ -769,46 +897,54 @@ public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult)other); + if (other + instanceof com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult other) { - if (other == com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult other) { + if (other + == com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + .getDefaultInstance()) return this; if (other.hasAsset()) { mergeAsset(other.getAsset()); } @@ -834,7 +970,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -846,34 +984,47 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.Asset asset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Asset, com.google.cloud.securitycenter.v1.Asset.Builder, com.google.cloud.securitycenter.v1.AssetOrBuilder> assetBuilder_; + com.google.cloud.securitycenter.v1.Asset, + com.google.cloud.securitycenter.v1.Asset.Builder, + com.google.cloud.securitycenter.v1.AssetOrBuilder> + assetBuilder_; /** + * + * *
        * Asset matching the search request.
        * 
* * .google.cloud.securitycenter.v1.Asset asset = 1; + * * @return Whether the asset field is set. */ public boolean hasAsset() { return assetBuilder_ != null || asset_ != null; } /** + * + * *
        * Asset matching the search request.
        * 
* * .google.cloud.securitycenter.v1.Asset asset = 1; + * * @return The asset. */ public com.google.cloud.securitycenter.v1.Asset getAsset() { if (assetBuilder_ == null) { - return asset_ == null ? com.google.cloud.securitycenter.v1.Asset.getDefaultInstance() : asset_; + return asset_ == null + ? com.google.cloud.securitycenter.v1.Asset.getDefaultInstance() + : asset_; } else { return assetBuilder_.getMessage(); } } /** + * + * *
        * Asset matching the search request.
        * 
@@ -894,14 +1045,15 @@ public Builder setAsset(com.google.cloud.securitycenter.v1.Asset value) { return this; } /** + * + * *
        * Asset matching the search request.
        * 
* * .google.cloud.securitycenter.v1.Asset asset = 1; */ - public Builder setAsset( - com.google.cloud.securitycenter.v1.Asset.Builder builderForValue) { + public Builder setAsset(com.google.cloud.securitycenter.v1.Asset.Builder builderForValue) { if (assetBuilder_ == null) { asset_ = builderForValue.build(); onChanged(); @@ -912,6 +1064,8 @@ public Builder setAsset( return this; } /** + * + * *
        * Asset matching the search request.
        * 
@@ -922,7 +1076,9 @@ public Builder mergeAsset(com.google.cloud.securitycenter.v1.Asset value) { if (assetBuilder_ == null) { if (asset_ != null) { asset_ = - com.google.cloud.securitycenter.v1.Asset.newBuilder(asset_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.Asset.newBuilder(asset_) + .mergeFrom(value) + .buildPartial(); } else { asset_ = value; } @@ -934,6 +1090,8 @@ public Builder mergeAsset(com.google.cloud.securitycenter.v1.Asset value) { return this; } /** + * + * *
        * Asset matching the search request.
        * 
@@ -952,6 +1110,8 @@ public Builder clearAsset() { return this; } /** + * + * *
        * Asset matching the search request.
        * 
@@ -959,11 +1119,13 @@ public Builder clearAsset() { * .google.cloud.securitycenter.v1.Asset asset = 1; */ public com.google.cloud.securitycenter.v1.Asset.Builder getAssetBuilder() { - + onChanged(); return getAssetFieldBuilder().getBuilder(); } /** + * + * *
        * Asset matching the search request.
        * 
@@ -974,11 +1136,14 @@ public com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder() { if (assetBuilder_ != null) { return assetBuilder_.getMessageOrBuilder(); } else { - return asset_ == null ? - com.google.cloud.securitycenter.v1.Asset.getDefaultInstance() : asset_; + return asset_ == null + ? com.google.cloud.securitycenter.v1.Asset.getDefaultInstance() + : asset_; } } /** + * + * *
        * Asset matching the search request.
        * 
@@ -986,14 +1151,17 @@ public com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder() { * .google.cloud.securitycenter.v1.Asset asset = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Asset, com.google.cloud.securitycenter.v1.Asset.Builder, com.google.cloud.securitycenter.v1.AssetOrBuilder> + com.google.cloud.securitycenter.v1.Asset, + com.google.cloud.securitycenter.v1.Asset.Builder, + com.google.cloud.securitycenter.v1.AssetOrBuilder> getAssetFieldBuilder() { if (assetBuilder_ == null) { - assetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Asset, com.google.cloud.securitycenter.v1.Asset.Builder, com.google.cloud.securitycenter.v1.AssetOrBuilder>( - getAsset(), - getParentForChildren(), - isClean()); + assetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Asset, + com.google.cloud.securitycenter.v1.Asset.Builder, + com.google.cloud.securitycenter.v1.AssetOrBuilder>( + getAsset(), getParentForChildren(), isClean()); asset_ = null; } return assetBuilder_; @@ -1001,77 +1169,112 @@ public com.google.cloud.securitycenter.v1.AssetOrBuilder getAssetOrBuilder() { private int stateChange_ = 0; /** + * + * *
        * State change of the asset between the points in time.
        * 
* - * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * * @return The enum numeric value on the wire for stateChange. */ - @java.lang.Override public int getStateChangeValue() { + @java.lang.Override + public int getStateChangeValue() { return stateChange_; } /** + * + * *
        * State change of the asset between the points in time.
        * 
* - * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * * @param value The enum numeric value on the wire for stateChange to set. * @return This builder for chaining. */ public Builder setStateChangeValue(int value) { - + stateChange_ = value; onChanged(); return this; } /** + * + * *
        * State change of the asset between the points in time.
        * 
* - * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * * @return The stateChange. */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange getStateChange() { + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange + getStateChange() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange result = com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange.valueOf(stateChange_); - return result == null ? com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange result = + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange + .valueOf(stateChange_); + return result == null + ? com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange + .UNRECOGNIZED + : result; } /** + * + * *
        * State change of the asset between the points in time.
        * 
* - * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * * @param value The stateChange to set. * @return This builder for chaining. */ - public Builder setStateChange(com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange value) { + public Builder setStateChange( + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange + value) { if (value == null) { throw new NullPointerException(); } - + stateChange_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * State change of the asset between the points in time.
        * 
* - * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * * @return This builder for chaining. */ public Builder clearStateChange() { - + stateChange_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1084,30 +1287,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) - private static final com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult(); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1119,80 +1325,107 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int LIST_ASSETS_RESULTS_FIELD_NUMBER = 1; - private java.util.List listAssetsResults_; + private java.util.List + listAssetsResults_; /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ @java.lang.Override - public java.util.List getListAssetsResultsList() { + public java.util.List + getListAssetsResultsList() { return listAssetsResults_; } /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder> getListAssetsResultsOrBuilderList() { return listAssetsResults_; } /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ @java.lang.Override public int getListAssetsResultsCount() { return listAssetsResults_.size(); } /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getListAssetsResults(int index) { + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + getListAssetsResults(int index) { return listAssetsResults_.get(index); } /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder + getListAssetsResultsOrBuilder(int index) { return listAssetsResults_.get(index); } public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -1200,11 +1433,14 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ @java.lang.Override @@ -1212,6 +1448,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used for executing the list request.
    * 
@@ -1226,12 +1464,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ @java.lang.Override @@ -1240,30 +1481,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1274,11 +1515,14 @@ public java.lang.String getNextPageToken() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_; /** + * + * *
    * The total number of assets matching the query.
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -1287,6 +1531,7 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1298,8 +1543,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < listAssetsResults_.size(); i++) { output.writeMessage(1, listAssetsResults_.get(i)); } @@ -1322,19 +1566,17 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < listAssetsResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, listAssetsResults_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, listAssetsResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1344,24 +1586,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListAssetsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListAssetsResponse other = (com.google.cloud.securitycenter.v1.ListAssetsResponse) obj; + com.google.cloud.securitycenter.v1.ListAssetsResponse other = + (com.google.cloud.securitycenter.v1.ListAssetsResponse) obj; - if (!getListAssetsResultsList() - .equals(other.getListAssetsResultsList())) return false; + if (!getListAssetsResultsList().equals(other.getListAssetsResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (getTotalSize() - != other.getTotalSize()) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1391,117 +1630,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListAssetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListAssetsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ListAssetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for listing assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListAssetsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListAssetsResponse) com.google.cloud.securitycenter.v1.ListAssetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListAssetsResponse.class, com.google.cloud.securitycenter.v1.ListAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListAssetsResponse.class, + com.google.cloud.securitycenter.v1.ListAssetsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ListAssetsResponse.newBuilder() @@ -1509,17 +1758,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getListAssetsResultsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1543,9 +1792,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor; } @java.lang.Override @@ -1564,7 +1813,8 @@ public com.google.cloud.securitycenter.v1.ListAssetsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1.ListAssetsResponse buildPartial() { - com.google.cloud.securitycenter.v1.ListAssetsResponse result = new com.google.cloud.securitycenter.v1.ListAssetsResponse(this); + com.google.cloud.securitycenter.v1.ListAssetsResponse result = + new com.google.cloud.securitycenter.v1.ListAssetsResponse(this); int from_bitField0_ = bitField0_; if (listAssetsResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1590,38 +1840,39 @@ public com.google.cloud.securitycenter.v1.ListAssetsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ListAssetsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListAssetsResponse)other); + return mergeFrom((com.google.cloud.securitycenter.v1.ListAssetsResponse) other); } else { super.mergeFrom(other); return this; @@ -1629,7 +1880,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListAssetsResponse other) { - if (other == com.google.cloud.securitycenter.v1.ListAssetsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.ListAssetsResponse.getDefaultInstance()) + return this; if (listAssetsResultsBuilder_ == null) { if (!other.listAssetsResults_.isEmpty()) { if (listAssetsResults_.isEmpty()) { @@ -1648,9 +1900,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListAssetsResponse o listAssetsResultsBuilder_ = null; listAssetsResults_ = other.listAssetsResults_; bitField0_ = (bitField0_ & ~0x00000001); - listAssetsResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getListAssetsResultsFieldBuilder() : null; + listAssetsResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getListAssetsResultsFieldBuilder() + : null; } else { listAssetsResultsBuilder_.addAllMessages(other.listAssetsResults_); } @@ -1685,7 +1938,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.ListAssetsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.ListAssetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1694,28 +1948,41 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List listAssetsResults_ = - java.util.Collections.emptyList(); + private java.util.List + listAssetsResults_ = java.util.Collections.emptyList(); + private void ensureListAssetsResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - listAssetsResults_ = new java.util.ArrayList(listAssetsResults_); + listAssetsResults_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult>( + listAssetsResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder> listAssetsResultsBuilder_; + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder> + listAssetsResultsBuilder_; /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public java.util.List getListAssetsResultsList() { + public java.util.List + getListAssetsResultsList() { if (listAssetsResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(listAssetsResults_); } else { @@ -1723,11 +1990,15 @@ public java.util.List * Assets matching the list request. *
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public int getListAssetsResultsCount() { if (listAssetsResultsBuilder_ == null) { @@ -1737,13 +2008,18 @@ public int getListAssetsResultsCount() { } } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getListAssetsResults(int index) { + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + getListAssetsResults(int index) { if (listAssetsResultsBuilder_ == null) { return listAssetsResults_.get(index); } else { @@ -1751,11 +2027,15 @@ public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult ge } } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder setListAssetsResults( int index, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult value) { @@ -1772,14 +2052,20 @@ public Builder setListAssetsResults( return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder setListAssetsResults( - int index, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder builderForValue) { + int index, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder + builderForValue) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); listAssetsResults_.set(index, builderForValue.build()); @@ -1790,13 +2076,18 @@ public Builder setListAssetsResults( return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public Builder addListAssetsResults(com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult value) { + public Builder addListAssetsResults( + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult value) { if (listAssetsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1810,11 +2101,15 @@ public Builder addListAssetsResults(com.google.cloud.securitycenter.v1.ListAsset return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder addListAssetsResults( int index, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult value) { @@ -1831,14 +2126,19 @@ public Builder addListAssetsResults( return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder addListAssetsResults( - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder builderForValue) { + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder + builderForValue) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); listAssetsResults_.add(builderForValue.build()); @@ -1849,14 +2149,20 @@ public Builder addListAssetsResults( return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder addListAssetsResults( - int index, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder builderForValue) { + int index, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder + builderForValue) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); listAssetsResults_.add(index, builderForValue.build()); @@ -1867,18 +2173,23 @@ public Builder addListAssetsResults( return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder addAllListAssetsResults( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult> + values) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, listAssetsResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listAssetsResults_); onChanged(); } else { listAssetsResultsBuilder_.addAllMessages(values); @@ -1886,11 +2197,15 @@ public Builder addAllListAssetsResults( return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder clearListAssetsResults() { if (listAssetsResultsBuilder_ == null) { @@ -1903,11 +2218,15 @@ public Builder clearListAssetsResults() { return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder removeListAssetsResults(int index) { if (listAssetsResultsBuilder_ == null) { @@ -1920,39 +2239,54 @@ public Builder removeListAssetsResults(int index) { return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder getListAssetsResultsBuilder( - int index) { + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder + getListAssetsResultsBuilder(int index) { return getListAssetsResultsFieldBuilder().getBuilder(index); } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder + getListAssetsResultsOrBuilder(int index) { if (listAssetsResultsBuilder_ == null) { - return listAssetsResults_.get(index); } else { + return listAssetsResults_.get(index); + } else { return listAssetsResultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public java.util.List - getListAssetsResultsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder> + getListAssetsResultsOrBuilderList() { if (listAssetsResultsBuilder_ != null) { return listAssetsResultsBuilder_.getMessageOrBuilderList(); } else { @@ -1960,45 +2294,70 @@ public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrB } } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder addListAssetsResultsBuilder() { - return getListAssetsResultsFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder + addListAssetsResultsBuilder() { + return getListAssetsResultsFieldBuilder() + .addBuilder( + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + .getDefaultInstance()); } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder addListAssetsResultsBuilder( - int index) { - return getListAssetsResultsFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder + addListAssetsResultsBuilder(int index) { + return getListAssetsResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult + .getDefaultInstance()); } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public java.util.List - getListAssetsResultsBuilderList() { + public java.util.List< + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder> + getListAssetsResultsBuilderList() { return getListAssetsResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder> + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder> getListAssetsResultsFieldBuilder() { if (listAssetsResultsBuilder_ == null) { - listAssetsResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder>( + listAssetsResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder, + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder>( listAssetsResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2010,24 +2369,33 @@ public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Bu private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -2038,6 +2406,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -2058,14 +2428,15 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -2076,6 +2447,8 @@ public Builder setReadTime( return this; } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -2086,7 +2459,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -2098,6 +2471,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -2116,6 +2491,8 @@ public Builder clearReadTime() { return this; } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -2123,11 +2500,13 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -2138,11 +2517,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -2150,14 +2530,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReadTime(), - getParentForChildren(), - isClean()); + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); readTime_ = null; } return readTimeBuilder_; @@ -2165,19 +2548,21 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -2186,21 +2571,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -2208,69 +2594,79 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_ ; + private int totalSize_; /** + * + * *
      * The total number of assets matching the query.
      * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -2278,37 +2674,43 @@ public int getTotalSize() { return totalSize_; } /** + * + * *
      * The total number of assets matching the query.
      * 
* * int32 total_size = 4; + * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** + * + * *
      * The total number of assets matching the query.
      * 
* * int32 total_size = 4; + * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2318,12 +2720,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListAssetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListAssetsResponse) private static final com.google.cloud.securitycenter.v1.ListAssetsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListAssetsResponse(); } @@ -2332,16 +2734,16 @@ public static com.google.cloud.securitycenter.v1.ListAssetsResponse getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2356,6 +2758,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.ListAssetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java similarity index 57% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java index 47ee8cdb5..9b7242ae6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponseOrBuilder.java @@ -1,75 +1,121 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListAssetsResponseOrBuilder extends +public interface ListAssetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListAssetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - java.util.List + java.util.List getListAssetsResultsList(); /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getListAssetsResults(int index); + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult getListAssetsResults( + int index); /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ int getListAssetsResultsCount(); /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder> getListAssetsResultsOrBuilderList(); /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder( - int index); + com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder + getListAssetsResultsOrBuilder(int index); /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used for executing the list request.
    * 
@@ -79,33 +125,41 @@ com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * The total number of assets matching the query.
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ int getTotalSize(); diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequest.java index a7ebdbeb3..4e4eba85c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for listing  BigQuery exports at a given scope e.g.
  * organization, folder or project.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.ListBigQueryExportsRequest}
  */
-public final class ListBigQueryExportsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListBigQueryExportsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListBigQueryExportsRequest)
     ListBigQueryExportsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListBigQueryExportsRequest.newBuilder() to construct.
   private ListBigQueryExportsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListBigQueryExportsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -27,16 +45,15 @@ private ListBigQueryExportsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListBigQueryExportsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ListBigQueryExportsRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,30 +72,32 @@ private ListBigQueryExportsRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            parent_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageSize_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              parent_ = s;
+              break;
+            }
+          case 16:
+            {
+              pageSize_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageToken_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              pageToken_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -86,36 +105,43 @@ private ListBigQueryExportsRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1.SecuritycenterService
+        .internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.SecuritycenterService
+        .internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.class, com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.Builder.class);
+            com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.class,
+            com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
+   *
+   *
    * 
    * Required. The parent, which owns the collection of BigQuery exports. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -124,31 +150,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent, which owns the collection of BigQuery exports. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -159,6 +187,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of configs to return. The service may return fewer than
    * this value.
@@ -167,6 +197,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -177,6 +208,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A page token, received from a previous `ListBigQueryExports` call.
    * Provide this to retrieve the subsequent page.
@@ -185,6 +218,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -193,14 +227,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A page token, received from a previous `ListBigQueryExports` call.
    * Provide this to retrieve the subsequent page.
@@ -209,16 +244,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -227,6 +261,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,8 +273,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -262,8 +296,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -276,19 +309,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest other = (com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest) obj; + com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest other = + (com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -312,96 +343,104 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for listing  BigQuery exports at a given scope e.g.
    * organization, folder or project.
@@ -409,21 +448,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.ListBigQueryExportsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListBigQueryExportsRequest)
       com.google.cloud.securitycenter.v1.ListBigQueryExportsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.SecuritycenterService
+          .internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.SecuritycenterService
+          .internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.class, com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.Builder.class);
+              com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.class,
+              com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.newBuilder()
@@ -431,16 +472,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -454,13 +494,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.SecuritycenterService
+          .internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest getDefaultInstanceForType() {
+    public com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest
+        getDefaultInstanceForType() {
       return com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.getDefaultInstance();
     }
 
@@ -475,7 +516,8 @@ public com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest buildPartial() {
-      com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest result = new com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest(this);
+      com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest result =
+          new com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -487,38 +529,39 @@ public com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest buildPartia
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -526,7 +569,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest other) {
-      if (other == com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -557,7 +602,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -569,20 +616,24 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The parent, which owns the collection of BigQuery exports. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -591,22 +642,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns the collection of BigQuery exports. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -614,67 +668,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns the collection of BigQuery exports. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns the collection of BigQuery exports. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns the collection of BigQuery exports. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of configs to return. The service may return fewer than
      * this value.
@@ -683,6 +752,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -690,6 +760,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of configs to return. The service may return fewer than
      * this value.
@@ -698,16 +770,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of configs to return. The service may return fewer than
      * this value.
@@ -716,10 +791,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -727,6 +803,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListBigQueryExports` call.
      * Provide this to retrieve the subsequent page.
@@ -735,13 +813,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -750,6 +828,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListBigQueryExports` call.
      * Provide this to retrieve the subsequent page.
@@ -758,15 +838,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -774,6 +853,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListBigQueryExports` call.
      * Provide this to retrieve the subsequent page.
@@ -782,20 +863,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListBigQueryExports` call.
      * Provide this to retrieve the subsequent page.
@@ -804,15 +887,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListBigQueryExports` call.
      * Provide this to retrieve the subsequent page.
@@ -821,23 +907,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -847,12 +933,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListBigQueryExportsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListBigQueryExportsRequest) - private static final com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest(); } @@ -861,16 +948,16 @@ public static com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBigQueryExportsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListBigQueryExportsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBigQueryExportsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListBigQueryExportsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -885,6 +972,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequestOrBuilder.java index d95a1ac92..028922c5b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListBigQueryExportsRequestOrBuilder extends +public interface ListBigQueryExportsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListBigQueryExportsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent, which owns the collection of BigQuery exports. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent, which owns the collection of BigQuery exports. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of configs to return. The service may return fewer than
    * this value.
@@ -40,11 +67,14 @@ public interface ListBigQueryExportsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListBigQueryExports` call.
    * Provide this to retrieve the subsequent page.
@@ -53,10 +83,13 @@ public interface ListBigQueryExportsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListBigQueryExports` call.
    * Provide this to retrieve the subsequent page.
@@ -65,8 +98,8 @@ public interface ListBigQueryExportsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponse.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponse.java index 3dcfb2ba8..7e9e1d1ee 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Response message for listing BigQuery exports.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListBigQueryExportsResponse} */ -public final class ListBigQueryExportsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListBigQueryExportsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListBigQueryExportsResponse) ListBigQueryExportsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListBigQueryExportsResponse.newBuilder() to construct. private ListBigQueryExportsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListBigQueryExportsResponse() { bigQueryExports_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListBigQueryExportsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBigQueryExportsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListBigQueryExportsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,33 @@ private ListBigQueryExportsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - bigQueryExports_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + bigQueryExports_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + bigQueryExports_.add( + input.readMessage( + com.google.cloud.securitycenter.v1.BigQueryExport.parser(), + extensionRegistry)); + break; } - bigQueryExports_.add( - input.readMessage(com.google.cloud.securitycenter.v1.BigQueryExport.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +106,7 @@ private ListBigQueryExportsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { bigQueryExports_ = java.util.Collections.unmodifiableList(bigQueryExports_); @@ -94,22 +115,27 @@ private ListBigQueryExportsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.class, com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.class, + com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.Builder.class); } public static final int BIG_QUERY_EXPORTS_FIELD_NUMBER = 1; private java.util.List bigQueryExports_; /** + * + * *
    * The BigQuery exports from the specified parent.
    * 
@@ -117,10 +143,13 @@ private ListBigQueryExportsResponse( * repeated .google.cloud.securitycenter.v1.BigQueryExport big_query_exports = 1; */ @java.lang.Override - public java.util.List getBigQueryExportsList() { + public java.util.List + getBigQueryExportsList() { return bigQueryExports_; } /** + * + * *
    * The BigQuery exports from the specified parent.
    * 
@@ -128,11 +157,13 @@ public java.util.List getBigQ * repeated .google.cloud.securitycenter.v1.BigQueryExport big_query_exports = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBigQueryExportsOrBuilderList() { return bigQueryExports_; } /** + * + * *
    * The BigQuery exports from the specified parent.
    * 
@@ -144,6 +175,8 @@ public int getBigQueryExportsCount() { return bigQueryExports_.size(); } /** + * + * *
    * The BigQuery exports from the specified parent.
    * 
@@ -155,6 +188,8 @@ public com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExports(int return bigQueryExports_.get(index); } /** + * + * *
    * The BigQuery exports from the specified parent.
    * 
@@ -170,12 +205,15 @@ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExp public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +222,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +254,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +266,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < bigQueryExports_.size(); i++) { output.writeMessage(1, bigQueryExports_.get(i)); } @@ -245,8 +283,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < bigQueryExports_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, bigQueryExports_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, bigQueryExports_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +296,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse other = (com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse) obj; + com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse other = + (com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse) obj; - if (!getBigQueryExportsList() - .equals(other.getBigQueryExportsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getBigQueryExportsList().equals(other.getBigQueryExportsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +329,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for listing BigQuery exports.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListBigQueryExportsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListBigQueryExportsResponse) com.google.cloud.securitycenter.v1.ListBigQueryExportsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.class, com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.class, + com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.newBuilder() @@ -411,17 +457,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getBigQueryExportsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,13 +483,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.getDefaultInstance(); } @@ -458,7 +505,8 @@ public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse buildPartial() { - com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse result = new com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse(this); + com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse result = + new com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse(this); int from_bitField0_ = bitField0_; if (bigQueryExportsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +526,39 @@ public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse)other); + return mergeFrom((com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +566,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse other) { - if (other == com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse.getDefaultInstance()) + return this; if (bigQueryExportsBuilder_ == null) { if (!other.bigQueryExports_.isEmpty()) { if (bigQueryExports_.isEmpty()) { @@ -536,9 +587,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListBigQueryExportsR bigQueryExportsBuilder_ = null; bigQueryExports_ = other.bigQueryExports_; bitField0_ = (bitField0_ & ~0x00000001); - bigQueryExportsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBigQueryExportsFieldBuilder() : null; + bigQueryExportsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBigQueryExportsFieldBuilder() + : null; } else { bigQueryExportsBuilder_.addAllMessages(other.bigQueryExports_); } @@ -567,7 +619,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,28 +630,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List bigQueryExports_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBigQueryExportsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - bigQueryExports_ = new java.util.ArrayList(bigQueryExports_); + bigQueryExports_ = + new java.util.ArrayList( + bigQueryExports_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.BigQueryExport, com.google.cloud.securitycenter.v1.BigQueryExport.Builder, com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> bigQueryExportsBuilder_; + com.google.cloud.securitycenter.v1.BigQueryExport, + com.google.cloud.securitycenter.v1.BigQueryExport.Builder, + com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> + bigQueryExportsBuilder_; /** + * + * *
      * The BigQuery exports from the specified parent.
      * 
* * repeated .google.cloud.securitycenter.v1.BigQueryExport big_query_exports = 1; */ - public java.util.List getBigQueryExportsList() { + public java.util.List + getBigQueryExportsList() { if (bigQueryExportsBuilder_ == null) { return java.util.Collections.unmodifiableList(bigQueryExports_); } else { @@ -605,6 +669,8 @@ public java.util.List getBigQ } } /** + * + * *
      * The BigQuery exports from the specified parent.
      * 
@@ -619,6 +685,8 @@ public int getBigQueryExportsCount() { } } /** + * + * *
      * The BigQuery exports from the specified parent.
      * 
@@ -633,6 +701,8 @@ public com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExports(int } } /** + * + * *
      * The BigQuery exports from the specified parent.
      * 
@@ -654,6 +724,8 @@ public Builder setBigQueryExports( return this; } /** + * + * *
      * The BigQuery exports from the specified parent.
      * 
@@ -672,6 +744,8 @@ public Builder setBigQueryExports( return this; } /** + * + * *
      * The BigQuery exports from the specified parent.
      * 
@@ -692,6 +766,8 @@ public Builder addBigQueryExports(com.google.cloud.securitycenter.v1.BigQueryExp return this; } /** + * + * *
      * The BigQuery exports from the specified parent.
      * 
@@ -713,6 +789,8 @@ public Builder addBigQueryExports( return this; } /** + * + * *
      * The BigQuery exports from the specified parent.
      * 
@@ -731,6 +809,8 @@ public Builder addBigQueryExports( return this; } /** + * + * *
      * The BigQuery exports from the specified parent.
      * 
@@ -749,6 +829,8 @@ public Builder addBigQueryExports( return this; } /** + * + * *
      * The BigQuery exports from the specified parent.
      * 
@@ -759,8 +841,7 @@ public Builder addAllBigQueryExports( java.lang.Iterable values) { if (bigQueryExportsBuilder_ == null) { ensureBigQueryExportsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bigQueryExports_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bigQueryExports_); onChanged(); } else { bigQueryExportsBuilder_.addAllMessages(values); @@ -768,6 +849,8 @@ public Builder addAllBigQueryExports( return this; } /** + * + * *
      * The BigQuery exports from the specified parent.
      * 
@@ -785,6 +868,8 @@ public Builder clearBigQueryExports() { return this; } /** + * + * *
      * The BigQuery exports from the specified parent.
      * 
@@ -802,6 +887,8 @@ public Builder removeBigQueryExports(int index) { return this; } /** + * + * *
      * The BigQuery exports from the specified parent.
      * 
@@ -813,6 +900,8 @@ public com.google.cloud.securitycenter.v1.BigQueryExport.Builder getBigQueryExpo return getBigQueryExportsFieldBuilder().getBuilder(index); } /** + * + * *
      * The BigQuery exports from the specified parent.
      * 
@@ -822,19 +911,22 @@ public com.google.cloud.securitycenter.v1.BigQueryExport.Builder getBigQueryExpo public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExportsOrBuilder( int index) { if (bigQueryExportsBuilder_ == null) { - return bigQueryExports_.get(index); } else { + return bigQueryExports_.get(index); + } else { return bigQueryExportsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The BigQuery exports from the specified parent.
      * 
* * repeated .google.cloud.securitycenter.v1.BigQueryExport big_query_exports = 1; */ - public java.util.List - getBigQueryExportsOrBuilderList() { + public java.util.List + getBigQueryExportsOrBuilderList() { if (bigQueryExportsBuilder_ != null) { return bigQueryExportsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +934,8 @@ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExp } } /** + * + * *
      * The BigQuery exports from the specified parent.
      * 
@@ -849,10 +943,12 @@ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExp * repeated .google.cloud.securitycenter.v1.BigQueryExport big_query_exports = 1; */ public com.google.cloud.securitycenter.v1.BigQueryExport.Builder addBigQueryExportsBuilder() { - return getBigQueryExportsFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance()); + return getBigQueryExportsFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance()); } /** + * + * *
      * The BigQuery exports from the specified parent.
      * 
@@ -861,26 +957,35 @@ public com.google.cloud.securitycenter.v1.BigQueryExport.Builder addBigQueryExpo */ public com.google.cloud.securitycenter.v1.BigQueryExport.Builder addBigQueryExportsBuilder( int index) { - return getBigQueryExportsFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance()); + return getBigQueryExportsFieldBuilder() + .addBuilder( + index, com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance()); } /** + * + * *
      * The BigQuery exports from the specified parent.
      * 
* * repeated .google.cloud.securitycenter.v1.BigQueryExport big_query_exports = 1; */ - public java.util.List - getBigQueryExportsBuilderList() { + public java.util.List + getBigQueryExportsBuilderList() { return getBigQueryExportsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.BigQueryExport, com.google.cloud.securitycenter.v1.BigQueryExport.Builder, com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> + com.google.cloud.securitycenter.v1.BigQueryExport, + com.google.cloud.securitycenter.v1.BigQueryExport.Builder, + com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> getBigQueryExportsFieldBuilder() { if (bigQueryExportsBuilder_ == null) { - bigQueryExportsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.BigQueryExport, com.google.cloud.securitycenter.v1.BigQueryExport.Builder, com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder>( + bigQueryExportsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.BigQueryExport, + com.google.cloud.securitycenter.v1.BigQueryExport.Builder, + com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder>( bigQueryExports_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -892,19 +997,21 @@ public com.google.cloud.securitycenter.v1.BigQueryExport.Builder addBigQueryExpo private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1020,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1043,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,30 +1117,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListBigQueryExportsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListBigQueryExportsResponse) - private static final com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse(); } - public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBigQueryExportsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListBigQueryExportsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBigQueryExportsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListBigQueryExportsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,9 +1154,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponseOrBuilder.java index 1e6df0731..cd77c1476 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListBigQueryExportsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListBigQueryExportsResponseOrBuilder extends +public interface ListBigQueryExportsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListBigQueryExportsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The BigQuery exports from the specified parent.
    * 
* * repeated .google.cloud.securitycenter.v1.BigQueryExport big_query_exports = 1; */ - java.util.List - getBigQueryExportsList(); + java.util.List getBigQueryExportsList(); /** + * + * *
    * The BigQuery exports from the specified parent.
    * 
@@ -25,6 +44,8 @@ public interface ListBigQueryExportsResponseOrBuilder extends */ com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExports(int index); /** + * + * *
    * The BigQuery exports from the specified parent.
    * 
@@ -33,43 +54,51 @@ public interface ListBigQueryExportsResponseOrBuilder extends */ int getBigQueryExportsCount(); /** + * + * *
    * The BigQuery exports from the specified parent.
    * 
* * repeated .google.cloud.securitycenter.v1.BigQueryExport big_query_exports = 1; */ - java.util.List + java.util.List getBigQueryExportsOrBuilderList(); /** + * + * *
    * The BigQuery exports from the specified parent.
    * 
* * repeated .google.cloud.securitycenter.v1.BigQueryExport big_query_exports = 1; */ - com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExportsOrBuilder( - int index); + com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExportsOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java similarity index 84% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java index 6e5781612..be9c534ec 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for listing findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsRequest} */ -public final class ListFindingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListFindingsRequest) ListFindingsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingsRequest.newBuilder() to construct. private ListFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFindingsRequest() { parent_ = ""; filter_ = ""; @@ -28,16 +46,15 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,81 +73,91 @@ private ListFindingsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); + orderBy_ = s; + break; } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 42: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (compareDuration_ != null) { - subBuilder = compareDuration_.toBuilder(); + case 42: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); + } + compareDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); + } + + break; } - compareDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compareDuration_); - compareDuration_ = subBuilder.buildPartial(); + case 58: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); + } + fieldMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); + } + + break; } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 58: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (fieldMask_ != null) { - subBuilder = fieldMask_.toBuilder(); + pageToken_ = s; + break; } - fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fieldMask_); - fieldMask_ = subBuilder.buildPartial(); + case 72: + { + pageSize_ = input.readInt32(); + break; } - - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 72: { - - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -138,29 +165,33 @@ private ListFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListFindingsRequest.class, com.google.cloud.securitycenter.v1.ListFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1.ListFindingsRequest.class, + com.google.cloud.securitycenter.v1.ListFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id],
@@ -171,7 +202,10 @@ private ListFindingsRequest(
    * projects/{projects_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -180,14 +214,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id],
@@ -198,17 +233,18 @@ public java.lang.String getParent() {
    * projects/{projects_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -219,6 +255,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -270,6 +308,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -278,14 +317,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -337,16 +377,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -357,6 +396,8 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 3; private volatile java.lang.Object orderBy_; /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -378,6 +419,7 @@ public java.lang.String getFilter() {
    * 
* * string order_by = 3; + * * @return The orderBy. */ @java.lang.Override @@ -386,14 +428,15 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -415,16 +458,15 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 3; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -435,6 +477,8 @@ public java.lang.String getOrderBy() { public static final int READ_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp readTime_; /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -443,6 +487,7 @@ public java.lang.String getOrderBy() {
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -450,6 +495,8 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -458,6 +505,7 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ @java.lang.Override @@ -465,6 +513,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -482,6 +532,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int COMPARE_DURATION_FIELD_NUMBER = 5;
   private com.google.protobuf.Duration compareDuration_;
   /**
+   *
+   *
    * 
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -512,6 +564,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ @java.lang.Override @@ -519,6 +572,8 @@ public boolean hasCompareDuration() { return compareDuration_ != null; } /** + * + * *
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -549,13 +604,18 @@ public boolean hasCompareDuration() {
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { - return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; } /** + * + * *
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -595,12 +655,15 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
   public static final int FIELD_MASK_FIELD_NUMBER = 7;
   private com.google.protobuf.FieldMask fieldMask_;
   /**
+   *
+   *
    * 
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -608,12 +671,15 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** + * + * *
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return The fieldMask. */ @java.lang.Override @@ -621,6 +687,8 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** + * + * *
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
@@ -636,6 +704,8 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
   public static final int PAGE_TOKEN_FIELD_NUMBER = 8;
   private volatile java.lang.Object pageToken_;
   /**
+   *
+   *
    * 
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -643,6 +713,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
    * 
* * string page_token = 8; + * * @return The pageToken. */ @java.lang.Override @@ -651,14 +722,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -666,16 +738,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 8; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -686,12 +757,15 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 9; private int pageSize_; /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 9; + * * @return The pageSize. */ @java.lang.Override @@ -700,6 +774,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -711,8 +786,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -756,23 +830,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, orderBy_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); } if (compareDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCompareDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getFieldMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFieldMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -782,38 +852,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListFindingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListFindingsRequest other = (com.google.cloud.securitycenter.v1.ListFindingsRequest) obj; + com.google.cloud.securitycenter.v1.ListFindingsRequest other = + (com.google.cloud.securitycenter.v1.ListFindingsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - if (!getCompareDuration() - .equals(other.getCompareDuration())) return false; + if (!getCompareDuration().equals(other.getCompareDuration())) return false; } if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - if (!getFieldMask() - .equals(other.getFieldMask())) return false; + if (!getFieldMask().equals(other.getFieldMask())) return false; } - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -853,117 +916,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListFindingsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ListFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for listing findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListFindingsRequest) com.google.cloud.securitycenter.v1.ListFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListFindingsRequest.class, com.google.cloud.securitycenter.v1.ListFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1.ListFindingsRequest.class, + com.google.cloud.securitycenter.v1.ListFindingsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ListFindingsRequest.newBuilder() @@ -971,16 +1044,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1016,9 +1088,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor; } @java.lang.Override @@ -1037,7 +1109,8 @@ public com.google.cloud.securitycenter.v1.ListFindingsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsRequest buildPartial() { - com.google.cloud.securitycenter.v1.ListFindingsRequest result = new com.google.cloud.securitycenter.v1.ListFindingsRequest(this); + com.google.cloud.securitycenter.v1.ListFindingsRequest result = + new com.google.cloud.securitycenter.v1.ListFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.orderBy_ = orderBy_; @@ -1066,38 +1139,39 @@ public com.google.cloud.securitycenter.v1.ListFindingsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ListFindingsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListFindingsRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.ListFindingsRequest) other); } else { super.mergeFrom(other); return this; @@ -1105,7 +1179,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListFindingsRequest other) { - if (other == com.google.cloud.securitycenter.v1.ListFindingsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.ListFindingsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1153,7 +1228,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.ListFindingsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.ListFindingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1165,6 +1241,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id],
@@ -1175,14 +1253,16 @@ public Builder mergeFrom(
      * projects/{projects_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1191,6 +1271,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id],
@@ -1201,16 +1283,17 @@ public java.lang.String getParent() {
      * projects/{projects_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1218,6 +1301,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id],
@@ -1228,21 +1313,25 @@ public java.lang.String getParent() {
      * projects/{projects_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id],
@@ -1253,16 +1342,21 @@ public Builder setParent(
      * projects/{projects_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id],
@@ -1273,17 +1367,19 @@ public Builder clearParent() {
      * projects/{projects_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1291,6 +1387,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1342,13 +1440,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1357,6 +1455,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1408,15 +1508,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1424,6 +1523,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1475,20 +1576,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1540,15 +1643,18 @@ public Builder setFilter(
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1600,16 +1706,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1617,6 +1723,8 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1638,13 +1746,13 @@ public Builder setFilterBytes(
      * 
* * string order_by = 3; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1653,6 +1761,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1674,15 +1784,14 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1690,6 +1799,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1711,20 +1822,22 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1746,15 +1859,18 @@ public Builder setOrderBy(
      * 
* * string order_by = 3; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1776,16 +1892,16 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 3; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; @@ -1793,8 +1909,13 @@ public Builder setOrderByBytes( private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1803,12 +1924,15 @@ public Builder setOrderByBytes(
      * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1817,6 +1941,7 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1827,6 +1952,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1850,6 +1977,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1859,8 +1988,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 4;
      */
-    public Builder setReadTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1871,6 +1999,8 @@ public Builder setReadTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1884,7 +2014,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -1896,6 +2026,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1917,6 +2049,8 @@ public Builder clearReadTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1927,11 +2061,13 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-      
+
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1945,11 +2081,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1960,14 +2097,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(),
-                getParentForChildren(),
-                isClean());
+        readTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(), getParentForChildren(), isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -1975,8 +2115,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private com.google.protobuf.Duration compareDuration_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> compareDurationBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        compareDurationBuilder_;
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2007,12 +2152,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; } /** + * + * *
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2043,16 +2191,21 @@ public boolean hasCompareDuration() {
      * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { - return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; } else { return compareDurationBuilder_.getMessage(); } } /** + * + * *
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2098,6 +2251,8 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2129,8 +2284,7 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration compare_duration = 5;
      */
-    public Builder setCompareDuration(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) {
       if (compareDurationBuilder_ == null) {
         compareDuration_ = builderForValue.build();
         onChanged();
@@ -2141,6 +2295,8 @@ public Builder setCompareDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2176,7 +2332,9 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       if (compareDurationBuilder_ == null) {
         if (compareDuration_ != null) {
           compareDuration_ =
-            com.google.protobuf.Duration.newBuilder(compareDuration_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(compareDuration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           compareDuration_ = value;
         }
@@ -2188,6 +2346,8 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2231,6 +2391,8 @@ public Builder clearCompareDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2263,11 +2425,13 @@ public Builder clearCompareDuration() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
-      
+
       onChanged();
       return getCompareDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2303,11 +2467,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
       if (compareDurationBuilder_ != null) {
         return compareDurationBuilder_.getMessageOrBuilder();
       } else {
-        return compareDuration_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : compareDuration_;
+        return compareDuration_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : compareDuration_;
       }
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2340,14 +2507,17 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getCompareDurationFieldBuilder() {
       if (compareDurationBuilder_ == null) {
-        compareDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getCompareDuration(),
-                getParentForChildren(),
-                isClean());
+        compareDurationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getCompareDuration(), getParentForChildren(), isClean());
         compareDuration_ = null;
       }
       return compareDurationBuilder_;
@@ -2355,26 +2525,35 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
 
     private com.google.protobuf.FieldMask fieldMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> fieldMaskBuilder_;
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
+        fieldMaskBuilder_;
     /**
+     *
+     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** + * + * *
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -2385,6 +2564,8 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** + * + * *
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2406,6 +2587,8 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2413,8 +2596,7 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask field_mask = 7;
      */
-    public Builder setFieldMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (fieldMaskBuilder_ == null) {
         fieldMask_ = builderForValue.build();
         onChanged();
@@ -2425,6 +2607,8 @@ public Builder setFieldMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2436,7 +2620,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       if (fieldMaskBuilder_ == null) {
         if (fieldMask_ != null) {
           fieldMask_ =
-            com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
         } else {
           fieldMask_ = value;
         }
@@ -2448,6 +2632,8 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2467,6 +2653,8 @@ public Builder clearFieldMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2475,11 +2663,13 @@ public Builder clearFieldMask() {
      * .google.protobuf.FieldMask field_mask = 7;
      */
     public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() {
-      
+
       onChanged();
       return getFieldMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2491,11 +2681,12 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
       if (fieldMaskBuilder_ != null) {
         return fieldMaskBuilder_.getMessageOrBuilder();
       } else {
-        return fieldMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
+        return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
       }
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2504,14 +2695,17 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * .google.protobuf.FieldMask field_mask = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getFieldMaskFieldBuilder() {
       if (fieldMaskBuilder_ == null) {
-        fieldMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getFieldMask(),
-                getParentForChildren(),
-                isClean());
+        fieldMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getFieldMask(), getParentForChildren(), isClean());
         fieldMask_ = null;
       }
       return fieldMaskBuilder_;
@@ -2519,6 +2713,8 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
 
     private java.lang.Object pageToken_ = "";
     /**
+     *
+     *
      * 
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -2526,13 +2722,13 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * 
* * string page_token = 8; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2541,6 +2737,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -2548,15 +2746,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 8; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2564,6 +2761,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -2571,20 +2770,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 8; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -2592,15 +2793,18 @@ public Builder setPageToken(
      * 
* * string page_token = 8; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -2608,29 +2812,32 @@ public Builder clearPageToken() {
      * 
* * string page_token = 8; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; + * * @return The pageSize. */ @java.lang.Override @@ -2638,39 +2845,45 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2680,12 +2893,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListFindingsRequest) private static final com.google.cloud.securitycenter.v1.ListFindingsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListFindingsRequest(); } @@ -2694,16 +2907,16 @@ public static com.google.cloud.securitycenter.v1.ListFindingsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2718,6 +2931,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.ListFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java similarity index 92% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java index d53687abd..1b7b701ca 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListFindingsRequestOrBuilder extends +public interface ListFindingsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListFindingsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id],
@@ -18,11 +36,16 @@ public interface ListFindingsRequestOrBuilder extends
    * projects/{projects_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id],
@@ -33,13 +56,17 @@ public interface ListFindingsRequestOrBuilder extends
    * projects/{projects_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -91,10 +118,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -146,12 +176,14 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -173,10 +205,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string order_by = 3; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -198,12 +233,14 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string order_by = 3; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -212,10 +249,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -224,10 +264,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -240,6 +283,8 @@ public interface ListFindingsRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -270,10 +315,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** + * + * *
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -304,10 +352,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** + * + * *
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -342,26 +393,34 @@ public interface ListFindingsRequestOrBuilder extends
   com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
 
   /**
+   *
+   *
    * 
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** + * + * *
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** + * + * *
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
@@ -372,6 +431,8 @@ public interface ListFindingsRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -379,10 +440,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string page_token = 8; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -390,18 +454,21 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string page_token = 8; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 9; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java index 98d8ee450..06537da56 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Response message for listing findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsResponse} */ -public final class ListFindingsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListFindingsResponse) ListFindingsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingsResponse.newBuilder() to construct. private ListFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFindingsResponse() { listFindingsResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,46 +72,56 @@ private ListFindingsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - listFindingsResults_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - listFindingsResults_.add( - input.readMessage(com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + listFindingsResults_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1.ListFindingsResponse + .ListFindingsResult>(); + mutable_bitField0_ |= 0x00000001; + } + listFindingsResults_.add( + input.readMessage( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .parser(), + extensionRegistry)); + break; } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 32: { + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - totalSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + case 32: + { + totalSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,8 +129,7 @@ private ListFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { listFindingsResults_ = java.util.Collections.unmodifiableList(listFindingsResults_); @@ -112,42 +138,54 @@ private ListFindingsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListFindingsResponse.class, com.google.cloud.securitycenter.v1.ListFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListFindingsResponse.class, + com.google.cloud.securitycenter.v1.ListFindingsResponse.Builder.class); } - public interface ListFindingsResultOrBuilder extends + public interface ListFindingsResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Finding matching the search request.
      * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; + * * @return Whether the finding field is set. */ boolean hasFinding(); /** + * + * *
      * Finding matching the search request.
      * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; + * * @return The finding. */ com.google.cloud.securitycenter.v1.Finding getFinding(); /** + * + * *
      * Finding matching the search request.
      * 
@@ -157,83 +195,112 @@ public interface ListFindingsResultOrBuilder extends com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder(); /** + * + * *
      * State change of the finding between the points in time.
      * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * * @return The enum numeric value on the wire for stateChange. */ int getStateChangeValue(); /** + * + * *
      * State change of the finding between the points in time.
      * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * * @return The stateChange. */ - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange getStateChange(); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + getStateChange(); /** + * + * *
      * Output only. Resource that is associated with this finding.
      * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
      * Output only. Resource that is associated with this finding.
      * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The resource. */ - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource getResource(); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + getResource(); /** + * + * *
      * Output only. Resource that is associated with this finding.
      * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder getResourceOrBuilder(); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder + getResourceOrBuilder(); } /** + * + * *
    * Result containing the Finding and its StateChange.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult} */ - public static final class ListFindingsResult extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ListFindingsResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) ListFindingsResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingsResult.newBuilder() to construct. private ListFindingsResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFindingsResult() { stateChange_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFindingsResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -252,45 +319,56 @@ private ListFindingsResult( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1.Finding.Builder subBuilder = null; - if (finding_ != null) { - subBuilder = finding_.toBuilder(); - } - finding_ = input.readMessage(com.google.cloud.securitycenter.v1.Finding.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(finding_); - finding_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); + case 10: + { + com.google.cloud.securitycenter.v1.Finding.Builder subBuilder = null; + if (finding_ != null) { + subBuilder = finding_.toBuilder(); + } + finding_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Finding.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finding_); + finding_ = subBuilder.buildPartial(); + } - stateChange_ = rawValue; - break; - } - case 26: { - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); + break; } - resource_ = input.readMessage(com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); + case 16: + { + int rawValue = input.readEnum(); + + stateChange_ = rawValue; + break; } + case 26: + { + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .Builder + subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -298,27 +376,32 @@ private ListFindingsResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.class, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder.class); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.class, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder + .class); } /** + * + * *
      * The change in state of the finding.
      * When querying across two points in time this describes
@@ -329,11 +412,13 @@ private ListFindingsResult(
      * supplied in the request the state change will be: UNUSED
      * 
* - * Protobuf enum {@code google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange} + * Protobuf enum {@code + * google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange} */ - public enum StateChange - implements com.google.protobuf.ProtocolMessageEnum { + public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * State change is unused, this is the canonical default for this enum.
        * 
@@ -342,6 +427,8 @@ public enum StateChange */ UNUSED(0), /** + * + * *
        * The finding has changed state in some way between the points in time
        * and existed at both points.
@@ -351,6 +438,8 @@ public enum StateChange
        */
       CHANGED(1),
       /**
+       *
+       *
        * 
        * The finding has not changed state between the points in time and
        * existed at both points.
@@ -360,6 +449,8 @@ public enum StateChange
        */
       UNCHANGED(2),
       /**
+       *
+       *
        * 
        * The finding was created between the points in time.
        * 
@@ -368,6 +459,8 @@ public enum StateChange */ ADDED(3), /** + * + * *
        * The finding at timestamp does not match the filter specified, but it
        * did at timestamp - compare_duration.
@@ -380,6 +473,8 @@ public enum StateChange
       ;
 
       /**
+       *
+       *
        * 
        * State change is unused, this is the canonical default for this enum.
        * 
@@ -388,6 +483,8 @@ public enum StateChange */ public static final int UNUSED_VALUE = 0; /** + * + * *
        * The finding has changed state in some way between the points in time
        * and existed at both points.
@@ -397,6 +494,8 @@ public enum StateChange
        */
       public static final int CHANGED_VALUE = 1;
       /**
+       *
+       *
        * 
        * The finding has not changed state between the points in time and
        * existed at both points.
@@ -406,6 +505,8 @@ public enum StateChange
        */
       public static final int UNCHANGED_VALUE = 2;
       /**
+       *
+       *
        * 
        * The finding was created between the points in time.
        * 
@@ -414,6 +515,8 @@ public enum StateChange */ public static final int ADDED_VALUE = 3; /** + * + * *
        * The finding at timestamp does not match the filter specified, but it
        * did at timestamp - compare_duration.
@@ -423,7 +526,6 @@ public enum StateChange
        */
       public static final int REMOVED_VALUE = 4;
 
-
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -448,51 +550,56 @@ public static StateChange valueOf(int value) {
        */
       public static StateChange forNumber(int value) {
         switch (value) {
-          case 0: return UNUSED;
-          case 1: return CHANGED;
-          case 2: return UNCHANGED;
-          case 3: return ADDED;
-          case 4: return REMOVED;
-          default: return null;
+          case 0:
+            return UNUSED;
+          case 1:
+            return CHANGED;
+          case 2:
+            return UNCHANGED;
+          case 3:
+            return ADDED;
+          case 4:
+            return REMOVED;
+          default:
+            return null;
         }
       }
 
-      public static com.google.protobuf.Internal.EnumLiteMap
-          internalGetValueMap() {
+      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
         return internalValueMap;
       }
-      private static final com.google.protobuf.Internal.EnumLiteMap<
-          StateChange> internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public StateChange findValueByNumber(int number) {
-                return StateChange.forNumber(number);
-              }
-            };
 
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor
-          getValueDescriptor() {
+      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public StateChange findValueByNumber(int number) {
+              return StateChange.forNumber(number);
+            }
+          };
+
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-      public final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptorForType() {
+
+      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
         return getDescriptor();
       }
-      public static final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptor() {
-        return com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.getDescriptor().getEnumTypes().get(0);
+
+      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+        return com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
+            .getDescriptor()
+            .getEnumTypes()
+            .get(0);
       }
 
       private static final StateChange[] VALUES = values();
 
-      public static StateChange valueOf(
-          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static StateChange valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException(
-            "EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -509,153 +616,191 @@ private StateChange(int value) {
       // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange)
     }
 
-    public interface ResourceOrBuilder extends
+    public interface ResourceOrBuilder
+        extends
         // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource)
         com.google.protobuf.MessageOrBuilder {
 
       /**
+       *
+       *
        * 
        * The full resource name of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
        * The full resource name of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
        * The human readable name of the resource.
        * 
* * string display_name = 8; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
        * The human readable name of the resource.
        * 
* * string display_name = 8; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
        * The full resource type of the resource.
        * 
* * string type = 6; + * * @return The type. */ java.lang.String getType(); /** + * + * *
        * The full resource type of the resource.
        * 
* * string type = 6; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
        * The full resource name of project that the resource belongs to.
        * 
* * string project_name = 2; + * * @return The projectName. */ java.lang.String getProjectName(); /** + * + * *
        * The full resource name of project that the resource belongs to.
        * 
* * string project_name = 2; + * * @return The bytes for projectName. */ - com.google.protobuf.ByteString - getProjectNameBytes(); + com.google.protobuf.ByteString getProjectNameBytes(); /** + * + * *
        * The project ID that the resource belongs to.
        * 
* * string project_display_name = 3; + * * @return The projectDisplayName. */ java.lang.String getProjectDisplayName(); /** + * + * *
        * The project ID that the resource belongs to.
        * 
* * string project_display_name = 3; + * * @return The bytes for projectDisplayName. */ - com.google.protobuf.ByteString - getProjectDisplayNameBytes(); + com.google.protobuf.ByteString getProjectDisplayNameBytes(); /** + * + * *
        * The full resource name of resource's parent.
        * 
* * string parent_name = 4; + * * @return The parentName. */ java.lang.String getParentName(); /** + * + * *
        * The full resource name of resource's parent.
        * 
* * string parent_name = 4; + * * @return The bytes for parentName. */ - com.google.protobuf.ByteString - getParentNameBytes(); + com.google.protobuf.ByteString getParentNameBytes(); /** + * + * *
        * The human readable name of resource's parent.
        * 
* * string parent_display_name = 5; + * * @return The parentDisplayName. */ java.lang.String getParentDisplayName(); /** + * + * *
        * The human readable name of resource's parent.
        * 
* * string parent_display_name = 5; + * * @return The bytes for parentDisplayName. */ - com.google.protobuf.ByteString - getParentDisplayNameBytes(); + com.google.protobuf.ByteString getParentDisplayNameBytes(); /** + * + * *
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -664,9 +809,10 @@ public interface ResourceOrBuilder extends
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
        */
-      java.util.List 
-          getFoldersList();
+      java.util.List getFoldersList();
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -677,6 +823,8 @@ public interface ResourceOrBuilder extends
        */
       com.google.cloud.securitycenter.v1.Folder getFolders(int index);
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -687,6 +835,8 @@ public interface ResourceOrBuilder extends
        */
       int getFoldersCount();
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -695,9 +845,11 @@ public interface ResourceOrBuilder extends
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
        */
-      java.util.List 
+      java.util.List
           getFoldersOrBuilderList();
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -706,26 +858,29 @@ public interface ResourceOrBuilder extends
        *
        * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
        */
-      com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(
-          int index);
+      com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index);
     }
     /**
+     *
+     *
      * 
      * Information related to the Google Cloud resource that is
      * associated with this finding.
      * 
* - * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource} + * Protobuf type {@code + * google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource} */ - public static final class Resource extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Resource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) ResourceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Resource() { name_ = ""; displayName_ = ""; @@ -739,16 +894,15 @@ private Resource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Resource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Resource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -768,64 +922,73 @@ private Resource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - projectName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + projectName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - projectDisplayName_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + projectDisplayName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - parentName_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + parentName_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - parentDisplayName_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + parentDisplayName_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - type_ = s; - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - folders_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + type_ = s; + break; } - folders_.add( - input.readMessage(com.google.cloud.securitycenter.v1.Folder.parser(), extensionRegistry)); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + case 58: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + folders_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + folders_.add( + input.readMessage( + com.google.cloud.securitycenter.v1.Folder.parser(), extensionRegistry)); + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + displayName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -833,8 +996,8 @@ private Resource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { folders_ = java.util.Collections.unmodifiableList(folders_); @@ -843,28 +1006,36 @@ private Resource( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.class, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.Builder.class); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .class, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
        * The full resource name of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -873,30 +1044,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
        * The full resource name of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -907,11 +1078,14 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 8; private volatile java.lang.Object displayName_; /** + * + * *
        * The human readable name of the resource.
        * 
* * string display_name = 8; + * * @return The displayName. */ @java.lang.Override @@ -920,29 +1094,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
        * The human readable name of the resource.
        * 
* * string display_name = 8; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -953,11 +1127,14 @@ public java.lang.String getDisplayName() { public static final int TYPE_FIELD_NUMBER = 6; private volatile java.lang.Object type_; /** + * + * *
        * The full resource type of the resource.
        * 
* * string type = 6; + * * @return The type. */ @java.lang.Override @@ -966,29 +1143,29 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
        * The full resource type of the resource.
        * 
* * string type = 6; + * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -999,11 +1176,14 @@ public java.lang.String getType() { public static final int PROJECT_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object projectName_; /** + * + * *
        * The full resource name of project that the resource belongs to.
        * 
* * string project_name = 2; + * * @return The projectName. */ @java.lang.Override @@ -1012,29 +1192,29 @@ public java.lang.String getProjectName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectName_ = s; return s; } } /** + * + * *
        * The full resource name of project that the resource belongs to.
        * 
* * string project_name = 2; + * * @return The bytes for projectName. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectNameBytes() { + public com.google.protobuf.ByteString getProjectNameBytes() { java.lang.Object ref = projectName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectName_ = b; return b; } else { @@ -1045,11 +1225,14 @@ public java.lang.String getProjectName() { public static final int PROJECT_DISPLAY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object projectDisplayName_; /** + * + * *
        * The project ID that the resource belongs to.
        * 
* * string project_display_name = 3; + * * @return The projectDisplayName. */ @java.lang.Override @@ -1058,29 +1241,29 @@ public java.lang.String getProjectDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectDisplayName_ = s; return s; } } /** + * + * *
        * The project ID that the resource belongs to.
        * 
* * string project_display_name = 3; + * * @return The bytes for projectDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectDisplayNameBytes() { + public com.google.protobuf.ByteString getProjectDisplayNameBytes() { java.lang.Object ref = projectDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectDisplayName_ = b; return b; } else { @@ -1091,11 +1274,14 @@ public java.lang.String getProjectDisplayName() { public static final int PARENT_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object parentName_; /** + * + * *
        * The full resource name of resource's parent.
        * 
* * string parent_name = 4; + * * @return The parentName. */ @java.lang.Override @@ -1104,29 +1290,29 @@ public java.lang.String getParentName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentName_ = s; return s; } } /** + * + * *
        * The full resource name of resource's parent.
        * 
* * string parent_name = 4; + * * @return The bytes for parentName. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentNameBytes() { + public com.google.protobuf.ByteString getParentNameBytes() { java.lang.Object ref = parentName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentName_ = b; return b; } else { @@ -1137,11 +1323,14 @@ public java.lang.String getParentName() { public static final int PARENT_DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object parentDisplayName_; /** + * + * *
        * The human readable name of resource's parent.
        * 
* * string parent_display_name = 5; + * * @return The parentDisplayName. */ @java.lang.Override @@ -1150,29 +1339,29 @@ public java.lang.String getParentDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDisplayName_ = s; return s; } } /** + * + * *
        * The human readable name of resource's parent.
        * 
* * string parent_display_name = 5; + * * @return The bytes for parentDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentDisplayNameBytes() { + public com.google.protobuf.ByteString getParentDisplayNameBytes() { java.lang.Object ref = parentDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentDisplayName_ = b; return b; } else { @@ -1183,6 +1372,8 @@ public java.lang.String getParentDisplayName() { public static final int FOLDERS_FIELD_NUMBER = 7; private java.util.List folders_; /** + * + * *
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -1196,6 +1387,8 @@ public java.util.List getFoldersList(
         return folders_;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -1205,11 +1398,13 @@ public java.util.List getFoldersList(
        * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
        */
       @java.lang.Override
-      public java.util.List 
+      public java.util.List
           getFoldersOrBuilderList() {
         return folders_;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -1223,6 +1418,8 @@ public int getFoldersCount() {
         return folders_.size();
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -1236,6 +1433,8 @@ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) {
         return folders_.get(index);
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -1245,12 +1444,12 @@ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) {
        * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
        */
       @java.lang.Override
-      public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(
-          int index) {
+      public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index) {
         return folders_.get(index);
       }
 
       private byte memoizedIsInitialized = -1;
+
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
@@ -1262,8 +1461,7 @@ public final boolean isInitialized() {
       }
 
       @java.lang.Override
-      public void writeTo(com.google.protobuf.CodedOutputStream output)
-                          throws java.io.IOException {
+      public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
         }
@@ -1316,8 +1514,7 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, type_);
         }
         for (int i = 0; i < folders_.size(); i++) {
-          size += com.google.protobuf.CodedOutputStream
-            .computeMessageSize(7, folders_.get(i));
+          size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, folders_.get(i));
         }
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, displayName_);
@@ -1330,29 +1527,25 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
-         return true;
+          return true;
         }
-        if (!(obj instanceof com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource)) {
+        if (!(obj
+            instanceof
+            com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource)) {
           return super.equals(obj);
         }
-        com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource other = (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) obj;
-
-        if (!getName()
-            .equals(other.getName())) return false;
-        if (!getDisplayName()
-            .equals(other.getDisplayName())) return false;
-        if (!getType()
-            .equals(other.getType())) return false;
-        if (!getProjectName()
-            .equals(other.getProjectName())) return false;
-        if (!getProjectDisplayName()
-            .equals(other.getProjectDisplayName())) return false;
-        if (!getParentName()
-            .equals(other.getParentName())) return false;
-        if (!getParentDisplayName()
-            .equals(other.getParentDisplayName())) return false;
-        if (!getFoldersList()
-            .equals(other.getFoldersList())) return false;
+        com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource other =
+            (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource)
+                obj;
+
+        if (!getName().equals(other.getName())) return false;
+        if (!getDisplayName().equals(other.getDisplayName())) return false;
+        if (!getType().equals(other.getType())) return false;
+        if (!getProjectName().equals(other.getProjectName())) return false;
+        if (!getProjectDisplayName().equals(other.getProjectDisplayName())) return false;
+        if (!getParentName().equals(other.getParentName())) return false;
+        if (!getParentDisplayName().equals(other.getParentDisplayName())) return false;
+        if (!getFoldersList().equals(other.getFoldersList())) return false;
         if (!unknownFields.equals(other.unknownFields)) return false;
         return true;
       }
@@ -1387,88 +1580,116 @@ public int hashCode() {
         return hash;
       }
 
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
-          java.nio.ByteBuffer data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
+              .Resource
+          parseFrom(java.nio.ByteBuffer data)
+              throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
-          java.nio.ByteBuffer data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
+              .Resource
+          parseFrom(
+              java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
-          com.google.protobuf.ByteString data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
+              .Resource
+          parseFrom(com.google.protobuf.ByteString data)
+              throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
-          com.google.protobuf.ByteString data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
+              .Resource
+          parseFrom(
+              com.google.protobuf.ByteString data,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(byte[] data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
+              .Resource
+          parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
-          byte[] data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
+              .Resource
+          parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(java.io.InputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input);
+
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
+              .Resource
+          parseFrom(java.io.InputStream input) throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
-          java.io.InputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input, extensionRegistry);
+
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
+              .Resource
+          parseFrom(
+              java.io.InputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+            PARSER, input, extensionRegistry);
       }
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseDelimitedFrom(java.io.InputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseDelimitedWithIOException(PARSER, input);
+
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
+              .Resource
+          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseDelimitedFrom(
-          java.io.InputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
+              .Resource
+          parseDelimitedFrom(
+              java.io.InputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+            PARSER, input, extensionRegistry);
       }
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
-          com.google.protobuf.CodedInputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input);
+
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
+              .Resource
+          parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input, extensionRegistry);
+
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
+              .Resource
+          parseFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+            PARSER, input, extensionRegistry);
       }
 
       @java.lang.Override
-      public Builder newBuilderForType() { return newBuilder(); }
+      public Builder newBuilderForType() {
+        return newBuilder();
+      }
+
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
-      public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource prototype) {
+
+      public static Builder newBuilder(
+          com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource
+              prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
+
       @java.lang.Override
       public Builder toBuilder() {
-        return this == DEFAULT_INSTANCE
-            ? new Builder() : new Builder().mergeFrom(this);
+        return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
 
       @java.lang.Override
@@ -1478,46 +1699,56 @@ protected Builder newBuilderForType(
         return builder;
       }
       /**
+       *
+       *
        * 
        * Information related to the Google Cloud resource that is
        * associated with this finding.
        * 
* - * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource} + * Protobuf type {@code + * google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .ResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.class, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.Builder.class); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource.class, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource.Builder.class); } - // Construct using com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFoldersFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1545,19 +1776,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.getDefaultInstance(); + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource build() { - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource result = buildPartial(); + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + build() { + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1565,8 +1800,12 @@ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResul } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource buildPartial() { - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource result = new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource(this); + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + buildPartial() { + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + result = + new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -1592,46 +1831,58 @@ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource)other); + if (other + instanceof + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource other) { - if (other == com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + other) { + if (other + == com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1678,9 +1929,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListFindingsResponse foldersBuilder_ = null; folders_ = other.folders_; bitField0_ = (bitField0_ & ~0x00000001); - foldersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFoldersFieldBuilder() : null; + foldersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFoldersFieldBuilder() + : null; } else { foldersBuilder_.addAllMessages(other.folders_); } @@ -1701,11 +1953,15 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource parsedMessage = null; + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1714,23 +1970,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
          * The full resource name of the resource. See:
          * https://cloud.google.com/apis/design/resource_names#full_resource_name
          * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1739,21 +1998,22 @@ public java.lang.String getName() { } } /** + * + * *
          * The full resource name of the resource. See:
          * https://cloud.google.com/apis/design/resource_names#full_resource_name
          * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1761,57 +2021,64 @@ public java.lang.String getName() { } } /** + * + * *
          * The full resource name of the resource. See:
          * https://cloud.google.com/apis/design/resource_names#full_resource_name
          * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
          * The full resource name of the resource. See:
          * https://cloud.google.com/apis/design/resource_names#full_resource_name
          * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
          * The full resource name of the resource. See:
          * https://cloud.google.com/apis/design/resource_names#full_resource_name
          * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1819,18 +2086,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
          * The human readable name of the resource.
          * 
* * string display_name = 8; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1839,20 +2108,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
          * The human readable name of the resource.
          * 
* * string display_name = 8; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1860,54 +2130,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
          * The human readable name of the resource.
          * 
* * string display_name = 8; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
          * The human readable name of the resource.
          * 
* * string display_name = 8; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
          * The human readable name of the resource.
          * 
* * string display_name = 8; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1915,18 +2192,20 @@ public Builder setDisplayNameBytes( private java.lang.Object type_ = ""; /** + * + * *
          * The full resource type of the resource.
          * 
* * string type = 6; + * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -1935,20 +2214,21 @@ public java.lang.String getType() { } } /** + * + * *
          * The full resource type of the resource.
          * 
* * string type = 6; + * * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -1956,54 +2236,61 @@ public java.lang.String getType() { } } /** + * + * *
          * The full resource type of the resource.
          * 
* * string type = 6; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
          * The full resource type of the resource.
          * 
* * string type = 6; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
          * The full resource type of the resource.
          * 
* * string type = 6; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; @@ -2011,18 +2298,20 @@ public Builder setTypeBytes( private java.lang.Object projectName_ = ""; /** + * + * *
          * The full resource name of project that the resource belongs to.
          * 
* * string project_name = 2; + * * @return The projectName. */ public java.lang.String getProjectName() { java.lang.Object ref = projectName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectName_ = s; return s; @@ -2031,20 +2320,21 @@ public java.lang.String getProjectName() { } } /** + * + * *
          * The full resource name of project that the resource belongs to.
          * 
* * string project_name = 2; + * * @return The bytes for projectName. */ - public com.google.protobuf.ByteString - getProjectNameBytes() { + public com.google.protobuf.ByteString getProjectNameBytes() { java.lang.Object ref = projectName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectName_ = b; return b; } else { @@ -2052,54 +2342,61 @@ public java.lang.String getProjectName() { } } /** + * + * *
          * The full resource name of project that the resource belongs to.
          * 
* * string project_name = 2; + * * @param value The projectName to set. * @return This builder for chaining. */ - public Builder setProjectName( - java.lang.String value) { + public Builder setProjectName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectName_ = value; onChanged(); return this; } /** + * + * *
          * The full resource name of project that the resource belongs to.
          * 
* * string project_name = 2; + * * @return This builder for chaining. */ public Builder clearProjectName() { - + projectName_ = getDefaultInstance().getProjectName(); onChanged(); return this; } /** + * + * *
          * The full resource name of project that the resource belongs to.
          * 
* * string project_name = 2; + * * @param value The bytes for projectName to set. * @return This builder for chaining. */ - public Builder setProjectNameBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectName_ = value; onChanged(); return this; @@ -2107,18 +2404,20 @@ public Builder setProjectNameBytes( private java.lang.Object projectDisplayName_ = ""; /** + * + * *
          * The project ID that the resource belongs to.
          * 
* * string project_display_name = 3; + * * @return The projectDisplayName. */ public java.lang.String getProjectDisplayName() { java.lang.Object ref = projectDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectDisplayName_ = s; return s; @@ -2127,20 +2426,21 @@ public java.lang.String getProjectDisplayName() { } } /** + * + * *
          * The project ID that the resource belongs to.
          * 
* * string project_display_name = 3; + * * @return The bytes for projectDisplayName. */ - public com.google.protobuf.ByteString - getProjectDisplayNameBytes() { + public com.google.protobuf.ByteString getProjectDisplayNameBytes() { java.lang.Object ref = projectDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectDisplayName_ = b; return b; } else { @@ -2148,54 +2448,61 @@ public java.lang.String getProjectDisplayName() { } } /** + * + * *
          * The project ID that the resource belongs to.
          * 
* * string project_display_name = 3; + * * @param value The projectDisplayName to set. * @return This builder for chaining. */ - public Builder setProjectDisplayName( - java.lang.String value) { + public Builder setProjectDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectDisplayName_ = value; onChanged(); return this; } /** + * + * *
          * The project ID that the resource belongs to.
          * 
* * string project_display_name = 3; + * * @return This builder for chaining. */ public Builder clearProjectDisplayName() { - + projectDisplayName_ = getDefaultInstance().getProjectDisplayName(); onChanged(); return this; } /** + * + * *
          * The project ID that the resource belongs to.
          * 
* * string project_display_name = 3; + * * @param value The bytes for projectDisplayName to set. * @return This builder for chaining. */ - public Builder setProjectDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectDisplayName_ = value; onChanged(); return this; @@ -2203,18 +2510,20 @@ public Builder setProjectDisplayNameBytes( private java.lang.Object parentName_ = ""; /** + * + * *
          * The full resource name of resource's parent.
          * 
* * string parent_name = 4; + * * @return The parentName. */ public java.lang.String getParentName() { java.lang.Object ref = parentName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentName_ = s; return s; @@ -2223,20 +2532,21 @@ public java.lang.String getParentName() { } } /** + * + * *
          * The full resource name of resource's parent.
          * 
* * string parent_name = 4; + * * @return The bytes for parentName. */ - public com.google.protobuf.ByteString - getParentNameBytes() { + public com.google.protobuf.ByteString getParentNameBytes() { java.lang.Object ref = parentName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentName_ = b; return b; } else { @@ -2244,54 +2554,61 @@ public java.lang.String getParentName() { } } /** + * + * *
          * The full resource name of resource's parent.
          * 
* * string parent_name = 4; + * * @param value The parentName to set. * @return This builder for chaining. */ - public Builder setParentName( - java.lang.String value) { + public Builder setParentName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parentName_ = value; onChanged(); return this; } /** + * + * *
          * The full resource name of resource's parent.
          * 
* * string parent_name = 4; + * * @return This builder for chaining. */ public Builder clearParentName() { - + parentName_ = getDefaultInstance().getParentName(); onChanged(); return this; } /** + * + * *
          * The full resource name of resource's parent.
          * 
* * string parent_name = 4; + * * @param value The bytes for parentName to set. * @return This builder for chaining. */ - public Builder setParentNameBytes( - com.google.protobuf.ByteString value) { + public Builder setParentNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentName_ = value; onChanged(); return this; @@ -2299,18 +2616,20 @@ public Builder setParentNameBytes( private java.lang.Object parentDisplayName_ = ""; /** + * + * *
          * The human readable name of resource's parent.
          * 
* * string parent_display_name = 5; + * * @return The parentDisplayName. */ public java.lang.String getParentDisplayName() { java.lang.Object ref = parentDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDisplayName_ = s; return s; @@ -2319,20 +2638,21 @@ public java.lang.String getParentDisplayName() { } } /** + * + * *
          * The human readable name of resource's parent.
          * 
* * string parent_display_name = 5; + * * @return The bytes for parentDisplayName. */ - public com.google.protobuf.ByteString - getParentDisplayNameBytes() { + public com.google.protobuf.ByteString getParentDisplayNameBytes() { java.lang.Object ref = parentDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentDisplayName_ = b; return b; } else { @@ -2340,72 +2660,85 @@ public java.lang.String getParentDisplayName() { } } /** + * + * *
          * The human readable name of resource's parent.
          * 
* * string parent_display_name = 5; + * * @param value The parentDisplayName to set. * @return This builder for chaining. */ - public Builder setParentDisplayName( - java.lang.String value) { + public Builder setParentDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parentDisplayName_ = value; onChanged(); return this; } /** + * + * *
          * The human readable name of resource's parent.
          * 
* * string parent_display_name = 5; + * * @return This builder for chaining. */ public Builder clearParentDisplayName() { - + parentDisplayName_ = getDefaultInstance().getParentDisplayName(); onChanged(); return this; } /** + * + * *
          * The human readable name of resource's parent.
          * 
* * string parent_display_name = 5; + * * @param value The bytes for parentDisplayName to set. * @return This builder for chaining. */ - public Builder setParentDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setParentDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentDisplayName_ = value; onChanged(); return this; } private java.util.List folders_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { folders_ = new java.util.ArrayList(folders_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder> foldersBuilder_; + com.google.cloud.securitycenter.v1.Folder, + com.google.cloud.securitycenter.v1.Folder.Builder, + com.google.cloud.securitycenter.v1.FolderOrBuilder> + foldersBuilder_; /** + * + * *
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2422,6 +2755,8 @@ public java.util.List getFoldersList(
           }
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2438,6 +2773,8 @@ public int getFoldersCount() {
           }
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2454,6 +2791,8 @@ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) {
           }
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2462,8 +2801,7 @@ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) {
          *
          * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
          */
-        public Builder setFolders(
-            int index, com.google.cloud.securitycenter.v1.Folder value) {
+        public Builder setFolders(int index, com.google.cloud.securitycenter.v1.Folder value) {
           if (foldersBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
@@ -2477,6 +2815,8 @@ public Builder setFolders(
           return this;
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2497,6 +2837,8 @@ public Builder setFolders(
           return this;
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2519,6 +2861,8 @@ public Builder addFolders(com.google.cloud.securitycenter.v1.Folder value) {
           return this;
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2527,8 +2871,7 @@ public Builder addFolders(com.google.cloud.securitycenter.v1.Folder value) {
          *
          * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
          */
-        public Builder addFolders(
-            int index, com.google.cloud.securitycenter.v1.Folder value) {
+        public Builder addFolders(int index, com.google.cloud.securitycenter.v1.Folder value) {
           if (foldersBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
@@ -2542,6 +2885,8 @@ public Builder addFolders(
           return this;
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2562,6 +2907,8 @@ public Builder addFolders(
           return this;
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2582,6 +2929,8 @@ public Builder addFolders(
           return this;
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2594,8 +2943,7 @@ public Builder addAllFolders(
             java.lang.Iterable values) {
           if (foldersBuilder_ == null) {
             ensureFoldersIsMutable();
-            com.google.protobuf.AbstractMessageLite.Builder.addAll(
-                values, folders_);
+            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_);
             onChanged();
           } else {
             foldersBuilder_.addAllMessages(values);
@@ -2603,6 +2951,8 @@ public Builder addAllFolders(
           return this;
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2622,6 +2972,8 @@ public Builder clearFolders() {
           return this;
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2641,6 +2993,8 @@ public Builder removeFolders(int index) {
           return this;
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2649,11 +3003,12 @@ public Builder removeFolders(int index) {
          *
          * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
          */
-        public com.google.cloud.securitycenter.v1.Folder.Builder getFoldersBuilder(
-            int index) {
+        public com.google.cloud.securitycenter.v1.Folder.Builder getFoldersBuilder(int index) {
           return getFoldersFieldBuilder().getBuilder(index);
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2662,14 +3017,16 @@ public com.google.cloud.securitycenter.v1.Folder.Builder getFoldersBuilder(
          *
          * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
          */
-        public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(
-            int index) {
+        public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index) {
           if (foldersBuilder_ == null) {
-            return folders_.get(index);  } else {
+            return folders_.get(index);
+          } else {
             return foldersBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2678,8 +3035,8 @@ public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(
          *
          * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
          */
-        public java.util.List 
-             getFoldersOrBuilderList() {
+        public java.util.List
+            getFoldersOrBuilderList() {
           if (foldersBuilder_ != null) {
             return foldersBuilder_.getMessageOrBuilderList();
           } else {
@@ -2687,6 +3044,8 @@ public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(
           }
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2696,10 +3055,12 @@ public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(
          * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
          */
         public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder() {
-          return getFoldersFieldBuilder().addBuilder(
-              com.google.cloud.securitycenter.v1.Folder.getDefaultInstance());
+          return getFoldersFieldBuilder()
+              .addBuilder(com.google.cloud.securitycenter.v1.Folder.getDefaultInstance());
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2708,12 +3069,13 @@ public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder() {
          *
          * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
          */
-        public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder(
-            int index) {
-          return getFoldersFieldBuilder().addBuilder(
-              index, com.google.cloud.securitycenter.v1.Folder.getDefaultInstance());
+        public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder(int index) {
+          return getFoldersFieldBuilder()
+              .addBuilder(index, com.google.cloud.securitycenter.v1.Folder.getDefaultInstance());
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2722,24 +3084,28 @@ public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder(
          *
          * repeated .google.cloud.securitycenter.v1.Folder folders = 7;
          */
-        public java.util.List 
-             getFoldersBuilderList() {
+        public java.util.List
+            getFoldersBuilderList() {
           return getFoldersFieldBuilder().getBuilderList();
         }
+
         private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder> 
+                com.google.cloud.securitycenter.v1.Folder,
+                com.google.cloud.securitycenter.v1.Folder.Builder,
+                com.google.cloud.securitycenter.v1.FolderOrBuilder>
             getFoldersFieldBuilder() {
           if (foldersBuilder_ == null) {
-            foldersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder>(
-                    folders_,
-                    ((bitField0_ & 0x00000001) != 0),
-                    getParentForChildren(),
-                    isClean());
+            foldersBuilder_ =
+                new com.google.protobuf.RepeatedFieldBuilderV3<
+                    com.google.cloud.securitycenter.v1.Folder,
+                    com.google.cloud.securitycenter.v1.Folder.Builder,
+                    com.google.cloud.securitycenter.v1.FolderOrBuilder>(
+                    folders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
             folders_ = null;
           }
           return foldersBuilder_;
         }
+
         @java.lang.Override
         public final Builder setUnknownFields(
             final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -2752,30 +3118,36 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
 
-
         // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource)
       }
 
       // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource)
-      private static final com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource DEFAULT_INSTANCE;
+      private static final com.google.cloud.securitycenter.v1.ListFindingsResponse
+              .ListFindingsResult.Resource
+          DEFAULT_INSTANCE;
+
       static {
-        DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource();
+        DEFAULT_INSTANCE =
+            new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
+                .Resource();
       }
 
-      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource getDefaultInstance() {
+      public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult
+              .Resource
+          getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
 
-      private static final com.google.protobuf.Parser
-          PARSER = new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Resource parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Resource(input, extensionRegistry);
-        }
-      };
+      private static final com.google.protobuf.Parser PARSER =
+          new com.google.protobuf.AbstractParser() {
+            @java.lang.Override
+            public Resource parsePartialFrom(
+                com.google.protobuf.CodedInputStream input,
+                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+                throws com.google.protobuf.InvalidProtocolBufferException {
+              return new Resource(input, extensionRegistry);
+            }
+          };
 
       public static com.google.protobuf.Parser parser() {
         return PARSER;
@@ -2787,20 +3159,23 @@ public com.google.protobuf.Parser getParserForType() {
       }
 
       @java.lang.Override
-      public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource getDefaultInstanceForType() {
+      public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource
+          getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
-
     }
 
     public static final int FINDING_FIELD_NUMBER = 1;
     private com.google.cloud.securitycenter.v1.Finding finding_;
     /**
+     *
+     *
      * 
      * Finding matching the search request.
      * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; + * * @return Whether the finding field is set. */ @java.lang.Override @@ -2808,18 +3183,25 @@ public boolean hasFinding() { return finding_ != null; } /** + * + * *
      * Finding matching the search request.
      * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; + * * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding getFinding() { - return finding_ == null ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() + : finding_; } /** + * + * *
      * Finding matching the search request.
      * 
@@ -2834,38 +3216,63 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() public static final int STATE_CHANGE_FIELD_NUMBER = 2; private int stateChange_; /** + * + * *
      * State change of the finding between the points in time.
      * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * * @return The enum numeric value on the wire for stateChange. */ - @java.lang.Override public int getStateChangeValue() { + @java.lang.Override + public int getStateChangeValue() { return stateChange_; } /** + * + * *
      * State change of the finding between the points in time.
      * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * * @return The stateChange. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange getStateChange() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + getStateChange() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange result = com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange.valueOf(stateChange_); - return result == null ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + result = + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + .valueOf(stateChange_); + return result == null + ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + .UNRECOGNIZED + : result; } public static final int RESOURCE_FIELD_NUMBER = 3; - private com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource_; + private com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + resource_; /** + * + * *
      * Output only. Resource that is associated with this finding.
      * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the resource field is set. */ @java.lang.Override @@ -2873,30 +3280,46 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
      * Output only. Resource that is associated with this finding.
      * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The resource. */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource getResource() { - return resource_ == null ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.getDefaultInstance() : resource_; + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + getResource() { + return resource_ == null + ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .getDefaultInstance() + : resource_; } /** + * + * *
      * Output only. Resource that is associated with this finding.
      * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder getResourceOrBuilder() { + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .ResourceOrBuilder + getResourceOrBuilder() { return getResource(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2908,12 +3331,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (finding_ != null) { output.writeMessage(1, getFinding()); } - if (stateChange_ != com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange.UNUSED.getNumber()) { + if (stateChange_ + != com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + .UNUSED + .getNumber()) { output.writeEnum(2, stateChange_); } if (resource_ != null) { @@ -2929,16 +3354,16 @@ public int getSerializedSize() { size = 0; if (finding_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getFinding()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFinding()); } - if (stateChange_ != com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange.UNUSED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, stateChange_); + if (stateChange_ + != com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + .UNUSED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, stateChange_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2948,23 +3373,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult)) { + if (!(obj + instanceof com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult other = (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) obj; + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult other = + (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) obj; if (hasFinding() != other.hasFinding()) return false; if (hasFinding()) { - if (!getFinding() - .equals(other.getFinding())) return false; + if (!getFinding().equals(other.getFinding())) return false; } if (stateChange_ != other.stateChange_) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2992,88 +3417,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3083,44 +3521,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Result containing the Finding and its StateChange.
      * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.class, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder.class); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.class, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder + .class); } - // Construct using com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -3142,19 +3586,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.getDefaultInstance(); + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult build() { - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult result = buildPartial(); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3162,8 +3609,10 @@ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResul } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult buildPartial() { - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult result = new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult(this); + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + buildPartial() { + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult result = + new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult(this); if (findingBuilder_ == null) { result.finding_ = finding_; } else { @@ -3183,46 +3632,54 @@ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult)other); + if (other + instanceof com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult other) { - if (other == com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult other) { + if (other + == com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .getDefaultInstance()) return this; if (other.hasFinding()) { mergeFinding(other.getFinding()); } @@ -3247,11 +3704,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parsedMessage = null; + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3263,34 +3723,47 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder> findingBuilder_; + com.google.cloud.securitycenter.v1.Finding, + com.google.cloud.securitycenter.v1.Finding.Builder, + com.google.cloud.securitycenter.v1.FindingOrBuilder> + findingBuilder_; /** + * + * *
        * Finding matching the search request.
        * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; + * * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; } /** + * + * *
        * Finding matching the search request.
        * 
* * .google.cloud.securitycenter.v1.Finding finding = 1; + * * @return The finding. */ public com.google.cloud.securitycenter.v1.Finding getFinding() { if (findingBuilder_ == null) { - return finding_ == null ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() + : finding_; } else { return findingBuilder_.getMessage(); } } /** + * + * *
        * Finding matching the search request.
        * 
@@ -3311,6 +3784,8 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) { return this; } /** + * + * *
        * Finding matching the search request.
        * 
@@ -3329,6 +3804,8 @@ public Builder setFinding( return this; } /** + * + * *
        * Finding matching the search request.
        * 
@@ -3339,7 +3816,9 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) { if (findingBuilder_ == null) { if (finding_ != null) { finding_ = - com.google.cloud.securitycenter.v1.Finding.newBuilder(finding_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.Finding.newBuilder(finding_) + .mergeFrom(value) + .buildPartial(); } else { finding_ = value; } @@ -3351,6 +3830,8 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) { return this; } /** + * + * *
        * Finding matching the search request.
        * 
@@ -3369,6 +3850,8 @@ public Builder clearFinding() { return this; } /** + * + * *
        * Finding matching the search request.
        * 
@@ -3376,11 +3859,13 @@ public Builder clearFinding() { * .google.cloud.securitycenter.v1.Finding finding = 1; */ public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() { - + onChanged(); return getFindingFieldBuilder().getBuilder(); } /** + * + * *
        * Finding matching the search request.
        * 
@@ -3391,11 +3876,14 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() if (findingBuilder_ != null) { return findingBuilder_.getMessageOrBuilder(); } else { - return finding_ == null ? - com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() + : finding_; } } /** + * + * *
        * Finding matching the search request.
        * 
@@ -3403,14 +3891,17 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() * .google.cloud.securitycenter.v1.Finding finding = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder> + com.google.cloud.securitycenter.v1.Finding, + com.google.cloud.securitycenter.v1.Finding.Builder, + com.google.cloud.securitycenter.v1.FindingOrBuilder> getFindingFieldBuilder() { if (findingBuilder_ == null) { - findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder>( - getFinding(), - getParentForChildren(), - isClean()); + findingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Finding, + com.google.cloud.securitycenter.v1.Finding.Builder, + com.google.cloud.securitycenter.v1.FindingOrBuilder>( + getFinding(), getParentForChildren(), isClean()); finding_ = null; } return findingBuilder_; @@ -3418,115 +3909,176 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() private int stateChange_ = 0; /** + * + * *
        * State change of the finding between the points in time.
        * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * * @return The enum numeric value on the wire for stateChange. */ - @java.lang.Override public int getStateChangeValue() { + @java.lang.Override + public int getStateChangeValue() { return stateChange_; } /** + * + * *
        * State change of the finding between the points in time.
        * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * * @param value The enum numeric value on the wire for stateChange to set. * @return This builder for chaining. */ public Builder setStateChangeValue(int value) { - + stateChange_ = value; onChanged(); return this; } /** + * + * *
        * State change of the finding between the points in time.
        * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * * @return The stateChange. */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange getStateChange() { + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + getStateChange() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange result = com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange.valueOf(stateChange_); - return result == null ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + result = + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .StateChange.valueOf(stateChange_); + return result == null + ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + .UNRECOGNIZED + : result; } /** + * + * *
        * State change of the finding between the points in time.
        * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * * @param value The stateChange to set. * @return This builder for chaining. */ - public Builder setStateChange(com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange value) { + public Builder setStateChange( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange + value) { if (value == null) { throw new NullPointerException(); } - + stateChange_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * State change of the finding between the points in time.
        * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * * @return This builder for chaining. */ public Builder clearStateChange() { - + stateChange_ = 0; onChanged(); return this; } - private com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource_; + private com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.Builder, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder> resourceBuilder_; + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .Builder, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .ResourceOrBuilder> + resourceBuilder_; /** + * + * *
        * Output only. Resource that is associated with this finding.
        * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
        * Output only. Resource that is associated with this finding.
        * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The resource. */ - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource getResource() { + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
        * Output only. Resource that is associated with this finding.
        * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setResource(com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource value) { + public Builder setResource( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + value) { if (resourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3540,14 +4092,20 @@ public Builder setResource(com.google.cloud.securitycenter.v1.ListFindingsRespon return this; } /** + * + * *
        * Output only. Resource that is associated with this finding.
        * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setResource( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.Builder builderForValue) { + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .Builder + builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -3558,17 +4116,26 @@ public Builder setResource( return this; } /** + * + * *
        * Output only. Resource that is associated with this finding.
        * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeResource(com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource value) { + public Builder mergeResource( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -3580,11 +4147,15 @@ public Builder mergeResource(com.google.cloud.securitycenter.v1.ListFindingsResp return this; } /** + * + * *
        * Output only. Resource that is associated with this finding.
        * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -3598,52 +4169,78 @@ public Builder clearResource() { return this; } /** + * + * *
        * Output only. Resource that is associated with this finding.
        * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.Builder getResourceBuilder() { - + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .Builder + getResourceBuilder() { + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
        * Output only. Resource that is associated with this finding.
        * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder getResourceOrBuilder() { + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .ResourceOrBuilder + getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .getDefaultInstance() + : resource_; } } /** + * + * *
        * Output only. Resource that is associated with this finding.
        * 
* - * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.Builder, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder> + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource + .Builder, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .ResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource.Builder, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .Resource.Builder, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .ResourceOrBuilder>(getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3656,30 +4253,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) - private static final com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult(); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3691,80 +4291,108 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int LIST_FINDINGS_RESULTS_FIELD_NUMBER = 1; - private java.util.List listFindingsResults_; + private java.util.List + listFindingsResults_; /** + * + * *
    * Findings matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ @java.lang.Override - public java.util.List getListFindingsResultsList() { + public java.util.List + getListFindingsResultsList() { return listFindingsResults_; } /** + * + * *
    * Findings matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> getListFindingsResultsOrBuilderList() { return listFindingsResults_; } /** + * + * *
    * Findings matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ @java.lang.Override public int getListFindingsResultsCount() { return listFindingsResults_.size(); } /** + * + * *
    * Findings matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getListFindingsResults(int index) { + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + getListFindingsResults(int index) { return listFindingsResults_.get(index); } /** + * + * *
    * Findings matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder getListFindingsResultsOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder + getListFindingsResultsOrBuilder(int index) { return listFindingsResults_.get(index); } public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -3772,11 +4400,14 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ @java.lang.Override @@ -3784,6 +4415,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used for executing the list request.
    * 
@@ -3798,12 +4431,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ @java.lang.Override @@ -3812,30 +4448,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -3846,11 +4482,14 @@ public java.lang.String getNextPageToken() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_; /** + * + * *
    * The total number of findings matching the query.
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -3859,6 +4498,7 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3870,8 +4510,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < listFindingsResults_.size(); i++) { output.writeMessage(1, listFindingsResults_.get(i)); } @@ -3894,19 +4533,17 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < listFindingsResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, listFindingsResults_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, listFindingsResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3916,24 +4553,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListFindingsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListFindingsResponse other = (com.google.cloud.securitycenter.v1.ListFindingsResponse) obj; + com.google.cloud.securitycenter.v1.ListFindingsResponse other = + (com.google.cloud.securitycenter.v1.ListFindingsResponse) obj; - if (!getListFindingsResultsList() - .equals(other.getListFindingsResultsList())) return false; + if (!getListFindingsResultsList().equals(other.getListFindingsResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (getTotalSize() - != other.getTotalSize()) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3963,117 +4597,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListFindingsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ListFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for listing findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListFindingsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListFindingsResponse) com.google.cloud.securitycenter.v1.ListFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListFindingsResponse.class, com.google.cloud.securitycenter.v1.ListFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListFindingsResponse.class, + com.google.cloud.securitycenter.v1.ListFindingsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ListFindingsResponse.newBuilder() @@ -4081,17 +4725,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getListFindingsResultsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -4115,9 +4759,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; } @java.lang.Override @@ -4136,7 +4780,8 @@ public com.google.cloud.securitycenter.v1.ListFindingsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1.ListFindingsResponse buildPartial() { - com.google.cloud.securitycenter.v1.ListFindingsResponse result = new com.google.cloud.securitycenter.v1.ListFindingsResponse(this); + com.google.cloud.securitycenter.v1.ListFindingsResponse result = + new com.google.cloud.securitycenter.v1.ListFindingsResponse(this); int from_bitField0_ = bitField0_; if (listFindingsResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -4162,38 +4807,39 @@ public com.google.cloud.securitycenter.v1.ListFindingsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ListFindingsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListFindingsResponse)other); + return mergeFrom((com.google.cloud.securitycenter.v1.ListFindingsResponse) other); } else { super.mergeFrom(other); return this; @@ -4201,7 +4847,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListFindingsResponse other) { - if (other == com.google.cloud.securitycenter.v1.ListFindingsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.ListFindingsResponse.getDefaultInstance()) + return this; if (listFindingsResultsBuilder_ == null) { if (!other.listFindingsResults_.isEmpty()) { if (listFindingsResults_.isEmpty()) { @@ -4220,9 +4867,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListFindingsResponse listFindingsResultsBuilder_ = null; listFindingsResults_ = other.listFindingsResults_; bitField0_ = (bitField0_ & ~0x00000001); - listFindingsResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getListFindingsResultsFieldBuilder() : null; + listFindingsResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getListFindingsResultsFieldBuilder() + : null; } else { listFindingsResultsBuilder_.addAllMessages(other.listFindingsResults_); } @@ -4257,7 +4905,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.ListFindingsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.ListFindingsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4266,28 +4915,43 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List listFindingsResults_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult> + listFindingsResults_ = java.util.Collections.emptyList(); + private void ensureListFindingsResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - listFindingsResults_ = new java.util.ArrayList(listFindingsResults_); + listFindingsResults_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult>( + listFindingsResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> listFindingsResultsBuilder_; + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> + listFindingsResultsBuilder_; /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - public java.util.List getListFindingsResultsList() { + public java.util.List< + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult> + getListFindingsResultsList() { if (listFindingsResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(listFindingsResults_); } else { @@ -4295,11 +4959,15 @@ public java.util.List * Findings matching the list request. *
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ public int getListFindingsResultsCount() { if (listFindingsResultsBuilder_ == null) { @@ -4309,13 +4977,18 @@ public int getListFindingsResultsCount() { } } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getListFindingsResults(int index) { + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + getListFindingsResults(int index) { if (listFindingsResultsBuilder_ == null) { return listFindingsResults_.get(index); } else { @@ -4323,14 +4996,19 @@ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResul } } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ public Builder setListFindingsResults( - int index, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult value) { + int index, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult value) { if (listFindingsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4344,14 +5022,20 @@ public Builder setListFindingsResults( return this; } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ public Builder setListFindingsResults( - int index, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder builderForValue) { + int index, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder + builderForValue) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); listFindingsResults_.set(index, builderForValue.build()); @@ -4362,13 +5046,18 @@ public Builder setListFindingsResults( return this; } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - public Builder addListFindingsResults(com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult value) { + public Builder addListFindingsResults( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult value) { if (listFindingsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4382,14 +5071,19 @@ public Builder addListFindingsResults(com.google.cloud.securitycenter.v1.ListFin return this; } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ public Builder addListFindingsResults( - int index, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult value) { + int index, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult value) { if (listFindingsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4403,14 +5097,19 @@ public Builder addListFindingsResults( return this; } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ public Builder addListFindingsResults( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder builderForValue) { + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder + builderForValue) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); listFindingsResults_.add(builderForValue.build()); @@ -4421,14 +5120,20 @@ public Builder addListFindingsResults( return this; } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ public Builder addListFindingsResults( - int index, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder builderForValue) { + int index, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder + builderForValue) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); listFindingsResults_.add(index, builderForValue.build()); @@ -4439,18 +5144,24 @@ public Builder addListFindingsResults( return this; } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ public Builder addAllListFindingsResults( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult> + values) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, listFindingsResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listFindingsResults_); onChanged(); } else { listFindingsResultsBuilder_.addAllMessages(values); @@ -4458,11 +5169,15 @@ public Builder addAllListFindingsResults( return this; } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ public Builder clearListFindingsResults() { if (listFindingsResultsBuilder_ == null) { @@ -4475,11 +5190,15 @@ public Builder clearListFindingsResults() { return this; } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ public Builder removeListFindingsResults(int index) { if (listFindingsResultsBuilder_ == null) { @@ -4492,39 +5211,54 @@ public Builder removeListFindingsResults(int index) { return this; } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder getListFindingsResultsBuilder( - int index) { + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder + getListFindingsResultsBuilder(int index) { return getListFindingsResultsFieldBuilder().getBuilder(index); } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder getListFindingsResultsOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder + getListFindingsResultsOrBuilder(int index) { if (listFindingsResultsBuilder_ == null) { - return listFindingsResults_.get(index); } else { + return listFindingsResults_.get(index); + } else { return listFindingsResultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - public java.util.List - getListFindingsResultsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> + getListFindingsResultsOrBuilderList() { if (listFindingsResultsBuilder_ != null) { return listFindingsResultsBuilder_.getMessageOrBuilderList(); } else { @@ -4532,45 +5266,71 @@ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResul } } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder addListFindingsResultsBuilder() { - return getListFindingsResultsFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder + addListFindingsResultsBuilder() { + return getListFindingsResultsFieldBuilder() + .addBuilder( + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .getDefaultInstance()); } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder addListFindingsResultsBuilder( - int index) { - return getListFindingsResultsFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder + addListFindingsResultsBuilder(int index) { + return getListFindingsResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult + .getDefaultInstance()); } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - public java.util.List - getListFindingsResultsBuilderList() { + public java.util.List< + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder> + getListFindingsResultsBuilderList() { return getListFindingsResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> getListFindingsResultsFieldBuilder() { if (listFindingsResultsBuilder_ == null) { - listFindingsResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder, com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder>( + listFindingsResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult, + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Builder, + com.google.cloud.securitycenter.v1.ListFindingsResponse + .ListFindingsResultOrBuilder>( listFindingsResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -4582,24 +5342,33 @@ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResul private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -4610,6 +5379,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -4630,14 +5401,15 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -4648,6 +5420,8 @@ public Builder setReadTime( return this; } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -4658,7 +5432,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -4670,6 +5444,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -4688,6 +5464,8 @@ public Builder clearReadTime() { return this; } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -4695,11 +5473,13 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -4710,11 +5490,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -4722,14 +5503,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReadTime(), - getParentForChildren(), - isClean()); + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); readTime_ = null; } return readTimeBuilder_; @@ -4737,19 +5521,21 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -4758,21 +5544,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -4780,69 +5567,79 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_ ; + private int totalSize_; /** + * + * *
      * The total number of findings matching the query.
      * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -4850,37 +5647,43 @@ public int getTotalSize() { return totalSize_; } /** + * + * *
      * The total number of findings matching the query.
      * 
* * int32 total_size = 4; + * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** + * + * *
      * The total number of findings matching the query.
      * 
* * int32 total_size = 4; + * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4890,12 +5693,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListFindingsResponse) private static final com.google.cloud.securitycenter.v1.ListFindingsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListFindingsResponse(); } @@ -4904,16 +5707,16 @@ public static com.google.cloud.securitycenter.v1.ListFindingsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4928,6 +5731,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.ListFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java index 67352e92a..3d94c9be4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponseOrBuilder.java @@ -1,75 +1,122 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListFindingsResponseOrBuilder extends +public interface ListFindingsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListFindingsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Findings matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - java.util.List + java.util.List getListFindingsResultsList(); /** + * + * *
    * Findings matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getListFindingsResults(int index); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult getListFindingsResults( + int index); /** + * + * *
    * Findings matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ int getListFindingsResultsCount(); /** + * + * *
    * Findings matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder> getListFindingsResultsOrBuilderList(); /** + * + * *
    * Findings matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder getListFindingsResultsOrBuilder( - int index); + com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuilder + getListFindingsResultsOrBuilder(int index); /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used for executing the list request.
    * 
@@ -79,33 +126,41 @@ com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResultOrBuil com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * The total number of findings matching the query.
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ int getTotalSize(); diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequest.java index 6e38cdd12..29ddfd45f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for listing  mute configs at a given scope e.g. organization,
  * folder or project.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.ListMuteConfigsRequest}
  */
-public final class ListMuteConfigsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListMuteConfigsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListMuteConfigsRequest)
     ListMuteConfigsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListMuteConfigsRequest.newBuilder() to construct.
   private ListMuteConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListMuteConfigsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -27,16 +45,15 @@ private ListMuteConfigsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListMuteConfigsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ListMuteConfigsRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,30 +72,32 @@ private ListMuteConfigsRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            parent_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageSize_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              parent_ = s;
+              break;
+            }
+          case 16:
+            {
+              pageSize_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageToken_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              pageToken_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -86,36 +105,43 @@ private ListMuteConfigsRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1.SecuritycenterService
+        .internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.SecuritycenterService
+        .internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.class, com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.Builder.class);
+            com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.class,
+            com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
+   *
+   *
    * 
    * Required. The parent, which owns the collection of mute configs. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -124,31 +150,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent, which owns the collection of mute configs. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -159,6 +187,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of configs to return. The service may return fewer than
    * this value.
@@ -167,6 +197,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -177,6 +208,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A page token, received from a previous `ListMuteConfigs` call.
    * Provide this to retrieve the subsequent page.
@@ -185,6 +218,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -193,14 +227,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A page token, received from a previous `ListMuteConfigs` call.
    * Provide this to retrieve the subsequent page.
@@ -209,16 +244,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -227,6 +261,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,8 +273,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -262,8 +296,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -276,19 +309,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListMuteConfigsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListMuteConfigsRequest other = (com.google.cloud.securitycenter.v1.ListMuteConfigsRequest) obj; + com.google.cloud.securitycenter.v1.ListMuteConfigsRequest other = + (com.google.cloud.securitycenter.v1.ListMuteConfigsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -312,96 +343,104 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListMuteConfigsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ListMuteConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for listing  mute configs at a given scope e.g. organization,
    * folder or project.
@@ -409,21 +448,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.ListMuteConfigsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListMuteConfigsRequest)
       com.google.cloud.securitycenter.v1.ListMuteConfigsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.SecuritycenterService
+          .internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.SecuritycenterService
+          .internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.class, com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.Builder.class);
+              com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.class,
+              com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.newBuilder()
@@ -431,16 +472,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -454,9 +494,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.SecuritycenterService
+          .internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -475,7 +515,8 @@ public com.google.cloud.securitycenter.v1.ListMuteConfigsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.ListMuteConfigsRequest buildPartial() {
-      com.google.cloud.securitycenter.v1.ListMuteConfigsRequest result = new com.google.cloud.securitycenter.v1.ListMuteConfigsRequest(this);
+      com.google.cloud.securitycenter.v1.ListMuteConfigsRequest result =
+          new com.google.cloud.securitycenter.v1.ListMuteConfigsRequest(this);
       result.parent_ = parent_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -487,38 +528,39 @@ public com.google.cloud.securitycenter.v1.ListMuteConfigsRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.ListMuteConfigsRequest) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.ListMuteConfigsRequest)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.ListMuteConfigsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -526,7 +568,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListMuteConfigsRequest other) {
-      if (other == com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.securitycenter.v1.ListMuteConfigsRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -557,7 +600,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.securitycenter.v1.ListMuteConfigsRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.securitycenter.v1.ListMuteConfigsRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -569,20 +613,24 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The parent, which owns the collection of mute configs. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -591,22 +639,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns the collection of mute configs. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -614,67 +665,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns the collection of mute configs. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns the collection of mute configs. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns the collection of mute configs. Its format is
      * "organizations/[organization_id]", "folders/[folder_id]",
      * "projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of configs to return. The service may return fewer than
      * this value.
@@ -683,6 +749,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -690,6 +757,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of configs to return. The service may return fewer than
      * this value.
@@ -698,16 +767,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of configs to return. The service may return fewer than
      * this value.
@@ -716,10 +788,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -727,6 +800,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListMuteConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -735,13 +810,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -750,6 +825,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListMuteConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -758,15 +835,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -774,6 +850,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListMuteConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -782,20 +860,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListMuteConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -804,15 +884,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListMuteConfigs` call.
      * Provide this to retrieve the subsequent page.
@@ -821,23 +904,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -847,12 +930,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListMuteConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListMuteConfigsRequest) private static final com.google.cloud.securitycenter.v1.ListMuteConfigsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListMuteConfigsRequest(); } @@ -861,16 +944,16 @@ public static com.google.cloud.securitycenter.v1.ListMuteConfigsRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMuteConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMuteConfigsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMuteConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMuteConfigsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -885,6 +968,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.ListMuteConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequestOrBuilder.java index eda1d8ed1..72889d2ce 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListMuteConfigsRequestOrBuilder extends +public interface ListMuteConfigsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListMuteConfigsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent, which owns the collection of mute configs. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent, which owns the collection of mute configs. Its format is
    * "organizations/[organization_id]", "folders/[folder_id]",
    * "projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of configs to return. The service may return fewer than
    * this value.
@@ -40,11 +67,14 @@ public interface ListMuteConfigsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListMuteConfigs` call.
    * Provide this to retrieve the subsequent page.
@@ -53,10 +83,13 @@ public interface ListMuteConfigsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListMuteConfigs` call.
    * Provide this to retrieve the subsequent page.
@@ -65,8 +98,8 @@ public interface ListMuteConfigsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponse.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponse.java index 352fc5cf6..5af0783b3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Response message for listing mute configs.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListMuteConfigsResponse} */ -public final class ListMuteConfigsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMuteConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListMuteConfigsResponse) ListMuteConfigsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMuteConfigsResponse.newBuilder() to construct. private ListMuteConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMuteConfigsResponse() { muteConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListMuteConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMuteConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListMuteConfigsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private ListMuteConfigsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - muteConfigs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + muteConfigs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + muteConfigs_.add( + input.readMessage( + com.google.cloud.securitycenter.v1.MuteConfig.parser(), extensionRegistry)); + break; } - muteConfigs_.add( - input.readMessage(com.google.cloud.securitycenter.v1.MuteConfig.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private ListMuteConfigsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { muteConfigs_ = java.util.Collections.unmodifiableList(muteConfigs_); @@ -94,22 +114,27 @@ private ListMuteConfigsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.class, com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.class, + com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.Builder.class); } public static final int MUTE_CONFIGS_FIELD_NUMBER = 1; private java.util.List muteConfigs_; /** + * + * *
    * The mute configs from the specified parent.
    * 
@@ -121,6 +146,8 @@ public java.util.List getMuteConf return muteConfigs_; } /** + * + * *
    * The mute configs from the specified parent.
    * 
@@ -128,11 +155,13 @@ public java.util.List getMuteConf * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getMuteConfigsOrBuilderList() { return muteConfigs_; } /** + * + * *
    * The mute configs from the specified parent.
    * 
@@ -144,6 +173,8 @@ public int getMuteConfigsCount() { return muteConfigs_.size(); } /** + * + * *
    * The mute configs from the specified parent.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.securitycenter.v1.MuteConfig getMuteConfigs(int index) { return muteConfigs_.get(index); } /** + * + * *
    * The mute configs from the specified parent.
    * 
@@ -162,20 +195,22 @@ public com.google.cloud.securitycenter.v1.MuteConfig getMuteConfigs(int index) { * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigsOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigsOrBuilder(int index) { return muteConfigs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +219,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +251,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < muteConfigs_.size(); i++) { output.writeMessage(1, muteConfigs_.get(i)); } @@ -245,8 +280,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < muteConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, muteConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, muteConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +293,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListMuteConfigsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListMuteConfigsResponse other = (com.google.cloud.securitycenter.v1.ListMuteConfigsResponse) obj; + com.google.cloud.securitycenter.v1.ListMuteConfigsResponse other = + (com.google.cloud.securitycenter.v1.ListMuteConfigsResponse) obj; - if (!getMuteConfigsList() - .equals(other.getMuteConfigsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getMuteConfigsList().equals(other.getMuteConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +326,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListMuteConfigsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ListMuteConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for listing mute configs.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListMuteConfigsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListMuteConfigsResponse) com.google.cloud.securitycenter.v1.ListMuteConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.class, com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.class, + com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.newBuilder() @@ -411,17 +454,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMuteConfigsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor; } @java.lang.Override @@ -458,7 +501,8 @@ public com.google.cloud.securitycenter.v1.ListMuteConfigsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1.ListMuteConfigsResponse buildPartial() { - com.google.cloud.securitycenter.v1.ListMuteConfigsResponse result = new com.google.cloud.securitycenter.v1.ListMuteConfigsResponse(this); + com.google.cloud.securitycenter.v1.ListMuteConfigsResponse result = + new com.google.cloud.securitycenter.v1.ListMuteConfigsResponse(this); int from_bitField0_ = bitField0_; if (muteConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +522,39 @@ public com.google.cloud.securitycenter.v1.ListMuteConfigsResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ListMuteConfigsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListMuteConfigsResponse)other); + return mergeFrom((com.google.cloud.securitycenter.v1.ListMuteConfigsResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +562,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListMuteConfigsResponse other) { - if (other == com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.ListMuteConfigsResponse.getDefaultInstance()) + return this; if (muteConfigsBuilder_ == null) { if (!other.muteConfigs_.isEmpty()) { if (muteConfigs_.isEmpty()) { @@ -536,9 +582,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListMuteConfigsRespo muteConfigsBuilder_ = null; muteConfigs_ = other.muteConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - muteConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMuteConfigsFieldBuilder() : null; + muteConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMuteConfigsFieldBuilder() + : null; } else { muteConfigsBuilder_.addAllMessages(other.muteConfigs_); } @@ -567,7 +614,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.ListMuteConfigsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.ListMuteConfigsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +624,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List muteConfigs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMuteConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - muteConfigs_ = new java.util.ArrayList(muteConfigs_); + muteConfigs_ = + new java.util.ArrayList(muteConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.MuteConfig, com.google.cloud.securitycenter.v1.MuteConfig.Builder, com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> muteConfigsBuilder_; + com.google.cloud.securitycenter.v1.MuteConfig, + com.google.cloud.securitycenter.v1.MuteConfig.Builder, + com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> + muteConfigsBuilder_; /** + * + * *
      * The mute configs from the specified parent.
      * 
@@ -605,6 +661,8 @@ public java.util.List getMuteConf } } /** + * + * *
      * The mute configs from the specified parent.
      * 
@@ -619,6 +677,8 @@ public int getMuteConfigsCount() { } } /** + * + * *
      * The mute configs from the specified parent.
      * 
@@ -633,14 +693,15 @@ public com.google.cloud.securitycenter.v1.MuteConfig getMuteConfigs(int index) { } } /** + * + * *
      * The mute configs from the specified parent.
      * 
* * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ - public Builder setMuteConfigs( - int index, com.google.cloud.securitycenter.v1.MuteConfig value) { + public Builder setMuteConfigs(int index, com.google.cloud.securitycenter.v1.MuteConfig value) { if (muteConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +715,8 @@ public Builder setMuteConfigs( return this; } /** + * + * *
      * The mute configs from the specified parent.
      * 
@@ -672,6 +735,8 @@ public Builder setMuteConfigs( return this; } /** + * + * *
      * The mute configs from the specified parent.
      * 
@@ -692,14 +757,15 @@ public Builder addMuteConfigs(com.google.cloud.securitycenter.v1.MuteConfig valu return this; } /** + * + * *
      * The mute configs from the specified parent.
      * 
* * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ - public Builder addMuteConfigs( - int index, com.google.cloud.securitycenter.v1.MuteConfig value) { + public Builder addMuteConfigs(int index, com.google.cloud.securitycenter.v1.MuteConfig value) { if (muteConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,6 +779,8 @@ public Builder addMuteConfigs( return this; } /** + * + * *
      * The mute configs from the specified parent.
      * 
@@ -731,6 +799,8 @@ public Builder addMuteConfigs( return this; } /** + * + * *
      * The mute configs from the specified parent.
      * 
@@ -749,6 +819,8 @@ public Builder addMuteConfigs( return this; } /** + * + * *
      * The mute configs from the specified parent.
      * 
@@ -759,8 +831,7 @@ public Builder addAllMuteConfigs( java.lang.Iterable values) { if (muteConfigsBuilder_ == null) { ensureMuteConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, muteConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, muteConfigs_); onChanged(); } else { muteConfigsBuilder_.addAllMessages(values); @@ -768,6 +839,8 @@ public Builder addAllMuteConfigs( return this; } /** + * + * *
      * The mute configs from the specified parent.
      * 
@@ -785,6 +858,8 @@ public Builder clearMuteConfigs() { return this; } /** + * + * *
      * The mute configs from the specified parent.
      * 
@@ -802,17 +877,20 @@ public Builder removeMuteConfigs(int index) { return this; } /** + * + * *
      * The mute configs from the specified parent.
      * 
* * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ - public com.google.cloud.securitycenter.v1.MuteConfig.Builder getMuteConfigsBuilder( - int index) { + public com.google.cloud.securitycenter.v1.MuteConfig.Builder getMuteConfigsBuilder(int index) { return getMuteConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The mute configs from the specified parent.
      * 
@@ -822,19 +900,22 @@ public com.google.cloud.securitycenter.v1.MuteConfig.Builder getMuteConfigsBuild public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigsOrBuilder( int index) { if (muteConfigsBuilder_ == null) { - return muteConfigs_.get(index); } else { + return muteConfigs_.get(index); + } else { return muteConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The mute configs from the specified parent.
      * 
* * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ - public java.util.List - getMuteConfigsOrBuilderList() { + public java.util.List + getMuteConfigsOrBuilderList() { if (muteConfigsBuilder_ != null) { return muteConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +923,8 @@ public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigsOrBu } } /** + * + * *
      * The mute configs from the specified parent.
      * 
@@ -849,42 +932,48 @@ public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigsOrBu * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ public com.google.cloud.securitycenter.v1.MuteConfig.Builder addMuteConfigsBuilder() { - return getMuteConfigsFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance()); + return getMuteConfigsFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance()); } /** + * + * *
      * The mute configs from the specified parent.
      * 
* * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ - public com.google.cloud.securitycenter.v1.MuteConfig.Builder addMuteConfigsBuilder( - int index) { - return getMuteConfigsFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.MuteConfig.Builder addMuteConfigsBuilder(int index) { + return getMuteConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance()); } /** + * + * *
      * The mute configs from the specified parent.
      * 
* * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ - public java.util.List - getMuteConfigsBuilderList() { + public java.util.List + getMuteConfigsBuilderList() { return getMuteConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.MuteConfig, com.google.cloud.securitycenter.v1.MuteConfig.Builder, com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> + com.google.cloud.securitycenter.v1.MuteConfig, + com.google.cloud.securitycenter.v1.MuteConfig.Builder, + com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> getMuteConfigsFieldBuilder() { if (muteConfigsBuilder_ == null) { - muteConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.MuteConfig, com.google.cloud.securitycenter.v1.MuteConfig.Builder, com.google.cloud.securitycenter.v1.MuteConfigOrBuilder>( - muteConfigs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + muteConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.MuteConfig, + com.google.cloud.securitycenter.v1.MuteConfig.Builder, + com.google.cloud.securitycenter.v1.MuteConfigOrBuilder>( + muteConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); muteConfigs_ = null; } return muteConfigsBuilder_; @@ -892,19 +981,21 @@ public com.google.cloud.securitycenter.v1.MuteConfig.Builder addMuteConfigsBuild private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1004,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1027,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1101,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListMuteConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListMuteConfigsResponse) private static final com.google.cloud.securitycenter.v1.ListMuteConfigsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListMuteConfigsResponse(); } @@ -1016,16 +1115,16 @@ public static com.google.cloud.securitycenter.v1.ListMuteConfigsResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMuteConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMuteConfigsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMuteConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMuteConfigsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1139,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.ListMuteConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponseOrBuilder.java index de604d2e7..7b089bdd4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListMuteConfigsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListMuteConfigsResponseOrBuilder extends +public interface ListMuteConfigsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListMuteConfigsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The mute configs from the specified parent.
    * 
* * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ - java.util.List - getMuteConfigsList(); + java.util.List getMuteConfigsList(); /** + * + * *
    * The mute configs from the specified parent.
    * 
@@ -25,6 +44,8 @@ public interface ListMuteConfigsResponseOrBuilder extends */ com.google.cloud.securitycenter.v1.MuteConfig getMuteConfigs(int index); /** + * + * *
    * The mute configs from the specified parent.
    * 
@@ -33,43 +54,51 @@ public interface ListMuteConfigsResponseOrBuilder extends */ int getMuteConfigsCount(); /** + * + * *
    * The mute configs from the specified parent.
    * 
* * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ - java.util.List + java.util.List getMuteConfigsOrBuilderList(); /** + * + * *
    * The mute configs from the specified parent.
    * 
* * repeated .google.cloud.securitycenter.v1.MuteConfig mute_configs = 1; */ - com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigsOrBuilder( - int index); + com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigsOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java index cfeb758ce..b7c919471 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for listing notification configs.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListNotificationConfigsRequest} */ -public final class ListNotificationConfigsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNotificationConfigsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListNotificationConfigsRequest) ListNotificationConfigsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNotificationConfigsRequest.newBuilder() to construct. - private ListNotificationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListNotificationConfigsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNotificationConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +45,15 @@ private ListNotificationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNotificationConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNotificationConfigsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +72,32 @@ private ListNotificationConfigsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +105,42 @@ private ListNotificationConfigsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.class, com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.Builder.class); + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.class, + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the organization to list notification configs.
    * Its format is "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -122,30 +149,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Name of the organization to list notification configs.
    * Its format is "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -156,6 +185,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** + * + * *
    * The value returned by the last `ListNotificationConfigsResponse`; indicates
    * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -163,6 +194,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -171,14 +203,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value returned by the last `ListNotificationConfigsResponse`; indicates
    * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -186,16 +219,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -206,12 +238,15 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -220,6 +255,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -258,8 +293,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -269,19 +303,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest other = (com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest) obj; + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest other = + (com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -305,134 +337,145 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for listing notification configs.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListNotificationConfigsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListNotificationConfigsRequest) com.google.cloud.securitycenter.v1.ListNotificationConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.class, com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.Builder.class); + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.class, + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.Builder.class); } - // Construct using com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,13 +489,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.getDefaultInstance(); } @@ -467,7 +511,8 @@ public com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest build() @java.lang.Override public com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest buildPartial() { - com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest result = new com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest(this); + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest result = + new com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -479,46 +524,50 @@ public com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest other) { - if (other == com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest other) { + if (other + == com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -549,7 +598,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -561,19 +612,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the organization to list notification configs.
      * Its format is "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -582,21 +637,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization to list notification configs.
      * Its format is "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -604,57 +662,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization to list notification configs.
      * Its format is "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to list notification configs.
      * Its format is "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to list notification configs.
      * Its format is "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -662,6 +733,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last `ListNotificationConfigsResponse`; indicates
      * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -669,13 +742,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -684,6 +757,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListNotificationConfigsResponse`; indicates
      * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -691,15 +766,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -707,6 +781,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListNotificationConfigsResponse`; indicates
      * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -714,20 +790,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListNotificationConfigsResponse`; indicates
      * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -735,15 +813,18 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListNotificationConfigsResponse`; indicates
      * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -751,29 +832,32 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -781,39 +865,45 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -823,30 +913,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListNotificationConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListNotificationConfigsRequest) - private static final com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest(); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNotificationConfigsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNotificationConfigsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -858,9 +950,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequestOrBuilder.java index 8d783d92e..a0ad2184c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListNotificationConfigsRequestOrBuilder extends +public interface ListNotificationConfigsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListNotificationConfigsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the organization to list notification configs.
    * Its format is "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Name of the organization to list notification configs.
    * Its format is "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The value returned by the last `ListNotificationConfigsResponse`; indicates
    * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -37,10 +64,13 @@ public interface ListNotificationConfigsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `ListNotificationConfigsResponse`; indicates
    * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -48,18 +78,21 @@ public interface ListNotificationConfigsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java index 04441054e..3e639c67b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Response message for listing notification configs.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListNotificationConfigsResponse} */ -public final class ListNotificationConfigsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNotificationConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListNotificationConfigsResponse) ListNotificationConfigsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNotificationConfigsResponse.newBuilder() to construct. - private ListNotificationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListNotificationConfigsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNotificationConfigsResponse() { notificationConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +45,15 @@ private ListNotificationConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNotificationConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNotificationConfigsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +73,34 @@ private ListNotificationConfigsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - notificationConfigs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + notificationConfigs_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1.NotificationConfig>(); + mutable_bitField0_ |= 0x00000001; + } + notificationConfigs_.add( + input.readMessage( + com.google.cloud.securitycenter.v1.NotificationConfig.parser(), + extensionRegistry)); + break; } - notificationConfigs_.add( - input.readMessage(com.google.cloud.securitycenter.v1.NotificationConfig.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +108,7 @@ private ListNotificationConfigsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { notificationConfigs_ = java.util.Collections.unmodifiableList(notificationConfigs_); @@ -94,88 +117,111 @@ private ListNotificationConfigsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.class, com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.class, + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.Builder.class); } public static final int NOTIFICATION_CONFIGS_FIELD_NUMBER = 1; - private java.util.List notificationConfigs_; + private java.util.List + notificationConfigs_; /** + * + * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ @java.lang.Override - public java.util.List getNotificationConfigsList() { + public java.util.List + getNotificationConfigsList() { return notificationConfigs_; } /** + * + * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getNotificationConfigsOrBuilderList() { return notificationConfigs_; } /** + * + * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ @java.lang.Override public int getNotificationConfigsCount() { return notificationConfigs_.size(); } /** + * + * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfigs(int index) { return notificationConfigs_.get(index); } /** + * + * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotificationConfigsOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder + getNotificationConfigsOrBuilder(int index) { return notificationConfigs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +230,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +262,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +274,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < notificationConfigs_.size(); i++) { output.writeMessage(1, notificationConfigs_.get(i)); } @@ -245,8 +291,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < notificationConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, notificationConfigs_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, notificationConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +305,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse other = (com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse) obj; + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse other = + (com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse) obj; - if (!getNotificationConfigsList() - .equals(other.getNotificationConfigsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getNotificationConfigsList().equals(other.getNotificationConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,135 +338,147 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for listing notification configs.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListNotificationConfigsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListNotificationConfigsResponse) com.google.cloud.securitycenter.v1.ListNotificationConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.class, com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.class, + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.Builder.class); } - // Construct using com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getNotificationConfigsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,14 +494,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.getDefaultInstance(); + public com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse + .getDefaultInstance(); } @java.lang.Override @@ -458,7 +517,8 @@ public com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse build( @java.lang.Override public com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse buildPartial() { - com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse result = new com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse(this); + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse result = + new com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse(this); int from_bitField0_ = bitField0_; if (notificationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,46 +538,51 @@ public com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse)other); + return mergeFrom( + (com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse other) { - if (other == com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse other) { + if (other + == com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse + .getDefaultInstance()) return this; if (notificationConfigsBuilder_ == null) { if (!other.notificationConfigs_.isEmpty()) { if (notificationConfigs_.isEmpty()) { @@ -536,9 +601,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListNotificationConf notificationConfigsBuilder_ = null; notificationConfigs_ = other.notificationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - notificationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNotificationConfigsFieldBuilder() : null; + notificationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNotificationConfigsFieldBuilder() + : null; } else { notificationConfigsBuilder_.addAllMessages(other.notificationConfigs_); } @@ -567,7 +633,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,28 +644,39 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List notificationConfigs_ = - java.util.Collections.emptyList(); + private java.util.List + notificationConfigs_ = java.util.Collections.emptyList(); + private void ensureNotificationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - notificationConfigs_ = new java.util.ArrayList(notificationConfigs_); + notificationConfigs_ = + new java.util.ArrayList( + notificationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig, com.google.cloud.securitycenter.v1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> notificationConfigsBuilder_; + com.google.cloud.securitycenter.v1.NotificationConfig, + com.google.cloud.securitycenter.v1.NotificationConfig.Builder, + com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> + notificationConfigsBuilder_; /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ - public java.util.List getNotificationConfigsList() { + public java.util.List + getNotificationConfigsList() { if (notificationConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(notificationConfigs_); } else { @@ -605,11 +684,14 @@ public java.util.List get } } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ public int getNotificationConfigsCount() { if (notificationConfigsBuilder_ == null) { @@ -619,11 +701,14 @@ public int getNotificationConfigsCount() { } } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfigs(int index) { if (notificationConfigsBuilder_ == null) { @@ -633,11 +718,14 @@ public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConf } } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ public Builder setNotificationConfigs( int index, com.google.cloud.securitycenter.v1.NotificationConfig value) { @@ -654,11 +742,14 @@ public Builder setNotificationConfigs( return this; } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ public Builder setNotificationConfigs( int index, com.google.cloud.securitycenter.v1.NotificationConfig.Builder builderForValue) { @@ -672,13 +763,17 @@ public Builder setNotificationConfigs( return this; } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ - public Builder addNotificationConfigs(com.google.cloud.securitycenter.v1.NotificationConfig value) { + public Builder addNotificationConfigs( + com.google.cloud.securitycenter.v1.NotificationConfig value) { if (notificationConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -692,11 +787,14 @@ public Builder addNotificationConfigs(com.google.cloud.securitycenter.v1.Notific return this; } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ public Builder addNotificationConfigs( int index, com.google.cloud.securitycenter.v1.NotificationConfig value) { @@ -713,11 +811,14 @@ public Builder addNotificationConfigs( return this; } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ public Builder addNotificationConfigs( com.google.cloud.securitycenter.v1.NotificationConfig.Builder builderForValue) { @@ -731,11 +832,14 @@ public Builder addNotificationConfigs( return this; } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ public Builder addNotificationConfigs( int index, com.google.cloud.securitycenter.v1.NotificationConfig.Builder builderForValue) { @@ -749,18 +853,21 @@ public Builder addNotificationConfigs( return this; } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ public Builder addAllNotificationConfigs( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (notificationConfigsBuilder_ == null) { ensureNotificationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notificationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notificationConfigs_); onChanged(); } else { notificationConfigsBuilder_.addAllMessages(values); @@ -768,11 +875,14 @@ public Builder addAllNotificationConfigs( return this; } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ public Builder clearNotificationConfigs() { if (notificationConfigsBuilder_ == null) { @@ -785,11 +895,14 @@ public Builder clearNotificationConfigs() { return this; } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ public Builder removeNotificationConfigs(int index) { if (notificationConfigsBuilder_ == null) { @@ -802,39 +915,49 @@ public Builder removeNotificationConfigs(int index) { return this; } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ - public com.google.cloud.securitycenter.v1.NotificationConfig.Builder getNotificationConfigsBuilder( - int index) { + public com.google.cloud.securitycenter.v1.NotificationConfig.Builder + getNotificationConfigsBuilder(int index) { return getNotificationConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ - public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotificationConfigsOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder + getNotificationConfigsOrBuilder(int index) { if (notificationConfigsBuilder_ == null) { - return notificationConfigs_.get(index); } else { + return notificationConfigs_.get(index); + } else { return notificationConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ - public java.util.List - getNotificationConfigsOrBuilderList() { + public java.util.List + getNotificationConfigsOrBuilderList() { if (notificationConfigsBuilder_ != null) { return notificationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -842,45 +965,62 @@ public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotific } } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ - public com.google.cloud.securitycenter.v1.NotificationConfig.Builder addNotificationConfigsBuilder() { - return getNotificationConfigsFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.NotificationConfig.Builder + addNotificationConfigsBuilder() { + return getNotificationConfigsFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance()); } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ - public com.google.cloud.securitycenter.v1.NotificationConfig.Builder addNotificationConfigsBuilder( - int index) { - return getNotificationConfigsFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.NotificationConfig.Builder + addNotificationConfigsBuilder(int index) { + return getNotificationConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance()); } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ - public java.util.List - getNotificationConfigsBuilderList() { + public java.util.List + getNotificationConfigsBuilderList() { return getNotificationConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig, com.google.cloud.securitycenter.v1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> + com.google.cloud.securitycenter.v1.NotificationConfig, + com.google.cloud.securitycenter.v1.NotificationConfig.Builder, + com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> getNotificationConfigsFieldBuilder() { if (notificationConfigsBuilder_ == null) { - notificationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig, com.google.cloud.securitycenter.v1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder>( + notificationConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.NotificationConfig, + com.google.cloud.securitycenter.v1.NotificationConfig.Builder, + com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder>( notificationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -892,19 +1032,21 @@ public com.google.cloud.securitycenter.v1.NotificationConfig.Builder addNotifica private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1055,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1078,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,30 +1152,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListNotificationConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListNotificationConfigsResponse) - private static final com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse(); } - public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNotificationConfigsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNotificationConfigsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,9 +1189,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponseOrBuilder.java index df40a0853..81c7ef45c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListNotificationConfigsResponseOrBuilder.java @@ -1,75 +1,111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListNotificationConfigsResponseOrBuilder extends +public interface ListNotificationConfigsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListNotificationConfigsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ - java.util.List + java.util.List getNotificationConfigsList(); /** + * + * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfigs(int index); /** + * + * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ int getNotificationConfigsCount(); /** + * + * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ - java.util.List + java.util.List getNotificationConfigsOrBuilderList(); /** + * + * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * repeated .google.cloud.securitycenter.v1.NotificationConfig notification_configs = 1; + * */ com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotificationConfigsOrBuilder( int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java index 05d176dec..a0d989c16 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for listing sources.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListSourcesRequest} */ -public final class ListSourcesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSourcesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListSourcesRequest) ListSourcesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSourcesRequest.newBuilder() to construct. private ListSourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSourcesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListSourcesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSourcesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListSourcesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListSourcesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 56: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 56: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,36 +104,43 @@ private ListSourcesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListSourcesRequest.class, com.google.cloud.securitycenter.v1.ListSourcesRequest.Builder.class); + com.google.cloud.securitycenter.v1.ListSourcesRequest.class, + com.google.cloud.securitycenter.v1.ListSourcesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,31 +149,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -158,6 +186,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** + * + * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -165,6 +195,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -173,14 +204,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -188,16 +220,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -208,12 +239,15 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 7; private int pageSize_; /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 7; + * * @return The pageSize. */ @java.lang.Override @@ -222,6 +256,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,8 +268,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -260,8 +294,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -271,19 +304,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListSourcesRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListSourcesRequest other = (com.google.cloud.securitycenter.v1.ListSourcesRequest) obj; + com.google.cloud.securitycenter.v1.ListSourcesRequest other = + (com.google.cloud.securitycenter.v1.ListSourcesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -307,117 +338,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListSourcesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListSourcesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ListSourcesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for listing sources.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListSourcesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListSourcesRequest) com.google.cloud.securitycenter.v1.ListSourcesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListSourcesRequest.class, com.google.cloud.securitycenter.v1.ListSourcesRequest.Builder.class); + com.google.cloud.securitycenter.v1.ListSourcesRequest.class, + com.google.cloud.securitycenter.v1.ListSourcesRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ListSourcesRequest.newBuilder() @@ -425,16 +466,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +488,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; } @java.lang.Override @@ -469,7 +509,8 @@ public com.google.cloud.securitycenter.v1.ListSourcesRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.ListSourcesRequest buildPartial() { - com.google.cloud.securitycenter.v1.ListSourcesRequest result = new com.google.cloud.securitycenter.v1.ListSourcesRequest(this); + com.google.cloud.securitycenter.v1.ListSourcesRequest result = + new com.google.cloud.securitycenter.v1.ListSourcesRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -481,38 +522,39 @@ public com.google.cloud.securitycenter.v1.ListSourcesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ListSourcesRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListSourcesRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.ListSourcesRequest) other); } else { super.mergeFrom(other); return this; @@ -520,7 +562,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListSourcesRequest other) { - if (other == com.google.cloud.securitycenter.v1.ListSourcesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.ListSourcesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -551,7 +594,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.ListSourcesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.ListSourcesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,20 +607,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -585,22 +633,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -608,60 +659,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -669,6 +733,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -676,13 +742,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -691,6 +757,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -698,15 +766,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -714,6 +781,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -721,20 +790,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -742,15 +813,18 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -758,29 +832,32 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; + * * @return The pageSize. */ @java.lang.Override @@ -788,39 +865,45 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -830,12 +913,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListSourcesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListSourcesRequest) private static final com.google.cloud.securitycenter.v1.ListSourcesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListSourcesRequest(); } @@ -844,16 +927,16 @@ public static com.google.cloud.securitycenter.v1.ListSourcesRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSourcesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSourcesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSourcesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSourcesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -868,6 +951,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.ListSourcesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java index 287dec78e..431d95dde 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListSourcesRequestOrBuilder extends +public interface ListSourcesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListSourcesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -39,10 +66,13 @@ public interface ListSourcesRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -50,18 +80,21 @@ public interface ListSourcesRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 7; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java index e1fea3d04..38347e5d3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Response message for listing sources.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListSourcesResponse} */ -public final class ListSourcesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSourcesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListSourcesResponse) ListSourcesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSourcesResponse.newBuilder() to construct. private ListSourcesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSourcesResponse() { sources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListSourcesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSourcesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListSourcesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,31 @@ private ListSourcesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + sources_.add( + input.readMessage( + com.google.cloud.securitycenter.v1.Source.parser(), extensionRegistry)); + break; } - sources_.add( - input.readMessage(com.google.cloud.securitycenter.v1.Source.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +104,7 @@ private ListSourcesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { sources_ = java.util.Collections.unmodifiableList(sources_); @@ -94,22 +113,27 @@ private ListSourcesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListSourcesResponse.class, com.google.cloud.securitycenter.v1.ListSourcesResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListSourcesResponse.class, + com.google.cloud.securitycenter.v1.ListSourcesResponse.Builder.class); } public static final int SOURCES_FIELD_NUMBER = 1; private java.util.List sources_; /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -121,6 +145,8 @@ public java.util.List getSourcesList( return sources_; } /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -128,11 +154,13 @@ public java.util.List getSourcesList( * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSourcesOrBuilderList() { return sources_; } /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -144,6 +172,8 @@ public int getSourcesCount() { return sources_.size(); } /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -155,6 +185,8 @@ public com.google.cloud.securitycenter.v1.Source getSources(int index) { return sources_.get(index); } /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -162,20 +194,22 @@ public com.google.cloud.securitycenter.v1.Source getSources(int index) { * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder(int index) { return sources_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +218,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +250,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < sources_.size(); i++) { output.writeMessage(1, sources_.get(i)); } @@ -245,8 +279,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < sources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, sources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +292,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ListSourcesResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.ListSourcesResponse other = (com.google.cloud.securitycenter.v1.ListSourcesResponse) obj; + com.google.cloud.securitycenter.v1.ListSourcesResponse other = + (com.google.cloud.securitycenter.v1.ListSourcesResponse) obj; - if (!getSourcesList() - .equals(other.getSourcesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getSourcesList().equals(other.getSourcesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +325,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.ListSourcesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.ListSourcesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ListSourcesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for listing sources.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ListSourcesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListSourcesResponse) com.google.cloud.securitycenter.v1.ListSourcesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ListSourcesResponse.class, com.google.cloud.securitycenter.v1.ListSourcesResponse.Builder.class); + com.google.cloud.securitycenter.v1.ListSourcesResponse.class, + com.google.cloud.securitycenter.v1.ListSourcesResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ListSourcesResponse.newBuilder() @@ -411,17 +453,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSourcesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +479,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor; } @java.lang.Override @@ -458,7 +500,8 @@ public com.google.cloud.securitycenter.v1.ListSourcesResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1.ListSourcesResponse buildPartial() { - com.google.cloud.securitycenter.v1.ListSourcesResponse result = new com.google.cloud.securitycenter.v1.ListSourcesResponse(this); + com.google.cloud.securitycenter.v1.ListSourcesResponse result = + new com.google.cloud.securitycenter.v1.ListSourcesResponse(this); int from_bitField0_ = bitField0_; if (sourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +521,39 @@ public com.google.cloud.securitycenter.v1.ListSourcesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ListSourcesResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1.ListSourcesResponse)other); + return mergeFrom((com.google.cloud.securitycenter.v1.ListSourcesResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +561,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListSourcesResponse other) { - if (other == com.google.cloud.securitycenter.v1.ListSourcesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.ListSourcesResponse.getDefaultInstance()) + return this; if (sourcesBuilder_ == null) { if (!other.sources_.isEmpty()) { if (sources_.isEmpty()) { @@ -536,9 +581,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.ListSourcesResponse sourcesBuilder_ = null; sources_ = other.sources_; bitField0_ = (bitField0_ & ~0x00000001); - sourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSourcesFieldBuilder() : null; + sourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSourcesFieldBuilder() + : null; } else { sourcesBuilder_.addAllMessages(other.sources_); } @@ -567,7 +613,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.ListSourcesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.ListSourcesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +623,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List sources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { sources_ = new java.util.ArrayList(sources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, com.google.cloud.securitycenter.v1.SourceOrBuilder> sourcesBuilder_; + com.google.cloud.securitycenter.v1.Source, + com.google.cloud.securitycenter.v1.Source.Builder, + com.google.cloud.securitycenter.v1.SourceOrBuilder> + sourcesBuilder_; /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -605,6 +659,8 @@ public java.util.List getSourcesList( } } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -619,6 +675,8 @@ public int getSourcesCount() { } } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -633,14 +691,15 @@ public com.google.cloud.securitycenter.v1.Source getSources(int index) { } } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - public Builder setSources( - int index, com.google.cloud.securitycenter.v1.Source value) { + public Builder setSources(int index, com.google.cloud.securitycenter.v1.Source value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +713,8 @@ public Builder setSources( return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -672,6 +733,8 @@ public Builder setSources( return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -692,14 +755,15 @@ public Builder addSources(com.google.cloud.securitycenter.v1.Source value) { return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - public Builder addSources( - int index, com.google.cloud.securitycenter.v1.Source value) { + public Builder addSources(int index, com.google.cloud.securitycenter.v1.Source value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,14 +777,15 @@ public Builder addSources( return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - public Builder addSources( - com.google.cloud.securitycenter.v1.Source.Builder builderForValue) { + public Builder addSources(com.google.cloud.securitycenter.v1.Source.Builder builderForValue) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.add(builderForValue.build()); @@ -731,6 +796,8 @@ public Builder addSources( return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -749,6 +816,8 @@ public Builder addSources( return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -759,8 +828,7 @@ public Builder addAllSources( java.lang.Iterable values) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sources_); onChanged(); } else { sourcesBuilder_.addAllMessages(values); @@ -768,6 +836,8 @@ public Builder addAllSources( return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -785,6 +855,8 @@ public Builder clearSources() { return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -802,39 +874,44 @@ public Builder removeSources(int index) { return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - public com.google.cloud.securitycenter.v1.Source.Builder getSourcesBuilder( - int index) { + public com.google.cloud.securitycenter.v1.Source.Builder getSourcesBuilder(int index) { return getSourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder(int index) { if (sourcesBuilder_ == null) { - return sources_.get(index); } else { + return sources_.get(index); + } else { return sourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - public java.util.List - getSourcesOrBuilderList() { + public java.util.List + getSourcesOrBuilderList() { if (sourcesBuilder_ != null) { return sourcesBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +919,8 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder( } } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -849,42 +928,48 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder( * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ public com.google.cloud.securitycenter.v1.Source.Builder addSourcesBuilder() { - return getSourcesFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1.Source.getDefaultInstance()); + return getSourcesFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1.Source.getDefaultInstance()); } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - public com.google.cloud.securitycenter.v1.Source.Builder addSourcesBuilder( - int index) { - return getSourcesFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1.Source.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.Source.Builder addSourcesBuilder(int index) { + return getSourcesFieldBuilder() + .addBuilder(index, com.google.cloud.securitycenter.v1.Source.getDefaultInstance()); } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - public java.util.List - getSourcesBuilderList() { + public java.util.List + getSourcesBuilderList() { return getSourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, com.google.cloud.securitycenter.v1.SourceOrBuilder> + com.google.cloud.securitycenter.v1.Source, + com.google.cloud.securitycenter.v1.Source.Builder, + com.google.cloud.securitycenter.v1.SourceOrBuilder> getSourcesFieldBuilder() { if (sourcesBuilder_ == null) { - sourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, com.google.cloud.securitycenter.v1.SourceOrBuilder>( - sources_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + sourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.Source, + com.google.cloud.securitycenter.v1.Source.Builder, + com.google.cloud.securitycenter.v1.SourceOrBuilder>( + sources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); sources_ = null; } return sourcesBuilder_; @@ -892,19 +977,21 @@ public com.google.cloud.securitycenter.v1.Source.Builder addSourcesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1000,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1023,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1097,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListSourcesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListSourcesResponse) private static final com.google.cloud.securitycenter.v1.ListSourcesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ListSourcesResponse(); } @@ -1016,16 +1111,16 @@ public static com.google.cloud.securitycenter.v1.ListSourcesResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSourcesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSourcesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSourcesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1135,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.ListSourcesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java index 2f742618f..017d14e62 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface ListSourcesResponseOrBuilder extends +public interface ListSourcesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListSourcesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Sources belonging to the requested parent.
    * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - java.util.List - getSourcesList(); + java.util.List getSourcesList(); /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -25,6 +44,8 @@ public interface ListSourcesResponseOrBuilder extends */ com.google.cloud.securitycenter.v1.Source getSources(int index); /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -33,43 +54,51 @@ public interface ListSourcesResponseOrBuilder extends */ int getSourcesCount(); /** + * + * *
    * Sources belonging to the requested parent.
    * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - java.util.List + java.util.List getSourcesOrBuilderList(); /** + * + * *
    * Sources belonging to the requested parent.
    * 
* * repeated .google.cloud.securitycenter.v1.Source sources = 1; */ - com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder( - int index); + com.google.cloud.securitycenter.v1.SourceOrBuilder getSourcesOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttack.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttack.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttack.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttack.java index a3e4df10f..8078bc17e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttack.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttack.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/mitre_attack.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * MITRE ATT&CK tactics and techniques related to this finding.
  * See: https://attack.mitre.org
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.MitreAttack}
  */
-public final class MitreAttack extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MitreAttack extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.MitreAttack)
     MitreAttackOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MitreAttack.newBuilder() to construct.
   private MitreAttack(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MitreAttack() {
     primaryTactic_ = 0;
     primaryTechniques_ = java.util.Collections.emptyList();
@@ -30,16 +48,15 @@ private MitreAttack() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MitreAttack();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MitreAttack(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,94 +76,102 @@ private MitreAttack(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            primaryTactic_ = rawValue;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              primaryTechniques_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              primaryTactic_ = rawValue;
+              break;
             }
-            primaryTechniques_.add(rawValue);
-            break;
-          }
-          case 18: {
-            int length = input.readRawVarint32();
-            int oldLimit = input.pushLimit(length);
-            while(input.getBytesUntilLimit() > 0) {
+          case 16:
+            {
               int rawValue = input.readEnum();
               if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                 primaryTechniques_ = new java.util.ArrayList();
                 mutable_bitField0_ |= 0x00000001;
               }
               primaryTechniques_.add(rawValue);
+              break;
             }
-            input.popLimit(oldLimit);
-            break;
-          }
-          case 24: {
-            int rawValue = input.readEnum();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              additionalTactics_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 18:
+            {
+              int length = input.readRawVarint32();
+              int oldLimit = input.pushLimit(length);
+              while (input.getBytesUntilLimit() > 0) {
+                int rawValue = input.readEnum();
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  primaryTechniques_ = new java.util.ArrayList();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                primaryTechniques_.add(rawValue);
+              }
+              input.popLimit(oldLimit);
+              break;
             }
-            additionalTactics_.add(rawValue);
-            break;
-          }
-          case 26: {
-            int length = input.readRawVarint32();
-            int oldLimit = input.pushLimit(length);
-            while(input.getBytesUntilLimit() > 0) {
+          case 24:
+            {
               int rawValue = input.readEnum();
               if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                 additionalTactics_ = new java.util.ArrayList();
                 mutable_bitField0_ |= 0x00000002;
               }
               additionalTactics_.add(rawValue);
+              break;
             }
-            input.popLimit(oldLimit);
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              additionalTechniques_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000004;
+          case 26:
+            {
+              int length = input.readRawVarint32();
+              int oldLimit = input.pushLimit(length);
+              while (input.getBytesUntilLimit() > 0) {
+                int rawValue = input.readEnum();
+                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                  additionalTactics_ = new java.util.ArrayList();
+                  mutable_bitField0_ |= 0x00000002;
+                }
+                additionalTactics_.add(rawValue);
+              }
+              input.popLimit(oldLimit);
+              break;
             }
-            additionalTechniques_.add(rawValue);
-            break;
-          }
-          case 34: {
-            int length = input.readRawVarint32();
-            int oldLimit = input.pushLimit(length);
-            while(input.getBytesUntilLimit() > 0) {
+          case 32:
+            {
               int rawValue = input.readEnum();
               if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                 additionalTechniques_ = new java.util.ArrayList();
                 mutable_bitField0_ |= 0x00000004;
               }
               additionalTechniques_.add(rawValue);
+              break;
             }
-            input.popLimit(oldLimit);
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 34:
+            {
+              int length = input.readRawVarint32();
+              int oldLimit = input.pushLimit(length);
+              while (input.getBytesUntilLimit() > 0) {
+                int rawValue = input.readEnum();
+                if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                  additionalTechniques_ = new java.util.ArrayList();
+                  mutable_bitField0_ |= 0x00000004;
+                }
+                additionalTechniques_.add(rawValue);
+              }
+              input.popLimit(oldLimit);
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            version_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              version_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -154,8 +179,7 @@ private MitreAttack(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         primaryTechniques_ = java.util.Collections.unmodifiableList(primaryTechniques_);
@@ -170,20 +194,25 @@ private MitreAttack(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1.MitreAttackProto.internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1.MitreAttackProto
+        .internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.MitreAttackProto.internal_static_google_cloud_securitycenter_v1_MitreAttack_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.MitreAttackProto
+        .internal_static_google_cloud_securitycenter_v1_MitreAttack_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.MitreAttack.class, com.google.cloud.securitycenter.v1.MitreAttack.Builder.class);
+            com.google.cloud.securitycenter.v1.MitreAttack.class,
+            com.google.cloud.securitycenter.v1.MitreAttack.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * MITRE ATT&CK tactics that can be referenced by SCC findings.
    * See: https://attack.mitre.org/tactics/enterprise/
@@ -191,9 +220,10 @@ private MitreAttack(
    *
    * Protobuf enum {@code google.cloud.securitycenter.v1.MitreAttack.Tactic}
    */
-  public enum Tactic
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Tactic implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified value.
      * 
@@ -202,6 +232,8 @@ public enum Tactic */ TACTIC_UNSPECIFIED(0), /** + * + * *
      * TA0043
      * 
@@ -210,6 +242,8 @@ public enum Tactic */ RECONNAISSANCE(1), /** + * + * *
      * TA0042
      * 
@@ -218,6 +252,8 @@ public enum Tactic */ RESOURCE_DEVELOPMENT(2), /** + * + * *
      * TA0001
      * 
@@ -226,6 +262,8 @@ public enum Tactic */ INITIAL_ACCESS(5), /** + * + * *
      * TA0002
      * 
@@ -234,6 +272,8 @@ public enum Tactic */ EXECUTION(3), /** + * + * *
      * TA0003
      * 
@@ -242,6 +282,8 @@ public enum Tactic */ PERSISTENCE(6), /** + * + * *
      * TA0004
      * 
@@ -250,6 +292,8 @@ public enum Tactic */ PRIVILEGE_ESCALATION(8), /** + * + * *
      * TA0005
      * 
@@ -258,6 +302,8 @@ public enum Tactic */ DEFENSE_EVASION(7), /** + * + * *
      * TA0006
      * 
@@ -266,6 +312,8 @@ public enum Tactic */ CREDENTIAL_ACCESS(9), /** + * + * *
      * TA0007
      * 
@@ -274,6 +322,8 @@ public enum Tactic */ DISCOVERY(10), /** + * + * *
      * TA0008
      * 
@@ -282,6 +332,8 @@ public enum Tactic */ LATERAL_MOVEMENT(11), /** + * + * *
      * TA0009
      * 
@@ -290,6 +342,8 @@ public enum Tactic */ COLLECTION(12), /** + * + * *
      * TA0011
      * 
@@ -298,6 +352,8 @@ public enum Tactic */ COMMAND_AND_CONTROL(4), /** + * + * *
      * TA0010
      * 
@@ -306,6 +362,8 @@ public enum Tactic */ EXFILTRATION(13), /** + * + * *
      * TA0040
      * 
@@ -317,6 +375,8 @@ public enum Tactic ; /** + * + * *
      * Unspecified value.
      * 
@@ -325,6 +385,8 @@ public enum Tactic */ public static final int TACTIC_UNSPECIFIED_VALUE = 0; /** + * + * *
      * TA0043
      * 
@@ -333,6 +395,8 @@ public enum Tactic */ public static final int RECONNAISSANCE_VALUE = 1; /** + * + * *
      * TA0042
      * 
@@ -341,6 +405,8 @@ public enum Tactic */ public static final int RESOURCE_DEVELOPMENT_VALUE = 2; /** + * + * *
      * TA0001
      * 
@@ -349,6 +415,8 @@ public enum Tactic */ public static final int INITIAL_ACCESS_VALUE = 5; /** + * + * *
      * TA0002
      * 
@@ -357,6 +425,8 @@ public enum Tactic */ public static final int EXECUTION_VALUE = 3; /** + * + * *
      * TA0003
      * 
@@ -365,6 +435,8 @@ public enum Tactic */ public static final int PERSISTENCE_VALUE = 6; /** + * + * *
      * TA0004
      * 
@@ -373,6 +445,8 @@ public enum Tactic */ public static final int PRIVILEGE_ESCALATION_VALUE = 8; /** + * + * *
      * TA0005
      * 
@@ -381,6 +455,8 @@ public enum Tactic */ public static final int DEFENSE_EVASION_VALUE = 7; /** + * + * *
      * TA0006
      * 
@@ -389,6 +465,8 @@ public enum Tactic */ public static final int CREDENTIAL_ACCESS_VALUE = 9; /** + * + * *
      * TA0007
      * 
@@ -397,6 +475,8 @@ public enum Tactic */ public static final int DISCOVERY_VALUE = 10; /** + * + * *
      * TA0008
      * 
@@ -405,6 +485,8 @@ public enum Tactic */ public static final int LATERAL_MOVEMENT_VALUE = 11; /** + * + * *
      * TA0009
      * 
@@ -413,6 +495,8 @@ public enum Tactic */ public static final int COLLECTION_VALUE = 12; /** + * + * *
      * TA0011
      * 
@@ -421,6 +505,8 @@ public enum Tactic */ public static final int COMMAND_AND_CONTROL_VALUE = 4; /** + * + * *
      * TA0010
      * 
@@ -429,6 +515,8 @@ public enum Tactic */ public static final int EXFILTRATION_VALUE = 13; /** + * + * *
      * TA0040
      * 
@@ -437,7 +525,6 @@ public enum Tactic */ public static final int IMPACT_VALUE = 14; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -462,61 +549,73 @@ public static Tactic valueOf(int value) { */ public static Tactic forNumber(int value) { switch (value) { - case 0: return TACTIC_UNSPECIFIED; - case 1: return RECONNAISSANCE; - case 2: return RESOURCE_DEVELOPMENT; - case 5: return INITIAL_ACCESS; - case 3: return EXECUTION; - case 6: return PERSISTENCE; - case 8: return PRIVILEGE_ESCALATION; - case 7: return DEFENSE_EVASION; - case 9: return CREDENTIAL_ACCESS; - case 10: return DISCOVERY; - case 11: return LATERAL_MOVEMENT; - case 12: return COLLECTION; - case 4: return COMMAND_AND_CONTROL; - case 13: return EXFILTRATION; - case 14: return IMPACT; - default: return null; + case 0: + return TACTIC_UNSPECIFIED; + case 1: + return RECONNAISSANCE; + case 2: + return RESOURCE_DEVELOPMENT; + case 5: + return INITIAL_ACCESS; + case 3: + return EXECUTION; + case 6: + return PERSISTENCE; + case 8: + return PRIVILEGE_ESCALATION; + case 7: + return DEFENSE_EVASION; + case 9: + return CREDENTIAL_ACCESS; + case 10: + return DISCOVERY; + case 11: + return LATERAL_MOVEMENT; + case 12: + return COLLECTION; + case 4: + return COMMAND_AND_CONTROL; + case 13: + return EXFILTRATION; + case 14: + return IMPACT; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Tactic> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Tactic findValueByNumber(int number) { - return Tactic.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Tactic findValueByNumber(int number) { + return Tactic.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.securitycenter.v1.MitreAttack.getDescriptor().getEnumTypes().get(0); } private static final Tactic[] VALUES = values(); - public static Tactic valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Tactic valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -534,6 +633,8 @@ private Tactic(int value) { } /** + * + * *
    * MITRE ATT&CK techniques that can be referenced by SCC findings.
    * See: https://attack.mitre.org/techniques/enterprise/
@@ -541,9 +642,10 @@ private Tactic(int value) {
    *
    * Protobuf enum {@code google.cloud.securitycenter.v1.MitreAttack.Technique}
    */
-  public enum Technique
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Technique implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified value.
      * 
@@ -552,6 +654,8 @@ public enum Technique */ TECHNIQUE_UNSPECIFIED(0), /** + * + * *
      * T1595
      * 
@@ -560,6 +664,8 @@ public enum Technique */ ACTIVE_SCANNING(1), /** + * + * *
      * T1595.001
      * 
@@ -568,6 +674,8 @@ public enum Technique */ SCANNING_IP_BLOCKS(2), /** + * + * *
      * T1105
      * 
@@ -576,6 +684,8 @@ public enum Technique */ INGRESS_TOOL_TRANSFER(3), /** + * + * *
      * T1106
      * 
@@ -584,6 +694,8 @@ public enum Technique */ NATIVE_API(4), /** + * + * *
      * T1129
      * 
@@ -592,6 +704,8 @@ public enum Technique */ SHARED_MODULES(5), /** + * + * *
      * T1059
      * 
@@ -600,6 +714,8 @@ public enum Technique */ COMMAND_AND_SCRIPTING_INTERPRETER(6), /** + * + * *
      * T1059.004
      * 
@@ -608,6 +724,8 @@ public enum Technique */ UNIX_SHELL(7), /** + * + * *
      * T1496
      * 
@@ -616,6 +734,8 @@ public enum Technique */ RESOURCE_HIJACKING(8), /** + * + * *
      * T1090
      * 
@@ -624,6 +744,8 @@ public enum Technique */ PROXY(9), /** + * + * *
      * T1090.002
      * 
@@ -632,6 +754,8 @@ public enum Technique */ EXTERNAL_PROXY(10), /** + * + * *
      * T1090.003
      * 
@@ -640,6 +764,8 @@ public enum Technique */ MULTI_HOP_PROXY(11), /** + * + * *
      * T1568
      * 
@@ -648,6 +774,8 @@ public enum Technique */ DYNAMIC_RESOLUTION(12), /** + * + * *
      * T1552
      * 
@@ -656,6 +784,8 @@ public enum Technique */ UNSECURED_CREDENTIALS(13), /** + * + * *
      * T1078
      * 
@@ -664,6 +794,8 @@ public enum Technique */ VALID_ACCOUNTS(14), /** + * + * *
      * T1078.003
      * 
@@ -672,6 +804,8 @@ public enum Technique */ LOCAL_ACCOUNTS(15), /** + * + * *
      * T1078.004
      * 
@@ -680,6 +814,8 @@ public enum Technique */ CLOUD_ACCOUNTS(16), /** + * + * *
      * T1498
      * 
@@ -688,6 +824,8 @@ public enum Technique */ NETWORK_DENIAL_OF_SERVICE(17), /** + * + * *
      * T1069
      * 
@@ -696,6 +834,8 @@ public enum Technique */ PERMISSION_GROUPS_DISCOVERY(18), /** + * + * *
      * T1069.003
      * 
@@ -704,6 +844,8 @@ public enum Technique */ CLOUD_GROUPS(19), /** + * + * *
      * T1567
      * 
@@ -712,6 +854,8 @@ public enum Technique */ EXFILTRATION_OVER_WEB_SERVICE(20), /** + * + * *
      * T1567.002
      * 
@@ -720,6 +864,8 @@ public enum Technique */ EXFILTRATION_TO_CLOUD_STORAGE(21), /** + * + * *
      * T1098
      * 
@@ -728,6 +874,8 @@ public enum Technique */ ACCOUNT_MANIPULATION(22), /** + * + * *
      * T1098.004
      * 
@@ -736,6 +884,8 @@ public enum Technique */ SSH_AUTHORIZED_KEYS(23), /** + * + * *
      * T1543
      * 
@@ -744,6 +894,8 @@ public enum Technique */ CREATE_OR_MODIFY_SYSTEM_PROCESS(24), /** + * + * *
      * T1539
      * 
@@ -752,6 +904,8 @@ public enum Technique */ STEAL_WEB_SESSION_COOKIE(25), /** + * + * *
      * T1578
      * 
@@ -760,6 +914,8 @@ public enum Technique */ MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE(26), /** + * + * *
      * T1190
      * 
@@ -768,6 +924,8 @@ public enum Technique */ EXPLOIT_PUBLIC_FACING_APPLICATION(27), /** + * + * *
      * T1556
      * 
@@ -776,6 +934,8 @@ public enum Technique */ MODIFY_AUTHENTICATION_PROCESS(28), /** + * + * *
      * T1485
      * 
@@ -784,6 +944,8 @@ public enum Technique */ DATA_DESTRUCTION(29), /** + * + * *
      * T1484
      * 
@@ -792,6 +954,8 @@ public enum Technique */ DOMAIN_POLICY_MODIFICATION(30), /** + * + * *
      * T1562
      * 
@@ -803,6 +967,8 @@ public enum Technique ; /** + * + * *
      * Unspecified value.
      * 
@@ -811,6 +977,8 @@ public enum Technique */ public static final int TECHNIQUE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * T1595
      * 
@@ -819,6 +987,8 @@ public enum Technique */ public static final int ACTIVE_SCANNING_VALUE = 1; /** + * + * *
      * T1595.001
      * 
@@ -827,6 +997,8 @@ public enum Technique */ public static final int SCANNING_IP_BLOCKS_VALUE = 2; /** + * + * *
      * T1105
      * 
@@ -835,6 +1007,8 @@ public enum Technique */ public static final int INGRESS_TOOL_TRANSFER_VALUE = 3; /** + * + * *
      * T1106
      * 
@@ -843,6 +1017,8 @@ public enum Technique */ public static final int NATIVE_API_VALUE = 4; /** + * + * *
      * T1129
      * 
@@ -851,6 +1027,8 @@ public enum Technique */ public static final int SHARED_MODULES_VALUE = 5; /** + * + * *
      * T1059
      * 
@@ -859,6 +1037,8 @@ public enum Technique */ public static final int COMMAND_AND_SCRIPTING_INTERPRETER_VALUE = 6; /** + * + * *
      * T1059.004
      * 
@@ -867,6 +1047,8 @@ public enum Technique */ public static final int UNIX_SHELL_VALUE = 7; /** + * + * *
      * T1496
      * 
@@ -875,6 +1057,8 @@ public enum Technique */ public static final int RESOURCE_HIJACKING_VALUE = 8; /** + * + * *
      * T1090
      * 
@@ -883,6 +1067,8 @@ public enum Technique */ public static final int PROXY_VALUE = 9; /** + * + * *
      * T1090.002
      * 
@@ -891,6 +1077,8 @@ public enum Technique */ public static final int EXTERNAL_PROXY_VALUE = 10; /** + * + * *
      * T1090.003
      * 
@@ -899,6 +1087,8 @@ public enum Technique */ public static final int MULTI_HOP_PROXY_VALUE = 11; /** + * + * *
      * T1568
      * 
@@ -907,6 +1097,8 @@ public enum Technique */ public static final int DYNAMIC_RESOLUTION_VALUE = 12; /** + * + * *
      * T1552
      * 
@@ -915,6 +1107,8 @@ public enum Technique */ public static final int UNSECURED_CREDENTIALS_VALUE = 13; /** + * + * *
      * T1078
      * 
@@ -923,6 +1117,8 @@ public enum Technique */ public static final int VALID_ACCOUNTS_VALUE = 14; /** + * + * *
      * T1078.003
      * 
@@ -931,6 +1127,8 @@ public enum Technique */ public static final int LOCAL_ACCOUNTS_VALUE = 15; /** + * + * *
      * T1078.004
      * 
@@ -939,6 +1137,8 @@ public enum Technique */ public static final int CLOUD_ACCOUNTS_VALUE = 16; /** + * + * *
      * T1498
      * 
@@ -947,6 +1147,8 @@ public enum Technique */ public static final int NETWORK_DENIAL_OF_SERVICE_VALUE = 17; /** + * + * *
      * T1069
      * 
@@ -955,6 +1157,8 @@ public enum Technique */ public static final int PERMISSION_GROUPS_DISCOVERY_VALUE = 18; /** + * + * *
      * T1069.003
      * 
@@ -963,6 +1167,8 @@ public enum Technique */ public static final int CLOUD_GROUPS_VALUE = 19; /** + * + * *
      * T1567
      * 
@@ -971,6 +1177,8 @@ public enum Technique */ public static final int EXFILTRATION_OVER_WEB_SERVICE_VALUE = 20; /** + * + * *
      * T1567.002
      * 
@@ -979,6 +1187,8 @@ public enum Technique */ public static final int EXFILTRATION_TO_CLOUD_STORAGE_VALUE = 21; /** + * + * *
      * T1098
      * 
@@ -987,6 +1197,8 @@ public enum Technique */ public static final int ACCOUNT_MANIPULATION_VALUE = 22; /** + * + * *
      * T1098.004
      * 
@@ -995,6 +1207,8 @@ public enum Technique */ public static final int SSH_AUTHORIZED_KEYS_VALUE = 23; /** + * + * *
      * T1543
      * 
@@ -1003,6 +1217,8 @@ public enum Technique */ public static final int CREATE_OR_MODIFY_SYSTEM_PROCESS_VALUE = 24; /** + * + * *
      * T1539
      * 
@@ -1011,6 +1227,8 @@ public enum Technique */ public static final int STEAL_WEB_SESSION_COOKIE_VALUE = 25; /** + * + * *
      * T1578
      * 
@@ -1019,6 +1237,8 @@ public enum Technique */ public static final int MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE_VALUE = 26; /** + * + * *
      * T1190
      * 
@@ -1027,6 +1247,8 @@ public enum Technique */ public static final int EXPLOIT_PUBLIC_FACING_APPLICATION_VALUE = 27; /** + * + * *
      * T1556
      * 
@@ -1035,6 +1257,8 @@ public enum Technique */ public static final int MODIFY_AUTHENTICATION_PROCESS_VALUE = 28; /** + * + * *
      * T1485
      * 
@@ -1043,6 +1267,8 @@ public enum Technique */ public static final int DATA_DESTRUCTION_VALUE = 29; /** + * + * *
      * T1484
      * 
@@ -1051,6 +1277,8 @@ public enum Technique */ public static final int DOMAIN_POLICY_MODIFICATION_VALUE = 30; /** + * + * *
      * T1562
      * 
@@ -1059,7 +1287,6 @@ public enum Technique */ public static final int IMPAIR_DEFENSES_VALUE = 31; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1084,78 +1311,107 @@ public static Technique valueOf(int value) { */ public static Technique forNumber(int value) { switch (value) { - case 0: return TECHNIQUE_UNSPECIFIED; - case 1: return ACTIVE_SCANNING; - case 2: return SCANNING_IP_BLOCKS; - case 3: return INGRESS_TOOL_TRANSFER; - case 4: return NATIVE_API; - case 5: return SHARED_MODULES; - case 6: return COMMAND_AND_SCRIPTING_INTERPRETER; - case 7: return UNIX_SHELL; - case 8: return RESOURCE_HIJACKING; - case 9: return PROXY; - case 10: return EXTERNAL_PROXY; - case 11: return MULTI_HOP_PROXY; - case 12: return DYNAMIC_RESOLUTION; - case 13: return UNSECURED_CREDENTIALS; - case 14: return VALID_ACCOUNTS; - case 15: return LOCAL_ACCOUNTS; - case 16: return CLOUD_ACCOUNTS; - case 17: return NETWORK_DENIAL_OF_SERVICE; - case 18: return PERMISSION_GROUPS_DISCOVERY; - case 19: return CLOUD_GROUPS; - case 20: return EXFILTRATION_OVER_WEB_SERVICE; - case 21: return EXFILTRATION_TO_CLOUD_STORAGE; - case 22: return ACCOUNT_MANIPULATION; - case 23: return SSH_AUTHORIZED_KEYS; - case 24: return CREATE_OR_MODIFY_SYSTEM_PROCESS; - case 25: return STEAL_WEB_SESSION_COOKIE; - case 26: return MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE; - case 27: return EXPLOIT_PUBLIC_FACING_APPLICATION; - case 28: return MODIFY_AUTHENTICATION_PROCESS; - case 29: return DATA_DESTRUCTION; - case 30: return DOMAIN_POLICY_MODIFICATION; - case 31: return IMPAIR_DEFENSES; - default: return null; + case 0: + return TECHNIQUE_UNSPECIFIED; + case 1: + return ACTIVE_SCANNING; + case 2: + return SCANNING_IP_BLOCKS; + case 3: + return INGRESS_TOOL_TRANSFER; + case 4: + return NATIVE_API; + case 5: + return SHARED_MODULES; + case 6: + return COMMAND_AND_SCRIPTING_INTERPRETER; + case 7: + return UNIX_SHELL; + case 8: + return RESOURCE_HIJACKING; + case 9: + return PROXY; + case 10: + return EXTERNAL_PROXY; + case 11: + return MULTI_HOP_PROXY; + case 12: + return DYNAMIC_RESOLUTION; + case 13: + return UNSECURED_CREDENTIALS; + case 14: + return VALID_ACCOUNTS; + case 15: + return LOCAL_ACCOUNTS; + case 16: + return CLOUD_ACCOUNTS; + case 17: + return NETWORK_DENIAL_OF_SERVICE; + case 18: + return PERMISSION_GROUPS_DISCOVERY; + case 19: + return CLOUD_GROUPS; + case 20: + return EXFILTRATION_OVER_WEB_SERVICE; + case 21: + return EXFILTRATION_TO_CLOUD_STORAGE; + case 22: + return ACCOUNT_MANIPULATION; + case 23: + return SSH_AUTHORIZED_KEYS; + case 24: + return CREATE_OR_MODIFY_SYSTEM_PROCESS; + case 25: + return STEAL_WEB_SESSION_COOKIE; + case 26: + return MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE; + case 27: + return EXPLOIT_PUBLIC_FACING_APPLICATION; + case 28: + return MODIFY_AUTHENTICATION_PROCESS; + case 29: + return DATA_DESTRUCTION; + case 30: + return DOMAIN_POLICY_MODIFICATION; + case 31: + return IMPAIR_DEFENSES; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Technique> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Technique findValueByNumber(int number) { - return Technique.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Technique findValueByNumber(int number) { + return Technique.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.securitycenter.v1.MitreAttack.getDescriptor().getEnumTypes().get(1); } private static final Technique[] VALUES = values(); - public static Technique valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Technique valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1175,43 +1431,61 @@ private Technique(int value) { public static final int PRIMARY_TACTIC_FIELD_NUMBER = 1; private int primaryTactic_; /** + * + * *
    * The MITRE ATT&CK tactic most closely represented by this finding, if any.
    * 
* * .google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1; + * * @return The enum numeric value on the wire for primaryTactic. */ - @java.lang.Override public int getPrimaryTacticValue() { + @java.lang.Override + public int getPrimaryTacticValue() { return primaryTactic_; } /** + * + * *
    * The MITRE ATT&CK tactic most closely represented by this finding, if any.
    * 
* * .google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1; + * * @return The primaryTactic. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.MitreAttack.Tactic getPrimaryTactic() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.MitreAttack.Tactic getPrimaryTactic() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.MitreAttack.Tactic result = com.google.cloud.securitycenter.v1.MitreAttack.Tactic.valueOf(primaryTactic_); - return result == null ? com.google.cloud.securitycenter.v1.MitreAttack.Tactic.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.MitreAttack.Tactic result = + com.google.cloud.securitycenter.v1.MitreAttack.Tactic.valueOf(primaryTactic_); + return result == null + ? com.google.cloud.securitycenter.v1.MitreAttack.Tactic.UNRECOGNIZED + : result; } public static final int PRIMARY_TECHNIQUES_FIELD_NUMBER = 2; private java.util.List primaryTechniques_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique> primaryTechniques_converter_ = + java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique> + primaryTechniques_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique>() { - public com.google.cloud.securitycenter.v1.MitreAttack.Technique convert(java.lang.Integer from) { + public com.google.cloud.securitycenter.v1.MitreAttack.Technique convert( + java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.MitreAttack.Technique result = com.google.cloud.securitycenter.v1.MitreAttack.Technique.valueOf(from); - return result == null ? com.google.cloud.securitycenter.v1.MitreAttack.Technique.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.MitreAttack.Technique result = + com.google.cloud.securitycenter.v1.MitreAttack.Technique.valueOf(from); + return result == null + ? com.google.cloud.securitycenter.v1.MitreAttack.Technique.UNRECOGNIZED + : result; } }; /** + * + * *
    * The MITRE ATT&CK technique most closely represented by this finding, if
    * any. primary_techniques is a repeated field because there are multiple
@@ -1221,15 +1495,21 @@ public com.google.cloud.securitycenter.v1.MitreAttack.Technique convert(java.lan
    * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @return A list containing the primaryTechniques. */ @java.lang.Override - public java.util.List getPrimaryTechniquesList() { + public java.util.List + getPrimaryTechniquesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique>(primaryTechniques_, primaryTechniques_converter_); + java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique>( + primaryTechniques_, primaryTechniques_converter_); } /** + * + * *
    * The MITRE ATT&CK technique most closely represented by this finding, if
    * any. primary_techniques is a repeated field because there are multiple
@@ -1239,7 +1519,9 @@ public java.util.List
    * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @return The count of primaryTechniques. */ @java.lang.Override @@ -1247,6 +1529,8 @@ public int getPrimaryTechniquesCount() { return primaryTechniques_.size(); } /** + * + * *
    * The MITRE ATT&CK technique most closely represented by this finding, if
    * any. primary_techniques is a repeated field because there are multiple
@@ -1256,7 +1540,9 @@ public int getPrimaryTechniquesCount() {
    * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @param index The index of the element to return. * @return The primaryTechniques at the given index. */ @@ -1265,6 +1551,8 @@ public com.google.cloud.securitycenter.v1.MitreAttack.Technique getPrimaryTechni return primaryTechniques_converter_.convert(primaryTechniques_.get(index)); } /** + * + * *
    * The MITRE ATT&CK technique most closely represented by this finding, if
    * any. primary_techniques is a repeated field because there are multiple
@@ -1274,15 +1562,18 @@ public com.google.cloud.securitycenter.v1.MitreAttack.Technique getPrimaryTechni
    * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @return A list containing the enum numeric values on the wire for primaryTechniques. */ @java.lang.Override - public java.util.List - getPrimaryTechniquesValueList() { + public java.util.List getPrimaryTechniquesValueList() { return primaryTechniques_; } /** + * + * *
    * The MITRE ATT&CK technique most closely represented by this finding, if
    * any. primary_techniques is a repeated field because there are multiple
@@ -1292,7 +1583,9 @@ public com.google.cloud.securitycenter.v1.MitreAttack.Technique getPrimaryTechni
    * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of primaryTechniques at the given index. */ @@ -1300,39 +1593,55 @@ public com.google.cloud.securitycenter.v1.MitreAttack.Technique getPrimaryTechni public int getPrimaryTechniquesValue(int index) { return primaryTechniques_.get(index); } + private int primaryTechniquesMemoizedSerializedSize; public static final int ADDITIONAL_TACTICS_FIELD_NUMBER = 3; private java.util.List additionalTactics_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Tactic> additionalTactics_converter_ = + java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Tactic> + additionalTactics_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Tactic>() { - public com.google.cloud.securitycenter.v1.MitreAttack.Tactic convert(java.lang.Integer from) { + public com.google.cloud.securitycenter.v1.MitreAttack.Tactic convert( + java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.MitreAttack.Tactic result = com.google.cloud.securitycenter.v1.MitreAttack.Tactic.valueOf(from); - return result == null ? com.google.cloud.securitycenter.v1.MitreAttack.Tactic.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.MitreAttack.Tactic result = + com.google.cloud.securitycenter.v1.MitreAttack.Tactic.valueOf(from); + return result == null + ? com.google.cloud.securitycenter.v1.MitreAttack.Tactic.UNRECOGNIZED + : result; } }; /** + * + * *
    * Additional MITRE ATT&CK tactics related to this finding, if any.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @return A list containing the additionalTactics. */ @java.lang.Override - public java.util.List getAdditionalTacticsList() { + public java.util.List + getAdditionalTacticsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Tactic>(additionalTactics_, additionalTactics_converter_); + java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Tactic>( + additionalTactics_, additionalTactics_converter_); } /** + * + * *
    * Additional MITRE ATT&CK tactics related to this finding, if any.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @return The count of additionalTactics. */ @java.lang.Override @@ -1340,11 +1649,15 @@ public int getAdditionalTacticsCount() { return additionalTactics_.size(); } /** + * + * *
    * Additional MITRE ATT&CK tactics related to this finding, if any.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @param index The index of the element to return. * @return The additionalTactics at the given index. */ @@ -1353,24 +1666,31 @@ public com.google.cloud.securitycenter.v1.MitreAttack.Tactic getAdditionalTactic return additionalTactics_converter_.convert(additionalTactics_.get(index)); } /** + * + * *
    * Additional MITRE ATT&CK tactics related to this finding, if any.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @return A list containing the enum numeric values on the wire for additionalTactics. */ @java.lang.Override - public java.util.List - getAdditionalTacticsValueList() { + public java.util.List getAdditionalTacticsValueList() { return additionalTactics_; } /** + * + * *
    * Additional MITRE ATT&CK tactics related to this finding, if any.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of additionalTactics at the given index. */ @@ -1378,41 +1698,57 @@ public com.google.cloud.securitycenter.v1.MitreAttack.Tactic getAdditionalTactic public int getAdditionalTacticsValue(int index) { return additionalTactics_.get(index); } + private int additionalTacticsMemoizedSerializedSize; public static final int ADDITIONAL_TECHNIQUES_FIELD_NUMBER = 4; private java.util.List additionalTechniques_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique> additionalTechniques_converter_ = + java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique> + additionalTechniques_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique>() { - public com.google.cloud.securitycenter.v1.MitreAttack.Technique convert(java.lang.Integer from) { + public com.google.cloud.securitycenter.v1.MitreAttack.Technique convert( + java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.MitreAttack.Technique result = com.google.cloud.securitycenter.v1.MitreAttack.Technique.valueOf(from); - return result == null ? com.google.cloud.securitycenter.v1.MitreAttack.Technique.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.MitreAttack.Technique result = + com.google.cloud.securitycenter.v1.MitreAttack.Technique.valueOf(from); + return result == null + ? com.google.cloud.securitycenter.v1.MitreAttack.Technique.UNRECOGNIZED + : result; } }; /** + * + * *
    * Additional MITRE ATT&CK techniques related to this finding, if any, along
    * with any of their respective parent techniques.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @return A list containing the additionalTechniques. */ @java.lang.Override - public java.util.List getAdditionalTechniquesList() { + public java.util.List + getAdditionalTechniquesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique>(additionalTechniques_, additionalTechniques_converter_); + java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique>( + additionalTechniques_, additionalTechniques_converter_); } /** + * + * *
    * Additional MITRE ATT&CK techniques related to this finding, if any, along
    * with any of their respective parent techniques.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @return The count of additionalTechniques. */ @java.lang.Override @@ -1420,40 +1756,52 @@ public int getAdditionalTechniquesCount() { return additionalTechniques_.size(); } /** + * + * *
    * Additional MITRE ATT&CK techniques related to this finding, if any, along
    * with any of their respective parent techniques.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @param index The index of the element to return. * @return The additionalTechniques at the given index. */ @java.lang.Override - public com.google.cloud.securitycenter.v1.MitreAttack.Technique getAdditionalTechniques(int index) { + public com.google.cloud.securitycenter.v1.MitreAttack.Technique getAdditionalTechniques( + int index) { return additionalTechniques_converter_.convert(additionalTechniques_.get(index)); } /** + * + * *
    * Additional MITRE ATT&CK techniques related to this finding, if any, along
    * with any of their respective parent techniques.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @return A list containing the enum numeric values on the wire for additionalTechniques. */ @java.lang.Override - public java.util.List - getAdditionalTechniquesValueList() { + public java.util.List getAdditionalTechniquesValueList() { return additionalTechniques_; } /** + * + * *
    * Additional MITRE ATT&CK techniques related to this finding, if any, along
    * with any of their respective parent techniques.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of additionalTechniques at the given index. */ @@ -1461,16 +1809,20 @@ public com.google.cloud.securitycenter.v1.MitreAttack.Technique getAdditionalTec public int getAdditionalTechniquesValue(int index) { return additionalTechniques_.get(index); } + private int additionalTechniquesMemoizedSerializedSize; public static final int VERSION_FIELD_NUMBER = 5; private volatile java.lang.Object version_; /** + * + * *
    * The MITRE ATT&CK version referenced by the above fields. E.g. "8".
    * 
* * string version = 5; + * * @return The version. */ @java.lang.Override @@ -1479,29 +1831,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * The MITRE ATT&CK version referenced by the above fields. E.g. "8".
    * 
* * string version = 5; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -1510,6 +1862,7 @@ public java.lang.String getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1521,10 +1874,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (primaryTactic_ != com.google.cloud.securitycenter.v1.MitreAttack.Tactic.TACTIC_UNSPECIFIED.getNumber()) { + if (primaryTactic_ + != com.google.cloud.securitycenter.v1.MitreAttack.Tactic.TACTIC_UNSPECIFIED.getNumber()) { output.writeEnum(1, primaryTactic_); } if (getPrimaryTechniquesList().size() > 0) { @@ -1560,45 +1913,49 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (primaryTactic_ != com.google.cloud.securitycenter.v1.MitreAttack.Tactic.TACTIC_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, primaryTactic_); + if (primaryTactic_ + != com.google.cloud.securitycenter.v1.MitreAttack.Tactic.TACTIC_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, primaryTactic_); } { int dataSize = 0; for (int i = 0; i < primaryTechniques_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(primaryTechniques_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(primaryTechniques_.get(i)); } size += dataSize; - if (!getPrimaryTechniquesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }primaryTechniquesMemoizedSerializedSize = dataSize; + if (!getPrimaryTechniquesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + primaryTechniquesMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < additionalTactics_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(additionalTactics_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(additionalTactics_.get(i)); } size += dataSize; - if (!getAdditionalTacticsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }additionalTacticsMemoizedSerializedSize = dataSize; + if (!getAdditionalTacticsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + additionalTacticsMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < additionalTechniques_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(additionalTechniques_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + additionalTechniques_.get(i)); } size += dataSize; - if (!getAdditionalTechniquesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }additionalTechniquesMemoizedSerializedSize = dataSize; + if (!getAdditionalTechniquesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + additionalTechniquesMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_); @@ -1611,19 +1968,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.MitreAttack)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.MitreAttack other = (com.google.cloud.securitycenter.v1.MitreAttack) obj; + com.google.cloud.securitycenter.v1.MitreAttack other = + (com.google.cloud.securitycenter.v1.MitreAttack) obj; if (primaryTactic_ != other.primaryTactic_) return false; if (!primaryTechniques_.equals(other.primaryTechniques_)) return false; if (!additionalTactics_.equals(other.additionalTactics_)) return false; if (!additionalTechniques_.equals(other.additionalTechniques_)) return false; - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1656,97 +2013,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.MitreAttack parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.MitreAttack parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.MitreAttack parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.MitreAttack parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.MitreAttack prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MITRE ATT&CK tactics and techniques related to this finding.
    * See: https://attack.mitre.org
@@ -1754,21 +2118,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.MitreAttack}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.MitreAttack)
       com.google.cloud.securitycenter.v1.MitreAttackOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.MitreAttackProto.internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.MitreAttackProto
+          .internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.MitreAttackProto.internal_static_google_cloud_securitycenter_v1_MitreAttack_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.MitreAttackProto
+          .internal_static_google_cloud_securitycenter_v1_MitreAttack_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.MitreAttack.class, com.google.cloud.securitycenter.v1.MitreAttack.Builder.class);
+              com.google.cloud.securitycenter.v1.MitreAttack.class,
+              com.google.cloud.securitycenter.v1.MitreAttack.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.MitreAttack.newBuilder()
@@ -1776,16 +2142,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1803,9 +2168,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.MitreAttackProto.internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.MitreAttackProto
+          .internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor;
     }
 
     @java.lang.Override
@@ -1824,7 +2189,8 @@ public com.google.cloud.securitycenter.v1.MitreAttack build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.MitreAttack buildPartial() {
-      com.google.cloud.securitycenter.v1.MitreAttack result = new com.google.cloud.securitycenter.v1.MitreAttack(this);
+      com.google.cloud.securitycenter.v1.MitreAttack result =
+          new com.google.cloud.securitycenter.v1.MitreAttack(this);
       int from_bitField0_ = bitField0_;
       result.primaryTactic_ = primaryTactic_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -1851,38 +2217,39 @@ public com.google.cloud.securitycenter.v1.MitreAttack buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.MitreAttack) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.MitreAttack)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.MitreAttack) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1956,55 +2323,72 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private int primaryTactic_ = 0;
     /**
+     *
+     *
      * 
      * The MITRE ATT&CK tactic most closely represented by this finding, if any.
      * 
* * .google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1; + * * @return The enum numeric value on the wire for primaryTactic. */ - @java.lang.Override public int getPrimaryTacticValue() { + @java.lang.Override + public int getPrimaryTacticValue() { return primaryTactic_; } /** + * + * *
      * The MITRE ATT&CK tactic most closely represented by this finding, if any.
      * 
* * .google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1; + * * @param value The enum numeric value on the wire for primaryTactic to set. * @return This builder for chaining. */ public Builder setPrimaryTacticValue(int value) { - + primaryTactic_ = value; onChanged(); return this; } /** + * + * *
      * The MITRE ATT&CK tactic most closely represented by this finding, if any.
      * 
* * .google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1; + * * @return The primaryTactic. */ @java.lang.Override public com.google.cloud.securitycenter.v1.MitreAttack.Tactic getPrimaryTactic() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.MitreAttack.Tactic result = com.google.cloud.securitycenter.v1.MitreAttack.Tactic.valueOf(primaryTactic_); - return result == null ? com.google.cloud.securitycenter.v1.MitreAttack.Tactic.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.MitreAttack.Tactic result = + com.google.cloud.securitycenter.v1.MitreAttack.Tactic.valueOf(primaryTactic_); + return result == null + ? com.google.cloud.securitycenter.v1.MitreAttack.Tactic.UNRECOGNIZED + : result; } /** + * + * *
      * The MITRE ATT&CK tactic most closely represented by this finding, if any.
      * 
* * .google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1; + * * @param value The primaryTactic to set. * @return This builder for chaining. */ @@ -2012,28 +2396,32 @@ public Builder setPrimaryTactic(com.google.cloud.securitycenter.v1.MitreAttack.T if (value == null) { throw new NullPointerException(); } - + primaryTactic_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The MITRE ATT&CK tactic most closely represented by this finding, if any.
      * 
* * .google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1; + * * @return This builder for chaining. */ public Builder clearPrimaryTactic() { - + primaryTactic_ = 0; onChanged(); return this; } private java.util.List primaryTechniques_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePrimaryTechniquesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { primaryTechniques_ = new java.util.ArrayList(primaryTechniques_); @@ -2041,6 +2429,8 @@ private void ensurePrimaryTechniquesIsMutable() { } } /** + * + * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2050,14 +2440,20 @@ private void ensurePrimaryTechniquesIsMutable() {
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @return A list containing the primaryTechniques. */ - public java.util.List getPrimaryTechniquesList() { + public java.util.List + getPrimaryTechniquesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique>(primaryTechniques_, primaryTechniques_converter_); + java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique>( + primaryTechniques_, primaryTechniques_converter_); } /** + * + * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2067,13 +2463,17 @@ public java.util.List
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @return The count of primaryTechniques. */ public int getPrimaryTechniquesCount() { return primaryTechniques_.size(); } /** + * + * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2083,14 +2483,19 @@ public int getPrimaryTechniquesCount() {
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @param index The index of the element to return. * @return The primaryTechniques at the given index. */ - public com.google.cloud.securitycenter.v1.MitreAttack.Technique getPrimaryTechniques(int index) { + public com.google.cloud.securitycenter.v1.MitreAttack.Technique getPrimaryTechniques( + int index) { return primaryTechniques_converter_.convert(primaryTechniques_.get(index)); } /** + * + * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2100,7 +2505,9 @@ public com.google.cloud.securitycenter.v1.MitreAttack.Technique getPrimaryTechni
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @param index The index to set the value at. * @param value The primaryTechniques to set. * @return This builder for chaining. @@ -2116,6 +2523,8 @@ public Builder setPrimaryTechniques( return this; } /** + * + * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2125,11 +2534,14 @@ public Builder setPrimaryTechniques(
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @param value The primaryTechniques to add. * @return This builder for chaining. */ - public Builder addPrimaryTechniques(com.google.cloud.securitycenter.v1.MitreAttack.Technique value) { + public Builder addPrimaryTechniques( + com.google.cloud.securitycenter.v1.MitreAttack.Technique value) { if (value == null) { throw new NullPointerException(); } @@ -2139,6 +2551,8 @@ public Builder addPrimaryTechniques(com.google.cloud.securitycenter.v1.MitreAtta return this; } /** + * + * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2148,12 +2562,15 @@ public Builder addPrimaryTechniques(com.google.cloud.securitycenter.v1.MitreAtta
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @param values The primaryTechniques to add. * @return This builder for chaining. */ public Builder addAllPrimaryTechniques( - java.lang.Iterable values) { + java.lang.Iterable + values) { ensurePrimaryTechniquesIsMutable(); for (com.google.cloud.securitycenter.v1.MitreAttack.Technique value : values) { primaryTechniques_.add(value.getNumber()); @@ -2162,6 +2579,8 @@ public Builder addAllPrimaryTechniques( return this; } /** + * + * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2171,7 +2590,9 @@ public Builder addAllPrimaryTechniques(
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @return This builder for chaining. */ public Builder clearPrimaryTechniques() { @@ -2181,6 +2602,8 @@ public Builder clearPrimaryTechniques() { return this; } /** + * + * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2190,14 +2613,17 @@ public Builder clearPrimaryTechniques() {
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @return A list containing the enum numeric values on the wire for primaryTechniques. */ - public java.util.List - getPrimaryTechniquesValueList() { + public java.util.List getPrimaryTechniquesValueList() { return java.util.Collections.unmodifiableList(primaryTechniques_); } /** + * + * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2207,7 +2633,9 @@ public Builder clearPrimaryTechniques() {
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of primaryTechniques at the given index. */ @@ -2215,6 +2643,8 @@ public int getPrimaryTechniquesValue(int index) { return primaryTechniques_.get(index); } /** + * + * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2224,19 +2654,22 @@ public int getPrimaryTechniquesValue(int index) {
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of primaryTechniques at the given index. * @return This builder for chaining. */ - public Builder setPrimaryTechniquesValue( - int index, int value) { + public Builder setPrimaryTechniquesValue(int index, int value) { ensurePrimaryTechniquesIsMutable(); primaryTechniques_.set(index, value); onChanged(); return this; } /** + * + * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2246,7 +2679,9 @@ public Builder setPrimaryTechniquesValue(
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @param value The enum numeric value on the wire for primaryTechniques to add. * @return This builder for chaining. */ @@ -2257,6 +2692,8 @@ public Builder addPrimaryTechniquesValue(int value) { return this; } /** + * + * *
      * The MITRE ATT&CK technique most closely represented by this finding, if
      * any. primary_techniques is a repeated field because there are multiple
@@ -2266,12 +2703,13 @@ public Builder addPrimaryTechniquesValue(int value) {
      * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @param values The enum numeric values on the wire for primaryTechniques to add. * @return This builder for chaining. */ - public Builder addAllPrimaryTechniquesValue( - java.lang.Iterable values) { + public Builder addAllPrimaryTechniquesValue(java.lang.Iterable values) { ensurePrimaryTechniquesIsMutable(); for (int value : values) { primaryTechniques_.add(value); @@ -2281,7 +2719,8 @@ public Builder addAllPrimaryTechniquesValue( } private java.util.List additionalTactics_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAdditionalTacticsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { additionalTactics_ = new java.util.ArrayList(additionalTactics_); @@ -2289,34 +2728,48 @@ private void ensureAdditionalTacticsIsMutable() { } } /** + * + * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @return A list containing the additionalTactics. */ - public java.util.List getAdditionalTacticsList() { + public java.util.List + getAdditionalTacticsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Tactic>(additionalTactics_, additionalTactics_converter_); + java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Tactic>( + additionalTactics_, additionalTactics_converter_); } /** + * + * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @return The count of additionalTactics. */ public int getAdditionalTacticsCount() { return additionalTactics_.size(); } /** + * + * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @param index The index of the element to return. * @return The additionalTactics at the given index. */ @@ -2324,11 +2777,15 @@ public com.google.cloud.securitycenter.v1.MitreAttack.Tactic getAdditionalTactic return additionalTactics_converter_.convert(additionalTactics_.get(index)); } /** + * + * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @param index The index to set the value at. * @param value The additionalTactics to set. * @return This builder for chaining. @@ -2344,15 +2801,20 @@ public Builder setAdditionalTactics( return this; } /** + * + * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @param value The additionalTactics to add. * @return This builder for chaining. */ - public Builder addAdditionalTactics(com.google.cloud.securitycenter.v1.MitreAttack.Tactic value) { + public Builder addAdditionalTactics( + com.google.cloud.securitycenter.v1.MitreAttack.Tactic value) { if (value == null) { throw new NullPointerException(); } @@ -2362,16 +2824,21 @@ public Builder addAdditionalTactics(com.google.cloud.securitycenter.v1.MitreAtta return this; } /** + * + * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @param values The additionalTactics to add. * @return This builder for chaining. */ public Builder addAllAdditionalTactics( - java.lang.Iterable values) { + java.lang.Iterable + values) { ensureAdditionalTacticsIsMutable(); for (com.google.cloud.securitycenter.v1.MitreAttack.Tactic value : values) { additionalTactics_.add(value.getNumber()); @@ -2380,11 +2847,15 @@ public Builder addAllAdditionalTactics( return this; } /** + * + * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @return This builder for chaining. */ public Builder clearAdditionalTactics() { @@ -2394,23 +2865,30 @@ public Builder clearAdditionalTactics() { return this; } /** + * + * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @return A list containing the enum numeric values on the wire for additionalTactics. */ - public java.util.List - getAdditionalTacticsValueList() { + public java.util.List getAdditionalTacticsValueList() { return java.util.Collections.unmodifiableList(additionalTactics_); } /** + * + * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of additionalTactics at the given index. */ @@ -2418,28 +2896,35 @@ public int getAdditionalTacticsValue(int index) { return additionalTactics_.get(index); } /** + * + * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of additionalTactics at the given index. * @return This builder for chaining. */ - public Builder setAdditionalTacticsValue( - int index, int value) { + public Builder setAdditionalTacticsValue(int index, int value) { ensureAdditionalTacticsIsMutable(); additionalTactics_.set(index, value); onChanged(); return this; } /** + * + * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @param value The enum numeric value on the wire for additionalTactics to add. * @return This builder for chaining. */ @@ -2450,16 +2935,19 @@ public Builder addAdditionalTacticsValue(int value) { return this; } /** + * + * *
      * Additional MITRE ATT&CK tactics related to this finding, if any.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @param values The enum numeric values on the wire for additionalTactics to add. * @return This builder for chaining. */ - public Builder addAllAdditionalTacticsValue( - java.lang.Iterable values) { + public Builder addAllAdditionalTacticsValue(java.lang.Iterable values) { ensureAdditionalTacticsIsMutable(); for (int value : values) { additionalTactics_.add(value); @@ -2469,7 +2957,8 @@ public Builder addAllAdditionalTacticsValue( } private java.util.List additionalTechniques_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAdditionalTechniquesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { additionalTechniques_ = new java.util.ArrayList(additionalTechniques_); @@ -2477,50 +2966,73 @@ private void ensureAdditionalTechniquesIsMutable() { } } /** + * + * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @return A list containing the additionalTechniques. */ - public java.util.List getAdditionalTechniquesList() { + public java.util.List + getAdditionalTechniquesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique>(additionalTechniques_, additionalTechniques_converter_); + java.lang.Integer, com.google.cloud.securitycenter.v1.MitreAttack.Technique>( + additionalTechniques_, additionalTechniques_converter_); } /** + * + * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @return The count of additionalTechniques. */ public int getAdditionalTechniquesCount() { return additionalTechniques_.size(); } /** + * + * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @param index The index of the element to return. * @return The additionalTechniques at the given index. */ - public com.google.cloud.securitycenter.v1.MitreAttack.Technique getAdditionalTechniques(int index) { + public com.google.cloud.securitycenter.v1.MitreAttack.Technique getAdditionalTechniques( + int index) { return additionalTechniques_converter_.convert(additionalTechniques_.get(index)); } /** + * + * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @param index The index to set the value at. * @param value The additionalTechniques to set. * @return This builder for chaining. @@ -2536,16 +3048,22 @@ public Builder setAdditionalTechniques( return this; } /** + * + * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @param value The additionalTechniques to add. * @return This builder for chaining. */ - public Builder addAdditionalTechniques(com.google.cloud.securitycenter.v1.MitreAttack.Technique value) { + public Builder addAdditionalTechniques( + com.google.cloud.securitycenter.v1.MitreAttack.Technique value) { if (value == null) { throw new NullPointerException(); } @@ -2555,17 +3073,23 @@ public Builder addAdditionalTechniques(com.google.cloud.securitycenter.v1.MitreA return this; } /** + * + * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @param values The additionalTechniques to add. * @return This builder for chaining. */ public Builder addAllAdditionalTechniques( - java.lang.Iterable values) { + java.lang.Iterable + values) { ensureAdditionalTechniquesIsMutable(); for (com.google.cloud.securitycenter.v1.MitreAttack.Technique value : values) { additionalTechniques_.add(value.getNumber()); @@ -2574,12 +3098,17 @@ public Builder addAllAdditionalTechniques( return this; } /** + * + * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @return This builder for chaining. */ public Builder clearAdditionalTechniques() { @@ -2589,25 +3118,34 @@ public Builder clearAdditionalTechniques() { return this; } /** + * + * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @return A list containing the enum numeric values on the wire for additionalTechniques. */ - public java.util.List - getAdditionalTechniquesValueList() { + public java.util.List getAdditionalTechniquesValueList() { return java.util.Collections.unmodifiableList(additionalTechniques_); } /** + * + * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of additionalTechniques at the given index. */ @@ -2615,30 +3153,39 @@ public int getAdditionalTechniquesValue(int index) { return additionalTechniques_.get(index); } /** + * + * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of additionalTechniques at the given index. * @return This builder for chaining. */ - public Builder setAdditionalTechniquesValue( - int index, int value) { + public Builder setAdditionalTechniquesValue(int index, int value) { ensureAdditionalTechniquesIsMutable(); additionalTechniques_.set(index, value); onChanged(); return this; } /** + * + * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @param value The enum numeric value on the wire for additionalTechniques to add. * @return This builder for chaining. */ @@ -2649,17 +3196,21 @@ public Builder addAdditionalTechniquesValue(int value) { return this; } /** + * + * *
      * Additional MITRE ATT&CK techniques related to this finding, if any, along
      * with any of their respective parent techniques.
      * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @param values The enum numeric values on the wire for additionalTechniques to add. * @return This builder for chaining. */ - public Builder addAllAdditionalTechniquesValue( - java.lang.Iterable values) { + public Builder addAllAdditionalTechniquesValue(java.lang.Iterable values) { ensureAdditionalTechniquesIsMutable(); for (int value : values) { additionalTechniques_.add(value); @@ -2670,18 +3221,20 @@ public Builder addAllAdditionalTechniquesValue( private java.lang.Object version_ = ""; /** + * + * *
      * The MITRE ATT&CK version referenced by the above fields. E.g. "8".
      * 
* * string version = 5; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -2690,20 +3243,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The MITRE ATT&CK version referenced by the above fields. E.g. "8".
      * 
* * string version = 5; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -2711,61 +3265,68 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The MITRE ATT&CK version referenced by the above fields. E.g. "8".
      * 
* * string version = 5; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * The MITRE ATT&CK version referenced by the above fields. E.g. "8".
      * 
* * string version = 5; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * The MITRE ATT&CK version referenced by the above fields. E.g. "8".
      * 
* * string version = 5; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2775,12 +3336,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.MitreAttack) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.MitreAttack) private static final com.google.cloud.securitycenter.v1.MitreAttack DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.MitreAttack(); } @@ -2789,16 +3350,16 @@ public static com.google.cloud.securitycenter.v1.MitreAttack getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MitreAttack parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MitreAttack(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MitreAttack parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MitreAttack(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2813,6 +3374,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.MitreAttack getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackOrBuilder.java similarity index 80% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackOrBuilder.java index c78f5839d..701964f83 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/mitre_attack.proto package com.google.cloud.securitycenter.v1; -public interface MitreAttackOrBuilder extends +public interface MitreAttackOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.MitreAttack) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The MITRE ATT&CK tactic most closely represented by this finding, if any.
    * 
* * .google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1; + * * @return The enum numeric value on the wire for primaryTactic. */ int getPrimaryTacticValue(); /** + * + * *
    * The MITRE ATT&CK tactic most closely represented by this finding, if any.
    * 
* * .google.cloud.securitycenter.v1.MitreAttack.Tactic primary_tactic = 1; + * * @return The primaryTactic. */ com.google.cloud.securitycenter.v1.MitreAttack.Tactic getPrimaryTactic(); /** + * + * *
    * The MITRE ATT&CK technique most closely represented by this finding, if
    * any. primary_techniques is a repeated field because there are multiple
@@ -36,11 +60,16 @@ public interface MitreAttackOrBuilder extends
    * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @return A list containing the primaryTechniques. */ - java.util.List getPrimaryTechniquesList(); + java.util.List + getPrimaryTechniquesList(); /** + * + * *
    * The MITRE ATT&CK technique most closely represented by this finding, if
    * any. primary_techniques is a repeated field because there are multiple
@@ -50,11 +79,15 @@ public interface MitreAttackOrBuilder extends
    * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @return The count of primaryTechniques. */ int getPrimaryTechniquesCount(); /** + * + * *
    * The MITRE ATT&CK technique most closely represented by this finding, if
    * any. primary_techniques is a repeated field because there are multiple
@@ -64,12 +97,16 @@ public interface MitreAttackOrBuilder extends
    * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @param index The index of the element to return. * @return The primaryTechniques at the given index. */ com.google.cloud.securitycenter.v1.MitreAttack.Technique getPrimaryTechniques(int index); /** + * + * *
    * The MITRE ATT&CK technique most closely represented by this finding, if
    * any. primary_techniques is a repeated field because there are multiple
@@ -79,12 +116,15 @@ public interface MitreAttackOrBuilder extends
    * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @return A list containing the enum numeric values on the wire for primaryTechniques. */ - java.util.List - getPrimaryTechniquesValueList(); + java.util.List getPrimaryTechniquesValueList(); /** + * + * *
    * The MITRE ATT&CK technique most closely represented by this finding, if
    * any. primary_techniques is a repeated field because there are multiple
@@ -94,132 +134,178 @@ public interface MitreAttackOrBuilder extends
    * `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique primary_techniques = 2; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of primaryTechniques at the given index. */ int getPrimaryTechniquesValue(int index); /** + * + * *
    * Additional MITRE ATT&CK tactics related to this finding, if any.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @return A list containing the additionalTactics. */ java.util.List getAdditionalTacticsList(); /** + * + * *
    * Additional MITRE ATT&CK tactics related to this finding, if any.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @return The count of additionalTactics. */ int getAdditionalTacticsCount(); /** + * + * *
    * Additional MITRE ATT&CK tactics related to this finding, if any.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @param index The index of the element to return. * @return The additionalTactics at the given index. */ com.google.cloud.securitycenter.v1.MitreAttack.Tactic getAdditionalTactics(int index); /** + * + * *
    * Additional MITRE ATT&CK tactics related to this finding, if any.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @return A list containing the enum numeric values on the wire for additionalTactics. */ - java.util.List - getAdditionalTacticsValueList(); + java.util.List getAdditionalTacticsValueList(); /** + * + * *
    * Additional MITRE ATT&CK tactics related to this finding, if any.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Tactic additional_tactics = 3; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of additionalTactics at the given index. */ int getAdditionalTacticsValue(int index); /** + * + * *
    * Additional MITRE ATT&CK techniques related to this finding, if any, along
    * with any of their respective parent techniques.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @return A list containing the additionalTechniques. */ - java.util.List getAdditionalTechniquesList(); + java.util.List + getAdditionalTechniquesList(); /** + * + * *
    * Additional MITRE ATT&CK techniques related to this finding, if any, along
    * with any of their respective parent techniques.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @return The count of additionalTechniques. */ int getAdditionalTechniquesCount(); /** + * + * *
    * Additional MITRE ATT&CK techniques related to this finding, if any, along
    * with any of their respective parent techniques.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @param index The index of the element to return. * @return The additionalTechniques at the given index. */ com.google.cloud.securitycenter.v1.MitreAttack.Technique getAdditionalTechniques(int index); /** + * + * *
    * Additional MITRE ATT&CK techniques related to this finding, if any, along
    * with any of their respective parent techniques.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @return A list containing the enum numeric values on the wire for additionalTechniques. */ - java.util.List - getAdditionalTechniquesValueList(); + java.util.List getAdditionalTechniquesValueList(); /** + * + * *
    * Additional MITRE ATT&CK techniques related to this finding, if any, along
    * with any of their respective parent techniques.
    * 
* - * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * repeated .google.cloud.securitycenter.v1.MitreAttack.Technique additional_techniques = 4; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of additionalTechniques at the given index. */ int getAdditionalTechniquesValue(int index); /** + * + * *
    * The MITRE ATT&CK version referenced by the above fields. E.g. "8".
    * 
* * string version = 5; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * The MITRE ATT&CK version referenced by the above fields. E.g. "8".
    * 
* * string version = 5; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackProto.java new file mode 100644 index 000000000..995687f5c --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MitreAttackProto.java @@ -0,0 +1,109 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/mitre_attack.proto + +package com.google.cloud.securitycenter.v1; + +public final class MitreAttackProto { + private MitreAttackProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_MitreAttack_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/securitycenter/v1/mitre_a" + + "ttack.proto\022\036google.cloud.securitycenter" + + ".v1\"\355\013\n\013MitreAttack\022J\n\016primary_tactic\030\001 " + + "\001(\01622.google.cloud.securitycenter.v1.Mit" + + "reAttack.Tactic\022Q\n\022primary_techniques\030\002 " + + "\003(\01625.google.cloud.securitycenter.v1.Mit" + + "reAttack.Technique\022N\n\022additional_tactics" + + "\030\003 \003(\01622.google.cloud.securitycenter.v1." + + "MitreAttack.Tactic\022T\n\025additional_techniq" + + "ues\030\004 \003(\01625.google.cloud.securitycenter." + + "v1.MitreAttack.Technique\022\017\n\007version\030\005 \001(" + + "\t\"\264\002\n\006Tactic\022\026\n\022TACTIC_UNSPECIFIED\020\000\022\022\n\016" + + "RECONNAISSANCE\020\001\022\030\n\024RESOURCE_DEVELOPMENT" + + "\020\002\022\022\n\016INITIAL_ACCESS\020\005\022\r\n\tEXECUTION\020\003\022\017\n" + + "\013PERSISTENCE\020\006\022\030\n\024PRIVILEGE_ESCALATION\020\010" + + "\022\023\n\017DEFENSE_EVASION\020\007\022\025\n\021CREDENTIAL_ACCE" + + "SS\020\t\022\r\n\tDISCOVERY\020\n\022\024\n\020LATERAL_MOVEMENT\020" + + "\013\022\016\n\nCOLLECTION\020\014\022\027\n\023COMMAND_AND_CONTROL" + + "\020\004\022\020\n\014EXFILTRATION\020\r\022\n\n\006IMPACT\020\016\"\320\006\n\tTec" + + "hnique\022\031\n\025TECHNIQUE_UNSPECIFIED\020\000\022\023\n\017ACT" + + "IVE_SCANNING\020\001\022\026\n\022SCANNING_IP_BLOCKS\020\002\022\031" + + "\n\025INGRESS_TOOL_TRANSFER\020\003\022\016\n\nNATIVE_API\020" + + "\004\022\022\n\016SHARED_MODULES\020\005\022%\n!COMMAND_AND_SCR" + + "IPTING_INTERPRETER\020\006\022\016\n\nUNIX_SHELL\020\007\022\026\n\022" + + "RESOURCE_HIJACKING\020\010\022\t\n\005PROXY\020\t\022\022\n\016EXTER" + + "NAL_PROXY\020\n\022\023\n\017MULTI_HOP_PROXY\020\013\022\026\n\022DYNA" + + "MIC_RESOLUTION\020\014\022\031\n\025UNSECURED_CREDENTIAL" + + "S\020\r\022\022\n\016VALID_ACCOUNTS\020\016\022\022\n\016LOCAL_ACCOUNT" + + "S\020\017\022\022\n\016CLOUD_ACCOUNTS\020\020\022\035\n\031NETWORK_DENIA" + + "L_OF_SERVICE\020\021\022\037\n\033PERMISSION_GROUPS_DISC" + + "OVERY\020\022\022\020\n\014CLOUD_GROUPS\020\023\022!\n\035EXFILTRATIO" + + "N_OVER_WEB_SERVICE\020\024\022!\n\035EXFILTRATION_TO_" + + "CLOUD_STORAGE\020\025\022\030\n\024ACCOUNT_MANIPULATION\020" + + "\026\022\027\n\023SSH_AUTHORIZED_KEYS\020\027\022#\n\037CREATE_OR_" + + "MODIFY_SYSTEM_PROCESS\020\030\022\034\n\030STEAL_WEB_SES" + + "SION_COOKIE\020\031\022\'\n#MODIFY_CLOUD_COMPUTE_IN" + + "FRASTRUCTURE\020\032\022%\n!EXPLOIT_PUBLIC_FACING_" + + "APPLICATION\020\033\022!\n\035MODIFY_AUTHENTICATION_P" + + "ROCESS\020\034\022\024\n\020DATA_DESTRUCTION\020\035\022\036\n\032DOMAIN" + + "_POLICY_MODIFICATION\020\036\022\023\n\017IMPAIR_DEFENSE" + + "S\020\037B\354\001\n\"com.google.cloud.securitycenter." + + "v1B\020MitreAttackProtoP\001ZLgoogle.golang.or" + + "g/genproto/googleapis/cloud/securitycent" + + "er/v1;securitycenter\252\002\036Google.Cloud.Secu" + + "rityCenter.V1\312\002\036Google\\Cloud\\SecurityCen" + + "ter\\V1\352\002!Google::Cloud::SecurityCenter::" + + "V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_MitreAttack_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_MitreAttack_descriptor, + new java.lang.String[] { + "PrimaryTactic", + "PrimaryTechniques", + "AdditionalTactics", + "AdditionalTechniques", + "Version", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfig.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfig.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfig.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfig.java index 95901fbca..34dc38ac0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfig.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/mute_config.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * A mute config is a Cloud SCC resource that contains the configuration
  * to mute create/update events of findings.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.MuteConfig}
  */
-public final class MuteConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MuteConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.MuteConfig)
     MuteConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MuteConfig.newBuilder() to construct.
   private MuteConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MuteConfig() {
     name_ = "";
     displayName_ = "";
@@ -30,16 +48,15 @@ private MuteConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MuteConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MuteConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,69 +75,78 @@ private MuteConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            displayName_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            description_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            filter_ = s;
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              displayName_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              description_ = s;
+              break;
             }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 50: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+              filter_ = s;
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 42:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 50:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 58:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 58: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            mostRecentEditor_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              mostRecentEditor_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -128,29 +154,33 @@ private MuteConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1.MuteConfigProto.internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1.MuteConfigProto
+        .internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.MuteConfigProto.internal_static_google_cloud_securitycenter_v1_MuteConfig_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.MuteConfigProto
+        .internal_static_google_cloud_securitycenter_v1_MuteConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.MuteConfig.class, com.google.cloud.securitycenter.v1.MuteConfig.Builder.class);
+            com.google.cloud.securitycenter.v1.MuteConfig.class,
+            com.google.cloud.securitycenter.v1.MuteConfig.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * This field will be ignored if provided on config creation. Format
    * "organizations/{organization}/muteConfigs/{mute_config}"
@@ -159,6 +189,7 @@ private MuteConfig(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -167,14 +198,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * This field will be ignored if provided on config creation. Format
    * "organizations/{organization}/muteConfigs/{mute_config}"
@@ -183,16 +215,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -203,46 +234,51 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * The human readable name to be displayed for the mute config.
    * 
* * string display_name = 2 [deprecated = true]; - * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. - * See google/cloud/securitycenter/v1/mute_config.proto;l=47 + * + * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See + * google/cloud/securitycenter/v1/mute_config.proto;l=47 * @return The displayName. */ @java.lang.Override - @java.lang.Deprecated public java.lang.String getDisplayName() { + @java.lang.Deprecated + public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * The human readable name to be displayed for the mute config.
    * 
* * string display_name = 2 [deprecated = true]; - * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. - * See google/cloud/securitycenter/v1/mute_config.proto;l=47 + * + * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See + * google/cloud/securitycenter/v1/mute_config.proto;l=47 * @return The bytes for displayName. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getDisplayNameBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -253,11 +289,14 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * A description of the mute config.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -266,29 +305,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * A description of the mute config.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -299,6 +338,8 @@ public java.lang.String getDescription() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Required. An expression that defines the filter to apply across create/update events
    * of findings. While creating a filter string, be mindful of the
@@ -321,6 +362,7 @@ public java.lang.String getDescription() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ @java.lang.Override @@ -329,14 +371,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Required. An expression that defines the filter to apply across create/update events
    * of findings. While creating a filter string, be mindful of the
@@ -359,16 +402,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -379,13 +421,17 @@ public java.lang.String getFilter() { public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time at which the mute config was created.
    * This field is set by the server and will be ignored if provided on config
    * creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -393,13 +439,17 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time at which the mute config was created.
    * This field is set by the server and will be ignored if provided on config
    * creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -407,13 +457,16 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time at which the mute config was created.
    * This field is set by the server and will be ignored if provided on config
    * creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -423,13 +476,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The most recent time at which the mute config was updated.
    * This field is set by the server and will be ignored if provided on config
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -437,13 +494,17 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The most recent time at which the mute config was updated.
    * This field is set by the server and will be ignored if provided on config
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -451,13 +512,16 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The most recent time at which the mute config was updated.
    * This field is set by the server and will be ignored if provided on config
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -467,6 +531,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int MOST_RECENT_EDITOR_FIELD_NUMBER = 7; private volatile java.lang.Object mostRecentEditor_; /** + * + * *
    * Output only. Email address of the user who last edited the mute config.
    * This field is set by the server and will be ignored if provided on config
@@ -474,6 +540,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The mostRecentEditor. */ @java.lang.Override @@ -482,14 +549,15 @@ public java.lang.String getMostRecentEditor() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mostRecentEditor_ = s; return s; } } /** + * + * *
    * Output only. Email address of the user who last edited the mute config.
    * This field is set by the server and will be ignored if provided on config
@@ -497,16 +565,15 @@ public java.lang.String getMostRecentEditor() {
    * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for mostRecentEditor. */ @java.lang.Override - public com.google.protobuf.ByteString - getMostRecentEditorBytes() { + public com.google.protobuf.ByteString getMostRecentEditorBytes() { java.lang.Object ref = mostRecentEditor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mostRecentEditor_ = b; return b; } else { @@ -515,6 +582,7 @@ public java.lang.String getMostRecentEditor() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -526,8 +594,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -571,12 +638,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mostRecentEditor_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, mostRecentEditor_); @@ -589,33 +654,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.MuteConfig)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.MuteConfig other = (com.google.cloud.securitycenter.v1.MuteConfig) obj; + com.google.cloud.securitycenter.v1.MuteConfig other = + (com.google.cloud.securitycenter.v1.MuteConfig) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!getMostRecentEditor() - .equals(other.getMostRecentEditor())) return false; + if (!getMostRecentEditor().equals(other.getMostRecentEditor())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -650,97 +709,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.MuteConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.MuteConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.MuteConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.MuteConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.MuteConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A mute config is a Cloud SCC resource that contains the configuration
    * to mute create/update events of findings.
@@ -748,21 +814,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.MuteConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.MuteConfig)
       com.google.cloud.securitycenter.v1.MuteConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.MuteConfigProto.internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.MuteConfigProto
+          .internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.MuteConfigProto.internal_static_google_cloud_securitycenter_v1_MuteConfig_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.MuteConfigProto
+          .internal_static_google_cloud_securitycenter_v1_MuteConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.MuteConfig.class, com.google.cloud.securitycenter.v1.MuteConfig.Builder.class);
+              com.google.cloud.securitycenter.v1.MuteConfig.class,
+              com.google.cloud.securitycenter.v1.MuteConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.MuteConfig.newBuilder()
@@ -770,16 +838,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -809,9 +876,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.MuteConfigProto.internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.MuteConfigProto
+          .internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor;
     }
 
     @java.lang.Override
@@ -830,7 +897,8 @@ public com.google.cloud.securitycenter.v1.MuteConfig build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.MuteConfig buildPartial() {
-      com.google.cloud.securitycenter.v1.MuteConfig result = new com.google.cloud.securitycenter.v1.MuteConfig(this);
+      com.google.cloud.securitycenter.v1.MuteConfig result =
+          new com.google.cloud.securitycenter.v1.MuteConfig(this);
       result.name_ = name_;
       result.displayName_ = displayName_;
       result.description_ = description_;
@@ -854,38 +922,39 @@ public com.google.cloud.securitycenter.v1.MuteConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.MuteConfig) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.MuteConfig)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.MuteConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -951,6 +1020,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * This field will be ignored if provided on config creation. Format
      * "organizations/{organization}/muteConfigs/{mute_config}"
@@ -959,13 +1030,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -974,6 +1045,8 @@ public java.lang.String getName() { } } /** + * + * *
      * This field will be ignored if provided on config creation. Format
      * "organizations/{organization}/muteConfigs/{mute_config}"
@@ -982,15 +1055,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -998,6 +1070,8 @@ public java.lang.String getName() { } } /** + * + * *
      * This field will be ignored if provided on config creation. Format
      * "organizations/{organization}/muteConfigs/{mute_config}"
@@ -1006,20 +1080,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * This field will be ignored if provided on config creation. Format
      * "organizations/{organization}/muteConfigs/{mute_config}"
@@ -1028,15 +1104,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * This field will be ignored if provided on config creation. Format
      * "organizations/{organization}/muteConfigs/{mute_config}"
@@ -1045,16 +1124,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1062,20 +1141,23 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * The human readable name to be displayed for the mute config.
      * 
* * string display_name = 2 [deprecated = true]; - * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. - * See google/cloud/securitycenter/v1/mute_config.proto;l=47 + * + * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See + * google/cloud/securitycenter/v1/mute_config.proto;l=47 * @return The displayName. */ - @java.lang.Deprecated public java.lang.String getDisplayName() { + @java.lang.Deprecated + public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1084,22 +1166,24 @@ public Builder setNameBytes( } } /** + * + * *
      * The human readable name to be displayed for the mute config.
      * 
* * string display_name = 2 [deprecated = true]; - * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. - * See google/cloud/securitycenter/v1/mute_config.proto;l=47 + * + * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See + * google/cloud/securitycenter/v1/mute_config.proto;l=47 * @return The bytes for displayName. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getDisplayNameBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1107,60 +1191,70 @@ public Builder setNameBytes( } } /** + * + * *
      * The human readable name to be displayed for the mute config.
      * 
* * string display_name = 2 [deprecated = true]; - * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. - * See google/cloud/securitycenter/v1/mute_config.proto;l=47 + * + * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See + * google/cloud/securitycenter/v1/mute_config.proto;l=47 * @param value The displayName to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setDisplayName( - java.lang.String value) { + @java.lang.Deprecated + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * The human readable name to be displayed for the mute config.
      * 
* * string display_name = 2 [deprecated = true]; - * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. - * See google/cloud/securitycenter/v1/mute_config.proto;l=47 + * + * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See + * google/cloud/securitycenter/v1/mute_config.proto;l=47 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearDisplayName() { - + @java.lang.Deprecated + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * The human readable name to be displayed for the mute config.
      * 
* * string display_name = 2 [deprecated = true]; - * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. - * See google/cloud/securitycenter/v1/mute_config.proto;l=47 + * + * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See + * google/cloud/securitycenter/v1/mute_config.proto;l=47 * @param value The bytes for displayName to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + @java.lang.Deprecated + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1168,18 +1262,20 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * A description of the mute config.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1188,20 +1284,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A description of the mute config.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1209,54 +1306,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A description of the mute config.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * A description of the mute config.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * A description of the mute config.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1264,6 +1368,8 @@ public Builder setDescriptionBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Required. An expression that defines the filter to apply across create/update events
      * of findings. While creating a filter string, be mindful of the
@@ -1286,13 +1392,13 @@ public Builder setDescriptionBytes(
      * 
* * string filter = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1301,6 +1407,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. An expression that defines the filter to apply across create/update events
      * of findings. While creating a filter string, be mindful of the
@@ -1323,15 +1431,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1339,6 +1446,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. An expression that defines the filter to apply across create/update events
      * of findings. While creating a filter string, be mindful of the
@@ -1361,20 +1470,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Required. An expression that defines the filter to apply across create/update events
      * of findings. While creating a filter string, be mindful of the
@@ -1397,15 +1508,18 @@ public Builder setFilter(
      * 
* * string filter = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Required. An expression that defines the filter to apply across create/update events
      * of findings. While creating a filter string, be mindful of the
@@ -1428,16 +1542,16 @@ public Builder clearFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1445,45 +1559,64 @@ public Builder setFilterBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time at which the mute config was created.
      * This field is set by the server and will be ignored if provided on config
      * creation.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time at which the mute config was created.
      * This field is set by the server and will be ignored if provided on config
      * creation.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which the mute config was created.
      * This field is set by the server and will be ignored if provided on config
      * creation.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1499,16 +1632,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which the mute config was created.
      * This field is set by the server and will be ignored if provided on config
      * creation.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1519,19 +1655,23 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time at which the mute config was created.
      * This field is set by the server and will be ignored if provided on config
      * creation.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1543,13 +1683,17 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which the mute config was created.
      * This field is set by the server and will be ignored if provided on config
      * creation.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1563,54 +1707,70 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time at which the mute config was created.
      * This field is set by the server and will be ignored if provided on config
      * creation.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which the mute config was created.
      * This field is set by the server and will be ignored if provided on config
      * creation.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time at which the mute config was created.
      * This field is set by the server and will be ignored if provided on config
      * creation.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1618,45 +1778,64 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The most recent time at which the mute config was updated.
      * This field is set by the server and will be ignored if provided on config
      * creation or update.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The most recent time at which the mute config was updated.
      * This field is set by the server and will be ignored if provided on config
      * creation or update.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The most recent time at which the mute config was updated.
      * This field is set by the server and will be ignored if provided on config
      * creation or update.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1672,16 +1851,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time at which the mute config was updated.
      * This field is set by the server and will be ignored if provided on config
      * creation or update.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1692,19 +1874,23 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The most recent time at which the mute config was updated.
      * This field is set by the server and will be ignored if provided on config
      * creation or update.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1716,13 +1902,17 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time at which the mute config was updated.
      * This field is set by the server and will be ignored if provided on config
      * creation or update.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1736,54 +1926,70 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The most recent time at which the mute config was updated.
      * This field is set by the server and will be ignored if provided on config
      * creation or update.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The most recent time at which the mute config was updated.
      * This field is set by the server and will be ignored if provided on config
      * creation or update.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The most recent time at which the mute config was updated.
      * This field is set by the server and will be ignored if provided on config
      * creation or update.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -1791,6 +1997,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object mostRecentEditor_ = ""; /** + * + * *
      * Output only. Email address of the user who last edited the mute config.
      * This field is set by the server and will be ignored if provided on config
@@ -1798,13 +2006,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The mostRecentEditor. */ public java.lang.String getMostRecentEditor() { java.lang.Object ref = mostRecentEditor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mostRecentEditor_ = s; return s; @@ -1813,6 +2021,8 @@ public java.lang.String getMostRecentEditor() { } } /** + * + * *
      * Output only. Email address of the user who last edited the mute config.
      * This field is set by the server and will be ignored if provided on config
@@ -1820,15 +2030,14 @@ public java.lang.String getMostRecentEditor() {
      * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for mostRecentEditor. */ - public com.google.protobuf.ByteString - getMostRecentEditorBytes() { + public com.google.protobuf.ByteString getMostRecentEditorBytes() { java.lang.Object ref = mostRecentEditor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mostRecentEditor_ = b; return b; } else { @@ -1836,6 +2045,8 @@ public java.lang.String getMostRecentEditor() { } } /** + * + * *
      * Output only. Email address of the user who last edited the mute config.
      * This field is set by the server and will be ignored if provided on config
@@ -1843,20 +2054,22 @@ public java.lang.String getMostRecentEditor() {
      * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The mostRecentEditor to set. * @return This builder for chaining. */ - public Builder setMostRecentEditor( - java.lang.String value) { + public Builder setMostRecentEditor(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mostRecentEditor_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Email address of the user who last edited the mute config.
      * This field is set by the server and will be ignored if provided on config
@@ -1864,15 +2077,18 @@ public Builder setMostRecentEditor(
      * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearMostRecentEditor() { - + mostRecentEditor_ = getDefaultInstance().getMostRecentEditor(); onChanged(); return this; } /** + * + * *
      * Output only. Email address of the user who last edited the mute config.
      * This field is set by the server and will be ignored if provided on config
@@ -1880,23 +2096,23 @@ public Builder clearMostRecentEditor() {
      * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for mostRecentEditor to set. * @return This builder for chaining. */ - public Builder setMostRecentEditorBytes( - com.google.protobuf.ByteString value) { + public Builder setMostRecentEditorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mostRecentEditor_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1906,12 +2122,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.MuteConfig) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.MuteConfig) private static final com.google.cloud.securitycenter.v1.MuteConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.MuteConfig(); } @@ -1920,16 +2136,16 @@ public static com.google.cloud.securitycenter.v1.MuteConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MuteConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MuteConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MuteConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MuteConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1944,6 +2160,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.MuteConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigName.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigOrBuilder.java index dd5589e96..45775163f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/mute_config.proto package com.google.cloud.securitycenter.v1; -public interface MuteConfigOrBuilder extends +public interface MuteConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.MuteConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * This field will be ignored if provided on config creation. Format
    * "organizations/{organization}/muteConfigs/{mute_config}"
@@ -16,10 +34,13 @@ public interface MuteConfigOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * This field will be ignored if provided on config creation. Format
    * "organizations/{organization}/muteConfigs/{mute_config}"
@@ -28,56 +49,70 @@ public interface MuteConfigOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The human readable name to be displayed for the mute config.
    * 
* * string display_name = 2 [deprecated = true]; - * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. - * See google/cloud/securitycenter/v1/mute_config.proto;l=47 + * + * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See + * google/cloud/securitycenter/v1/mute_config.proto;l=47 * @return The displayName. */ - @java.lang.Deprecated java.lang.String getDisplayName(); + @java.lang.Deprecated + java.lang.String getDisplayName(); /** + * + * *
    * The human readable name to be displayed for the mute config.
    * 
* * string display_name = 2 [deprecated = true]; - * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. - * See google/cloud/securitycenter/v1/mute_config.proto;l=47 + * + * @deprecated google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See + * google/cloud/securitycenter/v1/mute_config.proto;l=47 * @return The bytes for displayName. */ - @java.lang.Deprecated com.google.protobuf.ByteString - getDisplayNameBytes(); + @java.lang.Deprecated + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * A description of the mute config.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A description of the mute config.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Required. An expression that defines the filter to apply across create/update events
    * of findings. While creating a filter string, be mindful of the
@@ -100,10 +135,13 @@ public interface MuteConfigOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Required. An expression that defines the filter to apply across create/update events
    * of findings. While creating a filter string, be mindful of the
@@ -126,78 +164,102 @@ public interface MuteConfigOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Output only. The time at which the mute config was created.
    * This field is set by the server and will be ignored if provided on config
    * creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time at which the mute config was created.
    * This field is set by the server and will be ignored if provided on config
    * creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time at which the mute config was created.
    * This field is set by the server and will be ignored if provided on config
    * creation.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The most recent time at which the mute config was updated.
    * This field is set by the server and will be ignored if provided on config
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The most recent time at which the mute config was updated.
    * This field is set by the server and will be ignored if provided on config
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The most recent time at which the mute config was updated.
    * This field is set by the server and will be ignored if provided on config
    * creation or update.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. Email address of the user who last edited the mute config.
    * This field is set by the server and will be ignored if provided on config
@@ -205,10 +267,13 @@ public interface MuteConfigOrBuilder extends
    * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The mostRecentEditor. */ java.lang.String getMostRecentEditor(); /** + * + * *
    * Output only. Email address of the user who last edited the mute config.
    * This field is set by the server and will be ignored if provided on config
@@ -216,8 +281,8 @@ public interface MuteConfigOrBuilder extends
    * 
* * string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for mostRecentEditor. */ - com.google.protobuf.ByteString - getMostRecentEditorBytes(); + com.google.protobuf.ByteString getMostRecentEditorBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigProto.java new file mode 100644 index 000000000..b6b1cd231 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigProto.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/mute_config.proto + +package com.google.cloud.securitycenter.v1; + +public final class MuteConfigProto { + private MuteConfigProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_MuteConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/securitycenter/v1/mute_co" + + "nfig.proto\022\036google.cloud.securitycenter." + + "v1\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\032\037google/protobuf/" + + "timestamp.proto\"\256\003\n\nMuteConfig\022\014\n\004name\030\001" + + " \001(\t\022\030\n\014display_name\030\002 \001(\tB\002\030\001\022\023\n\013descri" + + "ption\030\003 \001(\t\022\023\n\006filter\030\004 \001(\tB\003\340A\002\0224\n\013crea" + + "te_time\030\005 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022\037\n\022most_recent_edit" + + "or\030\007 \001(\tB\003\340A\003:\300\001\352A\274\001\n(securitycenter.goo" + + "gleapis.com/MuteConfig\0226organizations/{o" + + "rganization}/muteConfigs/{mute_config}\022*" + + "folders/{folder}/muteConfigs/{mute_confi" + + "g}\022,projects/{project}/muteConfigs/{mute" + + "_config}B\353\001\n\"com.google.cloud.securityce" + + "nter.v1B\017MuteConfigProtoP\001ZLgoogle.golan" + + "g.org/genproto/googleapis/cloud/security" + + "center/v1;securitycenter\252\002\036Google.Cloud." + + "SecurityCenter.V1\312\002\036Google\\Cloud\\Securit" + + "yCenter\\V1\352\002!Google::Cloud::SecurityCent" + + "er::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_MuteConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_MuteConfig_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "Filter", + "CreateTime", + "UpdateTime", + "MostRecentEditor", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java index e0de7e13a..cd3930025 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/notification_config.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Cloud Security Command Center (Cloud SCC) notification configs.
  * A notification config is a Cloud SCC resource that contains the configuration
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.NotificationConfig}
  */
-public final class NotificationConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class NotificationConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.NotificationConfig)
     NotificationConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use NotificationConfig.newBuilder() to construct.
   private NotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private NotificationConfig() {
     name_ = "";
     description_ = "";
@@ -30,16 +48,15 @@ private NotificationConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new NotificationConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private NotificationConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,51 +75,65 @@ private NotificationConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              description_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pubsubTopic_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              pubsubTopic_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            serviceAccount_ = s;
-            break;
-          }
-          case 42: {
-            com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder subBuilder = null;
-            if (notifyConfigCase_ == 5) {
-              subBuilder = ((com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_).toBuilder();
+              serviceAccount_ = s;
+              break;
             }
-            notifyConfig_ =
-                input.readMessage(com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_);
-              notifyConfig_ = subBuilder.buildPartial();
+          case 42:
+            {
+              com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder
+                  subBuilder = null;
+              if (notifyConfigCase_ == 5) {
+                subBuilder =
+                    ((com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig)
+                            notifyConfig_)
+                        .toBuilder();
+              }
+              notifyConfig_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig)
+                        notifyConfig_);
+                notifyConfig_ = subBuilder.buildPartial();
+              }
+              notifyConfigCase_ = 5;
+              break;
             }
-            notifyConfigCase_ = 5;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -110,31 +141,36 @@ private NotificationConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1.NotificationConfigProto.internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1.NotificationConfigProto
+        .internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.NotificationConfigProto.internal_static_google_cloud_securitycenter_v1_NotificationConfig_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.NotificationConfigProto
+        .internal_static_google_cloud_securitycenter_v1_NotificationConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.NotificationConfig.class, com.google.cloud.securitycenter.v1.NotificationConfig.Builder.class);
+            com.google.cloud.securitycenter.v1.NotificationConfig.class,
+            com.google.cloud.securitycenter.v1.NotificationConfig.Builder.class);
   }
 
-  public interface StreamingConfigOrBuilder extends
+  public interface StreamingConfigOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Expression that defines the filter to apply across create/update events
      * of assets or findings as specified by the event type. The expression is a
@@ -155,10 +191,13 @@ public interface StreamingConfigOrBuilder extends
      * 
* * string filter = 1; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
      * Expression that defines the filter to apply across create/update events
      * of assets or findings as specified by the event type. The expression is a
@@ -179,12 +218,14 @@ public interface StreamingConfigOrBuilder extends
      * 
* * string filter = 1; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } /** + * + * *
    * The config for streaming-based notifications, which send each event as soon
    * as it is detected.
@@ -192,31 +233,31 @@ public interface StreamingConfigOrBuilder extends
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig}
    */
-  public static final class StreamingConfig extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class StreamingConfig extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig)
       StreamingConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use StreamingConfig.newBuilder() to construct.
     private StreamingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private StreamingConfig() {
       filter_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new StreamingConfig();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private StreamingConfig(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -235,19 +276,20 @@ private StreamingConfig(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              filter_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                filter_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -255,29 +297,33 @@ private StreamingConfig(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.NotificationConfigProto.internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.NotificationConfigProto
+          .internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.NotificationConfigProto.internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.NotificationConfigProto
+          .internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.class, com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder.class);
+              com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.class,
+              com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder.class);
     }
 
     public static final int FILTER_FIELD_NUMBER = 1;
     private volatile java.lang.Object filter_;
     /**
+     *
+     *
      * 
      * Expression that defines the filter to apply across create/update events
      * of assets or findings as specified by the event type. The expression is a
@@ -298,6 +344,7 @@ private StreamingConfig(
      * 
* * string filter = 1; + * * @return The filter. */ @java.lang.Override @@ -306,14 +353,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
      * Expression that defines the filter to apply across create/update events
      * of assets or findings as specified by the event type. The expression is a
@@ -334,16 +382,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 1; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -352,6 +399,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -363,8 +411,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); } @@ -388,15 +435,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig other = (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) obj; + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig other = + (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) obj; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -416,87 +463,95 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -506,6 +561,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The config for streaming-based notifications, which send each event as soon
      * as it is detected.
@@ -513,38 +570,42 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig)
         com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.securitycenter.v1.NotificationConfigProto.internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.securitycenter.v1.NotificationConfigProto
+            .internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.securitycenter.v1.NotificationConfigProto.internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_fieldAccessorTable
+        return com.google.cloud.securitycenter.v1.NotificationConfigProto
+            .internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.class, com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder.class);
+                com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.class,
+                com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder
+                    .class);
       }
 
-      // Construct using com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.newBuilder()
+      // Construct using
+      // com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -554,19 +615,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.securitycenter.v1.NotificationConfigProto.internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.securitycenter.v1.NotificationConfigProto
+            .internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig getDefaultInstanceForType() {
-        return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.getDefaultInstance();
+      public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig
+          getDefaultInstanceForType() {
+        return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig build() {
-        com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig result = buildPartial();
+        com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -575,7 +639,8 @@ public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig bui
 
       @java.lang.Override
       public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig buildPartial() {
-        com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig result = new com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig(this);
+        com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig result =
+            new com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig(this);
         result.filter_ = filter_;
         onBuilt();
         return result;
@@ -585,46 +650,54 @@ public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig bui
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) {
-          return mergeFrom((com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig)other);
+        if (other
+            instanceof com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) {
+          return mergeFrom(
+              (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig other) {
-        if (other == com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig other) {
+        if (other
+            == com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig
+                .getDefaultInstance()) return this;
         if (!other.getFilter().isEmpty()) {
           filter_ = other.filter_;
           onChanged();
@@ -648,7 +721,9 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -660,6 +735,8 @@ public Builder mergeFrom(
 
       private java.lang.Object filter_ = "";
       /**
+       *
+       *
        * 
        * Expression that defines the filter to apply across create/update events
        * of assets or findings as specified by the event type. The expression is a
@@ -680,13 +757,13 @@ public Builder mergeFrom(
        * 
* * string filter = 1; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -695,6 +772,8 @@ public java.lang.String getFilter() { } } /** + * + * *
        * Expression that defines the filter to apply across create/update events
        * of assets or findings as specified by the event type. The expression is a
@@ -715,15 +794,14 @@ public java.lang.String getFilter() {
        * 
* * string filter = 1; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -731,6 +809,8 @@ public java.lang.String getFilter() { } } /** + * + * *
        * Expression that defines the filter to apply across create/update events
        * of assets or findings as specified by the event type. The expression is a
@@ -751,20 +831,22 @@ public java.lang.String getFilter() {
        * 
* * string filter = 1; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
        * Expression that defines the filter to apply across create/update events
        * of assets or findings as specified by the event type. The expression is a
@@ -785,15 +867,18 @@ public Builder setFilter(
        * 
* * string filter = 1; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
        * Expression that defines the filter to apply across create/update events
        * of assets or findings as specified by the event type. The expression is a
@@ -814,20 +899,21 @@ public Builder clearFilter() {
        * 
* * string filter = 1; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -840,30 +926,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) - private static final com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig(); } - public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -875,20 +964,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int notifyConfigCase_ = 0; private java.lang.Object notifyConfig_; + public enum NotifyConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STREAMING_CONFIG(5), NOTIFYCONFIG_NOT_SET(0); private final int value; + private NotifyConfigCase(int value) { this.value = value; } @@ -904,25 +996,29 @@ public static NotifyConfigCase valueOf(int value) { public static NotifyConfigCase forNumber(int value) { switch (value) { - case 5: return STREAMING_CONFIG; - case 0: return NOTIFYCONFIG_NOT_SET; - default: return null; + case 5: + return STREAMING_CONFIG; + case 0: + return NOTIFYCONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public NotifyConfigCase - getNotifyConfigCase() { - return NotifyConfigCase.forNumber( - notifyConfigCase_); + public NotifyConfigCase getNotifyConfigCase() { + return NotifyConfigCase.forNumber(notifyConfigCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The relative resource name of this notification config. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -931,6 +1027,7 @@ public int getNumber() {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -939,14 +1036,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The relative resource name of this notification config. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -955,16 +1053,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -975,11 +1072,14 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
    * The description of the notification config (max of 1024 characters).
    * 
* * string description = 2; + * * @return The description. */ @java.lang.Override @@ -988,29 +1088,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * The description of the notification config (max of 1024 characters).
    * 
* * string description = 2; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1021,12 +1121,15 @@ public java.lang.String getDescription() { public static final int PUBSUB_TOPIC_FIELD_NUMBER = 3; private volatile java.lang.Object pubsubTopic_; /** + * + * *
    * The Pub/Sub topic to send notifications to. Its format is
    * "projects/[project_id]/topics/[topic]".
    * 
* * string pubsub_topic = 3 [(.google.api.resource_reference) = { ... } + * * @return The pubsubTopic. */ @java.lang.Override @@ -1035,30 +1138,30 @@ public java.lang.String getPubsubTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopic_ = s; return s; } } /** + * + * *
    * The Pub/Sub topic to send notifications to. Its format is
    * "projects/[project_id]/topics/[topic]".
    * 
* * string pubsub_topic = 3 [(.google.api.resource_reference) = { ... } + * * @return The bytes for pubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString - getPubsubTopicBytes() { + public com.google.protobuf.ByteString getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pubsubTopic_ = b; return b; } else { @@ -1069,12 +1172,15 @@ public java.lang.String getPubsubTopic() { public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 4; private volatile java.lang.Object serviceAccount_; /** + * + * *
    * Output only. The service account that needs "pubsub.topics.publish"
    * permission to publish to the Pub/Sub topic.
    * 
* * string service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccount. */ @java.lang.Override @@ -1083,30 +1189,30 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** + * + * *
    * Output only. The service account that needs "pubsub.topics.publish"
    * permission to publish to the Pub/Sub topic.
    * 
* * string service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -1116,11 +1222,15 @@ public java.lang.String getServiceAccount() { public static final int STREAMING_CONFIG_FIELD_NUMBER = 5; /** + * + * *
    * The config for triggering streaming-based notifications.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -1128,36 +1238,48 @@ public boolean hasStreamingConfig() { return notifyConfigCase_ == 5; } /** + * + * *
    * The config for triggering streaming-based notifications.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * + * * @return The streamingConfig. */ @java.lang.Override - public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig getStreamingConfig() { + public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig + getStreamingConfig() { if (notifyConfigCase_ == 5) { - return (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_; + return (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_; } - return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.getDefaultInstance(); + return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig + .getDefaultInstance(); } /** + * + * *
    * The config for triggering streaming-based notifications.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder() { + public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder + getStreamingConfigOrBuilder() { if (notifyConfigCase_ == 5) { - return (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_; + return (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_; } - return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.getDefaultInstance(); + return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1169,8 +1291,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1184,7 +1305,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 4, serviceAccount_); } if (notifyConfigCase_ == 5) { - output.writeMessage(5, (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_); + output.writeMessage( + 5, (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_); } unknownFields.writeTo(output); } @@ -1208,8 +1330,11 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, serviceAccount_); } if (notifyConfigCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) + notifyConfig_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1219,26 +1344,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.NotificationConfig)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.NotificationConfig other = (com.google.cloud.securitycenter.v1.NotificationConfig) obj; + com.google.cloud.securitycenter.v1.NotificationConfig other = + (com.google.cloud.securitycenter.v1.NotificationConfig) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getPubsubTopic() - .equals(other.getPubsubTopic())) return false; - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getPubsubTopic().equals(other.getPubsubTopic())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (!getNotifyConfigCase().equals(other.getNotifyConfigCase())) return false; switch (notifyConfigCase_) { case 5: - if (!getStreamingConfig() - .equals(other.getStreamingConfig())) return false; + if (!getStreamingConfig().equals(other.getStreamingConfig())) return false; break; case 0: default: @@ -1276,96 +1397,104 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.NotificationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.NotificationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.NotificationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.NotificationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.NotificationConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.NotificationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Cloud Security Command Center (Cloud SCC) notification configs.
    * A notification config is a Cloud SCC resource that contains the configuration
@@ -1374,21 +1503,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.NotificationConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.NotificationConfig)
       com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.NotificationConfigProto.internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.NotificationConfigProto
+          .internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.NotificationConfigProto.internal_static_google_cloud_securitycenter_v1_NotificationConfig_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.NotificationConfigProto
+          .internal_static_google_cloud_securitycenter_v1_NotificationConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.NotificationConfig.class, com.google.cloud.securitycenter.v1.NotificationConfig.Builder.class);
+              com.google.cloud.securitycenter.v1.NotificationConfig.class,
+              com.google.cloud.securitycenter.v1.NotificationConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.NotificationConfig.newBuilder()
@@ -1396,16 +1527,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1423,9 +1553,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.NotificationConfigProto.internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.NotificationConfigProto
+          .internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1444,7 +1574,8 @@ public com.google.cloud.securitycenter.v1.NotificationConfig build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.NotificationConfig buildPartial() {
-      com.google.cloud.securitycenter.v1.NotificationConfig result = new com.google.cloud.securitycenter.v1.NotificationConfig(this);
+      com.google.cloud.securitycenter.v1.NotificationConfig result =
+          new com.google.cloud.securitycenter.v1.NotificationConfig(this);
       result.name_ = name_;
       result.description_ = description_;
       result.pubsubTopic_ = pubsubTopic_;
@@ -1465,38 +1596,39 @@ public com.google.cloud.securitycenter.v1.NotificationConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.NotificationConfig) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.NotificationConfig)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.NotificationConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1504,7 +1636,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1.NotificationConfig other) {
-      if (other == com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1522,13 +1655,15 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.NotificationConfig o
         onChanged();
       }
       switch (other.getNotifyConfigCase()) {
-        case STREAMING_CONFIG: {
-          mergeStreamingConfig(other.getStreamingConfig());
-          break;
-        }
-        case NOTIFYCONFIG_NOT_SET: {
-          break;
-        }
+        case STREAMING_CONFIG:
+          {
+            mergeStreamingConfig(other.getStreamingConfig());
+            break;
+          }
+        case NOTIFYCONFIG_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1549,7 +1684,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.securitycenter.v1.NotificationConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.securitycenter.v1.NotificationConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1558,12 +1694,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int notifyConfigCase_ = 0;
     private java.lang.Object notifyConfig_;
-    public NotifyConfigCase
-        getNotifyConfigCase() {
-      return NotifyConfigCase.forNumber(
-          notifyConfigCase_);
+
+    public NotifyConfigCase getNotifyConfigCase() {
+      return NotifyConfigCase.forNumber(notifyConfigCase_);
     }
 
     public Builder clearNotifyConfig() {
@@ -1573,9 +1709,10 @@ public Builder clearNotifyConfig() {
       return this;
     }
 
-
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The relative resource name of this notification config. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1584,13 +1721,13 @@ public Builder clearNotifyConfig() {
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1599,6 +1736,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this notification config. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1607,15 +1746,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1623,6 +1761,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this notification config. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1631,20 +1771,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The relative resource name of this notification config. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1653,15 +1795,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The relative resource name of this notification config. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1670,16 +1815,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1687,18 +1832,20 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * The description of the notification config (max of 1024 characters).
      * 
* * string description = 2; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1707,20 +1854,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the notification config (max of 1024 characters).
      * 
* * string description = 2; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1728,54 +1876,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the notification config (max of 1024 characters).
      * 
* * string description = 2; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * The description of the notification config (max of 1024 characters).
      * 
* * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * The description of the notification config (max of 1024 characters).
      * 
* * string description = 2; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1783,19 +1938,21 @@ public Builder setDescriptionBytes( private java.lang.Object pubsubTopic_ = ""; /** + * + * *
      * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* * string pubsub_topic = 3 [(.google.api.resource_reference) = { ... } + * * @return The pubsubTopic. */ public java.lang.String getPubsubTopic() { java.lang.Object ref = pubsubTopic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopic_ = s; return s; @@ -1804,21 +1961,22 @@ public java.lang.String getPubsubTopic() { } } /** + * + * *
      * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* * string pubsub_topic = 3 [(.google.api.resource_reference) = { ... } + * * @return The bytes for pubsubTopic. */ - public com.google.protobuf.ByteString - getPubsubTopicBytes() { + public com.google.protobuf.ByteString getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pubsubTopic_ = b; return b; } else { @@ -1826,57 +1984,64 @@ public java.lang.String getPubsubTopic() { } } /** + * + * *
      * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* * string pubsub_topic = 3 [(.google.api.resource_reference) = { ... } + * * @param value The pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopic( - java.lang.String value) { + public Builder setPubsubTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pubsubTopic_ = value; onChanged(); return this; } /** + * + * *
      * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* * string pubsub_topic = 3 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearPubsubTopic() { - + pubsubTopic_ = getDefaultInstance().getPubsubTopic(); onChanged(); return this; } /** + * + * *
      * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* * string pubsub_topic = 3 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pubsubTopic_ = value; onChanged(); return this; @@ -1884,19 +2049,21 @@ public Builder setPubsubTopicBytes( private java.lang.Object serviceAccount_ = ""; /** + * + * *
      * Output only. The service account that needs "pubsub.topics.publish"
      * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -1905,21 +2072,22 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * Output only. The service account that needs "pubsub.topics.publish"
      * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -1927,70 +2095,85 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * Output only. The service account that needs "pubsub.topics.publish"
      * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount( - java.lang.String value) { + public Builder setServiceAccount(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The service account that needs "pubsub.topics.publish"
      * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearServiceAccount() { - + serviceAccount_ = getDefaultInstance().getServiceAccount(); onChanged(); return this; } /** + * + * *
      * Output only. The service account that needs "pubsub.topics.publish"
      * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig, com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder> streamingConfigBuilder_; + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig, + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder, + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder> + streamingConfigBuilder_; /** + * + * *
      * The config for triggering streaming-based notifications.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -1998,35 +2181,49 @@ public boolean hasStreamingConfig() { return notifyConfigCase_ == 5; } /** + * + * *
      * The config for triggering streaming-based notifications.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * + * * @return The streamingConfig. */ @java.lang.Override - public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig getStreamingConfig() { + public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig + getStreamingConfig() { if (streamingConfigBuilder_ == null) { if (notifyConfigCase_ == 5) { - return (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_; + return (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) + notifyConfig_; } - return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.getDefaultInstance(); + return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig + .getDefaultInstance(); } else { if (notifyConfigCase_ == 5) { return streamingConfigBuilder_.getMessage(); } - return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.getDefaultInstance(); + return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig + .getDefaultInstance(); } } /** + * + * *
      * The config for triggering streaming-based notifications.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * */ - public Builder setStreamingConfig(com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig value) { + public Builder setStreamingConfig( + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig value) { if (streamingConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2040,14 +2237,19 @@ public Builder setStreamingConfig(com.google.cloud.securitycenter.v1.Notificatio return this; } /** + * + * *
      * The config for triggering streaming-based notifications.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * */ public Builder setStreamingConfig( - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder builderForValue) { + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder + builderForValue) { if (streamingConfigBuilder_ == null) { notifyConfig_ = builderForValue.build(); onChanged(); @@ -2058,18 +2260,29 @@ public Builder setStreamingConfig( return this; } /** + * + * *
      * The config for triggering streaming-based notifications.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * */ - public Builder mergeStreamingConfig(com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig value) { + public Builder mergeStreamingConfig( + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig value) { if (streamingConfigBuilder_ == null) { - if (notifyConfigCase_ == 5 && - notifyConfig_ != com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.getDefaultInstance()) { - notifyConfig_ = com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.newBuilder((com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_) - .mergeFrom(value).buildPartial(); + if (notifyConfigCase_ == 5 + && notifyConfig_ + != com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig + .getDefaultInstance()) { + notifyConfig_ = + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.newBuilder( + (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) + notifyConfig_) + .mergeFrom(value) + .buildPartial(); } else { notifyConfig_ = value; } @@ -2085,11 +2298,15 @@ public Builder mergeStreamingConfig(com.google.cloud.securitycenter.v1.Notificat return this; } /** + * + * *
      * The config for triggering streaming-based notifications.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * */ public Builder clearStreamingConfig() { if (streamingConfigBuilder_ == null) { @@ -2108,61 +2325,86 @@ public Builder clearStreamingConfig() { return this; } /** + * + * *
      * The config for triggering streaming-based notifications.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * */ - public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder getStreamingConfigBuilder() { + public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder + getStreamingConfigBuilder() { return getStreamingConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The config for triggering streaming-based notifications.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder() { + public com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder + getStreamingConfigOrBuilder() { if ((notifyConfigCase_ == 5) && (streamingConfigBuilder_ != null)) { return streamingConfigBuilder_.getMessageOrBuilder(); } else { if (notifyConfigCase_ == 5) { - return (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_; + return (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) + notifyConfig_; } - return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.getDefaultInstance(); + return com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig + .getDefaultInstance(); } } /** + * + * *
      * The config for triggering streaming-based notifications.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig, com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder> + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig, + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder, + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder> getStreamingConfigFieldBuilder() { if (streamingConfigBuilder_ == null) { if (!(notifyConfigCase_ == 5)) { - notifyConfig_ = com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.getDefaultInstance(); + notifyConfig_ = + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig + .getDefaultInstance(); } - streamingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig, com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder>( - (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) notifyConfig_, + streamingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig, + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig.Builder, + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder>( + (com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig) + notifyConfig_, getParentForChildren(), isClean()); notifyConfig_ = null; } notifyConfigCase_ = 5; - onChanged();; + onChanged(); + ; return streamingConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2172,12 +2414,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.NotificationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.NotificationConfig) private static final com.google.cloud.securitycenter.v1.NotificationConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.NotificationConfig(); } @@ -2186,16 +2428,16 @@ public static com.google.cloud.securitycenter.v1.NotificationConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NotificationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NotificationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2210,6 +2452,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.NotificationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigName.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigOrBuilder.java index 3f9eb801c..5ddb6f728 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/notification_config.proto package com.google.cloud.securitycenter.v1; -public interface NotificationConfigOrBuilder extends +public interface NotificationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.NotificationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The relative resource name of this notification config. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -16,10 +34,13 @@ public interface NotificationConfigOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The relative resource name of this notification config. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -28,101 +49,129 @@ public interface NotificationConfigOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The description of the notification config (max of 1024 characters).
    * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * The description of the notification config (max of 1024 characters).
    * 
* * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * The Pub/Sub topic to send notifications to. Its format is
    * "projects/[project_id]/topics/[topic]".
    * 
* * string pubsub_topic = 3 [(.google.api.resource_reference) = { ... } + * * @return The pubsubTopic. */ java.lang.String getPubsubTopic(); /** + * + * *
    * The Pub/Sub topic to send notifications to. Its format is
    * "projects/[project_id]/topics/[topic]".
    * 
* * string pubsub_topic = 3 [(.google.api.resource_reference) = { ... } + * * @return The bytes for pubsubTopic. */ - com.google.protobuf.ByteString - getPubsubTopicBytes(); + com.google.protobuf.ByteString getPubsubTopicBytes(); /** + * + * *
    * Output only. The service account that needs "pubsub.topics.publish"
    * permission to publish to the Pub/Sub topic.
    * 
* * string service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** + * + * *
    * Output only. The service account that needs "pubsub.topics.publish"
    * permission to publish to the Pub/Sub topic.
    * 
* * string service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString - getServiceAccountBytes(); + com.google.protobuf.ByteString getServiceAccountBytes(); /** + * + * *
    * The config for triggering streaming-based notifications.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * + * * @return Whether the streamingConfig field is set. */ boolean hasStreamingConfig(); /** + * + * *
    * The config for triggering streaming-based notifications.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * + * * @return The streamingConfig. */ com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig getStreamingConfig(); /** + * + * *
    * The config for triggering streaming-based notifications.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * .google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5; + * */ - com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder(); + com.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfigOrBuilder + getStreamingConfigOrBuilder(); - public com.google.cloud.securitycenter.v1.NotificationConfig.NotifyConfigCase getNotifyConfigCase(); + public com.google.cloud.securitycenter.v1.NotificationConfig.NotifyConfigCase + getNotifyConfigCase(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigProto.java new file mode 100644 index 000000000..935592800 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationConfigProto.java @@ -0,0 +1,114 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/notification_config.proto + +package com.google.cloud.securitycenter.v1; + +public final class NotificationConfigProto { + private NotificationConfigProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_NotificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/securitycenter/v1/notific" + + "ation_config.proto\022\036google.cloud.securit" + + "ycenter.v1\032\037google/api/field_behavior.pr" + + "oto\032\031google/api/resource.proto\"\240\003\n\022Notif" + + "icationConfig\022\014\n\004name\030\001 \001(\t\022\023\n\013descripti" + + "on\030\002 \001(\t\0226\n\014pubsub_topic\030\003 \001(\tB \372A\035\n\033pub" + + "sub.googleapis.com/Topic\022\034\n\017service_acco" + + "unt\030\004 \001(\tB\003\340A\003\022^\n\020streaming_config\030\005 \001(\013" + + "2B.google.cloud.securitycenter.v1.Notifi" + + "cationConfig.StreamingConfigH\000\032!\n\017Stream" + + "ingConfig\022\016\n\006filter\030\001 \001(\t:}\352Az\n0security" + + "center.googleapis.com/NotificationConfig" + + "\022Forganizations/{organization}/notificat" + + "ionConfigs/{notification_config}B\017\n\rnoti" + + "fy_configB\266\002\n\"com.google.cloud.securityc" + + "enter.v1B\027NotificationConfigProtoP\001ZLgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/securitycenter/v1;securitycenter\252\002\036Goog" + + "le.Cloud.SecurityCenter.V1\312\002\036Google\\Clou" + + "d\\SecurityCenter\\V1\352\002!Google::Cloud::Sec" + + "urityCenter::V1\352A@\n\033pubsub.googleapis.co" + + "m/Topic\022!projects/{project}/topics/{topi" + + "c}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_NotificationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor, + new java.lang.String[] { + "Name", + "Description", + "PubsubTopic", + "ServiceAccount", + "StreamingConfig", + "NotifyConfig", + }); + internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor = + internal_static_google_cloud_securitycenter_v1_NotificationConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_NotificationConfig_StreamingConfig_descriptor, + new java.lang.String[] { + "Filter", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java index 99c83d9d1..7b4ba007e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessage.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/notification_message.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Cloud SCC's Notification
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.NotificationMessage} */ -public final class NotificationMessage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NotificationMessage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.NotificationMessage) NotificationMessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NotificationMessage.newBuilder() to construct. private NotificationMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NotificationMessage() { notificationConfigName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NotificationMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private NotificationMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,46 +70,52 @@ private NotificationMessage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - notificationConfigName_ = s; - break; - } - case 18: { - com.google.cloud.securitycenter.v1.Finding.Builder subBuilder = null; - if (eventCase_ == 2) { - subBuilder = ((com.google.cloud.securitycenter.v1.Finding) event_).toBuilder(); - } - event_ = - input.readMessage(com.google.cloud.securitycenter.v1.Finding.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.securitycenter.v1.Finding) event_); - event_ = subBuilder.buildPartial(); + notificationConfigName_ = s; + break; } - eventCase_ = 2; - break; - } - case 26: { - com.google.cloud.securitycenter.v1.Resource.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = input.readMessage(com.google.cloud.securitycenter.v1.Resource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.securitycenter.v1.Finding.Builder subBuilder = null; + if (eventCase_ == 2) { + subBuilder = ((com.google.cloud.securitycenter.v1.Finding) event_).toBuilder(); + } + event_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Finding.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.securitycenter.v1.Finding) event_); + event_ = subBuilder.buildPartial(); + } + eventCase_ = 2; + break; } + case 26: + { + com.google.cloud.securitycenter.v1.Resource.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Resource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,34 +123,39 @@ private NotificationMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.NotificationMessageProto.internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.NotificationMessageProto + .internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.NotificationMessageProto.internal_static_google_cloud_securitycenter_v1_NotificationMessage_fieldAccessorTable + return com.google.cloud.securitycenter.v1.NotificationMessageProto + .internal_static_google_cloud_securitycenter_v1_NotificationMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.NotificationMessage.class, com.google.cloud.securitycenter.v1.NotificationMessage.Builder.class); + com.google.cloud.securitycenter.v1.NotificationMessage.class, + com.google.cloud.securitycenter.v1.NotificationMessage.Builder.class); } private int eventCase_ = 0; private java.lang.Object event_; + public enum EventCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FINDING(2), EVENT_NOT_SET(0); private final int value; + private EventCase(int value) { this.value = value; } @@ -143,30 +171,35 @@ public static EventCase valueOf(int value) { public static EventCase forNumber(int value) { switch (value) { - case 2: return FINDING; - case 0: return EVENT_NOT_SET; - default: return null; + case 2: + return FINDING; + case 0: + return EVENT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public EventCase - getEventCase() { - return EventCase.forNumber( - eventCase_); + public EventCase getEventCase() { + return EventCase.forNumber(eventCase_); } public static final int NOTIFICATION_CONFIG_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object notificationConfigName_; /** + * + * *
    * Name of the notification config that generated current notification.
    * 
* * string notification_config_name = 1; + * * @return The notificationConfigName. */ @java.lang.Override @@ -175,29 +208,29 @@ public java.lang.String getNotificationConfigName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notificationConfigName_ = s; return s; } } /** + * + * *
    * Name of the notification config that generated current notification.
    * 
* * string notification_config_name = 1; + * * @return The bytes for notificationConfigName. */ @java.lang.Override - public com.google.protobuf.ByteString - getNotificationConfigNameBytes() { + public com.google.protobuf.ByteString getNotificationConfigNameBytes() { java.lang.Object ref = notificationConfigName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); notificationConfigName_ = b; return b; } else { @@ -207,12 +240,15 @@ public java.lang.String getNotificationConfigName() { public static final int FINDING_FIELD_NUMBER = 2; /** + * + * *
    * If it's a Finding based notification config, this field will be
    * populated.
    * 
* * .google.cloud.securitycenter.v1.Finding finding = 2; + * * @return Whether the finding field is set. */ @java.lang.Override @@ -220,22 +256,27 @@ public boolean hasFinding() { return eventCase_ == 2; } /** + * + * *
    * If it's a Finding based notification config, this field will be
    * populated.
    * 
* * .google.cloud.securitycenter.v1.Finding finding = 2; + * * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding getFinding() { if (eventCase_ == 2) { - return (com.google.cloud.securitycenter.v1.Finding) event_; + return (com.google.cloud.securitycenter.v1.Finding) event_; } return com.google.cloud.securitycenter.v1.Finding.getDefaultInstance(); } /** + * + * *
    * If it's a Finding based notification config, this field will be
    * populated.
@@ -246,7 +287,7 @@ public com.google.cloud.securitycenter.v1.Finding getFinding() {
   @java.lang.Override
   public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() {
     if (eventCase_ == 2) {
-       return (com.google.cloud.securitycenter.v1.Finding) event_;
+      return (com.google.cloud.securitycenter.v1.Finding) event_;
     }
     return com.google.cloud.securitycenter.v1.Finding.getDefaultInstance();
   }
@@ -254,11 +295,14 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder()
   public static final int RESOURCE_FIELD_NUMBER = 3;
   private com.google.cloud.securitycenter.v1.Resource resource_;
   /**
+   *
+   *
    * 
    * The Cloud resource tied to this notification's Finding.
    * 
* * .google.cloud.securitycenter.v1.Resource resource = 3; + * * @return Whether the resource field is set. */ @java.lang.Override @@ -266,18 +310,25 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * The Cloud resource tied to this notification's Finding.
    * 
* * .google.cloud.securitycenter.v1.Resource resource = 3; + * * @return The resource. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Resource getResource() { - return resource_ == null ? com.google.cloud.securitycenter.v1.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.securitycenter.v1.Resource.getDefaultInstance() + : resource_; } /** + * + * *
    * The Cloud resource tied to this notification's Finding.
    * 
@@ -290,6 +341,7 @@ public com.google.cloud.securitycenter.v1.ResourceOrBuilder getResourceOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -301,8 +353,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notificationConfigName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, notificationConfigName_); } @@ -325,12 +376,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, notificationConfigName_); } if (eventCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.securitycenter.v1.Finding) event_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.securitycenter.v1.Finding) event_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -340,25 +391,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.NotificationMessage)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.NotificationMessage other = (com.google.cloud.securitycenter.v1.NotificationMessage) obj; + com.google.cloud.securitycenter.v1.NotificationMessage other = + (com.google.cloud.securitycenter.v1.NotificationMessage) obj; - if (!getNotificationConfigName() - .equals(other.getNotificationConfigName())) return false; + if (!getNotificationConfigName().equals(other.getNotificationConfigName())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } if (!getEventCase().equals(other.getEventCase())) return false; switch (eventCase_) { case 2: - if (!getFinding() - .equals(other.getFinding())) return false; + if (!getFinding().equals(other.getFinding())) return false; break; case 0: default: @@ -394,117 +443,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.NotificationMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.NotificationMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.NotificationMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.NotificationMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.NotificationMessage prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.NotificationMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Cloud SCC's Notification
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.NotificationMessage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.NotificationMessage) com.google.cloud.securitycenter.v1.NotificationMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.NotificationMessageProto.internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.NotificationMessageProto + .internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.NotificationMessageProto.internal_static_google_cloud_securitycenter_v1_NotificationMessage_fieldAccessorTable + return com.google.cloud.securitycenter.v1.NotificationMessageProto + .internal_static_google_cloud_securitycenter_v1_NotificationMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.NotificationMessage.class, com.google.cloud.securitycenter.v1.NotificationMessage.Builder.class); + com.google.cloud.securitycenter.v1.NotificationMessage.class, + com.google.cloud.securitycenter.v1.NotificationMessage.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.NotificationMessage.newBuilder() @@ -512,16 +571,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -539,9 +597,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.NotificationMessageProto.internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.NotificationMessageProto + .internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor; } @java.lang.Override @@ -560,7 +618,8 @@ public com.google.cloud.securitycenter.v1.NotificationMessage build() { @java.lang.Override public com.google.cloud.securitycenter.v1.NotificationMessage buildPartial() { - com.google.cloud.securitycenter.v1.NotificationMessage result = new com.google.cloud.securitycenter.v1.NotificationMessage(this); + com.google.cloud.securitycenter.v1.NotificationMessage result = + new com.google.cloud.securitycenter.v1.NotificationMessage(this); result.notificationConfigName_ = notificationConfigName_; if (eventCase_ == 2) { if (findingBuilder_ == null) { @@ -583,38 +642,39 @@ public com.google.cloud.securitycenter.v1.NotificationMessage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.NotificationMessage) { - return mergeFrom((com.google.cloud.securitycenter.v1.NotificationMessage)other); + return mergeFrom((com.google.cloud.securitycenter.v1.NotificationMessage) other); } else { super.mergeFrom(other); return this; @@ -622,7 +682,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.NotificationMessage other) { - if (other == com.google.cloud.securitycenter.v1.NotificationMessage.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.NotificationMessage.getDefaultInstance()) + return this; if (!other.getNotificationConfigName().isEmpty()) { notificationConfigName_ = other.notificationConfigName_; onChanged(); @@ -631,13 +692,15 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.NotificationMessage mergeResource(other.getResource()); } switch (other.getEventCase()) { - case FINDING: { - mergeFinding(other.getFinding()); - break; - } - case EVENT_NOT_SET: { - break; - } + case FINDING: + { + mergeFinding(other.getFinding()); + break; + } + case EVENT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -658,7 +721,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.NotificationMessage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.NotificationMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -667,12 +731,12 @@ public Builder mergeFrom( } return this; } + private int eventCase_ = 0; private java.lang.Object event_; - public EventCase - getEventCase() { - return EventCase.forNumber( - eventCase_); + + public EventCase getEventCase() { + return EventCase.forNumber(eventCase_); } public Builder clearEvent() { @@ -682,21 +746,22 @@ public Builder clearEvent() { return this; } - private java.lang.Object notificationConfigName_ = ""; /** + * + * *
      * Name of the notification config that generated current notification.
      * 
* * string notification_config_name = 1; + * * @return The notificationConfigName. */ public java.lang.String getNotificationConfigName() { java.lang.Object ref = notificationConfigName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notificationConfigName_ = s; return s; @@ -705,20 +770,21 @@ public java.lang.String getNotificationConfigName() { } } /** + * + * *
      * Name of the notification config that generated current notification.
      * 
* * string notification_config_name = 1; + * * @return The bytes for notificationConfigName. */ - public com.google.protobuf.ByteString - getNotificationConfigNameBytes() { + public com.google.protobuf.ByteString getNotificationConfigNameBytes() { java.lang.Object ref = notificationConfigName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); notificationConfigName_ = b; return b; } else { @@ -726,68 +792,81 @@ public java.lang.String getNotificationConfigName() { } } /** + * + * *
      * Name of the notification config that generated current notification.
      * 
* * string notification_config_name = 1; + * * @param value The notificationConfigName to set. * @return This builder for chaining. */ - public Builder setNotificationConfigName( - java.lang.String value) { + public Builder setNotificationConfigName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + notificationConfigName_ = value; onChanged(); return this; } /** + * + * *
      * Name of the notification config that generated current notification.
      * 
* * string notification_config_name = 1; + * * @return This builder for chaining. */ public Builder clearNotificationConfigName() { - + notificationConfigName_ = getDefaultInstance().getNotificationConfigName(); onChanged(); return this; } /** + * + * *
      * Name of the notification config that generated current notification.
      * 
* * string notification_config_name = 1; + * * @param value The bytes for notificationConfigName to set. * @return This builder for chaining. */ - public Builder setNotificationConfigNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNotificationConfigNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + notificationConfigName_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder> findingBuilder_; + com.google.cloud.securitycenter.v1.Finding, + com.google.cloud.securitycenter.v1.Finding.Builder, + com.google.cloud.securitycenter.v1.FindingOrBuilder> + findingBuilder_; /** + * + * *
      * If it's a Finding based notification config, this field will be
      * populated.
      * 
* * .google.cloud.securitycenter.v1.Finding finding = 2; + * * @return Whether the finding field is set. */ @java.lang.Override @@ -795,12 +874,15 @@ public boolean hasFinding() { return eventCase_ == 2; } /** + * + * *
      * If it's a Finding based notification config, this field will be
      * populated.
      * 
* * .google.cloud.securitycenter.v1.Finding finding = 2; + * * @return The finding. */ @java.lang.Override @@ -818,6 +900,8 @@ public com.google.cloud.securitycenter.v1.Finding getFinding() { } } /** + * + * *
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -839,6 +923,8 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -846,8 +932,7 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) {
      *
      * .google.cloud.securitycenter.v1.Finding finding = 2;
      */
-    public Builder setFinding(
-        com.google.cloud.securitycenter.v1.Finding.Builder builderForValue) {
+    public Builder setFinding(com.google.cloud.securitycenter.v1.Finding.Builder builderForValue) {
       if (findingBuilder_ == null) {
         event_ = builderForValue.build();
         onChanged();
@@ -858,6 +943,8 @@ public Builder setFinding(
       return this;
     }
     /**
+     *
+     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -867,10 +954,13 @@ public Builder setFinding(
      */
     public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) {
       if (findingBuilder_ == null) {
-        if (eventCase_ == 2 &&
-            event_ != com.google.cloud.securitycenter.v1.Finding.getDefaultInstance()) {
-          event_ = com.google.cloud.securitycenter.v1.Finding.newBuilder((com.google.cloud.securitycenter.v1.Finding) event_)
-              .mergeFrom(value).buildPartial();
+        if (eventCase_ == 2
+            && event_ != com.google.cloud.securitycenter.v1.Finding.getDefaultInstance()) {
+          event_ =
+              com.google.cloud.securitycenter.v1.Finding.newBuilder(
+                      (com.google.cloud.securitycenter.v1.Finding) event_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           event_ = value;
         }
@@ -886,6 +976,8 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -910,6 +1002,8 @@ public Builder clearFinding() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -921,6 +1015,8 @@ public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() {
       return getFindingFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -940,6 +1036,8 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder()
       }
     }
     /**
+     *
+     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -948,54 +1046,73 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder()
      * .google.cloud.securitycenter.v1.Finding finding = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder> 
+            com.google.cloud.securitycenter.v1.Finding,
+            com.google.cloud.securitycenter.v1.Finding.Builder,
+            com.google.cloud.securitycenter.v1.FindingOrBuilder>
         getFindingFieldBuilder() {
       if (findingBuilder_ == null) {
         if (!(eventCase_ == 2)) {
           event_ = com.google.cloud.securitycenter.v1.Finding.getDefaultInstance();
         }
-        findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder>(
+        findingBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.securitycenter.v1.Finding,
+                com.google.cloud.securitycenter.v1.Finding.Builder,
+                com.google.cloud.securitycenter.v1.FindingOrBuilder>(
                 (com.google.cloud.securitycenter.v1.Finding) event_,
                 getParentForChildren(),
                 isClean());
         event_ = null;
       }
       eventCase_ = 2;
-      onChanged();;
+      onChanged();
+      ;
       return findingBuilder_;
     }
 
     private com.google.cloud.securitycenter.v1.Resource resource_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.Resource, com.google.cloud.securitycenter.v1.Resource.Builder, com.google.cloud.securitycenter.v1.ResourceOrBuilder> resourceBuilder_;
+            com.google.cloud.securitycenter.v1.Resource,
+            com.google.cloud.securitycenter.v1.Resource.Builder,
+            com.google.cloud.securitycenter.v1.ResourceOrBuilder>
+        resourceBuilder_;
     /**
+     *
+     *
      * 
      * The Cloud resource tied to this notification's Finding.
      * 
* * .google.cloud.securitycenter.v1.Resource resource = 3; + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
      * The Cloud resource tied to this notification's Finding.
      * 
* * .google.cloud.securitycenter.v1.Resource resource = 3; + * * @return The resource. */ public com.google.cloud.securitycenter.v1.Resource getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.securitycenter.v1.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.securitycenter.v1.Resource.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
      * The Cloud resource tied to this notification's Finding.
      * 
@@ -1016,6 +1133,8 @@ public Builder setResource(com.google.cloud.securitycenter.v1.Resource value) { return this; } /** + * + * *
      * The Cloud resource tied to this notification's Finding.
      * 
@@ -1034,6 +1153,8 @@ public Builder setResource( return this; } /** + * + * *
      * The Cloud resource tied to this notification's Finding.
      * 
@@ -1044,7 +1165,9 @@ public Builder mergeResource(com.google.cloud.securitycenter.v1.Resource value) if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.securitycenter.v1.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.Resource.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -1056,6 +1179,8 @@ public Builder mergeResource(com.google.cloud.securitycenter.v1.Resource value) return this; } /** + * + * *
      * The Cloud resource tied to this notification's Finding.
      * 
@@ -1074,6 +1199,8 @@ public Builder clearResource() { return this; } /** + * + * *
      * The Cloud resource tied to this notification's Finding.
      * 
@@ -1081,11 +1208,13 @@ public Builder clearResource() { * .google.cloud.securitycenter.v1.Resource resource = 3; */ public com.google.cloud.securitycenter.v1.Resource.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
      * The Cloud resource tied to this notification's Finding.
      * 
@@ -1096,11 +1225,14 @@ public com.google.cloud.securitycenter.v1.ResourceOrBuilder getResourceOrBuilder if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.cloud.securitycenter.v1.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.securitycenter.v1.Resource.getDefaultInstance() + : resource_; } } /** + * + * *
      * The Cloud resource tied to this notification's Finding.
      * 
@@ -1108,21 +1240,24 @@ public com.google.cloud.securitycenter.v1.ResourceOrBuilder getResourceOrBuilder * .google.cloud.securitycenter.v1.Resource resource = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Resource, com.google.cloud.securitycenter.v1.Resource.Builder, com.google.cloud.securitycenter.v1.ResourceOrBuilder> + com.google.cloud.securitycenter.v1.Resource, + com.google.cloud.securitycenter.v1.Resource.Builder, + com.google.cloud.securitycenter.v1.ResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Resource, com.google.cloud.securitycenter.v1.Resource.Builder, com.google.cloud.securitycenter.v1.ResourceOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Resource, + com.google.cloud.securitycenter.v1.Resource.Builder, + com.google.cloud.securitycenter.v1.ResourceOrBuilder>( + getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1132,12 +1267,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.NotificationMessage) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.NotificationMessage) private static final com.google.cloud.securitycenter.v1.NotificationMessage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.NotificationMessage(); } @@ -1146,16 +1281,16 @@ public static com.google.cloud.securitycenter.v1.NotificationMessage getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NotificationMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NotificationMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1170,6 +1305,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.NotificationMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java index 5ebcfcf24..b0eb24c94 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageOrBuilder.java @@ -1,53 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/notification_message.proto package com.google.cloud.securitycenter.v1; -public interface NotificationMessageOrBuilder extends +public interface NotificationMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.NotificationMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Name of the notification config that generated current notification.
    * 
* * string notification_config_name = 1; + * * @return The notificationConfigName. */ java.lang.String getNotificationConfigName(); /** + * + * *
    * Name of the notification config that generated current notification.
    * 
* * string notification_config_name = 1; + * * @return The bytes for notificationConfigName. */ - com.google.protobuf.ByteString - getNotificationConfigNameBytes(); + com.google.protobuf.ByteString getNotificationConfigNameBytes(); /** + * + * *
    * If it's a Finding based notification config, this field will be
    * populated.
    * 
* * .google.cloud.securitycenter.v1.Finding finding = 2; + * * @return Whether the finding field is set. */ boolean hasFinding(); /** + * + * *
    * If it's a Finding based notification config, this field will be
    * populated.
    * 
* * .google.cloud.securitycenter.v1.Finding finding = 2; + * * @return The finding. */ com.google.cloud.securitycenter.v1.Finding getFinding(); /** + * + * *
    * If it's a Finding based notification config, this field will be
    * populated.
@@ -58,24 +87,32 @@ public interface NotificationMessageOrBuilder extends
   com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder();
 
   /**
+   *
+   *
    * 
    * The Cloud resource tied to this notification's Finding.
    * 
* * .google.cloud.securitycenter.v1.Resource resource = 3; + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
    * The Cloud resource tied to this notification's Finding.
    * 
* * .google.cloud.securitycenter.v1.Resource resource = 3; + * * @return The resource. */ com.google.cloud.securitycenter.v1.Resource getResource(); /** + * + * *
    * The Cloud resource tied to this notification's Finding.
    * 
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java new file mode 100644 index 000000000..336a1568c --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/NotificationMessageProto.java @@ -0,0 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/notification_message.proto + +package com.google.cloud.securitycenter.v1; + +public final class NotificationMessageProto { + private NotificationMessageProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_NotificationMessage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/securitycenter/v1/notific" + + "ation_message.proto\022\036google.cloud.securi" + + "tycenter.v1\032,google/cloud/securitycenter" + + "/v1/finding.proto\032-google/cloud/security" + + "center/v1/resource.proto\"\270\001\n\023Notificatio" + + "nMessage\022 \n\030notification_config_name\030\001 \001" + + "(\t\022:\n\007finding\030\002 \001(\0132\'.google.cloud.secur" + + "itycenter.v1.FindingH\000\022:\n\010resource\030\003 \001(\013" + + "2(.google.cloud.securitycenter.v1.Resour" + + "ceB\007\n\005eventB\364\001\n\"com.google.cloud.securit" + + "ycenter.v1B\030NotificationMessageProtoP\001ZL" + + "google.golang.org/genproto/googleapis/cl" + + "oud/securitycenter/v1;securitycenter\252\002\036G" + + "oogle.Cloud.SecurityCenter.V1\312\002\036Google\\C" + + "loud\\SecurityCenter\\V1\352\002!Google::Cloud::" + + "SecurityCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_NotificationMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_NotificationMessage_descriptor, + new java.lang.String[] { + "NotificationConfigName", "Finding", "Resource", "Event", + }); + com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java index 41b7b88d4..44ae9c17c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/organization_settings.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * User specified settings that are attached to the Security Command
  * Center organization.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.OrganizationSettings}
  */
-public final class OrganizationSettings extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class OrganizationSettings extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.OrganizationSettings)
     OrganizationSettingsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use OrganizationSettings.newBuilder() to construct.
   private OrganizationSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private OrganizationSettings() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new OrganizationSettings();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private OrganizationSettings(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,37 +71,44 @@ private OrganizationSettings(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            enableAssetDiscovery_ = input.readBool();
-            break;
-          }
-          case 26: {
-            com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder subBuilder = null;
-            if (assetDiscoveryConfig_ != null) {
-              subBuilder = assetDiscoveryConfig_.toBuilder();
+              name_ = s;
+              break;
             }
-            assetDiscoveryConfig_ = input.readMessage(com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(assetDiscoveryConfig_);
-              assetDiscoveryConfig_ = subBuilder.buildPartial();
+          case 16:
+            {
+              enableAssetDiscovery_ = input.readBool();
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder
+                  subBuilder = null;
+              if (assetDiscoveryConfig_ != null) {
+                subBuilder = assetDiscoveryConfig_.toBuilder();
+              }
+              assetDiscoveryConfig_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(assetDiscoveryConfig_);
+                assetDiscoveryConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,151 +116,188 @@ private OrganizationSettings(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass
+        .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass
+        .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.OrganizationSettings.class, com.google.cloud.securitycenter.v1.OrganizationSettings.Builder.class);
+            com.google.cloud.securitycenter.v1.OrganizationSettings.class,
+            com.google.cloud.securitycenter.v1.OrganizationSettings.Builder.class);
   }
 
-  public interface AssetDiscoveryConfigOrBuilder extends
+  public interface AssetDiscoveryConfigOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @return A list containing the projectIds. */ - java.util.List - getProjectIdsList(); + java.util.List getProjectIdsList(); /** + * + * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @return The count of projectIds. */ int getProjectIdsCount(); /** + * + * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @param index The index of the element to return. * @return The projectIds at the given index. */ java.lang.String getProjectIds(int index); /** + * + * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @param index The index of the value to return. * @return The bytes of the projectIds at the given index. */ - com.google.protobuf.ByteString - getProjectIdsBytes(int index); + com.google.protobuf.ByteString getProjectIdsBytes(int index); /** + * + * *
      * The mode to use for filtering asset discovery.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return The enum numeric value on the wire for inclusionMode. */ int getInclusionModeValue(); /** + * + * *
      * The mode to use for filtering asset discovery.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return The inclusionMode. */ - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode(); + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode + getInclusionMode(); /** + * + * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; + * * @return A list containing the folderIds. */ - java.util.List - getFolderIdsList(); + java.util.List getFolderIdsList(); /** + * + * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; + * * @return The count of folderIds. */ int getFolderIdsCount(); /** + * + * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; + * * @param index The index of the element to return. * @return The folderIds at the given index. */ java.lang.String getFolderIds(int index); /** + * + * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; + * * @param index The index of the value to return. * @return The bytes of the folderIds at the given index. */ - com.google.protobuf.ByteString - getFolderIdsBytes(int index); + com.google.protobuf.ByteString getFolderIdsBytes(int index); } /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig} */ - public static final class AssetDiscoveryConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AssetDiscoveryConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) AssetDiscoveryConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AssetDiscoveryConfig.newBuilder() to construct. private AssetDiscoveryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AssetDiscoveryConfig() { projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; inclusionMode_ = 0; @@ -245,16 +306,15 @@ private AssetDiscoveryConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AssetDiscoveryConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AssetDiscoveryConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -274,37 +334,40 @@ private AssetDiscoveryConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - projectIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + projectIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + projectIds_.add(s); + break; } - projectIds_.add(s); - break; - } - case 16: { - int rawValue = input.readEnum(); + case 16: + { + int rawValue = input.readEnum(); - inclusionMode_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - folderIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + inclusionMode_ = rawValue; + break; } - folderIds_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + folderIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + folderIds_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -312,8 +375,7 @@ private AssetDiscoveryConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { projectIds_ = projectIds_.getUnmodifiableView(); @@ -325,20 +387,26 @@ private AssetDiscoveryConfig( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable + return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.class, com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder.class); + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.class, + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder + .class); } /** + * + * *
      * The mode of inclusion when running Asset Discovery.
      * Asset discovery can be limited by explicitly identifying projects to be
@@ -350,11 +418,13 @@ private AssetDiscoveryConfig(
      * discovery.
      * 
* - * Protobuf enum {@code google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode} + * Protobuf enum {@code + * google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode} */ - public enum InclusionMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unspecified. Setting the mode with this value will disable
        * inclusion/exclusion filtering for Asset Discovery.
@@ -364,6 +434,8 @@ public enum InclusionMode
        */
       INCLUSION_MODE_UNSPECIFIED(0),
       /**
+       *
+       *
        * 
        * Asset Discovery will capture only the resources within the projects
        * specified. All other resources will be ignored.
@@ -373,6 +445,8 @@ public enum InclusionMode
        */
       INCLUDE_ONLY(1),
       /**
+       *
+       *
        * 
        * Asset Discovery will ignore all resources under the projects specified.
        * All other resources will be retrieved.
@@ -385,6 +459,8 @@ public enum InclusionMode
       ;
 
       /**
+       *
+       *
        * 
        * Unspecified. Setting the mode with this value will disable
        * inclusion/exclusion filtering for Asset Discovery.
@@ -394,6 +470,8 @@ public enum InclusionMode
        */
       public static final int INCLUSION_MODE_UNSPECIFIED_VALUE = 0;
       /**
+       *
+       *
        * 
        * Asset Discovery will capture only the resources within the projects
        * specified. All other resources will be ignored.
@@ -403,6 +481,8 @@ public enum InclusionMode
        */
       public static final int INCLUDE_ONLY_VALUE = 1;
       /**
+       *
+       *
        * 
        * Asset Discovery will ignore all resources under the projects specified.
        * All other resources will be retrieved.
@@ -412,7 +492,6 @@ public enum InclusionMode
        */
       public static final int EXCLUDE_VALUE = 2;
 
-
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -437,40 +516,46 @@ public static InclusionMode valueOf(int value) {
        */
       public static InclusionMode forNumber(int value) {
         switch (value) {
-          case 0: return INCLUSION_MODE_UNSPECIFIED;
-          case 1: return INCLUDE_ONLY;
-          case 2: return EXCLUDE;
-          default: return null;
+          case 0:
+            return INCLUSION_MODE_UNSPECIFIED;
+          case 1:
+            return INCLUDE_ONLY;
+          case 2:
+            return EXCLUDE;
+          default:
+            return null;
         }
       }
 
-      public static com.google.protobuf.Internal.EnumLiteMap
-          internalGetValueMap() {
+      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
         return internalValueMap;
       }
-      private static final com.google.protobuf.Internal.EnumLiteMap<
-          InclusionMode> internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public InclusionMode findValueByNumber(int number) {
-                return InclusionMode.forNumber(number);
-              }
-            };
 
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor
-          getValueDescriptor() {
+      private static final com.google.protobuf.Internal.EnumLiteMap
+          internalValueMap =
+              new com.google.protobuf.Internal.EnumLiteMap() {
+                public InclusionMode findValueByNumber(int number) {
+                  return InclusionMode.forNumber(number);
+                }
+              };
+
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-      public final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptorForType() {
+
+      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
         return getDescriptor();
       }
-      public static final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptor() {
-        return com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.getDescriptor().getEnumTypes().get(0);
+
+      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+        return com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig
+            .getDescriptor()
+            .getEnumTypes()
+            .get(0);
       }
 
       private static final InclusionMode[] VALUES = values();
@@ -478,8 +563,7 @@ public InclusionMode findValueByNumber(int number) {
       public static InclusionMode valueOf(
           com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException(
-            "EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -499,34 +583,42 @@ private InclusionMode(int value) {
     public static final int PROJECT_IDS_FIELD_NUMBER = 1;
     private com.google.protobuf.LazyStringList projectIds_;
     /**
+     *
+     *
      * 
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @return A list containing the projectIds. */ - public com.google.protobuf.ProtocolStringList - getProjectIdsList() { + public com.google.protobuf.ProtocolStringList getProjectIdsList() { return projectIds_; } /** + * + * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @return The count of projectIds. */ public int getProjectIdsCount() { return projectIds_.size(); } /** + * + * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @param index The index of the element to return. * @return The projectIds at the given index. */ @@ -534,80 +626,110 @@ public java.lang.String getProjectIds(int index) { return projectIds_.get(index); } /** + * + * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @param index The index of the value to return. * @return The bytes of the projectIds at the given index. */ - public com.google.protobuf.ByteString - getProjectIdsBytes(int index) { + public com.google.protobuf.ByteString getProjectIdsBytes(int index) { return projectIds_.getByteString(index); } public static final int INCLUSION_MODE_FIELD_NUMBER = 2; private int inclusionMode_; /** + * + * *
      * The mode to use for filtering asset discovery.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return The enum numeric value on the wire for inclusionMode. */ - @java.lang.Override public int getInclusionModeValue() { + @java.lang.Override + public int getInclusionModeValue() { return inclusionMode_; } /** + * + * *
      * The mode to use for filtering asset discovery.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return The inclusionMode. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode + getInclusionMode() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode result = com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.valueOf(inclusionMode_); - return result == null ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode + result = + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.valueOf(inclusionMode_); + return result == null + ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.UNRECOGNIZED + : result; } public static final int FOLDER_IDS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList folderIds_; /** + * + * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; + * * @return A list containing the folderIds. */ - public com.google.protobuf.ProtocolStringList - getFolderIdsList() { + public com.google.protobuf.ProtocolStringList getFolderIdsList() { return folderIds_; } /** + * + * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; + * * @return The count of folderIds. */ public int getFolderIdsCount() { return folderIds_.size(); } /** + * + * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; + * * @param index The index of the element to return. * @return The folderIds at the given index. */ @@ -615,21 +737,24 @@ public java.lang.String getFolderIds(int index) { return folderIds_.get(index); } /** + * + * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; + * * @param index The index of the value to return. * @return The bytes of the folderIds at the given index. */ - public com.google.protobuf.ByteString - getFolderIdsBytes(int index) { + public com.google.protobuf.ByteString getFolderIdsBytes(int index) { return folderIds_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -641,12 +766,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < projectIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectIds_.getRaw(i)); } - if (inclusionMode_ != com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.INCLUSION_MODE_UNSPECIFIED.getNumber()) { + if (inclusionMode_ + != com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.INCLUSION_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, inclusionMode_); } for (int i = 0; i < folderIds_.size(); i++) { @@ -669,9 +796,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getProjectIdsList().size(); } - if (inclusionMode_ != com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.INCLUSION_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, inclusionMode_); + if (inclusionMode_ + != com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.INCLUSION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, inclusionMode_); } { int dataSize = 0; @@ -689,18 +818,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig)) { + if (!(obj + instanceof + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig other = (com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) obj; + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig other = + (com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) obj; - if (!getProjectIdsList() - .equals(other.getProjectIdsList())) return false; + if (!getProjectIdsList().equals(other.getProjectIdsList())) return false; if (inclusionMode_ != other.inclusionMode_) return false; - if (!getFolderIdsList() - .equals(other.getFolderIdsList())) return false; + if (!getFolderIdsList().equals(other.getFolderIdsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -727,88 +857,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -818,44 +961,51 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * Protobuf type {@code google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig} + * Protobuf type {@code + * google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable + return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.class, com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder.class); + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.class, + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder + .class); } - // Construct using com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -869,19 +1019,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance(); + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig build() { - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig result = buildPartial(); + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -889,8 +1042,10 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryCon } @java.lang.Override - public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig buildPartial() { - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig result = new com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig(this); + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + buildPartial() { + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig result = + new com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { projectIds_ = projectIds_.getUnmodifiableView(); @@ -911,46 +1066,55 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryCon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) { - return mergeFrom((com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig)other); + if (other + instanceof + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig other) { - if (other == com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig other) { + if (other + == com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .getDefaultInstance()) return this; if (!other.projectIds_.isEmpty()) { if (projectIds_.isEmpty()) { projectIds_ = other.projectIds_; @@ -989,11 +1153,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parsedMessage = null; + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1002,44 +1169,55 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList projectIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureProjectIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { projectIds_ = new com.google.protobuf.LazyStringArrayList(projectIds_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @return A list containing the projectIds. */ - public com.google.protobuf.ProtocolStringList - getProjectIdsList() { + public com.google.protobuf.ProtocolStringList getProjectIdsList() { return projectIds_.getUnmodifiableView(); } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @return The count of projectIds. */ public int getProjectIdsCount() { return projectIds_.size(); } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @param index The index of the element to return. * @return The projectIds at the given index. */ @@ -1047,80 +1225,90 @@ public java.lang.String getProjectIds(int index) { return projectIds_.get(index); } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @param index The index of the value to return. * @return The bytes of the projectIds at the given index. */ - public com.google.protobuf.ByteString - getProjectIdsBytes(int index) { + public com.google.protobuf.ByteString getProjectIdsBytes(int index) { return projectIds_.getByteString(index); } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @param index The index to set the value at. * @param value The projectIds to set. * @return This builder for chaining. */ - public Builder setProjectIds( - int index, java.lang.String value) { + public Builder setProjectIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProjectIdsIsMutable(); + throw new NullPointerException(); + } + ensureProjectIdsIsMutable(); projectIds_.set(index, value); onChanged(); return this; } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @param value The projectIds to add. * @return This builder for chaining. */ - public Builder addProjectIds( - java.lang.String value) { + public Builder addProjectIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProjectIdsIsMutable(); + throw new NullPointerException(); + } + ensureProjectIdsIsMutable(); projectIds_.add(value); onChanged(); return this; } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @param values The projectIds to add. * @return This builder for chaining. */ - public Builder addAllProjectIds( - java.lang.Iterable values) { + public Builder addAllProjectIds(java.lang.Iterable values) { ensureProjectIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, projectIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projectIds_); onChanged(); return this; } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @return This builder for chaining. */ public Builder clearProjectIds() { @@ -1130,20 +1318,22 @@ public Builder clearProjectIds() { return this; } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @param value The bytes of the projectIds to add. * @return This builder for chaining. */ - public Builder addProjectIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addProjectIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureProjectIdsIsMutable(); projectIds_.add(value); onChanged(); @@ -1152,117 +1342,163 @@ public Builder addProjectIdsBytes( private int inclusionMode_ = 0; /** + * + * *
        * The mode to use for filtering asset discovery.
        * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return The enum numeric value on the wire for inclusionMode. */ - @java.lang.Override public int getInclusionModeValue() { + @java.lang.Override + public int getInclusionModeValue() { return inclusionMode_; } /** + * + * *
        * The mode to use for filtering asset discovery.
        * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @param value The enum numeric value on the wire for inclusionMode to set. * @return This builder for chaining. */ public Builder setInclusionModeValue(int value) { - + inclusionMode_ = value; onChanged(); return this; } /** + * + * *
        * The mode to use for filtering asset discovery.
        * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return The inclusionMode. */ @java.lang.Override - public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode() { + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode + getInclusionMode() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode result = com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.valueOf(inclusionMode_); - return result == null ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode + result = + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.valueOf(inclusionMode_); + return result == null + ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.UNRECOGNIZED + : result; } /** + * + * *
        * The mode to use for filtering asset discovery.
        * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @param value The inclusionMode to set. * @return This builder for chaining. */ - public Builder setInclusionMode(com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode value) { + public Builder setInclusionMode( + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode + value) { if (value == null) { throw new NullPointerException(); } - + inclusionMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * The mode to use for filtering asset discovery.
        * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return This builder for chaining. */ public Builder clearInclusionMode() { - + inclusionMode_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList folderIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList folderIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureFolderIdsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { folderIds_ = new com.google.protobuf.LazyStringArrayList(folderIds_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; + * * @return A list containing the folderIds. */ - public com.google.protobuf.ProtocolStringList - getFolderIdsList() { + public com.google.protobuf.ProtocolStringList getFolderIdsList() { return folderIds_.getUnmodifiableView(); } /** + * + * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; + * * @return The count of folderIds. */ public int getFolderIdsCount() { return folderIds_.size(); } /** + * + * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; + * * @param index The index of the element to return. * @return The folderIds at the given index. */ @@ -1270,85 +1506,95 @@ public java.lang.String getFolderIds(int index) { return folderIds_.get(index); } /** + * + * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; + * * @param index The index of the value to return. * @return The bytes of the folderIds at the given index. */ - public com.google.protobuf.ByteString - getFolderIdsBytes(int index) { + public com.google.protobuf.ByteString getFolderIdsBytes(int index) { return folderIds_.getByteString(index); } /** + * + * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; + * * @param index The index to set the value at. * @param value The folderIds to set. * @return This builder for chaining. */ - public Builder setFolderIds( - int index, java.lang.String value) { + public Builder setFolderIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFolderIdsIsMutable(); + throw new NullPointerException(); + } + ensureFolderIdsIsMutable(); folderIds_.set(index, value); onChanged(); return this; } /** + * + * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; + * * @param value The folderIds to add. * @return This builder for chaining. */ - public Builder addFolderIds( - java.lang.String value) { + public Builder addFolderIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFolderIdsIsMutable(); + throw new NullPointerException(); + } + ensureFolderIdsIsMutable(); folderIds_.add(value); onChanged(); return this; } /** + * + * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; + * * @param values The folderIds to add. * @return This builder for chaining. */ - public Builder addAllFolderIds( - java.lang.Iterable values) { + public Builder addAllFolderIds(java.lang.Iterable values) { ensureFolderIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, folderIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folderIds_); onChanged(); return this; } /** + * + * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; + * * @return This builder for chaining. */ public Builder clearFolderIds() { @@ -1358,26 +1604,29 @@ public Builder clearFolderIds() { return this; } /** + * + * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; + * * @param value The bytes of the folderIds to add. * @return This builder for chaining. */ - public Builder addFolderIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addFolderIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFolderIdsIsMutable(); folderIds_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1390,30 +1639,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) - private static final com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1.OrganizationSettings + .AssetDiscoveryConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig(); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig getDefaultInstance() { + public static com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssetDiscoveryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AssetDiscoveryConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetDiscoveryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AssetDiscoveryConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1425,15 +1678,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1442,6 +1697,7 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryCon
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -1450,14 +1706,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1466,16 +1723,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1486,6 +1742,8 @@ public java.lang.String getName() { public static final int ENABLE_ASSET_DISCOVERY_FIELD_NUMBER = 2; private boolean enableAssetDiscovery_; /** + * + * *
    * A flag that indicates if Asset Discovery should be enabled. If the flag is
    * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -1494,6 +1752,7 @@ public java.lang.String getName() {
    * 
* * bool enable_asset_discovery = 2; + * * @return The enableAssetDiscovery. */ @java.lang.Override @@ -1502,13 +1761,19 @@ public boolean getEnableAssetDiscovery() { } public static final int ASSET_DISCOVERY_CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig assetDiscoveryConfig_; + private com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + assetDiscoveryConfig_; /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * * @return Whether the assetDiscoveryConfig field is set. */ @java.lang.Override @@ -1516,30 +1781,45 @@ public boolean hasAssetDiscoveryConfig() { return assetDiscoveryConfig_ != null; } /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * * @return The assetDiscoveryConfig. */ @java.lang.Override - public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig() { - return assetDiscoveryConfig_ == null ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance() : assetDiscoveryConfig_; + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + getAssetDiscoveryConfig() { + return assetDiscoveryConfig_ == null + ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .getDefaultInstance() + : assetDiscoveryConfig_; } /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder() { + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder + getAssetDiscoveryConfigOrBuilder() { return getAssetDiscoveryConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1551,8 +1831,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1575,12 +1854,11 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (enableAssetDiscovery_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enableAssetDiscovery_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableAssetDiscovery_); } if (assetDiscoveryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAssetDiscoveryConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAssetDiscoveryConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1590,21 +1868,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.OrganizationSettings)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.OrganizationSettings other = (com.google.cloud.securitycenter.v1.OrganizationSettings) obj; + com.google.cloud.securitycenter.v1.OrganizationSettings other = + (com.google.cloud.securitycenter.v1.OrganizationSettings) obj; - if (!getName() - .equals(other.getName())) return false; - if (getEnableAssetDiscovery() - != other.getEnableAssetDiscovery()) return false; + if (!getName().equals(other.getName())) return false; + if (getEnableAssetDiscovery() != other.getEnableAssetDiscovery()) return false; if (hasAssetDiscoveryConfig() != other.hasAssetDiscoveryConfig()) return false; if (hasAssetDiscoveryConfig()) { - if (!getAssetDiscoveryConfig() - .equals(other.getAssetDiscoveryConfig())) return false; + if (!getAssetDiscoveryConfig().equals(other.getAssetDiscoveryConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1620,8 +1896,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ENABLE_ASSET_DISCOVERY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableAssetDiscovery()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAssetDiscovery()); if (hasAssetDiscoveryConfig()) { hash = (37 * hash) + ASSET_DISCOVERY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAssetDiscoveryConfig().hashCode(); @@ -1632,96 +1907,104 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.OrganizationSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.OrganizationSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.OrganizationSettings prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.OrganizationSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * User specified settings that are attached to the Security Command
    * Center organization.
@@ -1729,21 +2012,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.OrganizationSettings}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.OrganizationSettings)
       com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass
+          .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass
+          .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.OrganizationSettings.class, com.google.cloud.securitycenter.v1.OrganizationSettings.Builder.class);
+              com.google.cloud.securitycenter.v1.OrganizationSettings.class,
+              com.google.cloud.securitycenter.v1.OrganizationSettings.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.OrganizationSettings.newBuilder()
@@ -1751,16 +2036,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1778,9 +2062,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass
+          .internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor;
     }
 
     @java.lang.Override
@@ -1799,7 +2083,8 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.OrganizationSettings buildPartial() {
-      com.google.cloud.securitycenter.v1.OrganizationSettings result = new com.google.cloud.securitycenter.v1.OrganizationSettings(this);
+      com.google.cloud.securitycenter.v1.OrganizationSettings result =
+          new com.google.cloud.securitycenter.v1.OrganizationSettings(this);
       result.name_ = name_;
       result.enableAssetDiscovery_ = enableAssetDiscovery_;
       if (assetDiscoveryConfigBuilder_ == null) {
@@ -1815,38 +2100,39 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.OrganizationSettings) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.OrganizationSettings)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.OrganizationSettings) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1854,7 +2140,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1.OrganizationSettings other) {
-      if (other == com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance()) return this;
+      if (other == com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1884,7 +2171,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.securitycenter.v1.OrganizationSettings) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.securitycenter.v1.OrganizationSettings) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1896,6 +2184,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1904,13 +2194,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1919,6 +2209,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1927,15 +2219,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1943,6 +2234,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1951,20 +2244,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1973,15 +2268,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1990,23 +2288,25 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private boolean enableAssetDiscovery_ ; + private boolean enableAssetDiscovery_; /** + * + * *
      * A flag that indicates if Asset Discovery should be enabled. If the flag is
      * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -2015,6 +2315,7 @@ public Builder setNameBytes(
      * 
* * bool enable_asset_discovery = 2; + * * @return The enableAssetDiscovery. */ @java.lang.Override @@ -2022,6 +2323,8 @@ public boolean getEnableAssetDiscovery() { return enableAssetDiscovery_; } /** + * + * *
      * A flag that indicates if Asset Discovery should be enabled. If the flag is
      * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -2030,16 +2333,19 @@ public boolean getEnableAssetDiscovery() {
      * 
* * bool enable_asset_discovery = 2; + * * @param value The enableAssetDiscovery to set. * @return This builder for chaining. */ public Builder setEnableAssetDiscovery(boolean value) { - + enableAssetDiscovery_ = value; onChanged(); return this; } /** + * + * *
      * A flag that indicates if Asset Discovery should be enabled. If the flag is
      * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -2048,52 +2354,76 @@ public Builder setEnableAssetDiscovery(boolean value) {
      * 
* * bool enable_asset_discovery = 2; + * * @return This builder for chaining. */ public Builder clearEnableAssetDiscovery() { - + enableAssetDiscovery_ = false; onChanged(); return this; } - private com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig assetDiscoveryConfig_; + private com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + assetDiscoveryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig, com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder, com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder> assetDiscoveryConfigBuilder_; + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig, + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder, + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder> + assetDiscoveryConfigBuilder_; /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * * @return Whether the assetDiscoveryConfig field is set. */ public boolean hasAssetDiscoveryConfig() { return assetDiscoveryConfigBuilder_ != null || assetDiscoveryConfig_ != null; } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * * @return The assetDiscoveryConfig. */ - public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig() { + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + getAssetDiscoveryConfig() { if (assetDiscoveryConfigBuilder_ == null) { - return assetDiscoveryConfig_ == null ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance() : assetDiscoveryConfig_; + return assetDiscoveryConfig_ == null + ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .getDefaultInstance() + : assetDiscoveryConfig_; } else { return assetDiscoveryConfigBuilder_.getMessage(); } } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ - public Builder setAssetDiscoveryConfig(com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig value) { + public Builder setAssetDiscoveryConfig( + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig value) { if (assetDiscoveryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2107,14 +2437,19 @@ public Builder setAssetDiscoveryConfig(com.google.cloud.securitycenter.v1.Organi return this; } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ public Builder setAssetDiscoveryConfig( - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder builderForValue) { + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder + builderForValue) { if (assetDiscoveryConfigBuilder_ == null) { assetDiscoveryConfig_ = builderForValue.build(); onChanged(); @@ -2125,17 +2460,25 @@ public Builder setAssetDiscoveryConfig( return this; } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ - public Builder mergeAssetDiscoveryConfig(com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig value) { + public Builder mergeAssetDiscoveryConfig( + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig value) { if (assetDiscoveryConfigBuilder_ == null) { if (assetDiscoveryConfig_ != null) { assetDiscoveryConfig_ = - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.newBuilder(assetDiscoveryConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .newBuilder(assetDiscoveryConfig_) + .mergeFrom(value) + .buildPartial(); } else { assetDiscoveryConfig_ = value; } @@ -2147,11 +2490,15 @@ public Builder mergeAssetDiscoveryConfig(com.google.cloud.securitycenter.v1.Orga return this; } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ public Builder clearAssetDiscoveryConfig() { if (assetDiscoveryConfigBuilder_ == null) { @@ -2165,55 +2512,76 @@ public Builder clearAssetDiscoveryConfig() { return this; } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ - public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder getAssetDiscoveryConfigBuilder() { - + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder + getAssetDiscoveryConfigBuilder() { + onChanged(); return getAssetDiscoveryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ - public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder() { + public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder + getAssetDiscoveryConfigOrBuilder() { if (assetDiscoveryConfigBuilder_ != null) { return assetDiscoveryConfigBuilder_.getMessageOrBuilder(); } else { - return assetDiscoveryConfig_ == null ? - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance() : assetDiscoveryConfig_; + return assetDiscoveryConfig_ == null + ? com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .getDefaultInstance() + : assetDiscoveryConfig_; } } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig, com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder, com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder> + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig, + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder, + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder> getAssetDiscoveryConfigFieldBuilder() { if (assetDiscoveryConfigBuilder_ == null) { - assetDiscoveryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig, com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder, com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder>( - getAssetDiscoveryConfig(), - getParentForChildren(), - isClean()); + assetDiscoveryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig, + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + .Builder, + com.google.cloud.securitycenter.v1.OrganizationSettings + .AssetDiscoveryConfigOrBuilder>( + getAssetDiscoveryConfig(), getParentForChildren(), isClean()); assetDiscoveryConfig_ = null; } return assetDiscoveryConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2223,12 +2591,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.OrganizationSettings) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.OrganizationSettings) private static final com.google.cloud.securitycenter.v1.OrganizationSettings DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.OrganizationSettings(); } @@ -2237,16 +2605,16 @@ public static com.google.cloud.securitycenter.v1.OrganizationSettings getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrganizationSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrganizationSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrganizationSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OrganizationSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2261,6 +2629,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.OrganizationSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java index a0dc485c0..ab1312313 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/organization_settings.proto package com.google.cloud.securitycenter.v1; -public interface OrganizationSettingsOrBuilder extends +public interface OrganizationSettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.OrganizationSettings) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -16,10 +34,13 @@ public interface OrganizationSettingsOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -28,12 +49,14 @@ public interface OrganizationSettingsOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A flag that indicates if Asset Discovery should be enabled. If the flag is
    * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -42,34 +65,51 @@ public interface OrganizationSettingsOrBuilder extends
    * 
* * bool enable_asset_discovery = 2; + * * @return The enableAssetDiscovery. */ boolean getEnableAssetDiscovery(); /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * * @return Whether the assetDiscoveryConfig field is set. */ boolean hasAssetDiscoveryConfig(); /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * * @return The assetDiscoveryConfig. */ - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig(); + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig + getAssetDiscoveryConfig(); /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ - com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder(); + com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfigOrBuilder + getAssetDiscoveryConfigOrBuilder(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java new file mode 100644 index 000000000..7711f1bab --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettingsOuterClass.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/organization_settings.proto + +package com.google.cloud.securitycenter.v1; + +public final class OrganizationSettingsOuterClass { + private OrganizationSettingsOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n:google/cloud/securitycenter/v1/organiz" + + "ation_settings.proto\022\036google.cloud.secur" + + "itycenter.v1\032\031google/api/resource.proto\"" + + "\236\004\n\024OrganizationSettings\022\014\n\004name\030\001 \001(\t\022\036" + + "\n\026enable_asset_discovery\030\002 \001(\010\022i\n\026asset_" + + "discovery_config\030\003 \001(\0132I.google.cloud.se" + + "curitycenter.v1.OrganizationSettings.Ass" + + "etDiscoveryConfig\032\200\002\n\024AssetDiscoveryConf" + + "ig\022\023\n\013project_ids\030\001 \003(\t\022o\n\016inclusion_mod" + + "e\030\002 \001(\0162W.google.cloud.securitycenter.v1" + + ".OrganizationSettings.AssetDiscoveryConf" + + "ig.InclusionMode\022\022\n\nfolder_ids\030\003 \003(\t\"N\n\r" + + "InclusionMode\022\036\n\032INCLUSION_MODE_UNSPECIF" + + "IED\020\000\022\020\n\014INCLUDE_ONLY\020\001\022\013\n\007EXCLUDE\020\002:j\352A" + + "g\n2securitycenter.googleapis.com/Organiz" + + "ationSettings\0221organizations/{organizati" + + "on}/organizationSettingsB\332\001\n\"com.google." + + "cloud.securitycenter.v1P\001ZLgoogle.golang" + + ".org/genproto/googleapis/cloud/securityc" + + "enter/v1;securitycenter\252\002\036Google.Cloud.S" + + "ecurityCenter.V1\312\002\036Google\\Cloud\\Security" + + "Center\\V1\352\002!Google::Cloud::SecurityCente" + + "r::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor, + new java.lang.String[] { + "Name", "EnableAssetDiscovery", "AssetDiscoveryConfig", + }); + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor = + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_OrganizationSettings_AssetDiscoveryConfig_descriptor, + new java.lang.String[] { + "ProjectIds", "InclusionMode", "FolderIds", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Process.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Process.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Process.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Process.java index ddcf5badd..54cf3db62 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Process.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Process.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/process.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Represents an operating system process.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Process} */ -public final class Process extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Process extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Process) ProcessOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Process.newBuilder() to construct. private Process(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Process() { libraries_ = java.util.Collections.emptyList(); args_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -27,16 +45,15 @@ private Process() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Process(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Process( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,86 +73,100 @@ private Process( case 0: done = true; break; - case 26: { - com.google.cloud.securitycenter.v1.File.Builder subBuilder = null; - if (binary_ != null) { - subBuilder = binary_.toBuilder(); + case 26: + { + com.google.cloud.securitycenter.v1.File.Builder subBuilder = null; + if (binary_ != null) { + subBuilder = binary_.toBuilder(); + } + binary_ = + input.readMessage( + com.google.cloud.securitycenter.v1.File.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(binary_); + binary_ = subBuilder.buildPartial(); + } + + break; } - binary_ = input.readMessage(com.google.cloud.securitycenter.v1.File.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(binary_); - binary_ = subBuilder.buildPartial(); + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + libraries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + libraries_.add( + input.readMessage( + com.google.cloud.securitycenter.v1.File.parser(), extensionRegistry)); + break; } - - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - libraries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 42: + { + com.google.cloud.securitycenter.v1.File.Builder subBuilder = null; + if (script_ != null) { + subBuilder = script_.toBuilder(); + } + script_ = + input.readMessage( + com.google.cloud.securitycenter.v1.File.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(script_); + script_ = subBuilder.buildPartial(); + } + + break; } - libraries_.add( - input.readMessage(com.google.cloud.securitycenter.v1.File.parser(), extensionRegistry)); - break; - } - case 42: { - com.google.cloud.securitycenter.v1.File.Builder subBuilder = null; - if (script_ != null) { - subBuilder = script_.toBuilder(); + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + args_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + args_.add(s); + break; } - script_ = input.readMessage(com.google.cloud.securitycenter.v1.File.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(script_); - script_ = subBuilder.buildPartial(); + case 56: + { + argumentsTruncated_ = input.readBool(); + break; } - - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + case 66: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + envVariables_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1.EnvironmentVariable>(); + mutable_bitField0_ |= 0x00000004; + } + envVariables_.add( + input.readMessage( + com.google.cloud.securitycenter.v1.EnvironmentVariable.parser(), + extensionRegistry)); + break; } - args_.add(s); - break; - } - case 56: { - - argumentsTruncated_ = input.readBool(); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - envVariables_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 72: + { + envVariablesTruncated_ = input.readBool(); + break; } - envVariables_.add( - input.readMessage(com.google.cloud.securitycenter.v1.EnvironmentVariable.parser(), extensionRegistry)); - break; - } - case 72: { - - envVariablesTruncated_ = input.readBool(); - break; - } - case 80: { - - pid_ = input.readInt64(); - break; - } - case 88: { - - parentPid_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 80: + { + pid_ = input.readInt64(); + break; + } + case 88: + { + parentPid_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -143,8 +174,7 @@ private Process( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { libraries_ = java.util.Collections.unmodifiableList(libraries_); @@ -159,27 +189,33 @@ private Process( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.ProcessProto.internal_static_google_cloud_securitycenter_v1_Process_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.ProcessProto + .internal_static_google_cloud_securitycenter_v1_Process_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ProcessProto.internal_static_google_cloud_securitycenter_v1_Process_fieldAccessorTable + return com.google.cloud.securitycenter.v1.ProcessProto + .internal_static_google_cloud_securitycenter_v1_Process_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Process.class, com.google.cloud.securitycenter.v1.Process.Builder.class); + com.google.cloud.securitycenter.v1.Process.class, + com.google.cloud.securitycenter.v1.Process.Builder.class); } public static final int BINARY_FIELD_NUMBER = 3; private com.google.cloud.securitycenter.v1.File binary_; /** + * + * *
    * File information for the process executable.
    * 
* * .google.cloud.securitycenter.v1.File binary = 3; + * * @return Whether the binary field is set. */ @java.lang.Override @@ -187,11 +223,14 @@ public boolean hasBinary() { return binary_ != null; } /** + * + * *
    * File information for the process executable.
    * 
* * .google.cloud.securitycenter.v1.File binary = 3; + * * @return The binary. */ @java.lang.Override @@ -199,6 +238,8 @@ public com.google.cloud.securitycenter.v1.File getBinary() { return binary_ == null ? com.google.cloud.securitycenter.v1.File.getDefaultInstance() : binary_; } /** + * + * *
    * File information for the process executable.
    * 
@@ -213,6 +254,8 @@ public com.google.cloud.securitycenter.v1.FileOrBuilder getBinaryOrBuilder() { public static final int LIBRARIES_FIELD_NUMBER = 4; private java.util.List libraries_; /** + * + * *
    * File information for libraries loaded by the process.
    * 
@@ -224,6 +267,8 @@ public java.util.List getLibrariesList( return libraries_; } /** + * + * *
    * File information for libraries loaded by the process.
    * 
@@ -231,11 +276,13 @@ public java.util.List getLibrariesList( * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ @java.lang.Override - public java.util.List + public java.util.List getLibrariesOrBuilderList() { return libraries_; } /** + * + * *
    * File information for libraries loaded by the process.
    * 
@@ -247,6 +294,8 @@ public int getLibrariesCount() { return libraries_.size(); } /** + * + * *
    * File information for libraries loaded by the process.
    * 
@@ -258,6 +307,8 @@ public com.google.cloud.securitycenter.v1.File getLibraries(int index) { return libraries_.get(index); } /** + * + * *
    * File information for libraries loaded by the process.
    * 
@@ -265,14 +316,15 @@ public com.google.cloud.securitycenter.v1.File getLibraries(int index) { * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ @java.lang.Override - public com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder(int index) { return libraries_.get(index); } public static final int SCRIPT_FIELD_NUMBER = 5; private com.google.cloud.securitycenter.v1.File script_; /** + * + * *
    * When the process represents the invocation of a script,
    * `binary` provides information about the interpreter while `script`
@@ -281,6 +333,7 @@ public com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder(
    * 
* * .google.cloud.securitycenter.v1.File script = 5; + * * @return Whether the script field is set. */ @java.lang.Override @@ -288,6 +341,8 @@ public boolean hasScript() { return script_ != null; } /** + * + * *
    * When the process represents the invocation of a script,
    * `binary` provides information about the interpreter while `script`
@@ -296,6 +351,7 @@ public boolean hasScript() {
    * 
* * .google.cloud.securitycenter.v1.File script = 5; + * * @return The script. */ @java.lang.Override @@ -303,6 +359,8 @@ public com.google.cloud.securitycenter.v1.File getScript() { return script_ == null ? com.google.cloud.securitycenter.v1.File.getDefaultInstance() : script_; } /** + * + * *
    * When the process represents the invocation of a script,
    * `binary` provides information about the interpreter while `script`
@@ -320,34 +378,42 @@ public com.google.cloud.securitycenter.v1.FileOrBuilder getScriptOrBuilder() {
   public static final int ARGS_FIELD_NUMBER = 6;
   private com.google.protobuf.LazyStringList args_;
   /**
+   *
+   *
    * 
    * Process arguments as JSON encoded strings.
    * 
* * repeated string args = 6; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_; } /** + * + * *
    * Process arguments as JSON encoded strings.
    * 
* * repeated string args = 6; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
    * Process arguments as JSON encoded strings.
    * 
* * repeated string args = 6; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -355,27 +421,32 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
    * Process arguments as JSON encoded strings.
    * 
* * repeated string args = 6; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } public static final int ARGUMENTS_TRUNCATED_FIELD_NUMBER = 7; private boolean argumentsTruncated_; /** + * + * *
    * True if `args` is incomplete.
    * 
* * bool arguments_truncated = 7; + * * @return The argumentsTruncated. */ @java.lang.Override @@ -386,6 +457,8 @@ public boolean getArgumentsTruncated() { public static final int ENV_VARIABLES_FIELD_NUMBER = 8; private java.util.List envVariables_; /** + * + * *
    * Process environment variables.
    * 
@@ -393,10 +466,13 @@ public boolean getArgumentsTruncated() { * repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8; */ @java.lang.Override - public java.util.List getEnvVariablesList() { + public java.util.List + getEnvVariablesList() { return envVariables_; } /** + * + * *
    * Process environment variables.
    * 
@@ -404,11 +480,13 @@ public java.util.List ge * repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8; */ @java.lang.Override - public java.util.List + public java.util.List getEnvVariablesOrBuilderList() { return envVariables_; } /** + * + * *
    * Process environment variables.
    * 
@@ -420,6 +498,8 @@ public int getEnvVariablesCount() { return envVariables_.size(); } /** + * + * *
    * Process environment variables.
    * 
@@ -431,6 +511,8 @@ public com.google.cloud.securitycenter.v1.EnvironmentVariable getEnvVariables(in return envVariables_.get(index); } /** + * + * *
    * Process environment variables.
    * 
@@ -446,11 +528,14 @@ public com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder getEnvVar public static final int ENV_VARIABLES_TRUNCATED_FIELD_NUMBER = 9; private boolean envVariablesTruncated_; /** + * + * *
    * True if `env_variables` is incomplete.
    * 
* * bool env_variables_truncated = 9; + * * @return The envVariablesTruncated. */ @java.lang.Override @@ -461,11 +546,14 @@ public boolean getEnvVariablesTruncated() { public static final int PID_FIELD_NUMBER = 10; private long pid_; /** + * + * *
    * The process id.
    * 
* * int64 pid = 10; + * * @return The pid. */ @java.lang.Override @@ -476,11 +564,14 @@ public long getPid() { public static final int PARENT_PID_FIELD_NUMBER = 11; private long parentPid_; /** + * + * *
    * The parent process id.
    * 
* * int64 parent_pid = 11; + * * @return The parentPid. */ @java.lang.Override @@ -489,6 +580,7 @@ public long getParentPid() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -500,8 +592,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (binary_ != null) { output.writeMessage(3, getBinary()); } @@ -539,16 +630,13 @@ public int getSerializedSize() { size = 0; if (binary_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getBinary()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBinary()); } for (int i = 0; i < libraries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, libraries_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, libraries_.get(i)); } if (script_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getScript()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getScript()); } { int dataSize = 0; @@ -559,24 +647,19 @@ public int getSerializedSize() { size += 1 * getArgsList().size(); } if (argumentsTruncated_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, argumentsTruncated_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, argumentsTruncated_); } for (int i = 0; i < envVariables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, envVariables_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, envVariables_.get(i)); } if (envVariablesTruncated_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, envVariablesTruncated_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, envVariablesTruncated_); } if (pid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, pid_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, pid_); } if (parentPid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(11, parentPid_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, parentPid_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -586,37 +669,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Process)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Process other = (com.google.cloud.securitycenter.v1.Process) obj; + com.google.cloud.securitycenter.v1.Process other = + (com.google.cloud.securitycenter.v1.Process) obj; if (hasBinary() != other.hasBinary()) return false; if (hasBinary()) { - if (!getBinary() - .equals(other.getBinary())) return false; + if (!getBinary().equals(other.getBinary())) return false; } - if (!getLibrariesList() - .equals(other.getLibrariesList())) return false; + if (!getLibrariesList().equals(other.getLibrariesList())) return false; if (hasScript() != other.hasScript()) return false; if (hasScript()) { - if (!getScript() - .equals(other.getScript())) return false; - } - if (!getArgsList() - .equals(other.getArgsList())) return false; - if (getArgumentsTruncated() - != other.getArgumentsTruncated()) return false; - if (!getEnvVariablesList() - .equals(other.getEnvVariablesList())) return false; - if (getEnvVariablesTruncated() - != other.getEnvVariablesTruncated()) return false; - if (getPid() - != other.getPid()) return false; - if (getParentPid() - != other.getParentPid()) return false; + if (!getScript().equals(other.getScript())) return false; + } + if (!getArgsList().equals(other.getArgsList())) return false; + if (getArgumentsTruncated() != other.getArgumentsTruncated()) return false; + if (!getEnvVariablesList().equals(other.getEnvVariablesList())) return false; + if (getEnvVariablesTruncated() != other.getEnvVariablesTruncated()) return false; + if (getPid() != other.getPid()) return false; + if (getParentPid() != other.getParentPid()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -645,138 +720,143 @@ public int hashCode() { hash = (53 * hash) + getArgsList().hashCode(); } hash = (37 * hash) + ARGUMENTS_TRUNCATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getArgumentsTruncated()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getArgumentsTruncated()); if (getEnvVariablesCount() > 0) { hash = (37 * hash) + ENV_VARIABLES_FIELD_NUMBER; hash = (53 * hash) + getEnvVariablesList().hashCode(); } hash = (37 * hash) + ENV_VARIABLES_TRUNCATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnvVariablesTruncated()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnvVariablesTruncated()); hash = (37 * hash) + PID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPid()); hash = (37 * hash) + PARENT_PID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getParentPid()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getParentPid()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.securitycenter.v1.Process parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Process parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Process parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Process parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Process parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Process parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Process parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Process parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Process parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Process parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.Process parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Process parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Process parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Process parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.Process prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents an operating system process.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Process} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Process) com.google.cloud.securitycenter.v1.ProcessOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.ProcessProto.internal_static_google_cloud_securitycenter_v1_Process_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.ProcessProto + .internal_static_google_cloud_securitycenter_v1_Process_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ProcessProto.internal_static_google_cloud_securitycenter_v1_Process_fieldAccessorTable + return com.google.cloud.securitycenter.v1.ProcessProto + .internal_static_google_cloud_securitycenter_v1_Process_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Process.class, com.google.cloud.securitycenter.v1.Process.Builder.class); + com.google.cloud.securitycenter.v1.Process.class, + com.google.cloud.securitycenter.v1.Process.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.Process.newBuilder() @@ -784,18 +864,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLibrariesFieldBuilder(); getEnvVariablesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -837,9 +917,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.ProcessProto.internal_static_google_cloud_securitycenter_v1_Process_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.ProcessProto + .internal_static_google_cloud_securitycenter_v1_Process_descriptor; } @java.lang.Override @@ -858,7 +938,8 @@ public com.google.cloud.securitycenter.v1.Process build() { @java.lang.Override public com.google.cloud.securitycenter.v1.Process buildPartial() { - com.google.cloud.securitycenter.v1.Process result = new com.google.cloud.securitycenter.v1.Process(this); + com.google.cloud.securitycenter.v1.Process result = + new com.google.cloud.securitycenter.v1.Process(this); int from_bitField0_ = bitField0_; if (binaryBuilder_ == null) { result.binary_ = binary_; @@ -905,38 +986,39 @@ public com.google.cloud.securitycenter.v1.Process buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.Process) { - return mergeFrom((com.google.cloud.securitycenter.v1.Process)other); + return mergeFrom((com.google.cloud.securitycenter.v1.Process) other); } else { super.mergeFrom(other); return this; @@ -966,9 +1048,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Process other) { librariesBuilder_ = null; libraries_ = other.libraries_; bitField0_ = (bitField0_ & ~0x00000001); - librariesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLibrariesFieldBuilder() : null; + librariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLibrariesFieldBuilder() + : null; } else { librariesBuilder_.addAllMessages(other.libraries_); } @@ -1008,9 +1091,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Process other) { envVariablesBuilder_ = null; envVariables_ = other.envVariables_; bitField0_ = (bitField0_ & ~0x00000004); - envVariablesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEnvVariablesFieldBuilder() : null; + envVariablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEnvVariablesFieldBuilder() + : null; } else { envVariablesBuilder_.addAllMessages(other.envVariables_); } @@ -1053,38 +1137,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.securitycenter.v1.File binary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.File, com.google.cloud.securitycenter.v1.File.Builder, com.google.cloud.securitycenter.v1.FileOrBuilder> binaryBuilder_; + com.google.cloud.securitycenter.v1.File, + com.google.cloud.securitycenter.v1.File.Builder, + com.google.cloud.securitycenter.v1.FileOrBuilder> + binaryBuilder_; /** + * + * *
      * File information for the process executable.
      * 
* * .google.cloud.securitycenter.v1.File binary = 3; + * * @return Whether the binary field is set. */ public boolean hasBinary() { return binaryBuilder_ != null || binary_ != null; } /** + * + * *
      * File information for the process executable.
      * 
* * .google.cloud.securitycenter.v1.File binary = 3; + * * @return The binary. */ public com.google.cloud.securitycenter.v1.File getBinary() { if (binaryBuilder_ == null) { - return binary_ == null ? com.google.cloud.securitycenter.v1.File.getDefaultInstance() : binary_; + return binary_ == null + ? com.google.cloud.securitycenter.v1.File.getDefaultInstance() + : binary_; } else { return binaryBuilder_.getMessage(); } } /** + * + * *
      * File information for the process executable.
      * 
@@ -1105,14 +1203,15 @@ public Builder setBinary(com.google.cloud.securitycenter.v1.File value) { return this; } /** + * + * *
      * File information for the process executable.
      * 
* * .google.cloud.securitycenter.v1.File binary = 3; */ - public Builder setBinary( - com.google.cloud.securitycenter.v1.File.Builder builderForValue) { + public Builder setBinary(com.google.cloud.securitycenter.v1.File.Builder builderForValue) { if (binaryBuilder_ == null) { binary_ = builderForValue.build(); onChanged(); @@ -1123,6 +1222,8 @@ public Builder setBinary( return this; } /** + * + * *
      * File information for the process executable.
      * 
@@ -1133,7 +1234,9 @@ public Builder mergeBinary(com.google.cloud.securitycenter.v1.File value) { if (binaryBuilder_ == null) { if (binary_ != null) { binary_ = - com.google.cloud.securitycenter.v1.File.newBuilder(binary_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.File.newBuilder(binary_) + .mergeFrom(value) + .buildPartial(); } else { binary_ = value; } @@ -1145,6 +1248,8 @@ public Builder mergeBinary(com.google.cloud.securitycenter.v1.File value) { return this; } /** + * + * *
      * File information for the process executable.
      * 
@@ -1163,6 +1268,8 @@ public Builder clearBinary() { return this; } /** + * + * *
      * File information for the process executable.
      * 
@@ -1170,11 +1277,13 @@ public Builder clearBinary() { * .google.cloud.securitycenter.v1.File binary = 3; */ public com.google.cloud.securitycenter.v1.File.Builder getBinaryBuilder() { - + onChanged(); return getBinaryFieldBuilder().getBuilder(); } /** + * + * *
      * File information for the process executable.
      * 
@@ -1185,11 +1294,14 @@ public com.google.cloud.securitycenter.v1.FileOrBuilder getBinaryOrBuilder() { if (binaryBuilder_ != null) { return binaryBuilder_.getMessageOrBuilder(); } else { - return binary_ == null ? - com.google.cloud.securitycenter.v1.File.getDefaultInstance() : binary_; + return binary_ == null + ? com.google.cloud.securitycenter.v1.File.getDefaultInstance() + : binary_; } } /** + * + * *
      * File information for the process executable.
      * 
@@ -1197,32 +1309,41 @@ public com.google.cloud.securitycenter.v1.FileOrBuilder getBinaryOrBuilder() { * .google.cloud.securitycenter.v1.File binary = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.File, com.google.cloud.securitycenter.v1.File.Builder, com.google.cloud.securitycenter.v1.FileOrBuilder> + com.google.cloud.securitycenter.v1.File, + com.google.cloud.securitycenter.v1.File.Builder, + com.google.cloud.securitycenter.v1.FileOrBuilder> getBinaryFieldBuilder() { if (binaryBuilder_ == null) { - binaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.File, com.google.cloud.securitycenter.v1.File.Builder, com.google.cloud.securitycenter.v1.FileOrBuilder>( - getBinary(), - getParentForChildren(), - isClean()); + binaryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.File, + com.google.cloud.securitycenter.v1.File.Builder, + com.google.cloud.securitycenter.v1.FileOrBuilder>( + getBinary(), getParentForChildren(), isClean()); binary_ = null; } return binaryBuilder_; } private java.util.List libraries_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLibrariesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { libraries_ = new java.util.ArrayList(libraries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.File, com.google.cloud.securitycenter.v1.File.Builder, com.google.cloud.securitycenter.v1.FileOrBuilder> librariesBuilder_; + com.google.cloud.securitycenter.v1.File, + com.google.cloud.securitycenter.v1.File.Builder, + com.google.cloud.securitycenter.v1.FileOrBuilder> + librariesBuilder_; /** + * + * *
      * File information for libraries loaded by the process.
      * 
@@ -1237,6 +1358,8 @@ public java.util.List getLibrariesList( } } /** + * + * *
      * File information for libraries loaded by the process.
      * 
@@ -1251,6 +1374,8 @@ public int getLibrariesCount() { } } /** + * + * *
      * File information for libraries loaded by the process.
      * 
@@ -1265,14 +1390,15 @@ public com.google.cloud.securitycenter.v1.File getLibraries(int index) { } } /** + * + * *
      * File information for libraries loaded by the process.
      * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - public Builder setLibraries( - int index, com.google.cloud.securitycenter.v1.File value) { + public Builder setLibraries(int index, com.google.cloud.securitycenter.v1.File value) { if (librariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1286,6 +1412,8 @@ public Builder setLibraries( return this; } /** + * + * *
      * File information for libraries loaded by the process.
      * 
@@ -1304,6 +1432,8 @@ public Builder setLibraries( return this; } /** + * + * *
      * File information for libraries loaded by the process.
      * 
@@ -1324,14 +1454,15 @@ public Builder addLibraries(com.google.cloud.securitycenter.v1.File value) { return this; } /** + * + * *
      * File information for libraries loaded by the process.
      * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - public Builder addLibraries( - int index, com.google.cloud.securitycenter.v1.File value) { + public Builder addLibraries(int index, com.google.cloud.securitycenter.v1.File value) { if (librariesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1345,14 +1476,15 @@ public Builder addLibraries( return this; } /** + * + * *
      * File information for libraries loaded by the process.
      * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - public Builder addLibraries( - com.google.cloud.securitycenter.v1.File.Builder builderForValue) { + public Builder addLibraries(com.google.cloud.securitycenter.v1.File.Builder builderForValue) { if (librariesBuilder_ == null) { ensureLibrariesIsMutable(); libraries_.add(builderForValue.build()); @@ -1363,6 +1495,8 @@ public Builder addLibraries( return this; } /** + * + * *
      * File information for libraries loaded by the process.
      * 
@@ -1381,6 +1515,8 @@ public Builder addLibraries( return this; } /** + * + * *
      * File information for libraries loaded by the process.
      * 
@@ -1391,8 +1527,7 @@ public Builder addAllLibraries( java.lang.Iterable values) { if (librariesBuilder_ == null) { ensureLibrariesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, libraries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, libraries_); onChanged(); } else { librariesBuilder_.addAllMessages(values); @@ -1400,6 +1535,8 @@ public Builder addAllLibraries( return this; } /** + * + * *
      * File information for libraries loaded by the process.
      * 
@@ -1417,6 +1554,8 @@ public Builder clearLibraries() { return this; } /** + * + * *
      * File information for libraries loaded by the process.
      * 
@@ -1434,39 +1573,44 @@ public Builder removeLibraries(int index) { return this; } /** + * + * *
      * File information for libraries loaded by the process.
      * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - public com.google.cloud.securitycenter.v1.File.Builder getLibrariesBuilder( - int index) { + public com.google.cloud.securitycenter.v1.File.Builder getLibrariesBuilder(int index) { return getLibrariesFieldBuilder().getBuilder(index); } /** + * + * *
      * File information for libraries loaded by the process.
      * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - public com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder(int index) { if (librariesBuilder_ == null) { - return libraries_.get(index); } else { + return libraries_.get(index); + } else { return librariesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * File information for libraries loaded by the process.
      * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - public java.util.List - getLibrariesOrBuilderList() { + public java.util.List + getLibrariesOrBuilderList() { if (librariesBuilder_ != null) { return librariesBuilder_.getMessageOrBuilderList(); } else { @@ -1474,6 +1618,8 @@ public com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder( } } /** + * + * *
      * File information for libraries loaded by the process.
      * 
@@ -1481,42 +1627,48 @@ public com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder( * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ public com.google.cloud.securitycenter.v1.File.Builder addLibrariesBuilder() { - return getLibrariesFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1.File.getDefaultInstance()); + return getLibrariesFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1.File.getDefaultInstance()); } /** + * + * *
      * File information for libraries loaded by the process.
      * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - public com.google.cloud.securitycenter.v1.File.Builder addLibrariesBuilder( - int index) { - return getLibrariesFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1.File.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.File.Builder addLibrariesBuilder(int index) { + return getLibrariesFieldBuilder() + .addBuilder(index, com.google.cloud.securitycenter.v1.File.getDefaultInstance()); } /** + * + * *
      * File information for libraries loaded by the process.
      * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - public java.util.List - getLibrariesBuilderList() { + public java.util.List + getLibrariesBuilderList() { return getLibrariesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.File, com.google.cloud.securitycenter.v1.File.Builder, com.google.cloud.securitycenter.v1.FileOrBuilder> + com.google.cloud.securitycenter.v1.File, + com.google.cloud.securitycenter.v1.File.Builder, + com.google.cloud.securitycenter.v1.FileOrBuilder> getLibrariesFieldBuilder() { if (librariesBuilder_ == null) { - librariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.File, com.google.cloud.securitycenter.v1.File.Builder, com.google.cloud.securitycenter.v1.FileOrBuilder>( - libraries_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + librariesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.File, + com.google.cloud.securitycenter.v1.File.Builder, + com.google.cloud.securitycenter.v1.FileOrBuilder>( + libraries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); libraries_ = null; } return librariesBuilder_; @@ -1524,8 +1676,13 @@ public com.google.cloud.securitycenter.v1.File.Builder addLibrariesBuilder( private com.google.cloud.securitycenter.v1.File script_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.File, com.google.cloud.securitycenter.v1.File.Builder, com.google.cloud.securitycenter.v1.FileOrBuilder> scriptBuilder_; + com.google.cloud.securitycenter.v1.File, + com.google.cloud.securitycenter.v1.File.Builder, + com.google.cloud.securitycenter.v1.FileOrBuilder> + scriptBuilder_; /** + * + * *
      * When the process represents the invocation of a script,
      * `binary` provides information about the interpreter while `script`
@@ -1534,12 +1691,15 @@ public com.google.cloud.securitycenter.v1.File.Builder addLibrariesBuilder(
      * 
* * .google.cloud.securitycenter.v1.File script = 5; + * * @return Whether the script field is set. */ public boolean hasScript() { return scriptBuilder_ != null || script_ != null; } /** + * + * *
      * When the process represents the invocation of a script,
      * `binary` provides information about the interpreter while `script`
@@ -1548,16 +1708,21 @@ public boolean hasScript() {
      * 
* * .google.cloud.securitycenter.v1.File script = 5; + * * @return The script. */ public com.google.cloud.securitycenter.v1.File getScript() { if (scriptBuilder_ == null) { - return script_ == null ? com.google.cloud.securitycenter.v1.File.getDefaultInstance() : script_; + return script_ == null + ? com.google.cloud.securitycenter.v1.File.getDefaultInstance() + : script_; } else { return scriptBuilder_.getMessage(); } } /** + * + * *
      * When the process represents the invocation of a script,
      * `binary` provides information about the interpreter while `script`
@@ -1581,6 +1746,8 @@ public Builder setScript(com.google.cloud.securitycenter.v1.File value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When the process represents the invocation of a script,
      * `binary` provides information about the interpreter while `script`
@@ -1590,8 +1757,7 @@ public Builder setScript(com.google.cloud.securitycenter.v1.File value) {
      *
      * .google.cloud.securitycenter.v1.File script = 5;
      */
-    public Builder setScript(
-        com.google.cloud.securitycenter.v1.File.Builder builderForValue) {
+    public Builder setScript(com.google.cloud.securitycenter.v1.File.Builder builderForValue) {
       if (scriptBuilder_ == null) {
         script_ = builderForValue.build();
         onChanged();
@@ -1602,6 +1768,8 @@ public Builder setScript(
       return this;
     }
     /**
+     *
+     *
      * 
      * When the process represents the invocation of a script,
      * `binary` provides information about the interpreter while `script`
@@ -1615,7 +1783,9 @@ public Builder mergeScript(com.google.cloud.securitycenter.v1.File value) {
       if (scriptBuilder_ == null) {
         if (script_ != null) {
           script_ =
-            com.google.cloud.securitycenter.v1.File.newBuilder(script_).mergeFrom(value).buildPartial();
+              com.google.cloud.securitycenter.v1.File.newBuilder(script_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           script_ = value;
         }
@@ -1627,6 +1797,8 @@ public Builder mergeScript(com.google.cloud.securitycenter.v1.File value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When the process represents the invocation of a script,
      * `binary` provides information about the interpreter while `script`
@@ -1648,6 +1820,8 @@ public Builder clearScript() {
       return this;
     }
     /**
+     *
+     *
      * 
      * When the process represents the invocation of a script,
      * `binary` provides information about the interpreter while `script`
@@ -1658,11 +1832,13 @@ public Builder clearScript() {
      * .google.cloud.securitycenter.v1.File script = 5;
      */
     public com.google.cloud.securitycenter.v1.File.Builder getScriptBuilder() {
-      
+
       onChanged();
       return getScriptFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When the process represents the invocation of a script,
      * `binary` provides information about the interpreter while `script`
@@ -1676,11 +1852,14 @@ public com.google.cloud.securitycenter.v1.FileOrBuilder getScriptOrBuilder() {
       if (scriptBuilder_ != null) {
         return scriptBuilder_.getMessageOrBuilder();
       } else {
-        return script_ == null ?
-            com.google.cloud.securitycenter.v1.File.getDefaultInstance() : script_;
+        return script_ == null
+            ? com.google.cloud.securitycenter.v1.File.getDefaultInstance()
+            : script_;
       }
     }
     /**
+     *
+     *
      * 
      * When the process represents the invocation of a script,
      * `binary` provides information about the interpreter while `script`
@@ -1691,55 +1870,68 @@ public com.google.cloud.securitycenter.v1.FileOrBuilder getScriptOrBuilder() {
      * .google.cloud.securitycenter.v1.File script = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.File, com.google.cloud.securitycenter.v1.File.Builder, com.google.cloud.securitycenter.v1.FileOrBuilder> 
+            com.google.cloud.securitycenter.v1.File,
+            com.google.cloud.securitycenter.v1.File.Builder,
+            com.google.cloud.securitycenter.v1.FileOrBuilder>
         getScriptFieldBuilder() {
       if (scriptBuilder_ == null) {
-        scriptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.File, com.google.cloud.securitycenter.v1.File.Builder, com.google.cloud.securitycenter.v1.FileOrBuilder>(
-                getScript(),
-                getParentForChildren(),
-                isClean());
+        scriptBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.securitycenter.v1.File,
+                com.google.cloud.securitycenter.v1.File.Builder,
+                com.google.cloud.securitycenter.v1.FileOrBuilder>(
+                getScript(), getParentForChildren(), isClean());
         script_ = null;
       }
       return scriptBuilder_;
     }
 
-    private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList args_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensureArgsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         args_ = new com.google.protobuf.LazyStringArrayList(args_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * Process arguments as JSON encoded strings.
      * 
* * repeated string args = 6; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_.getUnmodifiableView(); } /** + * + * *
      * Process arguments as JSON encoded strings.
      * 
* * repeated string args = 6; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
      * Process arguments as JSON encoded strings.
      * 
* * repeated string args = 6; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -1747,80 +1939,90 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
      * Process arguments as JSON encoded strings.
      * 
* * repeated string args = 6; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } /** + * + * *
      * Process arguments as JSON encoded strings.
      * 
* * repeated string args = 6; + * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs( - int index, java.lang.String value) { + public Builder setArgs(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** + * + * *
      * Process arguments as JSON encoded strings.
      * 
* * repeated string args = 6; + * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs( - java.lang.String value) { + public Builder addArgs(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); + throw new NullPointerException(); + } + ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** + * + * *
      * Process arguments as JSON encoded strings.
      * 
* * repeated string args = 6; + * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs( - java.lang.Iterable values) { + public Builder addAllArgs(java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); onChanged(); return this; } /** + * + * *
      * Process arguments as JSON encoded strings.
      * 
* * repeated string args = 6; + * * @return This builder for chaining. */ public Builder clearArgs() { @@ -1830,33 +2032,38 @@ public Builder clearArgs() { return this; } /** + * + * *
      * Process arguments as JSON encoded strings.
      * 
* * repeated string args = 6; + * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes( - com.google.protobuf.ByteString value) { + public Builder addArgsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } - private boolean argumentsTruncated_ ; + private boolean argumentsTruncated_; /** + * + * *
      * True if `args` is incomplete.
      * 
* * bool arguments_truncated = 7; + * * @return The argumentsTruncated. */ @java.lang.Override @@ -1864,55 +2071,70 @@ public boolean getArgumentsTruncated() { return argumentsTruncated_; } /** + * + * *
      * True if `args` is incomplete.
      * 
* * bool arguments_truncated = 7; + * * @param value The argumentsTruncated to set. * @return This builder for chaining. */ public Builder setArgumentsTruncated(boolean value) { - + argumentsTruncated_ = value; onChanged(); return this; } /** + * + * *
      * True if `args` is incomplete.
      * 
* * bool arguments_truncated = 7; + * * @return This builder for chaining. */ public Builder clearArgumentsTruncated() { - + argumentsTruncated_ = false; onChanged(); return this; } private java.util.List envVariables_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureEnvVariablesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - envVariables_ = new java.util.ArrayList(envVariables_); + envVariables_ = + new java.util.ArrayList( + envVariables_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.EnvironmentVariable, com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder, com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder> envVariablesBuilder_; + com.google.cloud.securitycenter.v1.EnvironmentVariable, + com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder, + com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder> + envVariablesBuilder_; /** + * + * *
      * Process environment variables.
      * 
* * repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8; */ - public java.util.List getEnvVariablesList() { + public java.util.List + getEnvVariablesList() { if (envVariablesBuilder_ == null) { return java.util.Collections.unmodifiableList(envVariables_); } else { @@ -1920,6 +2142,8 @@ public java.util.List ge } } /** + * + * *
      * Process environment variables.
      * 
@@ -1934,6 +2158,8 @@ public int getEnvVariablesCount() { } } /** + * + * *
      * Process environment variables.
      * 
@@ -1948,6 +2174,8 @@ public com.google.cloud.securitycenter.v1.EnvironmentVariable getEnvVariables(in } } /** + * + * *
      * Process environment variables.
      * 
@@ -1969,6 +2197,8 @@ public Builder setEnvVariables( return this; } /** + * + * *
      * Process environment variables.
      * 
@@ -1987,6 +2217,8 @@ public Builder setEnvVariables( return this; } /** + * + * *
      * Process environment variables.
      * 
@@ -2007,6 +2239,8 @@ public Builder addEnvVariables(com.google.cloud.securitycenter.v1.EnvironmentVar return this; } /** + * + * *
      * Process environment variables.
      * 
@@ -2028,6 +2262,8 @@ public Builder addEnvVariables( return this; } /** + * + * *
      * Process environment variables.
      * 
@@ -2046,6 +2282,8 @@ public Builder addEnvVariables( return this; } /** + * + * *
      * Process environment variables.
      * 
@@ -2064,6 +2302,8 @@ public Builder addEnvVariables( return this; } /** + * + * *
      * Process environment variables.
      * 
@@ -2071,11 +2311,11 @@ public Builder addEnvVariables( * repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8; */ public Builder addAllEnvVariables( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (envVariablesBuilder_ == null) { ensureEnvVariablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, envVariables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, envVariables_); onChanged(); } else { envVariablesBuilder_.addAllMessages(values); @@ -2083,6 +2323,8 @@ public Builder addAllEnvVariables( return this; } /** + * + * *
      * Process environment variables.
      * 
@@ -2100,6 +2342,8 @@ public Builder clearEnvVariables() { return this; } /** + * + * *
      * Process environment variables.
      * 
@@ -2117,6 +2361,8 @@ public Builder removeEnvVariables(int index) { return this; } /** + * + * *
      * Process environment variables.
      * 
@@ -2128,6 +2374,8 @@ public com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder getEnvVari return getEnvVariablesFieldBuilder().getBuilder(index); } /** + * + * *
      * Process environment variables.
      * 
@@ -2137,19 +2385,22 @@ public com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder getEnvVari public com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder getEnvVariablesOrBuilder( int index) { if (envVariablesBuilder_ == null) { - return envVariables_.get(index); } else { + return envVariables_.get(index); + } else { return envVariablesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Process environment variables.
      * 
* * repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8; */ - public java.util.List - getEnvVariablesOrBuilderList() { + public java.util.List + getEnvVariablesOrBuilderList() { if (envVariablesBuilder_ != null) { return envVariablesBuilder_.getMessageOrBuilderList(); } else { @@ -2157,6 +2408,8 @@ public com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder getEnvVar } } /** + * + * *
      * Process environment variables.
      * 
@@ -2164,10 +2417,12 @@ public com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder getEnvVar * repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8; */ public com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder addEnvVariablesBuilder() { - return getEnvVariablesFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1.EnvironmentVariable.getDefaultInstance()); + return getEnvVariablesFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1.EnvironmentVariable.getDefaultInstance()); } /** + * + * *
      * Process environment variables.
      * 
@@ -2176,42 +2431,51 @@ public com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder addEnvVari */ public com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder addEnvVariablesBuilder( int index) { - return getEnvVariablesFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1.EnvironmentVariable.getDefaultInstance()); + return getEnvVariablesFieldBuilder() + .addBuilder( + index, com.google.cloud.securitycenter.v1.EnvironmentVariable.getDefaultInstance()); } /** + * + * *
      * Process environment variables.
      * 
* * repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8; */ - public java.util.List - getEnvVariablesBuilderList() { + public java.util.List + getEnvVariablesBuilderList() { return getEnvVariablesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.EnvironmentVariable, com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder, com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder> + com.google.cloud.securitycenter.v1.EnvironmentVariable, + com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder, + com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder> getEnvVariablesFieldBuilder() { if (envVariablesBuilder_ == null) { - envVariablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.EnvironmentVariable, com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder, com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder>( - envVariables_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + envVariablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.EnvironmentVariable, + com.google.cloud.securitycenter.v1.EnvironmentVariable.Builder, + com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder>( + envVariables_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); envVariables_ = null; } return envVariablesBuilder_; } - private boolean envVariablesTruncated_ ; + private boolean envVariablesTruncated_; /** + * + * *
      * True if `env_variables` is incomplete.
      * 
* * bool env_variables_truncated = 9; + * * @return The envVariablesTruncated. */ @java.lang.Override @@ -2219,42 +2483,51 @@ public boolean getEnvVariablesTruncated() { return envVariablesTruncated_; } /** + * + * *
      * True if `env_variables` is incomplete.
      * 
* * bool env_variables_truncated = 9; + * * @param value The envVariablesTruncated to set. * @return This builder for chaining. */ public Builder setEnvVariablesTruncated(boolean value) { - + envVariablesTruncated_ = value; onChanged(); return this; } /** + * + * *
      * True if `env_variables` is incomplete.
      * 
* * bool env_variables_truncated = 9; + * * @return This builder for chaining. */ public Builder clearEnvVariablesTruncated() { - + envVariablesTruncated_ = false; onChanged(); return this; } - private long pid_ ; + private long pid_; /** + * + * *
      * The process id.
      * 
* * int64 pid = 10; + * * @return The pid. */ @java.lang.Override @@ -2262,42 +2535,51 @@ public long getPid() { return pid_; } /** + * + * *
      * The process id.
      * 
* * int64 pid = 10; + * * @param value The pid to set. * @return This builder for chaining. */ public Builder setPid(long value) { - + pid_ = value; onChanged(); return this; } /** + * + * *
      * The process id.
      * 
* * int64 pid = 10; + * * @return This builder for chaining. */ public Builder clearPid() { - + pid_ = 0L; onChanged(); return this; } - private long parentPid_ ; + private long parentPid_; /** + * + * *
      * The parent process id.
      * 
* * int64 parent_pid = 11; + * * @return The parentPid. */ @java.lang.Override @@ -2305,37 +2587,43 @@ public long getParentPid() { return parentPid_; } /** + * + * *
      * The parent process id.
      * 
* * int64 parent_pid = 11; + * * @param value The parentPid to set. * @return This builder for chaining. */ public Builder setParentPid(long value) { - + parentPid_ = value; onChanged(); return this; } /** + * + * *
      * The parent process id.
      * 
* * int64 parent_pid = 11; + * * @return This builder for chaining. */ public Builder clearParentPid() { - + parentPid_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2345,12 +2633,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Process) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Process) private static final com.google.cloud.securitycenter.v1.Process DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Process(); } @@ -2359,16 +2647,16 @@ public static com.google.cloud.securitycenter.v1.Process getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Process parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Process(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Process parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Process(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2383,6 +2671,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Process getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessOrBuilder.java similarity index 83% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessOrBuilder.java index 2314f8b8b..00904a14f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/process.proto package com.google.cloud.securitycenter.v1; -public interface ProcessOrBuilder extends +public interface ProcessOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Process) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * File information for the process executable.
    * 
* * .google.cloud.securitycenter.v1.File binary = 3; + * * @return Whether the binary field is set. */ boolean hasBinary(); /** + * + * *
    * File information for the process executable.
    * 
* * .google.cloud.securitycenter.v1.File binary = 3; + * * @return The binary. */ com.google.cloud.securitycenter.v1.File getBinary(); /** + * + * *
    * File information for the process executable.
    * 
@@ -35,15 +59,18 @@ public interface ProcessOrBuilder extends com.google.cloud.securitycenter.v1.FileOrBuilder getBinaryOrBuilder(); /** + * + * *
    * File information for libraries loaded by the process.
    * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - java.util.List - getLibrariesList(); + java.util.List getLibrariesList(); /** + * + * *
    * File information for libraries loaded by the process.
    * 
@@ -52,6 +79,8 @@ public interface ProcessOrBuilder extends */ com.google.cloud.securitycenter.v1.File getLibraries(int index); /** + * + * *
    * File information for libraries loaded by the process.
    * 
@@ -60,25 +89,30 @@ public interface ProcessOrBuilder extends */ int getLibrariesCount(); /** + * + * *
    * File information for libraries loaded by the process.
    * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - java.util.List + java.util.List getLibrariesOrBuilderList(); /** + * + * *
    * File information for libraries loaded by the process.
    * 
* * repeated .google.cloud.securitycenter.v1.File libraries = 4; */ - com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder( - int index); + com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder(int index); /** + * + * *
    * When the process represents the invocation of a script,
    * `binary` provides information about the interpreter while `script`
@@ -87,10 +121,13 @@ com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder(
    * 
* * .google.cloud.securitycenter.v1.File script = 5; + * * @return Whether the script field is set. */ boolean hasScript(); /** + * + * *
    * When the process represents the invocation of a script,
    * `binary` provides information about the interpreter while `script`
@@ -99,10 +136,13 @@ com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder(
    * 
* * .google.cloud.securitycenter.v1.File script = 5; + * * @return The script. */ com.google.cloud.securitycenter.v1.File getScript(); /** + * + * *
    * When the process represents the invocation of a script,
    * `binary` provides information about the interpreter while `script`
@@ -115,66 +155,82 @@ com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder(
   com.google.cloud.securitycenter.v1.FileOrBuilder getScriptOrBuilder();
 
   /**
+   *
+   *
    * 
    * Process arguments as JSON encoded strings.
    * 
* * repeated string args = 6; + * * @return A list containing the args. */ - java.util.List - getArgsList(); + java.util.List getArgsList(); /** + * + * *
    * Process arguments as JSON encoded strings.
    * 
* * repeated string args = 6; + * * @return The count of args. */ int getArgsCount(); /** + * + * *
    * Process arguments as JSON encoded strings.
    * 
* * repeated string args = 6; + * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** + * + * *
    * Process arguments as JSON encoded strings.
    * 
* * repeated string args = 6; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString - getArgsBytes(int index); + com.google.protobuf.ByteString getArgsBytes(int index); /** + * + * *
    * True if `args` is incomplete.
    * 
* * bool arguments_truncated = 7; + * * @return The argumentsTruncated. */ boolean getArgumentsTruncated(); /** + * + * *
    * Process environment variables.
    * 
* * repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8; */ - java.util.List - getEnvVariablesList(); + java.util.List getEnvVariablesList(); /** + * + * *
    * Process environment variables.
    * 
@@ -183,6 +239,8 @@ com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder( */ com.google.cloud.securitycenter.v1.EnvironmentVariable getEnvVariables(int index); /** + * + * *
    * Process environment variables.
    * 
@@ -191,15 +249,19 @@ com.google.cloud.securitycenter.v1.FileOrBuilder getLibrariesOrBuilder( */ int getEnvVariablesCount(); /** + * + * *
    * Process environment variables.
    * 
* * repeated .google.cloud.securitycenter.v1.EnvironmentVariable env_variables = 8; */ - java.util.List + java.util.List getEnvVariablesOrBuilderList(); /** + * + * *
    * Process environment variables.
    * 
@@ -210,31 +272,40 @@ com.google.cloud.securitycenter.v1.EnvironmentVariableOrBuilder getEnvVariablesO int index); /** + * + * *
    * True if `env_variables` is incomplete.
    * 
* * bool env_variables_truncated = 9; + * * @return The envVariablesTruncated. */ boolean getEnvVariablesTruncated(); /** + * + * *
    * The process id.
    * 
* * int64 pid = 10; + * * @return The pid. */ long getPid(); /** + * + * *
    * The parent process id.
    * 
* * int64 parent_pid = 11; + * * @return The parentPid. */ long getParentPid(); diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessProto.java new file mode 100644 index 000000000..342b225b8 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProcessProto.java @@ -0,0 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/process.proto + +package com.google.cloud.securitycenter.v1; + +public final class ProcessProto { + private ProcessProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Process_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Process_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/securitycenter/v1/process" + + ".proto\022\036google.cloud.securitycenter.v1\032)" + + "google/cloud/securitycenter/v1/file.prot" + + "o\"\347\002\n\007Process\0224\n\006binary\030\003 \001(\0132$.google.c" + + "loud.securitycenter.v1.File\0227\n\tlibraries" + + "\030\004 \003(\0132$.google.cloud.securitycenter.v1." + + "File\0224\n\006script\030\005 \001(\0132$.google.cloud.secu" + + "ritycenter.v1.File\022\014\n\004args\030\006 \003(\t\022\033\n\023argu" + + "ments_truncated\030\007 \001(\010\022J\n\renv_variables\030\010" + + " \003(\01323.google.cloud.securitycenter.v1.En" + + "vironmentVariable\022\037\n\027env_variables_trunc" + + "ated\030\t \001(\010\022\013\n\003pid\030\n \001(\003\022\022\n\nparent_pid\030\013 " + + "\001(\003\"0\n\023EnvironmentVariable\022\014\n\004name\030\001 \001(\t" + + "\022\013\n\003val\030\002 \001(\tB\350\001\n\"com.google.cloud.secur" + + "itycenter.v1B\014ProcessProtoP\001ZLgoogle.gol" + + "ang.org/genproto/googleapis/cloud/securi" + + "tycenter/v1;securitycenter\252\002\036Google.Clou" + + "d.SecurityCenter.V1\312\002\036Google\\Cloud\\Secur" + + "ityCenter\\V1\352\002!Google::Cloud::SecurityCe" + + "nter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.securitycenter.v1.FileProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_Process_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Process_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Process_descriptor, + new java.lang.String[] { + "Binary", + "Libraries", + "Script", + "Args", + "ArgumentsTruncated", + "EnvVariables", + "EnvVariablesTruncated", + "Pid", + "ParentPid", + }); + internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_EnvironmentVariable_descriptor, + new java.lang.String[] { + "Name", "Val", + }); + com.google.cloud.securitycenter.v1.FileProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProjectName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProjectName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProjectName.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ProjectName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Reference.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Reference.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Reference.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Reference.java index 219124e77..d925c90fa 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Reference.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Reference.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/vulnerability.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Additional Links
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Reference} */ -public final class Reference extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Reference extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Reference) ReferenceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Reference.newBuilder() to construct. private Reference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Reference() { source_ = ""; uri_ = ""; @@ -26,16 +44,15 @@ private Reference() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Reference(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Reference( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private Reference( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - source_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + source_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + uri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,39 @@ private Reference( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Reference_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.VulnerabilityProto + .internal_static_google_cloud_securitycenter_v1_Reference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Reference_fieldAccessorTable + return com.google.cloud.securitycenter.v1.VulnerabilityProto + .internal_static_google_cloud_securitycenter_v1_Reference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Reference.class, com.google.cloud.securitycenter.v1.Reference.Builder.class); + com.google.cloud.securitycenter.v1.Reference.class, + com.google.cloud.securitycenter.v1.Reference.Builder.class); } public static final int SOURCE_FIELD_NUMBER = 1; private volatile java.lang.Object source_; /** + * + * *
    * Source of the reference e.g. NVD
    * 
* * string source = 1; + * * @return The source. */ @java.lang.Override @@ -116,29 +140,29 @@ public java.lang.String getSource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; } } /** + * + * *
    * Source of the reference e.g. NVD
    * 
* * string source = 1; + * * @return The bytes for source. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceBytes() { + public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); source_ = b; return b; } else { @@ -149,12 +173,15 @@ public java.lang.String getSource() { public static final int URI_FIELD_NUMBER = 2; private volatile java.lang.Object uri_; /** + * + * *
    * Uri for the mentioned source e.g.
    * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
    * 
* * string uri = 2; + * * @return The uri. */ @java.lang.Override @@ -163,30 +190,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * Uri for the mentioned source e.g.
    * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
    * 
* * string uri = 2; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -195,6 +222,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +234,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_); } @@ -237,17 +264,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Reference)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Reference other = (com.google.cloud.securitycenter.v1.Reference) obj; + com.google.cloud.securitycenter.v1.Reference other = + (com.google.cloud.securitycenter.v1.Reference) obj; - if (!getSource() - .equals(other.getSource())) return false; - if (!getUri() - .equals(other.getUri())) return false; + if (!getSource().equals(other.getSource())) return false; + if (!getUri().equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -268,118 +294,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Reference parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Reference parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Reference parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Reference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Reference parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Reference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Reference parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Reference parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Reference parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Reference parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.Reference parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Reference parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Reference parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Reference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.Reference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Additional Links
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Reference} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Reference) com.google.cloud.securitycenter.v1.ReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Reference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.VulnerabilityProto + .internal_static_google_cloud_securitycenter_v1_Reference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Reference_fieldAccessorTable + return com.google.cloud.securitycenter.v1.VulnerabilityProto + .internal_static_google_cloud_securitycenter_v1_Reference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Reference.class, com.google.cloud.securitycenter.v1.Reference.Builder.class); + com.google.cloud.securitycenter.v1.Reference.class, + com.google.cloud.securitycenter.v1.Reference.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.Reference.newBuilder() @@ -387,16 +422,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +442,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Reference_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.VulnerabilityProto + .internal_static_google_cloud_securitycenter_v1_Reference_descriptor; } @java.lang.Override @@ -429,7 +463,8 @@ public com.google.cloud.securitycenter.v1.Reference build() { @java.lang.Override public com.google.cloud.securitycenter.v1.Reference buildPartial() { - com.google.cloud.securitycenter.v1.Reference result = new com.google.cloud.securitycenter.v1.Reference(this); + com.google.cloud.securitycenter.v1.Reference result = + new com.google.cloud.securitycenter.v1.Reference(this); result.source_ = source_; result.uri_ = uri_; onBuilt(); @@ -440,38 +475,39 @@ public com.google.cloud.securitycenter.v1.Reference buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.Reference) { - return mergeFrom((com.google.cloud.securitycenter.v1.Reference)other); + return mergeFrom((com.google.cloud.securitycenter.v1.Reference) other); } else { super.mergeFrom(other); return this; @@ -519,18 +555,20 @@ public Builder mergeFrom( private java.lang.Object source_ = ""; /** + * + * *
      * Source of the reference e.g. NVD
      * 
* * string source = 1; + * * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); source_ = s; return s; @@ -539,20 +577,21 @@ public java.lang.String getSource() { } } /** + * + * *
      * Source of the reference e.g. NVD
      * 
* * string source = 1; + * * @return The bytes for source. */ - public com.google.protobuf.ByteString - getSourceBytes() { + public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); source_ = b; return b; } else { @@ -560,54 +599,61 @@ public java.lang.String getSource() { } } /** + * + * *
      * Source of the reference e.g. NVD
      * 
* * string source = 1; + * * @param value The source to set. * @return This builder for chaining. */ - public Builder setSource( - java.lang.String value) { + public Builder setSource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + source_ = value; onChanged(); return this; } /** + * + * *
      * Source of the reference e.g. NVD
      * 
* * string source = 1; + * * @return This builder for chaining. */ public Builder clearSource() { - + source_ = getDefaultInstance().getSource(); onChanged(); return this; } /** + * + * *
      * Source of the reference e.g. NVD
      * 
* * string source = 1; + * * @param value The bytes for source to set. * @return This builder for chaining. */ - public Builder setSourceBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; onChanged(); return this; @@ -615,19 +661,21 @@ public Builder setSourceBytes( private java.lang.Object uri_ = ""; /** + * + * *
      * Uri for the mentioned source e.g.
      * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
      * 
* * string uri = 2; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -636,21 +684,22 @@ public java.lang.String getUri() { } } /** + * + * *
      * Uri for the mentioned source e.g.
      * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
      * 
* * string uri = 2; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -658,64 +707,71 @@ public java.lang.String getUri() { } } /** + * + * *
      * Uri for the mentioned source e.g.
      * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
      * 
* * string uri = 2; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Uri for the mentioned source e.g.
      * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
      * 
* * string uri = 2; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Uri for the mentioned source e.g.
      * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
      * 
* * string uri = 2; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -725,12 +781,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Reference) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Reference) private static final com.google.cloud.securitycenter.v1.Reference DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Reference(); } @@ -739,16 +795,16 @@ public static com.google.cloud.securitycenter.v1.Reference getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Reference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Reference(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Reference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Reference(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -763,6 +819,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Reference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ReferenceOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ReferenceOrBuilder.java similarity index 57% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ReferenceOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ReferenceOrBuilder.java index a90d5bbcd..312f166af 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ReferenceOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ReferenceOrBuilder.java @@ -1,51 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/vulnerability.proto package com.google.cloud.securitycenter.v1; -public interface ReferenceOrBuilder extends +public interface ReferenceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Reference) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Source of the reference e.g. NVD
    * 
* * string source = 1; + * * @return The source. */ java.lang.String getSource(); /** + * + * *
    * Source of the reference e.g. NVD
    * 
* * string source = 1; + * * @return The bytes for source. */ - com.google.protobuf.ByteString - getSourceBytes(); + com.google.protobuf.ByteString getSourceBytes(); /** + * + * *
    * Uri for the mentioned source e.g.
    * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
    * 
* * string uri = 2; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Uri for the mentioned source e.g.
    * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
    * 
* * string uri = 2; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java index 3cf3bd6e9..02c50d5a6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/resource.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Information related to the Google Cloud resource.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Resource} */ -public final class Resource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Resource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Resource) ResourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Resource() { name_ = ""; displayName_ = ""; @@ -32,16 +50,15 @@ private Resource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Resource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Resource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -61,64 +78,73 @@ private Resource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - project_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + project_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - projectDisplayName_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + projectDisplayName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - parentDisplayName_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + parentDisplayName_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - type_ = s; - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - folders_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + type_ = s; + break; } - folders_.add( - input.readMessage(com.google.cloud.securitycenter.v1.Folder.parser(), extensionRegistry)); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + case 58: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + folders_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + folders_.add( + input.readMessage( + com.google.cloud.securitycenter.v1.Folder.parser(), extensionRegistry)); + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + displayName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -126,8 +152,7 @@ private Resource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { folders_ = java.util.Collections.unmodifiableList(folders_); @@ -136,28 +161,34 @@ private Resource( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.ResourceProto.internal_static_google_cloud_securitycenter_v1_Resource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.ResourceProto + .internal_static_google_cloud_securitycenter_v1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ResourceProto.internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable + return com.google.cloud.securitycenter.v1.ResourceProto + .internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Resource.class, com.google.cloud.securitycenter.v1.Resource.Builder.class); + com.google.cloud.securitycenter.v1.Resource.class, + com.google.cloud.securitycenter.v1.Resource.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The full resource name of the resource. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -166,30 +197,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The full resource name of the resource. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -200,11 +231,14 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 8; private volatile java.lang.Object displayName_; /** + * + * *
    * The human readable name of the resource.
    * 
* * string display_name = 8; + * * @return The displayName. */ @java.lang.Override @@ -213,29 +247,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * The human readable name of the resource.
    * 
* * string display_name = 8; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -246,11 +280,14 @@ public java.lang.String getDisplayName() { public static final int TYPE_FIELD_NUMBER = 6; private volatile java.lang.Object type_; /** + * + * *
    * The full resource type of the resource.
    * 
* * string type = 6; + * * @return The type. */ @java.lang.Override @@ -259,29 +296,29 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
    * The full resource type of the resource.
    * 
* * string type = 6; + * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -292,11 +329,14 @@ public java.lang.String getType() { public static final int PROJECT_FIELD_NUMBER = 2; private volatile java.lang.Object project_; /** + * + * *
    * The full resource name of project that the resource belongs to.
    * 
* * string project = 2; + * * @return The project. */ @java.lang.Override @@ -305,29 +345,29 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** + * + * *
    * The full resource name of project that the resource belongs to.
    * 
* * string project = 2; + * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -338,11 +378,14 @@ public java.lang.String getProject() { public static final int PROJECT_DISPLAY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object projectDisplayName_; /** + * + * *
    * The project ID that the resource belongs to.
    * 
* * string project_display_name = 3; + * * @return The projectDisplayName. */ @java.lang.Override @@ -351,29 +394,29 @@ public java.lang.String getProjectDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectDisplayName_ = s; return s; } } /** + * + * *
    * The project ID that the resource belongs to.
    * 
* * string project_display_name = 3; + * * @return The bytes for projectDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectDisplayNameBytes() { + public com.google.protobuf.ByteString getProjectDisplayNameBytes() { java.lang.Object ref = projectDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectDisplayName_ = b; return b; } else { @@ -384,11 +427,14 @@ public java.lang.String getProjectDisplayName() { public static final int PARENT_FIELD_NUMBER = 4; private volatile java.lang.Object parent_; /** + * + * *
    * The full resource name of resource's parent.
    * 
* * string parent = 4; + * * @return The parent. */ @java.lang.Override @@ -397,29 +443,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * The full resource name of resource's parent.
    * 
* * string parent = 4; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -430,11 +476,14 @@ public java.lang.String getParent() { public static final int PARENT_DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object parentDisplayName_; /** + * + * *
    * The human readable name of resource's parent.
    * 
* * string parent_display_name = 5; + * * @return The parentDisplayName. */ @java.lang.Override @@ -443,29 +492,29 @@ public java.lang.String getParentDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDisplayName_ = s; return s; } } /** + * + * *
    * The human readable name of resource's parent.
    * 
* * string parent_display_name = 5; + * * @return The bytes for parentDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentDisplayNameBytes() { + public com.google.protobuf.ByteString getParentDisplayNameBytes() { java.lang.Object ref = parentDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentDisplayName_ = b; return b; } else { @@ -476,74 +525,94 @@ public java.lang.String getParentDisplayName() { public static final int FOLDERS_FIELD_NUMBER = 7; private java.util.List folders_; /** + * + * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getFoldersList() { return folders_; } /** + * + * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getFoldersOrBuilderList() { return folders_; } /** + * + * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getFoldersCount() { return folders_.size(); } /** + * + * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1.Folder getFolders(int index) { return folders_.get(index); } /** + * + * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index) { return folders_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -555,8 +624,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -609,8 +677,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, type_); } for (int i = 0; i < folders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, folders_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, folders_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, displayName_); @@ -623,29 +690,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Resource)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Resource other = (com.google.cloud.securitycenter.v1.Resource) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getType() - .equals(other.getType())) return false; - if (!getProject() - .equals(other.getProject())) return false; - if (!getProjectDisplayName() - .equals(other.getProjectDisplayName())) return false; - if (!getParent() - .equals(other.getParent())) return false; - if (!getParentDisplayName() - .equals(other.getParentDisplayName())) return false; - if (!getFoldersList() - .equals(other.getFoldersList())) return false; + com.google.cloud.securitycenter.v1.Resource other = + (com.google.cloud.securitycenter.v1.Resource) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getType().equals(other.getType())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getProjectDisplayName().equals(other.getProjectDisplayName())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getParentDisplayName().equals(other.getParentDisplayName())) return false; + if (!getFoldersList().equals(other.getFoldersList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -680,118 +740,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Resource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Resource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Resource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Resource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Resource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Resource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Resource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Resource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Resource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Resource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.Resource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Resource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Resource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Resource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.Resource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information related to the Google Cloud resource.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Resource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Resource) com.google.cloud.securitycenter.v1.ResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.ResourceProto.internal_static_google_cloud_securitycenter_v1_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.ResourceProto + .internal_static_google_cloud_securitycenter_v1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ResourceProto.internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable + return com.google.cloud.securitycenter.v1.ResourceProto + .internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Resource.class, com.google.cloud.securitycenter.v1.Resource.Builder.class); + com.google.cloud.securitycenter.v1.Resource.class, + com.google.cloud.securitycenter.v1.Resource.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.Resource.newBuilder() @@ -799,17 +868,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFoldersFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -837,9 +906,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.ResourceProto.internal_static_google_cloud_securitycenter_v1_Resource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.ResourceProto + .internal_static_google_cloud_securitycenter_v1_Resource_descriptor; } @java.lang.Override @@ -858,7 +927,8 @@ public com.google.cloud.securitycenter.v1.Resource build() { @java.lang.Override public com.google.cloud.securitycenter.v1.Resource buildPartial() { - com.google.cloud.securitycenter.v1.Resource result = new com.google.cloud.securitycenter.v1.Resource(this); + com.google.cloud.securitycenter.v1.Resource result = + new com.google.cloud.securitycenter.v1.Resource(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -884,38 +954,39 @@ public com.google.cloud.securitycenter.v1.Resource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.Resource) { - return mergeFrom((com.google.cloud.securitycenter.v1.Resource)other); + return mergeFrom((com.google.cloud.securitycenter.v1.Resource) other); } else { super.mergeFrom(other); return this; @@ -970,9 +1041,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Resource other) { foldersBuilder_ = null; folders_ = other.folders_; bitField0_ = (bitField0_ & ~0x00000001); - foldersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFoldersFieldBuilder() : null; + foldersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFoldersFieldBuilder() + : null; } else { foldersBuilder_.addAllMessages(other.folders_); } @@ -1006,23 +1078,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The full resource name of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1031,21 +1106,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The full resource name of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1053,57 +1129,64 @@ public java.lang.String getName() { } } /** + * + * *
      * The full resource name of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The full resource name of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The full resource name of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1111,18 +1194,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * The human readable name of the resource.
      * 
* * string display_name = 8; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1131,20 +1216,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The human readable name of the resource.
      * 
* * string display_name = 8; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1152,54 +1238,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The human readable name of the resource.
      * 
* * string display_name = 8; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * The human readable name of the resource.
      * 
* * string display_name = 8; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * The human readable name of the resource.
      * 
* * string display_name = 8; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1207,18 +1300,20 @@ public Builder setDisplayNameBytes( private java.lang.Object type_ = ""; /** + * + * *
      * The full resource type of the resource.
      * 
* * string type = 6; + * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -1227,20 +1322,21 @@ public java.lang.String getType() { } } /** + * + * *
      * The full resource type of the resource.
      * 
* * string type = 6; + * * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -1248,54 +1344,61 @@ public java.lang.String getType() { } } /** + * + * *
      * The full resource type of the resource.
      * 
* * string type = 6; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
      * The full resource type of the resource.
      * 
* * string type = 6; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
      * The full resource type of the resource.
      * 
* * string type = 6; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; @@ -1303,18 +1406,20 @@ public Builder setTypeBytes( private java.lang.Object project_ = ""; /** + * + * *
      * The full resource name of project that the resource belongs to.
      * 
* * string project = 2; + * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -1323,20 +1428,21 @@ public java.lang.String getProject() { } } /** + * + * *
      * The full resource name of project that the resource belongs to.
      * 
* * string project = 2; + * * @return The bytes for project. */ - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -1344,54 +1450,61 @@ public java.lang.String getProject() { } } /** + * + * *
      * The full resource name of project that the resource belongs to.
      * 
* * string project = 2; + * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject( - java.lang.String value) { + public Builder setProject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** + * + * *
      * The full resource name of project that the resource belongs to.
      * 
* * string project = 2; + * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** + * + * *
      * The full resource name of project that the resource belongs to.
      * 
* * string project = 2; + * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; @@ -1399,18 +1512,20 @@ public Builder setProjectBytes( private java.lang.Object projectDisplayName_ = ""; /** + * + * *
      * The project ID that the resource belongs to.
      * 
* * string project_display_name = 3; + * * @return The projectDisplayName. */ public java.lang.String getProjectDisplayName() { java.lang.Object ref = projectDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectDisplayName_ = s; return s; @@ -1419,20 +1534,21 @@ public java.lang.String getProjectDisplayName() { } } /** + * + * *
      * The project ID that the resource belongs to.
      * 
* * string project_display_name = 3; + * * @return The bytes for projectDisplayName. */ - public com.google.protobuf.ByteString - getProjectDisplayNameBytes() { + public com.google.protobuf.ByteString getProjectDisplayNameBytes() { java.lang.Object ref = projectDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectDisplayName_ = b; return b; } else { @@ -1440,54 +1556,61 @@ public java.lang.String getProjectDisplayName() { } } /** + * + * *
      * The project ID that the resource belongs to.
      * 
* * string project_display_name = 3; + * * @param value The projectDisplayName to set. * @return This builder for chaining. */ - public Builder setProjectDisplayName( - java.lang.String value) { + public Builder setProjectDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectDisplayName_ = value; onChanged(); return this; } /** + * + * *
      * The project ID that the resource belongs to.
      * 
* * string project_display_name = 3; + * * @return This builder for chaining. */ public Builder clearProjectDisplayName() { - + projectDisplayName_ = getDefaultInstance().getProjectDisplayName(); onChanged(); return this; } /** + * + * *
      * The project ID that the resource belongs to.
      * 
* * string project_display_name = 3; + * * @param value The bytes for projectDisplayName to set. * @return This builder for chaining. */ - public Builder setProjectDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectDisplayName_ = value; onChanged(); return this; @@ -1495,18 +1618,20 @@ public Builder setProjectDisplayNameBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * The full resource name of resource's parent.
      * 
* * string parent = 4; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1515,20 +1640,21 @@ public java.lang.String getParent() { } } /** + * + * *
      * The full resource name of resource's parent.
      * 
* * string parent = 4; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1536,54 +1662,61 @@ public java.lang.String getParent() { } } /** + * + * *
      * The full resource name of resource's parent.
      * 
* * string parent = 4; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * The full resource name of resource's parent.
      * 
* * string parent = 4; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * The full resource name of resource's parent.
      * 
* * string parent = 4; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1591,18 +1724,20 @@ public Builder setParentBytes( private java.lang.Object parentDisplayName_ = ""; /** + * + * *
      * The human readable name of resource's parent.
      * 
* * string parent_display_name = 5; + * * @return The parentDisplayName. */ public java.lang.String getParentDisplayName() { java.lang.Object ref = parentDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDisplayName_ = s; return s; @@ -1611,20 +1746,21 @@ public java.lang.String getParentDisplayName() { } } /** + * + * *
      * The human readable name of resource's parent.
      * 
* * string parent_display_name = 5; + * * @return The bytes for parentDisplayName. */ - public com.google.protobuf.ByteString - getParentDisplayNameBytes() { + public com.google.protobuf.ByteString getParentDisplayNameBytes() { java.lang.Object ref = parentDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentDisplayName_ = b; return b; } else { @@ -1632,79 +1768,94 @@ public java.lang.String getParentDisplayName() { } } /** + * + * *
      * The human readable name of resource's parent.
      * 
* * string parent_display_name = 5; + * * @param value The parentDisplayName to set. * @return This builder for chaining. */ - public Builder setParentDisplayName( - java.lang.String value) { + public Builder setParentDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parentDisplayName_ = value; onChanged(); return this; } /** + * + * *
      * The human readable name of resource's parent.
      * 
* * string parent_display_name = 5; + * * @return This builder for chaining. */ public Builder clearParentDisplayName() { - + parentDisplayName_ = getDefaultInstance().getParentDisplayName(); onChanged(); return this; } /** + * + * *
      * The human readable name of resource's parent.
      * 
* * string parent_display_name = 5; + * * @param value The bytes for parentDisplayName to set. * @return This builder for chaining. */ - public Builder setParentDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setParentDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentDisplayName_ = value; onChanged(); return this; } private java.util.List folders_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { folders_ = new java.util.ArrayList(folders_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder> foldersBuilder_; + com.google.cloud.securitycenter.v1.Folder, + com.google.cloud.securitycenter.v1.Folder.Builder, + com.google.cloud.securitycenter.v1.FolderOrBuilder> + foldersBuilder_; /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getFoldersList() { if (foldersBuilder_ == null) { @@ -1714,13 +1865,17 @@ public java.util.List getFoldersList( } } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getFoldersCount() { if (foldersBuilder_ == null) { @@ -1730,13 +1885,17 @@ public int getFoldersCount() { } } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) { if (foldersBuilder_ == null) { @@ -1746,16 +1905,19 @@ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) { } } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setFolders( - int index, com.google.cloud.securitycenter.v1.Folder value) { + public Builder setFolders(int index, com.google.cloud.securitycenter.v1.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1769,13 +1931,17 @@ public Builder setFolders( return this; } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setFolders( int index, com.google.cloud.securitycenter.v1.Folder.Builder builderForValue) { @@ -1789,13 +1955,17 @@ public Builder setFolders( return this; } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addFolders(com.google.cloud.securitycenter.v1.Folder value) { if (foldersBuilder_ == null) { @@ -1811,16 +1981,19 @@ public Builder addFolders(com.google.cloud.securitycenter.v1.Folder value) { return this; } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addFolders( - int index, com.google.cloud.securitycenter.v1.Folder value) { + public Builder addFolders(int index, com.google.cloud.securitycenter.v1.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1834,16 +2007,19 @@ public Builder addFolders( return this; } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addFolders( - com.google.cloud.securitycenter.v1.Folder.Builder builderForValue) { + public Builder addFolders(com.google.cloud.securitycenter.v1.Folder.Builder builderForValue) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); folders_.add(builderForValue.build()); @@ -1854,13 +2030,17 @@ public Builder addFolders( return this; } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addFolders( int index, com.google.cloud.securitycenter.v1.Folder.Builder builderForValue) { @@ -1874,20 +2054,23 @@ public Builder addFolders( return this; } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllFolders( java.lang.Iterable values) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, folders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_); onChanged(); } else { foldersBuilder_.addAllMessages(values); @@ -1895,13 +2078,17 @@ public Builder addAllFolders( return this; } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearFolders() { if (foldersBuilder_ == null) { @@ -1914,13 +2101,17 @@ public Builder clearFolders() { return this; } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeFolders(int index) { if (foldersBuilder_ == null) { @@ -1933,45 +2124,56 @@ public Builder removeFolders(int index) { return this; } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.securitycenter.v1.Folder.Builder getFoldersBuilder( - int index) { + public com.google.cloud.securitycenter.v1.Folder.Builder getFoldersBuilder(int index) { return getFoldersFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index) { if (foldersBuilder_ == null) { - return folders_.get(index); } else { + return folders_.get(index); + } else { return foldersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getFoldersOrBuilderList() { + public java.util.List + getFoldersOrBuilderList() { if (foldersBuilder_ != null) { return foldersBuilder_.getMessageOrBuilderList(); } else { @@ -1979,62 +2181,76 @@ public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder( } } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder() { - return getFoldersFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1.Folder.getDefaultInstance()); + return getFoldersFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1.Folder.getDefaultInstance()); } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder( - int index) { - return getFoldersFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1.Folder.getDefaultInstance()); + public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder(int index) { + return getFoldersFieldBuilder() + .addBuilder(index, com.google.cloud.securitycenter.v1.Folder.getDefaultInstance()); } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getFoldersBuilderList() { + public java.util.List + getFoldersBuilderList() { return getFoldersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder> + com.google.cloud.securitycenter.v1.Folder, + com.google.cloud.securitycenter.v1.Folder.Builder, + com.google.cloud.securitycenter.v1.FolderOrBuilder> getFoldersFieldBuilder() { if (foldersBuilder_ == null) { - foldersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1.Folder, com.google.cloud.securitycenter.v1.Folder.Builder, com.google.cloud.securitycenter.v1.FolderOrBuilder>( - folders_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + foldersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.Folder, + com.google.cloud.securitycenter.v1.Folder.Builder, + com.google.cloud.securitycenter.v1.FolderOrBuilder>( + folders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); folders_ = null; } return foldersBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2044,12 +2260,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Resource) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Resource) private static final com.google.cloud.securitycenter.v1.Resource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Resource(); } @@ -2058,16 +2274,16 @@ public static com.google.cloud.securitycenter.v1.Resource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Resource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Resource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Resource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Resource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2082,6 +2298,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Resource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java index 0614493ac..012396ecf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java @@ -1,205 +1,274 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/resource.proto package com.google.cloud.securitycenter.v1; -public interface ResourceOrBuilder extends +public interface ResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Resource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The full resource name of the resource. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The full resource name of the resource. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The human readable name of the resource.
    * 
* * string display_name = 8; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The human readable name of the resource.
    * 
* * string display_name = 8; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * The full resource type of the resource.
    * 
* * string type = 6; + * * @return The type. */ java.lang.String getType(); /** + * + * *
    * The full resource type of the resource.
    * 
* * string type = 6; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
    * The full resource name of project that the resource belongs to.
    * 
* * string project = 2; + * * @return The project. */ java.lang.String getProject(); /** + * + * *
    * The full resource name of project that the resource belongs to.
    * 
* * string project = 2; + * * @return The bytes for project. */ - com.google.protobuf.ByteString - getProjectBytes(); + com.google.protobuf.ByteString getProjectBytes(); /** + * + * *
    * The project ID that the resource belongs to.
    * 
* * string project_display_name = 3; + * * @return The projectDisplayName. */ java.lang.String getProjectDisplayName(); /** + * + * *
    * The project ID that the resource belongs to.
    * 
* * string project_display_name = 3; + * * @return The bytes for projectDisplayName. */ - com.google.protobuf.ByteString - getProjectDisplayNameBytes(); + com.google.protobuf.ByteString getProjectDisplayNameBytes(); /** + * + * *
    * The full resource name of resource's parent.
    * 
* * string parent = 4; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * The full resource name of resource's parent.
    * 
* * string parent = 4; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The human readable name of resource's parent.
    * 
* * string parent_display_name = 5; + * * @return The parentDisplayName. */ java.lang.String getParentDisplayName(); /** + * + * *
    * The human readable name of resource's parent.
    * 
* * string parent_display_name = 5; + * * @return The bytes for parentDisplayName. */ - com.google.protobuf.ByteString - getParentDisplayNameBytes(); + com.google.protobuf.ByteString getParentDisplayNameBytes(); /** + * + * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getFoldersList(); + java.util.List getFoldersList(); /** + * + * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.securitycenter.v1.Folder getFolders(int index); /** + * + * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getFoldersCount(); /** + * + * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getFoldersOrBuilderList(); /** + * + * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder( - int index); + com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(int index); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java new file mode 100644 index 000000000..f6af37990 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceProto.java @@ -0,0 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/resource.proto + +package com.google.cloud.securitycenter.v1; + +public final class ResourceProto { + private ResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Resource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/securitycenter/v1/resourc" + + "e.proto\022\036google.cloud.securitycenter.v1\032" + + "\037google/api/field_behavior.proto\032+google" + + "/cloud/securitycenter/v1/folder.proto\"\326\001" + + "\n\010Resource\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name" + + "\030\010 \001(\t\022\014\n\004type\030\006 \001(\t\022\017\n\007project\030\002 \001(\t\022\034\n" + + "\024project_display_name\030\003 \001(\t\022\016\n\006parent\030\004 " + + "\001(\t\022\033\n\023parent_display_name\030\005 \001(\t\022<\n\007fold" + + "ers\030\007 \003(\0132&.google.cloud.securitycenter." + + "v1.FolderB\003\340A\003B\351\001\n\"com.google.cloud.secu" + + "ritycenter.v1B\rResourceProtoP\001ZLgoogle.g" + + "olang.org/genproto/googleapis/cloud/secu" + + "ritycenter/v1;securitycenter\252\002\036Google.Cl" + + "oud.SecurityCenter.V1\312\002\036Google\\Cloud\\Sec" + + "urityCenter\\V1\352\002!Google::Cloud::Security" + + "Center::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_Resource_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Resource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Resource_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Type", + "Project", + "ProjectDisplayName", + "Parent", + "ParentDisplayName", + "Folders", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java index 64d944653..b12029674 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for running asset discovery for an organization.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.RunAssetDiscoveryRequest} */ -public final class RunAssetDiscoveryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RunAssetDiscoveryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) RunAssetDiscoveryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RunAssetDiscoveryRequest.newBuilder() to construct. private RunAssetDiscoveryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RunAssetDiscoveryRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RunAssetDiscoveryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RunAssetDiscoveryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private RunAssetDiscoveryRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private RunAssetDiscoveryRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.class, com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.Builder.class); + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.class, + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the organization to run asset discovery for. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Name of the organization to run asset discovery for. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest other = (com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) obj; + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest other = + (com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for running asset discovery for an organization.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.RunAssetDiscoveryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.class, com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.Builder.class); + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.class, + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.newBuilder() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor; } @java.lang.Override @@ -364,7 +400,8 @@ public com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest buildPartial() { - com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest result = new com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest(this); + com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest result = + new com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -374,38 +411,39 @@ public com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest other) { - if (other == com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -437,7 +476,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +489,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -470,21 +514,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -492,64 +539,77 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +619,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) private static final com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest(); } @@ -573,16 +633,16 @@ public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunAssetDiscoveryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunAssetDiscoveryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunAssetDiscoveryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunAssetDiscoveryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +657,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java new file mode 100644 index 000000000..f1770c044 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface RunAssetDiscoveryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the organization to run asset discovery for. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Name of the organization to run asset discovery for. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java index 87d3ace86..43ba55b88 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponse.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/run_asset_discovery_response.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Response of asset discovery run
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.RunAssetDiscoveryResponse} */ -public final class RunAssetDiscoveryResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RunAssetDiscoveryResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) RunAssetDiscoveryResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RunAssetDiscoveryResponse.newBuilder() to construct. private RunAssetDiscoveryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RunAssetDiscoveryResponse() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RunAssetDiscoveryResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RunAssetDiscoveryResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,35 @@ private RunAssetDiscoveryResponse( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (duration_ != null) { - subBuilder = duration_.toBuilder(); - } - duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(duration_); - duration_ = subBuilder.buildPartial(); + state_ = rawValue; + break; } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,36 +106,41 @@ private RunAssetDiscoveryResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.class, com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.Builder.class); + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.class, + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.Builder.class); } /** + * + * *
    * The state of an asset discovery run.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Asset discovery run state was unspecified.
      * 
@@ -124,6 +149,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Asset discovery run completed successfully.
      * 
@@ -132,6 +159,8 @@ public enum State */ COMPLETED(1), /** + * + * *
      * Asset discovery run was cancelled with tasks still pending, as another
      * run for the same organization was started with a higher priority.
@@ -141,6 +170,8 @@ public enum State
      */
     SUPERSEDED(2),
     /**
+     *
+     *
      * 
      * Asset discovery run was killed and terminated.
      * 
@@ -152,6 +183,8 @@ public enum State ; /** + * + * *
      * Asset discovery run state was unspecified.
      * 
@@ -160,6 +193,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Asset discovery run completed successfully.
      * 
@@ -168,6 +203,8 @@ public enum State */ public static final int COMPLETED_VALUE = 1; /** + * + * *
      * Asset discovery run was cancelled with tasks still pending, as another
      * run for the same organization was started with a higher priority.
@@ -177,6 +214,8 @@ public enum State
      */
     public static final int SUPERSEDED_VALUE = 2;
     /**
+     *
+     *
      * 
      * Asset discovery run was killed and terminated.
      * 
@@ -185,7 +224,6 @@ public enum State */ public static final int TERMINATED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -210,50 +248,53 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return COMPLETED; - case 2: return SUPERSEDED; - case 3: return TERMINATED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return COMPLETED; + case 2: + return SUPERSEDED; + case 3: + return TERMINATED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -273,38 +314,52 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** + * + * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getState() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State result = com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.valueOf(state_); - return result == null ? com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State result = + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.UNRECOGNIZED + : result; } public static final int DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration duration_; /** + * + * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ @java.lang.Override @@ -312,11 +367,14 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ @java.lang.Override @@ -324,6 +382,8 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** + * + * *
    * The duration between asset discovery run start and end
    * 
@@ -336,6 +396,7 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,9 +408,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, state_); } if (duration_ != null) { @@ -364,13 +426,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -380,18 +442,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse other = (com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) obj; + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse other = + (com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) obj; if (state_ != other.state_) return false; if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) return false; + if (!getDuration().equals(other.getDuration())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -416,117 +478,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response of asset discovery run
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.RunAssetDiscoveryResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.class, com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.Builder.class); + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.class, + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.newBuilder() @@ -534,16 +606,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -559,13 +630,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.getDefaultInstance(); } @@ -580,7 +652,8 @@ public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse buildPartial() { - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse result = new com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse(this); + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse result = + new com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse(this); result.state_ = state_; if (durationBuilder_ == null) { result.duration_ = duration_; @@ -595,38 +668,39 @@ public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse)other); + return mergeFrom((com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) other); } else { super.mergeFrom(other); return this; @@ -634,7 +708,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse other) { - if (other == com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.getDefaultInstance()) + return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -660,7 +736,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,73 +749,93 @@ public Builder mergeFrom( private int state_ = 0; /** + * + * *
      * The state of an asset discovery run.
      * 
* * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of an asset discovery run.
      * 
* * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The state of an asset discovery run.
      * 
* * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State result = com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.valueOf(state_); - return result == null ? com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State result = + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of an asset discovery run.
      * 
* * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State value) { + public Builder setState( + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of an asset discovery run.
      * 
* * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -746,24 +843,33 @@ public Builder clearState() { private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + durationBuilder_; /** + * + * *
      * The duration between asset discovery run start and end
      * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ public boolean hasDuration() { return durationBuilder_ != null || duration_ != null; } /** + * + * *
      * The duration between asset discovery run start and end
      * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -774,6 +880,8 @@ public com.google.protobuf.Duration getDuration() { } } /** + * + * *
      * The duration between asset discovery run start and end
      * 
@@ -794,14 +902,15 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * The duration between asset discovery run start and end
      * 
* * .google.protobuf.Duration duration = 2; */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); onChanged(); @@ -812,6 +921,8 @@ public Builder setDuration( return this; } /** + * + * *
      * The duration between asset discovery run start and end
      * 
@@ -822,7 +933,7 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (duration_ != null) { duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); } else { duration_ = value; } @@ -834,6 +945,8 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * The duration between asset discovery run start and end
      * 
@@ -852,6 +965,8 @@ public Builder clearDuration() { return this; } /** + * + * *
      * The duration between asset discovery run start and end
      * 
@@ -859,11 +974,13 @@ public Builder clearDuration() { * .google.protobuf.Duration duration = 2; */ public com.google.protobuf.Duration.Builder getDurationBuilder() { - + onChanged(); return getDurationFieldBuilder().getBuilder(); } /** + * + * *
      * The duration between asset discovery run start and end
      * 
@@ -874,11 +991,12 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** + * + * *
      * The duration between asset discovery run start and end
      * 
@@ -886,21 +1004,24 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { * .google.protobuf.Duration duration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); + durationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -910,12 +1031,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) - private static final com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse(); } @@ -924,16 +1046,16 @@ public static com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunAssetDiscoveryResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunAssetDiscoveryResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunAssetDiscoveryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunAssetDiscoveryResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -948,6 +1070,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOrBuilder.java index 763ecd855..2ea9e475f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOrBuilder.java @@ -1,50 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/run_asset_discovery_response.proto package com.google.cloud.securitycenter.v1; -public interface RunAssetDiscoveryResponseOrBuilder extends +public interface RunAssetDiscoveryResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.RunAssetDiscoveryResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State state = 1; + * * @return The state. */ com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State getState(); /** + * + * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** + * + * *
    * The duration between asset discovery run start and end
    * 
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java new file mode 100644 index 000000000..ed78dc490 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryResponseOuterClass.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/run_asset_discovery_response.proto + +package com.google.cloud.securitycenter.v1; + +public final class RunAssetDiscoveryResponseOuterClass { + private RunAssetDiscoveryResponseOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nAgoogle/cloud/securitycenter/v1/run_ass" + + "et_discovery_response.proto\022\036google.clou" + + "d.securitycenter.v1\032\036google/protobuf/dur" + + "ation.proto\"\347\001\n\031RunAssetDiscoveryRespons" + + "e\022N\n\005state\030\001 \001(\0162?.google.cloud.security" + + "center.v1.RunAssetDiscoveryResponse.Stat" + + "e\022+\n\010duration\030\002 \001(\0132\031.google.protobuf.Du" + + "ration\"M\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r" + + "\n\tCOMPLETED\020\001\022\016\n\nSUPERSEDED\020\002\022\016\n\nTERMINA" + + "TED\020\003B\332\001\n\"com.google.cloud.securitycente" + + "r.v1P\001ZLgoogle.golang.org/genproto/googl" + + "eapis/cloud/securitycenter/v1;securityce" + + "nter\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036" + + "Google\\Cloud\\SecurityCenter\\V1\352\002!Google:" + + ":Cloud::SecurityCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryResponse_descriptor, + new java.lang.String[] { + "State", "Duration", + }); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java index 0335e4e01..33432547d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/security_marks.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * User specified security marks that are attached to the parent Security
  * Command Center resource. Security marks are scoped within a Security Command
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.SecurityMarks}
  */
-public final class SecurityMarks extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SecurityMarks extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.SecurityMarks)
     SecurityMarksOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SecurityMarks.newBuilder() to construct.
   private SecurityMarks(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SecurityMarks() {
     name_ = "";
     canonicalName_ = "";
@@ -29,16 +47,15 @@ private SecurityMarks() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SecurityMarks();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SecurityMarks(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,38 +75,40 @@ private SecurityMarks(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              marks_ = com.google.protobuf.MapField.newMapField(
-                  MarksDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              name_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            marks__ = input.readMessage(
-                MarksDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            marks_.getMutableMap().put(
-                marks__.getKey(), marks__.getValue());
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                marks_ =
+                    com.google.protobuf.MapField.newMapField(MarksDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry marks__ =
+                  input.readMessage(
+                      MarksDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              marks_.getMutableMap().put(marks__.getKey(), marks__.getValue());
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            canonicalName_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              canonicalName_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -97,41 +116,44 @@ private SecurityMarks(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass
+        .internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 2:
         return internalGetMarks();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass
+        .internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.SecurityMarks.class, com.google.cloud.securitycenter.v1.SecurityMarks.Builder.class);
+            com.google.cloud.securitycenter.v1.SecurityMarks.class,
+            com.google.cloud.securitycenter.v1.SecurityMarks.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -141,6 +163,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -149,14 +172,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -166,16 +190,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -184,24 +207,23 @@ public java.lang.String getName() { } public static final int MARKS_FIELD_NUMBER = 2; + private static final class MarksDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass + .internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> marks_; - private com.google.protobuf.MapField - internalGetMarks() { + + private com.google.protobuf.MapField marks_; + + private com.google.protobuf.MapField internalGetMarks() { if (marks_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MarksDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MarksDefaultEntryHolder.defaultEntry); } return marks_; } @@ -210,6 +232,8 @@ public int getMarksCount() { return internalGetMarks().getMap().size(); } /** + * + * *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -222,22 +246,22 @@ public int getMarksCount() {
    *
    * map<string, string> marks = 2;
    */
-
   @java.lang.Override
-  public boolean containsMarks(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsMarks(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetMarks().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getMarksMap()} instead.
-   */
+  /** Use {@link #getMarksMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMarks() {
     return getMarksMap();
   }
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -251,11 +275,12 @@ public java.util.Map getMarks() {
    * map<string, string> marks = 2;
    */
   @java.lang.Override
-
   public java.util.Map getMarksMap() {
     return internalGetMarks().getMap();
   }
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -269,16 +294,16 @@ public java.util.Map getMarksMap() {
    * map<string, string> marks = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getMarksOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMarks().getMap();
+  public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetMarks().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -292,12 +317,11 @@ public java.lang.String getMarksOrDefault(
    * map<string, string> marks = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getMarksOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMarks().getMap();
+  public java.lang.String getMarksOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetMarks().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -307,6 +331,8 @@ public java.lang.String getMarksOrThrow(
   public static final int CANONICAL_NAME_FIELD_NUMBER = 3;
   private volatile java.lang.Object canonicalName_;
   /**
+   *
+   *
    * 
    * The canonical name of the marks.
    * Examples:
@@ -319,6 +345,7 @@ public java.lang.String getMarksOrThrow(
    * 
* * string canonical_name = 3; + * * @return The canonicalName. */ @java.lang.Override @@ -327,14 +354,15 @@ public java.lang.String getCanonicalName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; } } /** + * + * *
    * The canonical name of the marks.
    * Examples:
@@ -347,16 +375,15 @@ public java.lang.String getCanonicalName() {
    * 
* * string canonical_name = 3; + * * @return The bytes for canonicalName. */ @java.lang.Override - public com.google.protobuf.ByteString - getCanonicalNameBytes() { + public com.google.protobuf.ByteString getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -365,6 +392,7 @@ public java.lang.String getCanonicalName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -376,17 +404,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMarks(), - MarksDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMarks(), MarksDefaultEntryHolder.defaultEntry, 2); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, canonicalName_); } @@ -402,15 +425,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - for (java.util.Map.Entry entry - : internalGetMarks().getMap().entrySet()) { - com.google.protobuf.MapEntry - marks__ = MarksDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, marks__); + for (java.util.Map.Entry entry : + internalGetMarks().getMap().entrySet()) { + com.google.protobuf.MapEntry marks__ = + MarksDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, marks__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, canonicalName_); @@ -423,19 +446,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.SecurityMarks)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.SecurityMarks other = (com.google.cloud.securitycenter.v1.SecurityMarks) obj; + com.google.cloud.securitycenter.v1.SecurityMarks other = + (com.google.cloud.securitycenter.v1.SecurityMarks) obj; - if (!getName() - .equals(other.getName())) return false; - if (!internalGetMarks().equals( - other.internalGetMarks())) return false; - if (!getCanonicalName() - .equals(other.getCanonicalName())) return false; + if (!getName().equals(other.getName())) return false; + if (!internalGetMarks().equals(other.internalGetMarks())) return false; + if (!getCanonicalName().equals(other.getCanonicalName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -460,97 +481,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.SecurityMarks parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.SecurityMarks parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.SecurityMarks parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.SecurityMarks parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.SecurityMarks prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * User specified security marks that are attached to the parent Security
    * Command Center resource. Security marks are scoped within a Security Command
@@ -560,43 +588,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.SecurityMarks}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.SecurityMarks)
       com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass
+          .internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 2:
           return internalGetMarks();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 2:
           return internalGetMutableMarks();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass
+          .internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.SecurityMarks.class, com.google.cloud.securitycenter.v1.SecurityMarks.Builder.class);
+              com.google.cloud.securitycenter.v1.SecurityMarks.class,
+              com.google.cloud.securitycenter.v1.SecurityMarks.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.SecurityMarks.newBuilder()
@@ -604,16 +632,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -626,9 +653,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.SecurityMarksOuterClass
+          .internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor;
     }
 
     @java.lang.Override
@@ -647,7 +674,8 @@ public com.google.cloud.securitycenter.v1.SecurityMarks build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.SecurityMarks buildPartial() {
-      com.google.cloud.securitycenter.v1.SecurityMarks result = new com.google.cloud.securitycenter.v1.SecurityMarks(this);
+      com.google.cloud.securitycenter.v1.SecurityMarks result =
+          new com.google.cloud.securitycenter.v1.SecurityMarks(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.marks_ = internalGetMarks();
@@ -661,38 +689,39 @@ public com.google.cloud.securitycenter.v1.SecurityMarks buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.SecurityMarks) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.SecurityMarks)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.SecurityMarks) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -700,13 +729,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1.SecurityMarks other) {
-      if (other == com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance()) return this;
+      if (other == com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
       }
-      internalGetMutableMarks().mergeFrom(
-          other.internalGetMarks());
+      internalGetMutableMarks().mergeFrom(other.internalGetMarks());
       if (!other.getCanonicalName().isEmpty()) {
         canonicalName_ = other.canonicalName_;
         onChanged();
@@ -739,10 +768,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -752,13 +784,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -767,6 +799,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -776,15 +810,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -792,6 +825,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -801,20 +836,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -824,15 +861,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -842,37 +882,36 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> marks_; - private com.google.protobuf.MapField - internalGetMarks() { + private com.google.protobuf.MapField marks_; + + private com.google.protobuf.MapField internalGetMarks() { if (marks_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MarksDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MarksDefaultEntryHolder.defaultEntry); } return marks_; } + private com.google.protobuf.MapField - internalGetMutableMarks() { - onChanged();; + internalGetMutableMarks() { + onChanged(); + ; if (marks_ == null) { - marks_ = com.google.protobuf.MapField.newMapField( - MarksDefaultEntryHolder.defaultEntry); + marks_ = com.google.protobuf.MapField.newMapField(MarksDefaultEntryHolder.defaultEntry); } if (!marks_.isMutable()) { marks_ = marks_.copy(); @@ -884,6 +923,8 @@ public int getMarksCount() { return internalGetMarks().getMap().size(); } /** + * + * *
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -896,22 +937,22 @@ public int getMarksCount() {
      *
      * map<string, string> marks = 2;
      */
-
     @java.lang.Override
-    public boolean containsMarks(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsMarks(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetMarks().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getMarksMap()} instead.
-     */
+    /** Use {@link #getMarksMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMarks() {
       return getMarksMap();
     }
     /**
+     *
+     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -925,11 +966,12 @@ public java.util.Map getMarks() {
      * map<string, string> marks = 2;
      */
     @java.lang.Override
-
     public java.util.Map getMarksMap() {
       return internalGetMarks().getMap();
     }
     /**
+     *
+     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -943,16 +985,16 @@ public java.util.Map getMarksMap() {
      * map<string, string> marks = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getMarksOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetMarks().getMap();
+    public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetMarks().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -966,12 +1008,11 @@ public java.lang.String getMarksOrDefault(
      * map<string, string> marks = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getMarksOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetMarks().getMap();
+    public java.lang.String getMarksOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetMarks().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -979,11 +1020,12 @@ public java.lang.String getMarksOrThrow(
     }
 
     public Builder clearMarks() {
-      internalGetMutableMarks().getMutableMap()
-          .clear();
+      internalGetMutableMarks().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -996,23 +1038,21 @@ public Builder clearMarks() {
      *
      * map<string, string> marks = 2;
      */
-
-    public Builder removeMarks(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableMarks().getMutableMap()
-          .remove(key);
+    public Builder removeMarks(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableMarks().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableMarks() {
+    public java.util.Map getMutableMarks() {
       return internalGetMutableMarks().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -1025,19 +1065,20 @@ public Builder removeMarks(
      *
      * map<string, string> marks = 2;
      */
-    public Builder putMarks(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putMarks(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableMarks().getMutableMap()
-          .put(key, value);
+      internalGetMutableMarks().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -1050,16 +1091,15 @@ public Builder putMarks(
      *
      * map<string, string> marks = 2;
      */
-
-    public Builder putAllMarks(
-        java.util.Map values) {
-      internalGetMutableMarks().getMutableMap()
-          .putAll(values);
+    public Builder putAllMarks(java.util.Map values) {
+      internalGetMutableMarks().getMutableMap().putAll(values);
       return this;
     }
 
     private java.lang.Object canonicalName_ = "";
     /**
+     *
+     *
      * 
      * The canonical name of the marks.
      * Examples:
@@ -1072,13 +1112,13 @@ public Builder putAllMarks(
      * 
* * string canonical_name = 3; + * * @return The canonicalName. */ public java.lang.String getCanonicalName() { java.lang.Object ref = canonicalName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; @@ -1087,6 +1127,8 @@ public java.lang.String getCanonicalName() { } } /** + * + * *
      * The canonical name of the marks.
      * Examples:
@@ -1099,15 +1141,14 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 3; + * * @return The bytes for canonicalName. */ - public com.google.protobuf.ByteString - getCanonicalNameBytes() { + public com.google.protobuf.ByteString getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -1115,6 +1156,8 @@ public java.lang.String getCanonicalName() { } } /** + * + * *
      * The canonical name of the marks.
      * Examples:
@@ -1127,20 +1170,22 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 3; + * * @param value The canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalName( - java.lang.String value) { + public Builder setCanonicalName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + canonicalName_ = value; onChanged(); return this; } /** + * + * *
      * The canonical name of the marks.
      * Examples:
@@ -1153,15 +1198,18 @@ public Builder setCanonicalName(
      * 
* * string canonical_name = 3; + * * @return This builder for chaining. */ public Builder clearCanonicalName() { - + canonicalName_ = getDefaultInstance().getCanonicalName(); onChanged(); return this; } /** + * + * *
      * The canonical name of the marks.
      * Examples:
@@ -1174,23 +1222,23 @@ public Builder clearCanonicalName() {
      * 
* * string canonical_name = 3; + * * @param value The bytes for canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalNameBytes( - com.google.protobuf.ByteString value) { + public Builder setCanonicalNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1200,12 +1248,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.SecurityMarks) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.SecurityMarks) private static final com.google.cloud.securitycenter.v1.SecurityMarks DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.SecurityMarks(); } @@ -1214,16 +1262,16 @@ public static com.google.cloud.securitycenter.v1.SecurityMarks getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecurityMarks parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecurityMarks(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityMarks parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecurityMarks(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1238,6 +1286,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.SecurityMarks getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java similarity index 81% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java index 79b8a6944..f5ff88380 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/security_marks.proto package com.google.cloud.securitycenter.v1; -public interface SecurityMarksOrBuilder extends +public interface SecurityMarksOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.SecurityMarks) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -17,10 +35,13 @@ public interface SecurityMarksOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -30,12 +51,14 @@ public interface SecurityMarksOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -50,6 +73,8 @@ public interface SecurityMarksOrBuilder extends
    */
   int getMarksCount();
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -62,15 +87,13 @@ public interface SecurityMarksOrBuilder extends
    *
    * map<string, string> marks = 2;
    */
-  boolean containsMarks(
-      java.lang.String key);
-  /**
-   * Use {@link #getMarksMap()} instead.
-   */
+  boolean containsMarks(java.lang.String key);
+  /** Use {@link #getMarksMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getMarks();
+  java.util.Map getMarks();
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -83,9 +106,10 @@ boolean containsMarks(
    *
    * map<string, string> marks = 2;
    */
-  java.util.Map
-  getMarksMap();
+  java.util.Map getMarksMap();
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -100,11 +124,13 @@ boolean containsMarks(
    */
 
   /* nullable */
-java.lang.String getMarksOrDefault(
+  java.lang.String getMarksOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -117,11 +143,11 @@ java.lang.String getMarksOrDefault(
    *
    * map<string, string> marks = 2;
    */
-
-  java.lang.String getMarksOrThrow(
-      java.lang.String key);
+  java.lang.String getMarksOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * The canonical name of the marks.
    * Examples:
@@ -134,10 +160,13 @@ java.lang.String getMarksOrThrow(
    * 
* * string canonical_name = 3; + * * @return The canonicalName. */ java.lang.String getCanonicalName(); /** + * + * *
    * The canonical name of the marks.
    * Examples:
@@ -150,8 +179,8 @@ java.lang.String getMarksOrThrow(
    * 
* * string canonical_name = 3; + * * @return The bytes for canonicalName. */ - com.google.protobuf.ByteString - getCanonicalNameBytes(); + com.google.protobuf.ByteString getCanonicalNameBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java new file mode 100644 index 000000000..5a5a39061 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarksOuterClass.java @@ -0,0 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/security_marks.proto + +package com.google.cloud.securitycenter.v1; + +public final class SecurityMarksOuterClass { + private SecurityMarksOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/securitycenter/v1/securit" + + "y_marks.proto\022\036google.cloud.securitycent" + + "er.v1\032\031google/api/resource.proto\"\325\004\n\rSec" + + "urityMarks\022\014\n\004name\030\001 \001(\t\022G\n\005marks\030\002 \003(\0132" + + "8.google.cloud.securitycenter.v1.Securit" + + "yMarks.MarksEntry\022\026\n\016canonical_name\030\003 \001(" + + "\t\032,\n\nMarksEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001:\246\003\352A\242\003\n+securitycenter.googleapi" + + "s.com/SecurityMarks\0229organizations/{orga" + + "nization}/assets/{asset}/securityMarks\022N" + + "organizations/{organization}/sources/{so" + + "urce}/findings/{finding}/securityMarks\022-" + + "folders/{folder}/assets/{asset}/security" + + "Marks\022/projects/{project}/assets/{asset}" + + "/securityMarks\022Bfolders/{folder}/sources" + + "/{source}/findings/{finding}/securityMar" + + "ks\022Dprojects/{project}/sources/{source}/" + + "findings/{finding}/securityMarksB\332\001\n\"com" + + ".google.cloud.securitycenter.v1P\001ZLgoogl" + + "e.golang.org/genproto/googleapis/cloud/s" + + "ecuritycenter/v1;securitycenter\252\002\036Google" + + ".Cloud.SecurityCenter.V1\312\002\036Google\\Cloud\\" + + "SecurityCenter\\V1\352\002!Google::Cloud::Secur" + + "ityCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_SecurityMarks_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor, + new java.lang.String[] { + "Name", "Marks", "CanonicalName", + }); + internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_descriptor = + internal_static_google_cloud_securitycenter_v1_SecurityMarks_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_SecurityMarks_MarksEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java new file mode 100644 index 000000000..7f4666e68 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecuritycenterService.java @@ -0,0 +1,1174 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public final class SecuritycenterService { + private SecuritycenterService() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_SetMuteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n;google/cloud/securitycenter/v1/securit" + + "ycenter_service.proto\022\036google.cloud.secu" + + "ritycenter.v1\032Agoogle/cloud/securitycent" + + "er/v1/run_asset_discovery_response.proto" + + "\032\034google/api/annotations.proto\032\027google/a" + + "pi/client.proto\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\032*goo" + + "gle/cloud/securitycenter/v1/asset.proto\032" + + "4google/cloud/securitycenter/v1/bigquery" + + "_export.proto\0324google/cloud/securitycent" + + "er/v1/external_system.proto\032,google/clou" + + "d/securitycenter/v1/finding.proto\032+googl" + + "e/cloud/securitycenter/v1/folder.proto\0320" + + "google/cloud/securitycenter/v1/mute_conf" + + "ig.proto\0328google/cloud/securitycenter/v1" + + "/notification_config.proto\032:google/cloud" + + "/securitycenter/v1/organization_settings" + + ".proto\0323google/cloud/securitycenter/v1/s" + + "ecurity_marks.proto\032+google/cloud/securi" + + "tycenter/v1/source.proto\032\036google/iam/v1/" + + "iam_policy.proto\032\032google/iam/v1/policy.p" + + "roto\032#google/longrunning/operations.prot" + + "o\032\036google/protobuf/duration.proto\032\033googl" + + "e/protobuf/empty.proto\032 google/protobuf/" + + "field_mask.proto\032\034google/protobuf/struct" + + ".proto\032\037google/protobuf/timestamp.proto\"" + + "a\n\027BulkMuteFindingsRequest\022\031\n\006parent\030\001 \001" + + "(\tB\t\340A\002\372A\003\n\001*\022\016\n\006filter\030\002 \001(\t\022\033\n\017mute_an" + + "notation\030\003 \001(\tB\002\030\001\"\032\n\030BulkMuteFindingsRe" + + "sponse\"\254\001\n\024CreateFindingRequest\022<\n\006paren" + + "t\030\001 \001(\tB,\340A\002\372A&\n$securitycenter.googleap" + + "is.com/Source\022\027\n\nfinding_id\030\002 \001(\tB\003\340A\002\022=" + + "\n\007finding\030\003 \001(\0132\'.google.cloud.securityc" + + "enter.v1.FindingB\003\340A\002\"\276\001\n\027CreateMuteConf" + + "igRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(secur" + + "itycenter.googleapis.com/MuteConfig\022D\n\013m" + + "ute_config\030\002 \001(\0132*.google.cloud.security" + + "center.v1.MuteConfigB\003\340A\002\022\033\n\016mute_config" + + "_id\030\003 \001(\tB\003\340A\002\"\331\001\n\037CreateNotificationCon" + + "figRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0clou" + + "dresourcemanager.googleapis.com/Organiza" + + "tion\022\026\n\tconfig_id\030\002 \001(\tB\003\340A\002\022T\n\023notifica" + + "tion_config\030\003 \001(\01322.google.cloud.securit" + + "ycenter.v1.NotificationConfigB\003\340A\002\"\234\001\n\023C" + + "reateSourceRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372" + + "A2\n0cloudresourcemanager.googleapis.com/" + + "Organization\022;\n\006source\030\002 \001(\0132&.google.cl" + + "oud.securitycenter.v1.SourceB\003\340A\002\"Y\n\027Del" + + "eteMuteConfigRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372" + + "A*\n(securitycenter.googleapis.com/MuteCo" + + "nfig\"i\n\037DeleteNotificationConfigRequest\022" + + "F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0securitycenter.go" + + "ogleapis.com/NotificationConfig\"^\n\030GetBi" + + "gQueryExportRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A" + + ".\n,securitycenter.googleapis.com/BigQuer" + + "yExport\"V\n\024GetMuteConfigRequest\022>\n\004name\030" + + "\001 \001(\tB0\340A\002\372A*\n(securitycenter.googleapis" + + ".com/MuteConfig\"f\n\034GetNotificationConfig" + + "Request\022F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0securityc" + + "enter.googleapis.com/NotificationConfig\"" + + "j\n\036GetOrganizationSettingsRequest\022H\n\004nam" + + "e\030\001 \001(\tB:\340A\002\372A4\n2securitycenter.googleap" + + "is.com/OrganizationSettings\"N\n\020GetSource" + + "Request\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$securityc" + + "enter.googleapis.com/Source\"\203\002\n\022GroupAss" + + "etsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#secu" + + "ritycenter.googleapis.com/Asset\022\016\n\006filte" + + "r\030\002 \001(\t\022\025\n\010group_by\030\003 \001(\tB\003\340A\002\0223\n\020compar" + + "e_duration\030\004 \001(\0132\031.google.protobuf.Durat" + + "ion\022-\n\tread_time\030\005 \001(\0132\032.google.protobuf" + + ".Timestamp\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpage_s" + + "ize\030\010 \001(\005\"\270\001\n\023GroupAssetsResponse\022E\n\020gro" + + "up_by_results\030\001 \003(\0132+.google.cloud.secur" + + "itycenter.v1.GroupResult\022-\n\tread_time\030\002 " + + "\001(\0132\032.google.protobuf.Timestamp\022\027\n\017next_" + + "page_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\206\002\n" + + "\024GroupFindingsRequest\022<\n\006parent\030\001 \001(\tB,\340" + + "A\002\372A&\n$securitycenter.googleapis.com/Sou" + + "rce\022\016\n\006filter\030\002 \001(\t\022\025\n\010group_by\030\003 \001(\tB\003\340" + + "A\002\022-\n\tread_time\030\004 \001(\0132\032.google.protobuf." + + "Timestamp\0223\n\020compare_duration\030\005 \001(\0132\031.go" + + "ogle.protobuf.Duration\022\022\n\npage_token\030\007 \001" + + "(\t\022\021\n\tpage_size\030\010 \001(\005\"\272\001\n\025GroupFindingsR" + + "esponse\022E\n\020group_by_results\030\001 \003(\0132+.goog" + + "le.cloud.securitycenter.v1.GroupResult\022-" + + "\n\tread_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_" + + "size\030\004 \001(\005\"\270\001\n\013GroupResult\022O\n\nproperties" + + "\030\001 \003(\0132;.google.cloud.securitycenter.v1." + + "GroupResult.PropertiesEntry\022\r\n\005count\030\002 \001" + + "(\003\032I\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005va" + + "lue\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\"\201\001" + + "\n\026ListMuteConfigsRequest\022@\n\006parent\030\001 \001(\t" + + "B0\340A\002\372A*\022(securitycenter.googleapis.com/" + + "MuteConfig\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\"t\n\027ListMuteConfigsResponse\022@\n\014" + + "mute_configs\030\001 \003(\0132*.google.cloud.securi" + + "tycenter.v1.MuteConfig\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"\221\001\n\036ListNotificationConfigsReque" + + "st\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0cloudresourc" + + "emanager.googleapis.com/Organization\022\022\n\n" + + "page_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"\214\001\n\037" + + "ListNotificationConfigsResponse\022P\n\024notif" + + "ication_configs\030\001 \003(\01322.google.cloud.sec" + + "uritycenter.v1.NotificationConfig\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"y\n\022ListSourcesRequest" + + "\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$securitycenter" + + ".googleapis.com/Source\022\022\n\npage_token\030\002 \001" + + "(\t\022\021\n\tpage_size\030\007 \001(\005\"g\n\023ListSourcesResp" + + "onse\0227\n\007sources\030\001 \003(\0132&.google.cloud.sec" + + "uritycenter.v1.Source\022\027\n\017next_page_token" + + "\030\002 \001(\t\"\255\002\n\021ListAssetsRequest\022;\n\006parent\030\001" + + " \001(\tB+\340A\002\372A%\022#securitycenter.googleapis." + + "com/Asset\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003 " + + "\001(\t\022-\n\tread_time\030\004 \001(\0132\032.google.protobuf" + + ".Timestamp\0223\n\020compare_duration\030\005 \001(\0132\031.g" + + "oogle.protobuf.Duration\022.\n\nfield_mask\030\007 " + + "\001(\0132\032.google.protobuf.FieldMask\022\022\n\npage_" + + "token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"\303\003\n\022ListA" + + "ssetsResponse\022`\n\023list_assets_results\030\001 \003" + + "(\0132C.google.cloud.securitycenter.v1.List" + + "AssetsResponse.ListAssetsResult\022-\n\tread_" + + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\027" + + "\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 " + + "\001(\005\032\356\001\n\020ListAssetsResult\0224\n\005asset\030\001 \001(\0132" + + "%.google.cloud.securitycenter.v1.Asset\022e" + + "\n\014state_change\030\002 \001(\0162O.google.cloud.secu" + + "ritycenter.v1.ListAssetsResponse.ListAss" + + "etsResult.StateChange\"=\n\013StateChange\022\n\n\006" + + "UNUSED\020\000\022\t\n\005ADDED\020\001\022\013\n\007REMOVED\020\002\022\n\n\006ACTI" + + "VE\020\003\"\260\002\n\023ListFindingsRequest\022<\n\006parent\030\001" + + " \001(\tB,\340A\002\372A&\n$securitycenter.googleapis." + + "com/Source\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003" + + " \001(\t\022-\n\tread_time\030\004 \001(\0132\032.google.protobu" + + "f.Timestamp\0223\n\020compare_duration\030\005 \001(\0132\031." + + "google.protobuf.Duration\022.\n\nfield_mask\030\007" + + " \001(\0132\032.google.protobuf.FieldMask\022\022\n\npage" + + "_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"\254\006\n\024List" + + "FindingsResponse\022f\n\025list_findings_result" + + "s\030\001 \003(\0132G.google.cloud.securitycenter.v1" + + ".ListFindingsResponse.ListFindingsResult" + + "\022-\n\tread_time\030\002 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntota" + + "l_size\030\004 \001(\005\032\317\004\n\022ListFindingsResult\0228\n\007f" + + "inding\030\001 \001(\0132\'.google.cloud.securitycent" + + "er.v1.Finding\022i\n\014state_change\030\002 \001(\0162S.go" + + "ogle.cloud.securitycenter.v1.ListFinding" + + "sResponse.ListFindingsResult.StateChange" + + "\022g\n\010resource\030\003 \001(\0132P.google.cloud.securi" + + "tycenter.v1.ListFindingsResponse.ListFin" + + "dingsResult.ResourceB\003\340A\003\032\333\001\n\010Resource\022\014" + + "\n\004name\030\001 \001(\t\022\024\n\014display_name\030\010 \001(\t\022\014\n\004ty" + + "pe\030\006 \001(\t\022\024\n\014project_name\030\002 \001(\t\022\034\n\024projec" + + "t_display_name\030\003 \001(\t\022\023\n\013parent_name\030\004 \001(" + + "\t\022\033\n\023parent_display_name\030\005 \001(\t\0227\n\007folder" + + "s\030\007 \003(\0132&.google.cloud.securitycenter.v1" + + ".Folder\"M\n\013StateChange\022\n\n\006UNUSED\020\000\022\013\n\007CH" + + "ANGED\020\001\022\r\n\tUNCHANGED\020\002\022\t\n\005ADDED\020\003\022\013\n\007REM" + + "OVED\020\004\"\315\001\n\026SetFindingStateRequest\022;\n\004nam" + + "e\030\001 \001(\tB-\340A\002\372A\'\n%securitycenter.googleap" + + "is.com/Finding\022A\n\005state\030\002 \001(\0162-.google.c" + + "loud.securitycenter.v1.Finding.StateB\003\340A" + + "\002\0223\n\nstart_time\030\003 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\002\"\216\001\n\016SetMuteRequest\022;\n\004nam" + + "e\030\001 \001(\tB-\340A\002\372A\'\n%securitycenter.googleap" + + "is.com/Finding\022?\n\004mute\030\002 \001(\0162,.google.cl" + + "oud.securitycenter.v1.Finding.MuteB\003\340A\002\"" + + "d\n\030RunAssetDiscoveryRequest\022H\n\006parent\030\001 " + + "\001(\tB8\340A\002\372A2\n0cloudresourcemanager.google" + + "apis.com/Organization\"\234\001\n\033UpdateExternal" + + "SystemRequest\022L\n\017external_system\030\001 \001(\0132." + + ".google.cloud.securitycenter.v1.External" + + "SystemB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMask\"\206\001\n\024UpdateFindingRe" + + "quest\022=\n\007finding\030\001 \001(\0132\'.google.cloud.se" + + "curitycenter.v1.FindingB\003\340A\002\022/\n\013update_m" + + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\220\001" + + "\n\027UpdateMuteConfigRequest\022D\n\013mute_config" + + "\030\001 \001(\0132*.google.cloud.securitycenter.v1." + + "MuteConfigB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.g" + + "oogle.protobuf.FieldMask\"\250\001\n\037UpdateNotif" + + "icationConfigRequest\022T\n\023notification_con" + + "fig\030\001 \001(\01322.google.cloud.securitycenter." + + "v1.NotificationConfigB\003\340A\002\022/\n\013update_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"\256\001\n!" + + "UpdateOrganizationSettingsRequest\022X\n\025org" + + "anization_settings\030\001 \001(\01324.google.cloud." + + "securitycenter.v1.OrganizationSettingsB\003" + + "\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMask\"\203\001\n\023UpdateSourceRequest\022;\n\006" + + "source\030\001 \001(\0132&.google.cloud.securitycent" + + "er.v1.SourceB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032" + + ".google.protobuf.FieldMask\"\311\001\n\032UpdateSec" + + "urityMarksRequest\022J\n\016security_marks\030\001 \001(" + + "\0132-.google.cloud.securitycenter.v1.Secur" + + "ityMarksB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.goo" + + "gle.protobuf.FieldMask\022.\n\nstart_time\030\003 \001" + + "(\0132\032.google.protobuf.Timestamp\"\324\001\n\033Creat" + + "eBigQueryExportRequest\022D\n\006parent\030\001 \001(\tB4" + + "\340A\002\372A.\022,securitycenter.googleapis.com/Bi" + + "gQueryExport\022M\n\020big_query_export\030\002 \001(\0132." + + ".google.cloud.securitycenter.v1.BigQuery" + + "ExportB\003\340A\002\022 \n\023big_query_export_id\030\003 \001(\t" + + "B\003\340A\002\"\235\001\n\033UpdateBigQueryExportRequest\022M\n" + + "\020big_query_export\030\001 \001(\0132..google.cloud.s" + + "ecuritycenter.v1.BigQueryExportB\003\340A\002\022/\n\013" + + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + + "dMask\"\211\001\n\032ListBigQueryExportsRequest\022D\n\006" + + "parent\030\001 \001(\tB4\340A\002\372A.\022,securitycenter.goo" + + "gleapis.com/BigQueryExport\022\021\n\tpage_size\030" + + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\201\001\n\033ListBigQue" + + "ryExportsResponse\022I\n\021big_query_exports\030\001" + + " \003(\0132..google.cloud.securitycenter.v1.Bi" + + "gQueryExport\022\027\n\017next_page_token\030\002 \001(\t\"a\n" + + "\033DeleteBigQueryExportRequest\022B\n\004name\030\001 \001" + + "(\tB4\340A\002\372A.\n,securitycenter.googleapis.co" + + "m/BigQueryExport2\247O\n\016SecurityCenter\022\342\002\n\020" + + "BulkMuteFindings\0227.google.cloud.security" + + "center.v1.BulkMuteFindingsRequest\032\035.goog" + + "le.longrunning.Operation\"\365\001\202\323\344\223\002\222\001\"./v1/" + + "{parent=organizations/*}/findings:bulkMu" + + "te:\001*Z-\"(/v1/{parent=folders/*}/findings" + + ":bulkMute:\001*Z.\")/v1/{parent=projects/*}/" + + "findings:bulkMute:\001*\332A\006parent\312AP\n7google" + + ".cloud.securitycenter.v1.BulkMuteFinding" + + "sResponse\022\025google.protobuf.Empty\022\261\001\n\014Cre" + + "ateSource\0223.google.cloud.securitycenter." + + "v1.CreateSourceRequest\032&.google.cloud.se" + + "curitycenter.v1.Source\"D\202\323\344\223\002.\"$/v1/{par" + + "ent=organizations/*}/sources:\006source\332A\rp" + + "arent,source\022\314\001\n\rCreateFinding\0224.google." + + "cloud.securitycenter.v1.CreateFindingReq" + + "uest\032\'.google.cloud.securitycenter.v1.Fi" + + "nding\"\\\202\323\344\223\002:\"//v1/{parent=organizations" + + "/*/sources/*}/findings:\007finding\332A\031parent" + + ",finding_id,finding\022\330\002\n\020CreateMuteConfig" + + "\0227.google.cloud.securitycenter.v1.Create" + + "MuteConfigRequest\032*.google.cloud.securit" + + "ycenter.v1.MuteConfig\"\336\001\202\323\344\223\002\236\001\"(/v1/{pa" + + "rent=organizations/*}/muteConfigs:\013mute_" + + "configZ1\"\"/v1/{parent=folders/*}/muteCon" + + "figs:\013mute_configZ2\"#/v1/{parent=project" + + "s/*}/muteConfigs:\013mute_config\332A\022parent,m" + + "ute_config\332A!parent,mute_config,mute_con" + + "fig_id\022\243\002\n\030CreateNotificationConfig\022?.go" + + "ogle.cloud.securitycenter.v1.CreateNotif" + + "icationConfigRequest\0322.google.cloud.secu" + + "ritycenter.v1.NotificationConfig\"\221\001\202\323\344\223\002" + + "G\"0/v1/{parent=organizations/*}/notifica" + + "tionConfigs:\023notification_config\332A$paren" + + "t,config_id,notification_config\332A\032parent" + + ",notification_config\022\352\001\n\020DeleteMuteConfi" + + "g\0227.google.cloud.securitycenter.v1.Delet" + + "eMuteConfigRequest\032\026.google.protobuf.Emp" + + "ty\"\204\001\202\323\344\223\002w*(/v1/{name=organizations/*/m" + + "uteConfigs/*}Z$*\"/v1/{name=folders/*/mut" + + "eConfigs/*}Z%*#/v1/{name=projects/*/mute" + + "Configs/*}\332A\004name\022\264\001\n\030DeleteNotification" + + "Config\022?.google.cloud.securitycenter.v1." + + "DeleteNotificationConfigRequest\032\026.google" + + ".protobuf.Empty\"?\202\323\344\223\0022*0/v1/{name=organ" + + "izations/*/notificationConfigs/*}\332A\004name" + + "\022\221\002\n\021GetBigQueryExport\0228.google.cloud.se" + + "curitycenter.v1.GetBigQueryExportRequest" + + "\032..google.cloud.securitycenter.v1.BigQue" + + "ryExport\"\221\001\202\323\344\223\002\203\001\022,/v1/{name=organizati" + + "ons/*/bigQueryExports/*}Z(\022&/v1/{name=fo" + + "lders/*/bigQueryExports/*}Z)\022\'/v1/{name=" + + "projects/*/bigQueryExports/*}\332A\004name\022\226\001\n" + + "\014GetIamPolicy\022\".google.iam.v1.GetIamPoli" + + "cyRequest\032\025.google.iam.v1.Policy\"K\202\323\344\223\002:" + + "\"5/v1/{resource=organizations/*/sources/" + + "*}:getIamPolicy:\001*\332A\010resource\022\370\001\n\rGetMut" + + "eConfig\0224.google.cloud.securitycenter.v1" + + ".GetMuteConfigRequest\032*.google.cloud.sec" + + "uritycenter.v1.MuteConfig\"\204\001\202\323\344\223\002w\022(/v1/" + + "{name=organizations/*/muteConfigs/*}Z$\022\"" + + "/v1/{name=folders/*/muteConfigs/*}Z%\022#/v" + + "1/{name=projects/*/muteConfigs/*}\332A\004name" + + "\022\312\001\n\025GetNotificationConfig\022<.google.clou" + + "d.securitycenter.v1.GetNotificationConfi" + + "gRequest\0322.google.cloud.securitycenter.v" + + "1.NotificationConfig\"?\202\323\344\223\0022\0220/v1/{name=" + + "organizations/*/notificationConfigs/*}\332A" + + "\004name\022\317\001\n\027GetOrganizationSettings\022>.goog" + + "le.cloud.securitycenter.v1.GetOrganizati" + + "onSettingsRequest\0324.google.cloud.securit" + + "ycenter.v1.OrganizationSettings\">\202\323\344\223\0021\022" + + "//v1/{name=organizations/*/organizationS" + + "ettings}\332A\004name\022\232\001\n\tGetSource\0220.google.c" + + "loud.securitycenter.v1.GetSourceRequest\032" + + "&.google.cloud.securitycenter.v1.Source\"" + + "3\202\323\344\223\002&\022$/v1/{name=organizations/*/sourc" + + "es/*}\332A\004name\022\203\002\n\013GroupAssets\0222.google.cl" + + "oud.securitycenter.v1.GroupAssetsRequest" + + "\0323.google.cloud.securitycenter.v1.GroupA" + + "ssetsResponse\"\212\001\202\323\344\223\002\203\001\")/v1/{parent=org" + + "anizations/*}/assets:group:\001*Z(\"#/v1/{pa" + + "rent=folders/*}/assets:group:\001*Z)\"$/v1/{" + + "parent=projects/*}/assets:group:\001*\022\277\002\n\rG" + + "roupFindings\0224.google.cloud.securitycent" + + "er.v1.GroupFindingsRequest\0325.google.clou" + + "d.securitycenter.v1.GroupFindingsRespons" + + "e\"\300\001\202\323\344\223\002\247\001\"5/v1/{parent=organizations/*" + + "/sources/*}/findings:group:\001*Z4\"//v1/{pa" + + "rent=folders/*/sources/*}/findings:group" + + ":\001*Z5\"0/v1/{parent=projects/*/sources/*}" + + "/findings:group:\001*\332A\017parent,group_by\022\343\001\n" + + "\nListAssets\0221.google.cloud.securitycente" + + "r.v1.ListAssetsRequest\0322.google.cloud.se" + + "curitycenter.v1.ListAssetsResponse\"n\202\323\344\223" + + "\002h\022#/v1/{parent=organizations/*}/assetsZ" + + "\037\022\035/v1/{parent=folders/*}/assetsZ \022\036/v1/" + + "{parent=projects/*}/assets\022\217\002\n\014ListFindi" + + "ngs\0223.google.cloud.securitycenter.v1.Lis" + + "tFindingsRequest\0324.google.cloud.security" + + "center.v1.ListFindingsResponse\"\223\001\202\323\344\223\002\214\001" + + "\022//v1/{parent=organizations/*/sources/*}" + + "/findingsZ+\022)/v1/{parent=folders/*/sourc" + + "es/*}/findingsZ,\022*/v1/{parent=projects/*" + + "/sources/*}/findings\022\213\002\n\017ListMuteConfigs" + + "\0226.google.cloud.securitycenter.v1.ListMu" + + "teConfigsRequest\0327.google.cloud.security" + + "center.v1.ListMuteConfigsResponse\"\206\001\202\323\344\223" + + "\002w\022(/v1/{parent=organizations/*}/muteCon" + + "figsZ$\022\"/v1/{parent=folders/*}/muteConfi" + + "gsZ%\022#/v1/{parent=projects/*}/muteConfig" + + "s\332A\006parent\022\335\001\n\027ListNotificationConfigs\022>" + + ".google.cloud.securitycenter.v1.ListNoti" + + "ficationConfigsRequest\032?.google.cloud.se" + + "curitycenter.v1.ListNotificationConfigsR" + + "esponse\"A\202\323\344\223\0022\0220/v1/{parent=organizatio" + + "ns/*}/notificationConfigs\332A\006parent\022\362\001\n\013L" + + "istSources\0222.google.cloud.securitycenter" + + ".v1.ListSourcesRequest\0323.google.cloud.se" + + "curitycenter.v1.ListSourcesResponse\"z\202\323\344" + + "\223\002k\022$/v1/{parent=organizations/*}/source" + + "sZ \022\036/v1/{parent=folders/*}/sourcesZ!\022\037/" + + "v1/{parent=projects/*}/sources\332A\006parent\022" + + "\207\002\n\021RunAssetDiscovery\0228.google.cloud.sec" + + "uritycenter.v1.RunAssetDiscoveryRequest\032" + + "\035.google.longrunning.Operation\"\230\001\202\323\344\223\0025\"" + + "0/v1/{parent=organizations/*}/assets:run" + + "Discovery:\001*\332A\006parent\312AQ\n8google.cloud.s" + + "ecuritycenter.v1.RunAssetDiscoveryRespon" + + "se\022\025google.protobuf.Empty\022\304\002\n\017SetFinding" + + "State\0226.google.cloud.securitycenter.v1.S" + + "etFindingStateRequest\032\'.google.cloud.sec" + + "uritycenter.v1.Finding\"\317\001\202\323\344\223\002\260\001\"8/v1/{n" + + "ame=organizations/*/sources/*/findings/*" + + "}:setState:\001*Z7\"2/v1/{name=folders/*/sou" + + "rces/*/findings/*}:setState:\001*Z8\"3/v1/{n" + + "ame=projects/*/sources/*/findings/*}:set" + + "State:\001*\332A\025name,state,start_time\022\245\002\n\007Set" + + "Mute\022..google.cloud.securitycenter.v1.Se" + + "tMuteRequest\032\'.google.cloud.securitycent" + + "er.v1.Finding\"\300\001\202\323\344\223\002\255\001\"7/v1/{name=organ" + + "izations/*/sources/*/findings/*}:setMute" + + ":\001*Z6\"1/v1/{name=folders/*/sources/*/fin" + + "dings/*}:setMute:\001*Z7\"2/v1/{name=project" + + "s/*/sources/*/findings/*}:setMute:\001*\332A\tn" + + "ame,mute\022\235\001\n\014SetIamPolicy\022\".google.iam.v" + + "1.SetIamPolicyRequest\032\025.google.iam.v1.Po" + + "licy\"R\202\323\344\223\002:\"5/v1/{resource=organization" + + "s/*/sources/*}:setIamPolicy:\001*\332A\017resourc" + + "e,policy\022\310\001\n\022TestIamPermissions\022(.google" + + ".iam.v1.TestIamPermissionsRequest\032).goog" + + "le.iam.v1.TestIamPermissionsResponse\"]\202\323" + + "\344\223\002@\";/v1/{resource=organizations/*/sour" + + "ces/*}:testIamPermissions:\001*\332A\024resource," + + "permissions\022\320\003\n\024UpdateExternalSystem\022;.g" + + "oogle.cloud.securitycenter.v1.UpdateExte" + + "rnalSystemRequest\032..google.cloud.securit" + + "ycenter.v1.ExternalSystem\"\312\002\202\323\344\223\002\245\0022Q/v1" + + "/{external_system.name=organizations/*/s" + + "ources/*/findings/*/externalSystems/*}:\017" + + "external_systemZ^2K/v1/{external_system." + + "name=folders/*/sources/*/findings/*/exte" + + "rnalSystems/*}:\017external_systemZ_2L/v1/{" + + "external_system.name=projects/*/sources/" + + "*/findings/*/externalSystems/*}:\017externa" + + "l_system\332A\033external_system,update_mask\022\301" + + "\002\n\rUpdateFinding\0224.google.cloud.security" + + "center.v1.UpdateFindingRequest\032\'.google." + + "cloud.securitycenter.v1.Finding\"\320\001\202\323\344\223\002\277" + + "\00127/v1/{finding.name=organizations/*/sou" + + "rces/*/findings/*}:\007findingZ<21/v1/{find" + + "ing.name=folders/*/sources/*/findings/*}" + + ":\007findingZ=22/v1/{finding.name=projects/" + + "*/sources/*/findings/*}:\007finding\332A\007findi" + + "ng\022\335\002\n\020UpdateMuteConfig\0227.google.cloud.s" + + "ecuritycenter.v1.UpdateMuteConfigRequest" + + "\032*.google.cloud.securitycenter.v1.MuteCo" + + "nfig\"\343\001\202\323\344\223\002\302\00124/v1/{mute_config.name=or" + + "ganizations/*/muteConfigs/*}:\013mute_confi" + + "gZ=2./v1/{mute_config.name=folders/*/mut" + + "eConfigs/*}:\013mute_configZ>2//v1/{mute_co" + + "nfig.name=projects/*/muteConfigs/*}:\013mut" + + "e_config\332A\027mute_config,update_mask\022\253\002\n\030U" + + "pdateNotificationConfig\022?.google.cloud.s", + "ecuritycenter.v1.UpdateNotificationConfi" + + "gRequest\0322.google.cloud.securitycenter.v" + + "1.NotificationConfig\"\231\001\202\323\344\223\002[2D/v1/{noti" + + "fication_config.name=organizations/*/not" + + "ificationConfigs/*}:\023notification_config" + + "\332A\023notification_config\332A\037notification_co" + + "nfig,update_mask\022\223\002\n\032UpdateOrganizationS" + + "ettings\022A.google.cloud.securitycenter.v1" + + ".UpdateOrganizationSettingsRequest\0324.goo" + + "gle.cloud.securitycenter.v1.Organization" + + "Settings\"|\202\323\344\223\002^2E/v1/{organization_sett" + + "ings.name=organizations/*/organizationSe" + + "ttings}:\025organization_settings\332A\025organiz" + + "ation_settings\022\261\001\n\014UpdateSource\0223.google" + + ".cloud.securitycenter.v1.UpdateSourceReq" + + "uest\032&.google.cloud.securitycenter.v1.So" + + "urce\"D\202\323\344\223\00252+/v1/{source.name=organizat" + + "ions/*/sources/*}:\006source\332A\006source\022\237\005\n\023U" + + "pdateSecurityMarks\022:.google.cloud.securi" + + "tycenter.v1.UpdateSecurityMarksRequest\032-" + + ".google.cloud.securitycenter.v1.Security" + + "Marks\"\234\004\202\323\344\223\002\204\0042@/v1/{security_marks.nam" + + "e=organizations/*/assets/*/securityMarks" + + "}:\016security_marksZL2:/v1/{security_marks" + + ".name=folders/*/assets/*/securityMarks}:" + + "\016security_marksZM2;/v1/{security_marks.n" + + "ame=projects/*/assets/*/securityMarks}:\016" + + "security_marksZ^2L/v1/{security_marks.na" + + "me=organizations/*/sources/*/findings/*/" + + "securityMarks}:\016security_marksZX2F/v1/{s" + + "ecurity_marks.name=folders/*/sources/*/f" + + "indings/*/securityMarks}:\016security_marks" + + "ZY2G/v1/{security_marks.name=projects/*/" + + "sources/*/findings/*/securityMarks}:\016sec" + + "urity_marks\332A\016security_marks\022\364\002\n\024CreateB" + + "igQueryExport\022;.google.cloud.securitycen" + + "ter.v1.CreateBigQueryExportRequest\032..goo" + + "gle.cloud.securitycenter.v1.BigQueryExpo" + + "rt\"\356\001\202\323\344\223\002\271\001\",/v1/{parent=organizations/" + + "*}/bigQueryExports:\020big_query_exportZ:\"&" + + "/v1/{parent=folders/*}/bigQueryExports:\020" + + "big_query_exportZ;\"\'/v1/{parent=projects" + + "/*}/bigQueryExports:\020big_query_export\332A+" + + "parent,big_query_export,big_query_export" + + "_id\022\377\001\n\024DeleteBigQueryExport\022;.google.cl" + + "oud.securitycenter.v1.DeleteBigQueryExpo" + + "rtRequest\032\026.google.protobuf.Empty\"\221\001\202\323\344\223" + + "\002\203\001*,/v1/{name=organizations/*/bigQueryE" + + "xports/*}Z(*&/v1/{name=folders/*/bigQuer" + + "yExports/*}Z)*\'/v1/{name=projects/*/bigQ" + + "ueryExports/*}\332A\004name\022\230\003\n\024UpdateBigQuery" + + "Export\022;.google.cloud.securitycenter.v1." + + "UpdateBigQueryExportRequest\032..google.clo" + + "ud.securitycenter.v1.BigQueryExport\"\222\002\202\323" + + "\344\223\002\354\0012=/v1/{big_query_export.name=organi" + + "zations/*/bigQueryExports/*}:\020big_query_" + + "exportZK27/v1/{big_query_export.name=fol" + + "ders/*/bigQueryExports/*}:\020big_query_exp" + + "ortZL28/v1/{big_query_export.name=projec" + + "ts/*/bigQueryExports/*}:\020big_query_expor" + + "t\332A\034big_query_export,update_mask\022\244\002\n\023Lis" + + "tBigQueryExports\022:.google.cloud.security" + + "center.v1.ListBigQueryExportsRequest\032;.g" + + "oogle.cloud.securitycenter.v1.ListBigQue" + + "ryExportsResponse\"\223\001\202\323\344\223\002\203\001\022,/v1/{parent" + + "=organizations/*}/bigQueryExportsZ(\022&/v1" + + "/{parent=folders/*}/bigQueryExportsZ)\022\'/" + + "v1/{parent=projects/*}/bigQueryExports\332A" + + "\006parent\032Q\312A\035securitycenter.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformB\332\001\n\"com.google.cloud.security" + + "center.v1P\001ZLgoogle.golang.org/genproto/" + + "googleapis/cloud/securitycenter/v1;secur" + + "itycenter\252\002\036Google.Cloud.SecurityCenter." + + "V1\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!Go" + + "ogle::Cloud::SecurityCenter::V1P\000b\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass + .getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.securitycenter.v1.AssetOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.BigQueryExportProto.getDescriptor(), + com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(), + com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(), + com.google.cloud.securitycenter.v1.MuteConfigProto.getDescriptor(), + com.google.cloud.securitycenter.v1.NotificationConfigProto.getDescriptor(), + com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.SourceOuterClass.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "MuteAnnotation", + }); + internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_BulkMuteFindingsResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_CreateFindingRequest_descriptor, + new java.lang.String[] { + "Parent", "FindingId", "Finding", + }); + internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_CreateMuteConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "MuteConfig", "MuteConfigId", + }); + internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "ConfigId", "NotificationConfig", + }); + internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor, + new java.lang.String[] { + "Parent", "Source", + }); + internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "GroupBy", "CompareDuration", "ReadTime", "PageToken", "PageSize", + }); + internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor, + new java.lang.String[] { + "GroupByResults", "ReadTime", "NextPageToken", "TotalSize", + }); + internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "GroupBy", "ReadTime", "CompareDuration", "PageToken", "PageSize", + }); + internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor, + new java.lang.String[] { + "GroupByResults", "ReadTime", "NextPageToken", "TotalSize", + }); + internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor, + new java.lang.String[] { + "Properties", "Count", + }); + internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor = + internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor, + new java.lang.String[] { + "MuteConfigs", "NextPageToken", + }); + internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor, + new java.lang.String[] { + "NotificationConfigs", "NextPageToken", + }); + internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor, + new java.lang.String[] { + "Sources", "NextPageToken", + }); + internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor, + new java.lang.String[] { + "Parent", + "Filter", + "OrderBy", + "ReadTime", + "CompareDuration", + "FieldMask", + "PageToken", + "PageSize", + }); + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor, + new java.lang.String[] { + "ListAssetsResults", "ReadTime", "NextPageToken", "TotalSize", + }); + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor = + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_ListAssetsResult_descriptor, + new java.lang.String[] { + "Asset", "StateChange", + }); + internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor, + new java.lang.String[] { + "Parent", + "Filter", + "OrderBy", + "ReadTime", + "CompareDuration", + "FieldMask", + "PageToken", + "PageSize", + }); + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor, + new java.lang.String[] { + "ListFindingsResults", "ReadTime", "NextPageToken", "TotalSize", + }); + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor = + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor, + new java.lang.String[] { + "Finding", "StateChange", "Resource", + }); + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor = + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_ListFindingsResult_Resource_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Type", + "ProjectName", + "ProjectDisplayName", + "ParentName", + "ParentDisplayName", + "Folders", + }); + internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor, + new java.lang.String[] { + "Name", "State", "StartTime", + }); + internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_securitycenter_v1_SetMuteRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor, + new java.lang.String[] { + "Name", "Mute", + }); + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor, + new java.lang.String[] { + "Parent", + }); + internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor, + new java.lang.String[] { + "ExternalSystem", "UpdateMask", + }); + internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor, + new java.lang.String[] { + "Finding", "UpdateMask", + }); + internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor, + new java.lang.String[] { + "MuteConfig", "UpdateMask", + }); + internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor, + new java.lang.String[] { + "NotificationConfig", "UpdateMask", + }); + internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor, + new java.lang.String[] { + "OrganizationSettings", "UpdateMask", + }); + internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor, + new java.lang.String[] { + "Source", "UpdateMask", + }); + internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor, + new java.lang.String[] { + "SecurityMarks", "UpdateMask", "StartTime", + }); + internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor, + new java.lang.String[] { + "Parent", "BigQueryExport", "BigQueryExportId", + }); + internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor, + new java.lang.String[] { + "BigQueryExport", "UpdateMask", + }); + internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor, + new java.lang.String[] { + "BigQueryExports", "NextPageToken", + }); + internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.securitycenter.v1.AssetOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.BigQueryExportProto.getDescriptor(); + com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(); + com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(); + com.google.cloud.securitycenter.v1.MuteConfigProto.getDescriptor(); + com.google.cloud.securitycenter.v1.NotificationConfigProto.getDescriptor(); + com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.SourceOuterClass.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java index e1ac6ef90..7e8d4f16b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for updating a finding's state.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.SetFindingStateRequest} */ -public final class SetFindingStateRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SetFindingStateRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.SetFindingStateRequest) SetFindingStateRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SetFindingStateRequest.newBuilder() to construct. private SetFindingStateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SetFindingStateRequest() { name_ = ""; state_ = 0; @@ -26,16 +44,15 @@ private SetFindingStateRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SetFindingStateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SetFindingStateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,42 @@ private SetFindingStateRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - state_ = rawValue; - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); + name_ = s; + break; } - startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); + case 16: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,29 +114,33 @@ private SetFindingStateRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.SetFindingStateRequest.class, com.google.cloud.securitycenter.v1.SetFindingStateRequest.Builder.class); + com.google.cloud.securitycenter.v1.SetFindingStateRequest.class, + com.google.cloud.securitycenter.v1.SetFindingStateRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -123,7 +148,10 @@ private SetFindingStateRequest(
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -132,14 +160,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -147,17 +176,18 @@ public java.lang.String getName() {
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -168,38 +198,55 @@ public java.lang.String getName() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** + * + * *
    * Required. The desired State of the finding.
    * 
* - * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Required. The desired State of the finding.
    * 
* - * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.State getState() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.State result = com.google.cloud.securitycenter.v1.Finding.State.valueOf(state_); + com.google.cloud.securitycenter.v1.Finding.State result = + com.google.cloud.securitycenter.v1.Finding.State.valueOf(state_); return result == null ? com.google.cloud.securitycenter.v1.Finding.State.UNRECOGNIZED : result; } public static final int START_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -207,11 +254,15 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The startTime. */ @java.lang.Override @@ -219,11 +270,14 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -231,6 +285,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,8 +297,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -266,12 +320,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (state_ != com.google.cloud.securitycenter.v1.Finding.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -281,20 +333,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.SetFindingStateRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.SetFindingStateRequest other = (com.google.cloud.securitycenter.v1.SetFindingStateRequest) obj; + com.google.cloud.securitycenter.v1.SetFindingStateRequest other = + (com.google.cloud.securitycenter.v1.SetFindingStateRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -321,117 +372,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.SetFindingStateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.SetFindingStateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.SetFindingStateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for updating a finding's state.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.SetFindingStateRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.SetFindingStateRequest) com.google.cloud.securitycenter.v1.SetFindingStateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.SetFindingStateRequest.class, com.google.cloud.securitycenter.v1.SetFindingStateRequest.Builder.class); + com.google.cloud.securitycenter.v1.SetFindingStateRequest.class, + com.google.cloud.securitycenter.v1.SetFindingStateRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.SetFindingStateRequest.newBuilder() @@ -439,16 +500,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -466,9 +526,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor; } @java.lang.Override @@ -487,7 +547,8 @@ public com.google.cloud.securitycenter.v1.SetFindingStateRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.SetFindingStateRequest buildPartial() { - com.google.cloud.securitycenter.v1.SetFindingStateRequest result = new com.google.cloud.securitycenter.v1.SetFindingStateRequest(this); + com.google.cloud.securitycenter.v1.SetFindingStateRequest result = + new com.google.cloud.securitycenter.v1.SetFindingStateRequest(this); result.name_ = name_; result.state_ = state_; if (startTimeBuilder_ == null) { @@ -503,38 +564,39 @@ public com.google.cloud.securitycenter.v1.SetFindingStateRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.SetFindingStateRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.SetFindingStateRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.SetFindingStateRequest) other); } else { super.mergeFrom(other); return this; @@ -542,7 +604,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.SetFindingStateRequest other) { - if (other == com.google.cloud.securitycenter.v1.SetFindingStateRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.SetFindingStateRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -572,7 +635,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.SetFindingStateRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.SetFindingStateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -584,6 +648,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -591,14 +657,16 @@ public Builder mergeFrom(
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -607,6 +675,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -614,16 +684,17 @@ public java.lang.String getName() {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -631,6 +702,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -638,21 +711,25 @@ public java.lang.String getName() {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -660,16 +737,21 @@ public Builder setName(
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -677,17 +759,19 @@ public Builder clearName() {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -695,51 +779,75 @@ public Builder setNameBytes( private int state_ = 0; /** + * + * *
      * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.State result = com.google.cloud.securitycenter.v1.Finding.State.valueOf(state_); - return result == null ? com.google.cloud.securitycenter.v1.Finding.State.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1.Finding.State result = + com.google.cloud.securitycenter.v1.Finding.State.valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1.Finding.State.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -747,21 +855,26 @@ public Builder setState(com.google.cloud.securitycenter.v1.Finding.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -769,24 +882,35 @@ public Builder clearState() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -797,11 +921,14 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -817,14 +944,16 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -835,17 +964,20 @@ public Builder setStartTime( return this; } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -857,11 +989,14 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -875,55 +1010,66 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -933,12 +1079,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.SetFindingStateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.SetFindingStateRequest) private static final com.google.cloud.securitycenter.v1.SetFindingStateRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.SetFindingStateRequest(); } @@ -947,16 +1093,16 @@ public static com.google.cloud.securitycenter.v1.SetFindingStateRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetFindingStateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetFindingStateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetFindingStateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetFindingStateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -971,6 +1117,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.SetFindingStateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java index 179a25a46..1482a44f5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface SetFindingStateRequestOrBuilder extends +public interface SetFindingStateRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.SetFindingStateRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -15,11 +33,16 @@ public interface SetFindingStateRequestOrBuilder extends
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -27,55 +50,78 @@ public interface SetFindingStateRequestOrBuilder extends
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The desired State of the finding.
    * 
* - * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Required. The desired State of the finding.
    * 
* - * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The state. */ com.google.cloud.securitycenter.v1.Finding.State getState(); /** + * + * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequest.java index 4c2066b7b..6848ee9e6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for updating a finding's mute status.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.SetMuteRequest} */ -public final class SetMuteRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SetMuteRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.SetMuteRequest) SetMuteRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SetMuteRequest.newBuilder() to construct. private SetMuteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SetMuteRequest() { name_ = ""; mute_ = 0; @@ -26,16 +44,15 @@ private SetMuteRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SetMuteRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SetMuteRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private SetMuteRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - mute_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + mute_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,29 +99,33 @@ private SetMuteRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_SetMuteRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SetMuteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.SetMuteRequest.class, com.google.cloud.securitycenter.v1.SetMuteRequest.Builder.class); + com.google.cloud.securitycenter.v1.SetMuteRequest.class, + com.google.cloud.securitycenter.v1.SetMuteRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -112,7 +135,10 @@ private SetMuteRequest(
    * "projects/{project_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -121,14 +147,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -138,17 +165,18 @@ public java.lang.String getName() {
    * "projects/{project_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -159,31 +187,45 @@ public java.lang.String getName() { public static final int MUTE_FIELD_NUMBER = 2; private int mute_; /** + * + * *
    * Required. The desired state of the Mute.
    * 
* - * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for mute. */ - @java.lang.Override public int getMuteValue() { + @java.lang.Override + public int getMuteValue() { return mute_; } /** + * + * *
    * Required. The desired state of the Mute.
    * 
* - * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The mute. */ - @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.Mute getMute() { + @java.lang.Override + public com.google.cloud.securitycenter.v1.Finding.Mute getMute() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.Mute result = com.google.cloud.securitycenter.v1.Finding.Mute.valueOf(mute_); + com.google.cloud.securitycenter.v1.Finding.Mute result = + com.google.cloud.securitycenter.v1.Finding.Mute.valueOf(mute_); return result == null ? com.google.cloud.securitycenter.v1.Finding.Mute.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -195,8 +237,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -216,8 +257,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (mute_ != com.google.cloud.securitycenter.v1.Finding.Mute.MUTE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, mute_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, mute_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -227,15 +267,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.SetMuteRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.SetMuteRequest other = (com.google.cloud.securitycenter.v1.SetMuteRequest) obj; + com.google.cloud.securitycenter.v1.SetMuteRequest other = + (com.google.cloud.securitycenter.v1.SetMuteRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (mute_ != other.mute_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -258,117 +298,126 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.SetMuteRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.SetMuteRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.SetMuteRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.SetMuteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.SetMuteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for updating a finding's mute status.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.SetMuteRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.SetMuteRequest) com.google.cloud.securitycenter.v1.SetMuteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_SetMuteRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SetMuteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.SetMuteRequest.class, com.google.cloud.securitycenter.v1.SetMuteRequest.Builder.class); + com.google.cloud.securitycenter.v1.SetMuteRequest.class, + com.google.cloud.securitycenter.v1.SetMuteRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.SetMuteRequest.newBuilder() @@ -376,16 +425,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -397,9 +445,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor; } @java.lang.Override @@ -418,7 +466,8 @@ public com.google.cloud.securitycenter.v1.SetMuteRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.SetMuteRequest buildPartial() { - com.google.cloud.securitycenter.v1.SetMuteRequest result = new com.google.cloud.securitycenter.v1.SetMuteRequest(this); + com.google.cloud.securitycenter.v1.SetMuteRequest result = + new com.google.cloud.securitycenter.v1.SetMuteRequest(this); result.name_ = name_; result.mute_ = mute_; onBuilt(); @@ -429,38 +478,39 @@ public com.google.cloud.securitycenter.v1.SetMuteRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.SetMuteRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.SetMuteRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.SetMuteRequest) other); } else { super.mergeFrom(other); return this; @@ -468,7 +518,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.SetMuteRequest other) { - if (other == com.google.cloud.securitycenter.v1.SetMuteRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.SetMuteRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -495,7 +546,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.SetMuteRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.SetMuteRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -507,6 +559,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -516,14 +570,16 @@ public Builder mergeFrom(
      * "projects/{project_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -532,6 +588,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -541,16 +599,17 @@ public java.lang.String getName() {
      * "projects/{project_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -558,6 +617,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -567,21 +628,25 @@ public java.lang.String getName() {
      * "projects/{project_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -591,16 +656,21 @@ public Builder setName(
      * "projects/{project_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -610,17 +680,19 @@ public Builder clearName() {
      * "projects/{project_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -628,51 +700,73 @@ public Builder setNameBytes( private int mute_ = 0; /** + * + * *
      * Required. The desired state of the Mute.
      * 
* - * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for mute. */ - @java.lang.Override public int getMuteValue() { + @java.lang.Override + public int getMuteValue() { return mute_; } /** + * + * *
      * Required. The desired state of the Mute.
      * 
* - * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for mute to set. * @return This builder for chaining. */ public Builder setMuteValue(int value) { - + mute_ = value; onChanged(); return this; } /** + * + * *
      * Required. The desired state of the Mute.
      * 
* - * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The mute. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding.Mute getMute() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1.Finding.Mute result = com.google.cloud.securitycenter.v1.Finding.Mute.valueOf(mute_); + com.google.cloud.securitycenter.v1.Finding.Mute result = + com.google.cloud.securitycenter.v1.Finding.Mute.valueOf(mute_); return result == null ? com.google.cloud.securitycenter.v1.Finding.Mute.UNRECOGNIZED : result; } /** + * + * *
      * Required. The desired state of the Mute.
      * 
* - * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The mute to set. * @return This builder for chaining. */ @@ -680,28 +774,33 @@ public Builder setMute(com.google.cloud.securitycenter.v1.Finding.Mute value) { if (value == null) { throw new NullPointerException(); } - + mute_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The desired state of the Mute.
      * 
* - * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearMute() { - + mute_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -711,12 +810,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.SetMuteRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.SetMuteRequest) private static final com.google.cloud.securitycenter.v1.SetMuteRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.SetMuteRequest(); } @@ -725,16 +824,16 @@ public static com.google.cloud.securitycenter.v1.SetMuteRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetMuteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetMuteRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetMuteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetMuteRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -749,6 +848,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.SetMuteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequestOrBuilder.java index 17cbe3341..317dcd3f1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetMuteRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; -public interface SetMuteRequestOrBuilder extends +public interface SetMuteRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.SetMuteRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -17,11 +35,16 @@ public interface SetMuteRequestOrBuilder extends
    * "projects/{project_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -31,27 +54,39 @@ public interface SetMuteRequestOrBuilder extends
    * "projects/{project_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The desired state of the Mute.
    * 
* - * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for mute. */ int getMuteValue(); /** + * + * *
    * Required. The desired state of the Mute.
    * 
* - * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The mute. */ com.google.cloud.securitycenter.v1.Finding.Mute getMute(); diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java index 41dc218be..da2512d86 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/source.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Security Command Center finding source. A finding source
  * is an entity or a mechanism that can produce a finding. A source is like a
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1.Source}
  */
-public final class Source extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Source extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Source)
     SourceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Source.newBuilder() to construct.
   private Source(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Source() {
     name_ = "";
     displayName_ = "";
@@ -31,16 +49,15 @@ private Source() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Source();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Source(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,37 +76,41 @@ private Source(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              displayName_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          case 114: {
-            java.lang.String s = input.readStringRequireUtf8();
+              description_ = s;
+              break;
+            }
+          case 114:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            canonicalName_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              canonicalName_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -97,29 +118,33 @@ private Source(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1_Source_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1.SourceOuterClass
+        .internal_static_google_cloud_securitycenter_v1_Source_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1.SourceOuterClass
+        .internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1.Source.class, com.google.cloud.securitycenter.v1.Source.Builder.class);
+            com.google.cloud.securitycenter.v1.Source.class,
+            com.google.cloud.securitycenter.v1.Source.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -128,6 +153,7 @@ private Source(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -136,14 +162,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -152,16 +179,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -172,6 +198,8 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -181,6 +209,7 @@ public java.lang.String getName() {
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -189,14 +218,15 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -206,16 +236,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -226,6 +255,8 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -237,6 +268,7 @@ public java.lang.String getDisplayName() {
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -245,14 +277,15 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -264,16 +297,15 @@ public java.lang.String getDescription() {
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -284,6 +316,8 @@ public java.lang.String getDescription() { public static final int CANONICAL_NAME_FIELD_NUMBER = 14; private volatile java.lang.Object canonicalName_; /** + * + * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}",
@@ -294,6 +328,7 @@ public java.lang.String getDescription() {
    * 
* * string canonical_name = 14; + * * @return The canonicalName. */ @java.lang.Override @@ -302,14 +337,15 @@ public java.lang.String getCanonicalName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; } } /** + * + * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}",
@@ -320,16 +356,15 @@ public java.lang.String getCanonicalName() {
    * 
* * string canonical_name = 14; + * * @return The bytes for canonicalName. */ @java.lang.Override - public com.google.protobuf.ByteString - getCanonicalNameBytes() { + public com.google.protobuf.ByteString getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -338,6 +373,7 @@ public java.lang.String getCanonicalName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -349,8 +385,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -392,21 +427,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.Source)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1.Source other = (com.google.cloud.securitycenter.v1.Source) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getCanonicalName() - .equals(other.getCanonicalName())) return false; + com.google.cloud.securitycenter.v1.Source other = + (com.google.cloud.securitycenter.v1.Source) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getCanonicalName().equals(other.getCanonicalName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -431,97 +463,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1.Source parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1.Source parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Source parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Source parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Source parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Source parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1.Source parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Source parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Source parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1.Source parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1.Source parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Source parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1.Source parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1.Source parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1.Source prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Security Command Center finding source. A finding source
    * is an entity or a mechanism that can produce a finding. A source is like a
@@ -531,21 +570,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1.Source}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Source)
       com.google.cloud.securitycenter.v1.SourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1_Source_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1.SourceOuterClass
+          .internal_static_google_cloud_securitycenter_v1_Source_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1.SourceOuterClass
+          .internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1.Source.class, com.google.cloud.securitycenter.v1.Source.Builder.class);
+              com.google.cloud.securitycenter.v1.Source.class,
+              com.google.cloud.securitycenter.v1.Source.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1.Source.newBuilder()
@@ -553,16 +594,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -578,9 +618,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1_Source_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1.SourceOuterClass
+          .internal_static_google_cloud_securitycenter_v1_Source_descriptor;
     }
 
     @java.lang.Override
@@ -599,7 +639,8 @@ public com.google.cloud.securitycenter.v1.Source build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1.Source buildPartial() {
-      com.google.cloud.securitycenter.v1.Source result = new com.google.cloud.securitycenter.v1.Source(this);
+      com.google.cloud.securitycenter.v1.Source result =
+          new com.google.cloud.securitycenter.v1.Source(this);
       result.name_ = name_;
       result.displayName_ = displayName_;
       result.description_ = description_;
@@ -612,38 +653,39 @@ public com.google.cloud.securitycenter.v1.Source buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1.Source) {
-        return mergeFrom((com.google.cloud.securitycenter.v1.Source)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1.Source) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -699,6 +741,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -707,13 +751,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -722,6 +766,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -730,15 +776,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -746,6 +791,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -754,20 +801,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -776,15 +825,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -793,16 +845,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -810,6 +862,8 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -819,13 +873,13 @@ public Builder setNameBytes(
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -834,6 +888,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -843,15 +899,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -859,6 +914,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -868,20 +925,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -891,15 +950,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -909,16 +971,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -926,6 +988,8 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -937,13 +1001,13 @@ public Builder setDisplayNameBytes(
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -952,6 +1016,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -963,15 +1029,14 @@ public java.lang.String getDescription() {
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -979,6 +1044,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -990,20 +1057,22 @@ public java.lang.String getDescription() {
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -1015,15 +1084,18 @@ public Builder setDescription(
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -1035,16 +1107,16 @@ public Builder clearDescription() {
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1052,6 +1124,8 @@ public Builder setDescriptionBytes( private java.lang.Object canonicalName_ = ""; /** + * + * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}",
@@ -1062,13 +1136,13 @@ public Builder setDescriptionBytes(
      * 
* * string canonical_name = 14; + * * @return The canonicalName. */ public java.lang.String getCanonicalName() { java.lang.Object ref = canonicalName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; @@ -1077,6 +1151,8 @@ public java.lang.String getCanonicalName() { } } /** + * + * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}",
@@ -1087,15 +1163,14 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 14; + * * @return The bytes for canonicalName. */ - public com.google.protobuf.ByteString - getCanonicalNameBytes() { + public com.google.protobuf.ByteString getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -1103,6 +1178,8 @@ public java.lang.String getCanonicalName() { } } /** + * + * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}",
@@ -1113,20 +1190,22 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 14; + * * @param value The canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalName( - java.lang.String value) { + public Builder setCanonicalName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + canonicalName_ = value; onChanged(); return this; } /** + * + * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}",
@@ -1137,15 +1216,18 @@ public Builder setCanonicalName(
      * 
* * string canonical_name = 14; + * * @return This builder for chaining. */ public Builder clearCanonicalName() { - + canonicalName_ = getDefaultInstance().getCanonicalName(); onChanged(); return this; } /** + * + * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}",
@@ -1156,23 +1238,23 @@ public Builder clearCanonicalName() {
      * 
* * string canonical_name = 14; + * * @param value The bytes for canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalNameBytes( - com.google.protobuf.ByteString value) { + public Builder setCanonicalNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1182,12 +1264,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Source) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Source) private static final com.google.cloud.securitycenter.v1.Source DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Source(); } @@ -1196,16 +1278,16 @@ public static com.google.cloud.securitycenter.v1.Source getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Source parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Source(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Source parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Source(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1220,6 +1302,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1.Source getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java index 72b15202d..beec91c95 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/source.proto package com.google.cloud.securitycenter.v1; -public interface SourceOrBuilder extends +public interface SourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Source) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -16,10 +34,13 @@ public interface SourceOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -28,12 +49,14 @@ public interface SourceOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -43,10 +66,13 @@ public interface SourceOrBuilder extends
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -56,12 +82,14 @@ public interface SourceOrBuilder extends
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -73,10 +101,13 @@ public interface SourceOrBuilder extends
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -88,12 +119,14 @@ public interface SourceOrBuilder extends
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}",
@@ -104,10 +137,13 @@ public interface SourceOrBuilder extends
    * 
* * string canonical_name = 14; + * * @return The canonicalName. */ java.lang.String getCanonicalName(); /** + * + * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}",
@@ -118,8 +154,8 @@ public interface SourceOrBuilder extends
    * 
* * string canonical_name = 14; + * * @return The bytes for canonicalName. */ - com.google.protobuf.ByteString - getCanonicalNameBytes(); + com.google.protobuf.ByteString getCanonicalNameBytes(); } diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java new file mode 100644 index 000000000..f1760010d --- /dev/null +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SourceOuterClass.java @@ -0,0 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/source.proto + +package com.google.cloud.securitycenter.v1; + +public final class SourceOuterClass { + private SourceOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_Source_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/securitycenter/v1/source." + + "proto\022\036google.cloud.securitycenter.v1\032\031g" + + "oogle/api/resource.proto\"\375\001\n\006Source\022\014\n\004n" + + "ame\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013descr" + + "iption\030\003 \001(\t\022\026\n\016canonical_name\030\016 \001(\t:\241\001\352" + + "A\235\001\n$securitycenter.googleapis.com/Sourc" + + "e\022-organizations/{organization}/sources/" + + "{source}\022!folders/{folder}/sources/{sour" + + "ce}\022#projects/{project}/sources/{source}" + + "B\332\001\n\"com.google.cloud.securitycenter.v1P" + + "\001ZLgoogle.golang.org/genproto/googleapis" + + "/cloud/securitycenter/v1;securitycenter\252" + + "\002\036Google.Cloud.SecurityCenter.V1\312\002\036Googl" + + "e\\Cloud\\SecurityCenter\\V1\352\002!Google::Clou" + + "d::SecurityCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_Source_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_Source_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_Source_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Description", "CanonicalName", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequest.java rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequest.java index 1d117245a..0419d7c0b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequest.java +++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1/securitycenter_service.proto package com.google.cloud.securitycenter.v1; /** + * + * *
  * Request message for updating a BigQuery export.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateBigQueryExportRequest} */ -public final class UpdateBigQueryExportRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateBigQueryExportRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateBigQueryExportRequest) UpdateBigQueryExportRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateBigQueryExportRequest.newBuilder() to construct. private UpdateBigQueryExportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateBigQueryExportRequest() { - } + + private UpdateBigQueryExportRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateBigQueryExportRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateBigQueryExportRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,45 @@ private UpdateBigQueryExportRequest( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1.BigQueryExport.Builder subBuilder = null; - if (bigQueryExport_ != null) { - subBuilder = bigQueryExport_.toBuilder(); - } - bigQueryExport_ = input.readMessage(com.google.cloud.securitycenter.v1.BigQueryExport.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bigQueryExport_); - bigQueryExport_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.securitycenter.v1.BigQueryExport.Builder subBuilder = null; + if (bigQueryExport_ != null) { + subBuilder = bigQueryExport_.toBuilder(); + } + bigQueryExport_ = + input.readMessage( + com.google.cloud.securitycenter.v1.BigQueryExport.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bigQueryExport_); + bigQueryExport_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +114,41 @@ private UpdateBigQueryExportRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.class, com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.class, + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.Builder.class); } public static final int BIG_QUERY_EXPORT_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.BigQueryExport bigQueryExport_; /** + * + * *
    * Required. The BigQuery export being updated.
    * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the bigQueryExport field is set. */ @java.lang.Override @@ -127,23 +156,34 @@ public boolean hasBigQueryExport() { return bigQueryExport_ != null; } /** + * + * *
    * Required. The BigQuery export being updated.
    * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bigQueryExport. */ @java.lang.Override public com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExport() { - return bigQueryExport_ == null ? com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() : bigQueryExport_; + return bigQueryExport_ == null + ? com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() + : bigQueryExport_; } /** + * + * *
    * Required. The BigQuery export being updated.
    * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExportOrBuilder() { @@ -153,12 +193,15 @@ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExp public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -166,12 +209,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -179,6 +225,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
@@ -192,6 +240,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -203,8 +252,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (bigQueryExport_ != null) {
       output.writeMessage(1, getBigQueryExport());
     }
@@ -221,12 +269,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (bigQueryExport_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getBigQueryExport());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBigQueryExport());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -236,22 +282,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest other = (com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest) obj;
+    com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest other =
+        (com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest) obj;
 
     if (hasBigQueryExport() != other.hasBigQueryExport()) return false;
     if (hasBigQueryExport()) {
-      if (!getBigQueryExport()
-          .equals(other.getBigQueryExport())) return false;
+      if (!getBigQueryExport().equals(other.getBigQueryExport())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -278,117 +323,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for updating a BigQuery export.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateBigQueryExportRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateBigQueryExportRequest) com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.class, com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.class, + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.newBuilder() @@ -396,16 +451,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,13 +479,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.getDefaultInstance(); } @@ -446,7 +501,8 @@ public com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest buildPartial() { - com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest result = new com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest(this); + com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest result = + new com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest(this); if (bigQueryExportBuilder_ == null) { result.bigQueryExport_ = bigQueryExport_; } else { @@ -465,38 +521,39 @@ public com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest) other); } else { super.mergeFrom(other); return this; @@ -504,7 +561,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest other) { - if (other == com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest.getDefaultInstance()) + return this; if (other.hasBigQueryExport()) { mergeBigQueryExport(other.getBigQueryExport()); } @@ -530,7 +589,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -542,39 +603,58 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.BigQueryExport bigQueryExport_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.BigQueryExport, com.google.cloud.securitycenter.v1.BigQueryExport.Builder, com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> bigQueryExportBuilder_; + com.google.cloud.securitycenter.v1.BigQueryExport, + com.google.cloud.securitycenter.v1.BigQueryExport.Builder, + com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> + bigQueryExportBuilder_; /** + * + * *
      * Required. The BigQuery export being updated.
      * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the bigQueryExport field is set. */ public boolean hasBigQueryExport() { return bigQueryExportBuilder_ != null || bigQueryExport_ != null; } /** + * + * *
      * Required. The BigQuery export being updated.
      * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bigQueryExport. */ public com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExport() { if (bigQueryExportBuilder_ == null) { - return bigQueryExport_ == null ? com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() : bigQueryExport_; + return bigQueryExport_ == null + ? com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() + : bigQueryExport_; } else { return bigQueryExportBuilder_.getMessage(); } } /** + * + * *
      * Required. The BigQuery export being updated.
      * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBigQueryExport(com.google.cloud.securitycenter.v1.BigQueryExport value) { if (bigQueryExportBuilder_ == null) { @@ -590,11 +670,15 @@ public Builder setBigQueryExport(com.google.cloud.securitycenter.v1.BigQueryExpo return this; } /** + * + * *
      * Required. The BigQuery export being updated.
      * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBigQueryExport( com.google.cloud.securitycenter.v1.BigQueryExport.Builder builderForValue) { @@ -608,17 +692,23 @@ public Builder setBigQueryExport( return this; } /** + * + * *
      * Required. The BigQuery export being updated.
      * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBigQueryExport(com.google.cloud.securitycenter.v1.BigQueryExport value) { if (bigQueryExportBuilder_ == null) { if (bigQueryExport_ != null) { bigQueryExport_ = - com.google.cloud.securitycenter.v1.BigQueryExport.newBuilder(bigQueryExport_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.BigQueryExport.newBuilder(bigQueryExport_) + .mergeFrom(value) + .buildPartial(); } else { bigQueryExport_ = value; } @@ -630,11 +720,15 @@ public Builder mergeBigQueryExport(com.google.cloud.securitycenter.v1.BigQueryEx return this; } /** + * + * *
      * Required. The BigQuery export being updated.
      * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBigQueryExport() { if (bigQueryExportBuilder_ == null) { @@ -648,48 +742,64 @@ public Builder clearBigQueryExport() { return this; } /** + * + * *
      * Required. The BigQuery export being updated.
      * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.BigQueryExport.Builder getBigQueryExportBuilder() { - + onChanged(); return getBigQueryExportFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The BigQuery export being updated.
      * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExportOrBuilder() { if (bigQueryExportBuilder_ != null) { return bigQueryExportBuilder_.getMessageOrBuilder(); } else { - return bigQueryExport_ == null ? - com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() : bigQueryExport_; + return bigQueryExport_ == null + ? com.google.cloud.securitycenter.v1.BigQueryExport.getDefaultInstance() + : bigQueryExport_; } } /** + * + * *
      * Required. The BigQuery export being updated.
      * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.BigQueryExport, com.google.cloud.securitycenter.v1.BigQueryExport.Builder, com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> + com.google.cloud.securitycenter.v1.BigQueryExport, + com.google.cloud.securitycenter.v1.BigQueryExport.Builder, + com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder> getBigQueryExportFieldBuilder() { if (bigQueryExportBuilder_ == null) { - bigQueryExportBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.BigQueryExport, com.google.cloud.securitycenter.v1.BigQueryExport.Builder, com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder>( - getBigQueryExport(), - getParentForChildren(), - isClean()); + bigQueryExportBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.BigQueryExport, + com.google.cloud.securitycenter.v1.BigQueryExport.Builder, + com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder>( + getBigQueryExport(), getParentForChildren(), isClean()); bigQueryExport_ = null; } return bigQueryExportBuilder_; @@ -697,36 +807,49 @@ public com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExp private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -748,6 +871,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -755,8 +880,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -767,6 +891,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -778,7 +904,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -790,6 +916,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -809,6 +937,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -817,11 +947,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -833,11 +965,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -846,21 +981,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -870,30 +1008,32 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.UpdateBigQueryExportRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateBigQueryExportRequest)
-  private static final com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest();
   }
 
-  public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest getDefaultInstance() {
+  public static com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateBigQueryExportRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateBigQueryExportRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateBigQueryExportRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateBigQueryExportRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -905,9 +1045,8 @@ public com.google.protobuf.Parser getParserForType(
   }
 
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest getDefaultInstanceForType() {
+  public com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequestOrBuilder.java
similarity index 59%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequestOrBuilder.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequestOrBuilder.java
index c413bbc08..6052ae1fb 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateBigQueryExportRequestOrBuilder.java
@@ -1,60 +1,98 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface UpdateBigQueryExportRequestOrBuilder extends
+public interface UpdateBigQueryExportRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateBigQueryExportRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The BigQuery export being updated.
    * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the bigQueryExport field is set. */ boolean hasBigQueryExport(); /** + * + * *
    * Required. The BigQuery export being updated.
    * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bigQueryExport. */ com.google.cloud.securitycenter.v1.BigQueryExport getBigQueryExport(); /** + * + * *
    * Required. The BigQuery export being updated.
    * 
* - * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.BigQueryExport big_query_export = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1.BigQueryExportOrBuilder getBigQueryExportOrBuilder(); /** + * + * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequest.java
similarity index 65%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequest.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequest.java
index a40cfec2a..5d6c86baf 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequest.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
 /**
+ *
+ *
  * 
  * Request message for updating a ExternalSystem resource.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateExternalSystemRequest} */ -public final class UpdateExternalSystemRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateExternalSystemRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateExternalSystemRequest) UpdateExternalSystemRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateExternalSystemRequest.newBuilder() to construct. private UpdateExternalSystemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateExternalSystemRequest() { - } + + private UpdateExternalSystemRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateExternalSystemRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateExternalSystemRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,45 @@ private UpdateExternalSystemRequest( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1.ExternalSystem.Builder subBuilder = null; - if (externalSystem_ != null) { - subBuilder = externalSystem_.toBuilder(); - } - externalSystem_ = input.readMessage(com.google.cloud.securitycenter.v1.ExternalSystem.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(externalSystem_); - externalSystem_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.securitycenter.v1.ExternalSystem.Builder subBuilder = null; + if (externalSystem_ != null) { + subBuilder = externalSystem_.toBuilder(); + } + externalSystem_ = + input.readMessage( + com.google.cloud.securitycenter.v1.ExternalSystem.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(externalSystem_); + externalSystem_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +114,41 @@ private UpdateExternalSystemRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.class, com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.class, + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.Builder.class); } public static final int EXTERNAL_SYSTEM_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.ExternalSystem externalSystem_; /** + * + * *
    * Required. The external system resource to update.
    * 
* - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the externalSystem field is set. */ @java.lang.Override @@ -127,23 +156,34 @@ public boolean hasExternalSystem() { return externalSystem_ != null; } /** + * + * *
    * Required. The external system resource to update.
    * 
* - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The externalSystem. */ @java.lang.Override public com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystem() { - return externalSystem_ == null ? com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance() : externalSystem_; + return externalSystem_ == null + ? com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance() + : externalSystem_; } /** + * + * *
    * Required. The external system resource to update.
    * 
* - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder getExternalSystemOrBuilder() { @@ -153,12 +193,15 @@ public com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder getExternalSys public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The FieldMask to use when updating the external system resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -166,12 +209,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The FieldMask to use when updating the external system resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -179,6 +225,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The FieldMask to use when updating the external system resource.
    * If empty all mutable fields will be updated.
@@ -192,6 +240,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -203,8 +252,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (externalSystem_ != null) {
       output.writeMessage(1, getExternalSystem());
     }
@@ -221,12 +269,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (externalSystem_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getExternalSystem());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExternalSystem());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -236,22 +282,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest other = (com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest) obj;
+    com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest other =
+        (com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest) obj;
 
     if (hasExternalSystem() != other.hasExternalSystem()) return false;
     if (hasExternalSystem()) {
-      if (!getExternalSystem()
-          .equals(other.getExternalSystem())) return false;
+      if (!getExternalSystem().equals(other.getExternalSystem())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -278,117 +323,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for updating a ExternalSystem resource.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateExternalSystemRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateExternalSystemRequest) com.google.cloud.securitycenter.v1.UpdateExternalSystemRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.class, com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.class, + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.newBuilder() @@ -396,16 +451,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,13 +479,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.getDefaultInstance(); } @@ -446,7 +501,8 @@ public com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest buildPartial() { - com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest result = new com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest(this); + com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest result = + new com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest(this); if (externalSystemBuilder_ == null) { result.externalSystem_ = externalSystem_; } else { @@ -465,38 +521,39 @@ public com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest) other); } else { super.mergeFrom(other); return this; @@ -504,7 +561,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest other) { - if (other == com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest.getDefaultInstance()) + return this; if (other.hasExternalSystem()) { mergeExternalSystem(other.getExternalSystem()); } @@ -530,7 +589,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -542,39 +603,58 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.ExternalSystem externalSystem_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.ExternalSystem, com.google.cloud.securitycenter.v1.ExternalSystem.Builder, com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder> externalSystemBuilder_; + com.google.cloud.securitycenter.v1.ExternalSystem, + com.google.cloud.securitycenter.v1.ExternalSystem.Builder, + com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder> + externalSystemBuilder_; /** + * + * *
      * Required. The external system resource to update.
      * 
* - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the externalSystem field is set. */ public boolean hasExternalSystem() { return externalSystemBuilder_ != null || externalSystem_ != null; } /** + * + * *
      * Required. The external system resource to update.
      * 
* - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The externalSystem. */ public com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystem() { if (externalSystemBuilder_ == null) { - return externalSystem_ == null ? com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance() : externalSystem_; + return externalSystem_ == null + ? com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance() + : externalSystem_; } else { return externalSystemBuilder_.getMessage(); } } /** + * + * *
      * Required. The external system resource to update.
      * 
* - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setExternalSystem(com.google.cloud.securitycenter.v1.ExternalSystem value) { if (externalSystemBuilder_ == null) { @@ -590,11 +670,15 @@ public Builder setExternalSystem(com.google.cloud.securitycenter.v1.ExternalSyst return this; } /** + * + * *
      * Required. The external system resource to update.
      * 
* - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setExternalSystem( com.google.cloud.securitycenter.v1.ExternalSystem.Builder builderForValue) { @@ -608,17 +692,23 @@ public Builder setExternalSystem( return this; } /** + * + * *
      * Required. The external system resource to update.
      * 
* - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeExternalSystem(com.google.cloud.securitycenter.v1.ExternalSystem value) { if (externalSystemBuilder_ == null) { if (externalSystem_ != null) { externalSystem_ = - com.google.cloud.securitycenter.v1.ExternalSystem.newBuilder(externalSystem_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.ExternalSystem.newBuilder(externalSystem_) + .mergeFrom(value) + .buildPartial(); } else { externalSystem_ = value; } @@ -630,11 +720,15 @@ public Builder mergeExternalSystem(com.google.cloud.securitycenter.v1.ExternalSy return this; } /** + * + * *
      * Required. The external system resource to update.
      * 
* - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearExternalSystem() { if (externalSystemBuilder_ == null) { @@ -648,48 +742,64 @@ public Builder clearExternalSystem() { return this; } /** + * + * *
      * Required. The external system resource to update.
      * 
* - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.ExternalSystem.Builder getExternalSystemBuilder() { - + onChanged(); return getExternalSystemFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The external system resource to update.
      * 
* - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder getExternalSystemOrBuilder() { if (externalSystemBuilder_ != null) { return externalSystemBuilder_.getMessageOrBuilder(); } else { - return externalSystem_ == null ? - com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance() : externalSystem_; + return externalSystem_ == null + ? com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance() + : externalSystem_; } } /** + * + * *
      * Required. The external system resource to update.
      * 
* - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.ExternalSystem, com.google.cloud.securitycenter.v1.ExternalSystem.Builder, com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder> + com.google.cloud.securitycenter.v1.ExternalSystem, + com.google.cloud.securitycenter.v1.ExternalSystem.Builder, + com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder> getExternalSystemFieldBuilder() { if (externalSystemBuilder_ == null) { - externalSystemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.ExternalSystem, com.google.cloud.securitycenter.v1.ExternalSystem.Builder, com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder>( - getExternalSystem(), - getParentForChildren(), - isClean()); + externalSystemBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.ExternalSystem, + com.google.cloud.securitycenter.v1.ExternalSystem.Builder, + com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder>( + getExternalSystem(), getParentForChildren(), isClean()); externalSystem_ = null; } return externalSystemBuilder_; @@ -697,36 +807,49 @@ public com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder getExternalSys private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The FieldMask to use when updating the external system resource.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The FieldMask to use when updating the external system resource.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The FieldMask to use when updating the external system resource.
      * If empty all mutable fields will be updated.
@@ -748,6 +871,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the external system resource.
      * If empty all mutable fields will be updated.
@@ -755,8 +880,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -767,6 +891,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the external system resource.
      * If empty all mutable fields will be updated.
@@ -778,7 +904,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -790,6 +916,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the external system resource.
      * If empty all mutable fields will be updated.
@@ -809,6 +937,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the external system resource.
      * If empty all mutable fields will be updated.
@@ -817,11 +947,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the external system resource.
      * If empty all mutable fields will be updated.
@@ -833,11 +965,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the external system resource.
      * If empty all mutable fields will be updated.
@@ -846,21 +981,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -870,30 +1008,32 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.UpdateExternalSystemRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateExternalSystemRequest)
-  private static final com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest();
   }
 
-  public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest getDefaultInstance() {
+  public static com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateExternalSystemRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateExternalSystemRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateExternalSystemRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateExternalSystemRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -905,9 +1045,8 @@ public com.google.protobuf.Parser getParserForType(
   }
 
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest getDefaultInstanceForType() {
+  public com.google.cloud.securitycenter.v1.UpdateExternalSystemRequest
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequestOrBuilder.java
similarity index 60%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequestOrBuilder.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequestOrBuilder.java
index eed9320b3..ec7973e53 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateExternalSystemRequestOrBuilder.java
@@ -1,60 +1,98 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface UpdateExternalSystemRequestOrBuilder extends
+public interface UpdateExternalSystemRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateExternalSystemRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The external system resource to update.
    * 
* - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the externalSystem field is set. */ boolean hasExternalSystem(); /** + * + * *
    * Required. The external system resource to update.
    * 
* - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The externalSystem. */ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystem(); /** + * + * *
    * Required. The external system resource to update.
    * 
* - * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.ExternalSystem external_system = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder getExternalSystemOrBuilder(); /** + * + * *
    * The FieldMask to use when updating the external system resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the external system resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the external system resource.
    * If empty all mutable fields will be updated.
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java
similarity index 72%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java
index 8c997ae41..3adf7f4c0 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
 /**
+ *
+ *
  * 
  * Request message for updating or creating a finding.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateFindingRequest} */ -public final class UpdateFindingRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateFindingRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateFindingRequest) UpdateFindingRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateFindingRequest.newBuilder() to construct. private UpdateFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateFindingRequest() { - } + + private UpdateFindingRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateFindingRequest( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1.Finding.Builder subBuilder = null; - if (finding_ != null) { - subBuilder = finding_.toBuilder(); - } - finding_ = input.readMessage(com.google.cloud.securitycenter.v1.Finding.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(finding_); - finding_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.securitycenter.v1.Finding.Builder subBuilder = null; + if (finding_ != null) { + subBuilder = finding_.toBuilder(); + } + finding_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Finding.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finding_); + finding_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +113,33 @@ private UpdateFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateFindingRequest.class, com.google.cloud.securitycenter.v1.UpdateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateFindingRequest.class, + com.google.cloud.securitycenter.v1.UpdateFindingRequest.Builder.class); } public static final int FINDING_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.Finding finding_; /** + * + * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -123,7 +148,10 @@ private UpdateFindingRequest(
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the finding field is set. */ @java.lang.Override @@ -131,6 +159,8 @@ public boolean hasFinding() { return finding_ != null; } /** + * + * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -139,14 +169,21 @@ public boolean hasFinding() {
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Finding getFinding() { - return finding_ == null ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() + : finding_; } /** + * + * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -155,7 +192,9 @@ public com.google.cloud.securitycenter.v1.Finding getFinding() {
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { @@ -165,6 +204,8 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -175,6 +216,7 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder()
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -182,6 +224,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -192,6 +236,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -199,6 +244,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -216,6 +263,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -227,8 +275,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (finding_ != null) {
       output.writeMessage(1, getFinding());
     }
@@ -245,12 +292,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (finding_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getFinding());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFinding());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -260,22 +305,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.UpdateFindingRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.UpdateFindingRequest other = (com.google.cloud.securitycenter.v1.UpdateFindingRequest) obj;
+    com.google.cloud.securitycenter.v1.UpdateFindingRequest other =
+        (com.google.cloud.securitycenter.v1.UpdateFindingRequest) obj;
 
     if (hasFinding() != other.hasFinding()) return false;
     if (hasFinding()) {
-      if (!getFinding()
-          .equals(other.getFinding())) return false;
+      if (!getFinding().equals(other.getFinding())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -302,117 +346,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateFindingRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.securitycenter.v1.UpdateFindingRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.securitycenter.v1.UpdateFindingRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for updating or creating a finding.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateFindingRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateFindingRequest) com.google.cloud.securitycenter.v1.UpdateFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateFindingRequest.class, com.google.cloud.securitycenter.v1.UpdateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateFindingRequest.class, + com.google.cloud.securitycenter.v1.UpdateFindingRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.UpdateFindingRequest.newBuilder() @@ -420,16 +474,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -449,9 +502,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor; } @java.lang.Override @@ -470,7 +523,8 @@ public com.google.cloud.securitycenter.v1.UpdateFindingRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.UpdateFindingRequest buildPartial() { - com.google.cloud.securitycenter.v1.UpdateFindingRequest result = new com.google.cloud.securitycenter.v1.UpdateFindingRequest(this); + com.google.cloud.securitycenter.v1.UpdateFindingRequest result = + new com.google.cloud.securitycenter.v1.UpdateFindingRequest(this); if (findingBuilder_ == null) { result.finding_ = finding_; } else { @@ -489,38 +543,39 @@ public com.google.cloud.securitycenter.v1.UpdateFindingRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.UpdateFindingRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.UpdateFindingRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.UpdateFindingRequest) other); } else { super.mergeFrom(other); return this; @@ -528,7 +583,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.UpdateFindingRequest other) { - if (other == com.google.cloud.securitycenter.v1.UpdateFindingRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.UpdateFindingRequest.getDefaultInstance()) + return this; if (other.hasFinding()) { mergeFinding(other.getFinding()); } @@ -554,7 +610,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.UpdateFindingRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.UpdateFindingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -566,8 +623,13 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder> findingBuilder_; + com.google.cloud.securitycenter.v1.Finding, + com.google.cloud.securitycenter.v1.Finding.Builder, + com.google.cloud.securitycenter.v1.FindingOrBuilder> + findingBuilder_; /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -576,13 +638,18 @@ public Builder mergeFrom(
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -591,17 +658,24 @@ public boolean hasFinding() {
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The finding. */ public com.google.cloud.securitycenter.v1.Finding getFinding() { if (findingBuilder_ == null) { - return finding_ == null ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() + : finding_; } else { return findingBuilder_.getMessage(); } } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -610,7 +684,9 @@ public com.google.cloud.securitycenter.v1.Finding getFinding() {
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) { if (findingBuilder_ == null) { @@ -626,6 +702,8 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) { return this; } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -634,10 +712,11 @@ public Builder setFinding(com.google.cloud.securitycenter.v1.Finding value) {
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setFinding( - com.google.cloud.securitycenter.v1.Finding.Builder builderForValue) { + public Builder setFinding(com.google.cloud.securitycenter.v1.Finding.Builder builderForValue) { if (findingBuilder_ == null) { finding_ = builderForValue.build(); onChanged(); @@ -648,6 +727,8 @@ public Builder setFinding( return this; } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -656,13 +737,17 @@ public Builder setFinding(
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) { if (findingBuilder_ == null) { if (finding_ != null) { finding_ = - com.google.cloud.securitycenter.v1.Finding.newBuilder(finding_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.Finding.newBuilder(finding_) + .mergeFrom(value) + .buildPartial(); } else { finding_ = value; } @@ -674,6 +759,8 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) { return this; } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -682,7 +769,9 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1.Finding value) {
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFinding() { if (findingBuilder_ == null) { @@ -696,6 +785,8 @@ public Builder clearFinding() { return this; } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -704,14 +795,18 @@ public Builder clearFinding() {
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() { - + onChanged(); return getFindingFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -720,17 +815,22 @@ public com.google.cloud.securitycenter.v1.Finding.Builder getFindingBuilder() {
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() { if (findingBuilder_ != null) { return findingBuilder_.getMessageOrBuilder(); } else { - return finding_ == null ? - com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1.Finding.getDefaultInstance() + : finding_; } } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -739,17 +839,22 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder()
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder> + com.google.cloud.securitycenter.v1.Finding, + com.google.cloud.securitycenter.v1.Finding.Builder, + com.google.cloud.securitycenter.v1.FindingOrBuilder> getFindingFieldBuilder() { if (findingBuilder_ == null) { - findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, com.google.cloud.securitycenter.v1.FindingOrBuilder>( - getFinding(), - getParentForChildren(), - isClean()); + findingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Finding, + com.google.cloud.securitycenter.v1.Finding.Builder, + com.google.cloud.securitycenter.v1.FindingOrBuilder>( + getFinding(), getParentForChildren(), isClean()); finding_ = null; } return findingBuilder_; @@ -757,8 +862,13 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -769,12 +879,15 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder()
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -785,16 +898,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -820,6 +938,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -831,8 +951,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -843,6 +962,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -858,7 +979,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -870,6 +991,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -893,6 +1016,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -905,11 +1030,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -925,11 +1052,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -942,21 +1072,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -966,12 +1099,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.UpdateFindingRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateFindingRequest)
   private static final com.google.cloud.securitycenter.v1.UpdateFindingRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.UpdateFindingRequest();
   }
@@ -980,16 +1113,16 @@ public static com.google.cloud.securitycenter.v1.UpdateFindingRequest getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateFindingRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateFindingRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateFindingRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateFindingRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1004,6 +1137,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.securitycenter.v1.UpdateFindingRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java
similarity index 74%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java
index 6c25c8982..bfb5e72b7 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface UpdateFindingRequestOrBuilder extends
+public interface UpdateFindingRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateFindingRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -16,11 +34,16 @@ public interface UpdateFindingRequestOrBuilder extends
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the finding field is set. */ boolean hasFinding(); /** + * + * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -29,11 +52,16 @@ public interface UpdateFindingRequestOrBuilder extends
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The finding. */ com.google.cloud.securitycenter.v1.Finding getFinding(); /** + * + * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -42,11 +70,15 @@ public interface UpdateFindingRequestOrBuilder extends
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder(); /** + * + * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -57,10 +89,13 @@ public interface UpdateFindingRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -71,10 +106,13 @@ public interface UpdateFindingRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequest.java
similarity index 66%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequest.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequest.java
index 1e9308012..a9f17cc9e 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequest.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
 /**
+ *
+ *
  * 
  * Request message for updating a mute config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateMuteConfigRequest} */ -public final class UpdateMuteConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateMuteConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateMuteConfigRequest) UpdateMuteConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateMuteConfigRequest.newBuilder() to construct. private UpdateMuteConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateMuteConfigRequest() { - } + + private UpdateMuteConfigRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateMuteConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateMuteConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateMuteConfigRequest( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1.MuteConfig.Builder subBuilder = null; - if (muteConfig_ != null) { - subBuilder = muteConfig_.toBuilder(); - } - muteConfig_ = input.readMessage(com.google.cloud.securitycenter.v1.MuteConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(muteConfig_); - muteConfig_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.securitycenter.v1.MuteConfig.Builder subBuilder = null; + if (muteConfig_ != null) { + subBuilder = muteConfig_.toBuilder(); + } + muteConfig_ = + input.readMessage( + com.google.cloud.securitycenter.v1.MuteConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(muteConfig_); + muteConfig_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +113,41 @@ private UpdateMuteConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.class, com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.class, + com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.Builder.class); } public static final int MUTE_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.MuteConfig muteConfig_; /** + * + * *
    * Required. The mute config being updated.
    * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the muteConfig field is set. */ @java.lang.Override @@ -127,23 +155,34 @@ public boolean hasMuteConfig() { return muteConfig_ != null; } /** + * + * *
    * Required. The mute config being updated.
    * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The muteConfig. */ @java.lang.Override public com.google.cloud.securitycenter.v1.MuteConfig getMuteConfig() { - return muteConfig_ == null ? com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() : muteConfig_; + return muteConfig_ == null + ? com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() + : muteConfig_; } /** + * + * *
    * Required. The mute config being updated.
    * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBuilder() { @@ -153,12 +192,15 @@ public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBui public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -166,12 +208,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -179,6 +224,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
@@ -192,6 +239,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -203,8 +251,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (muteConfig_ != null) {
       output.writeMessage(1, getMuteConfig());
     }
@@ -221,12 +268,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (muteConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getMuteConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMuteConfig());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -236,22 +281,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest other = (com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest) obj;
+    com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest other =
+        (com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest) obj;
 
     if (hasMuteConfig() != other.hasMuteConfig()) return false;
     if (hasMuteConfig()) {
-      if (!getMuteConfig()
-          .equals(other.getMuteConfig())) return false;
+      if (!getMuteConfig().equals(other.getMuteConfig())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -278,117 +322,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for updating a mute config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateMuteConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateMuteConfigRequest) com.google.cloud.securitycenter.v1.UpdateMuteConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.class, com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.class, + com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.newBuilder() @@ -396,16 +450,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor; } @java.lang.Override @@ -446,7 +499,8 @@ public com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest result = new com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest(this); + com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest result = + new com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest(this); if (muteConfigBuilder_ == null) { result.muteConfig_ = muteConfig_; } else { @@ -465,38 +519,39 @@ public com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -504,7 +559,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest other) { - if (other == com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest.getDefaultInstance()) + return this; if (other.hasMuteConfig()) { mergeMuteConfig(other.getMuteConfig()); } @@ -530,7 +586,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -542,39 +599,58 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.MuteConfig muteConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.MuteConfig, com.google.cloud.securitycenter.v1.MuteConfig.Builder, com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> muteConfigBuilder_; + com.google.cloud.securitycenter.v1.MuteConfig, + com.google.cloud.securitycenter.v1.MuteConfig.Builder, + com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> + muteConfigBuilder_; /** + * + * *
      * Required. The mute config being updated.
      * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the muteConfig field is set. */ public boolean hasMuteConfig() { return muteConfigBuilder_ != null || muteConfig_ != null; } /** + * + * *
      * Required. The mute config being updated.
      * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The muteConfig. */ public com.google.cloud.securitycenter.v1.MuteConfig getMuteConfig() { if (muteConfigBuilder_ == null) { - return muteConfig_ == null ? com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() : muteConfig_; + return muteConfig_ == null + ? com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() + : muteConfig_; } else { return muteConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The mute config being updated.
      * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMuteConfig(com.google.cloud.securitycenter.v1.MuteConfig value) { if (muteConfigBuilder_ == null) { @@ -590,11 +666,15 @@ public Builder setMuteConfig(com.google.cloud.securitycenter.v1.MuteConfig value return this; } /** + * + * *
      * Required. The mute config being updated.
      * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMuteConfig( com.google.cloud.securitycenter.v1.MuteConfig.Builder builderForValue) { @@ -608,17 +688,23 @@ public Builder setMuteConfig( return this; } /** + * + * *
      * Required. The mute config being updated.
      * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeMuteConfig(com.google.cloud.securitycenter.v1.MuteConfig value) { if (muteConfigBuilder_ == null) { if (muteConfig_ != null) { muteConfig_ = - com.google.cloud.securitycenter.v1.MuteConfig.newBuilder(muteConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.MuteConfig.newBuilder(muteConfig_) + .mergeFrom(value) + .buildPartial(); } else { muteConfig_ = value; } @@ -630,11 +716,15 @@ public Builder mergeMuteConfig(com.google.cloud.securitycenter.v1.MuteConfig val return this; } /** + * + * *
      * Required. The mute config being updated.
      * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMuteConfig() { if (muteConfigBuilder_ == null) { @@ -648,48 +738,64 @@ public Builder clearMuteConfig() { return this; } /** + * + * *
      * Required. The mute config being updated.
      * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.MuteConfig.Builder getMuteConfigBuilder() { - + onChanged(); return getMuteConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The mute config being updated.
      * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBuilder() { if (muteConfigBuilder_ != null) { return muteConfigBuilder_.getMessageOrBuilder(); } else { - return muteConfig_ == null ? - com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() : muteConfig_; + return muteConfig_ == null + ? com.google.cloud.securitycenter.v1.MuteConfig.getDefaultInstance() + : muteConfig_; } } /** + * + * *
      * Required. The mute config being updated.
      * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.MuteConfig, com.google.cloud.securitycenter.v1.MuteConfig.Builder, com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> + com.google.cloud.securitycenter.v1.MuteConfig, + com.google.cloud.securitycenter.v1.MuteConfig.Builder, + com.google.cloud.securitycenter.v1.MuteConfigOrBuilder> getMuteConfigFieldBuilder() { if (muteConfigBuilder_ == null) { - muteConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.MuteConfig, com.google.cloud.securitycenter.v1.MuteConfig.Builder, com.google.cloud.securitycenter.v1.MuteConfigOrBuilder>( - getMuteConfig(), - getParentForChildren(), - isClean()); + muteConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.MuteConfig, + com.google.cloud.securitycenter.v1.MuteConfig.Builder, + com.google.cloud.securitycenter.v1.MuteConfigOrBuilder>( + getMuteConfig(), getParentForChildren(), isClean()); muteConfig_ = null; } return muteConfigBuilder_; @@ -697,36 +803,49 @@ public com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBui private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -748,6 +867,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -755,8 +876,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -767,6 +887,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -778,7 +900,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -790,6 +912,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -809,6 +933,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -817,11 +943,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -833,11 +961,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated.
      * If empty all mutable fields will be updated.
@@ -846,21 +977,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -870,12 +1004,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.UpdateMuteConfigRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateMuteConfigRequest)
   private static final com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest();
   }
@@ -884,16 +1018,16 @@ public static com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateMuteConfigRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateMuteConfigRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateMuteConfigRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateMuteConfigRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -908,6 +1042,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequestOrBuilder.java
similarity index 59%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequestOrBuilder.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequestOrBuilder.java
index ecaef6971..0958ce3d1 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateMuteConfigRequestOrBuilder.java
@@ -1,60 +1,98 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface UpdateMuteConfigRequestOrBuilder extends
+public interface UpdateMuteConfigRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateMuteConfigRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The mute config being updated.
    * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the muteConfig field is set. */ boolean hasMuteConfig(); /** + * + * *
    * Required. The mute config being updated.
    * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The muteConfig. */ com.google.cloud.securitycenter.v1.MuteConfig getMuteConfig(); /** + * + * *
    * Required. The mute config being updated.
    * 
* - * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.MuteConfig mute_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1.MuteConfigOrBuilder getMuteConfigOrBuilder(); /** + * + * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * If empty all mutable fields will be updated.
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java
similarity index 63%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java
index e56f4b773..697a426ed 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequest.java
@@ -1,39 +1,56 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
 /**
+ *
+ *
  * 
  * Request message for updating a notification config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateNotificationConfigRequest} */ -public final class UpdateNotificationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateNotificationConfigRequest) UpdateNotificationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateNotificationConfigRequest.newBuilder() to construct. - private UpdateNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateNotificationConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateNotificationConfigRequest() { - } + + private UpdateNotificationConfigRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateNotificationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateNotificationConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +69,45 @@ private UpdateNotificationConfigRequest( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1.NotificationConfig.Builder subBuilder = null; - if (notificationConfig_ != null) { - subBuilder = notificationConfig_.toBuilder(); - } - notificationConfig_ = input.readMessage(com.google.cloud.securitycenter.v1.NotificationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(notificationConfig_); - notificationConfig_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.securitycenter.v1.NotificationConfig.Builder subBuilder = null; + if (notificationConfig_ != null) { + subBuilder = notificationConfig_.toBuilder(); + } + notificationConfig_ = + input.readMessage( + com.google.cloud.securitycenter.v1.NotificationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(notificationConfig_); + notificationConfig_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +115,41 @@ private UpdateNotificationConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.class, com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.class, + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.Builder.class); } public static final int NOTIFICATION_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.NotificationConfig notificationConfig_; /** + * + * *
    * Required. The notification config to update.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the notificationConfig field is set. */ @java.lang.Override @@ -127,38 +157,53 @@ public boolean hasNotificationConfig() { return notificationConfig_ != null; } /** + * + * *
    * Required. The notification config to update.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationConfig. */ @java.lang.Override public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig() { - return notificationConfig_ == null ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() : notificationConfig_; + return notificationConfig_ == null + ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() + : notificationConfig_; } /** + * + * *
    * Required. The notification config to update.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { + public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder + getNotificationConfigOrBuilder() { return getNotificationConfig(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -166,12 +211,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -179,6 +227,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
@@ -192,6 +242,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -203,8 +254,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (notificationConfig_ != null) {
       output.writeMessage(1, getNotificationConfig());
     }
@@ -221,12 +271,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (notificationConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getNotificationConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNotificationConfig());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -236,22 +284,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest other = (com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest) obj;
+    com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest other =
+        (com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest) obj;
 
     if (hasNotificationConfig() != other.hasNotificationConfig()) return false;
     if (hasNotificationConfig()) {
-      if (!getNotificationConfig()
-          .equals(other.getNotificationConfig())) return false;
+      if (!getNotificationConfig().equals(other.getNotificationConfig())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -278,134 +325,145 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest
+      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+  public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest
+      parseDelimitedFrom(
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for updating a notification config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateNotificationConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateNotificationConfigRequest) com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.class, com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.class, + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.Builder.class); } - // Construct using com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,14 +483,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.getDefaultInstance(); + public com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest + .getDefaultInstance(); } @java.lang.Override @@ -446,7 +506,8 @@ public com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest build( @java.lang.Override public com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest result = new com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest(this); + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest result = + new com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest(this); if (notificationConfigBuilder_ == null) { result.notificationConfig_ = notificationConfig_; } else { @@ -465,46 +526,51 @@ public com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest)other); + return mergeFrom( + (com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest other) { - if (other == com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest other) { + if (other + == com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest + .getDefaultInstance()) return this; if (other.hasNotificationConfig()) { mergeNotificationConfig(other.getNotificationConfig()); } @@ -530,7 +596,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -542,41 +610,61 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.NotificationConfig notificationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig, com.google.cloud.securitycenter.v1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> notificationConfigBuilder_; + com.google.cloud.securitycenter.v1.NotificationConfig, + com.google.cloud.securitycenter.v1.NotificationConfig.Builder, + com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> + notificationConfigBuilder_; /** + * + * *
      * Required. The notification config to update.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the notificationConfig field is set. */ public boolean hasNotificationConfig() { return notificationConfigBuilder_ != null || notificationConfig_ != null; } /** + * + * *
      * Required. The notification config to update.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationConfig. */ public com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig() { if (notificationConfigBuilder_ == null) { - return notificationConfig_ == null ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() : notificationConfig_; + return notificationConfig_ == null + ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() + : notificationConfig_; } else { return notificationConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The notification config to update.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setNotificationConfig(com.google.cloud.securitycenter.v1.NotificationConfig value) { + public Builder setNotificationConfig( + com.google.cloud.securitycenter.v1.NotificationConfig value) { if (notificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -590,11 +678,15 @@ public Builder setNotificationConfig(com.google.cloud.securitycenter.v1.Notifica return this; } /** + * + * *
      * Required. The notification config to update.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNotificationConfig( com.google.cloud.securitycenter.v1.NotificationConfig.Builder builderForValue) { @@ -608,17 +700,24 @@ public Builder setNotificationConfig( return this; } /** + * + * *
      * Required. The notification config to update.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeNotificationConfig(com.google.cloud.securitycenter.v1.NotificationConfig value) { + public Builder mergeNotificationConfig( + com.google.cloud.securitycenter.v1.NotificationConfig value) { if (notificationConfigBuilder_ == null) { if (notificationConfig_ != null) { notificationConfig_ = - com.google.cloud.securitycenter.v1.NotificationConfig.newBuilder(notificationConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.NotificationConfig.newBuilder(notificationConfig_) + .mergeFrom(value) + .buildPartial(); } else { notificationConfig_ = value; } @@ -630,11 +729,15 @@ public Builder mergeNotificationConfig(com.google.cloud.securitycenter.v1.Notifi return this; } /** + * + * *
      * Required. The notification config to update.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNotificationConfig() { if (notificationConfigBuilder_ == null) { @@ -648,48 +751,66 @@ public Builder clearNotificationConfig() { return this; } /** + * + * *
      * Required. The notification config to update.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycenter.v1.NotificationConfig.Builder getNotificationConfigBuilder() { - + public com.google.cloud.securitycenter.v1.NotificationConfig.Builder + getNotificationConfigBuilder() { + onChanged(); return getNotificationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The notification config to update.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { + public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder + getNotificationConfigOrBuilder() { if (notificationConfigBuilder_ != null) { return notificationConfigBuilder_.getMessageOrBuilder(); } else { - return notificationConfig_ == null ? - com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() : notificationConfig_; + return notificationConfig_ == null + ? com.google.cloud.securitycenter.v1.NotificationConfig.getDefaultInstance() + : notificationConfig_; } } /** + * + * *
      * Required. The notification config to update.
      * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig, com.google.cloud.securitycenter.v1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> + com.google.cloud.securitycenter.v1.NotificationConfig, + com.google.cloud.securitycenter.v1.NotificationConfig.Builder, + com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder> getNotificationConfigFieldBuilder() { if (notificationConfigBuilder_ == null) { - notificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.NotificationConfig, com.google.cloud.securitycenter.v1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder>( - getNotificationConfig(), - getParentForChildren(), - isClean()); + notificationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.NotificationConfig, + com.google.cloud.securitycenter.v1.NotificationConfig.Builder, + com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder>( + getNotificationConfig(), getParentForChildren(), isClean()); notificationConfig_ = null; } return notificationConfigBuilder_; @@ -697,36 +818,49 @@ public com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotific private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -748,6 +882,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -755,8 +891,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -767,6 +902,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -778,7 +915,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -790,6 +927,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -809,6 +948,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -817,11 +958,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -833,11 +976,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -846,21 +992,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -870,30 +1019,32 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.UpdateNotificationConfigRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateNotificationConfigRequest)
-  private static final com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest();
   }
 
-  public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest getDefaultInstance() {
+  public static com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateNotificationConfigRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateNotificationConfigRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateNotificationConfigRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateNotificationConfigRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -905,9 +1056,8 @@ public com.google.protobuf.Parser getParserForT
   }
 
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest getDefaultInstanceForType() {
+  public com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequestOrBuilder.java
similarity index 60%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequestOrBuilder.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequestOrBuilder.java
index 8a2ac64e8..92c077ca2 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateNotificationConfigRequestOrBuilder.java
@@ -1,60 +1,98 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface UpdateNotificationConfigRequestOrBuilder extends
+public interface UpdateNotificationConfigRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateNotificationConfigRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The notification config to update.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the notificationConfig field is set. */ boolean hasNotificationConfig(); /** + * + * *
    * Required. The notification config to update.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationConfig. */ com.google.cloud.securitycenter.v1.NotificationConfig getNotificationConfig(); /** + * + * *
    * Required. The notification config to update.
    * 
* - * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder(); /** + * + * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java
similarity index 63%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java
index 1c92cb473..4b1333e49 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java
@@ -1,39 +1,56 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
 /**
+ *
+ *
  * 
  * Request message for updating an organization's settings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest} */ -public final class UpdateOrganizationSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateOrganizationSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) UpdateOrganizationSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateOrganizationSettingsRequest.newBuilder() to construct. - private UpdateOrganizationSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateOrganizationSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateOrganizationSettingsRequest() { - } + + private UpdateOrganizationSettingsRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateOrganizationSettingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateOrganizationSettingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +69,45 @@ private UpdateOrganizationSettingsRequest( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1.OrganizationSettings.Builder subBuilder = null; - if (organizationSettings_ != null) { - subBuilder = organizationSettings_.toBuilder(); - } - organizationSettings_ = input.readMessage(com.google.cloud.securitycenter.v1.OrganizationSettings.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(organizationSettings_); - organizationSettings_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.securitycenter.v1.OrganizationSettings.Builder subBuilder = null; + if (organizationSettings_ != null) { + subBuilder = organizationSettings_.toBuilder(); + } + organizationSettings_ = + input.readMessage( + com.google.cloud.securitycenter.v1.OrganizationSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(organizationSettings_); + organizationSettings_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +115,41 @@ private UpdateOrganizationSettingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.class, + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.Builder.class); } public static final int ORGANIZATION_SETTINGS_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.OrganizationSettings organizationSettings_; /** + * + * *
    * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the organizationSettings field is set. */ @java.lang.Override @@ -127,38 +157,53 @@ public boolean hasOrganizationSettings() { return organizationSettings_ != null; } /** + * + * *
    * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The organizationSettings. */ @java.lang.Override public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSettings() { - return organizationSettings_ == null ? com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance() : organizationSettings_; + return organizationSettings_ == null + ? com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance() + : organizationSettings_; } /** + * + * *
    * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder() { + public com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder + getOrganizationSettingsOrBuilder() { return getOrganizationSettings(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -166,12 +211,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -179,6 +227,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
@@ -192,6 +242,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -203,8 +254,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (organizationSettings_ != null) {
       output.writeMessage(1, getOrganizationSettings());
     }
@@ -221,12 +271,11 @@ public int getSerializedSize() {
 
     size = 0;
     if (organizationSettings_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getOrganizationSettings());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOrganizationSettings());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -236,22 +285,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest other = (com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) obj;
+    com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest other =
+        (com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) obj;
 
     if (hasOrganizationSettings() != other.hasOrganizationSettings()) return false;
     if (hasOrganizationSettings()) {
-      if (!getOrganizationSettings()
-          .equals(other.getOrganizationSettings())) return false;
+      if (!getOrganizationSettings().equals(other.getOrganizationSettings())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -278,134 +326,145 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest
+      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+  public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest
+      parseDelimitedFrom(
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for updating an organization's settings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.class, + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.Builder.class); } - // Construct using com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,14 +484,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.getDefaultInstance(); + public com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest + .getDefaultInstance(); } @java.lang.Override @@ -446,7 +507,8 @@ public com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest buil @java.lang.Override public com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest buildPartial() { - com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest result = new com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest(this); + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest result = + new com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest(this); if (organizationSettingsBuilder_ == null) { result.organizationSettings_ = organizationSettings_; } else { @@ -465,46 +527,51 @@ public com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest buil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest)other); + return mergeFrom( + (com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest other) { - if (other == com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest other) { + if (other + == com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest + .getDefaultInstance()) return this; if (other.hasOrganizationSettings()) { mergeOrganizationSettings(other.getOrganizationSettings()); } @@ -530,7 +597,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -542,41 +611,61 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.OrganizationSettings organizationSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.OrganizationSettings, com.google.cloud.securitycenter.v1.OrganizationSettings.Builder, com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder> organizationSettingsBuilder_; + com.google.cloud.securitycenter.v1.OrganizationSettings, + com.google.cloud.securitycenter.v1.OrganizationSettings.Builder, + com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder> + organizationSettingsBuilder_; /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the organizationSettings field is set. */ public boolean hasOrganizationSettings() { return organizationSettingsBuilder_ != null || organizationSettings_ != null; } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The organizationSettings. */ public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSettings() { if (organizationSettingsBuilder_ == null) { - return organizationSettings_ == null ? com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance() : organizationSettings_; + return organizationSettings_ == null + ? com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance() + : organizationSettings_; } else { return organizationSettingsBuilder_.getMessage(); } } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setOrganizationSettings(com.google.cloud.securitycenter.v1.OrganizationSettings value) { + public Builder setOrganizationSettings( + com.google.cloud.securitycenter.v1.OrganizationSettings value) { if (organizationSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -590,11 +679,15 @@ public Builder setOrganizationSettings(com.google.cloud.securitycenter.v1.Organi return this; } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOrganizationSettings( com.google.cloud.securitycenter.v1.OrganizationSettings.Builder builderForValue) { @@ -608,17 +701,25 @@ public Builder setOrganizationSettings( return this; } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeOrganizationSettings(com.google.cloud.securitycenter.v1.OrganizationSettings value) { + public Builder mergeOrganizationSettings( + com.google.cloud.securitycenter.v1.OrganizationSettings value) { if (organizationSettingsBuilder_ == null) { if (organizationSettings_ != null) { organizationSettings_ = - com.google.cloud.securitycenter.v1.OrganizationSettings.newBuilder(organizationSettings_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.OrganizationSettings.newBuilder( + organizationSettings_) + .mergeFrom(value) + .buildPartial(); } else { organizationSettings_ = value; } @@ -630,11 +731,15 @@ public Builder mergeOrganizationSettings(com.google.cloud.securitycenter.v1.Orga return this; } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOrganizationSettings() { if (organizationSettingsBuilder_ == null) { @@ -648,48 +753,66 @@ public Builder clearOrganizationSettings() { return this; } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycenter.v1.OrganizationSettings.Builder getOrganizationSettingsBuilder() { - + public com.google.cloud.securitycenter.v1.OrganizationSettings.Builder + getOrganizationSettingsBuilder() { + onChanged(); return getOrganizationSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder() { + public com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder + getOrganizationSettingsOrBuilder() { if (organizationSettingsBuilder_ != null) { return organizationSettingsBuilder_.getMessageOrBuilder(); } else { - return organizationSettings_ == null ? - com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance() : organizationSettings_; + return organizationSettings_ == null + ? com.google.cloud.securitycenter.v1.OrganizationSettings.getDefaultInstance() + : organizationSettings_; } } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.OrganizationSettings, com.google.cloud.securitycenter.v1.OrganizationSettings.Builder, com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder> + com.google.cloud.securitycenter.v1.OrganizationSettings, + com.google.cloud.securitycenter.v1.OrganizationSettings.Builder, + com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder> getOrganizationSettingsFieldBuilder() { if (organizationSettingsBuilder_ == null) { - organizationSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.OrganizationSettings, com.google.cloud.securitycenter.v1.OrganizationSettings.Builder, com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder>( - getOrganizationSettings(), - getParentForChildren(), - isClean()); + organizationSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.OrganizationSettings, + com.google.cloud.securitycenter.v1.OrganizationSettings.Builder, + com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder>( + getOrganizationSettings(), getParentForChildren(), isClean()); organizationSettings_ = null; } return organizationSettingsBuilder_; @@ -697,36 +820,49 @@ public com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder getOrgan private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -748,6 +884,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -755,8 +893,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -767,6 +904,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -778,7 +917,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -790,6 +929,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -809,6 +950,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -817,11 +960,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -833,11 +978,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -846,21 +994,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -870,30 +1021,32 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest)
-  private static final com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest();
   }
 
-  public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest getDefaultInstance() {
+  public static com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateOrganizationSettingsRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateOrganizationSettingsRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateOrganizationSettingsRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateOrganizationSettingsRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -905,9 +1058,8 @@ public com.google.protobuf.Parser getParserFo
   }
 
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest getDefaultInstanceForType() {
+  public com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java
similarity index 58%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java
index 1d2d4dacf..f1e161f58 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequestOrBuilder.java
@@ -1,60 +1,99 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface UpdateOrganizationSettingsRequestOrBuilder extends
+public interface UpdateOrganizationSettingsRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the organizationSettings field is set. */ boolean hasOrganizationSettings(); /** + * + * *
    * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The organizationSettings. */ com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSettings(); /** + * + * *
    * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder(); + com.google.cloud.securitycenter.v1.OrganizationSettingsOrBuilder + getOrganizationSettingsOrBuilder(); /** + * + * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java
similarity index 70%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java
index 757855ee2..05a69aefa 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
 /**
+ *
+ *
  * 
  * Request message for updating a SecurityMarks resource.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateSecurityMarksRequest} */ -public final class UpdateSecurityMarksRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateSecurityMarksRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) UpdateSecurityMarksRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateSecurityMarksRequest.newBuilder() to construct. private UpdateSecurityMarksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateSecurityMarksRequest() { - } + + private UpdateSecurityMarksRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateSecurityMarksRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateSecurityMarksRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,52 +68,59 @@ private UpdateSecurityMarksRequest( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1.SecurityMarks.Builder subBuilder = null; - if (securityMarks_ != null) { - subBuilder = securityMarks_.toBuilder(); - } - securityMarks_ = input.readMessage(com.google.cloud.securitycenter.v1.SecurityMarks.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(securityMarks_); - securityMarks_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.securitycenter.v1.SecurityMarks.Builder subBuilder = null; + if (securityMarks_ != null) { + subBuilder = securityMarks_.toBuilder(); + } + securityMarks_ = + input.readMessage( + com.google.cloud.securitycenter.v1.SecurityMarks.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(securityMarks_); + securityMarks_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,34 +128,41 @@ private UpdateSecurityMarksRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.class, com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.class, + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.Builder.class); } public static final int SECURITY_MARKS_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_; /** + * + * *
    * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the securityMarks field is set. */ @java.lang.Override @@ -140,23 +170,34 @@ public boolean hasSecurityMarks() { return securityMarks_ != null; } /** + * + * *
    * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The securityMarks. */ @java.lang.Override public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { - return securityMarks_ == null ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() + : securityMarks_; } /** + * + * *
    * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { @@ -166,6 +207,8 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -174,6 +217,7 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -181,6 +225,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -189,6 +235,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -196,6 +243,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -213,6 +262,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int START_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Timestamp startTime_;
   /**
+   *
+   *
    * 
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
@@ -221,6 +272,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -228,6 +280,8 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
@@ -236,6 +290,7 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return The startTime. */ @java.lang.Override @@ -243,6 +298,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
@@ -258,6 +315,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -269,8 +327,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (securityMarks_ != null) {
       output.writeMessage(1, getSecurityMarks());
     }
@@ -290,16 +347,13 @@ public int getSerializedSize() {
 
     size = 0;
     if (securityMarks_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getSecurityMarks());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSecurityMarks());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     if (startTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getStartTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -309,27 +363,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest other = (com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) obj;
+    com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest other =
+        (com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) obj;
 
     if (hasSecurityMarks() != other.hasSecurityMarks()) return false;
     if (hasSecurityMarks()) {
-      if (!getSecurityMarks()
-          .equals(other.getSecurityMarks())) return false;
+      if (!getSecurityMarks().equals(other.getSecurityMarks())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (hasStartTime() != other.hasStartTime()) return false;
     if (hasStartTime()) {
-      if (!getStartTime()
-          .equals(other.getStartTime())) return false;
+      if (!getStartTime().equals(other.getStartTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -360,117 +412,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for updating a SecurityMarks resource.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateSecurityMarksRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.class, com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.class, + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.newBuilder() @@ -478,16 +540,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -513,13 +574,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.getDefaultInstance(); } @@ -534,7 +596,8 @@ public com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest buildPartial() { - com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest result = new com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest(this); + com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest result = + new com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest(this); if (securityMarksBuilder_ == null) { result.securityMarks_ = securityMarks_; } else { @@ -558,38 +621,39 @@ public com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) other); } else { super.mergeFrom(other); return this; @@ -597,7 +661,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest other) { - if (other == com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest.getDefaultInstance()) + return this; if (other.hasSecurityMarks()) { mergeSecurityMarks(other.getSecurityMarks()); } @@ -626,7 +692,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -638,39 +706,58 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> securityMarksBuilder_; + com.google.cloud.securitycenter.v1.SecurityMarks, + com.google.cloud.securitycenter.v1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> + securityMarksBuilder_; /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The securityMarks. */ public com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { - return securityMarks_ == null ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() + : securityMarks_; } else { return securityMarksBuilder_.getMessage(); } } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks value) { if (securityMarksBuilder_ == null) { @@ -686,11 +773,15 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks return this; } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSecurityMarks( com.google.cloud.securitycenter.v1.SecurityMarks.Builder builderForValue) { @@ -704,17 +795,23 @@ public Builder setSecurityMarks( return this; } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMarks value) { if (securityMarksBuilder_ == null) { if (securityMarks_ != null) { securityMarks_ = - com.google.cloud.securitycenter.v1.SecurityMarks.newBuilder(securityMarks_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.SecurityMarks.newBuilder(securityMarks_) + .mergeFrom(value) + .buildPartial(); } else { securityMarks_ = value; } @@ -726,11 +823,15 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1.SecurityMar return this; } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -744,48 +845,64 @@ public Builder clearSecurityMarks() { return this; } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.SecurityMarks.Builder getSecurityMarksBuilder() { - + onChanged(); return getSecurityMarksFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { if (securityMarksBuilder_ != null) { return securityMarksBuilder_.getMessageOrBuilder(); } else { - return securityMarks_ == null ? - com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1.SecurityMarks.getDefaultInstance() + : securityMarks_; } } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> + com.google.cloud.securitycenter.v1.SecurityMarks, + com.google.cloud.securitycenter.v1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder> getSecurityMarksFieldBuilder() { if (securityMarksBuilder_ == null) { - securityMarksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>( - getSecurityMarks(), - getParentForChildren(), - isClean()); + securityMarksBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityMarks, + com.google.cloud.securitycenter.v1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder>( + getSecurityMarks(), getParentForChildren(), isClean()); securityMarks_ = null; } return securityMarksBuilder_; @@ -793,8 +910,13 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -803,12 +925,15 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -817,16 +942,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -850,6 +980,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -859,8 +991,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -871,6 +1002,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -884,7 +1017,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -896,6 +1029,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -917,6 +1052,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -927,11 +1064,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -945,11 +1084,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -960,14 +1102,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
@@ -975,8 +1120,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
 
     private com.google.protobuf.Timestamp startTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        startTimeBuilder_;
     /**
+     *
+     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -985,12 +1135,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -999,6 +1152,7 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1009,6 +1163,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1032,6 +1188,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1041,8 +1199,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp start_time = 3;
      */
-    public Builder setStartTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
         onChanged();
@@ -1053,6 +1210,8 @@ public Builder setStartTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1066,7 +1225,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       if (startTimeBuilder_ == null) {
         if (startTime_ != null) {
           startTime_ =
-            com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
         } else {
           startTime_ = value;
         }
@@ -1078,6 +1237,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1099,6 +1260,8 @@ public Builder clearStartTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1109,11 +1272,13 @@ public Builder clearStartTime() {
      * .google.protobuf.Timestamp start_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
-      
+
       onChanged();
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1127,11 +1292,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
       if (startTimeBuilder_ != null) {
         return startTimeBuilder_.getMessageOrBuilder();
       } else {
-        return startTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1142,21 +1308,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * .google.protobuf.Timestamp start_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getStartTimeFieldBuilder() {
       if (startTimeBuilder_ == null) {
-        startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getStartTime(),
-                getParentForChildren(),
-                isClean());
+        startTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getStartTime(), getParentForChildren(), isClean());
         startTime_ = null;
       }
       return startTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1166,12 +1335,13 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.UpdateSecurityMarksRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateSecurityMarksRequest)
-  private static final com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest();
   }
@@ -1180,16 +1350,16 @@ public static com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest getD
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateSecurityMarksRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateSecurityMarksRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateSecurityMarksRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateSecurityMarksRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1204,6 +1374,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java
similarity index 74%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java
index 8d3fc0de0..8ba41d2c2 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequestOrBuilder.java
@@ -1,40 +1,72 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface UpdateSecurityMarksRequestOrBuilder extends
+public interface UpdateSecurityMarksRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateSecurityMarksRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** + * + * *
    * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The securityMarks. */ com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks(); /** + * + * *
    * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder(); /** + * + * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -43,10 +75,13 @@ public interface UpdateSecurityMarksRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -55,10 +90,13 @@ public interface UpdateSecurityMarksRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -71,6 +109,8 @@ public interface UpdateSecurityMarksRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
@@ -79,10 +119,13 @@ public interface UpdateSecurityMarksRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
@@ -91,10 +134,13 @@ public interface UpdateSecurityMarksRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java
similarity index 66%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java
index acfc0b8e2..43a9af707 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
 /**
+ *
+ *
  * 
  * Request message for updating a source.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateSourceRequest} */ -public final class UpdateSourceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateSourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateSourceRequest) UpdateSourceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateSourceRequest.newBuilder() to construct. private UpdateSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateSourceRequest() { - } + + private UpdateSourceRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateSourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateSourceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateSourceRequest( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1.Source.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); - } - source_ = input.readMessage(com.google.cloud.securitycenter.v1.Source.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.securitycenter.v1.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +113,41 @@ private UpdateSourceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateSourceRequest.class, com.google.cloud.securitycenter.v1.UpdateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateSourceRequest.class, + com.google.cloud.securitycenter.v1.UpdateSourceRequest.Builder.class); } public static final int SOURCE_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.Source source_; /** + * + * *
    * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the source field is set. */ @java.lang.Override @@ -127,23 +155,34 @@ public boolean hasSource() { return source_ != null; } /** + * + * *
    * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The source. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Source getSource() { - return source_ == null ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() + : source_; } /** + * + * *
    * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { @@ -153,12 +192,15 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -166,12 +208,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -179,6 +224,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
@@ -192,6 +239,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -203,8 +251,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (source_ != null) {
       output.writeMessage(1, getSource());
     }
@@ -221,12 +268,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (source_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getSource());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSource());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -236,22 +281,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.UpdateSourceRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.UpdateSourceRequest other = (com.google.cloud.securitycenter.v1.UpdateSourceRequest) obj;
+    com.google.cloud.securitycenter.v1.UpdateSourceRequest other =
+        (com.google.cloud.securitycenter.v1.UpdateSourceRequest) obj;
 
     if (hasSource() != other.hasSource()) return false;
     if (hasSource()) {
-      if (!getSource()
-          .equals(other.getSource())) return false;
+      if (!getSource().equals(other.getSource())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -278,117 +322,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.UpdateSourceRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.securitycenter.v1.UpdateSourceRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.securitycenter.v1.UpdateSourceRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for updating a source.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.UpdateSourceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateSourceRequest) com.google.cloud.securitycenter.v1.UpdateSourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.UpdateSourceRequest.class, com.google.cloud.securitycenter.v1.UpdateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1.UpdateSourceRequest.class, + com.google.cloud.securitycenter.v1.UpdateSourceRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.UpdateSourceRequest.newBuilder() @@ -396,16 +450,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; } @java.lang.Override @@ -446,7 +499,8 @@ public com.google.cloud.securitycenter.v1.UpdateSourceRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1.UpdateSourceRequest buildPartial() { - com.google.cloud.securitycenter.v1.UpdateSourceRequest result = new com.google.cloud.securitycenter.v1.UpdateSourceRequest(this); + com.google.cloud.securitycenter.v1.UpdateSourceRequest result = + new com.google.cloud.securitycenter.v1.UpdateSourceRequest(this); if (sourceBuilder_ == null) { result.source_ = source_; } else { @@ -465,38 +519,39 @@ public com.google.cloud.securitycenter.v1.UpdateSourceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.UpdateSourceRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1.UpdateSourceRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1.UpdateSourceRequest) other); } else { super.mergeFrom(other); return this; @@ -504,7 +559,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.UpdateSourceRequest other) { - if (other == com.google.cloud.securitycenter.v1.UpdateSourceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.UpdateSourceRequest.getDefaultInstance()) + return this; if (other.hasSource()) { mergeSource(other.getSource()); } @@ -530,7 +586,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1.UpdateSourceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1.UpdateSourceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -542,39 +599,58 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.Source source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, com.google.cloud.securitycenter.v1.SourceOrBuilder> sourceBuilder_; + com.google.cloud.securitycenter.v1.Source, + com.google.cloud.securitycenter.v1.Source.Builder, + com.google.cloud.securitycenter.v1.SourceOrBuilder> + sourceBuilder_; /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The source. */ public com.google.cloud.securitycenter.v1.Source getSource() { if (sourceBuilder_ == null) { - return source_ == null ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() + : source_; } else { return sourceBuilder_.getMessage(); } } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSource(com.google.cloud.securitycenter.v1.Source value) { if (sourceBuilder_ == null) { @@ -590,14 +666,17 @@ public Builder setSource(com.google.cloud.securitycenter.v1.Source value) { return this; } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSource( - com.google.cloud.securitycenter.v1.Source.Builder builderForValue) { + public Builder setSource(com.google.cloud.securitycenter.v1.Source.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -608,17 +687,23 @@ public Builder setSource( return this; } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSource(com.google.cloud.securitycenter.v1.Source value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = - com.google.cloud.securitycenter.v1.Source.newBuilder(source_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1.Source.newBuilder(source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -630,11 +715,15 @@ public Builder mergeSource(com.google.cloud.securitycenter.v1.Source value) { return this; } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSource() { if (sourceBuilder_ == null) { @@ -648,48 +737,64 @@ public Builder clearSource() { return this; } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.Source.Builder getSourceBuilder() { - + onChanged(); return getSourceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { - return source_ == null ? - com.google.cloud.securitycenter.v1.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.securitycenter.v1.Source.getDefaultInstance() + : source_; } } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, com.google.cloud.securitycenter.v1.SourceOrBuilder> + com.google.cloud.securitycenter.v1.Source, + com.google.cloud.securitycenter.v1.Source.Builder, + com.google.cloud.securitycenter.v1.SourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { - sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, com.google.cloud.securitycenter.v1.SourceOrBuilder>( - getSource(), - getParentForChildren(), - isClean()); + sourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.Source, + com.google.cloud.securitycenter.v1.Source.Builder, + com.google.cloud.securitycenter.v1.SourceOrBuilder>( + getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; @@ -697,36 +802,49 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -748,6 +866,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -755,8 +875,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -767,6 +886,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -778,7 +899,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -790,6 +911,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -809,6 +932,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -817,11 +942,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -833,11 +960,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -846,21 +976,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -870,12 +1003,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.UpdateSourceRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateSourceRequest)
   private static final com.google.cloud.securitycenter.v1.UpdateSourceRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.UpdateSourceRequest();
   }
@@ -884,16 +1017,16 @@ public static com.google.cloud.securitycenter.v1.UpdateSourceRequest getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateSourceRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateSourceRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateSourceRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateSourceRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -908,6 +1041,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.securitycenter.v1.UpdateSourceRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java
similarity index 60%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java
index b2769979c..f1da14e4a 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequestOrBuilder.java
@@ -1,60 +1,98 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface UpdateSourceRequestOrBuilder extends
+public interface UpdateSourceRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateSourceRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the source field is set. */ boolean hasSource(); /** + * + * *
    * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The source. */ com.google.cloud.securitycenter.v1.Source getSource(); /** + * + * *
    * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder(); /** + * + * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Vulnerability.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Vulnerability.java
similarity index 70%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Vulnerability.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Vulnerability.java
index 896831510..7c626e238 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Vulnerability.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Vulnerability.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/vulnerability.proto
 
 package com.google.cloud.securitycenter.v1;
 
 /**
+ *
+ *
  * 
  * Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Vulnerability} */ -public final class Vulnerability extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Vulnerability extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.Vulnerability) VulnerabilityOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Vulnerability.newBuilder() to construct. private Vulnerability(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Vulnerability() { - } + + private Vulnerability() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Vulnerability(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Vulnerability( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,29 @@ private Vulnerability( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1.Cve.Builder subBuilder = null; - if (cve_ != null) { - subBuilder = cve_.toBuilder(); + case 10: + { + com.google.cloud.securitycenter.v1.Cve.Builder subBuilder = null; + if (cve_ != null) { + subBuilder = cve_.toBuilder(); + } + cve_ = + input.readMessage( + com.google.cloud.securitycenter.v1.Cve.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cve_); + cve_ = subBuilder.buildPartial(); + } + + break; } - cve_ = input.readMessage(com.google.cloud.securitycenter.v1.Cve.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cve_); - cve_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,35 +98,40 @@ private Vulnerability( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.VulnerabilityProto + .internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Vulnerability_fieldAccessorTable + return com.google.cloud.securitycenter.v1.VulnerabilityProto + .internal_static_google_cloud_securitycenter_v1_Vulnerability_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Vulnerability.class, com.google.cloud.securitycenter.v1.Vulnerability.Builder.class); + com.google.cloud.securitycenter.v1.Vulnerability.class, + com.google.cloud.securitycenter.v1.Vulnerability.Builder.class); } public static final int CVE_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.Cve cve_; /** + * + * *
    * CVE stands for Common Vulnerabilities and Exposures
    * (https://cve.mitre.org/about/)
    * 
* * .google.cloud.securitycenter.v1.Cve cve = 1; + * * @return Whether the cve field is set. */ @java.lang.Override @@ -115,12 +139,15 @@ public boolean hasCve() { return cve_ != null; } /** + * + * *
    * CVE stands for Common Vulnerabilities and Exposures
    * (https://cve.mitre.org/about/)
    * 
* * .google.cloud.securitycenter.v1.Cve cve = 1; + * * @return The cve. */ @java.lang.Override @@ -128,6 +155,8 @@ public com.google.cloud.securitycenter.v1.Cve getCve() { return cve_ == null ? com.google.cloud.securitycenter.v1.Cve.getDefaultInstance() : cve_; } /** + * + * *
    * CVE stands for Common Vulnerabilities and Exposures
    * (https://cve.mitre.org/about/)
@@ -141,6 +170,7 @@ public com.google.cloud.securitycenter.v1.CveOrBuilder getCveOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -152,8 +182,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (cve_ != null) {
       output.writeMessage(1, getCve());
     }
@@ -167,8 +196,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (cve_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getCve());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCve());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -178,17 +206,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1.Vulnerability)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1.Vulnerability other = (com.google.cloud.securitycenter.v1.Vulnerability) obj;
+    com.google.cloud.securitycenter.v1.Vulnerability other =
+        (com.google.cloud.securitycenter.v1.Vulnerability) obj;
 
     if (hasCve() != other.hasCve()) return false;
     if (hasCve()) {
-      if (!getCve()
-          .equals(other.getCve())) return false;
+      if (!getCve().equals(other.getCve())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -210,118 +238,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1.Vulnerability parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1.Vulnerability parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.Vulnerability parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1.Vulnerability parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.securitycenter.v1.Vulnerability prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Vulnerability} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.Vulnerability) com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.VulnerabilityProto + .internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Vulnerability_fieldAccessorTable + return com.google.cloud.securitycenter.v1.VulnerabilityProto + .internal_static_google_cloud_securitycenter_v1_Vulnerability_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.Vulnerability.class, com.google.cloud.securitycenter.v1.Vulnerability.Builder.class); + com.google.cloud.securitycenter.v1.Vulnerability.class, + com.google.cloud.securitycenter.v1.Vulnerability.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.Vulnerability.newBuilder() @@ -329,16 +366,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -352,9 +388,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1.VulnerabilityProto.internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.VulnerabilityProto + .internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor; } @java.lang.Override @@ -373,7 +409,8 @@ public com.google.cloud.securitycenter.v1.Vulnerability build() { @java.lang.Override public com.google.cloud.securitycenter.v1.Vulnerability buildPartial() { - com.google.cloud.securitycenter.v1.Vulnerability result = new com.google.cloud.securitycenter.v1.Vulnerability(this); + com.google.cloud.securitycenter.v1.Vulnerability result = + new com.google.cloud.securitycenter.v1.Vulnerability(this); if (cveBuilder_ == null) { result.cve_ = cve_; } else { @@ -387,38 +424,39 @@ public com.google.cloud.securitycenter.v1.Vulnerability buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.Vulnerability) { - return mergeFrom((com.google.cloud.securitycenter.v1.Vulnerability)other); + return mergeFrom((com.google.cloud.securitycenter.v1.Vulnerability) other); } else { super.mergeFrom(other); return this; @@ -426,7 +464,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1.Vulnerability other) { - if (other == com.google.cloud.securitycenter.v1.Vulnerability.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1.Vulnerability.getDefaultInstance()) + return this; if (other.hasCve()) { mergeCve(other.getCve()); } @@ -461,26 +500,35 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1.Cve cve_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1.Cve, com.google.cloud.securitycenter.v1.Cve.Builder, com.google.cloud.securitycenter.v1.CveOrBuilder> cveBuilder_; + com.google.cloud.securitycenter.v1.Cve, + com.google.cloud.securitycenter.v1.Cve.Builder, + com.google.cloud.securitycenter.v1.CveOrBuilder> + cveBuilder_; /** + * + * *
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
      * 
* * .google.cloud.securitycenter.v1.Cve cve = 1; + * * @return Whether the cve field is set. */ public boolean hasCve() { return cveBuilder_ != null || cve_ != null; } /** + * + * *
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
      * 
* * .google.cloud.securitycenter.v1.Cve cve = 1; + * * @return The cve. */ public com.google.cloud.securitycenter.v1.Cve getCve() { @@ -491,6 +539,8 @@ public com.google.cloud.securitycenter.v1.Cve getCve() { } } /** + * + * *
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
@@ -512,6 +562,8 @@ public Builder setCve(com.google.cloud.securitycenter.v1.Cve value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
@@ -519,8 +571,7 @@ public Builder setCve(com.google.cloud.securitycenter.v1.Cve value) {
      *
      * .google.cloud.securitycenter.v1.Cve cve = 1;
      */
-    public Builder setCve(
-        com.google.cloud.securitycenter.v1.Cve.Builder builderForValue) {
+    public Builder setCve(com.google.cloud.securitycenter.v1.Cve.Builder builderForValue) {
       if (cveBuilder_ == null) {
         cve_ = builderForValue.build();
         onChanged();
@@ -531,6 +582,8 @@ public Builder setCve(
       return this;
     }
     /**
+     *
+     *
      * 
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
@@ -542,7 +595,9 @@ public Builder mergeCve(com.google.cloud.securitycenter.v1.Cve value) {
       if (cveBuilder_ == null) {
         if (cve_ != null) {
           cve_ =
-            com.google.cloud.securitycenter.v1.Cve.newBuilder(cve_).mergeFrom(value).buildPartial();
+              com.google.cloud.securitycenter.v1.Cve.newBuilder(cve_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           cve_ = value;
         }
@@ -554,6 +609,8 @@ public Builder mergeCve(com.google.cloud.securitycenter.v1.Cve value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
@@ -573,6 +630,8 @@ public Builder clearCve() {
       return this;
     }
     /**
+     *
+     *
      * 
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
@@ -581,11 +640,13 @@ public Builder clearCve() {
      * .google.cloud.securitycenter.v1.Cve cve = 1;
      */
     public com.google.cloud.securitycenter.v1.Cve.Builder getCveBuilder() {
-      
+
       onChanged();
       return getCveFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
@@ -597,11 +658,12 @@ public com.google.cloud.securitycenter.v1.CveOrBuilder getCveOrBuilder() {
       if (cveBuilder_ != null) {
         return cveBuilder_.getMessageOrBuilder();
       } else {
-        return cve_ == null ?
-            com.google.cloud.securitycenter.v1.Cve.getDefaultInstance() : cve_;
+        return cve_ == null ? com.google.cloud.securitycenter.v1.Cve.getDefaultInstance() : cve_;
       }
     }
     /**
+     *
+     *
      * 
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
@@ -610,21 +672,24 @@ public com.google.cloud.securitycenter.v1.CveOrBuilder getCveOrBuilder() {
      * .google.cloud.securitycenter.v1.Cve cve = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1.Cve, com.google.cloud.securitycenter.v1.Cve.Builder, com.google.cloud.securitycenter.v1.CveOrBuilder> 
+            com.google.cloud.securitycenter.v1.Cve,
+            com.google.cloud.securitycenter.v1.Cve.Builder,
+            com.google.cloud.securitycenter.v1.CveOrBuilder>
         getCveFieldBuilder() {
       if (cveBuilder_ == null) {
-        cveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1.Cve, com.google.cloud.securitycenter.v1.Cve.Builder, com.google.cloud.securitycenter.v1.CveOrBuilder>(
-                getCve(),
-                getParentForChildren(),
-                isClean());
+        cveBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.securitycenter.v1.Cve,
+                com.google.cloud.securitycenter.v1.Cve.Builder,
+                com.google.cloud.securitycenter.v1.CveOrBuilder>(
+                getCve(), getParentForChildren(), isClean());
         cve_ = null;
       }
       return cveBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -634,12 +699,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.Vulnerability)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.Vulnerability)
   private static final com.google.cloud.securitycenter.v1.Vulnerability DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.Vulnerability();
   }
@@ -648,16 +713,16 @@ public static com.google.cloud.securitycenter.v1.Vulnerability getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Vulnerability parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Vulnerability(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Vulnerability parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Vulnerability(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -672,6 +737,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.securitycenter.v1.Vulnerability getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityOrBuilder.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityOrBuilder.java
similarity index 61%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityOrBuilder.java
rename to proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityOrBuilder.java
index 1bd25afca..334ae34fe 100644
--- a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityOrBuilder.java
@@ -1,33 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1/vulnerability.proto
 
 package com.google.cloud.securitycenter.v1;
 
-public interface VulnerabilityOrBuilder extends
+public interface VulnerabilityOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Vulnerability)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * CVE stands for Common Vulnerabilities and Exposures
    * (https://cve.mitre.org/about/)
    * 
* * .google.cloud.securitycenter.v1.Cve cve = 1; + * * @return Whether the cve field is set. */ boolean hasCve(); /** + * + * *
    * CVE stands for Common Vulnerabilities and Exposures
    * (https://cve.mitre.org/about/)
    * 
* * .google.cloud.securitycenter.v1.Cve cve = 1; + * * @return The cve. */ com.google.cloud.securitycenter.v1.Cve getCve(); /** + * + * *
    * CVE stands for Common Vulnerabilities and Exposures
    * (https://cve.mitre.org/about/)
diff --git a/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityProto.java b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityProto.java
new file mode 100644
index 000000000..7b1022368
--- /dev/null
+++ b/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/VulnerabilityProto.java
@@ -0,0 +1,151 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/securitycenter/v1/vulnerability.proto
+
+package com.google.cloud.securitycenter.v1;
+
+public final class VulnerabilityProto {
+  private VulnerabilityProto() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1_Vulnerability_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1_Cve_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1_Cve_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1_Reference_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1_Reference_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1_Cvssv3_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n2google/cloud/securitycenter/v1/vulnera"
+          + "bility.proto\022\036google.cloud.securitycente"
+          + "r.v1\"A\n\rVulnerability\0220\n\003cve\030\001 \001(\0132#.goo"
+          + "gle.cloud.securitycenter.v1.Cve\"\250\001\n\003Cve\022"
+          + "\n\n\002id\030\001 \001(\t\022=\n\nreferences\030\002 \003(\0132).google"
+          + ".cloud.securitycenter.v1.Reference\0226\n\006cv"
+          + "ssv3\030\003 \001(\0132&.google.cloud.securitycenter"
+          + ".v1.Cvssv3\022\036\n\026upstream_fix_available\030\004 \001"
+          + "(\010\"(\n\tReference\022\016\n\006source\030\001 \001(\t\022\013\n\003uri\030\002"
+          + " \001(\t\"\261\n\n\006Cvssv3\022\022\n\nbase_score\030\001 \001(\001\022J\n\ra"
+          + "ttack_vector\030\005 \001(\01623.google.cloud.securi"
+          + "tycenter.v1.Cvssv3.AttackVector\022R\n\021attac"
+          + "k_complexity\030\006 \001(\01627.google.cloud.securi"
+          + "tycenter.v1.Cvssv3.AttackComplexity\022V\n\023p"
+          + "rivileges_required\030\007 \001(\01629.google.cloud."
+          + "securitycenter.v1.Cvssv3.PrivilegesRequi"
+          + "red\022P\n\020user_interaction\030\010 \001(\01626.google.c"
+          + "loud.securitycenter.v1.Cvssv3.UserIntera"
+          + "ction\022;\n\005scope\030\t \001(\0162,.google.cloud.secu"
+          + "ritycenter.v1.Cvssv3.Scope\022M\n\026confidenti"
+          + "ality_impact\030\n \001(\0162-.google.cloud.securi"
+          + "tycenter.v1.Cvssv3.Impact\022G\n\020integrity_i"
+          + "mpact\030\013 \001(\0162-.google.cloud.securitycente"
+          + "r.v1.Cvssv3.Impact\022J\n\023availability_impac"
+          + "t\030\014 \001(\0162-.google.cloud.securitycenter.v1"
+          + ".Cvssv3.Impact\"\231\001\n\014AttackVector\022\035\n\031ATTAC"
+          + "K_VECTOR_UNSPECIFIED\020\000\022\031\n\025ATTACK_VECTOR_"
+          + "NETWORK\020\001\022\032\n\026ATTACK_VECTOR_ADJACENT\020\002\022\027\n"
+          + "\023ATTACK_VECTOR_LOCAL\020\003\022\032\n\026ATTACK_VECTOR_"
+          + "PHYSICAL\020\004\"l\n\020AttackComplexity\022!\n\035ATTACK"
+          + "_COMPLEXITY_UNSPECIFIED\020\000\022\031\n\025ATTACK_COMP"
+          + "LEXITY_LOW\020\001\022\032\n\026ATTACK_COMPLEXITY_HIGH\020\002"
+          + "\"\222\001\n\022PrivilegesRequired\022#\n\037PRIVILEGES_RE"
+          + "QUIRED_UNSPECIFIED\020\000\022\034\n\030PRIVILEGES_REQUI"
+          + "RED_NONE\020\001\022\033\n\027PRIVILEGES_REQUIRED_LOW\020\002\022"
+          + "\034\n\030PRIVILEGES_REQUIRED_HIGH\020\003\"m\n\017UserInt"
+          + "eraction\022 \n\034USER_INTERACTION_UNSPECIFIED"
+          + "\020\000\022\031\n\025USER_INTERACTION_NONE\020\001\022\035\n\031USER_IN"
+          + "TERACTION_REQUIRED\020\002\"F\n\005Scope\022\025\n\021SCOPE_U"
+          + "NSPECIFIED\020\000\022\023\n\017SCOPE_UNCHANGED\020\001\022\021\n\rSCO"
+          + "PE_CHANGED\020\002\"R\n\006Impact\022\026\n\022IMPACT_UNSPECI"
+          + "FIED\020\000\022\017\n\013IMPACT_HIGH\020\001\022\016\n\nIMPACT_LOW\020\002\022"
+          + "\017\n\013IMPACT_NONE\020\003B\356\001\n\"com.google.cloud.se"
+          + "curitycenter.v1B\022VulnerabilityProtoP\001ZLg"
+          + "oogle.golang.org/genproto/googleapis/clo"
+          + "ud/securitycenter/v1;securitycenter\252\002\036Go"
+          + "ogle.Cloud.SecurityCenter.V1\312\002\036Google\\Cl"
+          + "oud\\SecurityCenter\\V1\352\002!Google::Cloud::S"
+          + "ecurityCenter::V1b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
+    internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_securitycenter_v1_Vulnerability_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_securitycenter_v1_Vulnerability_descriptor,
+            new java.lang.String[] {
+              "Cve",
+            });
+    internal_static_google_cloud_securitycenter_v1_Cve_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_securitycenter_v1_Cve_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_securitycenter_v1_Cve_descriptor,
+            new java.lang.String[] {
+              "Id", "References", "Cvssv3", "UpstreamFixAvailable",
+            });
+    internal_static_google_cloud_securitycenter_v1_Reference_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_securitycenter_v1_Reference_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_securitycenter_v1_Reference_descriptor,
+            new java.lang.String[] {
+              "Source", "Uri",
+            });
+    internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_securitycenter_v1_Cvssv3_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_securitycenter_v1_Cvssv3_descriptor,
+            new java.lang.String[] {
+              "BaseScore",
+              "AttackVector",
+              "AttackComplexity",
+              "PrivilegesRequired",
+              "UserInteraction",
+              "Scope",
+              "ConfidentialityImpact",
+              "IntegrityImpact",
+              "AvailabilityImpact",
+            });
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/access.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/access.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/access.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/access.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/bigquery_export.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/bigquery_export.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/bigquery_export.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/bigquery_export.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/compliance.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/compliance.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/compliance.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/compliance.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/connection.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/connection.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/connection.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/connection.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/exfiltration.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/exfiltration.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/exfiltration.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/exfiltration.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/external_system.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/external_system.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/external_system.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/external_system.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/file.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/file.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/file.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/file.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/folder.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/folder.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/folder.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/folder.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/iam_binding.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/iam_binding.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/iam_binding.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/iam_binding.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/indicator.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/indicator.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/indicator.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/indicator.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mitre_attack.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mitre_attack.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mitre_attack.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mitre_attack.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mute_config.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mute_config.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mute_config.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mute_config.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_config.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_config.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_config.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_config.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/process.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/process.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/process.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/process.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/resource.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/resource.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/resource.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/resource.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/vulnerability.proto b/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/vulnerability.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/vulnerability.proto
rename to proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/vulnerability.proto
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java
similarity index 72%
rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java
rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java
index b06b26f5b..9f9908c4d 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1beta1/asset.proto
 
 package com.google.cloud.securitycenter.v1beta1;
 
 /**
+ *
+ *
  * 
  * Security Command Center representation of a Google Cloud
  * resource.
@@ -15,31 +32,31 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1beta1.Asset}
  */
-public final class Asset extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Asset extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.Asset)
     AssetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Asset.newBuilder() to construct.
   private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Asset() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Asset();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Asset(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,84 +76,104 @@ private Asset(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder subBuilder = null;
-            if (securityCenterProperties_ != null) {
-              subBuilder = securityCenterProperties_.toBuilder();
-            }
-            securityCenterProperties_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(securityCenterProperties_);
-              securityCenterProperties_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder
+                  subBuilder = null;
+              if (securityCenterProperties_ != null) {
+                subBuilder = securityCenterProperties_.toBuilder();
+              }
+              securityCenterProperties_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(securityCenterProperties_);
+                securityCenterProperties_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 58: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              resourceProperties_ = com.google.protobuf.MapField.newMapField(
-                  ResourcePropertiesDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
-            }
-            com.google.protobuf.MapEntry
-            resourceProperties__ = input.readMessage(
-                ResourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            resourceProperties_.getMutableMap().put(
-                resourceProperties__.getKey(), resourceProperties__.getValue());
-            break;
-          }
-          case 66: {
-            com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder subBuilder = null;
-            if (securityMarks_ != null) {
-              subBuilder = securityMarks_.toBuilder();
+              break;
             }
-            securityMarks_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.SecurityMarks.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(securityMarks_);
-              securityMarks_ = subBuilder.buildPartial();
+          case 58:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                resourceProperties_ =
+                    com.google.protobuf.MapField.newMapField(
+                        ResourcePropertiesDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry
+                  resourceProperties__ =
+                      input.readMessage(
+                          ResourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
+                          extensionRegistry);
+              resourceProperties_
+                  .getMutableMap()
+                  .put(resourceProperties__.getKey(), resourceProperties__.getValue());
+              break;
             }
+          case 66:
+            {
+              com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder subBuilder = null;
+              if (securityMarks_ != null) {
+                subBuilder = securityMarks_.toBuilder();
+              }
+              securityMarks_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1beta1.SecurityMarks.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(securityMarks_);
+                securityMarks_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 74: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
-            }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+              break;
             }
+          case 74:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 82: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
-            }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+              break;
             }
+          case 82:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -144,43 +181,47 @@ private Asset(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1beta1.AssetOuterClass
+        .internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 7:
         return internalGetResourceProperties();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1beta1.AssetOuterClass
+        .internal_static_google_cloud_securitycenter_v1beta1_Asset_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1beta1.Asset.class, com.google.cloud.securitycenter.v1beta1.Asset.Builder.class);
+            com.google.cloud.securitycenter.v1beta1.Asset.class,
+            com.google.cloud.securitycenter.v1beta1.Asset.Builder.class);
   }
 
-  public interface SecurityCenterPropertiesOrBuilder extends
+  public interface SecurityCenterPropertiesOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Immutable. The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -188,10 +229,13 @@ public interface SecurityCenterPropertiesOrBuilder extends
      * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceName. */ java.lang.String getResourceName(); /** + * + * *
      * Immutable. The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -199,12 +243,14 @@ public interface SecurityCenterPropertiesOrBuilder extends
      * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString - getResourceNameBytes(); + com.google.protobuf.ByteString getResourceNameBytes(); /** + * + * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -213,10 +259,13 @@ public interface SecurityCenterPropertiesOrBuilder extends
      * 
* * string resource_type = 2; + * * @return The resourceType. */ java.lang.String getResourceType(); /** + * + * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -225,97 +274,119 @@ public interface SecurityCenterPropertiesOrBuilder extends
      * 
* * string resource_type = 2; + * * @return The bytes for resourceType. */ - com.google.protobuf.ByteString - getResourceTypeBytes(); + com.google.protobuf.ByteString getResourceTypeBytes(); /** + * + * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; + * * @return The resourceParent. */ java.lang.String getResourceParent(); /** + * + * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; + * * @return The bytes for resourceParent. */ - com.google.protobuf.ByteString - getResourceParentBytes(); + com.google.protobuf.ByteString getResourceParentBytes(); /** + * + * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; + * * @return The resourceProject. */ java.lang.String getResourceProject(); /** + * + * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; + * * @return The bytes for resourceProject. */ - com.google.protobuf.ByteString - getResourceProjectBytes(); + com.google.protobuf.ByteString getResourceProjectBytes(); /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @return A list containing the resourceOwners. */ - java.util.List - getResourceOwnersList(); + java.util.List getResourceOwnersList(); /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @return The count of resourceOwners. */ int getResourceOwnersCount(); /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ java.lang.String getResourceOwners(int index); /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ - com.google.protobuf.ByteString - getResourceOwnersBytes(int index); + com.google.protobuf.ByteString getResourceOwnersBytes(int index); } /** + * + * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
@@ -323,15 +394,16 @@ public interface SecurityCenterPropertiesOrBuilder extends
    *
    * Protobuf type {@code google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties}
    */
-  public static final class SecurityCenterProperties extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class SecurityCenterProperties extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties)
       SecurityCenterPropertiesOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use SecurityCenterProperties.newBuilder() to construct.
     private SecurityCenterProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private SecurityCenterProperties() {
       resourceName_ = "";
       resourceType_ = "";
@@ -342,16 +414,15 @@ private SecurityCenterProperties() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new SecurityCenterProperties();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private SecurityCenterProperties(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -371,46 +442,51 @@ private SecurityCenterProperties(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              resourceName_ = s;
-              break;
-            }
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
+                resourceName_ = s;
+                break;
+              }
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              resourceType_ = s;
-              break;
-            }
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
+                resourceType_ = s;
+                break;
+              }
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              resourceParent_ = s;
-              break;
-            }
-            case 34: {
-              java.lang.String s = input.readStringRequireUtf8();
+                resourceParent_ = s;
+                break;
+              }
+            case 34:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              resourceProject_ = s;
-              break;
-            }
-            case 42: {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                resourceOwners_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
+                resourceProject_ = s;
+                break;
               }
-              resourceOwners_.add(s);
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            case 42:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  resourceOwners_ = new com.google.protobuf.LazyStringArrayList();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                resourceOwners_.add(s);
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -418,8 +494,7 @@ private SecurityCenterProperties(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           resourceOwners_ = resourceOwners_.getUnmodifiableView();
@@ -428,22 +503,27 @@ private SecurityCenterProperties(
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1beta1.AssetOuterClass
+          .internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1beta1.AssetOuterClass
+          .internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.class, com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder.class);
+              com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.class,
+              com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder.class);
     }
 
     public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
     private volatile java.lang.Object resourceName_;
     /**
+     *
+     *
      * 
      * Immutable. The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -451,6 +531,7 @@ private SecurityCenterProperties(
      * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceName. */ @java.lang.Override @@ -459,14 +540,15 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** + * + * *
      * Immutable. The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -474,16 +556,15 @@ public java.lang.String getResourceName() {
      * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -494,6 +575,8 @@ public java.lang.String getResourceName() { public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object resourceType_; /** + * + * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -502,6 +585,7 @@ public java.lang.String getResourceName() {
      * 
* * string resource_type = 2; + * * @return The resourceType. */ @java.lang.Override @@ -510,14 +594,15 @@ public java.lang.String getResourceType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; } } /** + * + * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -526,16 +611,15 @@ public java.lang.String getResourceType() {
      * 
* * string resource_type = 2; + * * @return The bytes for resourceType. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceTypeBytes() { + public com.google.protobuf.ByteString getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceType_ = b; return b; } else { @@ -546,12 +630,15 @@ public java.lang.String getResourceType() { public static final int RESOURCE_PARENT_FIELD_NUMBER = 3; private volatile java.lang.Object resourceParent_; /** + * + * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; + * * @return The resourceParent. */ @java.lang.Override @@ -560,30 +647,30 @@ public java.lang.String getResourceParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParent_ = s; return s; } } /** + * + * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; + * * @return The bytes for resourceParent. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceParentBytes() { + public com.google.protobuf.ByteString getResourceParentBytes() { java.lang.Object ref = resourceParent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceParent_ = b; return b; } else { @@ -594,12 +681,15 @@ public java.lang.String getResourceParent() { public static final int RESOURCE_PROJECT_FIELD_NUMBER = 4; private volatile java.lang.Object resourceProject_; /** + * + * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; + * * @return The resourceProject. */ @java.lang.Override @@ -608,30 +698,30 @@ public java.lang.String getResourceProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProject_ = s; return s; } } /** + * + * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; + * * @return The bytes for resourceProject. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceProjectBytes() { + public com.google.protobuf.ByteString getResourceProjectBytes() { java.lang.Object ref = resourceProject_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceProject_ = b; return b; } else { @@ -642,34 +732,42 @@ public java.lang.String getResourceProject() { public static final int RESOURCE_OWNERS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList resourceOwners_; /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @return A list containing the resourceOwners. */ - public com.google.protobuf.ProtocolStringList - getResourceOwnersList() { + public com.google.protobuf.ProtocolStringList getResourceOwnersList() { return resourceOwners_; } /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @return The count of resourceOwners. */ public int getResourceOwnersCount() { return resourceOwners_.size(); } /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ @@ -677,20 +775,23 @@ public java.lang.String getResourceOwners(int index) { return resourceOwners_.get(index); } /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ - public com.google.protobuf.ByteString - getResourceOwnersBytes(int index) { + public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { return resourceOwners_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -702,8 +803,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); } @@ -756,23 +856,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties)) { + if (!(obj + instanceof com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties other = (com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties) obj; - - if (!getResourceName() - .equals(other.getResourceName())) return false; - if (!getResourceType() - .equals(other.getResourceType())) return false; - if (!getResourceParent() - .equals(other.getResourceParent())) return false; - if (!getResourceProject() - .equals(other.getResourceProject())) return false; - if (!getResourceOwnersList() - .equals(other.getResourceOwnersList())) return false; + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties other = + (com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties) obj; + + if (!getResourceName().equals(other.getResourceName())) return false; + if (!getResourceType().equals(other.getResourceType())) return false; + if (!getResourceParent().equals(other.getResourceParent())) return false; + if (!getResourceProject().equals(other.getResourceProject())) return false; + if (!getResourceOwnersList().equals(other.getResourceOwnersList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -802,87 +899,95 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -892,6 +997,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
@@ -899,38 +1006,42 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties)
         com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.securitycenter.v1beta1.AssetOuterClass
+            .internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_fieldAccessorTable
+        return com.google.cloud.securitycenter.v1beta1.AssetOuterClass
+            .internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.class, com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder.class);
+                com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.class,
+                com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder
+                    .class);
       }
 
-      // Construct using com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.newBuilder()
+      // Construct using
+      // com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -948,19 +1059,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.securitycenter.v1beta1.AssetOuterClass
+            .internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties getDefaultInstanceForType() {
-        return com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.getDefaultInstance();
+      public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties
+          getDefaultInstanceForType() {
+        return com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties build() {
-        com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties result = buildPartial();
+        com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -969,7 +1083,8 @@ public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties bu
 
       @java.lang.Override
       public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties buildPartial() {
-        com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties result = new com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties(this);
+        com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties result =
+            new com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties(this);
         int from_bitField0_ = bitField0_;
         result.resourceName_ = resourceName_;
         result.resourceType_ = resourceType_;
@@ -988,46 +1103,54 @@ public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties bu
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties) {
-          return mergeFrom((com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties)other);
+        if (other
+            instanceof com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties) {
+          return mergeFrom(
+              (com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties other) {
-        if (other == com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties other) {
+        if (other
+            == com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties
+                .getDefaultInstance()) return this;
         if (!other.getResourceName().isEmpty()) {
           resourceName_ = other.resourceName_;
           onChanged();
@@ -1073,7 +1196,9 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1082,10 +1207,13 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
       private java.lang.Object resourceName_ = "";
       /**
+       *
+       *
        * 
        * Immutable. The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1093,13 +1221,13 @@ public Builder mergeFrom(
        * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -1108,6 +1236,8 @@ public java.lang.String getResourceName() { } } /** + * + * *
        * Immutable. The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1115,15 +1245,14 @@ public java.lang.String getResourceName() {
        * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -1131,6 +1260,8 @@ public java.lang.String getResourceName() { } } /** + * + * *
        * Immutable. The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1138,20 +1269,22 @@ public java.lang.String getResourceName() {
        * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName( - java.lang.String value) { + public Builder setResourceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceName_ = value; onChanged(); return this; } /** + * + * *
        * Immutable. The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1159,15 +1292,18 @@ public Builder setResourceName(
        * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearResourceName() { - + resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** + * + * *
        * Immutable. The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1175,16 +1311,16 @@ public Builder clearResourceName() {
        * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; onChanged(); return this; @@ -1192,6 +1328,8 @@ public Builder setResourceNameBytes( private java.lang.Object resourceType_ = ""; /** + * + * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1200,13 +1338,13 @@ public Builder setResourceNameBytes(
        * 
* * string resource_type = 2; + * * @return The resourceType. */ public java.lang.String getResourceType() { java.lang.Object ref = resourceType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; @@ -1215,6 +1353,8 @@ public java.lang.String getResourceType() { } } /** + * + * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1223,15 +1363,14 @@ public java.lang.String getResourceType() {
        * 
* * string resource_type = 2; + * * @return The bytes for resourceType. */ - public com.google.protobuf.ByteString - getResourceTypeBytes() { + public com.google.protobuf.ByteString getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceType_ = b; return b; } else { @@ -1239,6 +1378,8 @@ public java.lang.String getResourceType() { } } /** + * + * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1247,20 +1388,22 @@ public java.lang.String getResourceType() {
        * 
* * string resource_type = 2; + * * @param value The resourceType to set. * @return This builder for chaining. */ - public Builder setResourceType( - java.lang.String value) { + public Builder setResourceType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceType_ = value; onChanged(); return this; } /** + * + * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1269,15 +1412,18 @@ public Builder setResourceType(
        * 
* * string resource_type = 2; + * * @return This builder for chaining. */ public Builder clearResourceType() { - + resourceType_ = getDefaultInstance().getResourceType(); onChanged(); return this; } /** + * + * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1286,16 +1432,16 @@ public Builder clearResourceType() {
        * 
* * string resource_type = 2; + * * @param value The bytes for resourceType to set. * @return This builder for chaining. */ - public Builder setResourceTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceType_ = value; onChanged(); return this; @@ -1303,19 +1449,21 @@ public Builder setResourceTypeBytes( private java.lang.Object resourceParent_ = ""; /** + * + * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; + * * @return The resourceParent. */ public java.lang.String getResourceParent() { java.lang.Object ref = resourceParent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParent_ = s; return s; @@ -1324,21 +1472,22 @@ public java.lang.String getResourceParent() { } } /** + * + * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; + * * @return The bytes for resourceParent. */ - public com.google.protobuf.ByteString - getResourceParentBytes() { + public com.google.protobuf.ByteString getResourceParentBytes() { java.lang.Object ref = resourceParent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceParent_ = b; return b; } else { @@ -1346,57 +1495,64 @@ public java.lang.String getResourceParent() { } } /** + * + * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; + * * @param value The resourceParent to set. * @return This builder for chaining. */ - public Builder setResourceParent( - java.lang.String value) { + public Builder setResourceParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceParent_ = value; onChanged(); return this; } /** + * + * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; + * * @return This builder for chaining. */ public Builder clearResourceParent() { - + resourceParent_ = getDefaultInstance().getResourceParent(); onChanged(); return this; } /** + * + * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; + * * @param value The bytes for resourceParent to set. * @return This builder for chaining. */ - public Builder setResourceParentBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceParent_ = value; onChanged(); return this; @@ -1404,19 +1560,21 @@ public Builder setResourceParentBytes( private java.lang.Object resourceProject_ = ""; /** + * + * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; + * * @return The resourceProject. */ public java.lang.String getResourceProject() { java.lang.Object ref = resourceProject_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProject_ = s; return s; @@ -1425,21 +1583,22 @@ public java.lang.String getResourceProject() { } } /** + * + * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; + * * @return The bytes for resourceProject. */ - public com.google.protobuf.ByteString - getResourceProjectBytes() { + public com.google.protobuf.ByteString getResourceProjectBytes() { java.lang.Object ref = resourceProject_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceProject_ = b; return b; } else { @@ -1447,98 +1606,115 @@ public java.lang.String getResourceProject() { } } /** + * + * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; + * * @param value The resourceProject to set. * @return This builder for chaining. */ - public Builder setResourceProject( - java.lang.String value) { + public Builder setResourceProject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceProject_ = value; onChanged(); return this; } /** + * + * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; + * * @return This builder for chaining. */ public Builder clearResourceProject() { - + resourceProject_ = getDefaultInstance().getResourceProject(); onChanged(); return this; } /** + * + * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; + * * @param value The bytes for resourceProject to set. * @return This builder for chaining. */ - public Builder setResourceProjectBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceProject_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList resourceOwners_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList resourceOwners_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureResourceOwnersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resourceOwners_ = new com.google.protobuf.LazyStringArrayList(resourceOwners_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @return A list containing the resourceOwners. */ - public com.google.protobuf.ProtocolStringList - getResourceOwnersList() { + public com.google.protobuf.ProtocolStringList getResourceOwnersList() { return resourceOwners_.getUnmodifiableView(); } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @return The count of resourceOwners. */ public int getResourceOwnersCount() { return resourceOwners_.size(); } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ @@ -1546,80 +1722,90 @@ public java.lang.String getResourceOwners(int index) { return resourceOwners_.get(index); } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ - public com.google.protobuf.ByteString - getResourceOwnersBytes(int index) { + public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { return resourceOwners_.getByteString(index); } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @param index The index to set the value at. * @param value The resourceOwners to set. * @return This builder for chaining. */ - public Builder setResourceOwners( - int index, java.lang.String value) { + public Builder setResourceOwners(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceOwnersIsMutable(); + throw new NullPointerException(); + } + ensureResourceOwnersIsMutable(); resourceOwners_.set(index, value); onChanged(); return this; } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @param value The resourceOwners to add. * @return This builder for chaining. */ - public Builder addResourceOwners( - java.lang.String value) { + public Builder addResourceOwners(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceOwnersIsMutable(); + throw new NullPointerException(); + } + ensureResourceOwnersIsMutable(); resourceOwners_.add(value); onChanged(); return this; } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @param values The resourceOwners to add. * @return This builder for chaining. */ - public Builder addAllResourceOwners( - java.lang.Iterable values) { + public Builder addAllResourceOwners(java.lang.Iterable values) { ensureResourceOwnersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceOwners_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceOwners_); onChanged(); return this; } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @return This builder for chaining. */ public Builder clearResourceOwners() { @@ -1629,25 +1815,28 @@ public Builder clearResourceOwners() { return this; } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @param value The bytes of the resourceOwners to add. * @return This builder for chaining. */ - public Builder addResourceOwnersBytes( - com.google.protobuf.ByteString value) { + public Builder addResourceOwnersBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureResourceOwnersIsMutable(); resourceOwners_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1660,30 +1849,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties) - private static final com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties(); } - public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties getDefaultInstance() { + public static com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecurityCenterProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecurityCenterProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityCenterProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecurityCenterProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1695,15 +1887,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1712,6 +1906,7 @@ public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties ge
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -1720,14 +1915,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1736,16 +1932,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1754,14 +1949,20 @@ public java.lang.String getName() { } public static final int SECURITY_CENTER_PROPERTIES_FIELD_NUMBER = 2; - private com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties securityCenterProperties_; + private com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties + securityCenterProperties_; /** + * + * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * * @return Whether the securityCenterProperties field is set. */ @java.lang.Override @@ -1769,47 +1970,65 @@ public boolean hasSecurityCenterProperties() { return securityCenterProperties_ != null; } /** + * + * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * * @return The securityCenterProperties. */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties getSecurityCenterProperties() { - return securityCenterProperties_ == null ? com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.getDefaultInstance() : securityCenterProperties_; + public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties + getSecurityCenterProperties() { + return securityCenterProperties_ == null + ? com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties + .getDefaultInstance() + : securityCenterProperties_; } /** + * + * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder() { + public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder + getSecurityCenterPropertiesOrBuilder() { return getSecurityCenterProperties(); } public static final int RESOURCE_PROPERTIES_FIELD_NUMBER = 7; + private static final class ResourcePropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.Value> defaultEntry = + static final com.google.protobuf.MapEntry + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.securitycenter.v1beta1.AssetOuterClass + .internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> resourceProperties_; + + private com.google.protobuf.MapField + resourceProperties_; + private com.google.protobuf.MapField - internalGetResourceProperties() { + internalGetResourceProperties() { if (resourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( ResourcePropertiesDefaultEntryHolder.defaultEntry); @@ -1821,6 +2040,8 @@ public int getResourcePropertiesCount() { return internalGetResourceProperties().getMap().size(); } /** + * + * *
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -1828,22 +2049,22 @@ public int getResourcePropertiesCount() {
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-
   @java.lang.Override
-  public boolean containsResourceProperties(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsResourceProperties(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetResourceProperties().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getResourcePropertiesMap()} instead.
-   */
+  /** Use {@link #getResourcePropertiesMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getResourceProperties() {
     return getResourcePropertiesMap();
   }
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -1852,11 +2073,12 @@ public java.util.Map getResourcePro
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
   @java.lang.Override
-
   public java.util.Map getResourcePropertiesMap() {
     return internalGetResourceProperties().getMap();
   }
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -1865,16 +2087,18 @@ public java.util.Map getResourcePro
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
   @java.lang.Override
-
   public com.google.protobuf.Value getResourcePropertiesOrDefault(
-      java.lang.String key,
-      com.google.protobuf.Value defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
+      java.lang.String key, com.google.protobuf.Value defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetResourceProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -1883,10 +2107,10 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
   @java.lang.Override
-
-  public com.google.protobuf.Value getResourcePropertiesOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetResourceProperties().getMap();
     if (!map.containsKey(key)) {
@@ -1898,12 +2122,15 @@ public com.google.protobuf.Value getResourcePropertiesOrThrow(
   public static final int SECURITY_MARKS_FIELD_NUMBER = 8;
   private com.google.cloud.securitycenter.v1beta1.SecurityMarks securityMarks_;
   /**
+   *
+   *
    * 
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * * @return Whether the securityMarks field is set. */ @java.lang.Override @@ -1911,19 +2138,26 @@ public boolean hasSecurityMarks() { return securityMarks_ != null; } /** + * + * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * * @return The securityMarks. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() { - return securityMarks_ == null ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() + : securityMarks_; } /** + * + * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
@@ -1932,18 +2166,22 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks()
    * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8;
    */
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() {
+  public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder
+      getSecurityMarksOrBuilder() {
     return getSecurityMarks();
   }
 
   public static final int CREATE_TIME_FIELD_NUMBER = 9;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1951,11 +2189,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; + * * @return The createTime. */ @java.lang.Override @@ -1963,6 +2204,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time at which the asset was created in Security Command Center.
    * 
@@ -1977,12 +2220,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The time at which the asset was last updated, added, or deleted in Security
    * Command Center.
    * 
* * .google.protobuf.Timestamp update_time = 10; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1990,12 +2236,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * The time at which the asset was last updated, added, or deleted in Security
    * Command Center.
    * 
* * .google.protobuf.Timestamp update_time = 10; + * * @return The updateTime. */ @java.lang.Override @@ -2003,6 +2252,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The time at which the asset was last updated, added, or deleted in Security
    * Command Center.
@@ -2016,6 +2267,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -2027,16 +2279,14 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
     if (securityCenterProperties_ != null) {
       output.writeMessage(2, getSecurityCenterProperties());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
         output,
         internalGetResourceProperties(),
         ResourcePropertiesDefaultEntryHolder.defaultEntry,
@@ -2063,30 +2313,29 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (securityCenterProperties_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getSecurityCenterProperties());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, getSecurityCenterProperties());
     }
-    for (java.util.Map.Entry entry
-         : internalGetResourceProperties().getMap().entrySet()) {
+    for (java.util.Map.Entry entry :
+        internalGetResourceProperties().getMap().entrySet()) {
       com.google.protobuf.MapEntry
-      resourceProperties__ = ResourcePropertiesDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(7, resourceProperties__);
+          resourceProperties__ =
+              ResourcePropertiesDefaultEntryHolder.defaultEntry
+                  .newBuilderForType()
+                  .setKey(entry.getKey())
+                  .setValue(entry.getValue())
+                  .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, resourceProperties__);
     }
     if (securityMarks_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, getSecurityMarks());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSecurityMarks());
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime());
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(10, getUpdateTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -2096,36 +2345,32 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.Asset)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1beta1.Asset other = (com.google.cloud.securitycenter.v1beta1.Asset) obj;
+    com.google.cloud.securitycenter.v1beta1.Asset other =
+        (com.google.cloud.securitycenter.v1beta1.Asset) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasSecurityCenterProperties() != other.hasSecurityCenterProperties()) return false;
     if (hasSecurityCenterProperties()) {
-      if (!getSecurityCenterProperties()
-          .equals(other.getSecurityCenterProperties())) return false;
+      if (!getSecurityCenterProperties().equals(other.getSecurityCenterProperties())) return false;
     }
-    if (!internalGetResourceProperties().equals(
-        other.internalGetResourceProperties())) return false;
+    if (!internalGetResourceProperties().equals(other.internalGetResourceProperties()))
+      return false;
     if (hasSecurityMarks() != other.hasSecurityMarks()) return false;
     if (hasSecurityMarks()) {
-      if (!getSecurityMarks()
-          .equals(other.getSecurityMarks())) return false;
+      if (!getSecurityMarks().equals(other.getSecurityMarks())) return false;
     }
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime()
-          .equals(other.getCreateTime())) return false;
+      if (!getCreateTime().equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime()
-          .equals(other.getUpdateTime())) return false;
+      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -2165,97 +2410,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1beta1.Asset parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1beta1.Asset parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.Asset parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.Asset parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.Asset prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Security Command Center representation of a Google Cloud
    * resource.
@@ -2267,43 +2519,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1beta1.Asset}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.Asset)
       com.google.cloud.securitycenter.v1beta1.AssetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1beta1.AssetOuterClass
+          .internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 7:
           return internalGetResourceProperties();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 7:
           return internalGetMutableResourceProperties();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1beta1.AssetOuterClass
+          .internal_static_google_cloud_securitycenter_v1beta1_Asset_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1beta1.Asset.class, com.google.cloud.securitycenter.v1beta1.Asset.Builder.class);
+              com.google.cloud.securitycenter.v1beta1.Asset.class,
+              com.google.cloud.securitycenter.v1beta1.Asset.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1beta1.Asset.newBuilder()
@@ -2311,16 +2563,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2355,9 +2606,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1beta1.AssetOuterClass
+          .internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor;
     }
 
     @java.lang.Override
@@ -2376,7 +2627,8 @@ public com.google.cloud.securitycenter.v1beta1.Asset build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1beta1.Asset buildPartial() {
-      com.google.cloud.securitycenter.v1beta1.Asset result = new com.google.cloud.securitycenter.v1beta1.Asset(this);
+      com.google.cloud.securitycenter.v1beta1.Asset result =
+          new com.google.cloud.securitycenter.v1beta1.Asset(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (securityCenterPropertiesBuilder_ == null) {
@@ -2409,38 +2661,39 @@ public com.google.cloud.securitycenter.v1beta1.Asset buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1beta1.Asset) {
-        return mergeFrom((com.google.cloud.securitycenter.v1beta1.Asset)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1beta1.Asset) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2456,8 +2709,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.Asset other) {
       if (other.hasSecurityCenterProperties()) {
         mergeSecurityCenterProperties(other.getSecurityCenterProperties());
       }
-      internalGetMutableResourceProperties().mergeFrom(
-          other.internalGetResourceProperties());
+      internalGetMutableResourceProperties().mergeFrom(other.internalGetResourceProperties());
       if (other.hasSecurityMarks()) {
         mergeSecurityMarks(other.getSecurityMarks());
       }
@@ -2495,10 +2747,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2507,13 +2762,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2522,6 +2777,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2530,15 +2787,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2546,6 +2802,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2554,20 +2812,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2576,15 +2836,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -2593,61 +2856,84 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties securityCenterProperties_; + private com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties + securityCenterProperties_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder> securityCenterPropertiesBuilder_; + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties, + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder, + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder> + securityCenterPropertiesBuilder_; /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * * @return Whether the securityCenterProperties field is set. */ public boolean hasSecurityCenterProperties() { return securityCenterPropertiesBuilder_ != null || securityCenterProperties_ != null; } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * * @return The securityCenterProperties. */ - public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties getSecurityCenterProperties() { + public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties + getSecurityCenterProperties() { if (securityCenterPropertiesBuilder_ == null) { - return securityCenterProperties_ == null ? com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.getDefaultInstance() : securityCenterProperties_; + return securityCenterProperties_ == null + ? com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties + .getDefaultInstance() + : securityCenterProperties_; } else { return securityCenterPropertiesBuilder_.getMessage(); } } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ - public Builder setSecurityCenterProperties(com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties value) { + public Builder setSecurityCenterProperties( + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties value) { if (securityCenterPropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2661,15 +2947,20 @@ public Builder setSecurityCenterProperties(com.google.cloud.securitycenter.v1bet return this; } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ public Builder setSecurityCenterProperties( - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder builderForValue) { + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder + builderForValue) { if (securityCenterPropertiesBuilder_ == null) { securityCenterProperties_ = builderForValue.build(); onChanged(); @@ -2680,18 +2971,26 @@ public Builder setSecurityCenterProperties( return this; } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ - public Builder mergeSecurityCenterProperties(com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties value) { + public Builder mergeSecurityCenterProperties( + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties value) { if (securityCenterPropertiesBuilder_ == null) { if (securityCenterProperties_ != null) { securityCenterProperties_ = - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.newBuilder(securityCenterProperties_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.newBuilder( + securityCenterProperties_) + .mergeFrom(value) + .buildPartial(); } else { securityCenterProperties_ = value; } @@ -2703,12 +3002,16 @@ public Builder mergeSecurityCenterProperties(com.google.cloud.securitycenter.v1b return this; } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ public Builder clearSecurityCenterProperties() { if (securityCenterPropertiesBuilder_ == null) { @@ -2722,72 +3025,95 @@ public Builder clearSecurityCenterProperties() { return this; } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ - public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder getSecurityCenterPropertiesBuilder() { - + public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder + getSecurityCenterPropertiesBuilder() { + onChanged(); return getSecurityCenterPropertiesFieldBuilder().getBuilder(); } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ - public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder() { + public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder + getSecurityCenterPropertiesOrBuilder() { if (securityCenterPropertiesBuilder_ != null) { return securityCenterPropertiesBuilder_.getMessageOrBuilder(); } else { - return securityCenterProperties_ == null ? - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.getDefaultInstance() : securityCenterProperties_; + return securityCenterProperties_ == null + ? com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties + .getDefaultInstance() + : securityCenterProperties_; } } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder> + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties, + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder, + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder> getSecurityCenterPropertiesFieldBuilder() { if (securityCenterPropertiesBuilder_ == null) { - securityCenterPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder>( - getSecurityCenterProperties(), - getParentForChildren(), - isClean()); + securityCenterPropertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties, + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder, + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder>( + getSecurityCenterProperties(), getParentForChildren(), isClean()); securityCenterProperties_ = null; } return securityCenterPropertiesBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> resourceProperties_; private com.google.protobuf.MapField - internalGetResourceProperties() { + resourceProperties_; + + private com.google.protobuf.MapField + internalGetResourceProperties() { if (resourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( ResourcePropertiesDefaultEntryHolder.defaultEntry); } return resourceProperties_; } + private com.google.protobuf.MapField - internalGetMutableResourceProperties() { - onChanged();; + internalGetMutableResourceProperties() { + onChanged(); + ; if (resourceProperties_ == null) { - resourceProperties_ = com.google.protobuf.MapField.newMapField( - ResourcePropertiesDefaultEntryHolder.defaultEntry); + resourceProperties_ = + com.google.protobuf.MapField.newMapField( + ResourcePropertiesDefaultEntryHolder.defaultEntry); } if (!resourceProperties_.isMutable()) { resourceProperties_ = resourceProperties_.copy(); @@ -2799,6 +3125,8 @@ public int getResourcePropertiesCount() { return internalGetResourceProperties().getMap().size(); } /** + * + * *
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -2806,22 +3134,22 @@ public int getResourcePropertiesCount() {
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
-
     @java.lang.Override
-    public boolean containsResourceProperties(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsResourceProperties(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetResourceProperties().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getResourcePropertiesMap()} instead.
-     */
+    /** Use {@link #getResourcePropertiesMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getResourceProperties() {
       return getResourcePropertiesMap();
     }
     /**
+     *
+     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -2830,11 +3158,12 @@ public java.util.Map getResourcePro
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
     @java.lang.Override
-
     public java.util.Map getResourcePropertiesMap() {
       return internalGetResourceProperties().getMap();
     }
     /**
+     *
+     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -2843,16 +3172,18 @@ public java.util.Map getResourcePro
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
     @java.lang.Override
-
     public com.google.protobuf.Value getResourcePropertiesOrDefault(
-        java.lang.String key,
-        com.google.protobuf.Value defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
+        java.lang.String key, com.google.protobuf.Value defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetResourceProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -2861,10 +3192,10 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
     @java.lang.Override
-
-    public com.google.protobuf.Value getResourcePropertiesOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetResourceProperties().getMap();
       if (!map.containsKey(key)) {
@@ -2874,11 +3205,12 @@ public com.google.protobuf.Value getResourcePropertiesOrThrow(
     }
 
     public Builder clearResourceProperties() {
-      internalGetMutableResourceProperties().getMutableMap()
-          .clear();
+      internalGetMutableResourceProperties().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -2886,23 +3218,22 @@ public Builder clearResourceProperties() {
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
-
-    public Builder removeResourceProperties(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableResourceProperties().getMutableMap()
-          .remove(key);
+    public Builder removeResourceProperties(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableResourceProperties().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
     public java.util.Map
-    getMutableResourceProperties() {
+        getMutableResourceProperties() {
       return internalGetMutableResourceProperties().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -2910,19 +3241,20 @@ public Builder removeResourceProperties(
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
-    public Builder putResourceProperties(
-        java.lang.String key,
-        com.google.protobuf.Value value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putResourceProperties(java.lang.String key, com.google.protobuf.Value value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableResourceProperties().getMutableMap()
-          .put(key, value);
+      internalGetMutableResourceProperties().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -2930,46 +3262,57 @@ public Builder putResourceProperties(
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
-
     public Builder putAllResourceProperties(
         java.util.Map values) {
-      internalGetMutableResourceProperties().getMutableMap()
-          .putAll(values);
+      internalGetMutableResourceProperties().getMutableMap().putAll(values);
       return this;
     }
 
     private com.google.cloud.securitycenter.v1beta1.SecurityMarks securityMarks_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder> securityMarksBuilder_;
+            com.google.cloud.securitycenter.v1beta1.SecurityMarks,
+            com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder,
+            com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder>
+        securityMarksBuilder_;
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
      * 
* * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; } /** + * + * *
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
      * 
* * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * * @return The securityMarks. */ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { - return securityMarks_ == null ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() + : securityMarks_; } else { return securityMarksBuilder_.getMessage(); } } /** + * + * *
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -2991,6 +3334,8 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1beta1.Security
       return this;
     }
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -3010,6 +3355,8 @@ public Builder setSecurityMarks(
       return this;
     }
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -3021,7 +3368,9 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1beta1.Securi
       if (securityMarksBuilder_ == null) {
         if (securityMarks_ != null) {
           securityMarks_ =
-            com.google.cloud.securitycenter.v1beta1.SecurityMarks.newBuilder(securityMarks_).mergeFrom(value).buildPartial();
+              com.google.cloud.securitycenter.v1beta1.SecurityMarks.newBuilder(securityMarks_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           securityMarks_ = value;
         }
@@ -3033,6 +3382,8 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1beta1.Securi
       return this;
     }
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -3052,6 +3403,8 @@ public Builder clearSecurityMarks() {
       return this;
     }
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -3060,11 +3413,13 @@ public Builder clearSecurityMarks() {
      * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8;
      */
     public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurityMarksBuilder() {
-      
+
       onChanged();
       return getSecurityMarksFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -3072,15 +3427,19 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurity
      *
      * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8;
      */
-    public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() {
+    public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder
+        getSecurityMarksOrBuilder() {
       if (securityMarksBuilder_ != null) {
         return securityMarksBuilder_.getMessageOrBuilder();
       } else {
-        return securityMarks_ == null ?
-            com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() : securityMarks_;
+        return securityMarks_ == null
+            ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance()
+            : securityMarks_;
       }
     }
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -3089,14 +3448,17 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurit
      * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder> 
+            com.google.cloud.securitycenter.v1beta1.SecurityMarks,
+            com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder,
+            com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder>
         getSecurityMarksFieldBuilder() {
       if (securityMarksBuilder_ == null) {
-        securityMarksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder>(
-                getSecurityMarks(),
-                getParentForChildren(),
-                isClean());
+        securityMarksBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.securitycenter.v1beta1.SecurityMarks,
+                com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder,
+                com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder>(
+                getSecurityMarks(), getParentForChildren(), isClean());
         securityMarks_ = null;
       }
       return securityMarksBuilder_;
@@ -3104,34 +3466,47 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurit
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -3152,14 +3527,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3170,6 +3546,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -3180,7 +3558,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3192,6 +3570,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -3210,6 +3590,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -3217,11 +3599,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 9; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -3232,11 +3616,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -3244,14 +3631,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3259,36 +3649,49 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * The time at which the asset was last updated, added, or deleted in Security
      * Command Center.
      * 
* * .google.protobuf.Timestamp update_time = 10; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * The time at which the asset was last updated, added, or deleted in Security
      * Command Center.
      * 
* * .google.protobuf.Timestamp update_time = 10; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * The time at which the asset was last updated, added, or deleted in Security
      * Command Center.
@@ -3310,6 +3713,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the asset was last updated, added, or deleted in Security
      * Command Center.
@@ -3317,8 +3722,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp update_time = 10;
      */
-    public Builder setUpdateTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (updateTimeBuilder_ == null) {
         updateTime_ = builderForValue.build();
         onChanged();
@@ -3329,6 +3733,8 @@ public Builder setUpdateTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the asset was last updated, added, or deleted in Security
      * Command Center.
@@ -3340,7 +3746,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       if (updateTimeBuilder_ == null) {
         if (updateTime_ != null) {
           updateTime_ =
-            com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
         } else {
           updateTime_ = value;
         }
@@ -3352,6 +3758,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the asset was last updated, added, or deleted in Security
      * Command Center.
@@ -3371,6 +3779,8 @@ public Builder clearUpdateTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the asset was last updated, added, or deleted in Security
      * Command Center.
@@ -3379,11 +3789,13 @@ public Builder clearUpdateTime() {
      * .google.protobuf.Timestamp update_time = 10;
      */
     public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
-      
+
       onChanged();
       return getUpdateTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time at which the asset was last updated, added, or deleted in Security
      * Command Center.
@@ -3395,11 +3807,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
       if (updateTimeBuilder_ != null) {
         return updateTimeBuilder_.getMessageOrBuilder();
       } else {
-        return updateTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
+        return updateTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : updateTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time at which the asset was last updated, added, or deleted in Security
      * Command Center.
@@ -3408,21 +3823,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * .google.protobuf.Timestamp update_time = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getUpdateTimeFieldBuilder() {
       if (updateTimeBuilder_ == null) {
-        updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getUpdateTime(),
-                getParentForChildren(),
-                isClean());
+        updateTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getUpdateTime(), getParentForChildren(), isClean());
         updateTime_ = null;
       }
       return updateTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -3432,12 +3850,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.Asset)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.Asset)
   private static final com.google.cloud.securitycenter.v1beta1.Asset DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.Asset();
   }
@@ -3446,16 +3864,16 @@ public static com.google.cloud.securitycenter.v1beta1.Asset getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Asset parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Asset(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Asset parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Asset(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3470,6 +3888,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.securitycenter.v1beta1.Asset getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOrBuilder.java
similarity index 75%
rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOrBuilder.java
rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOrBuilder.java
index 0f7e2e844..f661721c9 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1beta1/asset.proto
 
 package com.google.cloud.securitycenter.v1beta1;
 
-public interface AssetOrBuilder extends
+public interface AssetOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.Asset)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -16,10 +34,13 @@ public interface AssetOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -28,42 +49,60 @@ public interface AssetOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * * @return Whether the securityCenterProperties field is set. */ boolean hasSecurityCenterProperties(); /** + * + * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * * @return The securityCenterProperties. */ - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties getSecurityCenterProperties(); + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties + getSecurityCenterProperties(); /** + * + * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ - com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder(); + com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterPropertiesOrBuilder + getSecurityCenterPropertiesOrBuilder(); /** + * + * *
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -73,6 +112,8 @@ public interface AssetOrBuilder extends
    */
   int getResourcePropertiesCount();
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -80,15 +121,13 @@ public interface AssetOrBuilder extends
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-  boolean containsResourceProperties(
-      java.lang.String key);
-  /**
-   * Use {@link #getResourcePropertiesMap()} instead.
-   */
+  boolean containsResourceProperties(java.lang.String key);
+  /** Use {@link #getResourcePropertiesMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getResourceProperties();
+  java.util.Map getResourceProperties();
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -96,9 +135,10 @@ boolean containsResourceProperties(
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-  java.util.Map
-  getResourcePropertiesMap();
+  java.util.Map getResourcePropertiesMap();
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -108,11 +148,13 @@ boolean containsResourceProperties(
    */
 
   /* nullable */
-com.google.protobuf.Value getResourcePropertiesOrDefault(
+  com.google.protobuf.Value getResourcePropertiesOrDefault(
       java.lang.String key,
       /* nullable */
-com.google.protobuf.Value defaultValue);
+      com.google.protobuf.Value defaultValue);
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -120,31 +162,37 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-
-  com.google.protobuf.Value getResourcePropertiesOrThrow(
-      java.lang.String key);
+  com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** + * + * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8; + * * @return The securityMarks. */ com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks(); /** + * + * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
@@ -155,24 +203,32 @@ com.google.protobuf.Value getResourcePropertiesOrThrow(
   com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder();
 
   /**
+   *
+   *
    * 
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time at which the asset was created in Security Command Center.
    * 
@@ -182,26 +238,34 @@ com.google.protobuf.Value getResourcePropertiesOrThrow( com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time at which the asset was last updated, added, or deleted in Security
    * Command Center.
    * 
* * .google.protobuf.Timestamp update_time = 10; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The time at which the asset was last updated, added, or deleted in Security
    * Command Center.
    * 
* * .google.protobuf.Timestamp update_time = 10; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The time at which the asset was last updated, added, or deleted in Security
    * Command Center.
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java
new file mode 100644
index 000000000..f996dcab8
--- /dev/null
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/AssetOuterClass.java
@@ -0,0 +1,140 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/securitycenter/v1beta1/asset.proto
+
+package com.google.cloud.securitycenter.v1beta1;
+
+public final class AssetOuterClass {
+  private AssetOuterClass() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_Asset_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n/google/cloud/securitycenter/v1beta1/as"
+          + "set.proto\022#google.cloud.securitycenter.v"
+          + "1beta1\032\037google/api/field_behavior.proto\032"
+          + "\031google/api/resource.proto\0328google/cloud"
+          + "/securitycenter/v1beta1/security_marks.p"
+          + "roto\032\034google/protobuf/struct.proto\032\037goog"
+          + "le/protobuf/timestamp.proto\032\034google/api/"
+          + "annotations.proto\"\323\005\n\005Asset\022\014\n\004name\030\001 \001("
+          + "\t\022g\n\032security_center_properties\030\002 \001(\0132C."
+          + "google.cloud.securitycenter.v1beta1.Asse"
+          + "t.SecurityCenterProperties\022_\n\023resource_p"
+          + "roperties\030\007 \003(\0132B.google.cloud.securityc"
+          + "enter.v1beta1.Asset.ResourcePropertiesEn"
+          + "try\022J\n\016security_marks\030\010 \001(\01322.google.clo"
+          + "ud.securitycenter.v1beta1.SecurityMarks\022"
+          + "/\n\013create_time\030\t \001(\0132\032.google.protobuf.T"
+          + "imestamp\022/\n\013update_time\030\n \001(\0132\032.google.p"
+          + "rotobuf.Timestamp\032\231\001\n\030SecurityCenterProp"
+          + "erties\022\032\n\rresource_name\030\001 \001(\tB\003\340A\005\022\025\n\rre"
+          + "source_type\030\002 \001(\t\022\027\n\017resource_parent\030\003 \001"
+          + "(\t\022\030\n\020resource_project\030\004 \001(\t\022\027\n\017resource"
+          + "_owners\030\005 \003(\t\032Q\n\027ResourcePropertiesEntry"
+          + "\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pr"
+          + "otobuf.Value:\0028\001:U\352AR\n#securitycenter.go"
+          + "ogleapis.com/Asset\022+organizations/{organ"
+          + "ization}/assets/{asset}B~\n\'com.google.cl"
+          + "oud.securitycenter.v1beta1P\001ZQgoogle.gol"
+          + "ang.org/genproto/googleapis/cloud/securi"
+          + "tycenter/v1beta1;securitycenterb\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor(),
+              com.google.protobuf.StructProto.getDescriptor(),
+              com.google.protobuf.TimestampProto.getDescriptor(),
+              com.google.api.AnnotationsProto.getDescriptor(),
+            });
+    internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_securitycenter_v1beta1_Asset_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor,
+            new java.lang.String[] {
+              "Name",
+              "SecurityCenterProperties",
+              "ResourceProperties",
+              "SecurityMarks",
+              "CreateTime",
+              "UpdateTime",
+            });
+    internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor =
+        internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_securitycenter_v1beta1_Asset_SecurityCenterProperties_descriptor,
+            new java.lang.String[] {
+              "ResourceName", "ResourceType", "ResourceParent", "ResourceProject", "ResourceOwners",
+            });
+    internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_descriptor =
+        internal_static_google_cloud_securitycenter_v1beta1_Asset_descriptor
+            .getNestedTypes()
+            .get(1);
+    internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_securitycenter_v1beta1_Asset_ResourcePropertiesEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor();
+    com.google.protobuf.StructProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
+    com.google.api.AnnotationsProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java
similarity index 67%
rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java
rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java
index 89f1c3e50..44cad179d 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1beta1;
 
 /**
+ *
+ *
  * 
  * Request message for creating a finding.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.CreateFindingRequest} */ -public final class CreateFindingRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateFindingRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.CreateFindingRequest) CreateFindingRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateFindingRequest.newBuilder() to construct. private CreateFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateFindingRequest() { parent_ = ""; findingId_ = ""; @@ -26,16 +44,15 @@ private CreateFindingRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateFindingRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - findingId_ = s; - break; - } - case 26: { - com.google.cloud.securitycenter.v1beta1.Finding.Builder subBuilder = null; - if (finding_ != null) { - subBuilder = finding_.toBuilder(); + parent_ = s; + break; } - finding_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.Finding.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(finding_); - finding_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + findingId_ = s; + break; } + case 26: + { + com.google.cloud.securitycenter.v1beta1.Finding.Builder subBuilder = null; + if (finding_ != null) { + subBuilder = finding_.toBuilder(); + } + finding_ = + input.readMessage( + com.google.cloud.securitycenter.v1beta1.Finding.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finding_); + finding_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +115,42 @@ private CreateFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.class, com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.class, + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -130,30 +159,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -164,6 +195,8 @@ public java.lang.String getParent() { public static final int FINDING_ID_FIELD_NUMBER = 2; private volatile java.lang.Object findingId_; /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
@@ -171,6 +204,7 @@ public java.lang.String getParent() {
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The findingId. */ @java.lang.Override @@ -179,14 +213,15 @@ public java.lang.String getFindingId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingId_ = s; return s; } } /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
@@ -194,16 +229,15 @@ public java.lang.String getFindingId() {
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for findingId. */ @java.lang.Override - public com.google.protobuf.ByteString - getFindingIdBytes() { + public com.google.protobuf.ByteString getFindingIdBytes() { java.lang.Object ref = findingId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); findingId_ = b; return b; } else { @@ -214,12 +248,17 @@ public java.lang.String getFindingId() { public static final int FINDING_FIELD_NUMBER = 3; private com.google.cloud.securitycenter.v1beta1.Finding finding_; /** + * + * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the finding field is set. */ @java.lang.Override @@ -227,25 +266,36 @@ public boolean hasFinding() { return finding_ != null; } /** + * + * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.Finding getFinding() { - return finding_ == null ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() + : finding_; } /** + * + * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder() { @@ -253,6 +303,7 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuil } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,8 +315,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -291,8 +341,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, findingId_); } if (finding_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getFinding()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFinding()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -302,21 +351,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.CreateFindingRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest other = (com.google.cloud.securitycenter.v1beta1.CreateFindingRequest) obj; + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest other = + (com.google.cloud.securitycenter.v1beta1.CreateFindingRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFindingId() - .equals(other.getFindingId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFindingId().equals(other.getFindingId())) return false; if (hasFinding() != other.hasFinding()) return false; if (hasFinding()) { - if (!getFinding() - .equals(other.getFinding())) return false; + if (!getFinding().equals(other.getFinding())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -343,117 +390,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.CreateFindingRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for creating a finding.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.CreateFindingRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.CreateFindingRequest) com.google.cloud.securitycenter.v1beta1.CreateFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.class, com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.class, + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.newBuilder() @@ -461,16 +518,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -488,13 +544,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.CreateFindingRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.CreateFindingRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.getDefaultInstance(); } @@ -509,7 +566,8 @@ public com.google.cloud.securitycenter.v1beta1.CreateFindingRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.CreateFindingRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.CreateFindingRequest result = new com.google.cloud.securitycenter.v1beta1.CreateFindingRequest(this); + com.google.cloud.securitycenter.v1beta1.CreateFindingRequest result = + new com.google.cloud.securitycenter.v1beta1.CreateFindingRequest(this); result.parent_ = parent_; result.findingId_ = findingId_; if (findingBuilder_ == null) { @@ -525,38 +583,39 @@ public com.google.cloud.securitycenter.v1beta1.CreateFindingRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.CreateFindingRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.CreateFindingRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.CreateFindingRequest) other); } else { super.mergeFrom(other); return this; @@ -564,7 +623,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.CreateFindingRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1beta1.CreateFindingRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -595,7 +656,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.CreateFindingRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.CreateFindingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -607,19 +669,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -628,21 +694,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -650,57 +719,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -708,6 +790,8 @@ public Builder setParentBytes( private java.lang.Object findingId_ = ""; /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
@@ -715,13 +799,13 @@ public Builder setParentBytes(
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The findingId. */ public java.lang.String getFindingId() { java.lang.Object ref = findingId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingId_ = s; return s; @@ -730,6 +814,8 @@ public java.lang.String getFindingId() { } } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
@@ -737,15 +823,14 @@ public java.lang.String getFindingId() {
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for findingId. */ - public com.google.protobuf.ByteString - getFindingIdBytes() { + public com.google.protobuf.ByteString getFindingIdBytes() { java.lang.Object ref = findingId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); findingId_ = b; return b; } else { @@ -753,6 +838,8 @@ public java.lang.String getFindingId() { } } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
@@ -760,20 +847,22 @@ public java.lang.String getFindingId() {
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The findingId to set. * @return This builder for chaining. */ - public Builder setFindingId( - java.lang.String value) { + public Builder setFindingId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + findingId_ = value; onChanged(); return this; } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
@@ -781,15 +870,18 @@ public Builder setFindingId(
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFindingId() { - + findingId_ = getDefaultInstance().getFindingId(); onChanged(); return this; } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be alphanumeric and less than or equal to 32 characters and
@@ -797,16 +889,16 @@ public Builder clearFindingId() {
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for findingId to set. * @return This builder for chaining. */ - public Builder setFindingIdBytes( - com.google.protobuf.ByteString value) { + public Builder setFindingIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingId_ = value; onChanged(); return this; @@ -814,42 +906,61 @@ public Builder setFindingIdBytes( private com.google.cloud.securitycenter.v1beta1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> findingBuilder_; + com.google.cloud.securitycenter.v1beta1.Finding, + com.google.cloud.securitycenter.v1beta1.Finding.Builder, + com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> + findingBuilder_; /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The finding. */ public com.google.cloud.securitycenter.v1beta1.Finding getFinding() { if (findingBuilder_ == null) { - return finding_ == null ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() + : finding_; } else { return findingBuilder_.getMessage(); } } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFinding(com.google.cloud.securitycenter.v1beta1.Finding value) { if (findingBuilder_ == null) { @@ -865,12 +976,16 @@ public Builder setFinding(com.google.cloud.securitycenter.v1beta1.Finding value) return this; } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFinding( com.google.cloud.securitycenter.v1beta1.Finding.Builder builderForValue) { @@ -884,18 +999,24 @@ public Builder setFinding( return this; } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFinding(com.google.cloud.securitycenter.v1beta1.Finding value) { if (findingBuilder_ == null) { if (finding_ != null) { finding_ = - com.google.cloud.securitycenter.v1beta1.Finding.newBuilder(finding_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1beta1.Finding.newBuilder(finding_) + .mergeFrom(value) + .buildPartial(); } else { finding_ = value; } @@ -907,12 +1028,16 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1beta1.Finding valu return this; } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFinding() { if (findingBuilder_ == null) { @@ -926,58 +1051,74 @@ public Builder clearFinding() { return this; } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.Finding.Builder getFindingBuilder() { - + onChanged(); return getFindingFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder() { if (findingBuilder_ != null) { return findingBuilder_.getMessageOrBuilder(); } else { - return finding_ == null ? - com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() + : finding_; } } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> + com.google.cloud.securitycenter.v1beta1.Finding, + com.google.cloud.securitycenter.v1beta1.Finding.Builder, + com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> getFindingFieldBuilder() { if (findingBuilder_ == null) { - findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, com.google.cloud.securitycenter.v1beta1.FindingOrBuilder>( - getFinding(), - getParentForChildren(), - isClean()); + findingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.Finding, + com.google.cloud.securitycenter.v1beta1.Finding.Builder, + com.google.cloud.securitycenter.v1beta1.FindingOrBuilder>( + getFinding(), getParentForChildren(), isClean()); finding_ = null; } return findingBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -987,12 +1128,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.CreateFindingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.CreateFindingRequest) - private static final com.google.cloud.securitycenter.v1beta1.CreateFindingRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1beta1.CreateFindingRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.CreateFindingRequest(); } @@ -1001,16 +1143,16 @@ public static com.google.cloud.securitycenter.v1beta1.CreateFindingRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFindingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFindingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFindingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,6 +1167,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.CreateFindingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequestOrBuilder.java index e36c4f7a6..0588ab58c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface CreateFindingRequestOrBuilder extends +public interface CreateFindingRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.CreateFindingRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
@@ -37,10 +64,13 @@ public interface CreateFindingRequestOrBuilder extends
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The findingId. */ java.lang.String getFindingId(); /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be alphanumeric and less than or equal to 32 characters and
@@ -48,38 +78,52 @@ public interface CreateFindingRequestOrBuilder extends
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for findingId. */ - com.google.protobuf.ByteString - getFindingIdBytes(); + com.google.protobuf.ByteString getFindingIdBytes(); /** + * + * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the finding field is set. */ boolean hasFinding(); /** + * + * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The finding. */ com.google.cloud.securitycenter.v1beta1.Finding getFinding(); /** + * + * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java index 39979200c..3f1d7cbe9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Request message for creating a source.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.CreateSourceRequest} */ -public final class CreateSourceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateSourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.CreateSourceRequest) CreateSourceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateSourceRequest.newBuilder() to construct. private CreateSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateSourceRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateSourceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,36 @@ private CreateSourceRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.securitycenter.v1beta1.Source.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); + parent_ = s; + break; } - source_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.Source.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.securitycenter.v1beta1.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.securitycenter.v1beta1.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,35 +107,42 @@ private CreateSourceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.class, com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.class, + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,30 +151,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -157,12 +187,17 @@ public java.lang.String getParent() { public static final int SOURCE_FIELD_NUMBER = 2; private com.google.cloud.securitycenter.v1beta1.Source source_; /** + * + * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the source field is set. */ @java.lang.Override @@ -170,25 +205,36 @@ public boolean hasSource() { return source_ != null; } /** + * + * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The source. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.Source getSource() { - return source_ == null ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() + : source_; } /** + * + * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder() { @@ -196,6 +242,7 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilde } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,8 +254,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -228,8 +274,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (source_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -239,19 +284,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.CreateSourceRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest other = (com.google.cloud.securitycenter.v1beta1.CreateSourceRequest) obj; + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest other = + (com.google.cloud.securitycenter.v1beta1.CreateSourceRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasSource() != other.hasSource()) return false; if (hasSource()) { - if (!getSource() - .equals(other.getSource())) return false; + if (!getSource().equals(other.getSource())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -276,117 +320,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.CreateSourceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for creating a source.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.CreateSourceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.CreateSourceRequest) com.google.cloud.securitycenter.v1beta1.CreateSourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.class, com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.class, + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.newBuilder() @@ -394,16 +448,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -419,9 +472,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_descriptor; } @java.lang.Override @@ -440,7 +493,8 @@ public com.google.cloud.securitycenter.v1beta1.CreateSourceRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.CreateSourceRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.CreateSourceRequest result = new com.google.cloud.securitycenter.v1beta1.CreateSourceRequest(this); + com.google.cloud.securitycenter.v1beta1.CreateSourceRequest result = + new com.google.cloud.securitycenter.v1beta1.CreateSourceRequest(this); result.parent_ = parent_; if (sourceBuilder_ == null) { result.source_ = source_; @@ -455,38 +509,39 @@ public com.google.cloud.securitycenter.v1beta1.CreateSourceRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.CreateSourceRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.CreateSourceRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.CreateSourceRequest) other); } else { super.mergeFrom(other); return this; @@ -494,7 +549,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.CreateSourceRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1beta1.CreateSourceRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -521,7 +577,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.CreateSourceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.CreateSourceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -533,19 +590,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -554,21 +615,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -576,57 +640,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -634,42 +711,61 @@ public Builder setParentBytes( private com.google.cloud.securitycenter.v1beta1.Source source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> sourceBuilder_; + com.google.cloud.securitycenter.v1beta1.Source, + com.google.cloud.securitycenter.v1beta1.Source.Builder, + com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> + sourceBuilder_; /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The source. */ public com.google.cloud.securitycenter.v1beta1.Source getSource() { if (sourceBuilder_ == null) { - return source_ == null ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() + : source_; } else { return sourceBuilder_.getMessage(); } } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSource(com.google.cloud.securitycenter.v1beta1.Source value) { if (sourceBuilder_ == null) { @@ -685,12 +781,16 @@ public Builder setSource(com.google.cloud.securitycenter.v1beta1.Source value) { return this; } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSource( com.google.cloud.securitycenter.v1beta1.Source.Builder builderForValue) { @@ -704,18 +804,24 @@ public Builder setSource( return this; } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSource(com.google.cloud.securitycenter.v1beta1.Source value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = - com.google.cloud.securitycenter.v1beta1.Source.newBuilder(source_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1beta1.Source.newBuilder(source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -727,12 +833,16 @@ public Builder mergeSource(com.google.cloud.securitycenter.v1beta1.Source value) return this; } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSource() { if (sourceBuilder_ == null) { @@ -746,58 +856,74 @@ public Builder clearSource() { return this; } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.Source.Builder getSourceBuilder() { - + onChanged(); return getSourceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { - return source_ == null ? - com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() + : source_; } } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> + com.google.cloud.securitycenter.v1beta1.Source, + com.google.cloud.securitycenter.v1beta1.Source.Builder, + com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { - sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, com.google.cloud.securitycenter.v1beta1.SourceOrBuilder>( - getSource(), - getParentForChildren(), - isClean()); + sourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.Source, + com.google.cloud.securitycenter.v1beta1.Source.Builder, + com.google.cloud.securitycenter.v1beta1.SourceOrBuilder>( + getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -807,12 +933,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.CreateSourceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.CreateSourceRequest) private static final com.google.cloud.securitycenter.v1beta1.CreateSourceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.CreateSourceRequest(); } @@ -821,16 +947,16 @@ public static com.google.cloud.securitycenter.v1beta1.CreateSourceRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSourceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateSourceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateSourceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -845,6 +971,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.CreateSourceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequestOrBuilder.java index bf75fdaad..e73abe85c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequestOrBuilder.java @@ -1,61 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface CreateSourceRequestOrBuilder extends +public interface CreateSourceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.CreateSourceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the source field is set. */ boolean hasSource(); /** + * + * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The source. */ com.google.cloud.securitycenter.v1beta1.Source getSource(); /** + * + * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java index b8a813a60..1d1192986 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/finding.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Security Command Center finding.
  * A finding is a record of assessment data (security, risk, health or privacy)
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1beta1.Finding}
  */
-public final class Finding extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Finding extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.Finding)
     FindingOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Finding.newBuilder() to construct.
   private Finding(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Finding() {
     name_ = "";
     parent_ = "";
@@ -34,16 +52,15 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Finding();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Finding(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -63,101 +80,120 @@ private Finding(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            parent_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            resourceName_ = s;
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            state_ = rawValue;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            category_ = s;
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
+              parent_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            externalUri_ = s;
-            break;
-          }
-          case 58: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              sourceProperties_ = com.google.protobuf.MapField.newMapField(
-                  SourcePropertiesDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              resourceName_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            sourceProperties__ = input.readMessage(
-                SourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            sourceProperties_.getMutableMap().put(
-                sourceProperties__.getKey(), sourceProperties__.getValue());
-            break;
-          }
-          case 66: {
-            com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder subBuilder = null;
-            if (securityMarks_ != null) {
-              subBuilder = securityMarks_.toBuilder();
+          case 32:
+            {
+              int rawValue = input.readEnum();
+
+              state_ = rawValue;
+              break;
             }
-            securityMarks_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.SecurityMarks.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(securityMarks_);
-              securityMarks_ = subBuilder.buildPartial();
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              category_ = s;
+              break;
             }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 74: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (eventTime_ != null) {
-              subBuilder = eventTime_.toBuilder();
+              externalUri_ = s;
+              break;
             }
-            eventTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(eventTime_);
-              eventTime_ = subBuilder.buildPartial();
+          case 58:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                sourceProperties_ =
+                    com.google.protobuf.MapField.newMapField(
+                        SourcePropertiesDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry
+                  sourceProperties__ =
+                      input.readMessage(
+                          SourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
+                          extensionRegistry);
+              sourceProperties_
+                  .getMutableMap()
+                  .put(sourceProperties__.getKey(), sourceProperties__.getValue());
+              break;
             }
-
-            break;
-          }
-          case 82: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+          case 66:
+            {
+              com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder subBuilder = null;
+              if (securityMarks_ != null) {
+                subBuilder = securityMarks_.toBuilder();
+              }
+              securityMarks_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1beta1.SecurityMarks.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(securityMarks_);
+                securityMarks_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 74:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (eventTime_ != null) {
+                subBuilder = eventTime_.toBuilder();
+              }
+              eventTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(eventTime_);
+                eventTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 82:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -165,48 +201,52 @@ private Finding(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1beta1.FindingOuterClass
+        .internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 7:
         return internalGetSourceProperties();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Finding_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1beta1.FindingOuterClass
+        .internal_static_google_cloud_securitycenter_v1beta1_Finding_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1beta1.Finding.class, com.google.cloud.securitycenter.v1beta1.Finding.Builder.class);
+            com.google.cloud.securitycenter.v1beta1.Finding.class,
+            com.google.cloud.securitycenter.v1beta1.Finding.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The state of the finding.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1beta1.Finding.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified state.
      * 
@@ -215,6 +255,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The finding requires attention and has not been addressed yet.
      * 
@@ -223,6 +265,8 @@ public enum State */ ACTIVE(1), /** + * + * *
      * The finding has been fixed, triaged as a non-issue or otherwise addressed
      * and is no longer active.
@@ -235,6 +279,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified state.
      * 
@@ -243,6 +289,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The finding requires attention and has not been addressed yet.
      * 
@@ -251,6 +299,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
      * The finding has been fixed, triaged as a non-issue or otherwise addressed
      * and is no longer active.
@@ -260,7 +310,6 @@ public enum State
      */
     public static final int INACTIVE_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -285,49 +334,49 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return ACTIVE;
-        case 2: return INACTIVE;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return ACTIVE;
+        case 2:
+          return INACTIVE;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.securitycenter.v1beta1.Finding.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -347,6 +396,8 @@ private State(int value) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -355,6 +406,7 @@ private State(int value) {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -363,14 +415,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -379,16 +432,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -399,6 +451,8 @@ public java.lang.String getName() { public static final int PARENT_FIELD_NUMBER = 2; private volatile java.lang.Object parent_; /** + * + * *
    * Immutable. The relative resource name of the source the finding belongs to.
    * See:
@@ -409,6 +463,7 @@ public java.lang.String getName() {
    * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The parent. */ @java.lang.Override @@ -417,14 +472,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Immutable. The relative resource name of the source the finding belongs to.
    * See:
@@ -435,16 +491,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -455,6 +510,8 @@ public java.lang.String getParent() { public static final int RESOURCE_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object resourceName_; /** + * + * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -465,6 +522,7 @@ public java.lang.String getParent() {
    * 
* * string resource_name = 3; + * * @return The resourceName. */ @java.lang.Override @@ -473,14 +531,15 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** + * + * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -491,16 +550,15 @@ public java.lang.String getResourceName() {
    * 
* * string resource_name = 3; + * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -511,33 +569,46 @@ public java.lang.String getResourceName() { public static final int STATE_FIELD_NUMBER = 4; private int state_; /** + * + * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; + * * @return The state. */ - @java.lang.Override public com.google.cloud.securitycenter.v1beta1.Finding.State getState() { + @java.lang.Override + public com.google.cloud.securitycenter.v1beta1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1beta1.Finding.State result = com.google.cloud.securitycenter.v1beta1.Finding.State.valueOf(state_); - return result == null ? com.google.cloud.securitycenter.v1beta1.Finding.State.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1beta1.Finding.State result = + com.google.cloud.securitycenter.v1beta1.Finding.State.valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1beta1.Finding.State.UNRECOGNIZED + : result; } public static final int CATEGORY_FIELD_NUMBER = 5; private volatile java.lang.Object category_; /** + * + * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -545,6 +616,7 @@ public java.lang.String getResourceName() {
    * 
* * string category = 5; + * * @return The category. */ @java.lang.Override @@ -553,14 +625,15 @@ public java.lang.String getCategory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; } } /** + * + * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -568,16 +641,15 @@ public java.lang.String getCategory() {
    * 
* * string category = 5; + * * @return The bytes for category. */ @java.lang.Override - public com.google.protobuf.ByteString - getCategoryBytes() { + public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); category_ = b; return b; } else { @@ -588,6 +660,8 @@ public java.lang.String getCategory() { public static final int EXTERNAL_URI_FIELD_NUMBER = 6; private volatile java.lang.Object externalUri_; /** + * + * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -595,6 +669,7 @@ public java.lang.String getCategory() {
    * 
* * string external_uri = 6; + * * @return The externalUri. */ @java.lang.Override @@ -603,14 +678,15 @@ public java.lang.String getExternalUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalUri_ = s; return s; } } /** + * + * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -618,16 +694,15 @@ public java.lang.String getExternalUri() {
    * 
* * string external_uri = 6; + * * @return The bytes for externalUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getExternalUriBytes() { + public com.google.protobuf.ByteString getExternalUriBytes() { java.lang.Object ref = externalUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalUri_ = b; return b; } else { @@ -636,21 +711,25 @@ public java.lang.String getExternalUri() { } public static final int SOURCE_PROPERTIES_FIELD_NUMBER = 7; + private static final class SourcePropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.Value> defaultEntry = + static final com.google.protobuf.MapEntry + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> sourceProperties_; + .newDefaultInstance( + com.google.cloud.securitycenter.v1beta1.FindingOuterClass + .internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); + } + + private com.google.protobuf.MapField + sourceProperties_; + private com.google.protobuf.MapField - internalGetSourceProperties() { + internalGetSourceProperties() { if (sourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( SourcePropertiesDefaultEntryHolder.defaultEntry); @@ -662,6 +741,8 @@ public int getSourcePropertiesCount() { return internalGetSourceProperties().getMap().size(); } /** + * + * *
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -671,22 +752,22 @@ public int getSourcePropertiesCount() {
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-
   @java.lang.Override
-  public boolean containsSourceProperties(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsSourceProperties(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetSourceProperties().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getSourcePropertiesMap()} instead.
-   */
+  /** Use {@link #getSourcePropertiesMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getSourceProperties() {
     return getSourcePropertiesMap();
   }
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -697,11 +778,12 @@ public java.util.Map getSourcePrope
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
   @java.lang.Override
-
   public java.util.Map getSourcePropertiesMap() {
     return internalGetSourceProperties().getMap();
   }
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -712,16 +794,18 @@ public java.util.Map getSourcePrope
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
   @java.lang.Override
-
   public com.google.protobuf.Value getSourcePropertiesOrDefault(
-      java.lang.String key,
-      com.google.protobuf.Value defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
+      java.lang.String key, com.google.protobuf.Value defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetSourceProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -732,10 +816,10 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault(
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
   @java.lang.Override
-
-  public com.google.protobuf.Value getSourcePropertiesOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetSourceProperties().getMap();
     if (!map.containsKey(key)) {
@@ -747,13 +831,18 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(
   public static final int SECURITY_MARKS_FIELD_NUMBER = 8;
   private com.google.cloud.securitycenter.v1beta1.SecurityMarks securityMarks_;
   /**
+   *
+   *
    * 
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the securityMarks field is set. */ @java.lang.Override @@ -761,36 +850,50 @@ public boolean hasSecurityMarks() { return securityMarks_ != null; } /** + * + * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The securityMarks. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() { - return securityMarks_ == null ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() + : securityMarks_; } /** + * + * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { + public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder + getSecurityMarksOrBuilder() { return getSecurityMarks(); } public static final int EVENT_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp eventTime_; /** + * + * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -800,6 +903,7 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurit
    * 
* * .google.protobuf.Timestamp event_time = 9; + * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -807,6 +911,8 @@ public boolean hasEventTime() { return eventTime_ != null; } /** + * + * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -816,6 +922,7 @@ public boolean hasEventTime() {
    * 
* * .google.protobuf.Timestamp event_time = 9; + * * @return The eventTime. */ @java.lang.Override @@ -823,6 +930,8 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** + * + * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -841,11 +950,14 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
   public static final int CREATE_TIME_FIELD_NUMBER = 10;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -853,11 +965,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return The createTime. */ @java.lang.Override @@ -865,6 +980,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time at which the finding was created in Security Command Center.
    * 
@@ -877,6 +994,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -888,8 +1006,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -899,7 +1016,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceName_); } - if (state_ != com.google.cloud.securitycenter.v1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.securitycenter.v1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(4, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { @@ -908,12 +1026,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, externalUri_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetSourceProperties(), - SourcePropertiesDefaultEntryHolder.defaultEntry, - 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetSourceProperties(), SourcePropertiesDefaultEntryHolder.defaultEntry, 7); if (securityMarks_ != null) { output.writeMessage(8, getSecurityMarks()); } @@ -941,9 +1055,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceName_); } - if (state_ != com.google.cloud.securitycenter.v1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, state_); + if (state_ + != com.google.cloud.securitycenter.v1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, category_); @@ -951,27 +1065,24 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, externalUri_); } - for (java.util.Map.Entry entry - : internalGetSourceProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry - sourceProperties__ = SourcePropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, sourceProperties__); + for (java.util.Map.Entry entry : + internalGetSourceProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry sourceProperties__ = + SourcePropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, sourceProperties__); } if (securityMarks_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSecurityMarks()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSecurityMarks()); } if (eventTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getEventTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getEventTime()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -981,40 +1092,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.Finding)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.Finding other = (com.google.cloud.securitycenter.v1beta1.Finding) obj; + com.google.cloud.securitycenter.v1beta1.Finding other = + (com.google.cloud.securitycenter.v1beta1.Finding) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getParent() - .equals(other.getParent())) return false; - if (!getResourceName() - .equals(other.getResourceName())) return false; + if (!getName().equals(other.getName())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getResourceName().equals(other.getResourceName())) return false; if (state_ != other.state_) return false; - if (!getCategory() - .equals(other.getCategory())) return false; - if (!getExternalUri() - .equals(other.getExternalUri())) return false; - if (!internalGetSourceProperties().equals( - other.internalGetSourceProperties())) return false; + if (!getCategory().equals(other.getCategory())) return false; + if (!getExternalUri().equals(other.getExternalUri())) return false; + if (!internalGetSourceProperties().equals(other.internalGetSourceProperties())) return false; if (hasSecurityMarks() != other.hasSecurityMarks()) return false; if (hasSecurityMarks()) { - if (!getSecurityMarks() - .equals(other.getSecurityMarks())) return false; + if (!getSecurityMarks().equals(other.getSecurityMarks())) return false; } if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { - if (!getEventTime() - .equals(other.getEventTime())) return false; + if (!getEventTime().equals(other.getEventTime())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1060,97 +1163,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.Finding parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.Finding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.Finding parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.Finding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.Finding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Security Command Center finding.
    * A finding is a record of assessment data (security, risk, health or privacy)
@@ -1161,43 +1271,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1beta1.Finding}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.Finding)
       com.google.cloud.securitycenter.v1beta1.FindingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1beta1.FindingOuterClass
+          .internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 7:
           return internalGetSourceProperties();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 7:
           return internalGetMutableSourceProperties();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Finding_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1beta1.FindingOuterClass
+          .internal_static_google_cloud_securitycenter_v1beta1_Finding_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1beta1.Finding.class, com.google.cloud.securitycenter.v1beta1.Finding.Builder.class);
+              com.google.cloud.securitycenter.v1beta1.Finding.class,
+              com.google.cloud.securitycenter.v1beta1.Finding.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1beta1.Finding.newBuilder()
@@ -1205,16 +1315,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1253,9 +1362,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1beta1.FindingOuterClass
+          .internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor;
     }
 
     @java.lang.Override
@@ -1274,7 +1383,8 @@ public com.google.cloud.securitycenter.v1beta1.Finding build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1beta1.Finding buildPartial() {
-      com.google.cloud.securitycenter.v1beta1.Finding result = new com.google.cloud.securitycenter.v1beta1.Finding(this);
+      com.google.cloud.securitycenter.v1beta1.Finding result =
+          new com.google.cloud.securitycenter.v1beta1.Finding(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.parent_ = parent_;
@@ -1307,38 +1417,39 @@ public com.google.cloud.securitycenter.v1beta1.Finding buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1beta1.Finding) {
-        return mergeFrom((com.google.cloud.securitycenter.v1beta1.Finding)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1beta1.Finding) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1346,7 +1457,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.Finding other) {
-      if (other == com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance()) return this;
+      if (other == com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1370,8 +1482,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.Finding other)
         externalUri_ = other.externalUri_;
         onChanged();
       }
-      internalGetMutableSourceProperties().mergeFrom(
-          other.internalGetSourceProperties());
+      internalGetMutableSourceProperties().mergeFrom(other.internalGetSourceProperties());
       if (other.hasSecurityMarks()) {
         mergeSecurityMarks(other.getSecurityMarks());
       }
@@ -1409,10 +1520,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1421,13 +1535,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1436,6 +1550,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1444,15 +1560,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1460,6 +1575,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1468,20 +1585,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1490,15 +1609,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1507,16 +1629,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1524,6 +1646,8 @@ public Builder setNameBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * Immutable. The relative resource name of the source the finding belongs to.
      * See:
@@ -1534,13 +1658,13 @@ public Builder setNameBytes(
      * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1549,6 +1673,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Immutable. The relative resource name of the source the finding belongs to.
      * See:
@@ -1559,15 +1685,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1575,6 +1700,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Immutable. The relative resource name of the source the finding belongs to.
      * See:
@@ -1585,20 +1712,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. The relative resource name of the source the finding belongs to.
      * See:
@@ -1609,15 +1738,18 @@ public Builder setParent(
      * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Immutable. The relative resource name of the source the finding belongs to.
      * See:
@@ -1628,16 +1760,16 @@ public Builder clearParent() {
      * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1645,6 +1777,8 @@ public Builder setParentBytes( private java.lang.Object resourceName_ = ""; /** + * + * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -1655,13 +1789,13 @@ public Builder setParentBytes(
      * 
* * string resource_name = 3; + * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -1670,6 +1804,8 @@ public java.lang.String getResourceName() { } } /** + * + * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -1680,15 +1816,14 @@ public java.lang.String getResourceName() {
      * 
* * string resource_name = 3; + * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -1696,6 +1831,8 @@ public java.lang.String getResourceName() { } } /** + * + * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -1706,20 +1843,22 @@ public java.lang.String getResourceName() {
      * 
* * string resource_name = 3; + * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName( - java.lang.String value) { + public Builder setResourceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceName_ = value; onChanged(); return this; } /** + * + * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -1730,15 +1869,18 @@ public Builder setResourceName(
      * 
* * string resource_name = 3; + * * @return This builder for chaining. */ public Builder clearResourceName() { - + resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** + * + * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -1749,16 +1891,16 @@ public Builder clearResourceName() {
      * 
* * string resource_name = 3; + * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; onChanged(); return this; @@ -1766,51 +1908,67 @@ public Builder setResourceNameBytes( private int state_ = 0; /** + * + * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; + * * @return The state. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1beta1.Finding.State result = com.google.cloud.securitycenter.v1beta1.Finding.State.valueOf(state_); - return result == null ? com.google.cloud.securitycenter.v1beta1.Finding.State.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1beta1.Finding.State result = + com.google.cloud.securitycenter.v1beta1.Finding.State.valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1beta1.Finding.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; + * * @param value The state to set. * @return This builder for chaining. */ @@ -1818,21 +1976,24 @@ public Builder setState(com.google.cloud.securitycenter.v1beta1.Finding.State va if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1840,6 +2001,8 @@ public Builder clearState() { private java.lang.Object category_ = ""; /** + * + * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -1847,13 +2010,13 @@ public Builder clearState() {
      * 
* * string category = 5; + * * @return The category. */ public java.lang.String getCategory() { java.lang.Object ref = category_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; @@ -1862,6 +2025,8 @@ public java.lang.String getCategory() { } } /** + * + * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -1869,15 +2034,14 @@ public java.lang.String getCategory() {
      * 
* * string category = 5; + * * @return The bytes for category. */ - public com.google.protobuf.ByteString - getCategoryBytes() { + public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); category_ = b; return b; } else { @@ -1885,6 +2049,8 @@ public java.lang.String getCategory() { } } /** + * + * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -1892,20 +2058,22 @@ public java.lang.String getCategory() {
      * 
* * string category = 5; + * * @param value The category to set. * @return This builder for chaining. */ - public Builder setCategory( - java.lang.String value) { + public Builder setCategory(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + category_ = value; onChanged(); return this; } /** + * + * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -1913,15 +2081,18 @@ public Builder setCategory(
      * 
* * string category = 5; + * * @return This builder for chaining. */ public Builder clearCategory() { - + category_ = getDefaultInstance().getCategory(); onChanged(); return this; } /** + * + * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -1929,16 +2100,16 @@ public Builder clearCategory() {
      * 
* * string category = 5; + * * @param value The bytes for category to set. * @return This builder for chaining. */ - public Builder setCategoryBytes( - com.google.protobuf.ByteString value) { + public Builder setCategoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + category_ = value; onChanged(); return this; @@ -1946,6 +2117,8 @@ public Builder setCategoryBytes( private java.lang.Object externalUri_ = ""; /** + * + * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -1953,13 +2126,13 @@ public Builder setCategoryBytes(
      * 
* * string external_uri = 6; + * * @return The externalUri. */ public java.lang.String getExternalUri() { java.lang.Object ref = externalUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalUri_ = s; return s; @@ -1968,6 +2141,8 @@ public java.lang.String getExternalUri() { } } /** + * + * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -1975,15 +2150,14 @@ public java.lang.String getExternalUri() {
      * 
* * string external_uri = 6; + * * @return The bytes for externalUri. */ - public com.google.protobuf.ByteString - getExternalUriBytes() { + public com.google.protobuf.ByteString getExternalUriBytes() { java.lang.Object ref = externalUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalUri_ = b; return b; } else { @@ -1991,6 +2165,8 @@ public java.lang.String getExternalUri() { } } /** + * + * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -1998,20 +2174,22 @@ public java.lang.String getExternalUri() {
      * 
* * string external_uri = 6; + * * @param value The externalUri to set. * @return This builder for chaining. */ - public Builder setExternalUri( - java.lang.String value) { + public Builder setExternalUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalUri_ = value; onChanged(); return this; } /** + * + * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -2019,15 +2197,18 @@ public Builder setExternalUri(
      * 
* * string external_uri = 6; + * * @return This builder for chaining. */ public Builder clearExternalUri() { - + externalUri_ = getDefaultInstance().getExternalUri(); onChanged(); return this; } /** + * + * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -2035,37 +2216,41 @@ public Builder clearExternalUri() {
      * 
* * string external_uri = 6; + * * @param value The bytes for externalUri to set. * @return This builder for chaining. */ - public Builder setExternalUriBytes( - com.google.protobuf.ByteString value) { + public Builder setExternalUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalUri_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> sourceProperties_; private com.google.protobuf.MapField - internalGetSourceProperties() { + sourceProperties_; + + private com.google.protobuf.MapField + internalGetSourceProperties() { if (sourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( SourcePropertiesDefaultEntryHolder.defaultEntry); } return sourceProperties_; } + private com.google.protobuf.MapField - internalGetMutableSourceProperties() { - onChanged();; + internalGetMutableSourceProperties() { + onChanged(); + ; if (sourceProperties_ == null) { - sourceProperties_ = com.google.protobuf.MapField.newMapField( - SourcePropertiesDefaultEntryHolder.defaultEntry); + sourceProperties_ = + com.google.protobuf.MapField.newMapField( + SourcePropertiesDefaultEntryHolder.defaultEntry); } if (!sourceProperties_.isMutable()) { sourceProperties_ = sourceProperties_.copy(); @@ -2077,6 +2262,8 @@ public int getSourcePropertiesCount() { return internalGetSourceProperties().getMap().size(); } /** + * + * *
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2086,22 +2273,22 @@ public int getSourcePropertiesCount() {
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
-
     @java.lang.Override
-    public boolean containsSourceProperties(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsSourceProperties(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetSourceProperties().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getSourcePropertiesMap()} instead.
-     */
+    /** Use {@link #getSourcePropertiesMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getSourceProperties() {
       return getSourcePropertiesMap();
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2112,11 +2299,12 @@ public java.util.Map getSourcePrope
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
     @java.lang.Override
-
     public java.util.Map getSourcePropertiesMap() {
       return internalGetSourceProperties().getMap();
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2127,16 +2315,18 @@ public java.util.Map getSourcePrope
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
     @java.lang.Override
-
     public com.google.protobuf.Value getSourcePropertiesOrDefault(
-        java.lang.String key,
-        com.google.protobuf.Value defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
+        java.lang.String key, com.google.protobuf.Value defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetSourceProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2147,10 +2337,10 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault(
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
     @java.lang.Override
-
-    public com.google.protobuf.Value getSourcePropertiesOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetSourceProperties().getMap();
       if (!map.containsKey(key)) {
@@ -2160,11 +2350,12 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(
     }
 
     public Builder clearSourceProperties() {
-      internalGetMutableSourceProperties().getMutableMap()
-          .clear();
+      internalGetMutableSourceProperties().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2174,23 +2365,21 @@ public Builder clearSourceProperties() {
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
-
-    public Builder removeSourceProperties(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableSourceProperties().getMutableMap()
-          .remove(key);
+    public Builder removeSourceProperties(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableSourceProperties().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableSourceProperties() {
+    public java.util.Map getMutableSourceProperties() {
       return internalGetMutableSourceProperties().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2200,19 +2389,20 @@ public Builder removeSourceProperties(
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
-    public Builder putSourceProperties(
-        java.lang.String key,
-        com.google.protobuf.Value value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putSourceProperties(java.lang.String key, com.google.protobuf.Value value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableSourceProperties().getMutableMap()
-          .put(key, value);
+      internalGetMutableSourceProperties().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2222,55 +2412,72 @@ public Builder putSourceProperties(
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
-
     public Builder putAllSourceProperties(
         java.util.Map values) {
-      internalGetMutableSourceProperties().getMutableMap()
-          .putAll(values);
+      internalGetMutableSourceProperties().getMutableMap().putAll(values);
       return this;
     }
 
     private com.google.cloud.securitycenter.v1beta1.SecurityMarks securityMarks_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder> securityMarksBuilder_;
+            com.google.cloud.securitycenter.v1beta1.SecurityMarks,
+            com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder,
+            com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder>
+        securityMarksBuilder_;
     /**
+     *
+     *
      * 
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The securityMarks. */ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { - return securityMarks_ == null ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() + : securityMarks_; } else { return securityMarksBuilder_.getMessage(); } } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { @@ -2286,13 +2493,17 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1beta1.Security return this; } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSecurityMarks( com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder builderForValue) { @@ -2306,19 +2517,25 @@ public Builder setSecurityMarks( return this; } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { if (securityMarks_ != null) { securityMarks_ = - com.google.cloud.securitycenter.v1beta1.SecurityMarks.newBuilder(securityMarks_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1beta1.SecurityMarks.newBuilder(securityMarks_) + .mergeFrom(value) + .buildPartial(); } else { securityMarks_ = value; } @@ -2330,13 +2547,17 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1beta1.Securi return this; } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -2350,54 +2571,71 @@ public Builder clearSecurityMarks() { return this; } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurityMarksBuilder() { - + onChanged(); return getSecurityMarksFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { + public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder + getSecurityMarksOrBuilder() { if (securityMarksBuilder_ != null) { return securityMarksBuilder_.getMessageOrBuilder(); } else { - return securityMarks_ == null ? - com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() + : securityMarks_; } } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder> + com.google.cloud.securitycenter.v1beta1.SecurityMarks, + com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder> getSecurityMarksFieldBuilder() { if (securityMarksBuilder_ == null) { - securityMarksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder>( - getSecurityMarks(), - getParentForChildren(), - isClean()); + securityMarksBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.SecurityMarks, + com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder>( + getSecurityMarks(), getParentForChildren(), isClean()); securityMarks_ = null; } return securityMarksBuilder_; @@ -2405,8 +2643,13 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurit private com.google.protobuf.Timestamp eventTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + eventTimeBuilder_; /** + * + * *
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2416,12 +2659,15 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurit
      * 
* * .google.protobuf.Timestamp event_time = 9; + * * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return eventTimeBuilder_ != null || eventTime_ != null; } /** + * + * *
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2431,6 +2677,7 @@ public boolean hasEventTime() {
      * 
* * .google.protobuf.Timestamp event_time = 9; + * * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { @@ -2441,6 +2688,8 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** + * + * *
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2465,6 +2714,8 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2475,8 +2726,7 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp event_time = 9;
      */
-    public Builder setEventTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (eventTimeBuilder_ == null) {
         eventTime_ = builderForValue.build();
         onChanged();
@@ -2487,6 +2737,8 @@ public Builder setEventTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2501,7 +2753,7 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       if (eventTimeBuilder_ == null) {
         if (eventTime_ != null) {
           eventTime_ =
-            com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial();
         } else {
           eventTime_ = value;
         }
@@ -2513,6 +2765,8 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2535,6 +2789,8 @@ public Builder clearEventTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2546,11 +2802,13 @@ public Builder clearEventTime() {
      * .google.protobuf.Timestamp event_time = 9;
      */
     public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() {
-      
+
       onChanged();
       return getEventTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2565,11 +2823,12 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
       if (eventTimeBuilder_ != null) {
         return eventTimeBuilder_.getMessageOrBuilder();
       } else {
-        return eventTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+        return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2581,14 +2840,17 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
      * .google.protobuf.Timestamp event_time = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEventTimeFieldBuilder() {
       if (eventTimeBuilder_ == null) {
-        eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEventTime(),
-                getParentForChildren(),
-                isClean());
+        eventTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEventTime(), getParentForChildren(), isClean());
         eventTime_ = null;
       }
       return eventTimeBuilder_;
@@ -2596,34 +2858,47 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -2644,14 +2919,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2662,6 +2938,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -2672,7 +2950,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2684,6 +2962,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -2702,6 +2982,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -2709,11 +2991,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 10; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -2724,11 +3008,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -2736,21 +3023,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2760,12 +3050,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.Finding) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.Finding) private static final com.google.cloud.securitycenter.v1beta1.Finding DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.Finding(); } @@ -2774,16 +3064,16 @@ public static com.google.cloud.securitycenter.v1beta1.Finding getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Finding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Finding(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Finding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Finding(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2798,6 +3088,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingName.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingName.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOrBuilder.java similarity index 82% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOrBuilder.java index a31758c32..9348f15a8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/finding.proto package com.google.cloud.securitycenter.v1beta1; -public interface FindingOrBuilder extends +public interface FindingOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.Finding) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -16,10 +34,13 @@ public interface FindingOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -28,12 +49,14 @@ public interface FindingOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Immutable. The relative resource name of the source the finding belongs to.
    * See:
@@ -44,10 +67,13 @@ public interface FindingOrBuilder extends
    * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Immutable. The relative resource name of the source the finding belongs to.
    * See:
@@ -58,12 +84,14 @@ public interface FindingOrBuilder extends
    * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -74,10 +102,13 @@ public interface FindingOrBuilder extends
    * 
* * string resource_name = 3; + * * @return The resourceName. */ java.lang.String getResourceName(); /** + * + * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -88,31 +119,39 @@ public interface FindingOrBuilder extends
    * 
* * string resource_name = 3; + * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString - getResourceNameBytes(); + com.google.protobuf.ByteString getResourceNameBytes(); /** + * + * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1beta1.Finding.State state = 4; + * * @return The state. */ com.google.cloud.securitycenter.v1beta1.Finding.State getState(); /** + * + * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -120,10 +159,13 @@ public interface FindingOrBuilder extends
    * 
* * string category = 5; + * * @return The category. */ java.lang.String getCategory(); /** + * + * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -131,12 +173,14 @@ public interface FindingOrBuilder extends
    * 
* * string category = 5; + * * @return The bytes for category. */ - com.google.protobuf.ByteString - getCategoryBytes(); + com.google.protobuf.ByteString getCategoryBytes(); /** + * + * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -144,10 +188,13 @@ public interface FindingOrBuilder extends
    * 
* * string external_uri = 6; + * * @return The externalUri. */ java.lang.String getExternalUri(); /** + * + * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -155,12 +202,14 @@ public interface FindingOrBuilder extends
    * 
* * string external_uri = 6; + * * @return The bytes for externalUri. */ - com.google.protobuf.ByteString - getExternalUriBytes(); + com.google.protobuf.ByteString getExternalUriBytes(); /** + * + * *
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -172,6 +221,8 @@ public interface FindingOrBuilder extends
    */
   int getSourcePropertiesCount();
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -181,15 +232,13 @@ public interface FindingOrBuilder extends
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-  boolean containsSourceProperties(
-      java.lang.String key);
-  /**
-   * Use {@link #getSourcePropertiesMap()} instead.
-   */
+  boolean containsSourceProperties(java.lang.String key);
+  /** Use {@link #getSourcePropertiesMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getSourceProperties();
+  java.util.Map getSourceProperties();
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -199,9 +248,10 @@ boolean containsSourceProperties(
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-  java.util.Map
-  getSourcePropertiesMap();
+  java.util.Map getSourcePropertiesMap();
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -213,11 +263,13 @@ boolean containsSourceProperties(
    */
 
   /* nullable */
-com.google.protobuf.Value getSourcePropertiesOrDefault(
+  com.google.protobuf.Value getSourcePropertiesOrDefault(
       java.lang.String key,
       /* nullable */
-com.google.protobuf.Value defaultValue);
+      com.google.protobuf.Value defaultValue);
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -227,44 +279,58 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-
-  com.google.protobuf.Value getSourcePropertiesOrThrow(
-      java.lang.String key);
+  com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** + * + * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The securityMarks. */ com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks(); /** + * + * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder(); /** + * + * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -274,10 +340,13 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
    * 
* * .google.protobuf.Timestamp event_time = 9; + * * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** + * + * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -287,10 +356,13 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
    * 
* * .google.protobuf.Timestamp event_time = 9; + * * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** + * + * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -304,24 +376,32 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
   com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time at which the finding was created in Security Command Center.
    * 
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java new file mode 100644 index 000000000..1f967069f --- /dev/null +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/FindingOuterClass.java @@ -0,0 +1,130 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1beta1/finding.proto + +package com.google.cloud.securitycenter.v1beta1; + +public final class FindingOuterClass { + private FindingOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1beta1_Finding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/securitycenter/v1beta1/fi" + + "nding.proto\022#google.cloud.securitycenter" + + ".v1beta1\032\034google/api/annotations.proto\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\0328google/cloud/securit" + + "ycenter/v1beta1/security_marks.proto\032\034go" + + "ogle/protobuf/struct.proto\032\037google/proto" + + "buf/timestamp.proto\"\270\005\n\007Finding\022\014\n\004name\030" + + "\001 \001(\t\022\023\n\006parent\030\002 \001(\tB\003\340A\005\022\025\n\rresource_n" + + "ame\030\003 \001(\t\022A\n\005state\030\004 \001(\01622.google.cloud." + + "securitycenter.v1beta1.Finding.State\022\020\n\010" + + "category\030\005 \001(\t\022\024\n\014external_uri\030\006 \001(\t\022]\n\021" + + "source_properties\030\007 \003(\0132B.google.cloud.s" + + "ecuritycenter.v1beta1.Finding.SourceProp" + + "ertiesEntry\022O\n\016security_marks\030\010 \001(\01322.go" + + "ogle.cloud.securitycenter.v1beta1.Securi" + + "tyMarksB\003\340A\003\022.\n\nevent_time\030\t \001(\0132\032.googl" + + "e.protobuf.Timestamp\022/\n\013create_time\030\n \001(" + + "\0132\032.google.protobuf.Timestamp\032O\n\025SourceP" + + "ropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001" + + "(\0132\026.google.protobuf.Value:\0028\001\"8\n\005State\022" + + "\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010IN" + + "ACTIVE\020\002:l\352Ai\n%securitycenter.googleapis" + + ".com/Finding\022@organizations/{organizatio" + + "n}/sources/{source}/findings/{finding}B~" + + "\n\'com.google.cloud.securitycenter.v1beta" + + "1P\001ZQgoogle.golang.org/genproto/googleap" + + "is/cloud/securitycenter/v1beta1;security" + + "centerb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1beta1_Finding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor, + new java.lang.String[] { + "Name", + "Parent", + "ResourceName", + "State", + "Category", + "ExternalUri", + "SourceProperties", + "SecurityMarks", + "EventTime", + "CreateTime", + }); + internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_descriptor = + internal_static_google_cloud_securitycenter_v1beta1_Finding_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1beta1_Finding_SourcePropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java index c2c506bbd..1ba59c8e4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Request message for getting organization settings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest} */ -public final class GetOrganizationSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetOrganizationSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) GetOrganizationSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetOrganizationSettingsRequest.newBuilder() to construct. - private GetOrganizationSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetOrganizationSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetOrganizationSettingsRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetOrganizationSettingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetOrganizationSettingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +71,20 @@ private GetOrganizationSettingsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +92,42 @@ private GetOrganizationSettingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.class, + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the organization to get organization settings for. Its format is
    * "organizations/[organization_id]/organizationSettings".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +136,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the organization to get organization settings for. Its format is
    * "organizations/[organization_id]/organizationSettings".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +170,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +182,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +206,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest other = (com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) obj; + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest other = + (com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,134 +234,145 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for getting organization settings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.class, + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.Builder.class); } - // Construct using com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,19 +382,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.getDefaultInstance(); + public com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest build() { - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest result = buildPartial(); + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -364,7 +406,8 @@ public com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest bu @java.lang.Override public com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest result = new com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest(this); + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest result = + new com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +417,51 @@ public com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest)other); + return mergeFrom( + (com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest other) { + if (other + == com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +485,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +499,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +524,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +549,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +629,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) - private static final com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest(); } - public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOrganizationSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetOrganizationSettingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrganizationSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetOrganizationSettingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +666,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java new file mode 100644 index 000000000..e58409834 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1beta1; + +public interface GetOrganizationSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the organization to get organization settings for. Its format is
+   * "organizations/[organization_id]/organizationSettings".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the organization to get organization settings for. Its format is
+   * "organizations/[organization_id]/organizationSettings".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java index e80502a38..e89e2224e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Request message for getting a source.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GetSourceRequest} */ -public final class GetSourceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.GetSourceRequest) GetSourceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSourceRequest.newBuilder() to construct. private GetSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSourceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetSourceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetSourceRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetSourceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GetSourceRequest.class, com.google.cloud.securitycenter.v1beta1.GetSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.GetSourceRequest.class, + com.google.cloud.securitycenter.v1beta1.GetSourceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Relative resource name of the source. Its format is
    * "organizations/[organization_id]/source/[source_id]".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Relative resource name of the source. Its format is
    * "organizations/[organization_id]/source/[source_id]".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.GetSourceRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.GetSourceRequest other = (com.google.cloud.securitycenter.v1beta1.GetSourceRequest) obj; + com.google.cloud.securitycenter.v1beta1.GetSourceRequest other = + (com.google.cloud.securitycenter.v1beta1.GetSourceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.GetSourceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.GetSourceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for getting a source.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GetSourceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.GetSourceRequest) com.google.cloud.securitycenter.v1beta1.GetSourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GetSourceRequest.class, com.google.cloud.securitycenter.v1beta1.GetSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.GetSourceRequest.class, + com.google.cloud.securitycenter.v1beta1.GetSourceRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.GetSourceRequest.newBuilder() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_descriptor; } @java.lang.Override @@ -364,7 +400,8 @@ public com.google.cloud.securitycenter.v1beta1.GetSourceRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.GetSourceRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.GetSourceRequest result = new com.google.cloud.securitycenter.v1beta1.GetSourceRequest(this); + com.google.cloud.securitycenter.v1beta1.GetSourceRequest result = + new com.google.cloud.securitycenter.v1beta1.GetSourceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +411,39 @@ public com.google.cloud.securitycenter.v1beta1.GetSourceRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.GetSourceRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.GetSourceRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.GetSourceRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.GetSourceRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.GetSourceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1beta1.GetSourceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +476,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.GetSourceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.GetSourceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +489,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +514,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +539,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +619,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.GetSourceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.GetSourceRequest) private static final com.google.cloud.securitycenter.v1beta1.GetSourceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.GetSourceRequest(); } @@ -573,16 +633,16 @@ public static com.google.cloud.securitycenter.v1beta1.GetSourceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSourceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSourceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSourceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +657,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.GetSourceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java new file mode 100644 index 000000000..777ba98c7 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1beta1; + +public interface GetSourceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.GetSourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Relative resource name of the source. Its format is
+   * "organizations/[organization_id]/source/[source_id]".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Relative resource name of the source. Its format is
+   * "organizations/[organization_id]/source/[source_id]".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java similarity index 81% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java index 645a99017..e13332f02 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Request message for grouping by assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GroupAssetsRequest} */ -public final class GroupAssetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GroupAssetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.GroupAssetsRequest) GroupAssetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GroupAssetsRequest.newBuilder() to construct. private GroupAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GroupAssetsRequest() { parent_ = ""; filter_ = ""; @@ -28,16 +46,15 @@ private GroupAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GroupAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GroupAssetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,68 +73,76 @@ private GroupAssetsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - groupBy_ = s; - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (compareDuration_ != null) { - subBuilder = compareDuration_.toBuilder(); + groupBy_ = s; + break; } - compareDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compareDuration_); - compareDuration_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); + } + compareDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); + } + + break; } + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); + pageToken_ = s; + break; } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 64: + { + pageSize_ = input.readInt32(); + break; } - - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 64: { - - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,35 +150,42 @@ private GroupAssetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.class, com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.class, + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -162,30 +194,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -196,6 +230,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -220,6 +256,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -228,14 +265,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -260,16 +298,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -280,6 +317,8 @@ public java.lang.String getFilter() { public static final int GROUP_BY_FIELD_NUMBER = 3; private volatile java.lang.Object groupBy_; /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -294,6 +333,7 @@ public java.lang.String getFilter() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The groupBy. */ @java.lang.Override @@ -302,14 +342,15 @@ public java.lang.String getGroupBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; } } /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -324,16 +365,15 @@ public java.lang.String getGroupBy() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for groupBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getGroupByBytes() { + public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); groupBy_ = b; return b; } else { @@ -344,6 +384,8 @@ public java.lang.String getGroupBy() { public static final int COMPARE_DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration compareDuration_; /** + * + * *
    * When compare_duration is set, the Asset's "state" property is updated to
    * indicate whether the asset was added, removed, or remained present during
@@ -365,6 +407,7 @@ public java.lang.String getGroupBy() {
    * 
* * .google.protobuf.Duration compare_duration = 4; + * * @return Whether the compareDuration field is set. */ @java.lang.Override @@ -372,6 +415,8 @@ public boolean hasCompareDuration() { return compareDuration_ != null; } /** + * + * *
    * When compare_duration is set, the Asset's "state" property is updated to
    * indicate whether the asset was added, removed, or remained present during
@@ -393,13 +438,18 @@ public boolean hasCompareDuration() {
    * 
* * .google.protobuf.Duration compare_duration = 4; + * * @return The compareDuration. */ @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { - return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; } /** + * + * *
    * When compare_duration is set, the Asset's "state" property is updated to
    * indicate whether the asset was added, removed, or remained present during
@@ -430,6 +480,8 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
   public static final int READ_TIME_FIELD_NUMBER = 5;
   private com.google.protobuf.Timestamp readTime_;
   /**
+   *
+   *
    * 
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -438,6 +490,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
    * 
* * .google.protobuf.Timestamp read_time = 5; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -445,6 +498,8 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -453,6 +508,7 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 5; + * * @return The readTime. */ @java.lang.Override @@ -460,6 +516,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -477,6 +535,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int PAGE_TOKEN_FIELD_NUMBER = 7;
   private volatile java.lang.Object pageToken_;
   /**
+   *
+   *
    * 
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -484,6 +544,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * string page_token = 7; + * * @return The pageToken. */ @java.lang.Override @@ -492,14 +553,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -507,16 +569,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 7; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -527,12 +588,15 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 8; private int pageSize_; /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 8; + * * @return The pageSize. */ @java.lang.Override @@ -541,6 +605,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -552,8 +617,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -594,19 +658,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, groupBy_); } if (compareDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCompareDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCompareDuration()); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(8, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -616,33 +677,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest other = (com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest) obj; + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest other = + (com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getGroupBy() - .equals(other.getGroupBy())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getGroupBy().equals(other.getGroupBy())) return false; if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - if (!getCompareDuration() - .equals(other.getCompareDuration())) return false; + if (!getCompareDuration().equals(other.getCompareDuration())) return false; } if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -678,117 +733,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for grouping by assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GroupAssetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.GroupAssetsRequest) com.google.cloud.securitycenter.v1beta1.GroupAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.class, com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.class, + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.newBuilder() @@ -796,16 +861,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -835,9 +899,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_descriptor; } @java.lang.Override @@ -856,7 +920,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest result = new com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest(this); + com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest result = + new com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.groupBy_ = groupBy_; @@ -880,38 +945,39 @@ public com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest) other); } else { super.mergeFrom(other); return this; @@ -919,7 +985,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -964,7 +1031,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -976,19 +1044,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -997,21 +1069,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1019,57 +1094,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1077,6 +1165,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1101,13 +1191,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1116,6 +1206,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1140,15 +1232,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1156,6 +1247,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1180,20 +1273,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1218,15 +1313,18 @@ public Builder setFilter(
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1251,16 +1349,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1268,6 +1366,8 @@ public Builder setFilterBytes( private java.lang.Object groupBy_ = ""; /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1282,13 +1382,13 @@ public Builder setFilterBytes(
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The groupBy. */ public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; @@ -1297,6 +1397,8 @@ public java.lang.String getGroupBy() { } } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1311,15 +1413,14 @@ public java.lang.String getGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for groupBy. */ - public com.google.protobuf.ByteString - getGroupByBytes() { + public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); groupBy_ = b; return b; } else { @@ -1327,6 +1428,8 @@ public java.lang.String getGroupBy() { } } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1341,20 +1444,22 @@ public java.lang.String getGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The groupBy to set. * @return This builder for chaining. */ - public Builder setGroupBy( - java.lang.String value) { + public Builder setGroupBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + groupBy_ = value; onChanged(); return this; } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1369,15 +1474,18 @@ public Builder setGroupBy(
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearGroupBy() { - + groupBy_ = getDefaultInstance().getGroupBy(); onChanged(); return this; } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1392,16 +1500,16 @@ public Builder clearGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for groupBy to set. * @return This builder for chaining. */ - public Builder setGroupByBytes( - com.google.protobuf.ByteString value) { + public Builder setGroupByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + groupBy_ = value; onChanged(); return this; @@ -1409,8 +1517,13 @@ public Builder setGroupByBytes( private com.google.protobuf.Duration compareDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> compareDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + compareDurationBuilder_; /** + * + * *
      * When compare_duration is set, the Asset's "state" property is updated to
      * indicate whether the asset was added, removed, or remained present during
@@ -1432,12 +1545,15 @@ public Builder setGroupByBytes(
      * 
* * .google.protobuf.Duration compare_duration = 4; + * * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; } /** + * + * *
      * When compare_duration is set, the Asset's "state" property is updated to
      * indicate whether the asset was added, removed, or remained present during
@@ -1459,16 +1575,21 @@ public boolean hasCompareDuration() {
      * 
* * .google.protobuf.Duration compare_duration = 4; + * * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { - return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; } else { return compareDurationBuilder_.getMessage(); } } /** + * + * *
      * When compare_duration is set, the Asset's "state" property is updated to
      * indicate whether the asset was added, removed, or remained present during
@@ -1505,6 +1626,8 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the Asset's "state" property is updated to
      * indicate whether the asset was added, removed, or remained present during
@@ -1527,8 +1650,7 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration compare_duration = 4;
      */
-    public Builder setCompareDuration(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) {
       if (compareDurationBuilder_ == null) {
         compareDuration_ = builderForValue.build();
         onChanged();
@@ -1539,6 +1661,8 @@ public Builder setCompareDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the Asset's "state" property is updated to
      * indicate whether the asset was added, removed, or remained present during
@@ -1565,7 +1689,9 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       if (compareDurationBuilder_ == null) {
         if (compareDuration_ != null) {
           compareDuration_ =
-            com.google.protobuf.Duration.newBuilder(compareDuration_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(compareDuration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           compareDuration_ = value;
         }
@@ -1577,6 +1703,8 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the Asset's "state" property is updated to
      * indicate whether the asset was added, removed, or remained present during
@@ -1611,6 +1739,8 @@ public Builder clearCompareDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the Asset's "state" property is updated to
      * indicate whether the asset was added, removed, or remained present during
@@ -1634,11 +1764,13 @@ public Builder clearCompareDuration() {
      * .google.protobuf.Duration compare_duration = 4;
      */
     public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
-      
+
       onChanged();
       return getCompareDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the Asset's "state" property is updated to
      * indicate whether the asset was added, removed, or remained present during
@@ -1665,11 +1797,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
       if (compareDurationBuilder_ != null) {
         return compareDurationBuilder_.getMessageOrBuilder();
       } else {
-        return compareDuration_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : compareDuration_;
+        return compareDuration_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : compareDuration_;
       }
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the Asset's "state" property is updated to
      * indicate whether the asset was added, removed, or remained present during
@@ -1693,14 +1828,17 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * .google.protobuf.Duration compare_duration = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getCompareDurationFieldBuilder() {
       if (compareDurationBuilder_ == null) {
-        compareDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getCompareDuration(),
-                getParentForChildren(),
-                isClean());
+        compareDurationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getCompareDuration(), getParentForChildren(), isClean());
         compareDuration_ = null;
       }
       return compareDurationBuilder_;
@@ -1708,8 +1846,13 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
 
     private com.google.protobuf.Timestamp readTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        readTimeBuilder_;
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1718,12 +1861,15 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * 
* * .google.protobuf.Timestamp read_time = 5; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1732,6 +1878,7 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 5; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1742,6 +1889,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1765,6 +1914,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1774,8 +1925,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 5;
      */
-    public Builder setReadTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1786,6 +1936,8 @@ public Builder setReadTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1799,7 +1951,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -1811,6 +1963,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1832,6 +1986,8 @@ public Builder clearReadTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1842,11 +1998,13 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-      
+
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1860,11 +2018,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1875,14 +2034,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(),
-                getParentForChildren(),
-                isClean());
+        readTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(), getParentForChildren(), isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -1890,6 +2052,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private java.lang.Object pageToken_ = "";
     /**
+     *
+     *
      * 
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -1897,13 +2061,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * string page_token = 7; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1912,6 +2076,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -1919,15 +2085,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 7; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1935,6 +2100,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -1942,20 +2109,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 7; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -1963,15 +2132,18 @@ public Builder setPageToken(
      * 
* * string page_token = 7; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -1979,29 +2151,32 @@ public Builder clearPageToken() {
      * 
* * string page_token = 7; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; + * * @return The pageSize. */ @java.lang.Override @@ -2009,39 +2184,45 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2051,12 +2232,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.GroupAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.GroupAssetsRequest) private static final com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest(); } @@ -2065,16 +2246,16 @@ public static com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupAssetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAssetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2089,6 +2270,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequestOrBuilder.java similarity index 88% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequestOrBuilder.java index 055c69f6b..3b333d7b4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface GroupAssetsRequestOrBuilder extends +public interface GroupAssetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.GroupAssetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -54,10 +81,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -82,12 +112,14 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -102,10 +134,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The groupBy. */ java.lang.String getGroupBy(); /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -120,12 +155,14 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for groupBy. */ - com.google.protobuf.ByteString - getGroupByBytes(); + com.google.protobuf.ByteString getGroupByBytes(); /** + * + * *
    * When compare_duration is set, the Asset's "state" property is updated to
    * indicate whether the asset was added, removed, or remained present during
@@ -147,10 +184,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Duration compare_duration = 4; + * * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** + * + * *
    * When compare_duration is set, the Asset's "state" property is updated to
    * indicate whether the asset was added, removed, or remained present during
@@ -172,10 +212,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Duration compare_duration = 4; + * * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** + * + * *
    * When compare_duration is set, the Asset's "state" property is updated to
    * indicate whether the asset was added, removed, or remained present during
@@ -201,6 +244,8 @@ public interface GroupAssetsRequestOrBuilder extends
   com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
 
   /**
+   *
+   *
    * 
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -209,10 +254,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 5; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -221,10 +269,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 5; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -237,6 +288,8 @@ public interface GroupAssetsRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -244,10 +297,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * string page_token = 7; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -255,18 +311,21 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * string page_token = 7; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 8; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java similarity index 77% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java index efabc922a..7f227aeda 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Response message for grouping by assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GroupAssetsResponse} */ -public final class GroupAssetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GroupAssetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.GroupAssetsResponse) GroupAssetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GroupAssetsResponse.newBuilder() to construct. private GroupAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GroupAssetsResponse() { groupByResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private GroupAssetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GroupAssetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GroupAssetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,41 +72,48 @@ private GroupAssetsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - groupByResults_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - groupByResults_.add( - input.readMessage(com.google.cloud.securitycenter.v1beta1.GroupResult.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + groupByResults_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + groupByResults_.add( + input.readMessage( + com.google.cloud.securitycenter.v1beta1.GroupResult.parser(), + extensionRegistry)); + break; } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,8 +121,7 @@ private GroupAssetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); @@ -107,22 +130,27 @@ private GroupAssetsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.class, com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.class, + com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.Builder.class); } public static final int GROUP_BY_RESULTS_FIELD_NUMBER = 1; private java.util.List groupByResults_; /** + * + * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -132,10 +160,13 @@ private GroupAssetsResponse(
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
   @java.lang.Override
-  public java.util.List getGroupByResultsList() {
+  public java.util.List
+      getGroupByResultsList() {
     return groupByResults_;
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -145,11 +176,13 @@ public java.util.List getGr
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getGroupByResultsOrBuilderList() {
     return groupByResults_;
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -163,6 +196,8 @@ public int getGroupByResultsCount() {
     return groupByResults_.size();
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -176,6 +211,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult getGroupByResults(int
     return groupByResults_.get(index);
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -193,11 +230,14 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe
   public static final int READ_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Timestamp readTime_;
   /**
+   *
+   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -205,11 +245,14 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ @java.lang.Override @@ -217,6 +260,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used for executing the groupBy request.
    * 
@@ -231,12 +276,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ @java.lang.Override @@ -245,30 +293,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -277,6 +325,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,8 +337,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < groupByResults_.size(); i++) { output.writeMessage(1, groupByResults_.get(i)); } @@ -309,12 +357,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < groupByResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, groupByResults_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, groupByResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); @@ -327,22 +373,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse other = (com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse) obj; + com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse other = + (com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse) obj; - if (!getGroupByResultsList() - .equals(other.getGroupByResultsList())) return false; + if (!getGroupByResultsList().equals(other.getGroupByResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -370,117 +414,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for grouping by assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GroupAssetsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.GroupAssetsResponse) com.google.cloud.securitycenter.v1beta1.GroupAssetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.class, com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.class, + com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.newBuilder() @@ -488,17 +542,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getGroupByResultsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -520,9 +574,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_descriptor; } @java.lang.Override @@ -541,7 +595,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse buildPartial() { - com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse result = new com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse(this); + com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse result = + new com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse(this); int from_bitField0_ = bitField0_; if (groupByResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -566,38 +621,39 @@ public com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse)other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse) other); } else { super.mergeFrom(other); return this; @@ -605,7 +661,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse other) { - if (other == com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse.getDefaultInstance()) + return this; if (groupByResultsBuilder_ == null) { if (!other.groupByResults_.isEmpty()) { if (groupByResults_.isEmpty()) { @@ -624,9 +681,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.GroupAssetsResp groupByResultsBuilder_ = null; groupByResults_ = other.groupByResults_; bitField0_ = (bitField0_ & ~0x00000001); - groupByResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGroupByResultsFieldBuilder() : null; + groupByResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroupByResultsFieldBuilder() + : null; } else { groupByResultsBuilder_.addAllMessages(other.groupByResults_); } @@ -658,7 +716,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -667,21 +726,30 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List groupByResults_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureGroupByResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - groupByResults_ = new java.util.ArrayList(groupByResults_); + groupByResults_ = + new java.util.ArrayList( + groupByResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.GroupResult, com.google.cloud.securitycenter.v1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder> groupByResultsBuilder_; + com.google.cloud.securitycenter.v1beta1.GroupResult, + com.google.cloud.securitycenter.v1beta1.GroupResult.Builder, + com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder> + groupByResultsBuilder_; /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -690,7 +758,8 @@ private void ensureGroupByResultsIsMutable() {
      *
      * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
      */
-    public java.util.List getGroupByResultsList() {
+    public java.util.List
+        getGroupByResultsList() {
       if (groupByResultsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(groupByResults_);
       } else {
@@ -698,6 +767,8 @@ public java.util.List getGr
       }
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -714,6 +785,8 @@ public int getGroupByResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -730,6 +803,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult getGroupByResults(int
       }
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -753,6 +828,8 @@ public Builder setGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -773,6 +850,8 @@ public Builder setGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -795,6 +874,8 @@ public Builder addGroupByResults(com.google.cloud.securitycenter.v1beta1.GroupRe
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -818,6 +899,8 @@ public Builder addGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -838,6 +921,8 @@ public Builder addGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -858,6 +943,8 @@ public Builder addGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -870,8 +957,7 @@ public Builder addAllGroupByResults(
         java.lang.Iterable values) {
       if (groupByResultsBuilder_ == null) {
         ensureGroupByResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, groupByResults_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupByResults_);
         onChanged();
       } else {
         groupByResultsBuilder_.addAllMessages(values);
@@ -879,6 +965,8 @@ public Builder addAllGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -898,6 +986,8 @@ public Builder clearGroupByResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -917,6 +1007,8 @@ public Builder removeGroupByResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -930,6 +1022,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder getGroupByRes
       return getGroupByResultsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -941,11 +1035,14 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder getGroupByRes
     public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOrBuilder(
         int index) {
       if (groupByResultsBuilder_ == null) {
-        return groupByResults_.get(index);  } else {
+        return groupByResults_.get(index);
+      } else {
         return groupByResultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -954,8 +1051,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe
      *
      * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
      */
-    public java.util.List 
-         getGroupByResultsOrBuilderList() {
+    public java.util.List
+        getGroupByResultsOrBuilderList() {
       if (groupByResultsBuilder_ != null) {
         return groupByResultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -963,6 +1060,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe
       }
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -972,10 +1071,12 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe
      * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
      */
     public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByResultsBuilder() {
-      return getGroupByResultsFieldBuilder().addBuilder(
-          com.google.cloud.securitycenter.v1beta1.GroupResult.getDefaultInstance());
+      return getGroupByResultsFieldBuilder()
+          .addBuilder(com.google.cloud.securitycenter.v1beta1.GroupResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -986,10 +1087,13 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByRes
      */
     public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByResultsBuilder(
         int index) {
-      return getGroupByResultsFieldBuilder().addBuilder(
-          index, com.google.cloud.securitycenter.v1beta1.GroupResult.getDefaultInstance());
+      return getGroupByResultsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.securitycenter.v1beta1.GroupResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -998,16 +1102,22 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByRes
      *
      * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
      */
-    public java.util.List 
-         getGroupByResultsBuilderList() {
+    public java.util.List
+        getGroupByResultsBuilderList() {
       return getGroupByResultsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.securitycenter.v1beta1.GroupResult, com.google.cloud.securitycenter.v1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder> 
+            com.google.cloud.securitycenter.v1beta1.GroupResult,
+            com.google.cloud.securitycenter.v1beta1.GroupResult.Builder,
+            com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder>
         getGroupByResultsFieldBuilder() {
       if (groupByResultsBuilder_ == null) {
-        groupByResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1beta1.GroupResult, com.google.cloud.securitycenter.v1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder>(
+        groupByResultsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.securitycenter.v1beta1.GroupResult,
+                com.google.cloud.securitycenter.v1beta1.GroupResult.Builder,
+                com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder>(
                 groupByResults_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1019,24 +1129,33 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByRes
 
     private com.google.protobuf.Timestamp readTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        readTimeBuilder_;
     /**
+     *
+     *
      * 
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1047,6 +1166,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1067,14 +1188,15 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -1085,6 +1207,8 @@ public Builder setReadTime( return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1095,7 +1219,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -1107,6 +1231,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1125,6 +1251,8 @@ public Builder clearReadTime() { return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1132,11 +1260,13 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1147,11 +1277,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1159,14 +1290,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReadTime(), - getParentForChildren(), - isClean()); + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); readTime_ = null; } return readTimeBuilder_; @@ -1174,19 +1308,21 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1195,21 +1331,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1217,64 +1354,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1284,12 +1428,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.GroupAssetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.GroupAssetsResponse) private static final com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse(); } @@ -1298,16 +1442,16 @@ public static com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupAssetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupAssetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAssetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAssetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1322,6 +1466,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponseOrBuilder.java similarity index 80% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponseOrBuilder.java index 336a15cd9..fae6c9b13 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface GroupAssetsResponseOrBuilder extends +public interface GroupAssetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.GroupAssetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -16,9 +34,10 @@ public interface GroupAssetsResponseOrBuilder extends
    *
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
-  java.util.List 
-      getGroupByResultsList();
+  java.util.List getGroupByResultsList();
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -29,6 +48,8 @@ public interface GroupAssetsResponseOrBuilder extends
    */
   com.google.cloud.securitycenter.v1beta1.GroupResult getGroupByResults(int index);
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -39,6 +60,8 @@ public interface GroupAssetsResponseOrBuilder extends
    */
   int getGroupByResultsCount();
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -47,9 +70,11 @@ public interface GroupAssetsResponseOrBuilder extends
    *
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
-  java.util.List 
+  java.util.List
       getGroupByResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -62,24 +87,32 @@ com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOr
       int index);
 
   /**
+   *
+   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used for executing the groupBy request.
    * 
@@ -89,24 +122,29 @@ com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOr com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java similarity index 77% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java index 199d440b4..2e2303e29 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Request message for grouping by findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GroupFindingsRequest} */ -public final class GroupFindingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GroupFindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.GroupFindingsRequest) GroupFindingsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GroupFindingsRequest.newBuilder() to construct. private GroupFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GroupFindingsRequest() { parent_ = ""; filter_ = ""; @@ -28,16 +46,15 @@ private GroupFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GroupFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GroupFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,55 +73,61 @@ private GroupFindingsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - groupBy_ = s; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); + groupBy_ = s; + break; } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 48: { - - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 48: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,29 +135,33 @@ private GroupFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.class, com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.class, + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To groupBy across
@@ -142,7 +169,10 @@ private GroupFindingsRequest(
    * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -151,14 +181,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To groupBy across
@@ -166,17 +197,18 @@ public java.lang.String getParent() {
    * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -187,6 +219,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -209,6 +243,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -217,14 +252,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -247,16 +283,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -267,6 +302,8 @@ public java.lang.String getFilter() { public static final int GROUP_BY_FIELD_NUMBER = 3; private volatile java.lang.Object groupBy_; /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state`). The string value should follow SQL syntax: comma separated list
@@ -280,6 +317,7 @@ public java.lang.String getFilter() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The groupBy. */ @java.lang.Override @@ -288,14 +326,15 @@ public java.lang.String getGroupBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; } } /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state`). The string value should follow SQL syntax: comma separated list
@@ -309,16 +348,15 @@ public java.lang.String getGroupBy() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for groupBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getGroupByBytes() { + public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); groupBy_ = b; return b; } else { @@ -329,6 +367,8 @@ public java.lang.String getGroupBy() { public static final int READ_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp readTime_; /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -337,6 +377,7 @@ public java.lang.String getGroupBy() {
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -344,6 +385,8 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -352,6 +395,7 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ @java.lang.Override @@ -359,6 +403,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -376,6 +422,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int PAGE_TOKEN_FIELD_NUMBER = 5;
   private volatile java.lang.Object pageToken_;
   /**
+   *
+   *
    * 
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -383,6 +431,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * string page_token = 5; + * * @return The pageToken. */ @java.lang.Override @@ -391,14 +440,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -406,16 +456,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 5; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -426,12 +475,15 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 6; private int pageSize_; /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 6; + * * @return The pageSize. */ @java.lang.Override @@ -440,6 +492,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -451,8 +504,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -490,15 +542,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, groupBy_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -508,28 +558,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest other = (com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest) obj; + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest other = + (com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getGroupBy() - .equals(other.getGroupBy())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getGroupBy().equals(other.getGroupBy())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -561,117 +606,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for grouping by findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GroupFindingsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.GroupFindingsRequest) com.google.cloud.securitycenter.v1beta1.GroupFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.class, com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.class, + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.newBuilder() @@ -679,16 +734,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -712,13 +766,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.getDefaultInstance(); } @@ -733,7 +788,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest result = new com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest(this); + com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest result = + new com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.groupBy_ = groupBy_; @@ -752,38 +808,39 @@ public com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest) other); } else { super.mergeFrom(other); return this; @@ -791,7 +848,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -833,7 +892,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -845,6 +905,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To groupBy across
@@ -852,14 +914,16 @@ public Builder mergeFrom(
      * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -868,6 +932,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To groupBy across
@@ -875,16 +941,17 @@ public java.lang.String getParent() {
      * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -892,6 +959,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To groupBy across
@@ -899,21 +968,25 @@ public java.lang.String getParent() {
      * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To groupBy across
@@ -921,16 +994,21 @@ public Builder setParent(
      * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To groupBy across
@@ -938,17 +1016,19 @@ public Builder clearParent() {
      * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -956,6 +1036,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -978,13 +1060,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -993,6 +1075,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1015,15 +1099,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1031,6 +1114,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1053,20 +1138,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1089,15 +1176,18 @@ public Builder setFilter(
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1120,16 +1210,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1137,6 +1227,8 @@ public Builder setFilterBytes( private java.lang.Object groupBy_ = ""; /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state`). The string value should follow SQL syntax: comma separated list
@@ -1150,13 +1242,13 @@ public Builder setFilterBytes(
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The groupBy. */ public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; @@ -1165,6 +1257,8 @@ public java.lang.String getGroupBy() { } } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state`). The string value should follow SQL syntax: comma separated list
@@ -1178,15 +1272,14 @@ public java.lang.String getGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for groupBy. */ - public com.google.protobuf.ByteString - getGroupByBytes() { + public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); groupBy_ = b; return b; } else { @@ -1194,6 +1287,8 @@ public java.lang.String getGroupBy() { } } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state`). The string value should follow SQL syntax: comma separated list
@@ -1207,20 +1302,22 @@ public java.lang.String getGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The groupBy to set. * @return This builder for chaining. */ - public Builder setGroupBy( - java.lang.String value) { + public Builder setGroupBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + groupBy_ = value; onChanged(); return this; } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state`). The string value should follow SQL syntax: comma separated list
@@ -1234,15 +1331,18 @@ public Builder setGroupBy(
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearGroupBy() { - + groupBy_ = getDefaultInstance().getGroupBy(); onChanged(); return this; } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state`). The string value should follow SQL syntax: comma separated list
@@ -1256,16 +1356,16 @@ public Builder clearGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for groupBy to set. * @return This builder for chaining. */ - public Builder setGroupByBytes( - com.google.protobuf.ByteString value) { + public Builder setGroupByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + groupBy_ = value; onChanged(); return this; @@ -1273,8 +1373,13 @@ public Builder setGroupByBytes( private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1283,12 +1388,15 @@ public Builder setGroupByBytes(
      * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1297,6 +1405,7 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1307,6 +1416,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1330,6 +1441,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1339,8 +1452,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 4;
      */
-    public Builder setReadTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1351,6 +1463,8 @@ public Builder setReadTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1364,7 +1478,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -1376,6 +1490,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1397,6 +1513,8 @@ public Builder clearReadTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1407,11 +1525,13 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-      
+
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1425,11 +1545,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1440,14 +1561,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(),
-                getParentForChildren(),
-                isClean());
+        readTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(), getParentForChildren(), isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -1455,6 +1579,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private java.lang.Object pageToken_ = "";
     /**
+     *
+     *
      * 
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -1462,13 +1588,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * string page_token = 5; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1477,6 +1603,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -1484,15 +1612,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 5; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1500,6 +1627,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -1507,20 +1636,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 5; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -1528,15 +1659,18 @@ public Builder setPageToken(
      * 
* * string page_token = 5; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -1544,29 +1678,32 @@ public Builder clearPageToken() {
      * 
* * string page_token = 5; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 6; + * * @return The pageSize. */ @java.lang.Override @@ -1574,39 +1711,45 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 6; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 6; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1616,12 +1759,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.GroupFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.GroupFindingsRequest) - private static final com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest(); } @@ -1630,16 +1774,16 @@ public static com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1654,6 +1798,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequestOrBuilder.java similarity index 82% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequestOrBuilder.java index 55a7aa08e..f44953805 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface GroupFindingsRequestOrBuilder extends +public interface GroupFindingsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.GroupFindingsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To groupBy across
@@ -15,11 +33,16 @@ public interface GroupFindingsRequestOrBuilder extends
    * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To groupBy across
@@ -27,13 +50,17 @@ public interface GroupFindingsRequestOrBuilder extends
    * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -56,10 +83,13 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -82,12 +112,14 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state`). The string value should follow SQL syntax: comma separated list
@@ -101,10 +133,13 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The groupBy. */ java.lang.String getGroupBy(); /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state`). The string value should follow SQL syntax: comma separated list
@@ -118,12 +153,14 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for groupBy. */ - com.google.protobuf.ByteString - getGroupByBytes(); + com.google.protobuf.ByteString getGroupByBytes(); /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -132,10 +169,13 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -144,10 +184,13 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -160,6 +203,8 @@ public interface GroupFindingsRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -167,10 +212,13 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * string page_token = 5; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -178,18 +226,21 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * string page_token = 5; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 6; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java similarity index 77% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java index 0fbcb545f..2a4ec6929 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Response message for group by findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GroupFindingsResponse} */ -public final class GroupFindingsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GroupFindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.GroupFindingsResponse) GroupFindingsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GroupFindingsResponse.newBuilder() to construct. private GroupFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GroupFindingsResponse() { groupByResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private GroupFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GroupFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GroupFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,41 +72,48 @@ private GroupFindingsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - groupByResults_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - groupByResults_.add( - input.readMessage(com.google.cloud.securitycenter.v1beta1.GroupResult.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + groupByResults_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + groupByResults_.add( + input.readMessage( + com.google.cloud.securitycenter.v1beta1.GroupResult.parser(), + extensionRegistry)); + break; } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,8 +121,7 @@ private GroupFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); @@ -107,22 +130,27 @@ private GroupFindingsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.class, com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.class, + com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.Builder.class); } public static final int GROUP_BY_RESULTS_FIELD_NUMBER = 1; private java.util.List groupByResults_; /** + * + * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -132,10 +160,13 @@ private GroupFindingsResponse(
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
   @java.lang.Override
-  public java.util.List getGroupByResultsList() {
+  public java.util.List
+      getGroupByResultsList() {
     return groupByResults_;
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -145,11 +176,13 @@ public java.util.List getGr
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getGroupByResultsOrBuilderList() {
     return groupByResults_;
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -163,6 +196,8 @@ public int getGroupByResultsCount() {
     return groupByResults_.size();
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -176,6 +211,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult getGroupByResults(int
     return groupByResults_.get(index);
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -193,11 +230,14 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe
   public static final int READ_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Timestamp readTime_;
   /**
+   *
+   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -205,11 +245,14 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ @java.lang.Override @@ -217,6 +260,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used for executing the groupBy request.
    * 
@@ -231,12 +276,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ @java.lang.Override @@ -245,30 +293,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -277,6 +325,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,8 +337,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < groupByResults_.size(); i++) { output.writeMessage(1, groupByResults_.get(i)); } @@ -309,12 +357,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < groupByResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, groupByResults_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, groupByResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); @@ -327,22 +373,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse other = (com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse) obj; + com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse other = + (com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse) obj; - if (!getGroupByResultsList() - .equals(other.getGroupByResultsList())) return false; + if (!getGroupByResultsList().equals(other.getGroupByResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -370,117 +414,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for group by findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GroupFindingsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.GroupFindingsResponse) com.google.cloud.securitycenter.v1beta1.GroupFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.class, com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.class, + com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.newBuilder() @@ -488,17 +542,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getGroupByResultsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -520,13 +574,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.getDefaultInstance(); } @@ -541,7 +596,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse buildPartial() { - com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse result = new com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse(this); + com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse result = + new com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse(this); int from_bitField0_ = bitField0_; if (groupByResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -566,38 +622,39 @@ public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse)other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse) other); } else { super.mergeFrom(other); return this; @@ -605,7 +662,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse other) { - if (other == com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse.getDefaultInstance()) + return this; if (groupByResultsBuilder_ == null) { if (!other.groupByResults_.isEmpty()) { if (groupByResults_.isEmpty()) { @@ -624,9 +683,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.GroupFindingsRe groupByResultsBuilder_ = null; groupByResults_ = other.groupByResults_; bitField0_ = (bitField0_ & ~0x00000001); - groupByResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGroupByResultsFieldBuilder() : null; + groupByResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroupByResultsFieldBuilder() + : null; } else { groupByResultsBuilder_.addAllMessages(other.groupByResults_); } @@ -658,7 +718,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -667,21 +729,30 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List groupByResults_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureGroupByResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - groupByResults_ = new java.util.ArrayList(groupByResults_); + groupByResults_ = + new java.util.ArrayList( + groupByResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.GroupResult, com.google.cloud.securitycenter.v1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder> groupByResultsBuilder_; + com.google.cloud.securitycenter.v1beta1.GroupResult, + com.google.cloud.securitycenter.v1beta1.GroupResult.Builder, + com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder> + groupByResultsBuilder_; /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -690,7 +761,8 @@ private void ensureGroupByResultsIsMutable() {
      *
      * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
      */
-    public java.util.List getGroupByResultsList() {
+    public java.util.List
+        getGroupByResultsList() {
       if (groupByResultsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(groupByResults_);
       } else {
@@ -698,6 +770,8 @@ public java.util.List getGr
       }
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -714,6 +788,8 @@ public int getGroupByResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -730,6 +806,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult getGroupByResults(int
       }
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -753,6 +831,8 @@ public Builder setGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -773,6 +853,8 @@ public Builder setGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -795,6 +877,8 @@ public Builder addGroupByResults(com.google.cloud.securitycenter.v1beta1.GroupRe
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -818,6 +902,8 @@ public Builder addGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -838,6 +924,8 @@ public Builder addGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -858,6 +946,8 @@ public Builder addGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -870,8 +960,7 @@ public Builder addAllGroupByResults(
         java.lang.Iterable values) {
       if (groupByResultsBuilder_ == null) {
         ensureGroupByResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, groupByResults_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupByResults_);
         onChanged();
       } else {
         groupByResultsBuilder_.addAllMessages(values);
@@ -879,6 +968,8 @@ public Builder addAllGroupByResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -898,6 +989,8 @@ public Builder clearGroupByResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -917,6 +1010,8 @@ public Builder removeGroupByResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -930,6 +1025,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder getGroupByRes
       return getGroupByResultsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -941,11 +1038,14 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder getGroupByRes
     public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOrBuilder(
         int index) {
       if (groupByResultsBuilder_ == null) {
-        return groupByResults_.get(index);  } else {
+        return groupByResults_.get(index);
+      } else {
         return groupByResultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -954,8 +1054,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe
      *
      * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
      */
-    public java.util.List 
-         getGroupByResultsOrBuilderList() {
+    public java.util.List
+        getGroupByResultsOrBuilderList() {
       if (groupByResultsBuilder_ != null) {
         return groupByResultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -963,6 +1063,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe
       }
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -972,10 +1074,12 @@ public com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByRe
      * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
      */
     public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByResultsBuilder() {
-      return getGroupByResultsFieldBuilder().addBuilder(
-          com.google.cloud.securitycenter.v1beta1.GroupResult.getDefaultInstance());
+      return getGroupByResultsFieldBuilder()
+          .addBuilder(com.google.cloud.securitycenter.v1beta1.GroupResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -986,10 +1090,13 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByRes
      */
     public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByResultsBuilder(
         int index) {
-      return getGroupByResultsFieldBuilder().addBuilder(
-          index, com.google.cloud.securitycenter.v1beta1.GroupResult.getDefaultInstance());
+      return getGroupByResultsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.securitycenter.v1beta1.GroupResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
@@ -998,16 +1105,22 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByRes
      *
      * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
      */
-    public java.util.List 
-         getGroupByResultsBuilderList() {
+    public java.util.List
+        getGroupByResultsBuilderList() {
       return getGroupByResultsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.securitycenter.v1beta1.GroupResult, com.google.cloud.securitycenter.v1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder> 
+            com.google.cloud.securitycenter.v1beta1.GroupResult,
+            com.google.cloud.securitycenter.v1beta1.GroupResult.Builder,
+            com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder>
         getGroupByResultsFieldBuilder() {
       if (groupByResultsBuilder_ == null) {
-        groupByResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1beta1.GroupResult, com.google.cloud.securitycenter.v1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder>(
+        groupByResultsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.securitycenter.v1beta1.GroupResult,
+                com.google.cloud.securitycenter.v1beta1.GroupResult.Builder,
+                com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder>(
                 groupByResults_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1019,24 +1132,33 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByRes
 
     private com.google.protobuf.Timestamp readTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        readTimeBuilder_;
     /**
+     *
+     *
      * 
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1047,6 +1169,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1067,14 +1191,15 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -1085,6 +1210,8 @@ public Builder setReadTime( return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1095,7 +1222,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -1107,6 +1234,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1125,6 +1254,8 @@ public Builder clearReadTime() { return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1132,11 +1263,13 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1147,11 +1280,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1159,14 +1293,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReadTime(), - getParentForChildren(), - isClean()); + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); readTime_ = null; } return readTimeBuilder_; @@ -1174,19 +1311,21 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1195,21 +1334,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1217,64 +1357,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1284,12 +1431,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.GroupFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.GroupFindingsResponse) - private static final com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse(); } @@ -1298,16 +1446,16 @@ public static com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1322,6 +1470,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponseOrBuilder.java similarity index 80% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponseOrBuilder.java index 28cc19d6b..b92034829 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface GroupFindingsResponseOrBuilder extends +public interface GroupFindingsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.GroupFindingsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -16,9 +34,10 @@ public interface GroupFindingsResponseOrBuilder extends
    *
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
-  java.util.List 
-      getGroupByResultsList();
+  java.util.List getGroupByResultsList();
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -29,6 +48,8 @@ public interface GroupFindingsResponseOrBuilder extends
    */
   com.google.cloud.securitycenter.v1beta1.GroupResult getGroupByResults(int index);
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -39,6 +60,8 @@ public interface GroupFindingsResponseOrBuilder extends
    */
   int getGroupByResultsCount();
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -47,9 +70,11 @@ public interface GroupFindingsResponseOrBuilder extends
    *
    * repeated .google.cloud.securitycenter.v1beta1.GroupResult group_by_results = 1;
    */
-  java.util.List 
+  java.util.List
       getGroupByResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -62,24 +87,32 @@ com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOr
       int index);
 
   /**
+   *
+   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used for executing the groupBy request.
    * 
@@ -89,24 +122,29 @@ com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder getGroupByResultsOr com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java index 52f27629d..20df380de 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Result containing the properties and count of a groupBy request.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GroupResult} */ -public final class GroupResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GroupResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.GroupResult) GroupResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GroupResult.newBuilder() to construct. private GroupResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GroupResult() { - } + + private GroupResult() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GroupResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GroupResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,31 +69,34 @@ private GroupResult( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - properties_ = com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + properties_ = + com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); + break; } - com.google.protobuf.MapEntry - properties__ = input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - properties_.getMutableMap().put( - properties__.getKey(), properties__.getValue()); - break; - } - case 16: { - - count_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 16: + { + count_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,57 +104,60 @@ private GroupResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupResult_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetProperties(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GroupResult.class, com.google.cloud.securitycenter.v1beta1.GroupResult.Builder.class); + com.google.cloud.securitycenter.v1beta1.GroupResult.class, + com.google.cloud.securitycenter.v1beta1.GroupResult.Builder.class); } public static final int PROPERTIES_FIELD_NUMBER = 1; + private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.Value> defaultEntry = + static final com.google.protobuf.MapEntry + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupResult_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> properties_; + .newDefaultInstance( + com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupResult_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); + } + + private com.google.protobuf.MapField properties_; + private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -144,28 +166,30 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -173,11 +197,12 @@ public java.util.Map getProperties( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -185,16 +210,18 @@ public java.util.Map getPropertiesM * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - public com.google.protobuf.Value getPropertiesOrDefault( - java.lang.String key, - com.google.protobuf.Value defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.protobuf.Value defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -202,10 +229,10 @@ public com.google.protobuf.Value getPropertiesOrDefault( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - - public com.google.protobuf.Value getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { @@ -217,11 +244,14 @@ public com.google.protobuf.Value getPropertiesOrThrow( public static final int COUNT_FIELD_NUMBER = 2; private long count_; /** + * + * *
    * Total count of resources for the given properties.
    * 
* * int64 count = 2; + * * @return The count. */ @java.lang.Override @@ -230,6 +260,7 @@ public long getCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -241,14 +272,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetProperties(), - PropertiesDefaultEntryHolder.defaultEntry, - 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 1); if (count_ != 0L) { output.writeInt64(2, count_); } @@ -261,19 +287,18 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry - properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, properties__); + for (java.util.Map.Entry entry : + internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry properties__ = + PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, properties__); } if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, count_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, count_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -283,17 +308,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.GroupResult)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.GroupResult other = (com.google.cloud.securitycenter.v1beta1.GroupResult) obj; + com.google.cloud.securitycenter.v1beta1.GroupResult other = + (com.google.cloud.securitycenter.v1beta1.GroupResult) obj; - if (!internalGetProperties().equals( - other.internalGetProperties())) return false; - if (getCount() - != other.getCount()) return false; + if (!internalGetProperties().equals(other.internalGetProperties())) return false; + if (getCount() != other.getCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -310,147 +334,153 @@ public int hashCode() { hash = (53 * hash) + internalGetProperties().hashCode(); } hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.GroupResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.GroupResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.GroupResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.GroupResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.GroupResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Result containing the properties and count of a groupBy request.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.GroupResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.GroupResult) com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupResult_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetProperties(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableProperties(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.GroupResult.class, com.google.cloud.securitycenter.v1beta1.GroupResult.Builder.class); + com.google.cloud.securitycenter.v1beta1.GroupResult.class, + com.google.cloud.securitycenter.v1beta1.GroupResult.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.GroupResult.newBuilder() @@ -458,16 +488,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +507,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_GroupResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_GroupResult_descriptor; } @java.lang.Override @@ -499,7 +528,8 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.GroupResult buildPartial() { - com.google.cloud.securitycenter.v1beta1.GroupResult result = new com.google.cloud.securitycenter.v1beta1.GroupResult(this); + com.google.cloud.securitycenter.v1beta1.GroupResult result = + new com.google.cloud.securitycenter.v1beta1.GroupResult(this); int from_bitField0_ = bitField0_; result.properties_ = internalGetProperties(); result.properties_.makeImmutable(); @@ -512,38 +542,39 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.GroupResult) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.GroupResult)other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.GroupResult) other); } else { super.mergeFrom(other); return this; @@ -551,9 +582,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.GroupResult other) { - if (other == com.google.cloud.securitycenter.v1beta1.GroupResult.getDefaultInstance()) return this; - internalGetMutableProperties().mergeFrom( - other.internalGetProperties()); + if (other == com.google.cloud.securitycenter.v1beta1.GroupResult.getDefaultInstance()) + return this; + internalGetMutableProperties().mergeFrom(other.internalGetProperties()); if (other.getCount() != 0L) { setCount(other.getCount()); } @@ -576,7 +607,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.GroupResult) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.GroupResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -585,24 +617,27 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> properties_; + private com.google.protobuf.MapField properties_; + private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } + private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged();; + internalGetMutableProperties() { + onChanged(); + ; if (properties_ == null) { - properties_ = com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); + properties_ = + com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -614,28 +649,30 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
@@ -643,11 +680,12 @@ public java.util.Map getProperties( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
@@ -655,16 +693,18 @@ public java.util.Map getPropertiesM * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - public com.google.protobuf.Value getPropertiesOrDefault( - java.lang.String key, - com.google.protobuf.Value defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.protobuf.Value defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
@@ -672,10 +712,10 @@ public com.google.protobuf.Value getPropertiesOrDefault( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - - public com.google.protobuf.Value getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { @@ -685,74 +725,75 @@ public com.google.protobuf.Value getPropertiesOrThrow( } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap() - .clear(); + internalGetMutableProperties().getMutableMap().clear(); return this; } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ - - public Builder removeProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableProperties().getMutableMap() - .remove(key); + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableProperties().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableProperties() { + public java.util.Map getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ - public Builder putProperties( - java.lang.String key, - com.google.protobuf.Value value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putProperties(java.lang.String key, com.google.protobuf.Value value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableProperties().getMutableMap() - .put(key, value); + internalGetMutableProperties().getMutableMap().put(key, value); return this; } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ - public Builder putAllProperties( java.util.Map values) { - internalGetMutableProperties().getMutableMap() - .putAll(values); + internalGetMutableProperties().getMutableMap().putAll(values); return this; } - private long count_ ; + private long count_; /** + * + * *
      * Total count of resources for the given properties.
      * 
* * int64 count = 2; + * * @return The count. */ @java.lang.Override @@ -760,37 +801,43 @@ public long getCount() { return count_; } /** + * + * *
      * Total count of resources for the given properties.
      * 
* * int64 count = 2; + * * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(long value) { - + count_ = value; onChanged(); return this; } /** + * + * *
      * Total count of resources for the given properties.
      * 
* * int64 count = 2; + * * @return This builder for chaining. */ public Builder clearCount() { - + count_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -800,12 +847,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.GroupResult) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.GroupResult) private static final com.google.cloud.securitycenter.v1beta1.GroupResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.GroupResult(); } @@ -814,16 +861,16 @@ public static com.google.cloud.securitycenter.v1beta1.GroupResult getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -838,6 +885,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.GroupResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResultOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResultOrBuilder.java similarity index 56% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResultOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResultOrBuilder.java index 031df5b49..d840041a0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResultOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResultOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface GroupResultOrBuilder extends +public interface GroupResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.GroupResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -16,30 +34,31 @@ public interface GroupResultOrBuilder extends */ int getPropertiesCount(); /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - boolean containsProperties( - java.lang.String key); - /** - * Use {@link #getPropertiesMap()} instead. - */ + boolean containsProperties(java.lang.String key); + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getProperties(); + java.util.Map getProperties(); /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - java.util.Map - getPropertiesMap(); + java.util.Map getPropertiesMap(); /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -48,27 +67,30 @@ boolean containsProperties( */ /* nullable */ -com.google.protobuf.Value getPropertiesOrDefault( + com.google.protobuf.Value getPropertiesOrDefault( java.lang.String key, /* nullable */ -com.google.protobuf.Value defaultValue); + com.google.protobuf.Value defaultValue); /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - - com.google.protobuf.Value getPropertiesOrThrow( - java.lang.String key); + com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key); /** + * + * *
    * Total count of resources for the given properties.
    * 
* * int64 count = 2; + * * @return The count. */ long getCount(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java similarity index 80% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java index 6597dbc2a..d2ee0fce9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Request message for listing assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListAssetsRequest} */ -public final class ListAssetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAssetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.ListAssetsRequest) ListAssetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAssetsRequest.newBuilder() to construct. private ListAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAssetsRequest() { parent_ = ""; filter_ = ""; @@ -28,16 +46,15 @@ private ListAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListAssetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,81 +73,91 @@ private ListAssetsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); + orderBy_ = s; + break; } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 42: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (compareDuration_ != null) { - subBuilder = compareDuration_.toBuilder(); + case 42: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); + } + compareDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); + } + + break; } - compareDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compareDuration_); - compareDuration_ = subBuilder.buildPartial(); + case 58: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); + } + fieldMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); + } + + break; } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 58: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (fieldMask_ != null) { - subBuilder = fieldMask_.toBuilder(); + pageToken_ = s; + break; } - fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fieldMask_); - fieldMask_ = subBuilder.buildPartial(); + case 72: + { + pageSize_ = input.readInt32(); + break; } - - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 72: { - - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -138,35 +165,42 @@ private ListAssetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.class, com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.class, + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -175,30 +209,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -209,6 +245,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -233,6 +271,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -241,14 +280,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -273,16 +313,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -293,6 +332,8 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 3; private volatile java.lang.Object orderBy_; /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -305,6 +346,7 @@ public java.lang.String getFilter() {
    * 
* * string order_by = 3; + * * @return The orderBy. */ @java.lang.Override @@ -313,14 +355,15 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -333,16 +376,15 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 3; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -353,6 +395,8 @@ public java.lang.String getOrderBy() { public static final int READ_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp readTime_; /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -361,6 +405,7 @@ public java.lang.String getOrderBy() {
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -368,6 +413,8 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -376,6 +423,7 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ @java.lang.Override @@ -383,6 +431,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -400,6 +450,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int COMPARE_DURATION_FIELD_NUMBER = 5;
   private com.google.protobuf.Duration compareDuration_;
   /**
+   *
+   *
    * 
    * When compare_duration is set, the ListAssetResult's "state" attribute is
    * updated to indicate whether the asset was added, removed, or remained
@@ -423,6 +475,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ @java.lang.Override @@ -430,6 +483,8 @@ public boolean hasCompareDuration() { return compareDuration_ != null; } /** + * + * *
    * When compare_duration is set, the ListAssetResult's "state" attribute is
    * updated to indicate whether the asset was added, removed, or remained
@@ -453,13 +508,18 @@ public boolean hasCompareDuration() {
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { - return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; } /** + * + * *
    * When compare_duration is set, the ListAssetResult's "state" attribute is
    * updated to indicate whether the asset was added, removed, or remained
@@ -492,13 +552,17 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
   public static final int FIELD_MASK_FIELD_NUMBER = 7;
   private com.google.protobuf.FieldMask fieldMask_;
   /**
+   *
+   *
    * 
    * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -506,13 +570,17 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** + * + * *
    * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The fieldMask. */ @java.lang.Override @@ -520,13 +588,16 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** + * + * *
    * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { @@ -536,6 +607,8 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { public static final int PAGE_TOKEN_FIELD_NUMBER = 8; private volatile java.lang.Object pageToken_; /** + * + * *
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -543,6 +616,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
    * 
* * string page_token = 8; + * * @return The pageToken. */ @java.lang.Override @@ -551,14 +625,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -566,16 +641,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 8; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -586,12 +660,15 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 9; private int pageSize_; /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 9; + * * @return The pageSize. */ @java.lang.Override @@ -600,6 +677,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -611,8 +689,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -656,23 +733,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, orderBy_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); } if (compareDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCompareDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getFieldMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFieldMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -682,38 +755,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.ListAssetsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest other = (com.google.cloud.securitycenter.v1beta1.ListAssetsRequest) obj; + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest other = + (com.google.cloud.securitycenter.v1beta1.ListAssetsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - if (!getCompareDuration() - .equals(other.getCompareDuration())) return false; + if (!getCompareDuration().equals(other.getCompareDuration())) return false; } if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - if (!getFieldMask() - .equals(other.getFieldMask())) return false; + if (!getFieldMask().equals(other.getFieldMask())) return false; } - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -753,117 +819,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.ListAssetsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for listing assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListAssetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.ListAssetsRequest) com.google.cloud.securitycenter.v1beta1.ListAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.class, com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.class, + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.newBuilder() @@ -871,16 +947,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -916,9 +991,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_descriptor; } @java.lang.Override @@ -937,7 +1012,8 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.ListAssetsRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.ListAssetsRequest result = new com.google.cloud.securitycenter.v1beta1.ListAssetsRequest(this); + com.google.cloud.securitycenter.v1beta1.ListAssetsRequest result = + new com.google.cloud.securitycenter.v1beta1.ListAssetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.orderBy_ = orderBy_; @@ -966,38 +1042,39 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.ListAssetsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListAssetsRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListAssetsRequest) other); } else { super.mergeFrom(other); return this; @@ -1005,7 +1082,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.ListAssetsRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1beta1.ListAssetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1053,7 +1131,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.ListAssetsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.ListAssetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1065,19 +1144,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1086,21 +1169,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1108,57 +1194,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1166,6 +1265,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1190,13 +1291,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1205,6 +1306,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1229,15 +1332,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1245,6 +1347,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1269,20 +1373,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1307,15 +1413,18 @@ public Builder setFilter(
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1340,16 +1449,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1357,6 +1466,8 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1369,13 +1480,13 @@ public Builder setFilterBytes(
      * 
* * string order_by = 3; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1384,6 +1495,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1396,15 +1509,14 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1412,6 +1524,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1424,20 +1538,22 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1450,15 +1566,18 @@ public Builder setOrderBy(
      * 
* * string order_by = 3; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1471,16 +1590,16 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 3; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; @@ -1488,8 +1607,13 @@ public Builder setOrderByBytes( private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1498,12 +1622,15 @@ public Builder setOrderByBytes(
      * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1512,6 +1639,7 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1522,6 +1650,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1545,6 +1675,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1554,8 +1686,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 4;
      */
-    public Builder setReadTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1566,6 +1697,8 @@ public Builder setReadTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1579,7 +1712,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -1591,6 +1724,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1612,6 +1747,8 @@ public Builder clearReadTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1622,11 +1759,13 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-      
+
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1640,11 +1779,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1655,14 +1795,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(),
-                getParentForChildren(),
-                isClean());
+        readTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(), getParentForChildren(), isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -1670,8 +1813,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private com.google.protobuf.Duration compareDuration_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> compareDurationBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        compareDurationBuilder_;
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetResult's "state" attribute is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1695,12 +1843,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; } /** + * + * *
      * When compare_duration is set, the ListAssetResult's "state" attribute is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1724,16 +1875,21 @@ public boolean hasCompareDuration() {
      * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { - return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; } else { return compareDurationBuilder_.getMessage(); } } /** + * + * *
      * When compare_duration is set, the ListAssetResult's "state" attribute is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1772,6 +1928,8 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetResult's "state" attribute is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1796,8 +1954,7 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration compare_duration = 5;
      */
-    public Builder setCompareDuration(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) {
       if (compareDurationBuilder_ == null) {
         compareDuration_ = builderForValue.build();
         onChanged();
@@ -1808,6 +1965,8 @@ public Builder setCompareDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetResult's "state" attribute is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1836,7 +1995,9 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       if (compareDurationBuilder_ == null) {
         if (compareDuration_ != null) {
           compareDuration_ =
-            com.google.protobuf.Duration.newBuilder(compareDuration_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(compareDuration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           compareDuration_ = value;
         }
@@ -1848,6 +2009,8 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetResult's "state" attribute is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1884,6 +2047,8 @@ public Builder clearCompareDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetResult's "state" attribute is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1909,11 +2074,13 @@ public Builder clearCompareDuration() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
-      
+
       onChanged();
       return getCompareDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetResult's "state" attribute is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1942,11 +2109,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
       if (compareDurationBuilder_ != null) {
         return compareDurationBuilder_.getMessageOrBuilder();
       } else {
-        return compareDuration_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : compareDuration_;
+        return compareDuration_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : compareDuration_;
       }
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetResult's "state" attribute is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1972,14 +2142,17 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getCompareDurationFieldBuilder() {
       if (compareDurationBuilder_ == null) {
-        compareDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getCompareDuration(),
-                getParentForChildren(),
-                isClean());
+        compareDurationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getCompareDuration(), getParentForChildren(), isClean());
         compareDuration_ = null;
       }
       return compareDurationBuilder_;
@@ -1987,28 +2160,39 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
 
     private com.google.protobuf.FieldMask fieldMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> fieldMaskBuilder_;
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
+        fieldMaskBuilder_;
     /**
+     *
+     *
      * 
      * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** + * + * *
      * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -2019,13 +2203,16 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** + * + * *
      * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { @@ -2041,16 +2228,18 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setFieldMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { fieldMask_ = builderForValue.build(); onChanged(); @@ -2061,19 +2250,22 @@ public Builder setFieldMask( return this; } /** + * + * *
      * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { if (fieldMask_ != null) { fieldMask_ = - com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); } else { fieldMask_ = value; } @@ -2085,13 +2277,16 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearFieldMask() { if (fieldMaskBuilder_ == null) { @@ -2105,54 +2300,65 @@ public Builder clearFieldMask() { return this; } /** + * + * *
      * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { - + onChanged(); return getFieldMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { if (fieldMaskBuilder_ != null) { return fieldMaskBuilder_.getMessageOrBuilder(); } else { - return fieldMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } } /** + * + * *
      * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getFieldMaskFieldBuilder() { if (fieldMaskBuilder_ == null) { - fieldMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getFieldMask(), - getParentForChildren(), - isClean()); + fieldMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getFieldMask(), getParentForChildren(), isClean()); fieldMask_ = null; } return fieldMaskBuilder_; @@ -2160,6 +2366,8 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2167,13 +2375,13 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * 
* * string page_token = 8; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2182,6 +2390,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2189,15 +2399,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 8; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2205,6 +2414,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2212,20 +2423,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 8; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2233,15 +2446,18 @@ public Builder setPageToken(
      * 
* * string page_token = 8; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2249,29 +2465,32 @@ public Builder clearPageToken() {
      * 
* * string page_token = 8; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; + * * @return The pageSize. */ @java.lang.Override @@ -2279,39 +2498,45 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2321,12 +2546,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.ListAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.ListAssetsRequest) private static final com.google.cloud.securitycenter.v1beta1.ListAssetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.ListAssetsRequest(); } @@ -2335,16 +2560,16 @@ public static com.google.cloud.securitycenter.v1beta1.ListAssetsRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2359,6 +2584,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.ListAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequestOrBuilder.java similarity index 88% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequestOrBuilder.java index 66b9c2ddf..c236ec9e9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface ListAssetsRequestOrBuilder extends +public interface ListAssetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.ListAssetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -54,10 +81,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -82,12 +112,14 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -100,10 +132,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * string order_by = 3; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -116,12 +151,14 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * string order_by = 3; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -130,10 +167,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -142,10 +182,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -158,6 +201,8 @@ public interface ListAssetsRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * When compare_duration is set, the ListAssetResult's "state" attribute is
    * updated to indicate whether the asset was added, removed, or remained
@@ -181,10 +226,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** + * + * *
    * When compare_duration is set, the ListAssetResult's "state" attribute is
    * updated to indicate whether the asset was added, removed, or remained
@@ -208,10 +256,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** + * + * *
    * When compare_duration is set, the ListAssetResult's "state" attribute is
    * updated to indicate whether the asset was added, removed, or remained
@@ -239,39 +290,52 @@ public interface ListAssetsRequestOrBuilder extends
   com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
 
   /**
+   *
+   *
    * 
    * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** + * + * *
    * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** + * + * *
    * Optional. A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); /** + * + * *
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -279,10 +343,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * string page_token = 8; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -290,18 +357,21 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * string page_token = 8; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 9; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java index 4228e9e4c..7d5b5249a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Response message for listing assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListAssetsResponse} */ -public final class ListAssetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAssetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.ListAssetsResponse) ListAssetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAssetsResponse.newBuilder() to construct. private ListAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAssetsResponse() { listAssetsResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListAssetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAssetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListAssetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,46 +72,56 @@ private ListAssetsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - listAssetsResults_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - listAssetsResults_.add( - input.readMessage(com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + listAssetsResults_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse + .ListAssetsResult>(); + mutable_bitField0_ |= 0x00000001; + } + listAssetsResults_.add( + input.readMessage( + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + .parser(), + extensionRegistry)); + break; } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 32: { + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - totalSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + case 32: + { + totalSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,8 +129,7 @@ private ListAssetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { listAssetsResults_ = java.util.Collections.unmodifiableList(listAssetsResults_); @@ -112,42 +138,54 @@ private ListAssetsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.class, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.class, + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.Builder.class); } - public interface ListAssetsResultOrBuilder extends + public interface ListAssetsResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1beta1.Asset asset = 1; + * * @return Whether the asset field is set. */ boolean hasAsset(); /** + * + * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1beta1.Asset asset = 1; + * * @return The asset. */ com.google.cloud.securitycenter.v1beta1.Asset getAsset(); /** + * + * *
      * Asset matching the search request.
      * 
@@ -157,56 +195,68 @@ public interface ListAssetsResultOrBuilder extends com.google.cloud.securitycenter.v1beta1.AssetOrBuilder getAssetOrBuilder(); /** + * + * *
      * State of the asset.
      * 
* - * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; + * + * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
      * State of the asset.
      * 
* - * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; + * + * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; + * + * * @return The state. */ com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State getState(); } /** + * + * *
    * Result containing the Asset and its State.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult} */ - public static final class ListAssetsResult extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ListAssetsResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) ListAssetsResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAssetsResult.newBuilder() to construct. private ListAssetsResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAssetsResult() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAssetsResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListAssetsResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -225,32 +275,36 @@ private ListAssetsResult( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1beta1.Asset.Builder subBuilder = null; - if (asset_ != null) { - subBuilder = asset_.toBuilder(); + case 10: + { + com.google.cloud.securitycenter.v1beta1.Asset.Builder subBuilder = null; + if (asset_ != null) { + subBuilder = asset_.toBuilder(); + } + asset_ = + input.readMessage( + com.google.cloud.securitycenter.v1beta1.Asset.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(asset_); + asset_ = subBuilder.buildPartial(); + } + + break; } - asset_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.Asset.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(asset_); - asset_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); + case 16: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + state_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -258,27 +312,32 @@ private ListAssetsResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.class, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.class, + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder + .class); } /** + * + * *
      * State of the asset.
      * When querying across two points in time this describes
@@ -287,11 +346,13 @@ private ListAssetsResult(
      * be: UNUSED
      * 
* - * Protobuf enum {@code google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State} + * Protobuf enum {@code + * google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unspecified state.
        * 
@@ -300,6 +361,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
        * Request did not specify use of this field in the result.
        * 
@@ -308,6 +371,8 @@ public enum State */ UNUSED(1), /** + * + * *
        * Asset was added between the points in time.
        * 
@@ -316,6 +381,8 @@ public enum State */ ADDED(2), /** + * + * *
        * Asset was removed between the points in time.
        * 
@@ -324,6 +391,8 @@ public enum State */ REMOVED(3), /** + * + * *
        * Asset was active at both point(s) in time.
        * 
@@ -335,6 +404,8 @@ public enum State ; /** + * + * *
        * Unspecified state.
        * 
@@ -343,6 +414,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Request did not specify use of this field in the result.
        * 
@@ -351,6 +424,8 @@ public enum State */ public static final int UNUSED_VALUE = 1; /** + * + * *
        * Asset was added between the points in time.
        * 
@@ -359,6 +434,8 @@ public enum State */ public static final int ADDED_VALUE = 2; /** + * + * *
        * Asset was removed between the points in time.
        * 
@@ -367,6 +444,8 @@ public enum State */ public static final int REMOVED_VALUE = 3; /** + * + * *
        * Asset was active at both point(s) in time.
        * 
@@ -375,7 +454,6 @@ public enum State */ public static final int ACTIVE_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -400,51 +478,56 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return UNUSED; - case 2: return ADDED; - case 3: return REMOVED; - case 4: return ACTIVE; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return UNUSED; + case 2: + return ADDED; + case 3: + return REMOVED; + case 4: + return ACTIVE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + .getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -464,11 +547,14 @@ private State(int value) { public static final int ASSET_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1beta1.Asset asset_; /** + * + * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1beta1.Asset asset = 1; + * * @return Whether the asset field is set. */ @java.lang.Override @@ -476,18 +562,25 @@ public boolean hasAsset() { return asset_ != null; } /** + * + * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1beta1.Asset asset = 1; + * * @return The asset. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.Asset getAsset() { - return asset_ == null ? com.google.cloud.securitycenter.v1beta1.Asset.getDefaultInstance() : asset_; + return asset_ == null + ? com.google.cloud.securitycenter.v1beta1.Asset.getDefaultInstance() + : asset_; } /** + * + * *
      * Asset matching the search request.
      * 
@@ -502,31 +595,50 @@ public com.google.cloud.securitycenter.v1beta1.AssetOrBuilder getAssetOrBuilder( public static final int STATE_FIELD_NUMBER = 2; private int state_; /** + * + * *
      * State of the asset.
      * 
* - * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; + * + * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * State of the asset.
      * 
* - * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; + * + * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State getState() { + @java.lang.Override + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State + getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State result = com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State.valueOf(state_); - return result == null ? com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State result = + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State.valueOf( + state_); + return result == null + ? com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State + .UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -538,12 +650,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (asset_ != null) { output.writeMessage(1, getAsset()); } - if (state_ != com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State + .STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, state_); } unknownFields.writeTo(output); @@ -556,12 +670,13 @@ public int getSerializedSize() { size = 0; if (asset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAsset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAsset()); } - if (state_ != com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); + if (state_ + != com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State + .STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -571,17 +686,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult)) { + if (!(obj + instanceof com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult other = (com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) obj; + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult other = + (com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) obj; if (hasAsset() != other.hasAsset()) return false; if (hasAsset()) { - if (!getAsset() - .equals(other.getAsset())) return false; + if (!getAsset().equals(other.getAsset())) return false; } if (state_ != other.state_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -606,88 +722,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -697,44 +826,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Result containing the Asset and its State.
      * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.class, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.class, + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder + .class); } - // Construct using com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -750,19 +885,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.getDefaultInstance(); + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult build() { - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult result = buildPartial(); + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -770,8 +908,10 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResu } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult buildPartial() { - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult result = new com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult(this); + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + buildPartial() { + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult result = + new com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult(this); if (assetBuilder_ == null) { result.asset_ = asset_; } else { @@ -786,46 +926,55 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult)other); + if (other + instanceof + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) { + return mergeFrom( + (com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult other) { - if (other == com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult other) { + if (other + == com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + .getDefaultInstance()) return this; if (other.hasAsset()) { mergeAsset(other.getAsset()); } @@ -847,11 +996,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parsedMessage = null; + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -863,34 +1015,47 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1beta1.Asset asset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Asset, com.google.cloud.securitycenter.v1beta1.Asset.Builder, com.google.cloud.securitycenter.v1beta1.AssetOrBuilder> assetBuilder_; + com.google.cloud.securitycenter.v1beta1.Asset, + com.google.cloud.securitycenter.v1beta1.Asset.Builder, + com.google.cloud.securitycenter.v1beta1.AssetOrBuilder> + assetBuilder_; /** + * + * *
        * Asset matching the search request.
        * 
* * .google.cloud.securitycenter.v1beta1.Asset asset = 1; + * * @return Whether the asset field is set. */ public boolean hasAsset() { return assetBuilder_ != null || asset_ != null; } /** + * + * *
        * Asset matching the search request.
        * 
* * .google.cloud.securitycenter.v1beta1.Asset asset = 1; + * * @return The asset. */ public com.google.cloud.securitycenter.v1beta1.Asset getAsset() { if (assetBuilder_ == null) { - return asset_ == null ? com.google.cloud.securitycenter.v1beta1.Asset.getDefaultInstance() : asset_; + return asset_ == null + ? com.google.cloud.securitycenter.v1beta1.Asset.getDefaultInstance() + : asset_; } else { return assetBuilder_.getMessage(); } } /** + * + * *
        * Asset matching the search request.
        * 
@@ -911,6 +1076,8 @@ public Builder setAsset(com.google.cloud.securitycenter.v1beta1.Asset value) { return this; } /** + * + * *
        * Asset matching the search request.
        * 
@@ -929,6 +1096,8 @@ public Builder setAsset( return this; } /** + * + * *
        * Asset matching the search request.
        * 
@@ -939,7 +1108,9 @@ public Builder mergeAsset(com.google.cloud.securitycenter.v1beta1.Asset value) { if (assetBuilder_ == null) { if (asset_ != null) { asset_ = - com.google.cloud.securitycenter.v1beta1.Asset.newBuilder(asset_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1beta1.Asset.newBuilder(asset_) + .mergeFrom(value) + .buildPartial(); } else { asset_ = value; } @@ -951,6 +1122,8 @@ public Builder mergeAsset(com.google.cloud.securitycenter.v1beta1.Asset value) { return this; } /** + * + * *
        * Asset matching the search request.
        * 
@@ -969,6 +1142,8 @@ public Builder clearAsset() { return this; } /** + * + * *
        * Asset matching the search request.
        * 
@@ -976,11 +1151,13 @@ public Builder clearAsset() { * .google.cloud.securitycenter.v1beta1.Asset asset = 1; */ public com.google.cloud.securitycenter.v1beta1.Asset.Builder getAssetBuilder() { - + onChanged(); return getAssetFieldBuilder().getBuilder(); } /** + * + * *
        * Asset matching the search request.
        * 
@@ -991,11 +1168,14 @@ public com.google.cloud.securitycenter.v1beta1.AssetOrBuilder getAssetOrBuilder( if (assetBuilder_ != null) { return assetBuilder_.getMessageOrBuilder(); } else { - return asset_ == null ? - com.google.cloud.securitycenter.v1beta1.Asset.getDefaultInstance() : asset_; + return asset_ == null + ? com.google.cloud.securitycenter.v1beta1.Asset.getDefaultInstance() + : asset_; } } /** + * + * *
        * Asset matching the search request.
        * 
@@ -1003,14 +1183,17 @@ public com.google.cloud.securitycenter.v1beta1.AssetOrBuilder getAssetOrBuilder( * .google.cloud.securitycenter.v1beta1.Asset asset = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Asset, com.google.cloud.securitycenter.v1beta1.Asset.Builder, com.google.cloud.securitycenter.v1beta1.AssetOrBuilder> + com.google.cloud.securitycenter.v1beta1.Asset, + com.google.cloud.securitycenter.v1beta1.Asset.Builder, + com.google.cloud.securitycenter.v1beta1.AssetOrBuilder> getAssetFieldBuilder() { if (assetBuilder_ == null) { - assetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Asset, com.google.cloud.securitycenter.v1beta1.Asset.Builder, com.google.cloud.securitycenter.v1beta1.AssetOrBuilder>( - getAsset(), - getParentForChildren(), - isClean()); + assetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.Asset, + com.google.cloud.securitycenter.v1beta1.Asset.Builder, + com.google.cloud.securitycenter.v1beta1.AssetOrBuilder>( + getAsset(), getParentForChildren(), isClean()); asset_ = null; } return assetBuilder_; @@ -1018,77 +1201,111 @@ public com.google.cloud.securitycenter.v1beta1.AssetOrBuilder getAssetOrBuilder( private int state_ = 0; /** + * + * *
        * State of the asset.
        * 
* - * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; + * + * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
        * State of the asset.
        * 
* - * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; + * + * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
        * State of the asset.
        * 
* - * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; + * + * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; + * + * * @return The state. */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State getState() { + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State + getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State result = com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State.valueOf(state_); - return result == null ? com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State result = + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State + .valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State + .UNRECOGNIZED + : result; } /** + * + * *
        * State of the asset.
        * 
* - * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; + * + * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; + * + * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State value) { + public Builder setState( + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * State of the asset.
        * 
* - * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; + * + * .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.State state = 2; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1101,30 +1318,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) - private static final com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult(); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult getDefaultInstance() { + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1136,80 +1356,109 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int LIST_ASSETS_RESULTS_FIELD_NUMBER = 1; - private java.util.List listAssetsResults_; + private java.util.List< + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult> + listAssetsResults_; /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ @java.lang.Override - public java.util.List getListAssetsResultsList() { + public java.util.List + getListAssetsResultsList() { return listAssetsResults_; } /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder> getListAssetsResultsOrBuilderList() { return listAssetsResults_; } /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ @java.lang.Override public int getListAssetsResultsCount() { return listAssetsResults_.size(); } /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult getListAssetsResults(int index) { + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + getListAssetsResults(int index) { return listAssetsResults_.get(index); } /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder + getListAssetsResultsOrBuilder(int index) { return listAssetsResults_.get(index); } public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -1217,11 +1466,14 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ @java.lang.Override @@ -1229,6 +1481,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used for executing the list request.
    * 
@@ -1243,12 +1497,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ @java.lang.Override @@ -1257,30 +1514,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1291,11 +1548,14 @@ public java.lang.String getNextPageToken() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_; /** + * + * *
    * The total number of assets matching the query.
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -1304,6 +1564,7 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1315,8 +1576,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < listAssetsResults_.size(); i++) { output.writeMessage(1, listAssetsResults_.get(i)); } @@ -1339,19 +1599,17 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < listAssetsResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, listAssetsResults_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, listAssetsResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1361,24 +1619,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.ListAssetsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse other = (com.google.cloud.securitycenter.v1beta1.ListAssetsResponse) obj; + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse other = + (com.google.cloud.securitycenter.v1beta1.ListAssetsResponse) obj; - if (!getListAssetsResultsList() - .equals(other.getListAssetsResultsList())) return false; + if (!getListAssetsResultsList().equals(other.getListAssetsResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (getTotalSize() - != other.getTotalSize()) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1408,117 +1663,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.ListAssetsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for listing assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListAssetsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.ListAssetsResponse) com.google.cloud.securitycenter.v1beta1.ListAssetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.class, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.class, + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.newBuilder() @@ -1526,17 +1791,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getListAssetsResultsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1560,9 +1825,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_descriptor; } @java.lang.Override @@ -1581,7 +1846,8 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse buildPartial() { - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse result = new com.google.cloud.securitycenter.v1beta1.ListAssetsResponse(this); + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse result = + new com.google.cloud.securitycenter.v1beta1.ListAssetsResponse(this); int from_bitField0_ = bitField0_; if (listAssetsResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1607,38 +1873,39 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.ListAssetsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListAssetsResponse)other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListAssetsResponse) other); } else { super.mergeFrom(other); return this; @@ -1646,7 +1913,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.ListAssetsResponse other) { - if (other == com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.getDefaultInstance()) + return this; if (listAssetsResultsBuilder_ == null) { if (!other.listAssetsResults_.isEmpty()) { if (listAssetsResults_.isEmpty()) { @@ -1665,9 +1933,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.ListAssetsRespo listAssetsResultsBuilder_ = null; listAssetsResults_ = other.listAssetsResults_; bitField0_ = (bitField0_ & ~0x00000001); - listAssetsResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getListAssetsResultsFieldBuilder() : null; + listAssetsResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getListAssetsResultsFieldBuilder() + : null; } else { listAssetsResultsBuilder_.addAllMessages(other.listAssetsResults_); } @@ -1702,7 +1971,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.ListAssetsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.ListAssetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1711,28 +1981,43 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List listAssetsResults_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult> + listAssetsResults_ = java.util.Collections.emptyList(); + private void ensureListAssetsResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - listAssetsResults_ = new java.util.ArrayList(listAssetsResults_); + listAssetsResults_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult>( + listAssetsResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder> listAssetsResultsBuilder_; + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult, + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder, + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder> + listAssetsResultsBuilder_; /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public java.util.List getListAssetsResultsList() { + public java.util.List< + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult> + getListAssetsResultsList() { if (listAssetsResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(listAssetsResults_); } else { @@ -1740,11 +2025,15 @@ public java.util.List * Assets matching the list request. *
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public int getListAssetsResultsCount() { if (listAssetsResultsBuilder_ == null) { @@ -1754,13 +2043,18 @@ public int getListAssetsResultsCount() { } } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult getListAssetsResults(int index) { + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + getListAssetsResults(int index) { if (listAssetsResultsBuilder_ == null) { return listAssetsResults_.get(index); } else { @@ -1768,14 +2062,19 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResu } } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder setListAssetsResults( - int index, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult value) { + int index, + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult value) { if (listAssetsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1789,14 +2088,20 @@ public Builder setListAssetsResults( return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder setListAssetsResults( - int index, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder builderForValue) { + int index, + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder + builderForValue) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); listAssetsResults_.set(index, builderForValue.build()); @@ -1807,13 +2112,18 @@ public Builder setListAssetsResults( return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public Builder addListAssetsResults(com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult value) { + public Builder addListAssetsResults( + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult value) { if (listAssetsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1827,14 +2137,19 @@ public Builder addListAssetsResults(com.google.cloud.securitycenter.v1beta1.List return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder addListAssetsResults( - int index, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult value) { + int index, + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult value) { if (listAssetsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1848,14 +2163,19 @@ public Builder addListAssetsResults( return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder addListAssetsResults( - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder builderForValue) { + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder + builderForValue) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); listAssetsResults_.add(builderForValue.build()); @@ -1866,14 +2186,20 @@ public Builder addListAssetsResults( return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder addListAssetsResults( - int index, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder builderForValue) { + int index, + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder + builderForValue) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); listAssetsResults_.add(index, builderForValue.build()); @@ -1884,18 +2210,24 @@ public Builder addListAssetsResults( return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder addAllListAssetsResults( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult> + values) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, listAssetsResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listAssetsResults_); onChanged(); } else { listAssetsResultsBuilder_.addAllMessages(values); @@ -1903,11 +2235,15 @@ public Builder addAllListAssetsResults( return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder clearListAssetsResults() { if (listAssetsResultsBuilder_ == null) { @@ -1920,11 +2256,15 @@ public Builder clearListAssetsResults() { return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder removeListAssetsResults(int index) { if (listAssetsResultsBuilder_ == null) { @@ -1937,39 +2277,55 @@ public Builder removeListAssetsResults(int index) { return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder getListAssetsResultsBuilder( - int index) { + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder + getListAssetsResultsBuilder(int index) { return getListAssetsResultsFieldBuilder().getBuilder(index); } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder + getListAssetsResultsOrBuilder(int index) { if (listAssetsResultsBuilder_ == null) { - return listAssetsResults_.get(index); } else { + return listAssetsResults_.get(index); + } else { return listAssetsResultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public java.util.List - getListAssetsResultsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse + .ListAssetsResultOrBuilder> + getListAssetsResultsOrBuilderList() { if (listAssetsResultsBuilder_ != null) { return listAssetsResultsBuilder_.getMessageOrBuilderList(); } else { @@ -1977,45 +2333,71 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResu } } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder addListAssetsResultsBuilder() { - return getListAssetsResultsFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.getDefaultInstance()); + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder + addListAssetsResultsBuilder() { + return getListAssetsResultsFieldBuilder() + .addBuilder( + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + .getDefaultInstance()); } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder addListAssetsResultsBuilder( - int index) { - return getListAssetsResultsFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.getDefaultInstance()); + public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder + addListAssetsResultsBuilder(int index) { + return getListAssetsResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult + .getDefaultInstance()); } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public java.util.List - getListAssetsResultsBuilderList() { + public java.util.List< + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder> + getListAssetsResultsBuilderList() { return getListAssetsResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder> + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult, + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder, + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder> getListAssetsResultsFieldBuilder() { if (listAssetsResultsBuilder_ == null) { - listAssetsResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder, com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder>( + listAssetsResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult, + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult.Builder, + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse + .ListAssetsResultOrBuilder>( listAssetsResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2027,24 +2409,33 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResu private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -2055,6 +2446,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -2075,14 +2468,15 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -2093,6 +2487,8 @@ public Builder setReadTime( return this; } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -2103,7 +2499,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -2115,6 +2511,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -2133,6 +2531,8 @@ public Builder clearReadTime() { return this; } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -2140,11 +2540,13 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -2155,11 +2557,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -2167,14 +2570,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReadTime(), - getParentForChildren(), - isClean()); + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); readTime_ = null; } return readTimeBuilder_; @@ -2182,19 +2588,21 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -2203,21 +2611,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -2225,69 +2634,79 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_ ; + private int totalSize_; /** + * + * *
      * The total number of assets matching the query.
      * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -2295,37 +2714,43 @@ public int getTotalSize() { return totalSize_; } /** + * + * *
      * The total number of assets matching the query.
      * 
* * int32 total_size = 4; + * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** + * + * *
      * The total number of assets matching the query.
      * 
* * int32 total_size = 4; + * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2335,12 +2760,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.ListAssetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.ListAssetsResponse) private static final com.google.cloud.securitycenter.v1beta1.ListAssetsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.ListAssetsResponse(); } @@ -2349,16 +2774,16 @@ public static com.google.cloud.securitycenter.v1beta1.ListAssetsResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2373,6 +2798,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponseOrBuilder.java similarity index 56% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponseOrBuilder.java index 78e935bca..239cb51bd 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponseOrBuilder.java @@ -1,75 +1,122 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface ListAssetsResponseOrBuilder extends +public interface ListAssetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.ListAssetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - java.util.List + java.util.List getListAssetsResultsList(); /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult getListAssetsResults(int index); + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult getListAssetsResults( + int index); /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ int getListAssetsResultsCount(); /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder> getListAssetsResultsOrBuilderList(); /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder( - int index); + com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBuilder + getListAssetsResultsOrBuilder(int index); /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used for executing the list request.
    * 
@@ -79,33 +126,41 @@ com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResultOrBui com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * The total number of assets matching the query.
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ int getTotalSize(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java similarity index 77% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java index 385f90899..f2ae61083 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Request message for listing findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListFindingsRequest} */ -public final class ListFindingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.ListFindingsRequest) ListFindingsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingsRequest.newBuilder() to construct. private ListFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFindingsRequest() { parent_ = ""; filter_ = ""; @@ -28,16 +46,15 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,68 +73,76 @@ private ListFindingsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); + orderBy_ = s; + break; } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; } + case 42: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); + } + fieldMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 42: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (fieldMask_ != null) { - subBuilder = fieldMask_.toBuilder(); + pageToken_ = s; + break; } - fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fieldMask_); - fieldMask_ = subBuilder.buildPartial(); + case 56: + { + pageSize_ = input.readInt32(); + break; } - - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 56: { - - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,29 +150,33 @@ private ListFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.class, com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.class, + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To list across all
@@ -155,7 +184,10 @@ private ListFindingsRequest(
    * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -164,14 +196,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To list across all
@@ -179,17 +212,18 @@ public java.lang.String getParent() {
    * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -200,6 +234,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -222,6 +258,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -230,14 +267,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -260,16 +298,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -280,6 +317,8 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 3; private volatile java.lang.Object orderBy_; /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -292,6 +331,7 @@ public java.lang.String getFilter() {
    * 
* * string order_by = 3; + * * @return The orderBy. */ @java.lang.Override @@ -300,14 +340,15 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -320,16 +361,15 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 3; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -340,6 +380,8 @@ public java.lang.String getOrderBy() { public static final int READ_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp readTime_; /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -348,6 +390,7 @@ public java.lang.String getOrderBy() {
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -355,6 +398,8 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -363,6 +408,7 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ @java.lang.Override @@ -370,6 +416,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -387,12 +435,16 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int FIELD_MASK_FIELD_NUMBER = 5;
   private com.google.protobuf.FieldMask fieldMask_;
   /**
+   *
+   *
    * 
    * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -400,12 +452,16 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** + * + * *
    * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The fieldMask. */ @java.lang.Override @@ -413,12 +469,15 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** + * + * *
    * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { @@ -428,6 +487,8 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { public static final int PAGE_TOKEN_FIELD_NUMBER = 6; private volatile java.lang.Object pageToken_; /** + * + * *
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -435,6 +496,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
    * 
* * string page_token = 6; + * * @return The pageToken. */ @java.lang.Override @@ -443,14 +505,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -458,16 +521,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -478,12 +540,15 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 7; private int pageSize_; /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 7; + * * @return The pageSize. */ @java.lang.Override @@ -492,6 +557,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -503,8 +569,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -545,19 +610,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, orderBy_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getFieldMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFieldMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -567,33 +629,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.ListFindingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest other = (com.google.cloud.securitycenter.v1beta1.ListFindingsRequest) obj; + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest other = + (com.google.cloud.securitycenter.v1beta1.ListFindingsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - if (!getFieldMask() - .equals(other.getFieldMask())) return false; + if (!getFieldMask().equals(other.getFieldMask())) return false; } - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -629,117 +685,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.ListFindingsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for listing findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListFindingsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.ListFindingsRequest) com.google.cloud.securitycenter.v1beta1.ListFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.class, com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.class, + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.newBuilder() @@ -747,16 +813,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -786,9 +851,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_descriptor; } @java.lang.Override @@ -807,7 +872,8 @@ public com.google.cloud.securitycenter.v1beta1.ListFindingsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.ListFindingsRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.ListFindingsRequest result = new com.google.cloud.securitycenter.v1beta1.ListFindingsRequest(this); + com.google.cloud.securitycenter.v1beta1.ListFindingsRequest result = + new com.google.cloud.securitycenter.v1beta1.ListFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.orderBy_ = orderBy_; @@ -831,38 +897,39 @@ public com.google.cloud.securitycenter.v1beta1.ListFindingsRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.ListFindingsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListFindingsRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListFindingsRequest) other); } else { super.mergeFrom(other); return this; @@ -870,7 +937,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.ListFindingsRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1beta1.ListFindingsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -915,7 +983,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.ListFindingsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.ListFindingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -927,6 +996,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To list across all
@@ -934,14 +1005,16 @@ public Builder mergeFrom(
      * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -950,6 +1023,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To list across all
@@ -957,16 +1032,17 @@ public java.lang.String getParent() {
      * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -974,6 +1050,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To list across all
@@ -981,21 +1059,25 @@ public java.lang.String getParent() {
      * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To list across all
@@ -1003,16 +1085,21 @@ public Builder setParent(
      * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id]". To list across all
@@ -1020,17 +1107,19 @@ public Builder clearParent() {
      * organizations/{organization_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1038,6 +1127,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1060,13 +1151,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1075,6 +1166,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1097,15 +1190,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1113,6 +1205,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1135,20 +1229,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1171,15 +1267,18 @@ public Builder setFilter(
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1202,16 +1301,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1219,6 +1318,8 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1231,13 +1332,13 @@ public Builder setFilterBytes(
      * 
* * string order_by = 3; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1246,6 +1347,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1258,15 +1361,14 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1274,6 +1376,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1286,20 +1390,22 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1312,15 +1418,18 @@ public Builder setOrderBy(
      * 
* * string order_by = 3; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1333,16 +1442,16 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 3; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; @@ -1350,8 +1459,13 @@ public Builder setOrderByBytes( private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1360,12 +1474,15 @@ public Builder setOrderByBytes(
      * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1374,6 +1491,7 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1384,6 +1502,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1407,6 +1527,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1416,8 +1538,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 4;
      */
-    public Builder setReadTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1428,6 +1549,8 @@ public Builder setReadTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1441,7 +1564,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -1453,6 +1576,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1474,6 +1599,8 @@ public Builder clearReadTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1484,11 +1611,13 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-      
+
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1502,11 +1631,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1517,14 +1647,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(),
-                getParentForChildren(),
-                isClean());
+        readTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(), getParentForChildren(), isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -1532,26 +1665,37 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private com.google.protobuf.FieldMask fieldMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> fieldMaskBuilder_;
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
+        fieldMaskBuilder_;
     /**
+     *
+     *
      * 
      * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** + * + * *
      * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -1562,12 +1706,15 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** + * + * *
      * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { @@ -1583,15 +1730,17 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setFieldMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { fieldMask_ = builderForValue.build(); onChanged(); @@ -1602,18 +1751,21 @@ public Builder setFieldMask( return this; } /** + * + * *
      * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { if (fieldMask_ != null) { fieldMask_ = - com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); } else { fieldMask_ = value; } @@ -1625,12 +1777,15 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearFieldMask() { if (fieldMaskBuilder_ == null) { @@ -1644,51 +1799,62 @@ public Builder clearFieldMask() { return this; } /** + * + * *
      * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { - + onChanged(); return getFieldMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { if (fieldMaskBuilder_ != null) { return fieldMaskBuilder_.getMessageOrBuilder(); } else { - return fieldMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } } /** + * + * *
      * Optional. A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getFieldMaskFieldBuilder() { if (fieldMaskBuilder_ == null) { - fieldMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getFieldMask(), - getParentForChildren(), - isClean()); + fieldMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getFieldMask(), getParentForChildren(), isClean()); fieldMask_ = null; } return fieldMaskBuilder_; @@ -1696,6 +1862,8 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -1703,13 +1871,13 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * 
* * string page_token = 6; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1718,6 +1886,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -1725,15 +1895,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1741,6 +1910,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -1748,20 +1919,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -1769,15 +1942,18 @@ public Builder setPageToken(
      * 
* * string page_token = 6; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -1785,29 +1961,32 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; + * * @return The pageSize. */ @java.lang.Override @@ -1815,39 +1994,45 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1857,12 +2042,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.ListFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.ListFindingsRequest) private static final com.google.cloud.securitycenter.v1beta1.ListFindingsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.ListFindingsRequest(); } @@ -1871,16 +2056,16 @@ public static com.google.cloud.securitycenter.v1beta1.ListFindingsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1895,6 +2080,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.ListFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequestOrBuilder.java similarity index 83% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequestOrBuilder.java index 453408cef..66067ba54 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface ListFindingsRequestOrBuilder extends +public interface ListFindingsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.ListFindingsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To list across all
@@ -15,11 +33,16 @@ public interface ListFindingsRequestOrBuilder extends
    * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id]". To list across all
@@ -27,13 +50,17 @@ public interface ListFindingsRequestOrBuilder extends
    * organizations/{organization_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -56,10 +83,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -82,12 +112,14 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -100,10 +132,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string order_by = 3; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -116,12 +151,14 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string order_by = 3; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -130,10 +167,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -142,10 +182,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -158,36 +201,49 @@ public interface ListFindingsRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** + * + * *
    * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** + * + * *
    * Optional. A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* - * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask field_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); /** + * + * *
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -195,10 +251,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -206,18 +265,21 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 7; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java index e2fbcc2f9..bb8ab56a0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Response message for listing findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListFindingsResponse} */ -public final class ListFindingsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.ListFindingsResponse) ListFindingsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingsResponse.newBuilder() to construct. private ListFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFindingsResponse() { findings_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,46 +72,52 @@ private ListFindingsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findings_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - findings_.add( - input.readMessage(com.google.cloud.securitycenter.v1beta1.Finding.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + findings_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + findings_.add( + input.readMessage( + com.google.cloud.securitycenter.v1beta1.Finding.parser(), extensionRegistry)); + break; } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 32: { + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - totalSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + case 32: + { + totalSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,8 +125,7 @@ private ListFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { findings_ = java.util.Collections.unmodifiableList(findings_); @@ -112,22 +134,27 @@ private ListFindingsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.class, com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.class, + com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.Builder.class); } public static final int FINDINGS_FIELD_NUMBER = 1; private java.util.List findings_; /** + * + * *
    * Findings matching the list request.
    * 
@@ -139,6 +166,8 @@ public java.util.List getFindin return findings_; } /** + * + * *
    * Findings matching the list request.
    * 
@@ -146,11 +175,13 @@ public java.util.List getFindin * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFindingsOrBuilderList() { return findings_; } /** + * + * *
    * Findings matching the list request.
    * 
@@ -162,6 +193,8 @@ public int getFindingsCount() { return findings_.size(); } /** + * + * *
    * Findings matching the list request.
    * 
@@ -173,6 +206,8 @@ public com.google.cloud.securitycenter.v1beta1.Finding getFindings(int index) { return findings_.get(index); } /** + * + * *
    * Findings matching the list request.
    * 
@@ -180,19 +215,21 @@ public com.google.cloud.securitycenter.v1beta1.Finding getFindings(int index) { * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingsOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingsOrBuilder(int index) { return findings_.get(index); } public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -200,11 +237,14 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ @java.lang.Override @@ -212,6 +252,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used for executing the list request.
    * 
@@ -226,12 +268,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ @java.lang.Override @@ -240,30 +285,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -274,11 +319,14 @@ public java.lang.String getNextPageToken() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_; /** + * + * *
    * The total number of findings matching the query.
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -287,6 +335,7 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -298,8 +347,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < findings_.size(); i++) { output.writeMessage(1, findings_.get(i)); } @@ -322,19 +370,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < findings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, findings_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findings_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -344,24 +389,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.ListFindingsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.ListFindingsResponse other = (com.google.cloud.securitycenter.v1beta1.ListFindingsResponse) obj; + com.google.cloud.securitycenter.v1beta1.ListFindingsResponse other = + (com.google.cloud.securitycenter.v1beta1.ListFindingsResponse) obj; - if (!getFindingsList() - .equals(other.getFindingsList())) return false; + if (!getFindingsList().equals(other.getFindingsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (getTotalSize() - != other.getTotalSize()) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -391,117 +433,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.ListFindingsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.ListFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for listing findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListFindingsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.ListFindingsResponse) com.google.cloud.securitycenter.v1beta1.ListFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.class, com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.class, + com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.newBuilder() @@ -509,17 +561,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFindingsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -543,13 +595,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.getDefaultInstance(); } @@ -564,7 +617,8 @@ public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse buildPartial() { - com.google.cloud.securitycenter.v1beta1.ListFindingsResponse result = new com.google.cloud.securitycenter.v1beta1.ListFindingsResponse(this); + com.google.cloud.securitycenter.v1beta1.ListFindingsResponse result = + new com.google.cloud.securitycenter.v1beta1.ListFindingsResponse(this); int from_bitField0_ = bitField0_; if (findingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -590,38 +644,39 @@ public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.ListFindingsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListFindingsResponse)other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListFindingsResponse) other); } else { super.mergeFrom(other); return this; @@ -629,7 +684,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.ListFindingsResponse other) { - if (other == com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1beta1.ListFindingsResponse.getDefaultInstance()) + return this; if (findingsBuilder_ == null) { if (!other.findings_.isEmpty()) { if (findings_.isEmpty()) { @@ -648,9 +705,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.ListFindingsRes findingsBuilder_ = null; findings_ = other.findings_; bitField0_ = (bitField0_ & ~0x00000001); - findingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFindingsFieldBuilder() : null; + findingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFindingsFieldBuilder() + : null; } else { findingsBuilder_.addAllMessages(other.findings_); } @@ -685,7 +743,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.ListFindingsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.ListFindingsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -694,21 +753,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List findings_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFindingsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - findings_ = new java.util.ArrayList(findings_); + findings_ = + new java.util.ArrayList(findings_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> findingsBuilder_; + com.google.cloud.securitycenter.v1beta1.Finding, + com.google.cloud.securitycenter.v1beta1.Finding.Builder, + com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> + findingsBuilder_; /** + * + * *
      * Findings matching the list request.
      * 
@@ -723,6 +790,8 @@ public java.util.List getFindin } } /** + * + * *
      * Findings matching the list request.
      * 
@@ -737,6 +806,8 @@ public int getFindingsCount() { } } /** + * + * *
      * Findings matching the list request.
      * 
@@ -751,14 +822,15 @@ public com.google.cloud.securitycenter.v1beta1.Finding getFindings(int index) { } } /** + * + * *
      * Findings matching the list request.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ - public Builder setFindings( - int index, com.google.cloud.securitycenter.v1beta1.Finding value) { + public Builder setFindings(int index, com.google.cloud.securitycenter.v1beta1.Finding value) { if (findingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -772,6 +844,8 @@ public Builder setFindings( return this; } /** + * + * *
      * Findings matching the list request.
      * 
@@ -790,6 +864,8 @@ public Builder setFindings( return this; } /** + * + * *
      * Findings matching the list request.
      * 
@@ -810,14 +886,15 @@ public Builder addFindings(com.google.cloud.securitycenter.v1beta1.Finding value return this; } /** + * + * *
      * Findings matching the list request.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ - public Builder addFindings( - int index, com.google.cloud.securitycenter.v1beta1.Finding value) { + public Builder addFindings(int index, com.google.cloud.securitycenter.v1beta1.Finding value) { if (findingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -831,6 +908,8 @@ public Builder addFindings( return this; } /** + * + * *
      * Findings matching the list request.
      * 
@@ -849,6 +928,8 @@ public Builder addFindings( return this; } /** + * + * *
      * Findings matching the list request.
      * 
@@ -867,6 +948,8 @@ public Builder addFindings( return this; } /** + * + * *
      * Findings matching the list request.
      * 
@@ -877,8 +960,7 @@ public Builder addAllFindings( java.lang.Iterable values) { if (findingsBuilder_ == null) { ensureFindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, findings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findings_); onChanged(); } else { findingsBuilder_.addAllMessages(values); @@ -886,6 +968,8 @@ public Builder addAllFindings( return this; } /** + * + * *
      * Findings matching the list request.
      * 
@@ -903,6 +987,8 @@ public Builder clearFindings() { return this; } /** + * + * *
      * Findings matching the list request.
      * 
@@ -920,17 +1006,20 @@ public Builder removeFindings(int index) { return this; } /** + * + * *
      * Findings matching the list request.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ - public com.google.cloud.securitycenter.v1beta1.Finding.Builder getFindingsBuilder( - int index) { + public com.google.cloud.securitycenter.v1beta1.Finding.Builder getFindingsBuilder(int index) { return getFindingsFieldBuilder().getBuilder(index); } /** + * + * *
      * Findings matching the list request.
      * 
@@ -940,19 +1029,22 @@ public com.google.cloud.securitycenter.v1beta1.Finding.Builder getFindingsBuilde public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingsOrBuilder( int index) { if (findingsBuilder_ == null) { - return findings_.get(index); } else { + return findings_.get(index); + } else { return findingsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Findings matching the list request.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ - public java.util.List - getFindingsOrBuilderList() { + public java.util.List + getFindingsOrBuilderList() { if (findingsBuilder_ != null) { return findingsBuilder_.getMessageOrBuilderList(); } else { @@ -960,6 +1052,8 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingsOrBui } } /** + * + * *
      * Findings matching the list request.
      * 
@@ -967,42 +1061,48 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingsOrBui * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ public com.google.cloud.securitycenter.v1beta1.Finding.Builder addFindingsBuilder() { - return getFindingsFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance()); + return getFindingsFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance()); } /** + * + * *
      * Findings matching the list request.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ - public com.google.cloud.securitycenter.v1beta1.Finding.Builder addFindingsBuilder( - int index) { - return getFindingsFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance()); + public com.google.cloud.securitycenter.v1beta1.Finding.Builder addFindingsBuilder(int index) { + return getFindingsFieldBuilder() + .addBuilder(index, com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance()); } /** + * + * *
      * Findings matching the list request.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ - public java.util.List - getFindingsBuilderList() { + public java.util.List + getFindingsBuilderList() { return getFindingsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> + com.google.cloud.securitycenter.v1beta1.Finding, + com.google.cloud.securitycenter.v1beta1.Finding.Builder, + com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> getFindingsFieldBuilder() { if (findingsBuilder_ == null) { - findingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, com.google.cloud.securitycenter.v1beta1.FindingOrBuilder>( - findings_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + findingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.Finding, + com.google.cloud.securitycenter.v1beta1.Finding.Builder, + com.google.cloud.securitycenter.v1beta1.FindingOrBuilder>( + findings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); findings_ = null; } return findingsBuilder_; @@ -1010,24 +1110,33 @@ public com.google.cloud.securitycenter.v1beta1.Finding.Builder addFindingsBuilde private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1038,6 +1147,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -1058,14 +1169,15 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -1076,6 +1188,8 @@ public Builder setReadTime( return this; } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -1086,7 +1200,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -1098,6 +1212,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -1116,6 +1232,8 @@ public Builder clearReadTime() { return this; } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -1123,11 +1241,13 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -1138,11 +1258,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -1150,14 +1271,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReadTime(), - getParentForChildren(), - isClean()); + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); readTime_ = null; } return readTimeBuilder_; @@ -1165,19 +1289,21 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1186,21 +1312,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1208,69 +1335,79 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_ ; + private int totalSize_; /** + * + * *
      * The total number of findings matching the query.
      * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -1278,37 +1415,43 @@ public int getTotalSize() { return totalSize_; } /** + * + * *
      * The total number of findings matching the query.
      * 
* * int32 total_size = 4; + * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** + * + * *
      * The total number of findings matching the query.
      * 
* * int32 total_size = 4; + * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1318,12 +1461,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.ListFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.ListFindingsResponse) - private static final com.google.cloud.securitycenter.v1beta1.ListFindingsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1beta1.ListFindingsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.ListFindingsResponse(); } @@ -1332,16 +1476,16 @@ public static com.google.cloud.securitycenter.v1beta1.ListFindingsResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1356,6 +1500,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponseOrBuilder.java index baa1ed9f6..cf4c8e3c0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface ListFindingsResponseOrBuilder extends +public interface ListFindingsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.ListFindingsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Findings matching the list request.
    * 
* * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ - java.util.List - getFindingsList(); + java.util.List getFindingsList(); /** + * + * *
    * Findings matching the list request.
    * 
@@ -25,6 +44,8 @@ public interface ListFindingsResponseOrBuilder extends */ com.google.cloud.securitycenter.v1beta1.Finding getFindings(int index); /** + * + * *
    * Findings matching the list request.
    * 
@@ -33,43 +54,54 @@ public interface ListFindingsResponseOrBuilder extends */ int getFindingsCount(); /** + * + * *
    * Findings matching the list request.
    * 
* * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ - java.util.List + java.util.List getFindingsOrBuilderList(); /** + * + * *
    * Findings matching the list request.
    * 
* * repeated .google.cloud.securitycenter.v1beta1.Finding findings = 1; */ - com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingsOrBuilder( - int index); + com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingsOrBuilder(int index); /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used for executing the list request.
    * 
@@ -79,33 +111,41 @@ com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingsOrBuilder( com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * The total number of findings matching the query.
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ int getTotalSize(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java index f947e950a..61a7b27ad 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Request message for listing sources.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListSourcesRequest} */ -public final class ListSourcesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSourcesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.ListSourcesRequest) ListSourcesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSourcesRequest.newBuilder() to construct. private ListSourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSourcesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListSourcesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSourcesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListSourcesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListSourcesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 56: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 56: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListSourcesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.class, com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.class, + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -122,30 +148,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -156,6 +184,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** + * + * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -163,6 +193,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -171,14 +202,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -186,16 +218,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -206,12 +237,15 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 7; private int pageSize_; /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 7; + * * @return The pageSize. */ @java.lang.Override @@ -220,6 +254,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,8 +266,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -258,8 +292,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -269,19 +302,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.ListSourcesRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest other = (com.google.cloud.securitycenter.v1beta1.ListSourcesRequest) obj; + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest other = + (com.google.cloud.securitycenter.v1beta1.ListSourcesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -305,117 +336,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.ListSourcesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for listing sources.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListSourcesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.ListSourcesRequest) com.google.cloud.securitycenter.v1beta1.ListSourcesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.class, com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.class, + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.newBuilder() @@ -423,16 +464,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +486,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_descriptor; } @java.lang.Override @@ -467,7 +507,8 @@ public com.google.cloud.securitycenter.v1beta1.ListSourcesRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.ListSourcesRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.ListSourcesRequest result = new com.google.cloud.securitycenter.v1beta1.ListSourcesRequest(this); + com.google.cloud.securitycenter.v1beta1.ListSourcesRequest result = + new com.google.cloud.securitycenter.v1beta1.ListSourcesRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -479,38 +520,39 @@ public com.google.cloud.securitycenter.v1beta1.ListSourcesRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.ListSourcesRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListSourcesRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListSourcesRequest) other); } else { super.mergeFrom(other); return this; @@ -518,7 +560,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.ListSourcesRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1beta1.ListSourcesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -549,7 +592,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.ListSourcesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.ListSourcesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -561,19 +605,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -582,21 +630,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -604,57 +655,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -662,6 +726,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -669,13 +735,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -684,6 +750,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -691,15 +759,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -707,6 +774,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -714,20 +783,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -735,15 +806,18 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -751,29 +825,32 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; + * * @return The pageSize. */ @java.lang.Override @@ -781,39 +858,45 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -823,12 +906,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.ListSourcesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.ListSourcesRequest) private static final com.google.cloud.securitycenter.v1beta1.ListSourcesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.ListSourcesRequest(); } @@ -837,16 +920,16 @@ public static com.google.cloud.securitycenter.v1beta1.ListSourcesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSourcesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSourcesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSourcesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSourcesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -861,6 +944,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.ListSourcesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequestOrBuilder.java index 3b5abe2ff..2c7baf2a1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface ListSourcesRequestOrBuilder extends +public interface ListSourcesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.ListSourcesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -37,10 +64,13 @@ public interface ListSourcesRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -48,18 +78,21 @@ public interface ListSourcesRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 7; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java index d948303dd..1810d29f5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Response message for listing sources.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListSourcesResponse} */ -public final class ListSourcesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSourcesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.ListSourcesResponse) ListSourcesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSourcesResponse.newBuilder() to construct. private ListSourcesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSourcesResponse() { sources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListSourcesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSourcesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListSourcesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private ListSourcesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sources_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + sources_.add( + input.readMessage( + com.google.cloud.securitycenter.v1beta1.Source.parser(), extensionRegistry)); + break; } - sources_.add( - input.readMessage(com.google.cloud.securitycenter.v1beta1.Source.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private ListSourcesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { sources_ = java.util.Collections.unmodifiableList(sources_); @@ -94,22 +114,27 @@ private ListSourcesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.class, com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.class, + com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.Builder.class); } public static final int SOURCES_FIELD_NUMBER = 1; private java.util.List sources_; /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -121,6 +146,8 @@ public java.util.List getSources return sources_; } /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -128,11 +155,13 @@ public java.util.List getSources * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSourcesOrBuilderList() { return sources_; } /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -144,6 +173,8 @@ public int getSourcesCount() { return sources_.size(); } /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.securitycenter.v1beta1.Source getSources(int index) { return sources_.get(index); } /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -162,20 +195,22 @@ public com.google.cloud.securitycenter.v1beta1.Source getSources(int index) { * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuilder(int index) { return sources_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +219,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +251,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < sources_.size(); i++) { output.writeMessage(1, sources_.get(i)); } @@ -245,8 +280,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < sources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, sources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +293,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.ListSourcesResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.ListSourcesResponse other = (com.google.cloud.securitycenter.v1beta1.ListSourcesResponse) obj; + com.google.cloud.securitycenter.v1beta1.ListSourcesResponse other = + (com.google.cloud.securitycenter.v1beta1.ListSourcesResponse) obj; - if (!getSourcesList() - .equals(other.getSourcesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getSourcesList().equals(other.getSourcesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +326,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.ListSourcesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.ListSourcesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for listing sources.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.ListSourcesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.ListSourcesResponse) com.google.cloud.securitycenter.v1beta1.ListSourcesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.class, com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.class, + com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.newBuilder() @@ -411,17 +454,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSourcesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_descriptor; } @java.lang.Override @@ -458,7 +501,8 @@ public com.google.cloud.securitycenter.v1beta1.ListSourcesResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.ListSourcesResponse buildPartial() { - com.google.cloud.securitycenter.v1beta1.ListSourcesResponse result = new com.google.cloud.securitycenter.v1beta1.ListSourcesResponse(this); + com.google.cloud.securitycenter.v1beta1.ListSourcesResponse result = + new com.google.cloud.securitycenter.v1beta1.ListSourcesResponse(this); int from_bitField0_ = bitField0_; if (sourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +522,39 @@ public com.google.cloud.securitycenter.v1beta1.ListSourcesResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.ListSourcesResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListSourcesResponse)other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.ListSourcesResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +562,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.ListSourcesResponse other) { - if (other == com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1beta1.ListSourcesResponse.getDefaultInstance()) + return this; if (sourcesBuilder_ == null) { if (!other.sources_.isEmpty()) { if (sources_.isEmpty()) { @@ -536,9 +582,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.ListSourcesResp sourcesBuilder_ = null; sources_ = other.sources_; bitField0_ = (bitField0_ & ~0x00000001); - sourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSourcesFieldBuilder() : null; + sourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSourcesFieldBuilder() + : null; } else { sourcesBuilder_.addAllMessages(other.sources_); } @@ -567,7 +614,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.ListSourcesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.ListSourcesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +624,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List sources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - sources_ = new java.util.ArrayList(sources_); + sources_ = + new java.util.ArrayList(sources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> sourcesBuilder_; + com.google.cloud.securitycenter.v1beta1.Source, + com.google.cloud.securitycenter.v1beta1.Source.Builder, + com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> + sourcesBuilder_; /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -605,6 +661,8 @@ public java.util.List getSources } } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -619,6 +677,8 @@ public int getSourcesCount() { } } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -633,14 +693,15 @@ public com.google.cloud.securitycenter.v1beta1.Source getSources(int index) { } } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ - public Builder setSources( - int index, com.google.cloud.securitycenter.v1beta1.Source value) { + public Builder setSources(int index, com.google.cloud.securitycenter.v1beta1.Source value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +715,8 @@ public Builder setSources( return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -672,6 +735,8 @@ public Builder setSources( return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -692,14 +757,15 @@ public Builder addSources(com.google.cloud.securitycenter.v1beta1.Source value) return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ - public Builder addSources( - int index, com.google.cloud.securitycenter.v1beta1.Source value) { + public Builder addSources(int index, com.google.cloud.securitycenter.v1beta1.Source value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,6 +779,8 @@ public Builder addSources( return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -731,6 +799,8 @@ public Builder addSources( return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -749,6 +819,8 @@ public Builder addSources( return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -759,8 +831,7 @@ public Builder addAllSources( java.lang.Iterable values) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sources_); onChanged(); } else { sourcesBuilder_.addAllMessages(values); @@ -768,6 +839,8 @@ public Builder addAllSources( return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -785,6 +858,8 @@ public Builder clearSources() { return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -802,39 +877,44 @@ public Builder removeSources(int index) { return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ - public com.google.cloud.securitycenter.v1beta1.Source.Builder getSourcesBuilder( - int index) { + public com.google.cloud.securitycenter.v1beta1.Source.Builder getSourcesBuilder(int index) { return getSourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ - public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuilder(int index) { if (sourcesBuilder_ == null) { - return sources_.get(index); } else { + return sources_.get(index); + } else { return sourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ - public java.util.List - getSourcesOrBuilderList() { + public java.util.List + getSourcesOrBuilderList() { if (sourcesBuilder_ != null) { return sourcesBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +922,8 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuild } } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -849,42 +931,48 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuild * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ public com.google.cloud.securitycenter.v1beta1.Source.Builder addSourcesBuilder() { - return getSourcesFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance()); + return getSourcesFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance()); } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ - public com.google.cloud.securitycenter.v1beta1.Source.Builder addSourcesBuilder( - int index) { - return getSourcesFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance()); + public com.google.cloud.securitycenter.v1beta1.Source.Builder addSourcesBuilder(int index) { + return getSourcesFieldBuilder() + .addBuilder(index, com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance()); } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ - public java.util.List - getSourcesBuilderList() { + public java.util.List + getSourcesBuilderList() { return getSourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> + com.google.cloud.securitycenter.v1beta1.Source, + com.google.cloud.securitycenter.v1beta1.Source.Builder, + com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> getSourcesFieldBuilder() { if (sourcesBuilder_ == null) { - sourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, com.google.cloud.securitycenter.v1beta1.SourceOrBuilder>( - sources_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + sourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.Source, + com.google.cloud.securitycenter.v1beta1.Source.Builder, + com.google.cloud.securitycenter.v1beta1.SourceOrBuilder>( + sources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); sources_ = null; } return sourcesBuilder_; @@ -892,19 +980,21 @@ public com.google.cloud.securitycenter.v1beta1.Source.Builder addSourcesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1003,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1026,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1100,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.ListSourcesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.ListSourcesResponse) private static final com.google.cloud.securitycenter.v1beta1.ListSourcesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.ListSourcesResponse(); } @@ -1016,16 +1114,16 @@ public static com.google.cloud.securitycenter.v1beta1.ListSourcesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSourcesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSourcesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSourcesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1138,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.ListSourcesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponseOrBuilder.java index d8f15ed3e..c0ae559aa 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface ListSourcesResponseOrBuilder extends +public interface ListSourcesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.ListSourcesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Sources belonging to the requested parent.
    * 
* * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ - java.util.List - getSourcesList(); + java.util.List getSourcesList(); /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -25,6 +44,8 @@ public interface ListSourcesResponseOrBuilder extends */ com.google.cloud.securitycenter.v1beta1.Source getSources(int index); /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -33,43 +54,51 @@ public interface ListSourcesResponseOrBuilder extends */ int getSourcesCount(); /** + * + * *
    * Sources belonging to the requested parent.
    * 
* * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ - java.util.List + java.util.List getSourcesOrBuilderList(); /** + * + * *
    * Sources belonging to the requested parent.
    * 
* * repeated .google.cloud.securitycenter.v1beta1.Source sources = 1; */ - com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuilder( - int index); + com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourcesOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationName.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationName.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java index b44e75b90..121a29e4c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/organization_settings.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * User specified settings that are attached to the Security Command
  * Center organization.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1beta1.OrganizationSettings}
  */
-public final class OrganizationSettings extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class OrganizationSettings extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.OrganizationSettings)
     OrganizationSettingsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use OrganizationSettings.newBuilder() to construct.
   private OrganizationSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private OrganizationSettings() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new OrganizationSettings();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private OrganizationSettings(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,37 +71,45 @@ private OrganizationSettings(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            enableAssetDiscovery_ = input.readBool();
-            break;
-          }
-          case 26: {
-            com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder subBuilder = null;
-            if (assetDiscoveryConfig_ != null) {
-              subBuilder = assetDiscoveryConfig_.toBuilder();
+              name_ = s;
+              break;
             }
-            assetDiscoveryConfig_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(assetDiscoveryConfig_);
-              assetDiscoveryConfig_ = subBuilder.buildPartial();
+          case 16:
+            {
+              enableAssetDiscovery_ = input.readBool();
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig
+                      .Builder
+                  subBuilder = null;
+              if (assetDiscoveryConfig_ != null) {
+                subBuilder = assetDiscoveryConfig_.toBuilder();
+              }
+              assetDiscoveryConfig_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1beta1.OrganizationSettings
+                          .AssetDiscoveryConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(assetDiscoveryConfig_);
+                assetDiscoveryConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,106 +117,134 @@ private OrganizationSettings(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass
+        .internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass
+        .internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1beta1.OrganizationSettings.class, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder.class);
+            com.google.cloud.securitycenter.v1beta1.OrganizationSettings.class,
+            com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder.class);
   }
 
-  public interface AssetDiscoveryConfigOrBuilder extends
+  public interface AssetDiscoveryConfigOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @return A list containing the projectIds. */ - java.util.List - getProjectIdsList(); + java.util.List getProjectIdsList(); /** + * + * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @return The count of projectIds. */ int getProjectIdsCount(); /** + * + * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @param index The index of the element to return. * @return The projectIds at the given index. */ java.lang.String getProjectIds(int index); /** + * + * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @param index The index of the value to return. * @return The bytes of the projectIds at the given index. */ - com.google.protobuf.ByteString - getProjectIdsBytes(int index); + com.google.protobuf.ByteString getProjectIdsBytes(int index); /** + * + * *
      * The mode to use for filtering asset discovery.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return The enum numeric value on the wire for inclusionMode. */ int getInclusionModeValue(); /** + * + * *
      * The mode to use for filtering asset discovery.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return The inclusionMode. */ - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode(); + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode + getInclusionMode(); } /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* - * Protobuf type {@code google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig} + * Protobuf type {@code + * google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig} */ - public static final class AssetDiscoveryConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AssetDiscoveryConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) AssetDiscoveryConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AssetDiscoveryConfig.newBuilder() to construct. private AssetDiscoveryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AssetDiscoveryConfig() { projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; inclusionMode_ = 0; @@ -199,16 +252,15 @@ private AssetDiscoveryConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AssetDiscoveryConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AssetDiscoveryConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -228,28 +280,30 @@ private AssetDiscoveryConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - projectIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + projectIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + projectIds_.add(s); + break; } - projectIds_.add(s); - break; - } - case 16: { - int rawValue = input.readEnum(); + case 16: + { + int rawValue = input.readEnum(); - inclusionMode_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + inclusionMode_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -257,8 +311,7 @@ private AssetDiscoveryConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { projectIds_ = projectIds_.getUnmodifiableView(); @@ -267,20 +320,27 @@ private AssetDiscoveryConfig( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.class, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder.class); + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .class, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .Builder.class); } /** + * + * *
      * The mode of inclusion when running Asset Discovery.
      * Asset discovery can be limited by explicitly identifying projects to be
@@ -292,11 +352,13 @@ private AssetDiscoveryConfig(
      * discovery.
      * 
* - * Protobuf enum {@code google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode} + * Protobuf enum {@code + * google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode} */ - public enum InclusionMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unspecified. Setting the mode with this value will disable
        * inclusion/exclusion filtering for Asset Discovery.
@@ -306,6 +368,8 @@ public enum InclusionMode
        */
       INCLUSION_MODE_UNSPECIFIED(0),
       /**
+       *
+       *
        * 
        * Asset Discovery will capture only the resources within the projects
        * specified. All other resources will be ignored.
@@ -315,6 +379,8 @@ public enum InclusionMode
        */
       INCLUDE_ONLY(1),
       /**
+       *
+       *
        * 
        * Asset Discovery will ignore all resources under the projects specified.
        * All other resources will be retrieved.
@@ -327,6 +393,8 @@ public enum InclusionMode
       ;
 
       /**
+       *
+       *
        * 
        * Unspecified. Setting the mode with this value will disable
        * inclusion/exclusion filtering for Asset Discovery.
@@ -336,6 +404,8 @@ public enum InclusionMode
        */
       public static final int INCLUSION_MODE_UNSPECIFIED_VALUE = 0;
       /**
+       *
+       *
        * 
        * Asset Discovery will capture only the resources within the projects
        * specified. All other resources will be ignored.
@@ -345,6 +415,8 @@ public enum InclusionMode
        */
       public static final int INCLUDE_ONLY_VALUE = 1;
       /**
+       *
+       *
        * 
        * Asset Discovery will ignore all resources under the projects specified.
        * All other resources will be retrieved.
@@ -354,7 +426,6 @@ public enum InclusionMode
        */
       public static final int EXCLUDE_VALUE = 2;
 
-
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -379,40 +450,46 @@ public static InclusionMode valueOf(int value) {
        */
       public static InclusionMode forNumber(int value) {
         switch (value) {
-          case 0: return INCLUSION_MODE_UNSPECIFIED;
-          case 1: return INCLUDE_ONLY;
-          case 2: return EXCLUDE;
-          default: return null;
+          case 0:
+            return INCLUSION_MODE_UNSPECIFIED;
+          case 1:
+            return INCLUDE_ONLY;
+          case 2:
+            return EXCLUDE;
+          default:
+            return null;
         }
       }
 
-      public static com.google.protobuf.Internal.EnumLiteMap
-          internalGetValueMap() {
+      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
         return internalValueMap;
       }
-      private static final com.google.protobuf.Internal.EnumLiteMap<
-          InclusionMode> internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public InclusionMode findValueByNumber(int number) {
-                return InclusionMode.forNumber(number);
-              }
-            };
 
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor
-          getValueDescriptor() {
+      private static final com.google.protobuf.Internal.EnumLiteMap
+          internalValueMap =
+              new com.google.protobuf.Internal.EnumLiteMap() {
+                public InclusionMode findValueByNumber(int number) {
+                  return InclusionMode.forNumber(number);
+                }
+              };
+
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-      public final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptorForType() {
+
+      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
         return getDescriptor();
       }
-      public static final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptor() {
-        return com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.getDescriptor().getEnumTypes().get(0);
+
+      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+        return com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig
+            .getDescriptor()
+            .getEnumTypes()
+            .get(0);
       }
 
       private static final InclusionMode[] VALUES = values();
@@ -420,8 +497,7 @@ public InclusionMode findValueByNumber(int number) {
       public static InclusionMode valueOf(
           com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException(
-            "EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -441,34 +517,42 @@ private InclusionMode(int value) {
     public static final int PROJECT_IDS_FIELD_NUMBER = 1;
     private com.google.protobuf.LazyStringList projectIds_;
     /**
+     *
+     *
      * 
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @return A list containing the projectIds. */ - public com.google.protobuf.ProtocolStringList - getProjectIdsList() { + public com.google.protobuf.ProtocolStringList getProjectIdsList() { return projectIds_; } /** + * + * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @return The count of projectIds. */ public int getProjectIdsCount() { return projectIds_.size(); } /** + * + * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @param index The index of the element to return. * @return The projectIds at the given index. */ @@ -476,47 +560,71 @@ public java.lang.String getProjectIds(int index) { return projectIds_.get(index); } /** + * + * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @param index The index of the value to return. * @return The bytes of the projectIds at the given index. */ - public com.google.protobuf.ByteString - getProjectIdsBytes(int index) { + public com.google.protobuf.ByteString getProjectIdsBytes(int index) { return projectIds_.getByteString(index); } public static final int INCLUSION_MODE_FIELD_NUMBER = 2; private int inclusionMode_; /** + * + * *
      * The mode to use for filtering asset discovery.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return The enum numeric value on the wire for inclusionMode. */ - @java.lang.Override public int getInclusionModeValue() { + @java.lang.Override + public int getInclusionModeValue() { return inclusionMode_; } /** + * + * *
      * The mode to use for filtering asset discovery.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return The inclusionMode. */ - @java.lang.Override public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode() { + @java.lang.Override + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode + getInclusionMode() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode result = com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.valueOf(inclusionMode_); - return result == null ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode + result = + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.valueOf(inclusionMode_); + return result == null + ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -528,12 +636,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < projectIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectIds_.getRaw(i)); } - if (inclusionMode_ != com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.INCLUSION_MODE_UNSPECIFIED.getNumber()) { + if (inclusionMode_ + != com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.INCLUSION_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, inclusionMode_); } unknownFields.writeTo(output); @@ -553,9 +663,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getProjectIdsList().size(); } - if (inclusionMode_ != com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.INCLUSION_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, inclusionMode_); + if (inclusionMode_ + != com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.INCLUSION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, inclusionMode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -565,15 +677,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig)) { + if (!(obj + instanceof + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig other = (com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) obj; + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig other = + (com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) obj; - if (!getProjectIdsList() - .equals(other.getProjectIdsList())) return false; + if (!getProjectIdsList().equals(other.getProjectIdsList())) return false; if (inclusionMode_ != other.inclusionMode_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -597,88 +711,102 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -688,44 +816,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * Protobuf type {@code google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig} + * Protobuf type {@code + * google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.class, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder.class); + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .class, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .Builder.class); } - // Construct using com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -737,19 +873,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance(); + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig build() { - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig result = buildPartial(); + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + build() { + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -757,8 +897,11 @@ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscove } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig buildPartial() { - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig result = new com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig(this); + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + buildPartial() { + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig result = + new com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig( + this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { projectIds_ = projectIds_.getUnmodifiableView(); @@ -774,46 +917,56 @@ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscove public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig)other); + if (other + instanceof + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) { + return mergeFrom( + (com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig other) { - if (other == com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig other) { + if (other + == com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .getDefaultInstance()) return this; if (!other.projectIds_.isEmpty()) { if (projectIds_.isEmpty()) { projectIds_ = other.projectIds_; @@ -842,11 +995,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig parsedMessage = null; + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -855,44 +1011,55 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList projectIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureProjectIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { projectIds_ = new com.google.protobuf.LazyStringArrayList(projectIds_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @return A list containing the projectIds. */ - public com.google.protobuf.ProtocolStringList - getProjectIdsList() { + public com.google.protobuf.ProtocolStringList getProjectIdsList() { return projectIds_.getUnmodifiableView(); } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @return The count of projectIds. */ public int getProjectIdsCount() { return projectIds_.size(); } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @param index The index of the element to return. * @return The projectIds at the given index. */ @@ -900,80 +1067,90 @@ public java.lang.String getProjectIds(int index) { return projectIds_.get(index); } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @param index The index of the value to return. * @return The bytes of the projectIds at the given index. */ - public com.google.protobuf.ByteString - getProjectIdsBytes(int index) { + public com.google.protobuf.ByteString getProjectIdsBytes(int index) { return projectIds_.getByteString(index); } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @param index The index to set the value at. * @param value The projectIds to set. * @return This builder for chaining. */ - public Builder setProjectIds( - int index, java.lang.String value) { + public Builder setProjectIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProjectIdsIsMutable(); + throw new NullPointerException(); + } + ensureProjectIdsIsMutable(); projectIds_.set(index, value); onChanged(); return this; } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @param value The projectIds to add. * @return This builder for chaining. */ - public Builder addProjectIds( - java.lang.String value) { + public Builder addProjectIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProjectIdsIsMutable(); + throw new NullPointerException(); + } + ensureProjectIdsIsMutable(); projectIds_.add(value); onChanged(); return this; } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @param values The projectIds to add. * @return This builder for chaining. */ - public Builder addAllProjectIds( - java.lang.Iterable values) { + public Builder addAllProjectIds(java.lang.Iterable values) { ensureProjectIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, projectIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projectIds_); onChanged(); return this; } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @return This builder for chaining. */ public Builder clearProjectIds() { @@ -983,20 +1160,22 @@ public Builder clearProjectIds() { return this; } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @param value The bytes of the projectIds to add. * @return This builder for chaining. */ - public Builder addProjectIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addProjectIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureProjectIdsIsMutable(); projectIds_.add(value); onChanged(); @@ -1005,77 +1184,116 @@ public Builder addProjectIdsBytes( private int inclusionMode_ = 0; /** + * + * *
        * The mode to use for filtering asset discovery.
        * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return The enum numeric value on the wire for inclusionMode. */ - @java.lang.Override public int getInclusionModeValue() { + @java.lang.Override + public int getInclusionModeValue() { return inclusionMode_; } /** + * + * *
        * The mode to use for filtering asset discovery.
        * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @param value The enum numeric value on the wire for inclusionMode to set. * @return This builder for chaining. */ public Builder setInclusionModeValue(int value) { - + inclusionMode_ = value; onChanged(); return this; } /** + * + * *
        * The mode to use for filtering asset discovery.
        * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return The inclusionMode. */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode() { + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode + getInclusionMode() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode result = com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.valueOf(inclusionMode_); - return result == null ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode + result = + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.valueOf(inclusionMode_); + return result == null + ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.UNRECOGNIZED + : result; } /** + * + * *
        * The mode to use for filtering asset discovery.
        * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @param value The inclusionMode to set. * @return This builder for chaining. */ - public Builder setInclusionMode(com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode value) { + public Builder setInclusionMode( + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode + value) { if (value == null) { throw new NullPointerException(); } - + inclusionMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * The mode to use for filtering asset discovery.
        * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return This builder for chaining. */ public Builder clearInclusionMode() { - + inclusionMode_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1088,30 +1306,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) - private static final com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1beta1.OrganizationSettings + .AssetDiscoveryConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig(); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig getDefaultInstance() { + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssetDiscoveryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AssetDiscoveryConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetDiscoveryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AssetDiscoveryConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1123,15 +1345,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1140,6 +1364,7 @@ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscove
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -1148,14 +1373,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1164,16 +1390,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1184,6 +1409,8 @@ public java.lang.String getName() { public static final int ENABLE_ASSET_DISCOVERY_FIELD_NUMBER = 2; private boolean enableAssetDiscovery_; /** + * + * *
    * A flag that indicates if Asset Discovery should be enabled. If the flag is
    * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -1192,6 +1419,7 @@ public java.lang.String getName() {
    * 
* * bool enable_asset_discovery = 2; + * * @return The enableAssetDiscovery. */ @java.lang.Override @@ -1200,13 +1428,19 @@ public boolean getEnableAssetDiscovery() { } public static final int ASSET_DISCOVERY_CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig assetDiscoveryConfig_; + private com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + assetDiscoveryConfig_; /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * * @return Whether the assetDiscoveryConfig field is set. */ @java.lang.Override @@ -1214,30 +1448,45 @@ public boolean hasAssetDiscoveryConfig() { return assetDiscoveryConfig_ != null; } /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * * @return The assetDiscoveryConfig. */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig() { - return assetDiscoveryConfig_ == null ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance() : assetDiscoveryConfig_; + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + getAssetDiscoveryConfig() { + return assetDiscoveryConfig_ == null + ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .getDefaultInstance() + : assetDiscoveryConfig_; } /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder() { + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder + getAssetDiscoveryConfigOrBuilder() { return getAssetDiscoveryConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1249,8 +1498,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1273,12 +1521,11 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (enableAssetDiscovery_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enableAssetDiscovery_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableAssetDiscovery_); } if (assetDiscoveryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAssetDiscoveryConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAssetDiscoveryConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1288,21 +1535,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.OrganizationSettings)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.OrganizationSettings other = (com.google.cloud.securitycenter.v1beta1.OrganizationSettings) obj; + com.google.cloud.securitycenter.v1beta1.OrganizationSettings other = + (com.google.cloud.securitycenter.v1beta1.OrganizationSettings) obj; - if (!getName() - .equals(other.getName())) return false; - if (getEnableAssetDiscovery() - != other.getEnableAssetDiscovery()) return false; + if (!getName().equals(other.getName())) return false; + if (getEnableAssetDiscovery() != other.getEnableAssetDiscovery()) return false; if (hasAssetDiscoveryConfig() != other.hasAssetDiscoveryConfig()) return false; if (hasAssetDiscoveryConfig()) { - if (!getAssetDiscoveryConfig() - .equals(other.getAssetDiscoveryConfig())) return false; + if (!getAssetDiscoveryConfig().equals(other.getAssetDiscoveryConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1318,8 +1563,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ENABLE_ASSET_DISCOVERY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableAssetDiscovery()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAssetDiscovery()); if (hasAssetDiscoveryConfig()) { hash = (37 * hash) + ASSET_DISCOVERY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAssetDiscoveryConfig().hashCode(); @@ -1330,96 +1574,104 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.OrganizationSettings prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.OrganizationSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * User specified settings that are attached to the Security Command
    * Center organization.
@@ -1427,21 +1679,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1beta1.OrganizationSettings}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.OrganizationSettings)
       com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass
+          .internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass
+          .internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1beta1.OrganizationSettings.class, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder.class);
+              com.google.cloud.securitycenter.v1beta1.OrganizationSettings.class,
+              com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1beta1.OrganizationSettings.newBuilder()
@@ -1449,16 +1703,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1476,13 +1729,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOuterClass
+          .internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getDefaultInstanceForType() {
+    public com.google.cloud.securitycenter.v1beta1.OrganizationSettings
+        getDefaultInstanceForType() {
       return com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance();
     }
 
@@ -1497,7 +1751,8 @@ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1beta1.OrganizationSettings buildPartial() {
-      com.google.cloud.securitycenter.v1beta1.OrganizationSettings result = new com.google.cloud.securitycenter.v1beta1.OrganizationSettings(this);
+      com.google.cloud.securitycenter.v1beta1.OrganizationSettings result =
+          new com.google.cloud.securitycenter.v1beta1.OrganizationSettings(this);
       result.name_ = name_;
       result.enableAssetDiscovery_ = enableAssetDiscovery_;
       if (assetDiscoveryConfigBuilder_ == null) {
@@ -1513,38 +1768,39 @@ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings buildPartial
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1beta1.OrganizationSettings) {
-        return mergeFrom((com.google.cloud.securitycenter.v1beta1.OrganizationSettings)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1beta1.OrganizationSettings) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1552,7 +1808,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.OrganizationSettings other) {
-      if (other == com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1582,7 +1840,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.securitycenter.v1beta1.OrganizationSettings) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.securitycenter.v1beta1.OrganizationSettings) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1594,6 +1853,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1602,13 +1863,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1617,6 +1878,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1625,15 +1888,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1641,6 +1903,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1649,20 +1913,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1671,15 +1937,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1688,23 +1957,25 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private boolean enableAssetDiscovery_ ; + private boolean enableAssetDiscovery_; /** + * + * *
      * A flag that indicates if Asset Discovery should be enabled. If the flag is
      * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -1713,6 +1984,7 @@ public Builder setNameBytes(
      * 
* * bool enable_asset_discovery = 2; + * * @return The enableAssetDiscovery. */ @java.lang.Override @@ -1720,6 +1992,8 @@ public boolean getEnableAssetDiscovery() { return enableAssetDiscovery_; } /** + * + * *
      * A flag that indicates if Asset Discovery should be enabled. If the flag is
      * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -1728,16 +2002,19 @@ public boolean getEnableAssetDiscovery() {
      * 
* * bool enable_asset_discovery = 2; + * * @param value The enableAssetDiscovery to set. * @return This builder for chaining. */ public Builder setEnableAssetDiscovery(boolean value) { - + enableAssetDiscovery_ = value; onChanged(); return this; } /** + * + * *
      * A flag that indicates if Asset Discovery should be enabled. If the flag is
      * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -1746,52 +2023,78 @@ public Builder setEnableAssetDiscovery(boolean value) {
      * 
* * bool enable_asset_discovery = 2; + * * @return This builder for chaining. */ public Builder clearEnableAssetDiscovery() { - + enableAssetDiscovery_ = false; onChanged(); return this; } - private com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig assetDiscoveryConfig_; + private com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + assetDiscoveryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder> assetDiscoveryConfigBuilder_; + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .Builder, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings + .AssetDiscoveryConfigOrBuilder> + assetDiscoveryConfigBuilder_; /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * * @return Whether the assetDiscoveryConfig field is set. */ public boolean hasAssetDiscoveryConfig() { return assetDiscoveryConfigBuilder_ != null || assetDiscoveryConfig_ != null; } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * * @return The assetDiscoveryConfig. */ - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig() { + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + getAssetDiscoveryConfig() { if (assetDiscoveryConfigBuilder_ == null) { - return assetDiscoveryConfig_ == null ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance() : assetDiscoveryConfig_; + return assetDiscoveryConfig_ == null + ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .getDefaultInstance() + : assetDiscoveryConfig_; } else { return assetDiscoveryConfigBuilder_.getMessage(); } } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ - public Builder setAssetDiscoveryConfig(com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig value) { + public Builder setAssetDiscoveryConfig( + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig value) { if (assetDiscoveryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1805,14 +2108,19 @@ public Builder setAssetDiscoveryConfig(com.google.cloud.securitycenter.v1beta1.O return this; } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ public Builder setAssetDiscoveryConfig( - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder builderForValue) { + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder + builderForValue) { if (assetDiscoveryConfigBuilder_ == null) { assetDiscoveryConfig_ = builderForValue.build(); onChanged(); @@ -1823,17 +2131,25 @@ public Builder setAssetDiscoveryConfig( return this; } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ - public Builder mergeAssetDiscoveryConfig(com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig value) { + public Builder mergeAssetDiscoveryConfig( + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig value) { if (assetDiscoveryConfigBuilder_ == null) { if (assetDiscoveryConfig_ != null) { assetDiscoveryConfig_ = - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.newBuilder(assetDiscoveryConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .newBuilder(assetDiscoveryConfig_) + .mergeFrom(value) + .buildPartial(); } else { assetDiscoveryConfig_ = value; } @@ -1845,11 +2161,15 @@ public Builder mergeAssetDiscoveryConfig(com.google.cloud.securitycenter.v1beta1 return this; } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ public Builder clearAssetDiscoveryConfig() { if (assetDiscoveryConfigBuilder_ == null) { @@ -1863,55 +2183,79 @@ public Builder clearAssetDiscoveryConfig() { return this; } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder getAssetDiscoveryConfigBuilder() { - + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder + getAssetDiscoveryConfigBuilder() { + onChanged(); return getAssetDiscoveryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder() { + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings + .AssetDiscoveryConfigOrBuilder + getAssetDiscoveryConfigOrBuilder() { if (assetDiscoveryConfigBuilder_ != null) { return assetDiscoveryConfigBuilder_.getMessageOrBuilder(); } else { - return assetDiscoveryConfig_ == null ? - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance() : assetDiscoveryConfig_; + return assetDiscoveryConfig_ == null + ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .getDefaultInstance() + : assetDiscoveryConfig_; } } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder> + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .Builder, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings + .AssetDiscoveryConfigOrBuilder> getAssetDiscoveryConfigFieldBuilder() { if (assetDiscoveryConfigBuilder_ == null) { - assetDiscoveryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder>( - getAssetDiscoveryConfig(), - getParentForChildren(), - isClean()); + assetDiscoveryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + .Builder, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings + .AssetDiscoveryConfigOrBuilder>( + getAssetDiscoveryConfig(), getParentForChildren(), isClean()); assetDiscoveryConfig_ = null; } return assetDiscoveryConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1921,12 +2265,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.OrganizationSettings) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.OrganizationSettings) - private static final com.google.cloud.securitycenter.v1beta1.OrganizationSettings DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1beta1.OrganizationSettings + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.OrganizationSettings(); } @@ -1935,16 +2280,16 @@ public static com.google.cloud.securitycenter.v1beta1.OrganizationSettings getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrganizationSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrganizationSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrganizationSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OrganizationSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1959,6 +2304,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsName.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsName.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOrBuilder.java similarity index 59% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOrBuilder.java index 1fc1d7570..ceb1dcb6f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/organization_settings.proto package com.google.cloud.securitycenter.v1beta1; -public interface OrganizationSettingsOrBuilder extends +public interface OrganizationSettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.OrganizationSettings) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -16,10 +34,13 @@ public interface OrganizationSettingsOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -28,12 +49,14 @@ public interface OrganizationSettingsOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A flag that indicates if Asset Discovery should be enabled. If the flag is
    * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -42,34 +65,51 @@ public interface OrganizationSettingsOrBuilder extends
    * 
* * bool enable_asset_discovery = 2; + * * @return The enableAssetDiscovery. */ boolean getEnableAssetDiscovery(); /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * * @return Whether the assetDiscoveryConfig field is set. */ boolean hasAssetDiscoveryConfig(); /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * * @return The assetDiscoveryConfig. */ - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig(); + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig + getAssetDiscoveryConfig(); /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder(); + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder + getAssetDiscoveryConfigOrBuilder(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java new file mode 100644 index 000000000..134741d68 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettingsOuterClass.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1beta1/organization_settings.proto + +package com.google.cloud.securitycenter.v1beta1; + +public final class OrganizationSettingsOuterClass { + private OrganizationSettingsOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n?google/cloud/securitycenter/v1beta1/or" + + "ganization_settings.proto\022#google.cloud." + + "securitycenter.v1beta1\032\031google/api/resou" + + "rce.proto\032\034google/api/annotations.proto\"" + + "\224\004\n\024OrganizationSettings\022\014\n\004name\030\001 \001(\t\022\036" + + "\n\026enable_asset_discovery\030\002 \001(\010\022n\n\026asset_" + + "discovery_config\030\003 \001(\0132N.google.cloud.se" + + "curitycenter.v1beta1.OrganizationSetting" + + "s.AssetDiscoveryConfig\032\361\001\n\024AssetDiscover" + + "yConfig\022\023\n\013project_ids\030\001 \003(\t\022t\n\016inclusio" + + "n_mode\030\002 \001(\0162\\.google.cloud.securitycent" + + "er.v1beta1.OrganizationSettings.AssetDis" + + "coveryConfig.InclusionMode\"N\n\rInclusionM" + + "ode\022\036\n\032INCLUSION_MODE_UNSPECIFIED\020\000\022\020\n\014I" + + "NCLUDE_ONLY\020\001\022\013\n\007EXCLUDE\020\002:j\352Ag\n2securit" + + "ycenter.googleapis.com/OrganizationSetti" + + "ngs\0221organizations/{organization}/organi" + + "zationSettingsB~\n\'com.google.cloud.secur" + + "itycenter.v1beta1P\001ZQgoogle.golang.org/g" + + "enproto/googleapis/cloud/securitycenter/" + + "v1beta1;securitycenterb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor, + new java.lang.String[] { + "Name", "EnableAssetDiscovery", "AssetDiscoveryConfig", + }); + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor = + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor, + new java.lang.String[] { + "ProjectIds", "InclusionMode", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java index dba202e53..3a4b88495 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Request message for running asset discovery for an organization.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest} */ -public final class RunAssetDiscoveryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RunAssetDiscoveryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) RunAssetDiscoveryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RunAssetDiscoveryRequest.newBuilder() to construct. private RunAssetDiscoveryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RunAssetDiscoveryRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RunAssetDiscoveryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RunAssetDiscoveryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private RunAssetDiscoveryRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private RunAssetDiscoveryRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.class, com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.class, + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the organization to run asset discovery for. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Name of the organization to run asset discovery for. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest other = (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) obj; + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest other = + (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for running asset discovery for an organization.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.class, com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.class, + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.newBuilder() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,13 +379,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.getDefaultInstance(); } @@ -364,7 +401,8 @@ public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest build() @java.lang.Override public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest result = new com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest(this); + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest result = + new com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -374,46 +412,50 @@ public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest other) { + if (other + == com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -437,7 +479,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +493,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -470,21 +518,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -492,64 +543,77 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +623,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) - private static final com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest(); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunAssetDiscoveryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunAssetDiscoveryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunAssetDiscoveryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunAssetDiscoveryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +660,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java new file mode 100644 index 000000000..583ec4ac6 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1beta1; + +public interface RunAssetDiscoveryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the organization to run asset discovery for. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Name of the organization to run asset discovery for. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java index 7cb7a4321..19bffb91e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponse.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Response of asset discovery run
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse} */ -public final class RunAssetDiscoveryResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RunAssetDiscoveryResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) RunAssetDiscoveryResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RunAssetDiscoveryResponse.newBuilder() to construct. private RunAssetDiscoveryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RunAssetDiscoveryResponse() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RunAssetDiscoveryResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RunAssetDiscoveryResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,35 @@ private RunAssetDiscoveryResponse( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (duration_ != null) { - subBuilder = duration_.toBuilder(); - } - duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(duration_); - duration_ = subBuilder.buildPartial(); + state_ = rawValue; + break; } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,36 +106,41 @@ private RunAssetDiscoveryResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.class, com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.class, + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.Builder.class); } /** + * + * *
    * The state of an asset discovery run.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Asset discovery run state was unspecified.
      * 
@@ -124,6 +149,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Asset discovery run completed successfully.
      * 
@@ -132,6 +159,8 @@ public enum State */ COMPLETED(1), /** + * + * *
      * Asset discovery run was cancelled with tasks still pending, as another
      * run for the same organization was started with a higher priority.
@@ -141,6 +170,8 @@ public enum State
      */
     SUPERSEDED(2),
     /**
+     *
+     *
      * 
      * Asset discovery run was killed and terminated.
      * 
@@ -152,6 +183,8 @@ public enum State ; /** + * + * *
      * Asset discovery run state was unspecified.
      * 
@@ -160,6 +193,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Asset discovery run completed successfully.
      * 
@@ -168,6 +203,8 @@ public enum State */ public static final int COMPLETED_VALUE = 1; /** + * + * *
      * Asset discovery run was cancelled with tasks still pending, as another
      * run for the same organization was started with a higher priority.
@@ -177,6 +214,8 @@ public enum State
      */
     public static final int SUPERSEDED_VALUE = 2;
     /**
+     *
+     *
      * 
      * Asset discovery run was killed and terminated.
      * 
@@ -185,7 +224,6 @@ public enum State */ public static final int TERMINATED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -210,50 +248,53 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return COMPLETED; - case 2: return SUPERSEDED; - case 3: return TERMINATED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return COMPLETED; + case 2: + return SUPERSEDED; + case 3: + return TERMINATED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -273,38 +314,52 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** + * + * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State getState() { + @java.lang.Override + public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State result = com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.valueOf(state_); - return result == null ? com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State result = + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.UNRECOGNIZED + : result; } public static final int DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration duration_; /** + * + * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ @java.lang.Override @@ -312,11 +367,14 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ @java.lang.Override @@ -324,6 +382,8 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** + * + * *
    * The duration between asset discovery run start and end
    * 
@@ -336,6 +396,7 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,9 +408,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, state_); } if (duration_ != null) { @@ -364,13 +426,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -380,18 +442,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse other = (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) obj; + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse other = + (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) obj; if (state_ != other.state_) return false; if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) return false; + if (!getDuration().equals(other.getDuration())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -416,134 +478,145 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response of asset discovery run
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.class, com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.Builder.class); + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.class, + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.Builder.class); } - // Construct using com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -559,13 +632,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.getDefaultInstance(); } @@ -580,7 +654,8 @@ public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse build() @java.lang.Override public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse buildPartial() { - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse result = new com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse(this); + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse result = + new com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse(this); result.state_ = state_; if (durationBuilder_ == null) { result.duration_ = duration_; @@ -595,46 +670,50 @@ public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse)other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse other) { - if (other == com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse other) { + if (other + == com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.getDefaultInstance()) + return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -660,7 +739,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,73 +753,93 @@ public Builder mergeFrom( private int state_ = 0; /** + * + * *
      * The state of an asset discovery run.
      * 
* * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of an asset discovery run.
      * 
* * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The state of an asset discovery run.
      * 
* * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State result = com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.valueOf(state_); - return result == null ? com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State result = + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of an asset discovery run.
      * 
* * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State value) { + public Builder setState( + com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of an asset discovery run.
      * 
* * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -746,24 +847,33 @@ public Builder clearState() { private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + durationBuilder_; /** + * + * *
      * The duration between asset discovery run start and end
      * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ public boolean hasDuration() { return durationBuilder_ != null || duration_ != null; } /** + * + * *
      * The duration between asset discovery run start and end
      * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -774,6 +884,8 @@ public com.google.protobuf.Duration getDuration() { } } /** + * + * *
      * The duration between asset discovery run start and end
      * 
@@ -794,14 +906,15 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * The duration between asset discovery run start and end
      * 
* * .google.protobuf.Duration duration = 2; */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); onChanged(); @@ -812,6 +925,8 @@ public Builder setDuration( return this; } /** + * + * *
      * The duration between asset discovery run start and end
      * 
@@ -822,7 +937,7 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (duration_ != null) { duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); } else { duration_ = value; } @@ -834,6 +949,8 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * The duration between asset discovery run start and end
      * 
@@ -852,6 +969,8 @@ public Builder clearDuration() { return this; } /** + * + * *
      * The duration between asset discovery run start and end
      * 
@@ -859,11 +978,13 @@ public Builder clearDuration() { * .google.protobuf.Duration duration = 2; */ public com.google.protobuf.Duration.Builder getDurationBuilder() { - + onChanged(); return getDurationFieldBuilder().getBuilder(); } /** + * + * *
      * The duration between asset discovery run start and end
      * 
@@ -874,11 +995,12 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** + * + * *
      * The duration between asset discovery run start and end
      * 
@@ -886,21 +1008,24 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { * .google.protobuf.Duration duration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); + durationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -910,30 +1035,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) - private static final com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse(); } - public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse getDefaultInstance() { + public static com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunAssetDiscoveryResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunAssetDiscoveryResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunAssetDiscoveryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunAssetDiscoveryResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -945,9 +1072,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOrBuilder.java index fe5bcc887..ed1a0229a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOrBuilder.java @@ -1,50 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto package com.google.cloud.securitycenter.v1beta1; -public interface RunAssetDiscoveryResponseOrBuilder extends +public interface RunAssetDiscoveryResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1; + * * @return The state. */ com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State getState(); /** + * + * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** + * + * *
    * The duration between asset discovery run start and end
    * 
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOuterClass.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOuterClass.java new file mode 100644 index 000000000..50a06497f --- /dev/null +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryResponseOuterClass.java @@ -0,0 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto + +package com.google.cloud.securitycenter.v1beta1; + +public final class RunAssetDiscoveryResponseOuterClass { + private RunAssetDiscoveryResponseOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nFgoogle/cloud/securitycenter/v1beta1/ru" + + "n_asset_discovery_response.proto\022#google" + + ".cloud.securitycenter.v1beta1\032\036google/pr" + + "otobuf/duration.proto\032\034google/api/annota" + + "tions.proto\"\354\001\n\031RunAssetDiscoveryRespons" + + "e\022S\n\005state\030\001 \001(\0162D.google.cloud.security" + + "center.v1beta1.RunAssetDiscoveryResponse" + + ".State\022+\n\010duration\030\002 \001(\0132\031.google.protob" + + "uf.Duration\"M\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\r\n\tCOMPLETED\020\001\022\016\n\nSUPERSEDED\020\002\022\016\n\nTE" + + "RMINATED\020\003B~\n\'com.google.cloud.securityc" + + "enter.v1beta1P\001ZQgoogle.golang.org/genpr" + + "oto/googleapis/cloud/securitycenter/v1be" + + "ta1;securitycenterb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryResponse_descriptor, + new java.lang.String[] { + "State", "Duration", + }); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java index a80e72d8f..8a49c5a33 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/security_marks.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * User specified security marks that are attached to the parent Security
  * Command Center resource. Security marks are scoped within a Security Command
@@ -13,31 +30,31 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1beta1.SecurityMarks}
  */
-public final class SecurityMarks extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SecurityMarks extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.SecurityMarks)
     SecurityMarksOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SecurityMarks.newBuilder() to construct.
   private SecurityMarks(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SecurityMarks() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SecurityMarks();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SecurityMarks(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,32 +74,33 @@ private SecurityMarks(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              marks_ = com.google.protobuf.MapField.newMapField(
-                  MarksDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              name_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            marks__ = input.readMessage(
-                MarksDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            marks_.getMutableMap().put(
-                marks__.getKey(), marks__.getValue());
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                marks_ =
+                    com.google.protobuf.MapField.newMapField(MarksDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry marks__ =
+                  input.readMessage(
+                      MarksDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              marks_.getMutableMap().put(marks__.getKey(), marks__.getValue());
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -90,41 +108,44 @@ private SecurityMarks(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass
+        .internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 2:
         return internalGetMarks();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass
+        .internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1beta1.SecurityMarks.class, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder.class);
+            com.google.cloud.securitycenter.v1beta1.SecurityMarks.class,
+            com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -134,6 +155,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -142,14 +164,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -159,16 +182,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -177,24 +199,23 @@ public java.lang.String getName() { } public static final int MARKS_FIELD_NUMBER = 2; + private static final class MarksDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass + .internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> marks_; - private com.google.protobuf.MapField - internalGetMarks() { + + private com.google.protobuf.MapField marks_; + + private com.google.protobuf.MapField internalGetMarks() { if (marks_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MarksDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MarksDefaultEntryHolder.defaultEntry); } return marks_; } @@ -203,6 +224,8 @@ public int getMarksCount() { return internalGetMarks().getMap().size(); } /** + * + * *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -215,22 +238,22 @@ public int getMarksCount() {
    *
    * map<string, string> marks = 2;
    */
-
   @java.lang.Override
-  public boolean containsMarks(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsMarks(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetMarks().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getMarksMap()} instead.
-   */
+  /** Use {@link #getMarksMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMarks() {
     return getMarksMap();
   }
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -244,11 +267,12 @@ public java.util.Map getMarks() {
    * map<string, string> marks = 2;
    */
   @java.lang.Override
-
   public java.util.Map getMarksMap() {
     return internalGetMarks().getMap();
   }
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -262,16 +286,16 @@ public java.util.Map getMarksMap() {
    * map<string, string> marks = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getMarksOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMarks().getMap();
+  public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetMarks().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -285,12 +309,11 @@ public java.lang.String getMarksOrDefault(
    * map<string, string> marks = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getMarksOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMarks().getMap();
+  public java.lang.String getMarksOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetMarks().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -298,6 +321,7 @@ public java.lang.String getMarksOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -309,17 +333,12 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetMarks(),
-        MarksDefaultEntryHolder.defaultEntry,
-        2);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetMarks(), MarksDefaultEntryHolder.defaultEntry, 2);
     unknownFields.writeTo(output);
   }
 
@@ -332,15 +351,15 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetMarks().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      marks__ = MarksDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, marks__);
+    for (java.util.Map.Entry entry :
+        internalGetMarks().getMap().entrySet()) {
+      com.google.protobuf.MapEntry marks__ =
+          MarksDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, marks__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -350,17 +369,16 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.SecurityMarks)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1beta1.SecurityMarks other = (com.google.cloud.securitycenter.v1beta1.SecurityMarks) obj;
+    com.google.cloud.securitycenter.v1beta1.SecurityMarks other =
+        (com.google.cloud.securitycenter.v1beta1.SecurityMarks) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!internalGetMarks().equals(
-        other.internalGetMarks())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!internalGetMarks().equals(other.internalGetMarks())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -384,96 +402,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.SecurityMarks parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.SecurityMarks prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.securitycenter.v1beta1.SecurityMarks prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * User specified security marks that are attached to the parent Security
    * Command Center resource. Security marks are scoped within a Security Command
@@ -483,43 +509,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1beta1.SecurityMarks}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.SecurityMarks)
       com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass
+          .internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 2:
           return internalGetMarks();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 2:
           return internalGetMutableMarks();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass
+          .internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1beta1.SecurityMarks.class, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder.class);
+              com.google.cloud.securitycenter.v1beta1.SecurityMarks.class,
+              com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1beta1.SecurityMarks.newBuilder()
@@ -527,16 +553,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -547,9 +572,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1beta1.SecurityMarksOuterClass
+          .internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor;
     }
 
     @java.lang.Override
@@ -568,7 +593,8 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1beta1.SecurityMarks buildPartial() {
-      com.google.cloud.securitycenter.v1beta1.SecurityMarks result = new com.google.cloud.securitycenter.v1beta1.SecurityMarks(this);
+      com.google.cloud.securitycenter.v1beta1.SecurityMarks result =
+          new com.google.cloud.securitycenter.v1beta1.SecurityMarks(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.marks_ = internalGetMarks();
@@ -581,38 +607,39 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1beta1.SecurityMarks) {
-        return mergeFrom((com.google.cloud.securitycenter.v1beta1.SecurityMarks)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1beta1.SecurityMarks) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -620,13 +647,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.SecurityMarks other) {
-      if (other == com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance()) return this;
+      if (other == com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
       }
-      internalGetMutableMarks().mergeFrom(
-          other.internalGetMarks());
+      internalGetMutableMarks().mergeFrom(other.internalGetMarks());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -646,7 +673,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.securitycenter.v1beta1.SecurityMarks) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.securitycenter.v1beta1.SecurityMarks) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -655,10 +683,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -668,13 +699,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -683,6 +714,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -692,15 +725,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -708,6 +740,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -717,20 +751,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -740,15 +776,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -758,37 +797,36 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> marks_; - private com.google.protobuf.MapField - internalGetMarks() { + private com.google.protobuf.MapField marks_; + + private com.google.protobuf.MapField internalGetMarks() { if (marks_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MarksDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MarksDefaultEntryHolder.defaultEntry); } return marks_; } + private com.google.protobuf.MapField - internalGetMutableMarks() { - onChanged();; + internalGetMutableMarks() { + onChanged(); + ; if (marks_ == null) { - marks_ = com.google.protobuf.MapField.newMapField( - MarksDefaultEntryHolder.defaultEntry); + marks_ = com.google.protobuf.MapField.newMapField(MarksDefaultEntryHolder.defaultEntry); } if (!marks_.isMutable()) { marks_ = marks_.copy(); @@ -800,6 +838,8 @@ public int getMarksCount() { return internalGetMarks().getMap().size(); } /** + * + * *
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -812,22 +852,22 @@ public int getMarksCount() {
      *
      * map<string, string> marks = 2;
      */
-
     @java.lang.Override
-    public boolean containsMarks(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsMarks(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetMarks().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getMarksMap()} instead.
-     */
+    /** Use {@link #getMarksMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMarks() {
       return getMarksMap();
     }
     /**
+     *
+     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -841,11 +881,12 @@ public java.util.Map getMarks() {
      * map<string, string> marks = 2;
      */
     @java.lang.Override
-
     public java.util.Map getMarksMap() {
       return internalGetMarks().getMap();
     }
     /**
+     *
+     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -859,16 +900,16 @@ public java.util.Map getMarksMap() {
      * map<string, string> marks = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getMarksOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetMarks().getMap();
+    public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetMarks().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -882,12 +923,11 @@ public java.lang.String getMarksOrDefault(
      * map<string, string> marks = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getMarksOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetMarks().getMap();
+    public java.lang.String getMarksOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetMarks().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -895,11 +935,12 @@ public java.lang.String getMarksOrThrow(
     }
 
     public Builder clearMarks() {
-      internalGetMutableMarks().getMutableMap()
-          .clear();
+      internalGetMutableMarks().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -912,23 +953,21 @@ public Builder clearMarks() {
      *
      * map<string, string> marks = 2;
      */
-
-    public Builder removeMarks(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableMarks().getMutableMap()
-          .remove(key);
+    public Builder removeMarks(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableMarks().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableMarks() {
+    public java.util.Map getMutableMarks() {
       return internalGetMutableMarks().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -941,19 +980,20 @@ public Builder removeMarks(
      *
      * map<string, string> marks = 2;
      */
-    public Builder putMarks(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putMarks(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableMarks().getMutableMap()
-          .put(key, value);
+      internalGetMutableMarks().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -966,16 +1006,13 @@ public Builder putMarks(
      *
      * map<string, string> marks = 2;
      */
-
-    public Builder putAllMarks(
-        java.util.Map values) {
-      internalGetMutableMarks().getMutableMap()
-          .putAll(values);
+    public Builder putAllMarks(java.util.Map values) {
+      internalGetMutableMarks().getMutableMap().putAll(values);
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -985,12 +1022,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.SecurityMarks)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.SecurityMarks)
   private static final com.google.cloud.securitycenter.v1beta1.SecurityMarks DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.SecurityMarks();
   }
@@ -999,16 +1036,16 @@ public static com.google.cloud.securitycenter.v1beta1.SecurityMarks getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SecurityMarks parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SecurityMarks(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SecurityMarks parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SecurityMarks(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1023,6 +1060,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.securitycenter.v1beta1.SecurityMarks getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOrBuilder.java
similarity index 77%
rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOrBuilder.java
rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOrBuilder.java
index cff945db7..3e61920e9 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1beta1/security_marks.proto
 
 package com.google.cloud.securitycenter.v1beta1;
 
-public interface SecurityMarksOrBuilder extends
+public interface SecurityMarksOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.SecurityMarks)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -17,10 +35,13 @@ public interface SecurityMarksOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -30,12 +51,14 @@ public interface SecurityMarksOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -50,6 +73,8 @@ public interface SecurityMarksOrBuilder extends
    */
   int getMarksCount();
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -62,15 +87,13 @@ public interface SecurityMarksOrBuilder extends
    *
    * map<string, string> marks = 2;
    */
-  boolean containsMarks(
-      java.lang.String key);
-  /**
-   * Use {@link #getMarksMap()} instead.
-   */
+  boolean containsMarks(java.lang.String key);
+  /** Use {@link #getMarksMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getMarks();
+  java.util.Map getMarks();
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -83,9 +106,10 @@ boolean containsMarks(
    *
    * map<string, string> marks = 2;
    */
-  java.util.Map
-  getMarksMap();
+  java.util.Map getMarksMap();
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -100,11 +124,13 @@ boolean containsMarks(
    */
 
   /* nullable */
-java.lang.String getMarksOrDefault(
+  java.lang.String getMarksOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -117,7 +143,5 @@ java.lang.String getMarksOrDefault(
    *
    * map<string, string> marks = 2;
    */
-
-  java.lang.String getMarksOrThrow(
-      java.lang.String key);
+  java.lang.String getMarksOrThrow(java.lang.String key);
 }
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java
new file mode 100644
index 000000000..935180a43
--- /dev/null
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarksOuterClass.java
@@ -0,0 +1,99 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/securitycenter/v1beta1/security_marks.proto
+
+package com.google.cloud.securitycenter.v1beta1;
+
+public final class SecurityMarksOuterClass {
+  private SecurityMarksOuterClass() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n8google/cloud/securitycenter/v1beta1/se"
+          + "curity_marks.proto\022#google.cloud.securit"
+          + "ycenter.v1beta1\032\031google/api/resource.pro"
+          + "to\032\034google/api/annotations.proto\"\330\002\n\rSec"
+          + "urityMarks\022\014\n\004name\030\001 \001(\t\022L\n\005marks\030\002 \003(\0132"
+          + "=.google.cloud.securitycenter.v1beta1.Se"
+          + "curityMarks.MarksEntry\032,\n\nMarksEntry\022\013\n\003"
+          + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\274\001\352A\270\001\n+sec"
+          + "uritycenter.googleapis.com/SecurityMarks"
+          + "\0229organizations/{organization}/assets/{a"
+          + "sset}/securityMarks\022Norganizations/{orga"
+          + "nization}/sources/{source}/findings/{fin"
+          + "ding}/securityMarksB~\n\'com.google.cloud."
+          + "securitycenter.v1beta1P\001ZQgoogle.golang."
+          + "org/genproto/googleapis/cloud/securityce"
+          + "nter/v1beta1;securitycenterb\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.api.AnnotationsProto.getDescriptor(),
+            });
+    internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor,
+            new java.lang.String[] {
+              "Name", "Marks",
+            });
+    internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_descriptor =
+        internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_securitycenter_v1beta1_SecurityMarks_MarksEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.api.AnnotationsProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java
new file mode 100644
index 000000000..792f3b20f
--- /dev/null
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritycenterService.java
@@ -0,0 +1,603 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto
+
+package com.google.cloud.securitycenter.v1beta1;
+
+public final class SecuritycenterService {
+  private SecuritycenterService() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_CreateFindingRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_CreateSourceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_GetOrganizationSettingsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_GetSourceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_GroupAssetsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_GroupFindingsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_GroupResult_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_GroupResult_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_GroupResult_PropertiesEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_GroupResult_PropertiesEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_ListSourcesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_ListSourcesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_ListAssetsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_ListFindingsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_ListFindingsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_RunAssetDiscoveryRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n@google/cloud/securitycenter/v1beta1/se"
+          + "curitycenter_service.proto\022#google.cloud"
+          + ".securitycenter.v1beta1\032\034google/api/anno"
+          + "tations.proto\032\027google/api/client.proto\032\037"
+          + "google/api/field_behavior.proto\032\031google/"
+          + "api/resource.proto\032/google/cloud/securit"
+          + "ycenter/v1beta1/asset.proto\0321google/clou"
+          + "d/securitycenter/v1beta1/finding.proto\032?"
+          + "google/cloud/securitycenter/v1beta1/orga"
+          + "nization_settings.proto\0328google/cloud/se"
+          + "curitycenter/v1beta1/security_marks.prot"
+          + "o\0320google/cloud/securitycenter/v1beta1/s"
+          + "ource.proto\032\036google/iam/v1/iam_policy.pr"
+          + "oto\032\032google/iam/v1/policy.proto\032#google/"
+          + "longrunning/operations.proto\032\036google/pro"
+          + "tobuf/duration.proto\032\033google/protobuf/em"
+          + "pty.proto\032 google/protobuf/field_mask.pr"
+          + "oto\032\034google/protobuf/struct.proto\032\037googl"
+          + "e/protobuf/timestamp.proto\"\261\001\n\024CreateFin"
+          + "dingRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$sec"
+          + "uritycenter.googleapis.com/Source\022\027\n\nfin"
+          + "ding_id\030\002 \001(\tB\003\340A\002\022B\n\007finding\030\003 \001(\0132,.go"
+          + "ogle.cloud.securitycenter.v1beta1.Findin"
+          + "gB\003\340A\002\"\241\001\n\023CreateSourceRequest\022H\n\006parent"
+          + "\030\001 \001(\tB8\340A\002\372A2\n0cloudresourcemanager.goo"
+          + "gleapis.com/Organization\022@\n\006source\030\002 \001(\013"
+          + "2+.google.cloud.securitycenter.v1beta1.S"
+          + "ourceB\003\340A\002\"j\n\036GetOrganizationSettingsReq"
+          + "uest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2securitycent"
+          + "er.googleapis.com/OrganizationSettings\"N"
+          + "\n\020GetSourceRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&"
+          + "\n$securitycenter.googleapis.com/Source\"\220"
+          + "\002\n\022GroupAssetsRequest\022H\n\006parent\030\001 \001(\tB8\340"
+          + "A\002\372A2\n0cloudresourcemanager.googleapis.c"
+          + "om/Organization\022\016\n\006filter\030\002 \001(\t\022\025\n\010group"
+          + "_by\030\003 \001(\tB\003\340A\002\0223\n\020compare_duration\030\004 \001(\013"
+          + "2\031.google.protobuf.Duration\022-\n\tread_time"
+          + "\030\005 \001(\0132\032.google.protobuf.Timestamp\022\022\n\npa"
+          + "ge_token\030\007 \001(\t\022\021\n\tpage_size\030\010 \001(\005\"\251\001\n\023Gr"
+          + "oupAssetsResponse\022J\n\020group_by_results\030\001 "
+          + "\003(\01320.google.cloud.securitycenter.v1beta"
+          + "1.GroupResult\022-\n\tread_time\030\002 \001(\0132\032.googl"
+          + "e.protobuf.Timestamp\022\027\n\017next_page_token\030"
+          + "\003 \001(\t\"\321\001\n\024GroupFindingsRequest\022<\n\006parent"
+          + "\030\001 \001(\tB,\340A\002\372A&\n$securitycenter.googleapi"
+          + "s.com/Source\022\016\n\006filter\030\002 \001(\t\022\025\n\010group_by"
+          + "\030\003 \001(\tB\003\340A\002\022-\n\tread_time\030\004 \001(\0132\032.google."
+          + "protobuf.Timestamp\022\022\n\npage_token\030\005 \001(\t\022\021"
+          + "\n\tpage_size\030\006 \001(\005\"\253\001\n\025GroupFindingsRespo"
+          + "nse\022J\n\020group_by_results\030\001 \003(\01320.google.c"
+          + "loud.securitycenter.v1beta1.GroupResult\022"
+          + "-\n\tread_time\030\002 \001(\0132\032.google.protobuf.Tim"
+          + "estamp\022\027\n\017next_page_token\030\003 \001(\t\"\275\001\n\013Grou"
+          + "pResult\022T\n\nproperties\030\001 \003(\0132@.google.clo"
+          + "ud.securitycenter.v1beta1.GroupResult.Pr"
+          + "opertiesEntry\022\r\n\005count\030\002 \001(\003\032I\n\017Properti"
+          + "esEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.go"
+          + "ogle.protobuf.Value:\0028\001\"\205\001\n\022ListSourcesR"
+          + "equest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0cloudres"
+          + "ourcemanager.googleapis.com/Organization"
+          + "\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\007 \001(\005\""
+          + "l\n\023ListSourcesResponse\022<\n\007sources\030\001 \003(\0132"
+          + "+.google.cloud.securitycenter.v1beta1.So"
+          + "urce\022\027\n\017next_page_token\030\002 \001(\t\"\277\002\n\021ListAs"
+          + "setsRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0clo"
+          + "udresourcemanager.googleapis.com/Organiz"
+          + "ation\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022"
+          + "-\n\tread_time\030\004 \001(\0132\032.google.protobuf.Tim"
+          + "estamp\0223\n\020compare_duration\030\005 \001(\0132\031.googl"
+          + "e.protobuf.Duration\0223\n\nfield_mask\030\007 \001(\0132"
+          + "\032.google.protobuf.FieldMaskB\003\340A\001\022\022\n\npage"
+          + "_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(\005\"\326\003\n\022List"
+          + "AssetsResponse\022e\n\023list_assets_results\030\001 "
+          + "\003(\0132H.google.cloud.securitycenter.v1beta"
+          + "1.ListAssetsResponse.ListAssetsResult\022-\n"
+          + "\tread_time\030\002 \001(\0132\032.google.protobuf.Times"
+          + "tamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_s"
+          + "ize\030\004 \001(\005\032\374\001\n\020ListAssetsResult\0229\n\005asset\030"
+          + "\001 \001(\0132*.google.cloud.securitycenter.v1be"
+          + "ta1.Asset\022]\n\005state\030\002 \001(\0162N.google.cloud."
+          + "securitycenter.v1beta1.ListAssetsRespons"
+          + "e.ListAssetsResult.State\"N\n\005State\022\025\n\021STA"
+          + "TE_UNSPECIFIED\020\000\022\n\n\006UNUSED\020\001\022\t\n\005ADDED\020\002\022"
+          + "\013\n\007REMOVED\020\003\022\n\n\006ACTIVE\020\004\"\200\002\n\023ListFinding"
+          + "sRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$securi"
+          + "tycenter.googleapis.com/Source\022\016\n\006filter"
+          + "\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\tread_time\030\004 "
+          + "\001(\0132\032.google.protobuf.Timestamp\0223\n\nfield"
+          + "_mask\030\005 \001(\0132\032.google.protobuf.FieldMaskB"
+          + "\003\340A\001\022\022\n\npage_token\030\006 \001(\t\022\021\n\tpage_size\030\007 "
+          + "\001(\005\"\262\001\n\024ListFindingsResponse\022>\n\010findings"
+          + "\030\001 \003(\0132,.google.cloud.securitycenter.v1b"
+          + "eta1.Finding\022-\n\tread_time\030\002 \001(\0132\032.google"
+          + ".protobuf.Timestamp\022\027\n\017next_page_token\030\003"
+          + " \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\322\001\n\026SetFindingS"
+          + "tateRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%secur"
+          + "itycenter.googleapis.com/Finding\022F\n\005stat"
+          + "e\030\002 \001(\01622.google.cloud.securitycenter.v1"
+          + "beta1.Finding.StateB\003\340A\002\0223\n\nstart_time\030\003"
+          + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002\"d\n"
+          + "\030RunAssetDiscoveryRequest\022H\n\006parent\030\001 \001("
+          + "\tB8\340A\002\372A2\n0cloudresourcemanager.googleap"
+          + "is.com/Organization\"\213\001\n\024UpdateFindingReq"
+          + "uest\022B\n\007finding\030\001 \001(\0132,.google.cloud.sec"
+          + "uritycenter.v1beta1.FindingB\003\340A\002\022/\n\013upda"
+          + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas"
+          + "k\"\263\001\n!UpdateOrganizationSettingsRequest\022"
+          + "]\n\025organization_settings\030\001 \001(\01329.google."
+          + "cloud.securitycenter.v1beta1.Organizatio"
+          + "nSettingsB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.go"
+          + "ogle.protobuf.FieldMask\"\210\001\n\023UpdateSource"
+          + "Request\022@\n\006source\030\001 \001(\0132+.google.cloud.s"
+          + "ecuritycenter.v1beta1.SourceB\003\340A\002\022/\n\013upd"
+          + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa"
+          + "sk\"\316\001\n\032UpdateSecurityMarksRequest\022O\n\016sec"
+          + "urity_marks\030\001 \001(\01322.google.cloud.securit"
+          + "ycenter.v1beta1.SecurityMarksB\003\340A\002\022/\n\013up"
+          + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM"
+          + "ask\022.\n\nstart_time\030\003 \001(\0132\032.google.protobu"
+          + "f.Timestamp2\353\036\n\016SecurityCenter\022\300\001\n\014Creat"
+          + "eSource\0228.google.cloud.securitycenter.v1"
+          + "beta1.CreateSourceRequest\032+.google.cloud"
+          + ".securitycenter.v1beta1.Source\"I\202\323\344\223\0023\")"
+          + "/v1beta1/{parent=organizations/*}/source"
+          + "s:\006source\332A\rparent,source\022\333\001\n\rCreateFind"
+          + "ing\0229.google.cloud.securitycenter.v1beta"
+          + "1.CreateFindingRequest\032,.google.cloud.se"
+          + "curitycenter.v1beta1.Finding\"a\202\323\344\223\002?\"4/v"
+          + "1beta1/{parent=organizations/*/sources/*"
+          + "}/findings:\007finding\332A\031parent,finding_id,"
+          + "finding\022\233\001\n\014GetIamPolicy\022\".google.iam.v1"
+          + ".GetIamPolicyRequest\032\025.google.iam.v1.Pol"
+          + "icy\"P\202\323\344\223\002?\":/v1beta1/{resource=organiza"
+          + "tions/*/sources/*}:getIamPolicy:\001*\332A\010res"
+          + "ource\022\336\001\n\027GetOrganizationSettings\022C.goog"
+          + "le.cloud.securitycenter.v1beta1.GetOrgan"
+          + "izationSettingsRequest\0329.google.cloud.se"
+          + "curitycenter.v1beta1.OrganizationSetting"
+          + "s\"C\202\323\344\223\0026\0224/v1beta1/{name=organizations/"
+          + "*/organizationSettings}\332A\004name\022\251\001\n\tGetSo"
+          + "urce\0225.google.cloud.securitycenter.v1bet"
+          + "a1.GetSourceRequest\032+.google.cloud.secur"
+          + "itycenter.v1beta1.Source\"8\202\323\344\223\002+\022)/v1bet"
+          + "a1/{name=organizations/*/sources/*}\332A\004na"
+          + "me\022\273\001\n\013GroupAssets\0227.google.cloud.securi"
+          + "tycenter.v1beta1.GroupAssetsRequest\0328.go"
+          + "ogle.cloud.securitycenter.v1beta1.GroupA"
+          + "ssetsResponse\"9\202\323\344\223\0023\"./v1beta1/{parent="
+          + "organizations/*}/assets:group:\001*\022\337\001\n\rGro"
+          + "upFindings\0229.google.cloud.securitycenter"
+          + ".v1beta1.GroupFindingsRequest\032:.google.c"
+          + "loud.securitycenter.v1beta1.GroupFinding"
+          + "sResponse\"W\202\323\344\223\002?\":/v1beta1/{parent=orga"
+          + "nizations/*/sources/*}/findings:group:\001*"
+          + "\332A\017parent,group_by\022\257\001\n\nListAssets\0226.goog"
+          + "le.cloud.securitycenter.v1beta1.ListAsse"
+          + "tsRequest\0327.google.cloud.securitycenter."
+          + "v1beta1.ListAssetsResponse\"0\202\323\344\223\002*\022(/v1b"
+          + "eta1/{parent=organizations/*}/assets\022\301\001\n"
+          + "\014ListFindings\0228.google.cloud.securitycen"
+          + "ter.v1beta1.ListFindingsRequest\0329.google"
+          + ".cloud.securitycenter.v1beta1.ListFindin"
+          + "gsResponse\"<\202\323\344\223\0026\0224/v1beta1/{parent=org"
+          + "anizations/*/sources/*}/findings\022\274\001\n\013Lis"
+          + "tSources\0227.google.cloud.securitycenter.v"
+          + "1beta1.ListSourcesRequest\0328.google.cloud"
+          + ".securitycenter.v1beta1.ListSourcesRespo"
+          + "nse\":\202\323\344\223\002+\022)/v1beta1/{parent=organizati"
+          + "ons/*}/sources\332A\006parent\022\355\001\n\021RunAssetDisc"
+          + "overy\022=.google.cloud.securitycenter.v1be"
+          + "ta1.RunAssetDiscoveryRequest\032\035.google.lo"
+          + "ngrunning.Operation\"z\202\323\344\223\002:\"5/v1beta1/{p"
+          + "arent=organizations/*}/assets:runDiscove"
+          + "ry:\001*\332A\006parent\312A.\n\025google.protobuf.Empty"
+          + "\022\025google.protobuf.Empty\022\336\001\n\017SetFindingSt"
+          + "ate\022;.google.cloud.securitycenter.v1beta"
+          + "1.SetFindingStateRequest\032,.google.cloud."
+          + "securitycenter.v1beta1.Finding\"`\202\323\344\223\002B\"="
+          + "/v1beta1/{name=organizations/*/sources/*"
+          + "/findings/*}:setState:\001*\332A\025name,state,st"
+          + "art_time\022\242\001\n\014SetIamPolicy\022\".google.iam.v"
+          + "1.SetIamPolicyRequest\032\025.google.iam.v1.Po"
+          + "licy\"W\202\323\344\223\002?\":/v1beta1/{resource=organiz"
+          + "ations/*/sources/*}:setIamPolicy:\001*\332A\017re"
+          + "source,policy\022\315\001\n\022TestIamPermissions\022(.g"
+          + "oogle.iam.v1.TestIamPermissionsRequest\032)"
+          + ".google.iam.v1.TestIamPermissionsRespons"
+          + "e\"b\202\323\344\223\002E\"@/v1beta1/{resource=organizati"
+          + "ons/*/sources/*}:testIamPermissions:\001*\332A"
+          + "\024resource,permissions\022\321\001\n\rUpdateFinding\022"
+          + "9.google.cloud.securitycenter.v1beta1.Up"
+          + "dateFindingRequest\032,.google.cloud.securi"
+          + "tycenter.v1beta1.Finding\"W\202\323\344\223\002G2
  * Request message for updating a finding's state.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.SetFindingStateRequest} */ -public final class SetFindingStateRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SetFindingStateRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.SetFindingStateRequest) SetFindingStateRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SetFindingStateRequest.newBuilder() to construct. private SetFindingStateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SetFindingStateRequest() { name_ = ""; state_ = 0; @@ -26,16 +44,15 @@ private SetFindingStateRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SetFindingStateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SetFindingStateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,42 @@ private SetFindingStateRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - state_ = rawValue; - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); + name_ = s; + break; } - startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); + case 16: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,29 +114,33 @@ private SetFindingStateRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.class, com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.class, + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -123,7 +148,10 @@ private SetFindingStateRequest(
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -132,14 +160,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -147,17 +176,18 @@ public java.lang.String getName() {
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -168,38 +198,57 @@ public java.lang.String getName() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** + * + * *
    * Required. The desired State of the finding.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Required. The desired State of the finding.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.securitycenter.v1beta1.Finding.State getState() { + @java.lang.Override + public com.google.cloud.securitycenter.v1beta1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1beta1.Finding.State result = com.google.cloud.securitycenter.v1beta1.Finding.State.valueOf(state_); - return result == null ? com.google.cloud.securitycenter.v1beta1.Finding.State.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1beta1.Finding.State result = + com.google.cloud.securitycenter.v1beta1.Finding.State.valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1beta1.Finding.State.UNRECOGNIZED + : result; } public static final int START_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -207,11 +256,15 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The startTime. */ @java.lang.Override @@ -219,11 +272,14 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -231,6 +287,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,12 +299,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ != com.google.cloud.securitycenter.v1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.securitycenter.v1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (startTime_ != null) { @@ -265,13 +322,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ != com.google.cloud.securitycenter.v1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); + if (state_ + != com.google.cloud.securitycenter.v1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -281,20 +337,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest other = (com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest) obj; + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest other = + (com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -321,117 +376,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for updating a finding's state.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.SetFindingStateRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.SetFindingStateRequest) com.google.cloud.securitycenter.v1beta1.SetFindingStateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.class, com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.class, + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.newBuilder() @@ -439,16 +504,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -466,13 +530,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_SetFindingStateRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.getDefaultInstance(); } @@ -487,7 +552,8 @@ public com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest result = new com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest(this); + com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest result = + new com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest(this); result.name_ = name_; result.state_ = state_; if (startTimeBuilder_ == null) { @@ -503,38 +569,39 @@ public com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest) other); } else { super.mergeFrom(other); return this; @@ -542,7 +609,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -572,7 +641,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -584,6 +655,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -591,14 +664,16 @@ public Builder mergeFrom(
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -607,6 +682,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -614,16 +691,17 @@ public java.lang.String getName() {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -631,6 +709,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -638,21 +718,25 @@ public java.lang.String getName() {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -660,16 +744,21 @@ public Builder setName(
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -677,17 +766,19 @@ public Builder clearName() {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -695,51 +786,75 @@ public Builder setNameBytes( private int state_ = 0; /** + * + * *
      * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1beta1.Finding.State result = com.google.cloud.securitycenter.v1beta1.Finding.State.valueOf(state_); - return result == null ? com.google.cloud.securitycenter.v1beta1.Finding.State.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1beta1.Finding.State result = + com.google.cloud.securitycenter.v1beta1.Finding.State.valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1beta1.Finding.State.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -747,21 +862,26 @@ public Builder setState(com.google.cloud.securitycenter.v1beta1.Finding.State va if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -769,24 +889,35 @@ public Builder clearState() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -797,11 +928,14 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -817,14 +951,16 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -835,17 +971,20 @@ public Builder setStartTime( return this; } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -857,11 +996,14 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -875,55 +1017,66 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -933,30 +1086,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.SetFindingStateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.SetFindingStateRequest) - private static final com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest(); } - public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetFindingStateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetFindingStateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetFindingStateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetFindingStateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -968,9 +1123,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequestOrBuilder.java index 9e1f70329..859bef668 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface SetFindingStateRequestOrBuilder extends +public interface SetFindingStateRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.SetFindingStateRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -15,11 +33,16 @@ public interface SetFindingStateRequestOrBuilder extends
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -27,55 +50,78 @@ public interface SetFindingStateRequestOrBuilder extends
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The desired State of the finding.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Required. The desired State of the finding.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The state. */ com.google.cloud.securitycenter.v1beta1.Finding.State getState(); /** + * + * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java similarity index 76% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java index cc7f903cd..cdd7adf3f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/source.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Security Command Center finding source. A finding source
  * is an entity or a mechanism that can produce a finding. A source is like a
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1beta1.Source}
  */
-public final class Source extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Source extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.Source)
     SourceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Source.newBuilder() to construct.
   private Source(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Source() {
     name_ = "";
     displayName_ = "";
@@ -29,16 +47,15 @@ private Source() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Source();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Source(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,31 +74,34 @@ private Source(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              displayName_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              description_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -89,29 +109,33 @@ private Source(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1beta1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Source_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1beta1.SourceOuterClass
+        .internal_static_google_cloud_securitycenter_v1beta1_Source_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1beta1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Source_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1beta1.SourceOuterClass
+        .internal_static_google_cloud_securitycenter_v1beta1_Source_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1beta1.Source.class, com.google.cloud.securitycenter.v1beta1.Source.Builder.class);
+            com.google.cloud.securitycenter.v1beta1.Source.class,
+            com.google.cloud.securitycenter.v1beta1.Source.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -120,6 +144,7 @@ private Source(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -128,14 +153,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -144,16 +170,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -164,6 +189,8 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -173,6 +200,7 @@ public java.lang.String getName() {
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -181,14 +209,15 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -198,16 +227,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -218,6 +246,8 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -229,6 +259,7 @@ public java.lang.String getDisplayName() {
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -237,14 +268,15 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -256,16 +288,15 @@ public java.lang.String getDescription() {
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -274,6 +305,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,8 +317,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -322,19 +353,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.Source)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.Source other = (com.google.cloud.securitycenter.v1beta1.Source) obj; + com.google.cloud.securitycenter.v1beta1.Source other = + (com.google.cloud.securitycenter.v1beta1.Source) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -357,97 +386,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1beta1.Source parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1beta1.Source parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.Source parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.Source parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.Source parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.Source parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.Source parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.Source parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.Source parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.Source parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.Source parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.Source parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.Source parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.Source parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.Source prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Security Command Center finding source. A finding source
    * is an entity or a mechanism that can produce a finding. A source is like a
@@ -456,21 +492,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1beta1.Source}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.Source)
       com.google.cloud.securitycenter.v1beta1.SourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1beta1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Source_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1beta1.SourceOuterClass
+          .internal_static_google_cloud_securitycenter_v1beta1_Source_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1beta1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Source_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1beta1.SourceOuterClass
+          .internal_static_google_cloud_securitycenter_v1beta1_Source_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1beta1.Source.class, com.google.cloud.securitycenter.v1beta1.Source.Builder.class);
+              com.google.cloud.securitycenter.v1beta1.Source.class,
+              com.google.cloud.securitycenter.v1beta1.Source.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1beta1.Source.newBuilder()
@@ -478,16 +516,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -501,9 +538,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1beta1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1beta1_Source_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1beta1.SourceOuterClass
+          .internal_static_google_cloud_securitycenter_v1beta1_Source_descriptor;
     }
 
     @java.lang.Override
@@ -522,7 +559,8 @@ public com.google.cloud.securitycenter.v1beta1.Source build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1beta1.Source buildPartial() {
-      com.google.cloud.securitycenter.v1beta1.Source result = new com.google.cloud.securitycenter.v1beta1.Source(this);
+      com.google.cloud.securitycenter.v1beta1.Source result =
+          new com.google.cloud.securitycenter.v1beta1.Source(this);
       result.name_ = name_;
       result.displayName_ = displayName_;
       result.description_ = description_;
@@ -534,38 +572,39 @@ public com.google.cloud.securitycenter.v1beta1.Source buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1beta1.Source) {
-        return mergeFrom((com.google.cloud.securitycenter.v1beta1.Source)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1beta1.Source) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -617,6 +656,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -625,13 +666,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -640,6 +681,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -648,15 +691,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -664,6 +706,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -672,20 +716,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -694,15 +740,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -711,16 +760,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -728,6 +777,8 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -737,13 +788,13 @@ public Builder setNameBytes(
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -752,6 +803,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -761,15 +814,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -777,6 +829,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -786,20 +840,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -809,15 +865,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -827,16 +886,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -844,6 +903,8 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -855,13 +916,13 @@ public Builder setDisplayNameBytes(
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -870,6 +931,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -881,15 +944,14 @@ public java.lang.String getDescription() {
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -897,6 +959,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -908,20 +972,22 @@ public java.lang.String getDescription() {
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -933,15 +999,18 @@ public Builder setDescription(
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -953,23 +1022,23 @@ public Builder clearDescription() {
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -979,12 +1048,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.Source) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.Source) private static final com.google.cloud.securitycenter.v1beta1.Source DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.Source(); } @@ -993,16 +1062,16 @@ public static com.google.cloud.securitycenter.v1beta1.Source getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Source parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Source(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Source parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Source(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1017,6 +1086,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.Source getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceName.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceName.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java similarity index 76% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java index a375a84b3..71c8ad800 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/source.proto package com.google.cloud.securitycenter.v1beta1; -public interface SourceOrBuilder extends +public interface SourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.Source) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -16,10 +34,13 @@ public interface SourceOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -28,12 +49,14 @@ public interface SourceOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -43,10 +66,13 @@ public interface SourceOrBuilder extends
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -56,12 +82,14 @@ public interface SourceOrBuilder extends
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -73,10 +101,13 @@ public interface SourceOrBuilder extends
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -88,8 +119,8 @@ public interface SourceOrBuilder extends
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } diff --git a/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOuterClass.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOuterClass.java new file mode 100644 index 000000000..247a1b123 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOuterClass.java @@ -0,0 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1beta1/source.proto + +package com.google.cloud.securitycenter.v1beta1; + +public final class SourceOuterClass { + private SourceOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1beta1_Source_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1beta1_Source_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/securitycenter/v1beta1/so" + + "urce.proto\022#google.cloud.securitycenter." + + "v1beta1\032\031google/api/resource.proto\032\034goog" + + "le/api/annotations.proto\"\233\001\n\006Source\022\014\n\004n" + + "ame\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013descr" + + "iption\030\003 \001(\t:X\352AU\n$securitycenter.google" + + "apis.com/Source\022-organizations/{organiza" + + "tion}/sources/{source}B~\n\'com.google.clo" + + "ud.securitycenter.v1beta1P\001ZQgoogle.gola" + + "ng.org/genproto/googleapis/cloud/securit" + + "ycenter/v1beta1;securitycenterb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1beta1_Source_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1beta1_Source_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1beta1_Source_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Description", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java index 7e1fd800e..87a2647b2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Request message for updating or creating a finding.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.UpdateFindingRequest} */ -public final class UpdateFindingRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateFindingRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.UpdateFindingRequest) UpdateFindingRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateFindingRequest.newBuilder() to construct. private UpdateFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateFindingRequest() { - } + + private UpdateFindingRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateFindingRequest( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1beta1.Finding.Builder subBuilder = null; - if (finding_ != null) { - subBuilder = finding_.toBuilder(); - } - finding_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.Finding.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(finding_); - finding_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.securitycenter.v1beta1.Finding.Builder subBuilder = null; + if (finding_ != null) { + subBuilder = finding_.toBuilder(); + } + finding_ = + input.readMessage( + com.google.cloud.securitycenter.v1beta1.Finding.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finding_); + finding_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +113,33 @@ private UpdateFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.class, com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.class, + com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.Builder.class); } public static final int FINDING_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1beta1.Finding finding_; /** + * + * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -123,7 +148,10 @@ private UpdateFindingRequest(
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the finding field is set. */ @java.lang.Override @@ -131,6 +159,8 @@ public boolean hasFinding() { return finding_ != null; } /** + * + * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -139,14 +169,21 @@ public boolean hasFinding() {
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.Finding getFinding() { - return finding_ == null ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() + : finding_; } /** + * + * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -155,7 +192,9 @@ public com.google.cloud.securitycenter.v1beta1.Finding getFinding() {
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder() { @@ -165,12 +204,15 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuil public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -178,12 +220,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -191,6 +236,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -204,6 +251,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -215,8 +263,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (finding_ != null) {
       output.writeMessage(1, getFinding());
     }
@@ -233,12 +280,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (finding_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getFinding());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFinding());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -248,22 +293,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest other = (com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest) obj;
+    com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest other =
+        (com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest) obj;
 
     if (hasFinding() != other.hasFinding()) return false;
     if (hasFinding()) {
-      if (!getFinding()
-          .equals(other.getFinding())) return false;
+      if (!getFinding().equals(other.getFinding())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -290,117 +334,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for updating or creating a finding.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.UpdateFindingRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.UpdateFindingRequest) com.google.cloud.securitycenter.v1beta1.UpdateFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.class, com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.class, + com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.newBuilder() @@ -408,16 +462,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,13 +490,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_UpdateFindingRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.getDefaultInstance(); } @@ -458,7 +512,8 @@ public com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest result = new com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest(this); + com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest result = + new com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest(this); if (findingBuilder_ == null) { result.finding_ = finding_; } else { @@ -477,38 +532,39 @@ public com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest) other); } else { super.mergeFrom(other); return this; @@ -516,7 +572,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest.getDefaultInstance()) + return this; if (other.hasFinding()) { mergeFinding(other.getFinding()); } @@ -542,7 +600,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -554,8 +613,13 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1beta1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> findingBuilder_; + com.google.cloud.securitycenter.v1beta1.Finding, + com.google.cloud.securitycenter.v1beta1.Finding.Builder, + com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> + findingBuilder_; /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -564,13 +628,18 @@ public Builder mergeFrom(
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -579,17 +648,24 @@ public boolean hasFinding() {
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The finding. */ public com.google.cloud.securitycenter.v1beta1.Finding getFinding() { if (findingBuilder_ == null) { - return finding_ == null ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() + : finding_; } else { return findingBuilder_.getMessage(); } } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -598,7 +674,9 @@ public com.google.cloud.securitycenter.v1beta1.Finding getFinding() {
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFinding(com.google.cloud.securitycenter.v1beta1.Finding value) { if (findingBuilder_ == null) { @@ -614,6 +692,8 @@ public Builder setFinding(com.google.cloud.securitycenter.v1beta1.Finding value) return this; } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -622,7 +702,9 @@ public Builder setFinding(com.google.cloud.securitycenter.v1beta1.Finding value)
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFinding( com.google.cloud.securitycenter.v1beta1.Finding.Builder builderForValue) { @@ -636,6 +718,8 @@ public Builder setFinding( return this; } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -644,13 +728,17 @@ public Builder setFinding(
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFinding(com.google.cloud.securitycenter.v1beta1.Finding value) { if (findingBuilder_ == null) { if (finding_ != null) { finding_ = - com.google.cloud.securitycenter.v1beta1.Finding.newBuilder(finding_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1beta1.Finding.newBuilder(finding_) + .mergeFrom(value) + .buildPartial(); } else { finding_ = value; } @@ -662,6 +750,8 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1beta1.Finding valu return this; } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -670,7 +760,9 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1beta1.Finding valu
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFinding() { if (findingBuilder_ == null) { @@ -684,6 +776,8 @@ public Builder clearFinding() { return this; } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -692,14 +786,18 @@ public Builder clearFinding() {
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.Finding.Builder getFindingBuilder() { - + onChanged(); return getFindingFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -708,17 +806,22 @@ public com.google.cloud.securitycenter.v1beta1.Finding.Builder getFindingBuilder
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder() { if (findingBuilder_ != null) { return findingBuilder_.getMessageOrBuilder(); } else { - return finding_ == null ? - com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1beta1.Finding.getDefaultInstance() + : finding_; } } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -727,17 +830,22 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuil
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> + com.google.cloud.securitycenter.v1beta1.Finding, + com.google.cloud.securitycenter.v1beta1.Finding.Builder, + com.google.cloud.securitycenter.v1beta1.FindingOrBuilder> getFindingFieldBuilder() { if (findingBuilder_ == null) { - findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, com.google.cloud.securitycenter.v1beta1.FindingOrBuilder>( - getFinding(), - getParentForChildren(), - isClean()); + findingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.Finding, + com.google.cloud.securitycenter.v1beta1.Finding.Builder, + com.google.cloud.securitycenter.v1beta1.FindingOrBuilder>( + getFinding(), getParentForChildren(), isClean()); finding_ = null; } return findingBuilder_; @@ -745,36 +853,49 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuil private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -796,6 +917,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -803,8 +926,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -815,6 +937,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -826,7 +950,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -838,6 +962,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -857,6 +983,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -865,11 +993,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -881,11 +1011,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -894,21 +1027,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -918,12 +1054,13 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.UpdateFindingRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.UpdateFindingRequest)
-  private static final com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest();
   }
@@ -932,16 +1069,16 @@ public static com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateFindingRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateFindingRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateFindingRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateFindingRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -956,6 +1093,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequestOrBuilder.java
similarity index 69%
rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequestOrBuilder.java
rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequestOrBuilder.java
index a74372d80..18436bef9 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1beta1;
 
-public interface UpdateFindingRequestOrBuilder extends
+public interface UpdateFindingRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.UpdateFindingRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -16,11 +34,16 @@ public interface UpdateFindingRequestOrBuilder extends
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the finding field is set. */ boolean hasFinding(); /** + * + * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -29,11 +52,16 @@ public interface UpdateFindingRequestOrBuilder extends
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The finding. */ com.google.cloud.securitycenter.v1beta1.Finding getFinding(); /** + * + * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -42,31 +70,41 @@ public interface UpdateFindingRequestOrBuilder extends
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuilder(); /** + * + * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java
similarity index 61%
rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java
rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java
index 608274a79..8c4da9897 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java
+++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java
@@ -1,39 +1,56 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1beta1;
 
 /**
+ *
+ *
  * 
  * Request message for updating an organization's settings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest} */ -public final class UpdateOrganizationSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateOrganizationSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) UpdateOrganizationSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateOrganizationSettingsRequest.newBuilder() to construct. - private UpdateOrganizationSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateOrganizationSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateOrganizationSettingsRequest() { - } + + private UpdateOrganizationSettingsRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateOrganizationSettingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateOrganizationSettingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +69,46 @@ private UpdateOrganizationSettingsRequest( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder subBuilder = null; - if (organizationSettings_ != null) { - subBuilder = organizationSettings_.toBuilder(); - } - organizationSettings_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.OrganizationSettings.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(organizationSettings_); - organizationSettings_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder subBuilder = + null; + if (organizationSettings_ != null) { + subBuilder = organizationSettings_.toBuilder(); + } + organizationSettings_ = + input.readMessage( + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(organizationSettings_); + organizationSettings_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +116,42 @@ private UpdateOrganizationSettingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.class, + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.Builder + .class); } public static final int ORGANIZATION_SETTINGS_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1beta1.OrganizationSettings organizationSettings_; /** + * + * *
    * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the organizationSettings field is set. */ @java.lang.Override @@ -127,37 +159,52 @@ public boolean hasOrganizationSettings() { return organizationSettings_ != null; } /** + * + * *
    * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The organizationSettings. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizationSettings() { - return organizationSettings_ == null ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance() : organizationSettings_; + return organizationSettings_ == null + ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance() + : organizationSettings_; } /** + * + * *
    * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder() { + public com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder + getOrganizationSettingsOrBuilder() { return getOrganizationSettings(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The FieldMask to use when updating the settings resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -165,11 +212,14 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The FieldMask to use when updating the settings resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -177,6 +227,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The FieldMask to use when updating the settings resource.
    * 
@@ -189,6 +241,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +253,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (organizationSettings_ != null) { output.writeMessage(1, getOrganizationSettings()); } @@ -218,12 +270,11 @@ public int getSerializedSize() { size = 0; if (organizationSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOrganizationSettings()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOrganizationSettings()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,22 +284,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest)) { + if (!(obj + instanceof com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest other = (com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) obj; + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest other = + (com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) obj; if (hasOrganizationSettings() != other.hasOrganizationSettings()) return false; if (hasOrganizationSettings()) { - if (!getOrganizationSettings() - .equals(other.getOrganizationSettings())) return false; + if (!getOrganizationSettings().equals(other.getOrganizationSettings())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -275,134 +326,146 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for updating an organization's settings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.class, + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.Builder + .class); } - // Construct using com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -422,19 +485,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_UpdateOrganizationSettingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.getDefaultInstance(); + public com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest build() { - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest result = buildPartial(); + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -442,8 +508,10 @@ public com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest result = new com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest(this); + public com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest + buildPartial() { + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest result = + new com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest(this); if (organizationSettingsBuilder_ == null) { result.organizationSettings_ = organizationSettings_; } else { @@ -462,46 +530,52 @@ public com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest)other); + if (other + instanceof com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) { + return mergeFrom( + (com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest other) { + if (other + == com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest + .getDefaultInstance()) return this; if (other.hasOrganizationSettings()) { mergeOrganizationSettings(other.getOrganizationSettings()); } @@ -523,11 +597,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parsedMessage = null; + com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -539,41 +616,61 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1beta1.OrganizationSettings organizationSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.OrganizationSettings, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder, com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder> organizationSettingsBuilder_; + com.google.cloud.securitycenter.v1beta1.OrganizationSettings, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder, + com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder> + organizationSettingsBuilder_; /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the organizationSettings field is set. */ public boolean hasOrganizationSettings() { return organizationSettingsBuilder_ != null || organizationSettings_ != null; } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The organizationSettings. */ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizationSettings() { if (organizationSettingsBuilder_ == null) { - return organizationSettings_ == null ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance() : organizationSettings_; + return organizationSettings_ == null + ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance() + : organizationSettings_; } else { return organizationSettingsBuilder_.getMessage(); } } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setOrganizationSettings(com.google.cloud.securitycenter.v1beta1.OrganizationSettings value) { + public Builder setOrganizationSettings( + com.google.cloud.securitycenter.v1beta1.OrganizationSettings value) { if (organizationSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -587,11 +684,15 @@ public Builder setOrganizationSettings(com.google.cloud.securitycenter.v1beta1.O return this; } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOrganizationSettings( com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder builderForValue) { @@ -605,17 +706,25 @@ public Builder setOrganizationSettings( return this; } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeOrganizationSettings(com.google.cloud.securitycenter.v1beta1.OrganizationSettings value) { + public Builder mergeOrganizationSettings( + com.google.cloud.securitycenter.v1beta1.OrganizationSettings value) { if (organizationSettingsBuilder_ == null) { if (organizationSettings_ != null) { organizationSettings_ = - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.newBuilder(organizationSettings_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.newBuilder( + organizationSettings_) + .mergeFrom(value) + .buildPartial(); } else { organizationSettings_ = value; } @@ -627,11 +736,15 @@ public Builder mergeOrganizationSettings(com.google.cloud.securitycenter.v1beta1 return this; } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOrganizationSettings() { if (organizationSettingsBuilder_ == null) { @@ -645,48 +758,66 @@ public Builder clearOrganizationSettings() { return this; } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder getOrganizationSettingsBuilder() { - + public com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder + getOrganizationSettingsBuilder() { + onChanged(); return getOrganizationSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder() { + public com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder + getOrganizationSettingsOrBuilder() { if (organizationSettingsBuilder_ != null) { return organizationSettingsBuilder_.getMessageOrBuilder(); } else { - return organizationSettings_ == null ? - com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance() : organizationSettings_; + return organizationSettings_ == null + ? com.google.cloud.securitycenter.v1beta1.OrganizationSettings.getDefaultInstance() + : organizationSettings_; } } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.OrganizationSettings, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder, com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder> + com.google.cloud.securitycenter.v1beta1.OrganizationSettings, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder, + com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder> getOrganizationSettingsFieldBuilder() { if (organizationSettingsBuilder_ == null) { - organizationSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.OrganizationSettings, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder, com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder>( - getOrganizationSettings(), - getParentForChildren(), - isClean()); + organizationSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.OrganizationSettings, + com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder, + com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder>( + getOrganizationSettings(), getParentForChildren(), isClean()); organizationSettings_ = null; } return organizationSettingsBuilder_; @@ -694,34 +825,47 @@ public com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder get private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The FieldMask to use when updating the settings resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The FieldMask to use when updating the settings resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The FieldMask to use when updating the settings resource.
      * 
@@ -742,14 +886,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The FieldMask to use when updating the settings resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -760,6 +905,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The FieldMask to use when updating the settings resource.
      * 
@@ -770,7 +917,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -782,6 +929,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The FieldMask to use when updating the settings resource.
      * 
@@ -800,6 +949,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The FieldMask to use when updating the settings resource.
      * 
@@ -807,11 +958,13 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The FieldMask to use when updating the settings resource.
      * 
@@ -822,11 +975,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * The FieldMask to use when updating the settings resource.
      * 
@@ -834,21 +990,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -858,30 +1017,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) - private static final com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest(); } - public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateOrganizationSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateOrganizationSettingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateOrganizationSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateOrganizationSettingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -893,9 +1055,8 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequestOrBuilder.java index d0e40699a..4865c6d01 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequestOrBuilder.java @@ -1,58 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface UpdateOrganizationSettingsRequestOrBuilder extends +public interface UpdateOrganizationSettingsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the organizationSettings field is set. */ boolean hasOrganizationSettings(); /** + * + * *
    * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The organizationSettings. */ com.google.cloud.securitycenter.v1beta1.OrganizationSettings getOrganizationSettings(); /** + * + * *
    * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder(); + com.google.cloud.securitycenter.v1beta1.OrganizationSettingsOrBuilder + getOrganizationSettingsOrBuilder(); /** + * + * *
    * The FieldMask to use when updating the settings resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the settings resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the settings resource.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java index fa5ca6b7f..81e3bf553 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Request message for updating a SecurityMarks resource.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest} */ -public final class UpdateSecurityMarksRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateSecurityMarksRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) UpdateSecurityMarksRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateSecurityMarksRequest.newBuilder() to construct. private UpdateSecurityMarksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateSecurityMarksRequest() { - } + + private UpdateSecurityMarksRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateSecurityMarksRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateSecurityMarksRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,52 +68,60 @@ private UpdateSecurityMarksRequest( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder subBuilder = null; - if (securityMarks_ != null) { - subBuilder = securityMarks_.toBuilder(); - } - securityMarks_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.SecurityMarks.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(securityMarks_); - securityMarks_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder subBuilder = null; + if (securityMarks_ != null) { + subBuilder = securityMarks_.toBuilder(); + } + securityMarks_ = + input.readMessage( + com.google.cloud.securitycenter.v1beta1.SecurityMarks.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(securityMarks_); + securityMarks_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,34 +129,41 @@ private UpdateSecurityMarksRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.class, com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.class, + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.Builder.class); } public static final int SECURITY_MARKS_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1beta1.SecurityMarks securityMarks_; /** + * + * *
    * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the securityMarks field is set. */ @java.lang.Override @@ -140,37 +171,52 @@ public boolean hasSecurityMarks() { return securityMarks_ != null; } /** + * + * *
    * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The securityMarks. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() { - return securityMarks_ == null ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() + : securityMarks_; } /** + * + * *
    * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { + public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder + getSecurityMarksOrBuilder() { return getSecurityMarks(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The FieldMask to use when updating the security marks resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -178,11 +224,14 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The FieldMask to use when updating the security marks resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -190,6 +239,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The FieldMask to use when updating the security marks resource.
    * 
@@ -204,11 +255,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int START_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * The time at which the updated SecurityMarks take effect.
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -216,11 +270,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * The time at which the updated SecurityMarks take effect.
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return The startTime. */ @java.lang.Override @@ -228,6 +285,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * The time at which the updated SecurityMarks take effect.
    * 
@@ -240,6 +299,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,8 +311,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (securityMarks_ != null) { output.writeMessage(1, getSecurityMarks()); } @@ -272,16 +331,13 @@ public int getSerializedSize() { size = 0; if (securityMarks_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSecurityMarks()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSecurityMarks()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -291,27 +347,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest other = (com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) obj; + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest other = + (com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) obj; if (hasSecurityMarks() != other.hasSecurityMarks()) return false; if (hasSecurityMarks()) { - if (!getSecurityMarks() - .equals(other.getSecurityMarks())) return false; + if (!getSecurityMarks().equals(other.getSecurityMarks())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -342,134 +396,145 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for updating a SecurityMarks resource.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.class, com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.class, + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.Builder.class); } - // Construct using com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -495,14 +560,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_UpdateSecurityMarksRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.getDefaultInstance(); + public com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest + .getDefaultInstance(); } @java.lang.Override @@ -516,7 +583,8 @@ public com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest build( @java.lang.Override public com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest result = new com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest(this); + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest result = + new com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest(this); if (securityMarksBuilder_ == null) { result.securityMarks_ = securityMarks_; } else { @@ -540,46 +608,51 @@ public com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest)other); + return mergeFrom( + (com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest other) { + if (other + == com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest + .getDefaultInstance()) return this; if (other.hasSecurityMarks()) { mergeSecurityMarks(other.getSecurityMarks()); } @@ -608,7 +681,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -620,39 +695,58 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1beta1.SecurityMarks securityMarks_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder> securityMarksBuilder_; + com.google.cloud.securitycenter.v1beta1.SecurityMarks, + com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder> + securityMarksBuilder_; /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The securityMarks. */ public com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { - return securityMarks_ == null ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() + : securityMarks_; } else { return securityMarksBuilder_.getMessage(); } } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { @@ -668,11 +762,15 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1beta1.Security return this; } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSecurityMarks( com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder builderForValue) { @@ -686,17 +784,23 @@ public Builder setSecurityMarks( return this; } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { if (securityMarks_ != null) { securityMarks_ = - com.google.cloud.securitycenter.v1beta1.SecurityMarks.newBuilder(securityMarks_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1beta1.SecurityMarks.newBuilder(securityMarks_) + .mergeFrom(value) + .buildPartial(); } else { securityMarks_ = value; } @@ -708,11 +812,15 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1beta1.Securi return this; } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -726,48 +834,65 @@ public Builder clearSecurityMarks() { return this; } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurityMarksBuilder() { - + onChanged(); return getSecurityMarksFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { + public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder + getSecurityMarksOrBuilder() { if (securityMarksBuilder_ != null) { return securityMarksBuilder_.getMessageOrBuilder(); } else { - return securityMarks_ == null ? - com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1beta1.SecurityMarks.getDefaultInstance() + : securityMarks_; } } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder> + com.google.cloud.securitycenter.v1beta1.SecurityMarks, + com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder> getSecurityMarksFieldBuilder() { if (securityMarksBuilder_ == null) { - securityMarksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder>( - getSecurityMarks(), - getParentForChildren(), - isClean()); + securityMarksBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.SecurityMarks, + com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder>( + getSecurityMarks(), getParentForChildren(), isClean()); securityMarks_ = null; } return securityMarksBuilder_; @@ -775,34 +900,47 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurit private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The FieldMask to use when updating the security marks resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The FieldMask to use when updating the security marks resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The FieldMask to use when updating the security marks resource.
      * 
@@ -823,14 +961,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The FieldMask to use when updating the security marks resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -841,6 +980,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The FieldMask to use when updating the security marks resource.
      * 
@@ -851,7 +992,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -863,6 +1004,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The FieldMask to use when updating the security marks resource.
      * 
@@ -881,6 +1024,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The FieldMask to use when updating the security marks resource.
      * 
@@ -888,11 +1033,13 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The FieldMask to use when updating the security marks resource.
      * 
@@ -903,11 +1050,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * The FieldMask to use when updating the security marks resource.
      * 
@@ -915,14 +1065,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -930,24 +1083,33 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * The time at which the updated SecurityMarks take effect.
      * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * The time at which the updated SecurityMarks take effect.
      * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -958,6 +1120,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * The time at which the updated SecurityMarks take effect.
      * 
@@ -978,14 +1142,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the updated SecurityMarks take effect.
      * 
* * .google.protobuf.Timestamp start_time = 3; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -996,6 +1161,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * The time at which the updated SecurityMarks take effect.
      * 
@@ -1006,7 +1173,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -1018,6 +1185,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the updated SecurityMarks take effect.
      * 
@@ -1036,6 +1205,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * The time at which the updated SecurityMarks take effect.
      * 
@@ -1043,11 +1214,13 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 3; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time at which the updated SecurityMarks take effect.
      * 
@@ -1058,11 +1231,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * The time at which the updated SecurityMarks take effect.
      * 
@@ -1070,21 +1244,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1094,30 +1271,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) - private static final com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest(); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSecurityMarksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateSecurityMarksRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSecurityMarksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateSecurityMarksRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1129,9 +1308,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequestOrBuilder.java index 34b565894..f3d3c75c7 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequestOrBuilder.java @@ -1,58 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface UpdateSecurityMarksRequestOrBuilder extends +public interface UpdateSecurityMarksRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** + * + * *
    * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The securityMarks. */ com.google.cloud.securitycenter.v1beta1.SecurityMarks getSecurityMarks(); /** + * + * *
    * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder(); /** + * + * *
    * The FieldMask to use when updating the security marks resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the security marks resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the security marks resource.
    * 
@@ -62,24 +100,32 @@ public interface UpdateSecurityMarksRequestOrBuilder extends com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * The time at which the updated SecurityMarks take effect.
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * The time at which the updated SecurityMarks take effect.
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * The time at which the updated SecurityMarks take effect.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java index de19e7f71..f137b59f4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; /** + * + * *
  * Request message for updating a source.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.UpdateSourceRequest} */ -public final class UpdateSourceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateSourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1beta1.UpdateSourceRequest) UpdateSourceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateSourceRequest.newBuilder() to construct. private UpdateSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateSourceRequest() { - } + + private UpdateSourceRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateSourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateSourceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateSourceRequest( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1beta1.Source.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); - } - source_ = input.readMessage(com.google.cloud.securitycenter.v1beta1.Source.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.securitycenter.v1beta1.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.securitycenter.v1beta1.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +113,41 @@ private UpdateSourceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.class, com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.class, + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.Builder.class); } public static final int SOURCE_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1beta1.Source source_; /** + * + * *
    * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the source field is set. */ @java.lang.Override @@ -127,23 +155,34 @@ public boolean hasSource() { return source_ != null; } /** + * + * *
    * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The source. */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.Source getSource() { - return source_ == null ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() + : source_; } /** + * + * *
    * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder() { @@ -153,11 +192,14 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilde public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The FieldMask to use when updating the source resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -165,11 +207,14 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The FieldMask to use when updating the source resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -177,6 +222,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The FieldMask to use when updating the source resource.
    * 
@@ -189,6 +236,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +248,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (source_ != null) { output.writeMessage(1, getSource()); } @@ -218,12 +265,10 @@ public int getSerializedSize() { size = 0; if (source_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSource()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,22 +278,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest other = (com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest) obj; + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest other = + (com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest) obj; if (hasSource() != other.hasSource()) return false; if (hasSource()) { - if (!getSource() - .equals(other.getSource())) return false; + if (!getSource().equals(other.getSource())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -275,117 +319,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for updating a source.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1beta1.UpdateSourceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1beta1.UpdateSourceRequest) com.google.cloud.securitycenter.v1beta1.UpdateSourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.class, com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.class, + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.newBuilder() @@ -393,16 +447,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +475,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1beta1_UpdateSourceRequest_descriptor; } @java.lang.Override @@ -443,7 +496,8 @@ public com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest buildPartial() { - com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest result = new com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest(this); + com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest result = + new com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest(this); if (sourceBuilder_ == null) { result.source_ = source_; } else { @@ -462,38 +516,39 @@ public com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest) other); } else { super.mergeFrom(other); return this; @@ -501,7 +556,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest other) { - if (other == com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest.getDefaultInstance()) + return this; if (other.hasSource()) { mergeSource(other.getSource()); } @@ -527,7 +583,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -539,39 +596,58 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1beta1.Source source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> sourceBuilder_; + com.google.cloud.securitycenter.v1beta1.Source, + com.google.cloud.securitycenter.v1beta1.Source.Builder, + com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> + sourceBuilder_; /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The source. */ public com.google.cloud.securitycenter.v1beta1.Source getSource() { if (sourceBuilder_ == null) { - return source_ == null ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() + : source_; } else { return sourceBuilder_.getMessage(); } } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSource(com.google.cloud.securitycenter.v1beta1.Source value) { if (sourceBuilder_ == null) { @@ -587,11 +663,15 @@ public Builder setSource(com.google.cloud.securitycenter.v1beta1.Source value) { return this; } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSource( com.google.cloud.securitycenter.v1beta1.Source.Builder builderForValue) { @@ -605,17 +685,23 @@ public Builder setSource( return this; } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSource(com.google.cloud.securitycenter.v1beta1.Source value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = - com.google.cloud.securitycenter.v1beta1.Source.newBuilder(source_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1beta1.Source.newBuilder(source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -627,11 +713,15 @@ public Builder mergeSource(com.google.cloud.securitycenter.v1beta1.Source value) return this; } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSource() { if (sourceBuilder_ == null) { @@ -645,48 +735,64 @@ public Builder clearSource() { return this; } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.Source.Builder getSourceBuilder() { - + onChanged(); return getSourceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { - return source_ == null ? - com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.securitycenter.v1beta1.Source.getDefaultInstance() + : source_; } } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> + com.google.cloud.securitycenter.v1beta1.Source, + com.google.cloud.securitycenter.v1beta1.Source.Builder, + com.google.cloud.securitycenter.v1beta1.SourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { - sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, com.google.cloud.securitycenter.v1beta1.SourceOrBuilder>( - getSource(), - getParentForChildren(), - isClean()); + sourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1beta1.Source, + com.google.cloud.securitycenter.v1beta1.Source.Builder, + com.google.cloud.securitycenter.v1beta1.SourceOrBuilder>( + getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; @@ -694,34 +800,47 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilde private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The FieldMask to use when updating the source resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The FieldMask to use when updating the source resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The FieldMask to use when updating the source resource.
      * 
@@ -742,14 +861,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The FieldMask to use when updating the source resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -760,6 +880,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The FieldMask to use when updating the source resource.
      * 
@@ -770,7 +892,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -782,6 +904,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The FieldMask to use when updating the source resource.
      * 
@@ -800,6 +924,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The FieldMask to use when updating the source resource.
      * 
@@ -807,11 +933,13 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The FieldMask to use when updating the source resource.
      * 
@@ -822,11 +950,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * The FieldMask to use when updating the source resource.
      * 
@@ -834,21 +965,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -858,12 +992,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1beta1.UpdateSourceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1beta1.UpdateSourceRequest) private static final com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest(); } @@ -872,16 +1006,16 @@ public static com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSourceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateSourceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateSourceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +1030,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequestOrBuilder.java index a06db446e..d88053e72 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequestOrBuilder.java @@ -1,58 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1beta1; -public interface UpdateSourceRequestOrBuilder extends +public interface UpdateSourceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1beta1.UpdateSourceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the source field is set. */ boolean hasSource(); /** + * + * *
    * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The source. */ com.google.cloud.securitycenter.v1beta1.Source getSource(); /** + * + * *
    * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilder(); /** + * + * *
    * The FieldMask to use when updating the source resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the source resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the source resource.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/asset.proto b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/asset.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/asset.proto rename to proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/asset.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/finding.proto b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/finding.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/finding.proto rename to proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/finding.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/organization_settings.proto b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/organization_settings.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/organization_settings.proto rename to proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/organization_settings.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto rename to proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/run_asset_discovery_response.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/security_marks.proto b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/security_marks.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/security_marks.proto rename to proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/security_marks.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/securitycenter_service.proto b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/securitycenter_service.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/securitycenter_service.proto rename to proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/securitycenter_service.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/source.proto b/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/source.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/source.proto rename to proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/source.proto diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Asset.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Asset.java similarity index 74% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Asset.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Asset.java index ff90118a1..81a400935 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Asset.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Asset.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/asset.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Security Command Center representation of a Google Cloud
  * resource.
@@ -15,15 +32,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset}
  */
-public final class Asset extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Asset extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.Asset)
     AssetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Asset.newBuilder() to construct.
   private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Asset() {
     name_ = "";
     canonicalName_ = "";
@@ -31,16 +49,15 @@ private Asset() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Asset();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Asset(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,103 +77,128 @@ private Asset(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder subBuilder = null;
-            if (securityCenterProperties_ != null) {
-              subBuilder = securityCenterProperties_.toBuilder();
-            }
-            securityCenterProperties_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(securityCenterProperties_);
-              securityCenterProperties_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder
+                  subBuilder = null;
+              if (securityCenterProperties_ != null) {
+                subBuilder = securityCenterProperties_.toBuilder();
+              }
+              securityCenterProperties_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(securityCenterProperties_);
+                securityCenterProperties_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 58: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              resourceProperties_ = com.google.protobuf.MapField.newMapField(
-                  ResourcePropertiesDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
-            }
-            com.google.protobuf.MapEntry
-            resourceProperties__ = input.readMessage(
-                ResourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            resourceProperties_.getMutableMap().put(
-                resourceProperties__.getKey(), resourceProperties__.getValue());
-            break;
-          }
-          case 66: {
-            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder subBuilder = null;
-            if (securityMarks_ != null) {
-              subBuilder = securityMarks_.toBuilder();
+              break;
             }
-            securityMarks_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(securityMarks_);
-              securityMarks_ = subBuilder.buildPartial();
+          case 58:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                resourceProperties_ =
+                    com.google.protobuf.MapField.newMapField(
+                        ResourcePropertiesDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry
+                  resourceProperties__ =
+                      input.readMessage(
+                          ResourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
+                          extensionRegistry);
+              resourceProperties_
+                  .getMutableMap()
+                  .put(resourceProperties__.getKey(), resourceProperties__.getValue());
+              break;
             }
+          case 66:
+            {
+              com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder subBuilder = null;
+              if (securityMarks_ != null) {
+                subBuilder = securityMarks_.toBuilder();
+              }
+              securityMarks_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(securityMarks_);
+                securityMarks_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 74: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
-            }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+              break;
             }
+          case 74:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 82: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
-            }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+              break;
             }
+          case 82:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 90: {
-            com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder subBuilder = null;
-            if (iamPolicy_ != null) {
-              subBuilder = iamPolicy_.toBuilder();
-            }
-            iamPolicy_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(iamPolicy_);
-              iamPolicy_ = subBuilder.buildPartial();
+              break;
             }
+          case 90:
+            {
+              com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder subBuilder = null;
+              if (iamPolicy_ != null) {
+                subBuilder = iamPolicy_.toBuilder();
+              }
+              iamPolicy_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(iamPolicy_);
+                iamPolicy_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 106: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 106:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            canonicalName_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              canonicalName_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -164,43 +206,47 @@ private Asset(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
+        .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 7:
         return internalGetResourceProperties();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
+        .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1p1beta1.Asset.class, com.google.cloud.securitycenter.v1p1beta1.Asset.Builder.class);
+            com.google.cloud.securitycenter.v1p1beta1.Asset.class,
+            com.google.cloud.securitycenter.v1p1beta1.Asset.Builder.class);
   }
 
-  public interface SecurityCenterPropertiesOrBuilder extends
+  public interface SecurityCenterPropertiesOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -208,10 +254,13 @@ public interface SecurityCenterPropertiesOrBuilder extends
      * 
* * string resource_name = 1; + * * @return The resourceName. */ java.lang.String getResourceName(); /** + * + * *
      * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -219,12 +268,14 @@ public interface SecurityCenterPropertiesOrBuilder extends
      * 
* * string resource_name = 1; + * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString - getResourceNameBytes(); + com.google.protobuf.ByteString getResourceNameBytes(); /** + * + * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -233,10 +284,13 @@ public interface SecurityCenterPropertiesOrBuilder extends
      * 
* * string resource_type = 2; + * * @return The resourceType. */ java.lang.String getResourceType(); /** + * + * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -245,157 +299,194 @@ public interface SecurityCenterPropertiesOrBuilder extends
      * 
* * string resource_type = 2; + * * @return The bytes for resourceType. */ - com.google.protobuf.ByteString - getResourceTypeBytes(); + com.google.protobuf.ByteString getResourceTypeBytes(); /** + * + * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; + * * @return The resourceParent. */ java.lang.String getResourceParent(); /** + * + * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; + * * @return The bytes for resourceParent. */ - com.google.protobuf.ByteString - getResourceParentBytes(); + com.google.protobuf.ByteString getResourceParentBytes(); /** + * + * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; + * * @return The resourceProject. */ java.lang.String getResourceProject(); /** + * + * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; + * * @return The bytes for resourceProject. */ - com.google.protobuf.ByteString - getResourceProjectBytes(); + com.google.protobuf.ByteString getResourceProjectBytes(); /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @return A list containing the resourceOwners. */ - java.util.List - getResourceOwnersList(); + java.util.List getResourceOwnersList(); /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @return The count of resourceOwners. */ int getResourceOwnersCount(); /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ java.lang.String getResourceOwners(int index); /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ - com.google.protobuf.ByteString - getResourceOwnersBytes(int index); + com.google.protobuf.ByteString getResourceOwnersBytes(int index); /** + * + * *
      * The user defined display name for this resource.
      * 
* * string resource_display_name = 6; + * * @return The resourceDisplayName. */ java.lang.String getResourceDisplayName(); /** + * + * *
      * The user defined display name for this resource.
      * 
* * string resource_display_name = 6; + * * @return The bytes for resourceDisplayName. */ - com.google.protobuf.ByteString - getResourceDisplayNameBytes(); + com.google.protobuf.ByteString getResourceDisplayNameBytes(); /** + * + * *
      * The user defined display name for the parent of this resource.
      * 
* * string resource_parent_display_name = 7; + * * @return The resourceParentDisplayName. */ java.lang.String getResourceParentDisplayName(); /** + * + * *
      * The user defined display name for the parent of this resource.
      * 
* * string resource_parent_display_name = 7; + * * @return The bytes for resourceParentDisplayName. */ - com.google.protobuf.ByteString - getResourceParentDisplayNameBytes(); + com.google.protobuf.ByteString getResourceParentDisplayNameBytes(); /** + * + * *
      * The user defined display name for the project of this resource.
      * 
* * string resource_project_display_name = 8; + * * @return The resourceProjectDisplayName. */ java.lang.String getResourceProjectDisplayName(); /** + * + * *
      * The user defined display name for the project of this resource.
      * 
* * string resource_project_display_name = 8; + * * @return The bytes for resourceProjectDisplayName. */ - com.google.protobuf.ByteString - getResourceProjectDisplayNameBytes(); + com.google.protobuf.ByteString getResourceProjectDisplayNameBytes(); /** + * + * *
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -404,9 +495,10 @@ public interface SecurityCenterPropertiesOrBuilder extends
      *
      * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
      */
-    java.util.List 
-        getFoldersList();
+    java.util.List getFoldersList();
     /**
+     *
+     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -417,6 +509,8 @@ public interface SecurityCenterPropertiesOrBuilder extends
      */
     com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index);
     /**
+     *
+     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -427,6 +521,8 @@ public interface SecurityCenterPropertiesOrBuilder extends
      */
     int getFoldersCount();
     /**
+     *
+     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -435,9 +531,11 @@ public interface SecurityCenterPropertiesOrBuilder extends
      *
      * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
      */
-    java.util.List 
+    java.util.List
         getFoldersOrBuilderList();
     /**
+     *
+     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -446,10 +544,11 @@ public interface SecurityCenterPropertiesOrBuilder extends
      *
      * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
      */
-    com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder(
-        int index);
+    com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder(int index);
   }
   /**
+   *
+   *
    * 
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
@@ -457,15 +556,16 @@ com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties}
    */
-  public static final class SecurityCenterProperties extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class SecurityCenterProperties extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties)
       SecurityCenterPropertiesOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use SecurityCenterProperties.newBuilder() to construct.
     private SecurityCenterProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private SecurityCenterProperties() {
       resourceName_ = "";
       resourceType_ = "";
@@ -480,16 +580,15 @@ private SecurityCenterProperties() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new SecurityCenterProperties();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private SecurityCenterProperties(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -509,73 +608,85 @@ private SecurityCenterProperties(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              resourceName_ = s;
-              break;
-            }
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
+                resourceName_ = s;
+                break;
+              }
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              resourceType_ = s;
-              break;
-            }
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
+                resourceType_ = s;
+                break;
+              }
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              resourceParent_ = s;
-              break;
-            }
-            case 34: {
-              java.lang.String s = input.readStringRequireUtf8();
+                resourceParent_ = s;
+                break;
+              }
+            case 34:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              resourceProject_ = s;
-              break;
-            }
-            case 42: {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                resourceOwners_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
+                resourceProject_ = s;
+                break;
               }
-              resourceOwners_.add(s);
-              break;
-            }
-            case 50: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 42:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  resourceOwners_ = new com.google.protobuf.LazyStringArrayList();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                resourceOwners_.add(s);
+                break;
+              }
+            case 50:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              resourceDisplayName_ = s;
-              break;
-            }
-            case 58: {
-              java.lang.String s = input.readStringRequireUtf8();
+                resourceDisplayName_ = s;
+                break;
+              }
+            case 58:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              resourceParentDisplayName_ = s;
-              break;
-            }
-            case 66: {
-              java.lang.String s = input.readStringRequireUtf8();
+                resourceParentDisplayName_ = s;
+                break;
+              }
+            case 66:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              resourceProjectDisplayName_ = s;
-              break;
-            }
-            case 82: {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                folders_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
+                resourceProjectDisplayName_ = s;
+                break;
               }
-              folders_.add(
-                  input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Folder.parser(), extensionRegistry));
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            case 82:
+              {
+                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                  folders_ =
+                      new java.util.ArrayList();
+                  mutable_bitField0_ |= 0x00000002;
+                }
+                folders_.add(
+                    input.readMessage(
+                        com.google.cloud.securitycenter.v1p1beta1.Folder.parser(),
+                        extensionRegistry));
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -583,8 +694,7 @@ private SecurityCenterProperties(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           resourceOwners_ = resourceOwners_.getUnmodifiableView();
@@ -596,22 +706,28 @@ private SecurityCenterProperties(
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.class, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder.class);
+              com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.class,
+              com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder
+                  .class);
     }
 
     public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
     private volatile java.lang.Object resourceName_;
     /**
+     *
+     *
      * 
      * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -619,6 +735,7 @@ private SecurityCenterProperties(
      * 
* * string resource_name = 1; + * * @return The resourceName. */ @java.lang.Override @@ -627,14 +744,15 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** + * + * *
      * The full resource name of the Google Cloud resource this asset
      * represents. This field is immutable after create time. See:
@@ -642,16 +760,15 @@ public java.lang.String getResourceName() {
      * 
* * string resource_name = 1; + * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -662,6 +779,8 @@ public java.lang.String getResourceName() { public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object resourceType_; /** + * + * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -670,6 +789,7 @@ public java.lang.String getResourceName() {
      * 
* * string resource_type = 2; + * * @return The resourceType. */ @java.lang.Override @@ -678,14 +798,15 @@ public java.lang.String getResourceType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; } } /** + * + * *
      * The type of the Google Cloud resource. Examples include: APPLICATION,
      * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -694,16 +815,15 @@ public java.lang.String getResourceType() {
      * 
* * string resource_type = 2; + * * @return The bytes for resourceType. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceTypeBytes() { + public com.google.protobuf.ByteString getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceType_ = b; return b; } else { @@ -714,12 +834,15 @@ public java.lang.String getResourceType() { public static final int RESOURCE_PARENT_FIELD_NUMBER = 3; private volatile java.lang.Object resourceParent_; /** + * + * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; + * * @return The resourceParent. */ @java.lang.Override @@ -728,30 +851,30 @@ public java.lang.String getResourceParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParent_ = s; return s; } } /** + * + * *
      * The full resource name of the immediate parent of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_parent = 3; + * * @return The bytes for resourceParent. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceParentBytes() { + public com.google.protobuf.ByteString getResourceParentBytes() { java.lang.Object ref = resourceParent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceParent_ = b; return b; } else { @@ -762,12 +885,15 @@ public java.lang.String getResourceParent() { public static final int RESOURCE_PROJECT_FIELD_NUMBER = 4; private volatile java.lang.Object resourceProject_; /** + * + * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; + * * @return The resourceProject. */ @java.lang.Override @@ -776,30 +902,30 @@ public java.lang.String getResourceProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProject_ = s; return s; } } /** + * + * *
      * The full resource name of the project the resource belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_project = 4; + * * @return The bytes for resourceProject. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceProjectBytes() { + public com.google.protobuf.ByteString getResourceProjectBytes() { java.lang.Object ref = resourceProject_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceProject_ = b; return b; } else { @@ -810,34 +936,42 @@ public java.lang.String getResourceProject() { public static final int RESOURCE_OWNERS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList resourceOwners_; /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @return A list containing the resourceOwners. */ - public com.google.protobuf.ProtocolStringList - getResourceOwnersList() { + public com.google.protobuf.ProtocolStringList getResourceOwnersList() { return resourceOwners_; } /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @return The count of resourceOwners. */ public int getResourceOwnersCount() { return resourceOwners_.size(); } /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ @@ -845,27 +979,32 @@ public java.lang.String getResourceOwners(int index) { return resourceOwners_.get(index); } /** + * + * *
      * Owners of the Google Cloud resource.
      * 
* * repeated string resource_owners = 5; + * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ - public com.google.protobuf.ByteString - getResourceOwnersBytes(int index) { + public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { return resourceOwners_.getByteString(index); } public static final int RESOURCE_DISPLAY_NAME_FIELD_NUMBER = 6; private volatile java.lang.Object resourceDisplayName_; /** + * + * *
      * The user defined display name for this resource.
      * 
* * string resource_display_name = 6; + * * @return The resourceDisplayName. */ @java.lang.Override @@ -874,29 +1013,29 @@ public java.lang.String getResourceDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceDisplayName_ = s; return s; } } /** + * + * *
      * The user defined display name for this resource.
      * 
* * string resource_display_name = 6; + * * @return The bytes for resourceDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceDisplayNameBytes() { + public com.google.protobuf.ByteString getResourceDisplayNameBytes() { java.lang.Object ref = resourceDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceDisplayName_ = b; return b; } else { @@ -907,11 +1046,14 @@ public java.lang.String getResourceDisplayName() { public static final int RESOURCE_PARENT_DISPLAY_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object resourceParentDisplayName_; /** + * + * *
      * The user defined display name for the parent of this resource.
      * 
* * string resource_parent_display_name = 7; + * * @return The resourceParentDisplayName. */ @java.lang.Override @@ -920,29 +1062,29 @@ public java.lang.String getResourceParentDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParentDisplayName_ = s; return s; } } /** + * + * *
      * The user defined display name for the parent of this resource.
      * 
* * string resource_parent_display_name = 7; + * * @return The bytes for resourceParentDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceParentDisplayNameBytes() { + public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() { java.lang.Object ref = resourceParentDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceParentDisplayName_ = b; return b; } else { @@ -953,11 +1095,14 @@ public java.lang.String getResourceParentDisplayName() { public static final int RESOURCE_PROJECT_DISPLAY_NAME_FIELD_NUMBER = 8; private volatile java.lang.Object resourceProjectDisplayName_; /** + * + * *
      * The user defined display name for the project of this resource.
      * 
* * string resource_project_display_name = 8; + * * @return The resourceProjectDisplayName. */ @java.lang.Override @@ -966,29 +1111,29 @@ public java.lang.String getResourceProjectDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProjectDisplayName_ = s; return s; } } /** + * + * *
      * The user defined display name for the project of this resource.
      * 
* * string resource_project_display_name = 8; + * * @return The bytes for resourceProjectDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceProjectDisplayNameBytes() { + public com.google.protobuf.ByteString getResourceProjectDisplayNameBytes() { java.lang.Object ref = resourceProjectDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceProjectDisplayName_ = b; return b; } else { @@ -999,6 +1144,8 @@ public java.lang.String getResourceProjectDisplayName() { public static final int FOLDERS_FIELD_NUMBER = 10; private java.util.List folders_; /** + * + * *
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -1012,6 +1159,8 @@ public java.util.List getFolde
       return folders_;
     }
     /**
+     *
+     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -1021,11 +1170,13 @@ public java.util.List getFolde
      * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
      */
     @java.lang.Override
-    public java.util.List 
+    public java.util.List
         getFoldersOrBuilderList() {
       return folders_;
     }
     /**
+     *
+     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -1039,6 +1190,8 @@ public int getFoldersCount() {
       return folders_.size();
     }
     /**
+     *
+     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -1052,6 +1205,8 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index) {
       return folders_.get(index);
     }
     /**
+     *
+     *
      * 
      * Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
@@ -1067,6 +1222,7 @@ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBui
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -1078,8 +1234,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
       }
@@ -1140,14 +1295,16 @@ public int getSerializedSize() {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, resourceDisplayName_);
       }
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceParentDisplayName_)) {
-        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, resourceParentDisplayName_);
+        size +=
+            com.google.protobuf.GeneratedMessageV3.computeStringSize(7, resourceParentDisplayName_);
       }
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceProjectDisplayName_)) {
-        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, resourceProjectDisplayName_);
+        size +=
+            com.google.protobuf.GeneratedMessageV3.computeStringSize(
+                8, resourceProjectDisplayName_);
       }
       for (int i = 0; i < folders_.size(); i++) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(10, folders_.get(i));
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, folders_.get(i));
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -1157,31 +1314,26 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
-      if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties)) {
+      if (!(obj
+          instanceof com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties)) {
         return super.equals(obj);
       }
-      com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties other = (com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties) obj;
-
-      if (!getResourceName()
-          .equals(other.getResourceName())) return false;
-      if (!getResourceType()
-          .equals(other.getResourceType())) return false;
-      if (!getResourceParent()
-          .equals(other.getResourceParent())) return false;
-      if (!getResourceProject()
-          .equals(other.getResourceProject())) return false;
-      if (!getResourceOwnersList()
-          .equals(other.getResourceOwnersList())) return false;
-      if (!getResourceDisplayName()
-          .equals(other.getResourceDisplayName())) return false;
-      if (!getResourceParentDisplayName()
-          .equals(other.getResourceParentDisplayName())) return false;
-      if (!getResourceProjectDisplayName()
-          .equals(other.getResourceProjectDisplayName())) return false;
-      if (!getFoldersList()
-          .equals(other.getFoldersList())) return false;
+      com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties other =
+          (com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties) obj;
+
+      if (!getResourceName().equals(other.getResourceName())) return false;
+      if (!getResourceType().equals(other.getResourceType())) return false;
+      if (!getResourceParent().equals(other.getResourceParent())) return false;
+      if (!getResourceProject().equals(other.getResourceProject())) return false;
+      if (!getResourceOwnersList().equals(other.getResourceOwnersList())) return false;
+      if (!getResourceDisplayName().equals(other.getResourceDisplayName())) return false;
+      if (!getResourceParentDisplayName().equals(other.getResourceParentDisplayName()))
+        return false;
+      if (!getResourceProjectDisplayName().equals(other.getResourceProjectDisplayName()))
+        return false;
+      if (!getFoldersList().equals(other.getFoldersList())) return false;
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
     }
@@ -1220,88 +1372,101 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
+        parseFrom(java.nio.ByteBuffer data)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
+        parseFrom(
+            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(
-        com.google.protobuf.ByteString data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
+        parseFrom(com.google.protobuf.ByteString data)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(
-        com.google.protobuf.ByteString data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
+        parseFrom(
+            com.google.protobuf.ByteString data,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
+        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
+        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
+        parseFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
+        parseFrom(
+            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
+        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
+        parseDelimitedFrom(
+            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
+        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
+        parseFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties prototype) {
+
+    public static Builder newBuilder(
+        com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -1311,6 +1476,8 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
@@ -1318,39 +1485,44 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties)
         com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
+            .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_fieldAccessorTable
+        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
+            .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.class, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder.class);
+                com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.class,
+                com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder
+                    .class);
       }
 
-      // Construct using com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.newBuilder()
+      // Construct using
+      // com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
           getFoldersFieldBuilder();
         }
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1380,19 +1552,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
+            .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties getDefaultInstanceForType() {
-        return com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.getDefaultInstance();
+      public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
+          getDefaultInstanceForType() {
+        return com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties build() {
-        com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties result = buildPartial();
+        com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -1400,8 +1575,10 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
       }
 
       @java.lang.Override
-      public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties buildPartial() {
-        com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties result = new com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties(this);
+      public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
+          buildPartial() {
+        com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties result =
+            new com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties(this);
         int from_bitField0_ = bitField0_;
         result.resourceName_ = resourceName_;
         result.resourceType_ = resourceType_;
@@ -1432,46 +1609,54 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties) {
-          return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties)other);
+        if (other
+            instanceof com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties) {
+          return mergeFrom(
+              (com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties other) {
-        if (other == com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties other) {
+        if (other
+            == com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
+                .getDefaultInstance()) return this;
         if (!other.getResourceName().isEmpty()) {
           resourceName_ = other.resourceName_;
           onChanged();
@@ -1528,9 +1713,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Asset.Securit
               foldersBuilder_ = null;
               folders_ = other.folders_;
               bitField0_ = (bitField0_ & ~0x00000002);
-              foldersBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getFoldersFieldBuilder() : null;
+              foldersBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getFoldersFieldBuilder()
+                      : null;
             } else {
               foldersBuilder_.addAllMessages(other.folders_);
             }
@@ -1551,11 +1737,14 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parsedMessage = null;
+        com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parsedMessage =
+            null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1564,10 +1753,13 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
       private java.lang.Object resourceName_ = "";
       /**
+       *
+       *
        * 
        * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1575,13 +1767,13 @@ public Builder mergeFrom(
        * 
* * string resource_name = 1; + * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -1590,6 +1782,8 @@ public java.lang.String getResourceName() { } } /** + * + * *
        * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1597,15 +1791,14 @@ public java.lang.String getResourceName() {
        * 
* * string resource_name = 1; + * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -1613,6 +1806,8 @@ public java.lang.String getResourceName() { } } /** + * + * *
        * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1620,20 +1815,22 @@ public java.lang.String getResourceName() {
        * 
* * string resource_name = 1; + * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName( - java.lang.String value) { + public Builder setResourceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceName_ = value; onChanged(); return this; } /** + * + * *
        * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1641,15 +1838,18 @@ public Builder setResourceName(
        * 
* * string resource_name = 1; + * * @return This builder for chaining. */ public Builder clearResourceName() { - + resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** + * + * *
        * The full resource name of the Google Cloud resource this asset
        * represents. This field is immutable after create time. See:
@@ -1657,16 +1857,16 @@ public Builder clearResourceName() {
        * 
* * string resource_name = 1; + * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; onChanged(); return this; @@ -1674,6 +1874,8 @@ public Builder setResourceNameBytes( private java.lang.Object resourceType_ = ""; /** + * + * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1682,13 +1884,13 @@ public Builder setResourceNameBytes(
        * 
* * string resource_type = 2; + * * @return The resourceType. */ public java.lang.String getResourceType() { java.lang.Object ref = resourceType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; @@ -1697,6 +1899,8 @@ public java.lang.String getResourceType() { } } /** + * + * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1705,15 +1909,14 @@ public java.lang.String getResourceType() {
        * 
* * string resource_type = 2; + * * @return The bytes for resourceType. */ - public com.google.protobuf.ByteString - getResourceTypeBytes() { + public com.google.protobuf.ByteString getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceType_ = b; return b; } else { @@ -1721,6 +1924,8 @@ public java.lang.String getResourceType() { } } /** + * + * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1729,20 +1934,22 @@ public java.lang.String getResourceType() {
        * 
* * string resource_type = 2; + * * @param value The resourceType to set. * @return This builder for chaining. */ - public Builder setResourceType( - java.lang.String value) { + public Builder setResourceType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceType_ = value; onChanged(); return this; } /** + * + * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1751,15 +1958,18 @@ public Builder setResourceType(
        * 
* * string resource_type = 2; + * * @return This builder for chaining. */ public Builder clearResourceType() { - + resourceType_ = getDefaultInstance().getResourceType(); onChanged(); return this; } /** + * + * *
        * The type of the Google Cloud resource. Examples include: APPLICATION,
        * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
@@ -1768,16 +1978,16 @@ public Builder clearResourceType() {
        * 
* * string resource_type = 2; + * * @param value The bytes for resourceType to set. * @return This builder for chaining. */ - public Builder setResourceTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceType_ = value; onChanged(); return this; @@ -1785,19 +1995,21 @@ public Builder setResourceTypeBytes( private java.lang.Object resourceParent_ = ""; /** + * + * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; + * * @return The resourceParent. */ public java.lang.String getResourceParent() { java.lang.Object ref = resourceParent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParent_ = s; return s; @@ -1806,21 +2018,22 @@ public java.lang.String getResourceParent() { } } /** + * + * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; + * * @return The bytes for resourceParent. */ - public com.google.protobuf.ByteString - getResourceParentBytes() { + public com.google.protobuf.ByteString getResourceParentBytes() { java.lang.Object ref = resourceParent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceParent_ = b; return b; } else { @@ -1828,57 +2041,64 @@ public java.lang.String getResourceParent() { } } /** + * + * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; + * * @param value The resourceParent to set. * @return This builder for chaining. */ - public Builder setResourceParent( - java.lang.String value) { + public Builder setResourceParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceParent_ = value; onChanged(); return this; } /** + * + * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; + * * @return This builder for chaining. */ public Builder clearResourceParent() { - + resourceParent_ = getDefaultInstance().getResourceParent(); onChanged(); return this; } /** + * + * *
        * The full resource name of the immediate parent of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_parent = 3; + * * @param value The bytes for resourceParent to set. * @return This builder for chaining. */ - public Builder setResourceParentBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceParent_ = value; onChanged(); return this; @@ -1886,19 +2106,21 @@ public Builder setResourceParentBytes( private java.lang.Object resourceProject_ = ""; /** + * + * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; + * * @return The resourceProject. */ public java.lang.String getResourceProject() { java.lang.Object ref = resourceProject_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProject_ = s; return s; @@ -1907,21 +2129,22 @@ public java.lang.String getResourceProject() { } } /** + * + * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; + * * @return The bytes for resourceProject. */ - public com.google.protobuf.ByteString - getResourceProjectBytes() { + public com.google.protobuf.ByteString getResourceProjectBytes() { java.lang.Object ref = resourceProject_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceProject_ = b; return b; } else { @@ -1929,98 +2152,115 @@ public java.lang.String getResourceProject() { } } /** + * + * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; + * * @param value The resourceProject to set. * @return This builder for chaining. */ - public Builder setResourceProject( - java.lang.String value) { + public Builder setResourceProject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceProject_ = value; onChanged(); return this; } /** + * + * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; + * * @return This builder for chaining. */ public Builder clearResourceProject() { - + resourceProject_ = getDefaultInstance().getResourceProject(); onChanged(); return this; } /** + * + * *
        * The full resource name of the project the resource belongs to. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string resource_project = 4; + * * @param value The bytes for resourceProject to set. * @return This builder for chaining. */ - public Builder setResourceProjectBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceProject_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList resourceOwners_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList resourceOwners_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureResourceOwnersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resourceOwners_ = new com.google.protobuf.LazyStringArrayList(resourceOwners_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @return A list containing the resourceOwners. */ - public com.google.protobuf.ProtocolStringList - getResourceOwnersList() { + public com.google.protobuf.ProtocolStringList getResourceOwnersList() { return resourceOwners_.getUnmodifiableView(); } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @return The count of resourceOwners. */ public int getResourceOwnersCount() { return resourceOwners_.size(); } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ @@ -2028,80 +2268,90 @@ public java.lang.String getResourceOwners(int index) { return resourceOwners_.get(index); } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ - public com.google.protobuf.ByteString - getResourceOwnersBytes(int index) { + public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { return resourceOwners_.getByteString(index); } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @param index The index to set the value at. * @param value The resourceOwners to set. * @return This builder for chaining. */ - public Builder setResourceOwners( - int index, java.lang.String value) { + public Builder setResourceOwners(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceOwnersIsMutable(); + throw new NullPointerException(); + } + ensureResourceOwnersIsMutable(); resourceOwners_.set(index, value); onChanged(); return this; } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @param value The resourceOwners to add. * @return This builder for chaining. */ - public Builder addResourceOwners( - java.lang.String value) { + public Builder addResourceOwners(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceOwnersIsMutable(); + throw new NullPointerException(); + } + ensureResourceOwnersIsMutable(); resourceOwners_.add(value); onChanged(); return this; } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @param values The resourceOwners to add. * @return This builder for chaining. */ - public Builder addAllResourceOwners( - java.lang.Iterable values) { + public Builder addAllResourceOwners(java.lang.Iterable values) { ensureResourceOwnersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceOwners_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceOwners_); onChanged(); return this; } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @return This builder for chaining. */ public Builder clearResourceOwners() { @@ -2111,20 +2361,22 @@ public Builder clearResourceOwners() { return this; } /** + * + * *
        * Owners of the Google Cloud resource.
        * 
* * repeated string resource_owners = 5; + * * @param value The bytes of the resourceOwners to add. * @return This builder for chaining. */ - public Builder addResourceOwnersBytes( - com.google.protobuf.ByteString value) { + public Builder addResourceOwnersBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureResourceOwnersIsMutable(); resourceOwners_.add(value); onChanged(); @@ -2133,18 +2385,20 @@ public Builder addResourceOwnersBytes( private java.lang.Object resourceDisplayName_ = ""; /** + * + * *
        * The user defined display name for this resource.
        * 
* * string resource_display_name = 6; + * * @return The resourceDisplayName. */ public java.lang.String getResourceDisplayName() { java.lang.Object ref = resourceDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceDisplayName_ = s; return s; @@ -2153,20 +2407,21 @@ public java.lang.String getResourceDisplayName() { } } /** + * + * *
        * The user defined display name for this resource.
        * 
* * string resource_display_name = 6; + * * @return The bytes for resourceDisplayName. */ - public com.google.protobuf.ByteString - getResourceDisplayNameBytes() { + public com.google.protobuf.ByteString getResourceDisplayNameBytes() { java.lang.Object ref = resourceDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceDisplayName_ = b; return b; } else { @@ -2174,54 +2429,61 @@ public java.lang.String getResourceDisplayName() { } } /** + * + * *
        * The user defined display name for this resource.
        * 
* * string resource_display_name = 6; + * * @param value The resourceDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceDisplayName( - java.lang.String value) { + public Builder setResourceDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceDisplayName_ = value; onChanged(); return this; } /** + * + * *
        * The user defined display name for this resource.
        * 
* * string resource_display_name = 6; + * * @return This builder for chaining. */ public Builder clearResourceDisplayName() { - + resourceDisplayName_ = getDefaultInstance().getResourceDisplayName(); onChanged(); return this; } /** + * + * *
        * The user defined display name for this resource.
        * 
* * string resource_display_name = 6; + * * @param value The bytes for resourceDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceDisplayName_ = value; onChanged(); return this; @@ -2229,18 +2491,20 @@ public Builder setResourceDisplayNameBytes( private java.lang.Object resourceParentDisplayName_ = ""; /** + * + * *
        * The user defined display name for the parent of this resource.
        * 
* * string resource_parent_display_name = 7; + * * @return The resourceParentDisplayName. */ public java.lang.String getResourceParentDisplayName() { java.lang.Object ref = resourceParentDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParentDisplayName_ = s; return s; @@ -2249,20 +2513,21 @@ public java.lang.String getResourceParentDisplayName() { } } /** + * + * *
        * The user defined display name for the parent of this resource.
        * 
* * string resource_parent_display_name = 7; + * * @return The bytes for resourceParentDisplayName. */ - public com.google.protobuf.ByteString - getResourceParentDisplayNameBytes() { + public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() { java.lang.Object ref = resourceParentDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceParentDisplayName_ = b; return b; } else { @@ -2270,54 +2535,61 @@ public java.lang.String getResourceParentDisplayName() { } } /** + * + * *
        * The user defined display name for the parent of this resource.
        * 
* * string resource_parent_display_name = 7; + * * @param value The resourceParentDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceParentDisplayName( - java.lang.String value) { + public Builder setResourceParentDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceParentDisplayName_ = value; onChanged(); return this; } /** + * + * *
        * The user defined display name for the parent of this resource.
        * 
* * string resource_parent_display_name = 7; + * * @return This builder for chaining. */ public Builder clearResourceParentDisplayName() { - + resourceParentDisplayName_ = getDefaultInstance().getResourceParentDisplayName(); onChanged(); return this; } /** + * + * *
        * The user defined display name for the parent of this resource.
        * 
* * string resource_parent_display_name = 7; + * * @param value The bytes for resourceParentDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceParentDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceParentDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceParentDisplayName_ = value; onChanged(); return this; @@ -2325,18 +2597,20 @@ public Builder setResourceParentDisplayNameBytes( private java.lang.Object resourceProjectDisplayName_ = ""; /** + * + * *
        * The user defined display name for the project of this resource.
        * 
* * string resource_project_display_name = 8; + * * @return The resourceProjectDisplayName. */ public java.lang.String getResourceProjectDisplayName() { java.lang.Object ref = resourceProjectDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProjectDisplayName_ = s; return s; @@ -2345,20 +2619,21 @@ public java.lang.String getResourceProjectDisplayName() { } } /** + * + * *
        * The user defined display name for the project of this resource.
        * 
* * string resource_project_display_name = 8; + * * @return The bytes for resourceProjectDisplayName. */ - public com.google.protobuf.ByteString - getResourceProjectDisplayNameBytes() { + public com.google.protobuf.ByteString getResourceProjectDisplayNameBytes() { java.lang.Object ref = resourceProjectDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceProjectDisplayName_ = b; return b; } else { @@ -2366,72 +2641,86 @@ public java.lang.String getResourceProjectDisplayName() { } } /** + * + * *
        * The user defined display name for the project of this resource.
        * 
* * string resource_project_display_name = 8; + * * @param value The resourceProjectDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceProjectDisplayName( - java.lang.String value) { + public Builder setResourceProjectDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceProjectDisplayName_ = value; onChanged(); return this; } /** + * + * *
        * The user defined display name for the project of this resource.
        * 
* * string resource_project_display_name = 8; + * * @return This builder for chaining. */ public Builder clearResourceProjectDisplayName() { - + resourceProjectDisplayName_ = getDefaultInstance().getResourceProjectDisplayName(); onChanged(); return this; } /** + * + * *
        * The user defined display name for the project of this resource.
        * 
* * string resource_project_display_name = 8; + * * @param value The bytes for resourceProjectDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceProjectDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceProjectDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceProjectDisplayName_ = value; onChanged(); return this; } private java.util.List folders_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - folders_ = new java.util.ArrayList(folders_); + folders_ = + new java.util.ArrayList(folders_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> foldersBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Folder, + com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, + com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> + foldersBuilder_; /** + * + * *
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2448,6 +2737,8 @@ public java.util.List getFolde
         }
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2464,6 +2755,8 @@ public int getFoldersCount() {
         }
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2480,6 +2773,8 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index) {
         }
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2488,8 +2783,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index) {
        *
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
-      public Builder setFolders(
-          int index, com.google.cloud.securitycenter.v1p1beta1.Folder value) {
+      public Builder setFolders(int index, com.google.cloud.securitycenter.v1p1beta1.Folder value) {
         if (foldersBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -2503,6 +2797,8 @@ public Builder setFolders(
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2523,6 +2819,8 @@ public Builder setFolders(
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2545,6 +2843,8 @@ public Builder addFolders(com.google.cloud.securitycenter.v1p1beta1.Folder value
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2553,8 +2853,7 @@ public Builder addFolders(com.google.cloud.securitycenter.v1p1beta1.Folder value
        *
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
-      public Builder addFolders(
-          int index, com.google.cloud.securitycenter.v1p1beta1.Folder value) {
+      public Builder addFolders(int index, com.google.cloud.securitycenter.v1p1beta1.Folder value) {
         if (foldersBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -2568,6 +2867,8 @@ public Builder addFolders(
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2588,6 +2889,8 @@ public Builder addFolders(
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2608,6 +2911,8 @@ public Builder addFolders(
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2620,8 +2925,7 @@ public Builder addAllFolders(
           java.lang.Iterable values) {
         if (foldersBuilder_ == null) {
           ensureFoldersIsMutable();
-          com.google.protobuf.AbstractMessageLite.Builder.addAll(
-              values, folders_);
+          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_);
           onChanged();
         } else {
           foldersBuilder_.addAllMessages(values);
@@ -2629,6 +2933,8 @@ public Builder addAllFolders(
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2648,6 +2954,8 @@ public Builder clearFolders() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2667,6 +2975,8 @@ public Builder removeFolders(int index) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2675,11 +2985,12 @@ public Builder removeFolders(int index) {
        *
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
-      public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder getFoldersBuilder(
-          int index) {
+      public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder getFoldersBuilder(int index) {
         return getFoldersFieldBuilder().getBuilder(index);
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2691,11 +3002,14 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder getFoldersBuilde
       public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder(
           int index) {
         if (foldersBuilder_ == null) {
-          return folders_.get(index);  } else {
+          return folders_.get(index);
+        } else {
           return foldersBuilder_.getMessageOrBuilder(index);
         }
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2704,8 +3018,8 @@ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBui
        *
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
-      public java.util.List 
-           getFoldersOrBuilderList() {
+      public java.util.List
+          getFoldersOrBuilderList() {
         if (foldersBuilder_ != null) {
           return foldersBuilder_.getMessageOrBuilderList();
         } else {
@@ -2713,6 +3027,8 @@ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBui
         }
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2722,10 +3038,12 @@ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBui
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
       public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilder() {
-        return getFoldersFieldBuilder().addBuilder(
-            com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance());
+        return getFoldersFieldBuilder()
+            .addBuilder(com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance());
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2734,12 +3052,14 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilde
        *
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
-      public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilder(
-          int index) {
-        return getFoldersFieldBuilder().addBuilder(
-            index, com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance());
+      public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilder(int index) {
+        return getFoldersFieldBuilder()
+            .addBuilder(
+                index, com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance());
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is the
@@ -2748,24 +3068,28 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilde
        *
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
-      public java.util.List 
-           getFoldersBuilderList() {
+      public java.util.List
+          getFoldersBuilderList() {
         return getFoldersFieldBuilder().getBuilderList();
       }
+
       private com.google.protobuf.RepeatedFieldBuilderV3<
-          com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> 
+              com.google.cloud.securitycenter.v1p1beta1.Folder,
+              com.google.cloud.securitycenter.v1p1beta1.Folder.Builder,
+              com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder>
           getFoldersFieldBuilder() {
         if (foldersBuilder_ == null) {
-          foldersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-              com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder>(
-                  folders_,
-                  ((bitField0_ & 0x00000002) != 0),
-                  getParentForChildren(),
-                  isClean());
+          foldersBuilder_ =
+              new com.google.protobuf.RepeatedFieldBuilderV3<
+                  com.google.cloud.securitycenter.v1p1beta1.Folder,
+                  com.google.cloud.securitycenter.v1p1beta1.Folder.Builder,
+                  com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder>(
+                  folders_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
           folders_ = null;
         }
         return foldersBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -2778,30 +3102,33 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties)
-    private static final com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties DEFAULT_INSTANCE;
+    private static final com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
+        DEFAULT_INSTANCE;
+
     static {
-      DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties();
+      DEFAULT_INSTANCE =
+          new com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties();
     }
 
-    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties getDefaultInstance() {
+    public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
+        getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public SecurityCenterProperties parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return new SecurityCenterProperties(input, extensionRegistry);
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public SecurityCenterProperties parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            return new SecurityCenterProperties(input, extensionRegistry);
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -2813,17 +3140,20 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties getDefaultInstanceForType() {
+    public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties
+        getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
-  public interface IamPolicyOrBuilder extends
+  public interface IamPolicyOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The JSON representation of the Policy associated with the asset.
      * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
@@ -2831,10 +3161,13 @@ public interface IamPolicyOrBuilder extends
      * 
* * string policy_blob = 1; + * * @return The policyBlob. */ java.lang.String getPolicyBlob(); /** + * + * *
      * The JSON representation of the Policy associated with the asset.
      * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
@@ -2842,12 +3175,14 @@ public interface IamPolicyOrBuilder extends
      * 
* * string policy_blob = 1; + * * @return The bytes for policyBlob. */ - com.google.protobuf.ByteString - getPolicyBlobBytes(); + com.google.protobuf.ByteString getPolicyBlobBytes(); } /** + * + * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -2857,31 +3192,31 @@ public interface IamPolicyOrBuilder extends
    *
    * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy}
    */
-  public static final class IamPolicy extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class IamPolicy extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy)
       IamPolicyOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use IamPolicy.newBuilder() to construct.
     private IamPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private IamPolicy() {
       policyBlob_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new IamPolicy();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private IamPolicy(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -2900,19 +3235,20 @@ private IamPolicy(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              policyBlob_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                policyBlob_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2920,29 +3256,33 @@ private IamPolicy(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.class, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder.class);
+              com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.class,
+              com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder.class);
     }
 
     public static final int POLICY_BLOB_FIELD_NUMBER = 1;
     private volatile java.lang.Object policyBlob_;
     /**
+     *
+     *
      * 
      * The JSON representation of the Policy associated with the asset.
      * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
@@ -2950,6 +3290,7 @@ private IamPolicy(
      * 
* * string policy_blob = 1; + * * @return The policyBlob. */ @java.lang.Override @@ -2958,14 +3299,15 @@ public java.lang.String getPolicyBlob() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyBlob_ = s; return s; } } /** + * + * *
      * The JSON representation of the Policy associated with the asset.
      * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
@@ -2973,16 +3315,15 @@ public java.lang.String getPolicyBlob() {
      * 
* * string policy_blob = 1; + * * @return The bytes for policyBlob. */ @java.lang.Override - public com.google.protobuf.ByteString - getPolicyBlobBytes() { + public com.google.protobuf.ByteString getPolicyBlobBytes() { java.lang.Object ref = policyBlob_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); policyBlob_ = b; return b; } else { @@ -2991,6 +3332,7 @@ public java.lang.String getPolicyBlob() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3002,8 +3344,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyBlob_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyBlob_); } @@ -3027,15 +3368,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy other = (com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) obj; + com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy other = + (com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) obj; - if (!getPolicyBlob() - .equals(other.getPolicyBlob())) return false; + if (!getPolicyBlob().equals(other.getPolicyBlob())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3055,87 +3396,94 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3145,6 +3493,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -3154,21 +3504,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy)
         com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
+            .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_fieldAccessorTable
+        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
+            .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.class, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder.class);
+                com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.class,
+                com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder.class);
       }
 
       // Construct using com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.newBuilder()
@@ -3176,16 +3529,15 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -3195,9 +3547,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
+            .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor;
       }
 
       @java.lang.Override
@@ -3216,7 +3568,8 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy build() {
 
       @java.lang.Override
       public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy buildPartial() {
-        com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy result = new com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy(this);
+        com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy result =
+            new com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy(this);
         result.policyBlob_ = policyBlob_;
         onBuilt();
         return result;
@@ -3226,38 +3579,41 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy buildPartial()
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) {
-          return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy)other);
+          return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -3265,7 +3621,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy other) {
-        if (other == com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance()) return this;
+        if (other == com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance())
+          return this;
         if (!other.getPolicyBlob().isEmpty()) {
           policyBlob_ = other.policyBlob_;
           onChanged();
@@ -3289,7 +3646,8 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -3301,6 +3659,8 @@ public Builder mergeFrom(
 
       private java.lang.Object policyBlob_ = "";
       /**
+       *
+       *
        * 
        * The JSON representation of the Policy associated with the asset.
        * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
@@ -3308,13 +3668,13 @@ public Builder mergeFrom(
        * 
* * string policy_blob = 1; + * * @return The policyBlob. */ public java.lang.String getPolicyBlob() { java.lang.Object ref = policyBlob_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyBlob_ = s; return s; @@ -3323,6 +3683,8 @@ public java.lang.String getPolicyBlob() { } } /** + * + * *
        * The JSON representation of the Policy associated with the asset.
        * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
@@ -3330,15 +3692,14 @@ public java.lang.String getPolicyBlob() {
        * 
* * string policy_blob = 1; + * * @return The bytes for policyBlob. */ - public com.google.protobuf.ByteString - getPolicyBlobBytes() { + public com.google.protobuf.ByteString getPolicyBlobBytes() { java.lang.Object ref = policyBlob_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); policyBlob_ = b; return b; } else { @@ -3346,6 +3707,8 @@ public java.lang.String getPolicyBlob() { } } /** + * + * *
        * The JSON representation of the Policy associated with the asset.
        * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
@@ -3353,20 +3716,22 @@ public java.lang.String getPolicyBlob() {
        * 
* * string policy_blob = 1; + * * @param value The policyBlob to set. * @return This builder for chaining. */ - public Builder setPolicyBlob( - java.lang.String value) { + public Builder setPolicyBlob(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + policyBlob_ = value; onChanged(); return this; } /** + * + * *
        * The JSON representation of the Policy associated with the asset.
        * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
@@ -3374,15 +3739,18 @@ public Builder setPolicyBlob(
        * 
* * string policy_blob = 1; + * * @return This builder for chaining. */ public Builder clearPolicyBlob() { - + policyBlob_ = getDefaultInstance().getPolicyBlob(); onChanged(); return this; } /** + * + * *
        * The JSON representation of the Policy associated with the asset.
        * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
@@ -3390,20 +3758,21 @@ public Builder clearPolicyBlob() {
        * 
* * string policy_blob = 1; + * * @param value The bytes for policyBlob to set. * @return This builder for chaining. */ - public Builder setPolicyBlobBytes( - com.google.protobuf.ByteString value) { + public Builder setPolicyBlobBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policyBlob_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3416,12 +3785,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) private static final com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy(); } @@ -3430,16 +3799,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IamPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IamPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IamPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IamPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3454,12 +3823,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -3468,6 +3838,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getDefaultInsta
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -3476,14 +3847,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -3492,16 +3864,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -3510,14 +3881,20 @@ public java.lang.String getName() { } public static final int SECURITY_CENTER_PROPERTIES_FIELD_NUMBER = 2; - private com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties securityCenterProperties_; + private com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties + securityCenterProperties_; /** + * + * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * * @return Whether the securityCenterProperties field is set. */ @java.lang.Override @@ -3525,47 +3902,65 @@ public boolean hasSecurityCenterProperties() { return securityCenterProperties_ != null; } /** + * + * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * * @return The securityCenterProperties. */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties getSecurityCenterProperties() { - return securityCenterProperties_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.getDefaultInstance() : securityCenterProperties_; + public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties + getSecurityCenterProperties() { + return securityCenterProperties_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties + .getDefaultInstance() + : securityCenterProperties_; } /** + * + * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder + getSecurityCenterPropertiesOrBuilder() { return getSecurityCenterProperties(); } public static final int RESOURCE_PROPERTIES_FIELD_NUMBER = 7; + private static final class ResourcePropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.Value> defaultEntry = + static final com.google.protobuf.MapEntry + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> resourceProperties_; + private com.google.protobuf.MapField - internalGetResourceProperties() { + resourceProperties_; + + private com.google.protobuf.MapField + internalGetResourceProperties() { if (resourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( ResourcePropertiesDefaultEntryHolder.defaultEntry); @@ -3577,6 +3972,8 @@ public int getResourcePropertiesCount() { return internalGetResourceProperties().getMap().size(); } /** + * + * *
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -3584,22 +3981,22 @@ public int getResourcePropertiesCount() {
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-
   @java.lang.Override
-  public boolean containsResourceProperties(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsResourceProperties(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetResourceProperties().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getResourcePropertiesMap()} instead.
-   */
+  /** Use {@link #getResourcePropertiesMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getResourceProperties() {
     return getResourcePropertiesMap();
   }
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -3608,11 +4005,12 @@ public java.util.Map getResourcePro
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
   @java.lang.Override
-
   public java.util.Map getResourcePropertiesMap() {
     return internalGetResourceProperties().getMap();
   }
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -3621,16 +4019,18 @@ public java.util.Map getResourcePro
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
   @java.lang.Override
-
   public com.google.protobuf.Value getResourcePropertiesOrDefault(
-      java.lang.String key,
-      com.google.protobuf.Value defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
+      java.lang.String key, com.google.protobuf.Value defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetResourceProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -3639,10 +4039,10 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
   @java.lang.Override
-
-  public com.google.protobuf.Value getResourcePropertiesOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetResourceProperties().getMap();
     if (!map.containsKey(key)) {
@@ -3654,12 +4054,15 @@ public com.google.protobuf.Value getResourcePropertiesOrThrow(
   public static final int SECURITY_MARKS_FIELD_NUMBER = 8;
   private com.google.cloud.securitycenter.v1p1beta1.SecurityMarks securityMarks_;
   /**
+   *
+   *
    * 
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; + * * @return Whether the securityMarks field is set. */ @java.lang.Override @@ -3667,19 +4070,26 @@ public boolean hasSecurityMarks() { return securityMarks_ != null; } /** + * + * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; + * * @return The securityMarks. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks() { - return securityMarks_ == null ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() + : securityMarks_; } /** + * + * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
@@ -3688,18 +4098,22 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks(
    * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;
    */
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() {
+  public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder
+      getSecurityMarksOrBuilder() {
     return getSecurityMarks();
   }
 
   public static final int CREATE_TIME_FIELD_NUMBER = 9;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -3707,11 +4121,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; + * * @return The createTime. */ @java.lang.Override @@ -3719,6 +4136,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time at which the asset was created in Security Command Center.
    * 
@@ -3733,11 +4152,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
* * .google.protobuf.Timestamp update_time = 10; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -3745,11 +4167,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
* * .google.protobuf.Timestamp update_time = 10; + * * @return The updateTime. */ @java.lang.Override @@ -3757,6 +4182,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
@@ -3771,6 +4198,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int IAM_POLICY_FIELD_NUMBER = 11; private com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iamPolicy_; /** + * + * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -3779,6 +4208,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; + * * @return Whether the iamPolicy field is set. */ @java.lang.Override @@ -3786,6 +4216,8 @@ public boolean hasIamPolicy() { return iamPolicy_ != null; } /** + * + * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -3794,13 +4226,18 @@ public boolean hasIamPolicy() {
    * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; + * * @return The iamPolicy. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getIamPolicy() { - return iamPolicy_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance() : iamPolicy_; + return iamPolicy_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance() + : iamPolicy_; } /** + * + * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -3811,13 +4248,16 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getIamPolicy()
    * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
    */
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder getIamPolicyOrBuilder() {
+  public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder
+      getIamPolicyOrBuilder() {
     return getIamPolicy();
   }
 
   public static final int CANONICAL_NAME_FIELD_NUMBER = 13;
   private volatile java.lang.Object canonicalName_;
   /**
+   *
+   *
    * 
    * The canonical name of the resource. It's either
    * "organizations/{organization_id}/assets/{asset_id}",
@@ -3827,6 +4267,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder getIam
    * 
* * string canonical_name = 13; + * * @return The canonicalName. */ @java.lang.Override @@ -3835,14 +4276,15 @@ public java.lang.String getCanonicalName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; } } /** + * + * *
    * The canonical name of the resource. It's either
    * "organizations/{organization_id}/assets/{asset_id}",
@@ -3852,16 +4294,15 @@ public java.lang.String getCanonicalName() {
    * 
* * string canonical_name = 13; + * * @return The bytes for canonicalName. */ @java.lang.Override - public com.google.protobuf.ByteString - getCanonicalNameBytes() { + public com.google.protobuf.ByteString getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -3870,6 +4311,7 @@ public java.lang.String getCanonicalName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3881,16 +4323,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (securityCenterProperties_ != null) { output.writeMessage(2, getSecurityCenterProperties()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetResourceProperties(), ResourcePropertiesDefaultEntryHolder.defaultEntry, @@ -3923,34 +4363,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (securityCenterProperties_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSecurityCenterProperties()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getSecurityCenterProperties()); } - for (java.util.Map.Entry entry - : internalGetResourceProperties().getMap().entrySet()) { + for (java.util.Map.Entry entry : + internalGetResourceProperties().getMap().entrySet()) { com.google.protobuf.MapEntry - resourceProperties__ = ResourcePropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, resourceProperties__); + resourceProperties__ = + ResourcePropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, resourceProperties__); } if (securityMarks_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSecurityMarks()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSecurityMarks()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); } if (iamPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getIamPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getIamPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, canonicalName_); @@ -3963,44 +4401,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.Asset)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.Asset other = (com.google.cloud.securitycenter.v1p1beta1.Asset) obj; + com.google.cloud.securitycenter.v1p1beta1.Asset other = + (com.google.cloud.securitycenter.v1p1beta1.Asset) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasSecurityCenterProperties() != other.hasSecurityCenterProperties()) return false; if (hasSecurityCenterProperties()) { - if (!getSecurityCenterProperties() - .equals(other.getSecurityCenterProperties())) return false; + if (!getSecurityCenterProperties().equals(other.getSecurityCenterProperties())) return false; } - if (!internalGetResourceProperties().equals( - other.internalGetResourceProperties())) return false; + if (!internalGetResourceProperties().equals(other.internalGetResourceProperties())) + return false; if (hasSecurityMarks() != other.hasSecurityMarks()) return false; if (hasSecurityMarks()) { - if (!getSecurityMarks() - .equals(other.getSecurityMarks())) return false; + if (!getSecurityMarks().equals(other.getSecurityMarks())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasIamPolicy() != other.hasIamPolicy()) return false; if (hasIamPolicy()) { - if (!getIamPolicy() - .equals(other.getIamPolicy())) return false; + if (!getIamPolicy().equals(other.getIamPolicy())) return false; } - if (!getCanonicalName() - .equals(other.getCanonicalName())) return false; + if (!getCanonicalName().equals(other.getCanonicalName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4045,97 +4477,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Asset parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.Asset parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.Asset parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.Asset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Security Command Center representation of a Google Cloud
    * resource.
@@ -4147,43 +4586,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.Asset)
       com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 7:
           return internalGetResourceProperties();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 7:
           return internalGetMutableResourceProperties();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1p1beta1.Asset.class, com.google.cloud.securitycenter.v1p1beta1.Asset.Builder.class);
+              com.google.cloud.securitycenter.v1p1beta1.Asset.class,
+              com.google.cloud.securitycenter.v1p1beta1.Asset.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1p1beta1.Asset.newBuilder()
@@ -4191,16 +4630,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -4243,9 +4681,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor;
     }
 
     @java.lang.Override
@@ -4264,7 +4702,8 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1p1beta1.Asset buildPartial() {
-      com.google.cloud.securitycenter.v1p1beta1.Asset result = new com.google.cloud.securitycenter.v1p1beta1.Asset(this);
+      com.google.cloud.securitycenter.v1p1beta1.Asset result =
+          new com.google.cloud.securitycenter.v1p1beta1.Asset(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (securityCenterPropertiesBuilder_ == null) {
@@ -4303,38 +4742,39 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1p1beta1.Asset) {
-        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Asset)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Asset) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -4342,7 +4782,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Asset other) {
-      if (other == com.google.cloud.securitycenter.v1p1beta1.Asset.getDefaultInstance()) return this;
+      if (other == com.google.cloud.securitycenter.v1p1beta1.Asset.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -4350,8 +4791,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Asset other)
       if (other.hasSecurityCenterProperties()) {
         mergeSecurityCenterProperties(other.getSecurityCenterProperties());
       }
-      internalGetMutableResourceProperties().mergeFrom(
-          other.internalGetResourceProperties());
+      internalGetMutableResourceProperties().mergeFrom(other.internalGetResourceProperties());
       if (other.hasSecurityMarks()) {
         mergeSecurityMarks(other.getSecurityMarks());
       }
@@ -4396,10 +4836,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4408,13 +4851,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -4423,6 +4866,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4431,15 +4876,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -4447,6 +4891,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4455,20 +4901,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4477,15 +4925,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The relative resource name of this asset. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -4494,61 +4945,84 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties securityCenterProperties_; + private com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties + securityCenterProperties_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder> securityCenterPropertiesBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties, + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder, + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder> + securityCenterPropertiesBuilder_; /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * * @return Whether the securityCenterProperties field is set. */ public boolean hasSecurityCenterProperties() { return securityCenterPropertiesBuilder_ != null || securityCenterProperties_ != null; } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * * @return The securityCenterProperties. */ - public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties getSecurityCenterProperties() { + public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties + getSecurityCenterProperties() { if (securityCenterPropertiesBuilder_ == null) { - return securityCenterProperties_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.getDefaultInstance() : securityCenterProperties_; + return securityCenterProperties_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties + .getDefaultInstance() + : securityCenterProperties_; } else { return securityCenterPropertiesBuilder_.getMessage(); } } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ - public Builder setSecurityCenterProperties(com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties value) { + public Builder setSecurityCenterProperties( + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties value) { if (securityCenterPropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4562,15 +5036,20 @@ public Builder setSecurityCenterProperties(com.google.cloud.securitycenter.v1p1b return this; } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ public Builder setSecurityCenterProperties( - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder builderForValue) { + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder + builderForValue) { if (securityCenterPropertiesBuilder_ == null) { securityCenterProperties_ = builderForValue.build(); onChanged(); @@ -4581,18 +5060,26 @@ public Builder setSecurityCenterProperties( return this; } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ - public Builder mergeSecurityCenterProperties(com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties value) { + public Builder mergeSecurityCenterProperties( + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties value) { if (securityCenterPropertiesBuilder_ == null) { if (securityCenterProperties_ != null) { securityCenterProperties_ = - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.newBuilder(securityCenterProperties_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.newBuilder( + securityCenterProperties_) + .mergeFrom(value) + .buildPartial(); } else { securityCenterProperties_ = value; } @@ -4604,12 +5091,16 @@ public Builder mergeSecurityCenterProperties(com.google.cloud.securitycenter.v1p return this; } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ public Builder clearSecurityCenterProperties() { if (securityCenterPropertiesBuilder_ == null) { @@ -4623,72 +5114,95 @@ public Builder clearSecurityCenterProperties() { return this; } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ - public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder getSecurityCenterPropertiesBuilder() { - + public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder + getSecurityCenterPropertiesBuilder() { + onChanged(); return getSecurityCenterPropertiesFieldBuilder().getBuilder(); } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ - public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder + getSecurityCenterPropertiesOrBuilder() { if (securityCenterPropertiesBuilder_ != null) { return securityCenterPropertiesBuilder_.getMessageOrBuilder(); } else { - return securityCenterProperties_ == null ? - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.getDefaultInstance() : securityCenterProperties_; + return securityCenterProperties_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties + .getDefaultInstance() + : securityCenterProperties_; } } /** + * + * *
      * Security Command Center managed properties. These properties are managed by
      * Security Command Center and cannot be modified by the user.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties, + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder, + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder> getSecurityCenterPropertiesFieldBuilder() { if (securityCenterPropertiesBuilder_ == null) { - securityCenterPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder>( - getSecurityCenterProperties(), - getParentForChildren(), - isClean()); + securityCenterPropertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties, + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder, + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder>( + getSecurityCenterProperties(), getParentForChildren(), isClean()); securityCenterProperties_ = null; } return securityCenterPropertiesBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> resourceProperties_; private com.google.protobuf.MapField - internalGetResourceProperties() { + resourceProperties_; + + private com.google.protobuf.MapField + internalGetResourceProperties() { if (resourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( ResourcePropertiesDefaultEntryHolder.defaultEntry); } return resourceProperties_; } + private com.google.protobuf.MapField - internalGetMutableResourceProperties() { - onChanged();; + internalGetMutableResourceProperties() { + onChanged(); + ; if (resourceProperties_ == null) { - resourceProperties_ = com.google.protobuf.MapField.newMapField( - ResourcePropertiesDefaultEntryHolder.defaultEntry); + resourceProperties_ = + com.google.protobuf.MapField.newMapField( + ResourcePropertiesDefaultEntryHolder.defaultEntry); } if (!resourceProperties_.isMutable()) { resourceProperties_ = resourceProperties_.copy(); @@ -4700,6 +5214,8 @@ public int getResourcePropertiesCount() { return internalGetResourceProperties().getMap().size(); } /** + * + * *
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -4707,22 +5223,22 @@ public int getResourcePropertiesCount() {
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
-
     @java.lang.Override
-    public boolean containsResourceProperties(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsResourceProperties(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetResourceProperties().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getResourcePropertiesMap()} instead.
-     */
+    /** Use {@link #getResourcePropertiesMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getResourceProperties() {
       return getResourcePropertiesMap();
     }
     /**
+     *
+     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -4731,11 +5247,12 @@ public java.util.Map getResourcePro
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
     @java.lang.Override
-
     public java.util.Map getResourcePropertiesMap() {
       return internalGetResourceProperties().getMap();
     }
     /**
+     *
+     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -4744,16 +5261,18 @@ public java.util.Map getResourcePro
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
     @java.lang.Override
-
     public com.google.protobuf.Value getResourcePropertiesOrDefault(
-        java.lang.String key,
-        com.google.protobuf.Value defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
+        java.lang.String key, com.google.protobuf.Value defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetResourceProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -4762,10 +5281,10 @@ public com.google.protobuf.Value getResourcePropertiesOrDefault(
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
     @java.lang.Override
-
-    public com.google.protobuf.Value getResourcePropertiesOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetResourceProperties().getMap();
       if (!map.containsKey(key)) {
@@ -4775,11 +5294,12 @@ public com.google.protobuf.Value getResourcePropertiesOrThrow(
     }
 
     public Builder clearResourceProperties() {
-      internalGetMutableResourceProperties().getMutableMap()
-          .clear();
+      internalGetMutableResourceProperties().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -4787,23 +5307,22 @@ public Builder clearResourceProperties() {
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
-
-    public Builder removeResourceProperties(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableResourceProperties().getMutableMap()
-          .remove(key);
+    public Builder removeResourceProperties(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableResourceProperties().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
     public java.util.Map
-    getMutableResourceProperties() {
+        getMutableResourceProperties() {
       return internalGetMutableResourceProperties().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -4811,19 +5330,20 @@ public Builder removeResourceProperties(
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
-    public Builder putResourceProperties(
-        java.lang.String key,
-        com.google.protobuf.Value value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putResourceProperties(java.lang.String key, com.google.protobuf.Value value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableResourceProperties().getMutableMap()
-          .put(key, value);
+      internalGetMutableResourceProperties().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Resource managed properties. These properties are managed and defined by
      * the Google Cloud resource and cannot be modified by the user.
@@ -4831,46 +5351,57 @@ public Builder putResourceProperties(
      *
      * map<string, .google.protobuf.Value> resource_properties = 7;
      */
-
     public Builder putAllResourceProperties(
         java.util.Map values) {
-      internalGetMutableResourceProperties().getMutableMap()
-          .putAll(values);
+      internalGetMutableResourceProperties().getMutableMap().putAll(values);
       return this;
     }
 
     private com.google.cloud.securitycenter.v1p1beta1.SecurityMarks securityMarks_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder> securityMarksBuilder_;
+            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks,
+            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder,
+            com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder>
+        securityMarksBuilder_;
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
      * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; + * * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; } /** + * + * *
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
      * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; + * * @return The securityMarks. */ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { - return securityMarks_ == null ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() + : securityMarks_; } else { return securityMarksBuilder_.getMessage(); } } /** + * + * *
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -4892,6 +5423,8 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.Securi
       return this;
     }
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -4911,6 +5444,8 @@ public Builder setSecurityMarks(
       return this;
     }
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -4918,11 +5453,14 @@ public Builder setSecurityMarks(
      *
      * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;
      */
-    public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks value) {
+    public Builder mergeSecurityMarks(
+        com.google.cloud.securitycenter.v1p1beta1.SecurityMarks value) {
       if (securityMarksBuilder_ == null) {
         if (securityMarks_ != null) {
           securityMarks_ =
-            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.newBuilder(securityMarks_).mergeFrom(value).buildPartial();
+              com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.newBuilder(securityMarks_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           securityMarks_ = value;
         }
@@ -4934,6 +5472,8 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.Secu
       return this;
     }
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -4953,6 +5493,8 @@ public Builder clearSecurityMarks() {
       return this;
     }
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -4960,12 +5502,15 @@ public Builder clearSecurityMarks() {
      *
      * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;
      */
-    public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder getSecurityMarksBuilder() {
-      
+    public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder
+        getSecurityMarksBuilder() {
+
       onChanged();
       return getSecurityMarksFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -4973,15 +5518,19 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder getSecuri
      *
      * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;
      */
-    public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() {
+    public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder
+        getSecurityMarksOrBuilder() {
       if (securityMarksBuilder_ != null) {
         return securityMarksBuilder_.getMessageOrBuilder();
       } else {
-        return securityMarks_ == null ?
-            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_;
+        return securityMarks_ == null
+            ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance()
+            : securityMarks_;
       }
     }
     /**
+     *
+     *
      * 
      * User specified security marks. These marks are entirely managed by the user
      * and come from the SecurityMarks resource that belongs to the asset.
@@ -4990,14 +5539,17 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecur
      * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder> 
+            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks,
+            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder,
+            com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder>
         getSecurityMarksFieldBuilder() {
       if (securityMarksBuilder_ == null) {
-        securityMarksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder>(
-                getSecurityMarks(),
-                getParentForChildren(),
-                isClean());
+        securityMarksBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.securitycenter.v1p1beta1.SecurityMarks,
+                com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder,
+                com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder>(
+                getSecurityMarks(), getParentForChildren(), isClean());
         securityMarks_ = null;
       }
       return securityMarksBuilder_;
@@ -5005,34 +5557,47 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecur
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5053,14 +5618,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 9; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -5071,6 +5637,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5081,7 +5649,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -5093,6 +5661,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5111,6 +5681,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5118,11 +5690,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 9; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5133,11 +5707,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time at which the asset was created in Security Command Center.
      * 
@@ -5145,14 +5722,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -5160,34 +5740,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
* * .google.protobuf.Timestamp update_time = 10; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
* * .google.protobuf.Timestamp update_time = 10; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5208,14 +5801,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
* * .google.protobuf.Timestamp update_time = 10; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -5226,6 +5820,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5236,7 +5832,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -5248,6 +5844,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5266,6 +5864,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5273,11 +5873,13 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 10; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5288,11 +5890,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * The time at which the asset was last updated or added in Cloud SCC.
      * 
@@ -5300,14 +5905,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -5315,8 +5923,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iamPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder> iamPolicyBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy, + com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder, + com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder> + iamPolicyBuilder_; /** + * + * *
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5325,12 +5938,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; + * * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return iamPolicyBuilder_ != null || iamPolicy_ != null; } /** + * + * *
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5339,16 +5955,21 @@ public boolean hasIamPolicy() {
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; + * * @return The iamPolicy. */ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getIamPolicy() { if (iamPolicyBuilder_ == null) { - return iamPolicy_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance() : iamPolicy_; + return iamPolicy_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance() + : iamPolicy_; } else { return iamPolicyBuilder_.getMessage(); } } /** + * + * *
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5372,6 +5993,8 @@ public Builder setIamPolicy(com.google.cloud.securitycenter.v1p1beta1.Asset.IamP
       return this;
     }
     /**
+     *
+     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5393,6 +6016,8 @@ public Builder setIamPolicy(
       return this;
     }
     /**
+     *
+     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5406,7 +6031,9 @@ public Builder mergeIamPolicy(com.google.cloud.securitycenter.v1p1beta1.Asset.Ia
       if (iamPolicyBuilder_ == null) {
         if (iamPolicy_ != null) {
           iamPolicy_ =
-            com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.newBuilder(iamPolicy_).mergeFrom(value).buildPartial();
+              com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.newBuilder(iamPolicy_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           iamPolicy_ = value;
         }
@@ -5418,6 +6045,8 @@ public Builder mergeIamPolicy(com.google.cloud.securitycenter.v1p1beta1.Asset.Ia
       return this;
     }
     /**
+     *
+     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5439,6 +6068,8 @@ public Builder clearIamPolicy() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5449,11 +6080,13 @@ public Builder clearIamPolicy() {
      * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
      */
     public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder getIamPolicyBuilder() {
-      
+
       onChanged();
       return getIamPolicyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5463,15 +6096,19 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder getIamP
      *
      * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
      */
-    public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder getIamPolicyOrBuilder() {
+    public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder
+        getIamPolicyOrBuilder() {
       if (iamPolicyBuilder_ != null) {
         return iamPolicyBuilder_.getMessageOrBuilder();
       } else {
-        return iamPolicy_ == null ?
-            com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance() : iamPolicy_;
+        return iamPolicy_ == null
+            ? com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance()
+            : iamPolicy_;
       }
     }
     /**
+     *
+     *
      * 
      * Cloud IAM Policy information associated with the Google Cloud resource
      * described by the Security Command Center asset. This information is managed
@@ -5482,14 +6119,17 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder getIam
      * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder> 
+            com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy,
+            com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder,
+            com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder>
         getIamPolicyFieldBuilder() {
       if (iamPolicyBuilder_ == null) {
-        iamPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder>(
-                getIamPolicy(),
-                getParentForChildren(),
-                isClean());
+        iamPolicyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy,
+                com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder,
+                com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder>(
+                getIamPolicy(), getParentForChildren(), isClean());
         iamPolicy_ = null;
       }
       return iamPolicyBuilder_;
@@ -5497,6 +6137,8 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder getIam
 
     private java.lang.Object canonicalName_ = "";
     /**
+     *
+     *
      * 
      * The canonical name of the resource. It's either
      * "organizations/{organization_id}/assets/{asset_id}",
@@ -5506,13 +6148,13 @@ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder getIam
      * 
* * string canonical_name = 13; + * * @return The canonicalName. */ public java.lang.String getCanonicalName() { java.lang.Object ref = canonicalName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; @@ -5521,6 +6163,8 @@ public java.lang.String getCanonicalName() { } } /** + * + * *
      * The canonical name of the resource. It's either
      * "organizations/{organization_id}/assets/{asset_id}",
@@ -5530,15 +6174,14 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 13; + * * @return The bytes for canonicalName. */ - public com.google.protobuf.ByteString - getCanonicalNameBytes() { + public com.google.protobuf.ByteString getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -5546,6 +6189,8 @@ public java.lang.String getCanonicalName() { } } /** + * + * *
      * The canonical name of the resource. It's either
      * "organizations/{organization_id}/assets/{asset_id}",
@@ -5555,20 +6200,22 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 13; + * * @param value The canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalName( - java.lang.String value) { + public Builder setCanonicalName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + canonicalName_ = value; onChanged(); return this; } /** + * + * *
      * The canonical name of the resource. It's either
      * "organizations/{organization_id}/assets/{asset_id}",
@@ -5578,15 +6225,18 @@ public Builder setCanonicalName(
      * 
* * string canonical_name = 13; + * * @return This builder for chaining. */ public Builder clearCanonicalName() { - + canonicalName_ = getDefaultInstance().getCanonicalName(); onChanged(); return this; } /** + * + * *
      * The canonical name of the resource. It's either
      * "organizations/{organization_id}/assets/{asset_id}",
@@ -5596,23 +6246,23 @@ public Builder clearCanonicalName() {
      * 
* * string canonical_name = 13; + * * @param value The bytes for canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalNameBytes( - com.google.protobuf.ByteString value) { + public Builder setCanonicalNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5622,12 +6272,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.Asset) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.Asset) private static final com.google.cloud.securitycenter.v1p1beta1.Asset DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.Asset(); } @@ -5636,16 +6286,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.Asset getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Asset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Asset(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Asset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Asset(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5660,6 +6310,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.Asset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetName.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetName.java similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetName.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetName.java diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java similarity index 79% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java index ddef71598..6afcd4752 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/asset.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface AssetOrBuilder extends +public interface AssetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.Asset) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -16,10 +34,13 @@ public interface AssetOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The relative resource name of this asset. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -28,42 +49,60 @@ public interface AssetOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * * @return Whether the securityCenterProperties field is set. */ boolean hasSecurityCenterProperties(); /** + * + * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * * @return The securityCenterProperties. */ - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties getSecurityCenterProperties(); + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties + getSecurityCenterProperties(); /** + * + * *
    * Security Command Center managed properties. These properties are managed by
    * Security Command Center and cannot be modified by the user.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * + * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; + * */ - com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder(); + com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder + getSecurityCenterPropertiesOrBuilder(); /** + * + * *
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -73,6 +112,8 @@ public interface AssetOrBuilder extends
    */
   int getResourcePropertiesCount();
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -80,15 +121,13 @@ public interface AssetOrBuilder extends
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-  boolean containsResourceProperties(
-      java.lang.String key);
-  /**
-   * Use {@link #getResourcePropertiesMap()} instead.
-   */
+  boolean containsResourceProperties(java.lang.String key);
+  /** Use {@link #getResourcePropertiesMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getResourceProperties();
+  java.util.Map getResourceProperties();
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -96,9 +135,10 @@ boolean containsResourceProperties(
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-  java.util.Map
-  getResourcePropertiesMap();
+  java.util.Map getResourcePropertiesMap();
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -108,11 +148,13 @@ boolean containsResourceProperties(
    */
 
   /* nullable */
-com.google.protobuf.Value getResourcePropertiesOrDefault(
+  com.google.protobuf.Value getResourcePropertiesOrDefault(
       java.lang.String key,
       /* nullable */
-com.google.protobuf.Value defaultValue);
+      com.google.protobuf.Value defaultValue);
   /**
+   *
+   *
    * 
    * Resource managed properties. These properties are managed and defined by
    * the Google Cloud resource and cannot be modified by the user.
@@ -120,31 +162,37 @@ com.google.protobuf.Value getResourcePropertiesOrDefault(
    *
    * map<string, .google.protobuf.Value> resource_properties = 7;
    */
-
-  com.google.protobuf.Value getResourcePropertiesOrThrow(
-      java.lang.String key);
+  com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; + * * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** + * + * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
    * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; + * * @return The securityMarks. */ com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks(); /** + * + * *
    * User specified security marks. These marks are entirely managed by the user
    * and come from the SecurityMarks resource that belongs to the asset.
@@ -155,24 +203,32 @@ com.google.protobuf.Value getResourcePropertiesOrThrow(
   com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder();
 
   /**
+   *
+   *
    * 
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time at which the asset was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 9; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time at which the asset was created in Security Command Center.
    * 
@@ -182,24 +238,32 @@ com.google.protobuf.Value getResourcePropertiesOrThrow( com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
* * .google.protobuf.Timestamp update_time = 10; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
* * .google.protobuf.Timestamp update_time = 10; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The time at which the asset was last updated or added in Cloud SCC.
    * 
@@ -209,6 +273,8 @@ com.google.protobuf.Value getResourcePropertiesOrThrow( com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -217,10 +283,13 @@ com.google.protobuf.Value getResourcePropertiesOrThrow(
    * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; + * * @return Whether the iamPolicy field is set. */ boolean hasIamPolicy(); /** + * + * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -229,10 +298,13 @@ com.google.protobuf.Value getResourcePropertiesOrThrow(
    * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; + * * @return The iamPolicy. */ com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getIamPolicy(); /** + * + * *
    * Cloud IAM Policy information associated with the Google Cloud resource
    * described by the Security Command Center asset. This information is managed
@@ -245,6 +317,8 @@ com.google.protobuf.Value getResourcePropertiesOrThrow(
   com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder getIamPolicyOrBuilder();
 
   /**
+   *
+   *
    * 
    * The canonical name of the resource. It's either
    * "organizations/{organization_id}/assets/{asset_id}",
@@ -254,10 +328,13 @@ com.google.protobuf.Value getResourcePropertiesOrThrow(
    * 
* * string canonical_name = 13; + * * @return The canonicalName. */ java.lang.String getCanonicalName(); /** + * + * *
    * The canonical name of the resource. It's either
    * "organizations/{organization_id}/assets/{asset_id}",
@@ -267,8 +344,8 @@ com.google.protobuf.Value getResourcePropertiesOrThrow(
    * 
* * string canonical_name = 13; + * * @return The bytes for canonicalName. */ - com.google.protobuf.ByteString - getCanonicalNameBytes(); + com.google.protobuf.ByteString getCanonicalNameBytes(); } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOuterClass.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOuterClass.java new file mode 100644 index 000000000..dc8f08f74 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/AssetOuterClass.java @@ -0,0 +1,177 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/asset.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class AssetOuterClass { + private AssetOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/securitycenter/v1p1beta1/" + + "asset.proto\022%google.cloud.securitycenter" + + ".v1p1beta1\032\031google/api/resource.proto\0322g" + + "oogle/cloud/securitycenter/v1p1beta1/fol" + + "der.proto\032:google/cloud/securitycenter/v" + + "1p1beta1/security_marks.proto\032\034google/pr" + + "otobuf/struct.proto\032\037google/protobuf/tim" + + "estamp.proto\032\034google/api/annotations.pro" + + "to\"\314\010\n\005Asset\022\014\n\004name\030\001 \001(\t\022i\n\032security_c" + + "enter_properties\030\002 \001(\0132E.google.cloud.se" + + "curitycenter.v1p1beta1.Asset.SecurityCen" + + "terProperties\022a\n\023resource_properties\030\007 \003" + + "(\0132D.google.cloud.securitycenter.v1p1bet" + + "a1.Asset.ResourcePropertiesEntry\022L\n\016secu" + + "rity_marks\030\010 \001(\01324.google.cloud.security" + + "center.v1p1beta1.SecurityMarks\022/\n\013create" + + "_time\030\t \001(\0132\032.google.protobuf.Timestamp\022" + + "/\n\013update_time\030\n \001(\0132\032.google.protobuf.T" + + "imestamp\022J\n\niam_policy\030\013 \001(\01326.google.cl" + + "oud.securitycenter.v1p1beta1.Asset.IamPo" + + "licy\022\026\n\016canonical_name\030\r \001(\t\032\300\002\n\030Securit" + + "yCenterProperties\022\025\n\rresource_name\030\001 \001(\t" + + "\022\025\n\rresource_type\030\002 \001(\t\022\027\n\017resource_pare" + + "nt\030\003 \001(\t\022\030\n\020resource_project\030\004 \001(\t\022\027\n\017re" + + "source_owners\030\005 \003(\t\022\035\n\025resource_display_" + + "name\030\006 \001(\t\022$\n\034resource_parent_display_na" + + "me\030\007 \001(\t\022%\n\035resource_project_display_nam" + + "e\030\010 \001(\t\022>\n\007folders\030\n \003(\0132-.google.cloud." + + "securitycenter.v1p1beta1.Folder\032 \n\tIamPo" + + "licy\022\023\n\013policy_blob\030\001 \001(\t\032Q\n\027ResourcePro" + + "pertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\013" + + "2\026.google.protobuf.Value:\0028\001:\232\001\352A\226\001\n#sec" + + "uritycenter.googleapis.com/Asset\022+organi" + + "zations/{organization}/assets/{asset}\022\037f" + + "olders/{folder}/assets/{asset}\022!projects" + + "/{project}/assets/{asset}B\375\001\n)com.google" + + ".cloud.securitycenter.v1p1beta1P\001ZSgoogl" + + "e.golang.org/genproto/googleapis/cloud/s" + + "ecuritycenter/v1p1beta1;securitycenter\252\002" + + "%Google.Cloud.SecurityCenter.V1P1Beta1\312\002" + + "%Google\\Cloud\\SecurityCenter\\V1p1beta1\352\002" + + "(Google::Cloud::SecurityCenter::V1p1beta" + + "1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor, + new java.lang.String[] { + "Name", + "SecurityCenterProperties", + "ResourceProperties", + "SecurityMarks", + "CreateTime", + "UpdateTime", + "IamPolicy", + "CanonicalName", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor, + new java.lang.String[] { + "ResourceName", + "ResourceType", + "ResourceParent", + "ResourceProject", + "ResourceOwners", + "ResourceDisplayName", + "ResourceParentDisplayName", + "ResourceProjectDisplayName", + "Folders", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor, + new java.lang.String[] { + "PolicyBlob", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java similarity index 65% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java index 643f12231..9d29b544e 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Request message for creating a finding.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.CreateFindingRequest} */ -public final class CreateFindingRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateFindingRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) CreateFindingRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateFindingRequest.newBuilder() to construct. private CreateFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateFindingRequest() { parent_ = ""; findingId_ = ""; @@ -26,16 +44,15 @@ private CreateFindingRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,44 @@ private CreateFindingRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - findingId_ = s; - break; - } - case 26: { - com.google.cloud.securitycenter.v1p1beta1.Finding.Builder subBuilder = null; - if (finding_ != null) { - subBuilder = finding_.toBuilder(); + parent_ = s; + break; } - finding_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Finding.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(finding_); - finding_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + findingId_ = s; + break; } + case 26: + { + com.google.cloud.securitycenter.v1p1beta1.Finding.Builder subBuilder = null; + if (finding_ != null) { + subBuilder = finding_.toBuilder(); + } + finding_ = + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.Finding.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finding_); + finding_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +116,42 @@ private CreateFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.class, com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.class, + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -130,30 +160,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -164,11 +196,14 @@ public java.lang.String getParent() { public static final int FINDING_ID_FIELD_NUMBER = 2; private volatile java.lang.Object findingId_; /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The findingId. */ @java.lang.Override @@ -177,29 +212,29 @@ public java.lang.String getFindingId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingId_ = s; return s; } } /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for findingId. */ @java.lang.Override - public com.google.protobuf.ByteString - getFindingIdBytes() { + public com.google.protobuf.ByteString getFindingIdBytes() { java.lang.Object ref = findingId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); findingId_ = b; return b; } else { @@ -210,12 +245,17 @@ public java.lang.String getFindingId() { public static final int FINDING_FIELD_NUMBER = 3; private com.google.cloud.securitycenter.v1p1beta1.Finding finding_; /** + * + * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the finding field is set. */ @java.lang.Override @@ -223,25 +263,36 @@ public boolean hasFinding() { return finding_ != null; } /** + * + * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { - return finding_ == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() + : finding_; } /** + * + * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder() { @@ -249,6 +300,7 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,8 +312,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -287,8 +338,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, findingId_); } if (finding_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getFinding()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFinding()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -298,21 +348,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest other = (com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest other = + (com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFindingId() - .equals(other.getFindingId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFindingId().equals(other.getFindingId())) return false; if (hasFinding() != other.hasFinding()) return false; if (hasFinding()) { - if (!getFinding() - .equals(other.getFinding())) return false; + if (!getFinding().equals(other.getFinding())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -339,117 +387,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for creating a finding.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.CreateFindingRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.class, com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.class, + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.newBuilder() @@ -457,16 +515,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -484,13 +541,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.getDefaultInstance(); } @@ -505,7 +563,8 @@ public com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest result = new com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest(this); + com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest result = + new com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest(this); result.parent_ = parent_; result.findingId_ = findingId_; if (findingBuilder_ == null) { @@ -521,38 +580,39 @@ public com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) other); } else { super.mergeFrom(other); return this; @@ -560,7 +620,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -591,7 +653,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -603,19 +667,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -624,21 +692,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -646,57 +717,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the new finding's parent. Its format should be
      * "organizations/[organization_id]/sources/[source_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -704,18 +788,20 @@ public Builder setParentBytes( private java.lang.Object findingId_ = ""; /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The findingId. */ public java.lang.String getFindingId() { java.lang.Object ref = findingId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingId_ = s; return s; @@ -724,20 +810,21 @@ public java.lang.String getFindingId() { } } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for findingId. */ - public com.google.protobuf.ByteString - getFindingIdBytes() { + public com.google.protobuf.ByteString getFindingIdBytes() { java.lang.Object ref = findingId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); findingId_ = b; return b; } else { @@ -745,54 +832,61 @@ public java.lang.String getFindingId() { } } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The findingId to set. * @return This builder for chaining. */ - public Builder setFindingId( - java.lang.String value) { + public Builder setFindingId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + findingId_ = value; onChanged(); return this; } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFindingId() { - + findingId_ = getDefaultInstance().getFindingId(); onChanged(); return this; } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for findingId to set. * @return This builder for chaining. */ - public Builder setFindingIdBytes( - com.google.protobuf.ByteString value) { + public Builder setFindingIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingId_ = value; onChanged(); return this; @@ -800,42 +894,61 @@ public Builder setFindingIdBytes( private com.google.cloud.securitycenter.v1p1beta1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> findingBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Finding, + com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, + com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> + findingBuilder_; /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The finding. */ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { if (findingBuilder_ == null) { - return finding_ == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() + : finding_; } else { return findingBuilder_.getMessage(); } } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFinding(com.google.cloud.securitycenter.v1p1beta1.Finding value) { if (findingBuilder_ == null) { @@ -851,12 +964,16 @@ public Builder setFinding(com.google.cloud.securitycenter.v1p1beta1.Finding valu return this; } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFinding( com.google.cloud.securitycenter.v1p1beta1.Finding.Builder builderForValue) { @@ -870,18 +987,24 @@ public Builder setFinding( return this; } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFinding(com.google.cloud.securitycenter.v1p1beta1.Finding value) { if (findingBuilder_ == null) { if (finding_ != null) { finding_ = - com.google.cloud.securitycenter.v1p1beta1.Finding.newBuilder(finding_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.Finding.newBuilder(finding_) + .mergeFrom(value) + .buildPartial(); } else { finding_ = value; } @@ -893,12 +1016,16 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1p1beta1.Finding va return this; } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFinding() { if (findingBuilder_ == null) { @@ -912,58 +1039,74 @@ public Builder clearFinding() { return this; } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1p1beta1.Finding.Builder getFindingBuilder() { - + onChanged(); return getFindingFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder() { if (findingBuilder_ != null) { return findingBuilder_.getMessageOrBuilder(); } else { - return finding_ == null ? - com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() + : finding_; } } /** + * + * *
      * Required. The Finding being created. The name and security_marks will be ignored as
      * they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.Finding, + com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, + com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> getFindingFieldBuilder() { if (findingBuilder_ == null) { - findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder>( - getFinding(), - getParentForChildren(), - isClean()); + findingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Finding, + com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, + com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder>( + getFinding(), getParentForChildren(), isClean()); finding_ = null; } return findingBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -973,30 +1116,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest(); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFindingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFindingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFindingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1008,9 +1153,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequestOrBuilder.java index 8dffedfe9..c36e83c69 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateFindingRequestOrBuilder.java @@ -1,81 +1,125 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface CreateFindingRequestOrBuilder extends +public interface CreateFindingRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.CreateFindingRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the new finding's parent. Its format should be
    * "organizations/[organization_id]/sources/[source_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The findingId. */ java.lang.String getFindingId(); /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * 
* * string finding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for findingId. */ - com.google.protobuf.ByteString - getFindingIdBytes(); + com.google.protobuf.ByteString getFindingIdBytes(); /** + * + * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the finding field is set. */ boolean hasFinding(); /** + * + * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The finding. */ com.google.cloud.securitycenter.v1p1beta1.Finding getFinding(); /** + * + * *
    * Required. The Finding being created. The name and security_marks will be ignored as
    * they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java similarity index 63% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java index b79d0f6d2..dda191fbe 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Request message for creating a notification config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest} */ -public final class CreateNotificationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) CreateNotificationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateNotificationConfigRequest.newBuilder() to construct. - private CreateNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateNotificationConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateNotificationConfigRequest() { parent_ = ""; configId_ = ""; @@ -26,16 +45,15 @@ private CreateNotificationConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateNotificationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateNotificationConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +72,45 @@ private CreateNotificationConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - configId_ = s; - break; - } - case 26: { - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder subBuilder = null; - if (notificationConfig_ != null) { - subBuilder = notificationConfig_.toBuilder(); + parent_ = s; + break; } - notificationConfig_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(notificationConfig_); - notificationConfig_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + configId_ = s; + break; } + case 26: + { + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder subBuilder = + null; + if (notificationConfig_ != null) { + subBuilder = notificationConfig_.toBuilder(); + } + notificationConfig_ = + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(notificationConfig_); + notificationConfig_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +118,43 @@ private CreateNotificationConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.class, com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.class, + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.Builder + .class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the new notification config's parent. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -130,30 +163,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the new notification config's parent. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -164,6 +199,8 @@ public java.lang.String getParent() { public static final int CONFIG_ID_FIELD_NUMBER = 2; private volatile java.lang.Object configId_; /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be between 1 and 128 characters, and contains alphanumeric
@@ -171,6 +208,7 @@ public java.lang.String getParent() {
    * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The configId. */ @java.lang.Override @@ -179,14 +217,15 @@ public java.lang.String getConfigId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configId_ = s; return s; } } /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be between 1 and 128 characters, and contains alphanumeric
@@ -194,16 +233,15 @@ public java.lang.String getConfigId() {
    * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for configId. */ @java.lang.Override - public com.google.protobuf.ByteString - getConfigIdBytes() { + public com.google.protobuf.ByteString getConfigIdBytes() { java.lang.Object ref = configId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); configId_ = b; return b; } else { @@ -214,12 +252,17 @@ public java.lang.String getConfigId() { public static final int NOTIFICATION_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.securitycenter.v1p1beta1.NotificationConfig notificationConfig_; /** + * + * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the notificationConfig field is set. */ @java.lang.Override @@ -227,32 +270,45 @@ public boolean hasNotificationConfig() { return notificationConfig_ != null; } /** + * + * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationConfig. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig() { - return notificationConfig_ == null ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() : notificationConfig_; + return notificationConfig_ == null + ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() + : notificationConfig_; } /** + * + * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder + getNotificationConfigOrBuilder() { return getNotificationConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,8 +320,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -291,8 +346,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, configId_); } if (notificationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getNotificationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNotificationConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -302,21 +356,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest)) { + if (!(obj + instanceof com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest other = (com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest other = + (com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getConfigId() - .equals(other.getConfigId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getConfigId().equals(other.getConfigId())) return false; if (hasNotificationConfig() != other.hasNotificationConfig()) return false; if (hasNotificationConfig()) { - if (!getNotificationConfig() - .equals(other.getNotificationConfig())) return false; + if (!getNotificationConfig().equals(other.getNotificationConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -343,134 +396,146 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for creating a notification config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.class, com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.class, + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.Builder + .class); } - // Construct using com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -488,19 +553,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest build() { - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest result = buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -508,8 +576,10 @@ public com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest result = new com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest(this); + public com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest + buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest result = + new com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest(this); result.parent_ = parent_; result.configId_ = configId_; if (notificationConfigBuilder_ == null) { @@ -525,46 +595,52 @@ public com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest)other); + if (other + instanceof com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) { + return mergeFrom( + (com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest other) { + if (other + == com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -591,11 +667,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parsedMessage = null; + com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -607,19 +686,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the new notification config's parent. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -628,21 +711,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the new notification config's parent. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -650,57 +736,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the new notification config's parent. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the new notification config's parent. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the new notification config's parent. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -708,6 +807,8 @@ public Builder setParentBytes( private java.lang.Object configId_ = ""; /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be between 1 and 128 characters, and contains alphanumeric
@@ -715,13 +816,13 @@ public Builder setParentBytes(
      * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The configId. */ public java.lang.String getConfigId() { java.lang.Object ref = configId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configId_ = s; return s; @@ -730,6 +831,8 @@ public java.lang.String getConfigId() { } } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be between 1 and 128 characters, and contains alphanumeric
@@ -737,15 +840,14 @@ public java.lang.String getConfigId() {
      * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for configId. */ - public com.google.protobuf.ByteString - getConfigIdBytes() { + public com.google.protobuf.ByteString getConfigIdBytes() { java.lang.Object ref = configId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); configId_ = b; return b; } else { @@ -753,6 +855,8 @@ public java.lang.String getConfigId() { } } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be between 1 and 128 characters, and contains alphanumeric
@@ -760,20 +864,22 @@ public java.lang.String getConfigId() {
      * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The configId to set. * @return This builder for chaining. */ - public Builder setConfigId( - java.lang.String value) { + public Builder setConfigId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + configId_ = value; onChanged(); return this; } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be between 1 and 128 characters, and contains alphanumeric
@@ -781,15 +887,18 @@ public Builder setConfigId(
      * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearConfigId() { - + configId_ = getDefaultInstance().getConfigId(); onChanged(); return this; } /** + * + * *
      * Required. Unique identifier provided by the client within the parent scope.
      * It must be between 1 and 128 characters, and contains alphanumeric
@@ -797,16 +906,16 @@ public Builder clearConfigId() {
      * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for configId to set. * @return This builder for chaining. */ - public Builder setConfigIdBytes( - com.google.protobuf.ByteString value) { + public Builder setConfigIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + configId_ = value; onChanged(); return this; @@ -814,44 +923,64 @@ public Builder setConfigIdBytes( private com.google.cloud.securitycenter.v1p1beta1.NotificationConfig notificationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> notificationConfigBuilder_; + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> + notificationConfigBuilder_; /** + * + * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the notificationConfig field is set. */ public boolean hasNotificationConfig() { return notificationConfigBuilder_ != null || notificationConfig_ != null; } /** + * + * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationConfig. */ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig() { if (notificationConfigBuilder_ == null) { - return notificationConfig_ == null ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() : notificationConfig_; + return notificationConfig_ == null + ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() + : notificationConfig_; } else { return notificationConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { + public Builder setNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { if (notificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -865,12 +994,16 @@ public Builder setNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.N return this; } /** + * + * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNotificationConfig( com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder builderForValue) { @@ -884,18 +1017,26 @@ public Builder setNotificationConfig( return this; } /** + * + * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { + public Builder mergeNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { if (notificationConfigBuilder_ == null) { if (notificationConfig_ != null) { notificationConfig_ = - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.newBuilder(notificationConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.newBuilder( + notificationConfig_) + .mergeFrom(value) + .buildPartial(); } else { notificationConfig_ = value; } @@ -907,12 +1048,16 @@ public Builder mergeNotificationConfig(com.google.cloud.securitycenter.v1p1beta1 return this; } /** + * + * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNotificationConfig() { if (notificationConfigBuilder_ == null) { @@ -926,58 +1071,76 @@ public Builder clearNotificationConfig() { return this; } /** + * + * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder getNotificationConfigBuilder() { - + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder + getNotificationConfigBuilder() { + onChanged(); return getNotificationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder + getNotificationConfigOrBuilder() { if (notificationConfigBuilder_ != null) { return notificationConfigBuilder_.getMessageOrBuilder(); } else { - return notificationConfig_ == null ? - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() : notificationConfig_; + return notificationConfig_ == null + ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() + : notificationConfig_; } } /** + * + * *
      * Required. The notification config being created. The name and the service account
      * will be ignored as they are both output only fields on this resource.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> getNotificationConfigFieldBuilder() { if (notificationConfigBuilder_ == null) { - notificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder>( - getNotificationConfig(), - getParentForChildren(), - isClean()); + notificationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder>( + getNotificationConfig(), getParentForChildren(), isClean()); notificationConfig_ = null; } return notificationConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -987,30 +1150,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest(); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateNotificationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateNotificationConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateNotificationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateNotificationConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1022,9 +1188,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequestOrBuilder.java index 4952e4f58..a6f80917f 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateNotificationConfigRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface CreateNotificationConfigRequestOrBuilder extends +public interface CreateNotificationConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the new notification config's parent. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the new notification config's parent. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be between 1 and 128 characters, and contains alphanumeric
@@ -37,10 +64,13 @@ public interface CreateNotificationConfigRequestOrBuilder extends
    * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The configId. */ java.lang.String getConfigId(); /** + * + * *
    * Required. Unique identifier provided by the client within the parent scope.
    * It must be between 1 and 128 characters, and contains alphanumeric
@@ -48,38 +78,53 @@ public interface CreateNotificationConfigRequestOrBuilder extends
    * 
* * string config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for configId. */ - com.google.protobuf.ByteString - getConfigIdBytes(); + com.google.protobuf.ByteString getConfigIdBytes(); /** + * + * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the notificationConfig field is set. */ boolean hasNotificationConfig(); /** + * + * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationConfig. */ com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig(); /** + * + * *
    * Required. The notification config being created. The name and the service account
    * will be ignored as they are both output only fields on this resource.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder getNotificationConfigOrBuilder(); + com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder + getNotificationConfigOrBuilder(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java similarity index 64% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java index 5187cec1d..22b2d654e 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Request message for creating a source.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.CreateSourceRequest} */ -public final class CreateSourceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateSourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) CreateSourceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateSourceRequest.newBuilder() to construct. private CreateSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateSourceRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateSourceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,36 @@ private CreateSourceRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.securitycenter.v1p1beta1.Source.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); + parent_ = s; + break; } - source_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Source.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.securitycenter.v1p1beta1.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,35 +107,42 @@ private CreateSourceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.class, com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.class, + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,30 +151,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -157,12 +187,17 @@ public java.lang.String getParent() { public static final int SOURCE_FIELD_NUMBER = 2; private com.google.cloud.securitycenter.v1p1beta1.Source source_; /** + * + * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the source field is set. */ @java.lang.Override @@ -170,25 +205,36 @@ public boolean hasSource() { return source_ != null; } /** + * + * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The source. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Source getSource() { - return source_ == null ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() + : source_; } /** + * + * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuilder() { @@ -196,6 +242,7 @@ public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuil } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,8 +254,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -228,8 +274,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (source_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -239,19 +284,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest other = (com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest other = + (com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasSource() != other.hasSource()) return false; if (hasSource()) { - if (!getSource() - .equals(other.getSource())) return false; + if (!getSource().equals(other.getSource())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -276,117 +320,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for creating a source.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.CreateSourceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.class, com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.class, + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.newBuilder() @@ -394,16 +448,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -419,13 +472,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.getDefaultInstance(); } @@ -440,7 +494,8 @@ public com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest result = new com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest(this); + com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest result = + new com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest(this); result.parent_ = parent_; if (sourceBuilder_ == null) { result.source_ = source_; @@ -455,38 +510,39 @@ public com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) other); } else { super.mergeFrom(other); return this; @@ -494,7 +550,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -521,7 +579,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -533,19 +593,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -554,21 +618,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -576,57 +643,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the new source's parent. Its format should be
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -634,42 +714,61 @@ public Builder setParentBytes( private com.google.cloud.securitycenter.v1p1beta1.Source source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Source, com.google.cloud.securitycenter.v1p1beta1.Source.Builder, com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> sourceBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Source, + com.google.cloud.securitycenter.v1p1beta1.Source.Builder, + com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> + sourceBuilder_; /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The source. */ public com.google.cloud.securitycenter.v1p1beta1.Source getSource() { if (sourceBuilder_ == null) { - return source_ == null ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() + : source_; } else { return sourceBuilder_.getMessage(); } } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSource(com.google.cloud.securitycenter.v1p1beta1.Source value) { if (sourceBuilder_ == null) { @@ -685,12 +784,16 @@ public Builder setSource(com.google.cloud.securitycenter.v1p1beta1.Source value) return this; } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSource( com.google.cloud.securitycenter.v1p1beta1.Source.Builder builderForValue) { @@ -704,18 +807,24 @@ public Builder setSource( return this; } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSource(com.google.cloud.securitycenter.v1p1beta1.Source value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = - com.google.cloud.securitycenter.v1p1beta1.Source.newBuilder(source_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.Source.newBuilder(source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -727,12 +836,16 @@ public Builder mergeSource(com.google.cloud.securitycenter.v1p1beta1.Source valu return this; } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSource() { if (sourceBuilder_ == null) { @@ -746,58 +859,74 @@ public Builder clearSource() { return this; } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1p1beta1.Source.Builder getSourceBuilder() { - + onChanged(); return getSourceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { - return source_ == null ? - com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() + : source_; } } /** + * + * *
      * Required. The Source being created, only the display_name and description will be
      * used. All other fields will be ignored.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Source, com.google.cloud.securitycenter.v1p1beta1.Source.Builder, com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.Source, + com.google.cloud.securitycenter.v1p1beta1.Source.Builder, + com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { - sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Source, com.google.cloud.securitycenter.v1p1beta1.Source.Builder, com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder>( - getSource(), - getParentForChildren(), - isClean()); + sourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Source, + com.google.cloud.securitycenter.v1p1beta1.Source.Builder, + com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder>( + getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -807,12 +936,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest(); } @@ -821,16 +951,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSourceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateSourceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateSourceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -845,6 +975,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequestOrBuilder.java index 07ce34a30..11a90fff2 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/CreateSourceRequestOrBuilder.java @@ -1,61 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface CreateSourceRequestOrBuilder extends +public interface CreateSourceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.CreateSourceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the new source's parent. Its format should be
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the source field is set. */ boolean hasSource(); /** + * + * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The source. */ com.google.cloud.securitycenter.v1p1beta1.Source getSource(); /** + * + * *
    * Required. The Source being created, only the display_name and description will be
    * used. All other fields will be ignored.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuilder(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java similarity index 60% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java index 87b2a6174..d3dbe88a7 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequest.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Request message for deleting a notification config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest} */ -public final class DeleteNotificationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) DeleteNotificationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteNotificationConfigRequest.newBuilder() to construct. - private DeleteNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteNotificationConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteNotificationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteNotificationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteNotificationConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +71,20 @@ private DeleteNotificationConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +92,43 @@ private DeleteNotificationConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.class, com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.class, + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.Builder + .class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the notification config to delete. Its format is
    * "organizations/[organization_id]/notificationConfigs/[config_id]".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +137,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the notification config to delete. Its format is
    * "organizations/[organization_id]/notificationConfigs/[config_id]".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +207,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest)) { + if (!(obj + instanceof com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest other = (com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest other = + (com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,134 +236,146 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for deleting a notification config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.class, com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.class, + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.Builder + .class); } - // Construct using com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,19 +385,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest build() { - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest result = buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -363,8 +408,10 @@ public com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest result = new com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest(this); + public com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest + buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest result = + new com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +421,52 @@ public com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest)other); + if (other + instanceof com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) { + return mergeFrom( + (com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest other) { + if (other + == com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,11 +486,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parsedMessage = null; + com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +505,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the notification config to delete. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +530,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the notification config to delete. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +555,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the notification config to delete. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the notification config to delete. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the notification config to delete. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +635,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest(); } - public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteNotificationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteNotificationConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteNotificationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteNotificationConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +673,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequestOrBuilder.java new file mode 100644 index 000000000..4ce3a2177 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/DeleteNotificationConfigRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public interface DeleteNotificationConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the notification config to delete. Its format is
+   * "organizations/[organization_id]/notificationConfigs/[config_id]".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the notification config to delete. Its format is
+   * "organizations/[organization_id]/notificationConfigs/[config_id]".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java similarity index 74% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java index d15ceb6be..e29a251eb 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Finding.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/finding.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Security Command Center finding.
  * A finding is a record of assessment data (security, risk, health or privacy)
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Finding}
  */
-public final class Finding extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Finding extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.Finding)
     FindingOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Finding.newBuilder() to construct.
   private Finding(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Finding() {
     name_ = "";
     parent_ = "";
@@ -36,16 +54,15 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Finding();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Finding(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -65,113 +82,134 @@ private Finding(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            parent_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              parent_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            resourceName_ = s;
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
+              resourceName_ = s;
+              break;
+            }
+          case 32:
+            {
+              int rawValue = input.readEnum();
 
-            state_ = rawValue;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+              state_ = rawValue;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            category_ = s;
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
+              category_ = s;
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            externalUri_ = s;
-            break;
-          }
-          case 58: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              sourceProperties_ = com.google.protobuf.MapField.newMapField(
-                  SourcePropertiesDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              externalUri_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            sourceProperties__ = input.readMessage(
-                SourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            sourceProperties_.getMutableMap().put(
-                sourceProperties__.getKey(), sourceProperties__.getValue());
-            break;
-          }
-          case 66: {
-            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder subBuilder = null;
-            if (securityMarks_ != null) {
-              subBuilder = securityMarks_.toBuilder();
+          case 58:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                sourceProperties_ =
+                    com.google.protobuf.MapField.newMapField(
+                        SourcePropertiesDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry
+                  sourceProperties__ =
+                      input.readMessage(
+                          SourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
+                          extensionRegistry);
+              sourceProperties_
+                  .getMutableMap()
+                  .put(sourceProperties__.getKey(), sourceProperties__.getValue());
+              break;
             }
-            securityMarks_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(securityMarks_);
-              securityMarks_ = subBuilder.buildPartial();
+          case 66:
+            {
+              com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder subBuilder = null;
+              if (securityMarks_ != null) {
+                subBuilder = securityMarks_.toBuilder();
+              }
+              securityMarks_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(securityMarks_);
+                securityMarks_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 74: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (eventTime_ != null) {
-              subBuilder = eventTime_.toBuilder();
+          case 74:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (eventTime_ != null) {
+                subBuilder = eventTime_.toBuilder();
+              }
+              eventTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(eventTime_);
+                eventTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            eventTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(eventTime_);
-              eventTime_ = subBuilder.buildPartial();
+          case 82:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 104:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 82: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              severity_ = rawValue;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 104: {
-            int rawValue = input.readEnum();
+          case 114:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            severity_ = rawValue;
-            break;
-          }
-          case 114: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            canonicalName_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              canonicalName_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -179,48 +217,52 @@ private Finding(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass
+        .internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 7:
         return internalGetSourceProperties();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Finding_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass
+        .internal_static_google_cloud_securitycenter_v1p1beta1_Finding_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1p1beta1.Finding.class, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder.class);
+            com.google.cloud.securitycenter.v1p1beta1.Finding.class,
+            com.google.cloud.securitycenter.v1p1beta1.Finding.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The state of the finding.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1p1beta1.Finding.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified state.
      * 
@@ -229,6 +271,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The finding requires attention and has not been addressed yet.
      * 
@@ -237,6 +281,8 @@ public enum State */ ACTIVE(1), /** + * + * *
      * The finding has been fixed, triaged as a non-issue or otherwise addressed
      * and is no longer active.
@@ -249,6 +295,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified state.
      * 
@@ -257,6 +305,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The finding requires attention and has not been addressed yet.
      * 
@@ -265,6 +315,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
      * The finding has been fixed, triaged as a non-issue or otherwise addressed
      * and is no longer active.
@@ -274,7 +326,6 @@ public enum State
      */
     public static final int INACTIVE_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -299,49 +350,51 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return ACTIVE;
-        case 2: return INACTIVE;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return ACTIVE;
+        case 2:
+          return INACTIVE;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.Finding.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.Finding.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -359,6 +412,8 @@ private State(int value) {
   }
 
   /**
+   *
+   *
    * 
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
@@ -366,9 +421,10 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.securitycenter.v1p1beta1.Finding.Severity}
    */
-  public enum Severity
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * No severity specified. The default value.
      * 
@@ -377,6 +433,8 @@ public enum Severity */ SEVERITY_UNSPECIFIED(0), /** + * + * *
      * Critical severity.
      * 
@@ -385,6 +443,8 @@ public enum Severity */ CRITICAL(1), /** + * + * *
      * High severity.
      * 
@@ -393,6 +453,8 @@ public enum Severity */ HIGH(2), /** + * + * *
      * Medium severity.
      * 
@@ -401,6 +463,8 @@ public enum Severity */ MEDIUM(3), /** + * + * *
      * Low severity.
      * 
@@ -412,6 +476,8 @@ public enum Severity ; /** + * + * *
      * No severity specified. The default value.
      * 
@@ -420,6 +486,8 @@ public enum Severity */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Critical severity.
      * 
@@ -428,6 +496,8 @@ public enum Severity */ public static final int CRITICAL_VALUE = 1; /** + * + * *
      * High severity.
      * 
@@ -436,6 +506,8 @@ public enum Severity */ public static final int HIGH_VALUE = 2; /** + * + * *
      * Medium severity.
      * 
@@ -444,6 +516,8 @@ public enum Severity */ public static final int MEDIUM_VALUE = 3; /** + * + * *
      * Low severity.
      * 
@@ -452,7 +526,6 @@ public enum Severity */ public static final int LOW_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -477,51 +550,55 @@ public static Severity valueOf(int value) { */ public static Severity forNumber(int value) { switch (value) { - case 0: return SEVERITY_UNSPECIFIED; - case 1: return CRITICAL; - case 2: return HIGH; - case 3: return MEDIUM; - case 4: return LOW; - default: return null; + case 0: + return SEVERITY_UNSPECIFIED; + case 1: + return CRITICAL; + case 2: + return HIGH; + case 3: + return MEDIUM; + case 4: + return LOW; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Severity> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Severity findValueByNumber(int number) { - return Severity.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.Finding.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.Finding.getDescriptor() + .getEnumTypes() + .get(1); } private static final Severity[] VALUES = values(); - public static Severity valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -541,6 +618,8 @@ private Severity(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -549,6 +628,7 @@ private Severity(int value) {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -557,14 +637,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -573,16 +654,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -593,6 +673,8 @@ public java.lang.String getName() { public static final int PARENT_FIELD_NUMBER = 2; private volatile java.lang.Object parent_; /** + * + * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -602,6 +684,7 @@ public java.lang.String getName() {
    * 
* * string parent = 2; + * * @return The parent. */ @java.lang.Override @@ -610,14 +693,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -627,16 +711,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 2; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -647,6 +730,8 @@ public java.lang.String getParent() { public static final int RESOURCE_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object resourceName_; /** + * + * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -657,6 +742,7 @@ public java.lang.String getParent() {
    * 
* * string resource_name = 3; + * * @return The resourceName. */ @java.lang.Override @@ -665,14 +751,15 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** + * + * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -683,16 +770,15 @@ public java.lang.String getResourceName() {
    * 
* * string resource_name = 3; + * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -703,33 +789,46 @@ public java.lang.String getResourceName() { public static final int STATE_FIELD_NUMBER = 4; private int state_; /** + * + * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 4; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 4; + * * @return The state. */ - @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() { + @java.lang.Override + public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.Finding.State result = com.google.cloud.securitycenter.v1p1beta1.Finding.State.valueOf(state_); - return result == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.State.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1p1beta1.Finding.State result = + com.google.cloud.securitycenter.v1p1beta1.Finding.State.valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1p1beta1.Finding.State.UNRECOGNIZED + : result; } public static final int CATEGORY_FIELD_NUMBER = 5; private volatile java.lang.Object category_; /** + * + * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -737,6 +836,7 @@ public java.lang.String getResourceName() {
    * 
* * string category = 5; + * * @return The category. */ @java.lang.Override @@ -745,14 +845,15 @@ public java.lang.String getCategory() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; } } /** + * + * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -760,16 +861,15 @@ public java.lang.String getCategory() {
    * 
* * string category = 5; + * * @return The bytes for category. */ @java.lang.Override - public com.google.protobuf.ByteString - getCategoryBytes() { + public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); category_ = b; return b; } else { @@ -780,6 +880,8 @@ public java.lang.String getCategory() { public static final int EXTERNAL_URI_FIELD_NUMBER = 6; private volatile java.lang.Object externalUri_; /** + * + * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -787,6 +889,7 @@ public java.lang.String getCategory() {
    * 
* * string external_uri = 6; + * * @return The externalUri. */ @java.lang.Override @@ -795,14 +898,15 @@ public java.lang.String getExternalUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalUri_ = s; return s; } } /** + * + * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -810,16 +914,15 @@ public java.lang.String getExternalUri() {
    * 
* * string external_uri = 6; + * * @return The bytes for externalUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getExternalUriBytes() { + public com.google.protobuf.ByteString getExternalUriBytes() { java.lang.Object ref = externalUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalUri_ = b; return b; } else { @@ -828,21 +931,25 @@ public java.lang.String getExternalUri() { } public static final int SOURCE_PROPERTIES_FIELD_NUMBER = 7; + private static final class SourcePropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.Value> defaultEntry = + static final com.google.protobuf.MapEntry + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> sourceProperties_; + .newDefaultInstance( + com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); + } + + private com.google.protobuf.MapField + sourceProperties_; + private com.google.protobuf.MapField - internalGetSourceProperties() { + internalGetSourceProperties() { if (sourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( SourcePropertiesDefaultEntryHolder.defaultEntry); @@ -854,6 +961,8 @@ public int getSourcePropertiesCount() { return internalGetSourceProperties().getMap().size(); } /** + * + * *
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -863,22 +972,22 @@ public int getSourcePropertiesCount() {
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-
   @java.lang.Override
-  public boolean containsSourceProperties(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsSourceProperties(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetSourceProperties().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getSourcePropertiesMap()} instead.
-   */
+  /** Use {@link #getSourcePropertiesMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getSourceProperties() {
     return getSourcePropertiesMap();
   }
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -889,11 +998,12 @@ public java.util.Map getSourcePrope
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
   @java.lang.Override
-
   public java.util.Map getSourcePropertiesMap() {
     return internalGetSourceProperties().getMap();
   }
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -904,16 +1014,18 @@ public java.util.Map getSourcePrope
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
   @java.lang.Override
-
   public com.google.protobuf.Value getSourcePropertiesOrDefault(
-      java.lang.String key,
-      com.google.protobuf.Value defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
+      java.lang.String key, com.google.protobuf.Value defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetSourceProperties().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -924,10 +1036,10 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault(
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
   @java.lang.Override
-
-  public com.google.protobuf.Value getSourcePropertiesOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetSourceProperties().getMap();
     if (!map.containsKey(key)) {
@@ -939,13 +1051,18 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(
   public static final int SECURITY_MARKS_FIELD_NUMBER = 8;
   private com.google.cloud.securitycenter.v1p1beta1.SecurityMarks securityMarks_;
   /**
+   *
+   *
    * 
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the securityMarks field is set. */ @java.lang.Override @@ -953,36 +1070,50 @@ public boolean hasSecurityMarks() { return securityMarks_ != null; } /** + * + * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The securityMarks. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks() { - return securityMarks_ == null ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() + : securityMarks_; } /** + * + * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder + getSecurityMarksOrBuilder() { return getSecurityMarks(); } public static final int EVENT_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp eventTime_; /** + * + * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -993,6 +1124,7 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecur
    * 
* * .google.protobuf.Timestamp event_time = 9; + * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -1000,6 +1132,8 @@ public boolean hasEventTime() { return eventTime_ != null; } /** + * + * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -1010,6 +1144,7 @@ public boolean hasEventTime() {
    * 
* * .google.protobuf.Timestamp event_time = 9; + * * @return The eventTime. */ @java.lang.Override @@ -1017,6 +1152,8 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** + * + * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -1036,11 +1173,14 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
   public static final int CREATE_TIME_FIELD_NUMBER = 10;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1048,11 +1188,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return The createTime. */ @java.lang.Override @@ -1060,6 +1203,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time at which the finding was created in Security Command Center.
    * 
@@ -1074,35 +1219,48 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int SEVERITY_FIELD_NUMBER = 13; private int severity_; /** + * + * *
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13; + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13; + * * @return The severity. */ - @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding.Severity getSeverity() { + @java.lang.Override + public com.google.cloud.securitycenter.v1p1beta1.Finding.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.Finding.Severity result = com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.valueOf(severity_); - return result == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1p1beta1.Finding.Severity result = + com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.valueOf(severity_); + return result == null + ? com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.UNRECOGNIZED + : result; } public static final int CANONICAL_NAME_FIELD_NUMBER = 14; private volatile java.lang.Object canonicalName_; /** + * + * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -1113,6 +1271,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * 
* * string canonical_name = 14; + * * @return The canonicalName. */ @java.lang.Override @@ -1121,14 +1280,15 @@ public java.lang.String getCanonicalName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; } } /** + * + * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -1139,16 +1299,15 @@ public java.lang.String getCanonicalName() {
    * 
* * string canonical_name = 14; + * * @return The bytes for canonicalName. */ @java.lang.Override - public com.google.protobuf.ByteString - getCanonicalNameBytes() { + public com.google.protobuf.ByteString getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -1157,6 +1316,7 @@ public java.lang.String getCanonicalName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1168,8 +1328,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1179,7 +1338,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceName_); } - if (state_ != com.google.cloud.securitycenter.v1p1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.securitycenter.v1p1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(4, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { @@ -1188,12 +1348,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, externalUri_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetSourceProperties(), - SourcePropertiesDefaultEntryHolder.defaultEntry, - 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetSourceProperties(), SourcePropertiesDefaultEntryHolder.defaultEntry, 7); if (securityMarks_ != null) { output.writeMessage(8, getSecurityMarks()); } @@ -1203,7 +1359,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (createTime_ != null) { output.writeMessage(10, getCreateTime()); } - if (severity_ != com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + if (severity_ + != com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.SEVERITY_UNSPECIFIED + .getNumber()) { output.writeEnum(13, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { @@ -1227,9 +1385,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceName_); } - if (state_ != com.google.cloud.securitycenter.v1p1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, state_); + if (state_ + != com.google.cloud.securitycenter.v1p1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, category_); @@ -1237,31 +1395,29 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, externalUri_); } - for (java.util.Map.Entry entry - : internalGetSourceProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry - sourceProperties__ = SourcePropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, sourceProperties__); + for (java.util.Map.Entry entry : + internalGetSourceProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry sourceProperties__ = + SourcePropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, sourceProperties__); } if (securityMarks_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSecurityMarks()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSecurityMarks()); } if (eventTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getEventTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getEventTime()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreateTime()); } - if (severity_ != com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(13, severity_); + if (severity_ + != com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.SEVERITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, severity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, canonicalName_); @@ -1274,44 +1430,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.Finding)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.Finding other = (com.google.cloud.securitycenter.v1p1beta1.Finding) obj; + com.google.cloud.securitycenter.v1p1beta1.Finding other = + (com.google.cloud.securitycenter.v1p1beta1.Finding) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getParent() - .equals(other.getParent())) return false; - if (!getResourceName() - .equals(other.getResourceName())) return false; + if (!getName().equals(other.getName())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getResourceName().equals(other.getResourceName())) return false; if (state_ != other.state_) return false; - if (!getCategory() - .equals(other.getCategory())) return false; - if (!getExternalUri() - .equals(other.getExternalUri())) return false; - if (!internalGetSourceProperties().equals( - other.internalGetSourceProperties())) return false; + if (!getCategory().equals(other.getCategory())) return false; + if (!getExternalUri().equals(other.getExternalUri())) return false; + if (!internalGetSourceProperties().equals(other.internalGetSourceProperties())) return false; if (hasSecurityMarks() != other.hasSecurityMarks()) return false; if (hasSecurityMarks()) { - if (!getSecurityMarks() - .equals(other.getSecurityMarks())) return false; + if (!getSecurityMarks().equals(other.getSecurityMarks())) return false; } if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { - if (!getEventTime() - .equals(other.getEventTime())) return false; + if (!getEventTime().equals(other.getEventTime())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (severity_ != other.severity_) return false; - if (!getCanonicalName() - .equals(other.getCanonicalName())) return false; + if (!getCanonicalName().equals(other.getCanonicalName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1361,96 +1508,103 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Finding parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.Finding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.Finding parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.Finding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.Finding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Security Command Center finding.
    * A finding is a record of assessment data (security, risk, health or privacy)
@@ -1461,43 +1615,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Finding}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.Finding)
       com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 7:
           return internalGetSourceProperties();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 7:
           return internalGetMutableSourceProperties();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Finding_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_Finding_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1p1beta1.Finding.class, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder.class);
+              com.google.cloud.securitycenter.v1p1beta1.Finding.class,
+              com.google.cloud.securitycenter.v1p1beta1.Finding.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1p1beta1.Finding.newBuilder()
@@ -1505,16 +1659,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1557,9 +1710,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor;
     }
 
     @java.lang.Override
@@ -1578,7 +1731,8 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1p1beta1.Finding buildPartial() {
-      com.google.cloud.securitycenter.v1p1beta1.Finding result = new com.google.cloud.securitycenter.v1p1beta1.Finding(this);
+      com.google.cloud.securitycenter.v1p1beta1.Finding result =
+          new com.google.cloud.securitycenter.v1p1beta1.Finding(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.parent_ = parent_;
@@ -1613,38 +1767,39 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1p1beta1.Finding) {
-        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Finding)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Finding) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1652,7 +1807,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Finding other) {
-      if (other == com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance()) return this;
+      if (other == com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1676,8 +1832,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Finding other
         externalUri_ = other.externalUri_;
         onChanged();
       }
-      internalGetMutableSourceProperties().mergeFrom(
-          other.internalGetSourceProperties());
+      internalGetMutableSourceProperties().mergeFrom(other.internalGetSourceProperties());
       if (other.hasSecurityMarks()) {
         mergeSecurityMarks(other.getSecurityMarks());
       }
@@ -1713,7 +1868,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.Finding) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.securitycenter.v1p1beta1.Finding) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1722,10 +1878,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1734,13 +1893,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1749,6 +1908,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1757,15 +1918,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1773,6 +1933,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1781,20 +1943,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1803,16 +1967,19 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - *
+     *
+     *
+     * 
      * The relative resource name of this finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
      * Example:
@@ -1820,16 +1987,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1837,6 +2004,8 @@ public Builder setNameBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1846,13 +2015,13 @@ public Builder setNameBytes(
      * 
* * string parent = 2; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1861,6 +2030,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1870,15 +2041,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 2; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1886,6 +2056,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1895,20 +2067,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 2; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1918,15 +2092,18 @@ public Builder setParent(
      * 
* * string parent = 2; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * The relative resource name of the source the finding belongs to. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1936,16 +2113,16 @@ public Builder clearParent() {
      * 
* * string parent = 2; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1953,6 +2130,8 @@ public Builder setParentBytes( private java.lang.Object resourceName_ = ""; /** + * + * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -1963,13 +2142,13 @@ public Builder setParentBytes(
      * 
* * string resource_name = 3; + * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -1978,6 +2157,8 @@ public java.lang.String getResourceName() { } } /** + * + * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -1988,15 +2169,14 @@ public java.lang.String getResourceName() {
      * 
* * string resource_name = 3; + * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -2004,6 +2184,8 @@ public java.lang.String getResourceName() { } } /** + * + * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -2014,20 +2196,22 @@ public java.lang.String getResourceName() {
      * 
* * string resource_name = 3; + * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName( - java.lang.String value) { + public Builder setResourceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceName_ = value; onChanged(); return this; } /** + * + * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -2038,15 +2222,18 @@ public Builder setResourceName(
      * 
* * string resource_name = 3; + * * @return This builder for chaining. */ public Builder clearResourceName() { - + resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** + * + * *
      * For findings on Google Cloud resources, the full resource
      * name of the Google Cloud resource this finding is for. See:
@@ -2057,16 +2244,16 @@ public Builder clearResourceName() {
      * 
* * string resource_name = 3; + * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; onChanged(); return this; @@ -2074,51 +2261,67 @@ public Builder setResourceNameBytes( private int state_ = 0; /** + * + * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 4; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 4; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 4; + * * @return The state. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.Finding.State result = com.google.cloud.securitycenter.v1p1beta1.Finding.State.valueOf(state_); - return result == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.State.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1p1beta1.Finding.State result = + com.google.cloud.securitycenter.v1p1beta1.Finding.State.valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1p1beta1.Finding.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 4; + * * @param value The state to set. * @return This builder for chaining. */ @@ -2126,21 +2329,24 @@ public Builder setState(com.google.cloud.securitycenter.v1p1beta1.Finding.State if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the finding.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 4; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2148,6 +2354,8 @@ public Builder clearState() { private java.lang.Object category_ = ""; /** + * + * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2155,13 +2363,13 @@ public Builder clearState() {
      * 
* * string category = 5; + * * @return The category. */ public java.lang.String getCategory() { java.lang.Object ref = category_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; @@ -2170,6 +2378,8 @@ public java.lang.String getCategory() { } } /** + * + * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2177,15 +2387,14 @@ public java.lang.String getCategory() {
      * 
* * string category = 5; + * * @return The bytes for category. */ - public com.google.protobuf.ByteString - getCategoryBytes() { + public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); category_ = b; return b; } else { @@ -2193,6 +2402,8 @@ public java.lang.String getCategory() { } } /** + * + * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2200,20 +2411,22 @@ public java.lang.String getCategory() {
      * 
* * string category = 5; + * * @param value The category to set. * @return This builder for chaining. */ - public Builder setCategory( - java.lang.String value) { + public Builder setCategory(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + category_ = value; onChanged(); return this; } /** + * + * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2221,15 +2434,18 @@ public Builder setCategory(
      * 
* * string category = 5; + * * @return This builder for chaining. */ public Builder clearCategory() { - + category_ = getDefaultInstance().getCategory(); onChanged(); return this; } /** + * + * *
      * The additional taxonomy group within findings from a given source.
      * This field is immutable after creation time.
@@ -2237,16 +2453,16 @@ public Builder clearCategory() {
      * 
* * string category = 5; + * * @param value The bytes for category to set. * @return This builder for chaining. */ - public Builder setCategoryBytes( - com.google.protobuf.ByteString value) { + public Builder setCategoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + category_ = value; onChanged(); return this; @@ -2254,6 +2470,8 @@ public Builder setCategoryBytes( private java.lang.Object externalUri_ = ""; /** + * + * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -2261,13 +2479,13 @@ public Builder setCategoryBytes(
      * 
* * string external_uri = 6; + * * @return The externalUri. */ public java.lang.String getExternalUri() { java.lang.Object ref = externalUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalUri_ = s; return s; @@ -2276,6 +2494,8 @@ public java.lang.String getExternalUri() { } } /** + * + * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -2283,15 +2503,14 @@ public java.lang.String getExternalUri() {
      * 
* * string external_uri = 6; + * * @return The bytes for externalUri. */ - public com.google.protobuf.ByteString - getExternalUriBytes() { + public com.google.protobuf.ByteString getExternalUriBytes() { java.lang.Object ref = externalUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalUri_ = b; return b; } else { @@ -2299,6 +2518,8 @@ public java.lang.String getExternalUri() { } } /** + * + * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -2306,20 +2527,22 @@ public java.lang.String getExternalUri() {
      * 
* * string external_uri = 6; + * * @param value The externalUri to set. * @return This builder for chaining. */ - public Builder setExternalUri( - java.lang.String value) { + public Builder setExternalUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalUri_ = value; onChanged(); return this; } /** + * + * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -2327,15 +2550,18 @@ public Builder setExternalUri(
      * 
* * string external_uri = 6; + * * @return This builder for chaining. */ public Builder clearExternalUri() { - + externalUri_ = getDefaultInstance().getExternalUri(); onChanged(); return this; } /** + * + * *
      * The URI that, if available, points to a web page outside of Security
      * Command Center where additional information about the finding can be found.
@@ -2343,37 +2569,41 @@ public Builder clearExternalUri() {
      * 
* * string external_uri = 6; + * * @param value The bytes for externalUri to set. * @return This builder for chaining. */ - public Builder setExternalUriBytes( - com.google.protobuf.ByteString value) { + public Builder setExternalUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalUri_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> sourceProperties_; private com.google.protobuf.MapField - internalGetSourceProperties() { + sourceProperties_; + + private com.google.protobuf.MapField + internalGetSourceProperties() { if (sourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( SourcePropertiesDefaultEntryHolder.defaultEntry); } return sourceProperties_; } + private com.google.protobuf.MapField - internalGetMutableSourceProperties() { - onChanged();; + internalGetMutableSourceProperties() { + onChanged(); + ; if (sourceProperties_ == null) { - sourceProperties_ = com.google.protobuf.MapField.newMapField( - SourcePropertiesDefaultEntryHolder.defaultEntry); + sourceProperties_ = + com.google.protobuf.MapField.newMapField( + SourcePropertiesDefaultEntryHolder.defaultEntry); } if (!sourceProperties_.isMutable()) { sourceProperties_ = sourceProperties_.copy(); @@ -2385,6 +2615,8 @@ public int getSourcePropertiesCount() { return internalGetSourceProperties().getMap().size(); } /** + * + * *
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2394,22 +2626,22 @@ public int getSourcePropertiesCount() {
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
-
     @java.lang.Override
-    public boolean containsSourceProperties(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsSourceProperties(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetSourceProperties().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getSourcePropertiesMap()} instead.
-     */
+    /** Use {@link #getSourcePropertiesMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getSourceProperties() {
       return getSourcePropertiesMap();
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2420,11 +2652,12 @@ public java.util.Map getSourcePrope
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
     @java.lang.Override
-
     public java.util.Map getSourcePropertiesMap() {
       return internalGetSourceProperties().getMap();
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2435,16 +2668,18 @@ public java.util.Map getSourcePrope
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
     @java.lang.Override
-
     public com.google.protobuf.Value getSourcePropertiesOrDefault(
-        java.lang.String key,
-        com.google.protobuf.Value defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
+        java.lang.String key, com.google.protobuf.Value defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetSourceProperties().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2455,10 +2690,10 @@ public com.google.protobuf.Value getSourcePropertiesOrDefault(
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
     @java.lang.Override
-
-    public com.google.protobuf.Value getSourcePropertiesOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetSourceProperties().getMap();
       if (!map.containsKey(key)) {
@@ -2468,11 +2703,12 @@ public com.google.protobuf.Value getSourcePropertiesOrThrow(
     }
 
     public Builder clearSourceProperties() {
-      internalGetMutableSourceProperties().getMutableMap()
-          .clear();
+      internalGetMutableSourceProperties().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2482,23 +2718,21 @@ public Builder clearSourceProperties() {
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
-
-    public Builder removeSourceProperties(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableSourceProperties().getMutableMap()
-          .remove(key);
+    public Builder removeSourceProperties(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableSourceProperties().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableSourceProperties() {
+    public java.util.Map getMutableSourceProperties() {
       return internalGetMutableSourceProperties().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2508,19 +2742,20 @@ public Builder removeSourceProperties(
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
-    public Builder putSourceProperties(
-        java.lang.String key,
-        com.google.protobuf.Value value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putSourceProperties(java.lang.String key, com.google.protobuf.Value value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableSourceProperties().getMutableMap()
-          .put(key, value);
+      internalGetMutableSourceProperties().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Source specific properties. These properties are managed by the source
      * that writes the finding. The key names in the source_properties map must be
@@ -2530,55 +2765,72 @@ public Builder putSourceProperties(
      *
      * map<string, .google.protobuf.Value> source_properties = 7;
      */
-
     public Builder putAllSourceProperties(
         java.util.Map values) {
-      internalGetMutableSourceProperties().getMutableMap()
-          .putAll(values);
+      internalGetMutableSourceProperties().getMutableMap().putAll(values);
       return this;
     }
 
     private com.google.cloud.securitycenter.v1p1beta1.SecurityMarks securityMarks_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder> securityMarksBuilder_;
+            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks,
+            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder,
+            com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder>
+        securityMarksBuilder_;
     /**
+     *
+     *
      * 
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The securityMarks. */ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { - return securityMarks_ == null ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() + : securityMarks_; } else { return securityMarksBuilder_.getMessage(); } } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { @@ -2594,13 +2846,17 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.Securi return this; } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSecurityMarks( com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder builderForValue) { @@ -2614,19 +2870,26 @@ public Builder setSecurityMarks( return this; } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks value) { + public Builder mergeSecurityMarks( + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { if (securityMarks_ != null) { securityMarks_ = - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.newBuilder(securityMarks_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.newBuilder(securityMarks_) + .mergeFrom(value) + .buildPartial(); } else { securityMarks_ = value; } @@ -2638,13 +2901,17 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.Secu return this; } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -2658,54 +2925,72 @@ public Builder clearSecurityMarks() { return this; } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder getSecurityMarksBuilder() { - + public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder + getSecurityMarksBuilder() { + onChanged(); return getSecurityMarksFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder + getSecurityMarksOrBuilder() { if (securityMarksBuilder_ != null) { return securityMarksBuilder_.getMessageOrBuilder(); } else { - return securityMarks_ == null ? - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() + : securityMarks_; } } /** + * + * *
      * Output only. User specified security marks. These marks are entirely
      * managed by the user and come from the SecurityMarks resource that belongs
      * to the finding.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder> getSecurityMarksFieldBuilder() { if (securityMarksBuilder_ == null) { - securityMarksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder>( - getSecurityMarks(), - getParentForChildren(), - isClean()); + securityMarksBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder>( + getSecurityMarks(), getParentForChildren(), isClean()); securityMarks_ = null; } return securityMarksBuilder_; @@ -2713,8 +2998,13 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecur private com.google.protobuf.Timestamp eventTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + eventTimeBuilder_; /** + * + * *
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2725,12 +3015,15 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecur
      * 
* * .google.protobuf.Timestamp event_time = 9; + * * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return eventTimeBuilder_ != null || eventTime_ != null; } /** + * + * *
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2741,6 +3034,7 @@ public boolean hasEventTime() {
      * 
* * .google.protobuf.Timestamp event_time = 9; + * * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { @@ -2751,6 +3045,8 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** + * + * *
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2776,6 +3072,8 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2787,8 +3085,7 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp event_time = 9;
      */
-    public Builder setEventTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (eventTimeBuilder_ == null) {
         eventTime_ = builderForValue.build();
         onChanged();
@@ -2799,6 +3096,8 @@ public Builder setEventTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2814,7 +3113,7 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       if (eventTimeBuilder_ == null) {
         if (eventTime_ != null) {
           eventTime_ =
-            com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial();
         } else {
           eventTime_ = value;
         }
@@ -2826,6 +3125,8 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2849,6 +3150,8 @@ public Builder clearEventTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2861,11 +3164,13 @@ public Builder clearEventTime() {
      * .google.protobuf.Timestamp event_time = 9;
      */
     public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() {
-      
+
       onChanged();
       return getEventTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2881,11 +3186,12 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
       if (eventTimeBuilder_ != null) {
         return eventTimeBuilder_.getMessageOrBuilder();
       } else {
-        return eventTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
+        return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time at which the event took place, or when an update to the finding
      * occurred. For example, if the finding represents an open firewall it would
@@ -2898,14 +3204,17 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
      * .google.protobuf.Timestamp event_time = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEventTimeFieldBuilder() {
       if (eventTimeBuilder_ == null) {
-        eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEventTime(),
-                getParentForChildren(),
-                isClean());
+        eventTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEventTime(), getParentForChildren(), isClean());
         eventTime_ = null;
       }
       return eventTimeBuilder_;
@@ -2913,34 +3222,47 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -2961,14 +3283,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
* * .google.protobuf.Timestamp create_time = 10; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2979,6 +3302,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -2989,7 +3314,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3001,6 +3326,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -3019,6 +3346,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -3026,11 +3355,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 10; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -3041,11 +3372,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time at which the finding was created in Security Command Center.
      * 
@@ -3053,14 +3387,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3068,55 +3405,71 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int severity_ = 0; /** + * + * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13; + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13; + * * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ public Builder setSeverityValue(int value) { - + severity_ = value; onChanged(); return this; } /** + * + * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13; + * * @return The severity. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.Finding.Severity result = com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.valueOf(severity_); - return result == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1p1beta1.Finding.Severity result = + com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.valueOf(severity_); + return result == null + ? com.google.cloud.securitycenter.v1p1beta1.Finding.Severity.UNRECOGNIZED + : result; } /** + * + * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13; + * * @param value The severity to set. * @return This builder for chaining. */ @@ -3124,22 +3477,25 @@ public Builder setSeverity(com.google.cloud.securitycenter.v1p1beta1.Finding.Sev if (value == null) { throw new NullPointerException(); } - + severity_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The severity of the finding. This field is managed by the source that
      * writes the finding.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13; + * * @return This builder for chaining. */ public Builder clearSeverity() { - + severity_ = 0; onChanged(); return this; @@ -3147,6 +3503,8 @@ public Builder clearSeverity() { private java.lang.Object canonicalName_ = ""; /** + * + * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -3157,13 +3515,13 @@ public Builder clearSeverity() {
      * 
* * string canonical_name = 14; + * * @return The canonicalName. */ public java.lang.String getCanonicalName() { java.lang.Object ref = canonicalName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; @@ -3172,6 +3530,8 @@ public java.lang.String getCanonicalName() { } } /** + * + * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -3182,15 +3542,14 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 14; + * * @return The bytes for canonicalName. */ - public com.google.protobuf.ByteString - getCanonicalNameBytes() { + public com.google.protobuf.ByteString getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -3198,6 +3557,8 @@ public java.lang.String getCanonicalName() { } } /** + * + * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -3208,20 +3569,22 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 14; + * * @param value The canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalName( - java.lang.String value) { + public Builder setCanonicalName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + canonicalName_ = value; onChanged(); return this; } /** + * + * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -3232,15 +3595,18 @@ public Builder setCanonicalName(
      * 
* * string canonical_name = 14; + * * @return This builder for chaining. */ public Builder clearCanonicalName() { - + canonicalName_ = getDefaultInstance().getCanonicalName(); onChanged(); return this; } /** + * + * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -3251,23 +3617,23 @@ public Builder clearCanonicalName() {
      * 
* * string canonical_name = 14; + * * @param value The bytes for canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalNameBytes( - com.google.protobuf.ByteString value) { + public Builder setCanonicalNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3277,12 +3643,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.Finding) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.Finding) private static final com.google.cloud.securitycenter.v1p1beta1.Finding DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.Finding(); } @@ -3291,16 +3657,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.Finding getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Finding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Finding(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Finding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Finding(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3315,6 +3681,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingName.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingName.java similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingName.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingName.java diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java similarity index 84% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java index 856308692..bfcdc3597 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/finding.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface FindingOrBuilder extends +public interface FindingOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.Finding) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -16,10 +34,13 @@ public interface FindingOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The relative resource name of this finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -28,12 +49,14 @@ public interface FindingOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -43,10 +66,13 @@ public interface FindingOrBuilder extends
    * 
* * string parent = 2; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * The relative resource name of the source the finding belongs to. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -56,12 +82,14 @@ public interface FindingOrBuilder extends
    * 
* * string parent = 2; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -72,10 +100,13 @@ public interface FindingOrBuilder extends
    * 
* * string resource_name = 3; + * * @return The resourceName. */ java.lang.String getResourceName(); /** + * + * *
    * For findings on Google Cloud resources, the full resource
    * name of the Google Cloud resource this finding is for. See:
@@ -86,31 +117,39 @@ public interface FindingOrBuilder extends
    * 
* * string resource_name = 3; + * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString - getResourceNameBytes(); + com.google.protobuf.ByteString getResourceNameBytes(); /** + * + * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 4; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the finding.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 4; + * * @return The state. */ com.google.cloud.securitycenter.v1p1beta1.Finding.State getState(); /** + * + * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -118,10 +157,13 @@ public interface FindingOrBuilder extends
    * 
* * string category = 5; + * * @return The category. */ java.lang.String getCategory(); /** + * + * *
    * The additional taxonomy group within findings from a given source.
    * This field is immutable after creation time.
@@ -129,12 +171,14 @@ public interface FindingOrBuilder extends
    * 
* * string category = 5; + * * @return The bytes for category. */ - com.google.protobuf.ByteString - getCategoryBytes(); + com.google.protobuf.ByteString getCategoryBytes(); /** + * + * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -142,10 +186,13 @@ public interface FindingOrBuilder extends
    * 
* * string external_uri = 6; + * * @return The externalUri. */ java.lang.String getExternalUri(); /** + * + * *
    * The URI that, if available, points to a web page outside of Security
    * Command Center where additional information about the finding can be found.
@@ -153,12 +200,14 @@ public interface FindingOrBuilder extends
    * 
* * string external_uri = 6; + * * @return The bytes for externalUri. */ - com.google.protobuf.ByteString - getExternalUriBytes(); + com.google.protobuf.ByteString getExternalUriBytes(); /** + * + * *
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -170,6 +219,8 @@ public interface FindingOrBuilder extends
    */
   int getSourcePropertiesCount();
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -179,15 +230,13 @@ public interface FindingOrBuilder extends
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-  boolean containsSourceProperties(
-      java.lang.String key);
-  /**
-   * Use {@link #getSourcePropertiesMap()} instead.
-   */
+  boolean containsSourceProperties(java.lang.String key);
+  /** Use {@link #getSourcePropertiesMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getSourceProperties();
+  java.util.Map getSourceProperties();
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -197,9 +246,10 @@ boolean containsSourceProperties(
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-  java.util.Map
-  getSourcePropertiesMap();
+  java.util.Map getSourcePropertiesMap();
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -211,11 +261,13 @@ boolean containsSourceProperties(
    */
 
   /* nullable */
-com.google.protobuf.Value getSourcePropertiesOrDefault(
+  com.google.protobuf.Value getSourcePropertiesOrDefault(
       java.lang.String key,
       /* nullable */
-com.google.protobuf.Value defaultValue);
+      com.google.protobuf.Value defaultValue);
   /**
+   *
+   *
    * 
    * Source specific properties. These properties are managed by the source
    * that writes the finding. The key names in the source_properties map must be
@@ -225,44 +277,58 @@ com.google.protobuf.Value getSourcePropertiesOrDefault(
    *
    * map<string, .google.protobuf.Value> source_properties = 7;
    */
-
-  com.google.protobuf.Value getSourcePropertiesOrThrow(
-      java.lang.String key);
+  com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** + * + * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The securityMarks. */ com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks(); /** + * + * *
    * Output only. User specified security marks. These marks are entirely
    * managed by the user and come from the SecurityMarks resource that belongs
    * to the finding.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder(); /** + * + * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -273,10 +339,13 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
    * 
* * .google.protobuf.Timestamp event_time = 9; + * * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** + * + * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -287,10 +356,13 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
    * 
* * .google.protobuf.Timestamp event_time = 9; + * * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** + * + * *
    * The time at which the event took place, or when an update to the finding
    * occurred. For example, if the finding represents an open firewall it would
@@ -305,24 +377,32 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
   com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time at which the finding was created in Security Command Center.
    * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time at which the finding was created in Security Command Center.
    * 
@@ -332,27 +412,35 @@ com.google.protobuf.Value getSourcePropertiesOrThrow( com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13; + * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** + * + * *
    * The severity of the finding. This field is managed by the source that
    * writes the finding.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding.Severity severity = 13; + * * @return The severity. */ com.google.cloud.securitycenter.v1p1beta1.Finding.Severity getSeverity(); /** + * + * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -363,10 +451,13 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
    * 
* * string canonical_name = 14; + * * @return The canonicalName. */ java.lang.String getCanonicalName(); /** + * + * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}",
@@ -377,8 +468,8 @@ com.google.protobuf.Value getSourcePropertiesOrThrow(
    * 
* * string canonical_name = 14; + * * @return The bytes for canonicalName. */ - com.google.protobuf.ByteString - getCanonicalNameBytes(); + com.google.protobuf.ByteString getCanonicalNameBytes(); } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOuterClass.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOuterClass.java new file mode 100644 index 000000000..59b323136 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FindingOuterClass.java @@ -0,0 +1,143 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/finding.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class FindingOuterClass { + private FindingOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/securitycenter/v1p1beta1/" + + "finding.proto\022%google.cloud.securitycent" + + "er.v1p1beta1\032\037google/api/field_behavior." + + "proto\032\031google/api/resource.proto\032:google" + + "/cloud/securitycenter/v1p1beta1/security" + + "_marks.proto\032\034google/protobuf/struct.pro" + + "to\032\037google/protobuf/timestamp.proto\032\034goo" + + "gle/api/annotations.proto\"\337\007\n\007Finding\022\014\n" + + "\004name\030\001 \001(\t\022\016\n\006parent\030\002 \001(\t\022\025\n\rresource_" + + "name\030\003 \001(\t\022C\n\005state\030\004 \001(\01624.google.cloud" + + ".securitycenter.v1p1beta1.Finding.State\022" + + "\020\n\010category\030\005 \001(\t\022\024\n\014external_uri\030\006 \001(\t\022" + + "_\n\021source_properties\030\007 \003(\0132D.google.clou" + + "d.securitycenter.v1p1beta1.Finding.Sourc" + + "ePropertiesEntry\022Q\n\016security_marks\030\010 \001(\013" + + "24.google.cloud.securitycenter.v1p1beta1" + + ".SecurityMarksB\003\340A\003\022.\n\nevent_time\030\t \001(\0132" + + "\032.google.protobuf.Timestamp\022/\n\013create_ti" + + "me\030\n \001(\0132\032.google.protobuf.Timestamp\022I\n\010" + + "severity\030\r \001(\01627.google.cloud.securityce" + + "nter.v1p1beta1.Finding.Severity\022\026\n\016canon" + + "ical_name\030\016 \001(\t\032O\n\025SourcePropertiesEntry" + + "\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pr" + + "otobuf.Value:\0028\001\"8\n\005State\022\025\n\021STATE_UNSPE" + + "CIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002\"Q\n\010Se" + + "verity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRIT" + + "ICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004:\333\001" + + "\352A\327\001\n%securitycenter.googleapis.com/Find" + + "ing\022@organizations/{organization}/source" + + "s/{source}/findings/{finding}\0224folders/{" + + "folder}/sources/{source}/findings/{findi" + + "ng}\0226projects/{project}/sources/{source}" + + "/findings/{finding}B\375\001\n)com.google.cloud" + + ".securitycenter.v1p1beta1P\001ZSgoogle.gola" + + "ng.org/genproto/googleapis/cloud/securit" + + "ycenter/v1p1beta1;securitycenter\252\002%Googl" + + "e.Cloud.SecurityCenter.V1P1Beta1\312\002%Googl" + + "e\\Cloud\\SecurityCenter\\V1p1beta1\352\002(Googl" + + "e::Cloud::SecurityCenter::V1p1beta1b\006pro" + + "to3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor, + new java.lang.String[] { + "Name", + "Parent", + "ResourceName", + "State", + "Category", + "ExternalUri", + "SourceProperties", + "SecurityMarks", + "EventTime", + "CreateTime", + "Severity", + "CanonicalName", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_Finding_SourcePropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Folder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Folder.java similarity index 71% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Folder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Folder.java index 1b72636e2..dab9ee859 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Folder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Folder.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/folder.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Message that contains the resource name and display name of a folder
  * resource.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Folder}
  */
-public final class Folder extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Folder extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.Folder)
     FolderOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Folder.newBuilder() to construct.
   private Folder(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Folder() {
     resourceFolder_ = "";
     resourceFolderDisplayName_ = "";
@@ -27,16 +45,15 @@ private Folder() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Folder();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Folder(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,25 +72,27 @@ private Folder(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            resourceFolder_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              resourceFolder_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            resourceFolderDisplayName_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              resourceFolderDisplayName_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,35 +100,40 @@ private Folder(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1p1beta1.FolderProto.internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1p1beta1.FolderProto
+        .internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1p1beta1.FolderProto.internal_static_google_cloud_securitycenter_v1p1beta1_Folder_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1p1beta1.FolderProto
+        .internal_static_google_cloud_securitycenter_v1p1beta1_Folder_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1p1beta1.Folder.class, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder.class);
+            com.google.cloud.securitycenter.v1p1beta1.Folder.class,
+            com.google.cloud.securitycenter.v1p1beta1.Folder.Builder.class);
   }
 
   public static final int RESOURCE_FOLDER_FIELD_NUMBER = 1;
   private volatile java.lang.Object resourceFolder_;
   /**
+   *
+   *
    * 
    * Full resource name of this folder. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string resource_folder = 1; + * * @return The resourceFolder. */ @java.lang.Override @@ -118,30 +142,30 @@ public java.lang.String getResourceFolder() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFolder_ = s; return s; } } /** + * + * *
    * Full resource name of this folder. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string resource_folder = 1; + * * @return The bytes for resourceFolder. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceFolderBytes() { + public com.google.protobuf.ByteString getResourceFolderBytes() { java.lang.Object ref = resourceFolder_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceFolder_ = b; return b; } else { @@ -152,11 +176,14 @@ public java.lang.String getResourceFolder() { public static final int RESOURCE_FOLDER_DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object resourceFolderDisplayName_; /** + * + * *
    * The user defined display name for this folder.
    * 
* * string resource_folder_display_name = 2; + * * @return The resourceFolderDisplayName. */ @java.lang.Override @@ -165,29 +192,29 @@ public java.lang.String getResourceFolderDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFolderDisplayName_ = s; return s; } } /** + * + * *
    * The user defined display name for this folder.
    * 
* * string resource_folder_display_name = 2; + * * @return The bytes for resourceFolderDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceFolderDisplayNameBytes() { + public com.google.protobuf.ByteString getResourceFolderDisplayNameBytes() { java.lang.Object ref = resourceFolderDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceFolderDisplayName_ = b; return b; } else { @@ -196,6 +223,7 @@ public java.lang.String getResourceFolderDisplayName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,8 +235,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceFolder_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceFolder_); } @@ -228,7 +255,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceFolder_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceFolderDisplayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceFolderDisplayName_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceFolderDisplayName_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -238,17 +266,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.Folder)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.Folder other = (com.google.cloud.securitycenter.v1p1beta1.Folder) obj; + com.google.cloud.securitycenter.v1p1beta1.Folder other = + (com.google.cloud.securitycenter.v1p1beta1.Folder) obj; - if (!getResourceFolder() - .equals(other.getResourceFolder())) return false; - if (!getResourceFolderDisplayName() - .equals(other.getResourceFolderDisplayName())) return false; + if (!getResourceFolder().equals(other.getResourceFolder())) return false; + if (!getResourceFolderDisplayName().equals(other.getResourceFolderDisplayName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -269,97 +296,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Folder parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.Folder parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.Folder parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.Folder parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.Folder prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message that contains the resource name and display name of a folder
    * resource.
@@ -367,21 +401,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Folder}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.Folder)
       com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.FolderProto.internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.FolderProto
+          .internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1p1beta1.FolderProto.internal_static_google_cloud_securitycenter_v1p1beta1_Folder_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1p1beta1.FolderProto
+          .internal_static_google_cloud_securitycenter_v1p1beta1_Folder_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1p1beta1.Folder.class, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder.class);
+              com.google.cloud.securitycenter.v1p1beta1.Folder.class,
+              com.google.cloud.securitycenter.v1p1beta1.Folder.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1p1beta1.Folder.newBuilder()
@@ -389,16 +425,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -410,9 +445,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1p1beta1.FolderProto.internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1p1beta1.FolderProto
+          .internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor;
     }
 
     @java.lang.Override
@@ -431,7 +466,8 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1p1beta1.Folder buildPartial() {
-      com.google.cloud.securitycenter.v1p1beta1.Folder result = new com.google.cloud.securitycenter.v1p1beta1.Folder(this);
+      com.google.cloud.securitycenter.v1p1beta1.Folder result =
+          new com.google.cloud.securitycenter.v1p1beta1.Folder(this);
       result.resourceFolder_ = resourceFolder_;
       result.resourceFolderDisplayName_ = resourceFolderDisplayName_;
       onBuilt();
@@ -442,38 +478,39 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1p1beta1.Folder) {
-        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Folder)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Folder) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -481,7 +518,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Folder other) {
-      if (other == com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance()) return this;
+      if (other == com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance())
+        return this;
       if (!other.getResourceFolder().isEmpty()) {
         resourceFolder_ = other.resourceFolder_;
         onChanged();
@@ -521,19 +559,21 @@ public Builder mergeFrom(
 
     private java.lang.Object resourceFolder_ = "";
     /**
+     *
+     *
      * 
      * Full resource name of this folder. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_folder = 1; + * * @return The resourceFolder. */ public java.lang.String getResourceFolder() { java.lang.Object ref = resourceFolder_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFolder_ = s; return s; @@ -542,21 +582,22 @@ public java.lang.String getResourceFolder() { } } /** + * + * *
      * Full resource name of this folder. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_folder = 1; + * * @return The bytes for resourceFolder. */ - public com.google.protobuf.ByteString - getResourceFolderBytes() { + public com.google.protobuf.ByteString getResourceFolderBytes() { java.lang.Object ref = resourceFolder_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceFolder_ = b; return b; } else { @@ -564,57 +605,64 @@ public java.lang.String getResourceFolder() { } } /** + * + * *
      * Full resource name of this folder. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_folder = 1; + * * @param value The resourceFolder to set. * @return This builder for chaining. */ - public Builder setResourceFolder( - java.lang.String value) { + public Builder setResourceFolder(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceFolder_ = value; onChanged(); return this; } /** + * + * *
      * Full resource name of this folder. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_folder = 1; + * * @return This builder for chaining. */ public Builder clearResourceFolder() { - + resourceFolder_ = getDefaultInstance().getResourceFolder(); onChanged(); return this; } /** + * + * *
      * Full resource name of this folder. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string resource_folder = 1; + * * @param value The bytes for resourceFolder to set. * @return This builder for chaining. */ - public Builder setResourceFolderBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceFolderBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceFolder_ = value; onChanged(); return this; @@ -622,18 +670,20 @@ public Builder setResourceFolderBytes( private java.lang.Object resourceFolderDisplayName_ = ""; /** + * + * *
      * The user defined display name for this folder.
      * 
* * string resource_folder_display_name = 2; + * * @return The resourceFolderDisplayName. */ public java.lang.String getResourceFolderDisplayName() { java.lang.Object ref = resourceFolderDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFolderDisplayName_ = s; return s; @@ -642,20 +692,21 @@ public java.lang.String getResourceFolderDisplayName() { } } /** + * + * *
      * The user defined display name for this folder.
      * 
* * string resource_folder_display_name = 2; + * * @return The bytes for resourceFolderDisplayName. */ - public com.google.protobuf.ByteString - getResourceFolderDisplayNameBytes() { + public com.google.protobuf.ByteString getResourceFolderDisplayNameBytes() { java.lang.Object ref = resourceFolderDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceFolderDisplayName_ = b; return b; } else { @@ -663,61 +714,68 @@ public java.lang.String getResourceFolderDisplayName() { } } /** + * + * *
      * The user defined display name for this folder.
      * 
* * string resource_folder_display_name = 2; + * * @param value The resourceFolderDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceFolderDisplayName( - java.lang.String value) { + public Builder setResourceFolderDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceFolderDisplayName_ = value; onChanged(); return this; } /** + * + * *
      * The user defined display name for this folder.
      * 
* * string resource_folder_display_name = 2; + * * @return This builder for chaining. */ public Builder clearResourceFolderDisplayName() { - + resourceFolderDisplayName_ = getDefaultInstance().getResourceFolderDisplayName(); onChanged(); return this; } /** + * + * *
      * The user defined display name for this folder.
      * 
* * string resource_folder_display_name = 2; + * * @param value The bytes for resourceFolderDisplayName to set. * @return This builder for chaining. */ - public Builder setResourceFolderDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceFolderDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceFolderDisplayName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -727,12 +785,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.Folder) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.Folder) private static final com.google.cloud.securitycenter.v1p1beta1.Folder DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.Folder(); } @@ -741,16 +799,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.Folder getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Folder parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Folder(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Folder parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Folder(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -765,6 +823,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.Folder getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderName.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderName.java similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderName.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderName.java diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderOrBuilder.java similarity index 61% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderOrBuilder.java index 80ae53dcd..35597423f 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderOrBuilder.java @@ -1,51 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/folder.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface FolderOrBuilder extends +public interface FolderOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.Folder) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Full resource name of this folder. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string resource_folder = 1; + * * @return The resourceFolder. */ java.lang.String getResourceFolder(); /** + * + * *
    * Full resource name of this folder. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string resource_folder = 1; + * * @return The bytes for resourceFolder. */ - com.google.protobuf.ByteString - getResourceFolderBytes(); + com.google.protobuf.ByteString getResourceFolderBytes(); /** + * + * *
    * The user defined display name for this folder.
    * 
* * string resource_folder_display_name = 2; + * * @return The resourceFolderDisplayName. */ java.lang.String getResourceFolderDisplayName(); /** + * + * *
    * The user defined display name for this folder.
    * 
* * string resource_folder_display_name = 2; + * * @return The bytes for resourceFolderDisplayName. */ - com.google.protobuf.ByteString - getResourceFolderDisplayNameBytes(); + com.google.protobuf.ByteString getResourceFolderDisplayNameBytes(); } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderProto.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderProto.java new file mode 100644 index 000000000..c0e16e8be --- /dev/null +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/FolderProto.java @@ -0,0 +1,74 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/folder.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class FolderProto { + private FolderProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_Folder_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/securitycenter/v1p1beta1/" + + "folder.proto\022%google.cloud.securitycente" + + "r.v1p1beta1\032\034google/api/annotations.prot" + + "o\"G\n\006Folder\022\027\n\017resource_folder\030\001 \001(\t\022$\n\034" + + "resource_folder_display_name\030\002 \001(\tB\212\002\n)c" + + "om.google.cloud.securitycenter.v1p1beta1" + + "B\013FolderProtoP\001ZSgoogle.golang.org/genpr" + + "oto/googleapis/cloud/securitycenter/v1p1" + + "beta1;securitycenter\252\002%Google.Cloud.Secu" + + "rityCenter.V1P1Beta1\312\002%Google\\Cloud\\Secu" + + "rityCenter\\V1p1beta1\352\002(Google::Cloud::Se" + + "curityCenter::V1p1Beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_Folder_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_Folder_descriptor, + new java.lang.String[] { + "ResourceFolder", "ResourceFolderDisplayName", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java similarity index 63% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java index da2a3473f..a17c846db 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Request message for getting a notification config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest} */ -public final class GetNotificationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) GetNotificationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetNotificationConfigRequest.newBuilder() to construct. private GetNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetNotificationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetNotificationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetNotificationConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetNotificationConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetNotificationConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.class, com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.class, + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the notification config to get. Its format is
    * "organizations/[organization_id]/notificationConfigs/[config_id]".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the notification config to get. Its format is
    * "organizations/[organization_id]/notificationConfigs/[config_id]".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest other = (com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest other = + (com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,134 +233,145 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for getting a notification config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.class, com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.class, + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.Builder.class); } - // Construct using com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,19 +381,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest build() { - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest result = buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -364,7 +405,8 @@ public com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest bu @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest result = new com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest(this); + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest result = + new com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +416,51 @@ public com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest)other); + return mergeFrom( + (com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest other) { + if (other + == com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +484,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +498,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the notification config to get. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +523,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the notification config to get. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +548,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the notification config to get. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the notification config to get. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the notification config to get. Its format is
      * "organizations/[organization_id]/notificationConfigs/[config_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +628,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest(); } - public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNotificationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNotificationConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNotificationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetNotificationConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +665,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequestOrBuilder.java new file mode 100644 index 000000000..0ab8d93aa --- /dev/null +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetNotificationConfigRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public interface GetNotificationConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the notification config to get. Its format is
+   * "organizations/[organization_id]/notificationConfigs/[config_id]".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the notification config to get. Its format is
+   * "organizations/[organization_id]/notificationConfigs/[config_id]".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java similarity index 61% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java index 452df79d9..0035adf1a 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequest.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Request message for getting organization settings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest} */ -public final class GetOrganizationSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetOrganizationSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) GetOrganizationSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetOrganizationSettingsRequest.newBuilder() to construct. - private GetOrganizationSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetOrganizationSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetOrganizationSettingsRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetOrganizationSettingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetOrganizationSettingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +71,20 @@ private GetOrganizationSettingsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +92,42 @@ private GetOrganizationSettingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.class, + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the organization to get organization settings for. Its format is
    * "organizations/[organization_id]/organizationSettings".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +136,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the organization to get organization settings for. Its format is
    * "organizations/[organization_id]/organizationSettings".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +170,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +182,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +206,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest)) { + if (!(obj + instanceof com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest other = (com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest other = + (com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,134 +235,146 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for getting organization settings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.class, + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.Builder + .class); } - // Construct using com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,19 +384,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest build() { - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest result = buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -364,7 +408,8 @@ public com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest result = new com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest(this); + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest result = + new com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +419,52 @@ public com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest)other); + if (other + instanceof com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) { + return mergeFrom( + (com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest other) { + if (other + == com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +488,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +502,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +527,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +552,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to get organization settings for. Its format is
      * "organizations/[organization_id]/organizationSettings".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +632,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest(); } - public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOrganizationSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetOrganizationSettingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrganizationSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetOrganizationSettingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +670,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequestOrBuilder.java new file mode 100644 index 000000000..6bed1814c --- /dev/null +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetOrganizationSettingsRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public interface GetOrganizationSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the organization to get organization settings for. Its format is
+   * "organizations/[organization_id]/organizationSettings".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the organization to get organization settings for. Its format is
+   * "organizations/[organization_id]/organizationSettings".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java similarity index 67% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java index b50b93818..f2c2ae02b 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Request message for getting a source.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GetSourceRequest} */ -public final class GetSourceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.GetSourceRequest) GetSourceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSourceRequest.newBuilder() to construct. private GetSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSourceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetSourceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetSourceRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetSourceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.class, com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.class, + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Relative resource name of the source. Its format is
    * "organizations/[organization_id]/source/[source_id]".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Relative resource name of the source. Its format is
    * "organizations/[organization_id]/source/[source_id]".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest other = (com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest other = + (com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for getting a source.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GetSourceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.GetSourceRequest) com.google.cloud.securitycenter.v1p1beta1.GetSourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.class, com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.class, + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.newBuilder() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor; } @java.lang.Override @@ -364,7 +400,8 @@ public com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest result = new com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest(this); + com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest result = + new com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +411,39 @@ public com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +476,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +489,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +514,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +539,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Relative resource name of the source. Its format is
      * "organizations/[organization_id]/source/[source_id]".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +619,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.GetSourceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.GetSourceRequest) private static final com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest(); } @@ -573,16 +633,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSourceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSourceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSourceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +657,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.GetSourceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequestOrBuilder.java new file mode 100644 index 000000000..faa23ee35 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GetSourceRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public interface GetSourceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GetSourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Relative resource name of the source. Its format is
+   * "organizations/[organization_id]/source/[source_id]".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Relative resource name of the source. Its format is
+   * "organizations/[organization_id]/source/[source_id]".
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java similarity index 84% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java index 53f980984..c2b29b284 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Request message for grouping by assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest} */ -public final class GroupAssetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GroupAssetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) GroupAssetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GroupAssetsRequest.newBuilder() to construct. private GroupAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GroupAssetsRequest() { parent_ = ""; filter_ = ""; @@ -28,16 +46,15 @@ private GroupAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GroupAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GroupAssetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,68 +73,76 @@ private GroupAssetsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - groupBy_ = s; - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (compareDuration_ != null) { - subBuilder = compareDuration_.toBuilder(); + groupBy_ = s; + break; } - compareDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compareDuration_); - compareDuration_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); + } + compareDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); + } + + break; } + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); + pageToken_ = s; + break; } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 64: + { + pageSize_ = input.readInt32(); + break; } - - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 64: { - - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,36 +150,43 @@ private GroupAssetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.class, com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.class, + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -163,31 +195,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -198,6 +232,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -249,6 +285,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -257,14 +294,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -316,16 +354,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -336,6 +373,8 @@ public java.lang.String getFilter() { public static final int GROUP_BY_FIELD_NUMBER = 3; private volatile java.lang.Object groupBy_; /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -354,6 +393,7 @@ public java.lang.String getFilter() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The groupBy. */ @java.lang.Override @@ -362,14 +402,15 @@ public java.lang.String getGroupBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; } } /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -388,16 +429,15 @@ public java.lang.String getGroupBy() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for groupBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getGroupByBytes() { + public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); groupBy_ = b; return b; } else { @@ -408,6 +448,8 @@ public java.lang.String getGroupBy() { public static final int COMPARE_DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration compareDuration_; /** + * + * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -434,6 +476,7 @@ public java.lang.String getGroupBy() {
    * 
* * .google.protobuf.Duration compare_duration = 4; + * * @return Whether the compareDuration field is set. */ @java.lang.Override @@ -441,6 +484,8 @@ public boolean hasCompareDuration() { return compareDuration_ != null; } /** + * + * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -467,13 +512,18 @@ public boolean hasCompareDuration() {
    * 
* * .google.protobuf.Duration compare_duration = 4; + * * @return The compareDuration. */ @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { - return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; } /** + * + * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -509,6 +559,8 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
   public static final int READ_TIME_FIELD_NUMBER = 5;
   private com.google.protobuf.Timestamp readTime_;
   /**
+   *
+   *
    * 
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -517,6 +569,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
    * 
* * .google.protobuf.Timestamp read_time = 5; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -524,6 +577,8 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -532,6 +587,7 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 5; + * * @return The readTime. */ @java.lang.Override @@ -539,6 +595,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -556,6 +614,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int PAGE_TOKEN_FIELD_NUMBER = 7;
   private volatile java.lang.Object pageToken_;
   /**
+   *
+   *
    * 
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -563,6 +623,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * string page_token = 7; + * * @return The pageToken. */ @java.lang.Override @@ -571,14 +632,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -586,16 +648,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 7; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -606,12 +667,15 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 8; private int pageSize_; /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 8; + * * @return The pageSize. */ @java.lang.Override @@ -620,6 +684,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -631,8 +696,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -673,19 +737,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, groupBy_); } if (compareDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCompareDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCompareDuration()); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(8, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -695,33 +756,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest other = (com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest other = + (com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getGroupBy() - .equals(other.getGroupBy())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getGroupBy().equals(other.getGroupBy())) return false; if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - if (!getCompareDuration() - .equals(other.getCompareDuration())) return false; + if (!getCompareDuration().equals(other.getCompareDuration())) return false; } if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -757,117 +812,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for grouping by assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.class, com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.class, + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.newBuilder() @@ -875,16 +940,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -914,13 +978,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.getDefaultInstance(); } @@ -935,7 +1000,8 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest result = new com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest(this); + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest result = + new com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.groupBy_ = groupBy_; @@ -959,38 +1025,39 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) other); } else { super.mergeFrom(other); return this; @@ -998,7 +1065,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1043,7 +1112,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1055,20 +1125,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1077,22 +1151,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1100,60 +1177,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to groupBy. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1161,6 +1251,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1212,13 +1304,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1227,6 +1319,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1278,15 +1372,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1294,6 +1387,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1345,20 +1440,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1410,15 +1507,18 @@ public Builder setFilter(
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1470,16 +1570,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1487,6 +1587,8 @@ public Builder setFilterBytes( private java.lang.Object groupBy_ = ""; /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1505,13 +1607,13 @@ public Builder setFilterBytes(
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The groupBy. */ public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; @@ -1520,6 +1622,8 @@ public java.lang.String getGroupBy() { } } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1538,15 +1642,14 @@ public java.lang.String getGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for groupBy. */ - public com.google.protobuf.ByteString - getGroupByBytes() { + public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); groupBy_ = b; return b; } else { @@ -1554,6 +1657,8 @@ public java.lang.String getGroupBy() { } } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1572,20 +1677,22 @@ public java.lang.String getGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The groupBy to set. * @return This builder for chaining. */ - public Builder setGroupBy( - java.lang.String value) { + public Builder setGroupBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + groupBy_ = value; onChanged(); return this; } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1604,15 +1711,18 @@ public Builder setGroupBy(
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearGroupBy() { - + groupBy_ = getDefaultInstance().getGroupBy(); onChanged(); return this; } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping. The string
      * value should follow SQL syntax: comma separated list of fields. For
@@ -1631,16 +1741,16 @@ public Builder clearGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for groupBy to set. * @return This builder for chaining. */ - public Builder setGroupByBytes( - com.google.protobuf.ByteString value) { + public Builder setGroupByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + groupBy_ = value; onChanged(); return this; @@ -1648,8 +1758,13 @@ public Builder setGroupByBytes( private com.google.protobuf.Duration compareDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> compareDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + compareDurationBuilder_; /** + * + * *
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1676,12 +1791,15 @@ public Builder setGroupByBytes(
      * 
* * .google.protobuf.Duration compare_duration = 4; + * * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; } /** + * + * *
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1708,16 +1826,21 @@ public boolean hasCompareDuration() {
      * 
* * .google.protobuf.Duration compare_duration = 4; + * * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { - return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; } else { return compareDurationBuilder_.getMessage(); } } /** + * + * *
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1759,6 +1882,8 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1786,8 +1911,7 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration compare_duration = 4;
      */
-    public Builder setCompareDuration(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) {
       if (compareDurationBuilder_ == null) {
         compareDuration_ = builderForValue.build();
         onChanged();
@@ -1798,6 +1922,8 @@ public Builder setCompareDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1829,7 +1955,9 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       if (compareDurationBuilder_ == null) {
         if (compareDuration_ != null) {
           compareDuration_ =
-            com.google.protobuf.Duration.newBuilder(compareDuration_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(compareDuration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           compareDuration_ = value;
         }
@@ -1841,6 +1969,8 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1880,6 +2010,8 @@ public Builder clearCompareDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1908,11 +2040,13 @@ public Builder clearCompareDuration() {
      * .google.protobuf.Duration compare_duration = 4;
      */
     public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
-      
+
       onChanged();
       return getCompareDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1944,11 +2078,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
       if (compareDurationBuilder_ != null) {
         return compareDurationBuilder_.getMessageOrBuilder();
       } else {
-        return compareDuration_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : compareDuration_;
+        return compareDuration_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : compareDuration_;
       }
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" property is
      * updated to indicate whether the asset was added, removed, or remained
@@ -1977,14 +2114,17 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * .google.protobuf.Duration compare_duration = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getCompareDurationFieldBuilder() {
       if (compareDurationBuilder_ == null) {
-        compareDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getCompareDuration(),
-                getParentForChildren(),
-                isClean());
+        compareDurationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getCompareDuration(), getParentForChildren(), isClean());
         compareDuration_ = null;
       }
       return compareDurationBuilder_;
@@ -1992,8 +2132,13 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
 
     private com.google.protobuf.Timestamp readTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        readTimeBuilder_;
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2002,12 +2147,15 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * 
* * .google.protobuf.Timestamp read_time = 5; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2016,6 +2164,7 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 5; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -2026,6 +2175,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2049,6 +2200,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2058,8 +2211,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 5;
      */
-    public Builder setReadTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -2070,6 +2222,8 @@ public Builder setReadTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2083,7 +2237,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -2095,6 +2249,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2116,6 +2272,8 @@ public Builder clearReadTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2126,11 +2284,13 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-      
+
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2144,11 +2304,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -2159,14 +2320,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(),
-                getParentForChildren(),
-                isClean());
+        readTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(), getParentForChildren(), isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -2174,6 +2338,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private java.lang.Object pageToken_ = "";
     /**
+     *
+     *
      * 
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2181,13 +2347,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * string page_token = 7; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2196,6 +2362,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2203,15 +2371,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 7; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2219,6 +2386,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2226,20 +2395,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 7; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2247,15 +2418,18 @@ public Builder setPageToken(
      * 
* * string page_token = 7; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `GroupAssetsResponse`; indicates
      * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -2263,29 +2437,32 @@ public Builder clearPageToken() {
      * 
* * string page_token = 7; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; + * * @return The pageSize. */ @java.lang.Override @@ -2293,39 +2470,45 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2335,12 +2518,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest(); } @@ -2349,16 +2533,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupAssetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAssetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2373,6 +2557,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java similarity index 91% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java index b943a3c0e..6f72b9b81 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface GroupAssetsRequestOrBuilder extends +public interface GroupAssetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Name of the organization to groupBy. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -83,10 +110,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -138,12 +168,14 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -162,10 +194,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The groupBy. */ java.lang.String getGroupBy(); /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping. The string
    * value should follow SQL syntax: comma separated list of fields. For
@@ -184,12 +219,14 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for groupBy. */ - com.google.protobuf.ByteString - getGroupByBytes(); + com.google.protobuf.ByteString getGroupByBytes(); /** + * + * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -216,10 +253,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Duration compare_duration = 4; + * * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** + * + * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -246,10 +286,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Duration compare_duration = 4; + * * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** + * + * *
    * When compare_duration is set, the GroupResult's "state_change" property is
    * updated to indicate whether the asset was added, removed, or remained
@@ -280,6 +323,8 @@ public interface GroupAssetsRequestOrBuilder extends
   com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
 
   /**
+   *
+   *
    * 
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -288,10 +333,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 5; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -300,10 +348,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 5; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -316,6 +367,8 @@ public interface GroupAssetsRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -323,10 +376,13 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * string page_token = 7; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `GroupAssetsResponse`; indicates
    * that this is a continuation of a prior `GroupAssets` call, and that the
@@ -334,18 +390,21 @@ public interface GroupAssetsRequestOrBuilder extends
    * 
* * string page_token = 7; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 8; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java index 7ca7e99c3..40003704c 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Response message for grouping by assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse} */ -public final class GroupAssetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GroupAssetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) GroupAssetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GroupAssetsResponse.newBuilder() to construct. private GroupAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GroupAssetsResponse() { groupByResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private GroupAssetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GroupAssetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GroupAssetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,46 +72,54 @@ private GroupAssetsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - groupByResults_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - groupByResults_.add( - input.readMessage(com.google.cloud.securitycenter.v1p1beta1.GroupResult.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + groupByResults_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1p1beta1.GroupResult>(); + mutable_bitField0_ |= 0x00000001; + } + groupByResults_.add( + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.GroupResult.parser(), + extensionRegistry)); + break; } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 32: { + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - totalSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + case 32: + { + totalSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,8 +127,7 @@ private GroupAssetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); @@ -112,22 +136,27 @@ private GroupAssetsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.class, com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.class, + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.Builder.class); } public static final int GROUP_BY_RESULTS_FIELD_NUMBER = 1; private java.util.List groupByResults_; /** + * + * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -137,10 +166,13 @@ private GroupAssetsResponse(
    * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
    */
   @java.lang.Override
-  public java.util.List getGroupByResultsList() {
+  public java.util.List
+      getGroupByResultsList() {
     return groupByResults_;
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -150,11 +182,13 @@ public java.util.List get
    * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getGroupByResultsOrBuilderList() {
     return groupByResults_;
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -168,6 +202,8 @@ public int getGroupByResultsCount() {
     return groupByResults_.size();
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -181,6 +217,8 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(i
     return groupByResults_.get(index);
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -198,11 +236,14 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupBy
   public static final int READ_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Timestamp readTime_;
   /**
+   *
+   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -210,11 +251,14 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ @java.lang.Override @@ -222,6 +266,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used for executing the groupBy request.
    * 
@@ -236,12 +282,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ @java.lang.Override @@ -250,30 +299,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -284,11 +333,14 @@ public java.lang.String getNextPageToken() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_; /** + * + * *
    * The total number of results matching the query.
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -297,6 +349,7 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,8 +361,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < groupByResults_.size(); i++) { output.writeMessage(1, groupByResults_.get(i)); } @@ -332,19 +384,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < groupByResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, groupByResults_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, groupByResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -354,24 +403,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse other = (com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) obj; + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse other = + (com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) obj; - if (!getGroupByResultsList() - .equals(other.getGroupByResultsList())) return false; + if (!getGroupByResultsList().equals(other.getGroupByResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (getTotalSize() - != other.getTotalSize()) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -401,117 +447,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for grouping by assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.class, com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.class, + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.newBuilder() @@ -519,17 +575,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getGroupByResultsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -553,13 +609,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.getDefaultInstance(); } @@ -574,7 +631,8 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse result = new com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse(this); + com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse result = + new com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse(this); int from_bitField0_ = bitField0_; if (groupByResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -600,38 +658,39 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse)other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) other); } else { super.mergeFrom(other); return this; @@ -639,7 +698,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse.getDefaultInstance()) + return this; if (groupByResultsBuilder_ == null) { if (!other.groupByResults_.isEmpty()) { if (groupByResults_.isEmpty()) { @@ -658,9 +719,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GroupAssetsRe groupByResultsBuilder_ = null; groupByResults_ = other.groupByResults_; bitField0_ = (bitField0_ & ~0x00000001); - groupByResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGroupByResultsFieldBuilder() : null; + groupByResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroupByResultsFieldBuilder() + : null; } else { groupByResultsBuilder_.addAllMessages(other.groupByResults_); } @@ -695,7 +757,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -704,30 +768,41 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List groupByResults_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureGroupByResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - groupByResults_ = new java.util.ArrayList(groupByResults_); + groupByResults_ = + new java.util.ArrayList( + groupByResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.GroupResult, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder> groupByResultsBuilder_; + com.google.cloud.securitycenter.v1p1beta1.GroupResult, + com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, + com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder> + groupByResultsBuilder_; /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ - public java.util.List getGroupByResultsList() { + public java.util.List + getGroupByResultsList() { if (groupByResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(groupByResults_); } else { @@ -735,13 +810,16 @@ public java.util.List get } } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public int getGroupByResultsCount() { if (groupByResultsBuilder_ == null) { @@ -751,13 +829,16 @@ public int getGroupByResultsCount() { } } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(int index) { if (groupByResultsBuilder_ == null) { @@ -767,13 +848,16 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(i } } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public Builder setGroupByResults( int index, com.google.cloud.securitycenter.v1p1beta1.GroupResult value) { @@ -790,13 +874,16 @@ public Builder setGroupByResults( return this; } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public Builder setGroupByResults( int index, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder builderForValue) { @@ -810,13 +897,16 @@ public Builder setGroupByResults( return this; } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public Builder addGroupByResults(com.google.cloud.securitycenter.v1p1beta1.GroupResult value) { if (groupByResultsBuilder_ == null) { @@ -832,13 +922,16 @@ public Builder addGroupByResults(com.google.cloud.securitycenter.v1p1beta1.Group return this; } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public Builder addGroupByResults( int index, com.google.cloud.securitycenter.v1p1beta1.GroupResult value) { @@ -855,13 +948,16 @@ public Builder addGroupByResults( return this; } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public Builder addGroupByResults( com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder builderForValue) { @@ -875,13 +971,16 @@ public Builder addGroupByResults( return this; } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public Builder addGroupByResults( int index, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder builderForValue) { @@ -895,20 +994,23 @@ public Builder addGroupByResults( return this; } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public Builder addAllGroupByResults( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (groupByResultsBuilder_ == null) { ensureGroupByResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, groupByResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupByResults_); onChanged(); } else { groupByResultsBuilder_.addAllMessages(values); @@ -916,13 +1018,16 @@ public Builder addAllGroupByResults( return this; } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public Builder clearGroupByResults() { if (groupByResultsBuilder_ == null) { @@ -935,13 +1040,16 @@ public Builder clearGroupByResults() { return this; } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public Builder removeGroupByResults(int index) { if (groupByResultsBuilder_ == null) { @@ -954,45 +1062,55 @@ public Builder removeGroupByResults(int index) { return this; } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder getGroupByResultsBuilder( int index) { return getGroupByResultsFieldBuilder().getBuilder(index); } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ - public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupByResultsOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder + getGroupByResultsOrBuilder(int index) { if (groupByResultsBuilder_ == null) { - return groupByResults_.get(index); } else { + return groupByResults_.get(index); + } else { return groupByResultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ - public java.util.List - getGroupByResultsOrBuilderList() { + public java.util.List + getGroupByResultsOrBuilderList() { if (groupByResultsBuilder_ != null) { return groupByResultsBuilder_.getMessageOrBuilderList(); } else { @@ -1000,51 +1118,68 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupBy } } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ - public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder addGroupByResultsBuilder() { - return getGroupByResultsFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1p1beta1.GroupResult.getDefaultInstance()); + public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder + addGroupByResultsBuilder() { + return getGroupByResultsFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1p1beta1.GroupResult.getDefaultInstance()); } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder addGroupByResultsBuilder( int index) { - return getGroupByResultsFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1p1beta1.GroupResult.getDefaultInstance()); + return getGroupByResultsFieldBuilder() + .addBuilder( + index, com.google.cloud.securitycenter.v1p1beta1.GroupResult.getDefaultInstance()); } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ - public java.util.List - getGroupByResultsBuilderList() { + public java.util.List + getGroupByResultsBuilderList() { return getGroupByResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.GroupResult, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.GroupResult, + com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, + com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder> getGroupByResultsFieldBuilder() { if (groupByResultsBuilder_ == null) { - groupByResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.GroupResult, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder>( + groupByResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.GroupResult, + com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, + com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder>( groupByResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1056,24 +1191,33 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder addGroupByR private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1084,6 +1228,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1104,14 +1250,15 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -1122,6 +1269,8 @@ public Builder setReadTime( return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1132,7 +1281,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -1144,6 +1293,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1162,6 +1313,8 @@ public Builder clearReadTime() { return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1169,11 +1322,13 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1184,11 +1339,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1196,14 +1352,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReadTime(), - getParentForChildren(), - isClean()); + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); readTime_ = null; } return readTimeBuilder_; @@ -1211,19 +1370,21 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1232,21 +1393,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1254,69 +1416,79 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_ ; + private int totalSize_; /** + * + * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -1324,37 +1496,43 @@ public int getTotalSize() { return totalSize_; } /** + * + * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; + * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** + * + * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; + * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1364,12 +1542,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) - private static final com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse(); } @@ -1378,16 +1557,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupAssetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupAssetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupAssetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupAssetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1402,6 +1581,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponseOrBuilder.java similarity index 80% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponseOrBuilder.java index dc7f555e0..c655aa8c5 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupAssetsResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface GroupAssetsResponseOrBuilder extends +public interface GroupAssetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -16,9 +34,10 @@ public interface GroupAssetsResponseOrBuilder extends
    *
    * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
    */
-  java.util.List 
-      getGroupByResultsList();
+  java.util.List getGroupByResultsList();
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -29,6 +48,8 @@ public interface GroupAssetsResponseOrBuilder extends
    */
   com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(int index);
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -39,6 +60,8 @@ public interface GroupAssetsResponseOrBuilder extends
    */
   int getGroupByResultsCount();
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -47,9 +70,11 @@ public interface GroupAssetsResponseOrBuilder extends
    *
    * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
    */
-  java.util.List 
+  java.util.List
       getGroupByResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -62,24 +87,32 @@ com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupByResults
       int index);
 
   /**
+   *
+   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used for executing the groupBy request.
    * 
@@ -89,33 +122,41 @@ com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupByResults com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * The total number of results matching the query.
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ int getTotalSize(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java similarity index 83% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java index fcde45a82..dd70227fb 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Request message for grouping by findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest} */ -public final class GroupFindingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GroupFindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) GroupFindingsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GroupFindingsRequest.newBuilder() to construct. private GroupFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GroupFindingsRequest() { parent_ = ""; filter_ = ""; @@ -28,16 +46,15 @@ private GroupFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GroupFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GroupFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,68 +73,76 @@ private GroupFindingsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - groupBy_ = s; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); + groupBy_ = s; + break; } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; } + case 42: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); + } + compareDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 42: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (compareDuration_ != null) { - subBuilder = compareDuration_.toBuilder(); + pageToken_ = s; + break; } - compareDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compareDuration_); - compareDuration_ = subBuilder.buildPartial(); + case 64: + { + pageSize_ = input.readInt32(); + break; } - - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 64: { - - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,29 +150,33 @@ private GroupFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.class, com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.class, + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]",
@@ -158,7 +187,10 @@ private GroupFindingsRequest(
    * or projects/{project_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -167,14 +199,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]",
@@ -185,17 +218,18 @@ public java.lang.String getParent() {
    * or projects/{project_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -206,6 +240,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -247,6 +283,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -255,14 +292,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -304,16 +342,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -324,6 +361,8 @@ public java.lang.String getFilter() { public static final int GROUP_BY_FIELD_NUMBER = 3; private volatile java.lang.Object groupBy_; /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state_change`). The string value should follow SQL syntax: comma separated
@@ -339,6 +378,7 @@ public java.lang.String getFilter() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The groupBy. */ @java.lang.Override @@ -347,14 +387,15 @@ public java.lang.String getGroupBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; } } /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state_change`). The string value should follow SQL syntax: comma separated
@@ -370,16 +411,15 @@ public java.lang.String getGroupBy() {
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for groupBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getGroupByBytes() { + public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); groupBy_ = b; return b; } else { @@ -390,6 +430,8 @@ public java.lang.String getGroupBy() { public static final int READ_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp readTime_; /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -398,6 +440,7 @@ public java.lang.String getGroupBy() {
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -405,6 +448,8 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -413,6 +458,7 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ @java.lang.Override @@ -420,6 +466,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -437,6 +485,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int COMPARE_DURATION_FIELD_NUMBER = 5;
   private com.google.protobuf.Duration compareDuration_;
   /**
+   *
+   *
    * 
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -468,6 +518,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ @java.lang.Override @@ -475,6 +526,8 @@ public boolean hasCompareDuration() { return compareDuration_ != null; } /** + * + * *
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -506,13 +559,18 @@ public boolean hasCompareDuration() {
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { - return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; } /** + * + * *
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -553,6 +611,8 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
   public static final int PAGE_TOKEN_FIELD_NUMBER = 7;
   private volatile java.lang.Object pageToken_;
   /**
+   *
+   *
    * 
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -560,6 +620,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
    * 
* * string page_token = 7; + * * @return The pageToken. */ @java.lang.Override @@ -568,14 +629,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -583,16 +645,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 7; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -603,12 +664,15 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 8; private int pageSize_; /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 8; + * * @return The pageSize. */ @java.lang.Override @@ -617,6 +681,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -628,8 +693,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -670,19 +734,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, groupBy_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); } if (compareDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCompareDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(8, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -692,33 +753,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest other = (com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest other = + (com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getGroupBy() - .equals(other.getGroupBy())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getGroupBy().equals(other.getGroupBy())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - if (!getCompareDuration() - .equals(other.getCompareDuration())) return false; + if (!getCompareDuration().equals(other.getCompareDuration())) return false; } - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -754,117 +809,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for grouping by findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.class, com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.class, + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.newBuilder() @@ -872,16 +937,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -911,13 +975,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.getDefaultInstance(); } @@ -932,7 +997,8 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest result = new com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest(this); + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest result = + new com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.groupBy_ = groupBy_; @@ -956,38 +1022,39 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) other); } else { super.mergeFrom(other); return this; @@ -995,7 +1062,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1040,7 +1109,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1052,6 +1123,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]",
@@ -1062,14 +1135,16 @@ public Builder mergeFrom(
      * or projects/{project_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1078,6 +1153,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]",
@@ -1088,16 +1165,17 @@ public java.lang.String getParent() {
      * or projects/{project_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1105,6 +1183,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]",
@@ -1115,21 +1195,25 @@ public java.lang.String getParent() {
      * or projects/{project_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]",
@@ -1140,16 +1224,21 @@ public Builder setParent(
      * or projects/{project_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Name of the source to groupBy. Its format is
      * "organizations/[organization_id]/sources/[source_id]",
@@ -1160,17 +1249,19 @@ public Builder clearParent() {
      * or projects/{project_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1178,6 +1269,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1219,13 +1312,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1234,6 +1327,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1275,15 +1370,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1291,6 +1385,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1332,20 +1428,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1387,15 +1485,18 @@ public Builder setFilter(
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1437,16 +1538,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1454,6 +1555,8 @@ public Builder setFilterBytes( private java.lang.Object groupBy_ = ""; /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
@@ -1469,13 +1572,13 @@ public Builder setFilterBytes(
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The groupBy. */ public java.lang.String getGroupBy() { java.lang.Object ref = groupBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupBy_ = s; return s; @@ -1484,6 +1587,8 @@ public java.lang.String getGroupBy() { } } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
@@ -1499,15 +1604,14 @@ public java.lang.String getGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for groupBy. */ - public com.google.protobuf.ByteString - getGroupByBytes() { + public com.google.protobuf.ByteString getGroupByBytes() { java.lang.Object ref = groupBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); groupBy_ = b; return b; } else { @@ -1515,6 +1619,8 @@ public java.lang.String getGroupBy() { } } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
@@ -1530,20 +1636,22 @@ public java.lang.String getGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The groupBy to set. * @return This builder for chaining. */ - public Builder setGroupBy( - java.lang.String value) { + public Builder setGroupBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + groupBy_ = value; onChanged(); return this; } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
@@ -1559,15 +1667,18 @@ public Builder setGroupBy(
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearGroupBy() { - + groupBy_ = getDefaultInstance().getGroupBy(); onChanged(); return this; } /** + * + * *
      * Required. Expression that defines what assets fields to use for grouping (including
      * `state_change`). The string value should follow SQL syntax: comma separated
@@ -1583,16 +1694,16 @@ public Builder clearGroupBy() {
      * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for groupBy to set. * @return This builder for chaining. */ - public Builder setGroupByBytes( - com.google.protobuf.ByteString value) { + public Builder setGroupByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + groupBy_ = value; onChanged(); return this; @@ -1600,8 +1711,13 @@ public Builder setGroupByBytes( private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1610,12 +1726,15 @@ public Builder setGroupByBytes(
      * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1624,6 +1743,7 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1634,6 +1754,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1657,6 +1779,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1666,8 +1790,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 4;
      */
-    public Builder setReadTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1678,6 +1801,8 @@ public Builder setReadTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1691,7 +1816,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -1703,6 +1828,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1724,6 +1851,8 @@ public Builder clearReadTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1734,11 +1863,13 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-      
+
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1752,11 +1883,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1767,14 +1899,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(),
-                getParentForChildren(),
-                isClean());
+        readTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(), getParentForChildren(), isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -1782,8 +1917,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private com.google.protobuf.Duration compareDuration_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> compareDurationBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        compareDurationBuilder_;
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -1815,12 +1955,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; } /** + * + * *
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -1852,16 +1995,21 @@ public boolean hasCompareDuration() {
      * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { - return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; } else { return compareDurationBuilder_.getMessage(); } } /** + * + * *
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -1908,6 +2056,8 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -1940,8 +2090,7 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration compare_duration = 5;
      */
-    public Builder setCompareDuration(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) {
       if (compareDurationBuilder_ == null) {
         compareDuration_ = builderForValue.build();
         onChanged();
@@ -1952,6 +2101,8 @@ public Builder setCompareDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -1988,7 +2139,9 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       if (compareDurationBuilder_ == null) {
         if (compareDuration_ != null) {
           compareDuration_ =
-            com.google.protobuf.Duration.newBuilder(compareDuration_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(compareDuration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           compareDuration_ = value;
         }
@@ -2000,6 +2153,8 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2044,6 +2199,8 @@ public Builder clearCompareDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2077,11 +2234,13 @@ public Builder clearCompareDuration() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
-      
+
       onChanged();
       return getCompareDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2118,11 +2277,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
       if (compareDurationBuilder_ != null) {
         return compareDurationBuilder_.getMessageOrBuilder();
       } else {
-        return compareDuration_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : compareDuration_;
+        return compareDuration_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : compareDuration_;
       }
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the GroupResult's "state_change" attribute is
      * updated to indicate whether the finding had its state changed, the
@@ -2156,14 +2318,17 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getCompareDurationFieldBuilder() {
       if (compareDurationBuilder_ == null) {
-        compareDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getCompareDuration(),
-                getParentForChildren(),
-                isClean());
+        compareDurationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getCompareDuration(), getParentForChildren(), isClean());
         compareDuration_ = null;
       }
       return compareDurationBuilder_;
@@ -2171,6 +2336,8 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
 
     private java.lang.Object pageToken_ = "";
     /**
+     *
+     *
      * 
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -2178,13 +2345,13 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * 
* * string page_token = 7; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2193,6 +2360,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -2200,15 +2369,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 7; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2216,6 +2384,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -2223,20 +2393,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 7; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -2244,15 +2416,18 @@ public Builder setPageToken(
      * 
* * string page_token = 7; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `GroupFindingsResponse`; indicates
      * that this is a continuation of a prior `GroupFindings` call, and
@@ -2260,29 +2435,32 @@ public Builder clearPageToken() {
      * 
* * string page_token = 7; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; + * * @return The pageSize. */ @java.lang.Override @@ -2290,39 +2468,45 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 8; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2332,30 +2516,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest(); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2367,9 +2553,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java similarity index 91% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java index 8614cd896..cc3deb88a 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface GroupFindingsRequestOrBuilder extends +public interface GroupFindingsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]",
@@ -18,11 +36,16 @@ public interface GroupFindingsRequestOrBuilder extends
    * or projects/{project_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Name of the source to groupBy. Its format is
    * "organizations/[organization_id]/sources/[source_id]",
@@ -33,13 +56,17 @@ public interface GroupFindingsRequestOrBuilder extends
    * or projects/{project_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -81,10 +108,13 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -126,12 +156,14 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state_change`). The string value should follow SQL syntax: comma separated
@@ -147,10 +179,13 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The groupBy. */ java.lang.String getGroupBy(); /** + * + * *
    * Required. Expression that defines what assets fields to use for grouping (including
    * `state_change`). The string value should follow SQL syntax: comma separated
@@ -166,12 +201,14 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * string group_by = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for groupBy. */ - com.google.protobuf.ByteString - getGroupByBytes(); + com.google.protobuf.ByteString getGroupByBytes(); /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -180,10 +217,13 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -192,10 +232,13 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -208,6 +251,8 @@ public interface GroupFindingsRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -239,10 +284,13 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** + * + * *
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -274,10 +322,13 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** + * + * *
    * When compare_duration is set, the GroupResult's "state_change" attribute is
    * updated to indicate whether the finding had its state changed, the
@@ -313,6 +364,8 @@ public interface GroupFindingsRequestOrBuilder extends
   com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
 
   /**
+   *
+   *
    * 
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -320,10 +373,13 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * string page_token = 7; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `GroupFindingsResponse`; indicates
    * that this is a continuation of a prior `GroupFindings` call, and
@@ -331,18 +387,21 @@ public interface GroupFindingsRequestOrBuilder extends
    * 
* * string page_token = 7; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 8; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java similarity index 74% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java index f5db895da..dde4ad31f 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Response message for group by findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse} */ -public final class GroupFindingsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GroupFindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) GroupFindingsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GroupFindingsResponse.newBuilder() to construct. private GroupFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GroupFindingsResponse() { groupByResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private GroupFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GroupFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GroupFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,46 +72,54 @@ private GroupFindingsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - groupByResults_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - groupByResults_.add( - input.readMessage(com.google.cloud.securitycenter.v1p1beta1.GroupResult.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + groupByResults_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1p1beta1.GroupResult>(); + mutable_bitField0_ |= 0x00000001; + } + groupByResults_.add( + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.GroupResult.parser(), + extensionRegistry)); + break; } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 32: { + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - totalSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + case 32: + { + totalSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,8 +127,7 @@ private GroupFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); @@ -112,22 +136,27 @@ private GroupFindingsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.class, com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.class, + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.Builder.class); } public static final int GROUP_BY_RESULTS_FIELD_NUMBER = 1; private java.util.List groupByResults_; /** + * + * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -137,10 +166,13 @@ private GroupFindingsResponse(
    * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
    */
   @java.lang.Override
-  public java.util.List getGroupByResultsList() {
+  public java.util.List
+      getGroupByResultsList() {
     return groupByResults_;
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -150,11 +182,13 @@ public java.util.List get
    * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getGroupByResultsOrBuilderList() {
     return groupByResults_;
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -168,6 +202,8 @@ public int getGroupByResultsCount() {
     return groupByResults_.size();
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -181,6 +217,8 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(i
     return groupByResults_.get(index);
   }
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -198,11 +236,14 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupBy
   public static final int READ_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Timestamp readTime_;
   /**
+   *
+   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -210,11 +251,14 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ @java.lang.Override @@ -222,6 +266,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used for executing the groupBy request.
    * 
@@ -236,12 +282,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ @java.lang.Override @@ -250,30 +299,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -284,11 +333,14 @@ public java.lang.String getNextPageToken() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_; /** + * + * *
    * The total number of results matching the query.
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -297,6 +349,7 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,8 +361,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < groupByResults_.size(); i++) { output.writeMessage(1, groupByResults_.get(i)); } @@ -332,19 +384,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < groupByResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, groupByResults_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, groupByResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -354,24 +403,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse other = (com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) obj; + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse other = + (com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) obj; - if (!getGroupByResultsList() - .equals(other.getGroupByResultsList())) return false; + if (!getGroupByResultsList().equals(other.getGroupByResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (getTotalSize() - != other.getTotalSize()) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -401,117 +447,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for group by findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.class, com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.class, + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.newBuilder() @@ -519,17 +575,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getGroupByResultsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -553,13 +609,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.getDefaultInstance(); } @@ -574,7 +631,8 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse result = new com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse(this); + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse result = + new com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse(this); int from_bitField0_ = bitField0_; if (groupByResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -600,46 +658,50 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse)other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse other) { + if (other + == com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse.getDefaultInstance()) + return this; if (groupByResultsBuilder_ == null) { if (!other.groupByResults_.isEmpty()) { if (groupByResults_.isEmpty()) { @@ -658,9 +720,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GroupFindings groupByResultsBuilder_ = null; groupByResults_ = other.groupByResults_; bitField0_ = (bitField0_ & ~0x00000001); - groupByResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGroupByResultsFieldBuilder() : null; + groupByResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroupByResultsFieldBuilder() + : null; } else { groupByResultsBuilder_.addAllMessages(other.groupByResults_); } @@ -695,7 +758,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -704,30 +769,41 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List groupByResults_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureGroupByResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - groupByResults_ = new java.util.ArrayList(groupByResults_); + groupByResults_ = + new java.util.ArrayList( + groupByResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.GroupResult, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder> groupByResultsBuilder_; + com.google.cloud.securitycenter.v1p1beta1.GroupResult, + com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, + com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder> + groupByResultsBuilder_; /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ - public java.util.List getGroupByResultsList() { + public java.util.List + getGroupByResultsList() { if (groupByResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(groupByResults_); } else { @@ -735,13 +811,16 @@ public java.util.List get } } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public int getGroupByResultsCount() { if (groupByResultsBuilder_ == null) { @@ -751,13 +830,16 @@ public int getGroupByResultsCount() { } } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(int index) { if (groupByResultsBuilder_ == null) { @@ -767,13 +849,16 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(i } } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public Builder setGroupByResults( int index, com.google.cloud.securitycenter.v1p1beta1.GroupResult value) { @@ -790,13 +875,16 @@ public Builder setGroupByResults( return this; } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public Builder setGroupByResults( int index, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder builderForValue) { @@ -810,13 +898,16 @@ public Builder setGroupByResults( return this; } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public Builder addGroupByResults(com.google.cloud.securitycenter.v1p1beta1.GroupResult value) { if (groupByResultsBuilder_ == null) { @@ -832,13 +923,16 @@ public Builder addGroupByResults(com.google.cloud.securitycenter.v1p1beta1.Group return this; } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public Builder addGroupByResults( int index, com.google.cloud.securitycenter.v1p1beta1.GroupResult value) { @@ -855,13 +949,16 @@ public Builder addGroupByResults( return this; } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public Builder addGroupByResults( com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder builderForValue) { @@ -875,13 +972,16 @@ public Builder addGroupByResults( return this; } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public Builder addGroupByResults( int index, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder builderForValue) { @@ -895,20 +995,23 @@ public Builder addGroupByResults( return this; } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public Builder addAllGroupByResults( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (groupByResultsBuilder_ == null) { ensureGroupByResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, groupByResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupByResults_); onChanged(); } else { groupByResultsBuilder_.addAllMessages(values); @@ -916,13 +1019,16 @@ public Builder addAllGroupByResults( return this; } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public Builder clearGroupByResults() { if (groupByResultsBuilder_ == null) { @@ -935,13 +1041,16 @@ public Builder clearGroupByResults() { return this; } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public Builder removeGroupByResults(int index) { if (groupByResultsBuilder_ == null) { @@ -954,45 +1063,55 @@ public Builder removeGroupByResults(int index) { return this; } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder getGroupByResultsBuilder( int index) { return getGroupByResultsFieldBuilder().getBuilder(index); } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ - public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupByResultsOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder + getGroupByResultsOrBuilder(int index) { if (groupByResultsBuilder_ == null) { - return groupByResults_.get(index); } else { + return groupByResults_.get(index); + } else { return groupByResultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ - public java.util.List - getGroupByResultsOrBuilderList() { + public java.util.List + getGroupByResultsOrBuilderList() { if (groupByResultsBuilder_ != null) { return groupByResultsBuilder_.getMessageOrBuilderList(); } else { @@ -1000,51 +1119,68 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupBy } } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ - public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder addGroupByResultsBuilder() { - return getGroupByResultsFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1p1beta1.GroupResult.getDefaultInstance()); + public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder + addGroupByResultsBuilder() { + return getGroupByResultsFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1p1beta1.GroupResult.getDefaultInstance()); } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder addGroupByResultsBuilder( int index) { - return getGroupByResultsFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1p1beta1.GroupResult.getDefaultInstance()); + return getGroupByResultsFieldBuilder() + .addBuilder( + index, com.google.cloud.securitycenter.v1p1beta1.GroupResult.getDefaultInstance()); } /** + * + * *
      * Group results. There exists an element for each existing unique
      * combination of property/values. The element contains a count for the number
      * of times those specific property/values appear.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1; + * */ - public java.util.List - getGroupByResultsBuilderList() { + public java.util.List + getGroupByResultsBuilderList() { return getGroupByResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.GroupResult, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.GroupResult, + com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, + com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder> getGroupByResultsFieldBuilder() { if (groupByResultsBuilder_ == null) { - groupByResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.GroupResult, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder>( + groupByResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.GroupResult, + com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder, + com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder>( groupByResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1056,24 +1192,33 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder addGroupByR private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1084,6 +1229,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1104,14 +1251,15 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -1122,6 +1270,8 @@ public Builder setReadTime( return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1132,7 +1282,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -1144,6 +1294,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1162,6 +1314,8 @@ public Builder clearReadTime() { return this; } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1169,11 +1323,13 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1184,11 +1340,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** + * + * *
      * Time used for executing the groupBy request.
      * 
@@ -1196,14 +1353,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReadTime(), - getParentForChildren(), - isClean()); + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); readTime_ = null; } return readTimeBuilder_; @@ -1211,19 +1371,21 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1232,21 +1394,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1254,69 +1417,79 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_ ; + private int totalSize_; /** + * + * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -1324,37 +1497,43 @@ public int getTotalSize() { return totalSize_; } /** + * + * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; + * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** + * + * *
      * The total number of results matching the query.
      * 
* * int32 total_size = 4; + * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1364,30 +1543,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) - private static final com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse(); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1399,9 +1580,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponseOrBuilder.java similarity index 80% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponseOrBuilder.java index 087f87b7a..7497748ff 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupFindingsResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface GroupFindingsResponseOrBuilder extends +public interface GroupFindingsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -16,9 +34,10 @@ public interface GroupFindingsResponseOrBuilder extends
    *
    * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
    */
-  java.util.List 
-      getGroupByResultsList();
+  java.util.List getGroupByResultsList();
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -29,6 +48,8 @@ public interface GroupFindingsResponseOrBuilder extends
    */
   com.google.cloud.securitycenter.v1p1beta1.GroupResult getGroupByResults(int index);
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -39,6 +60,8 @@ public interface GroupFindingsResponseOrBuilder extends
    */
   int getGroupByResultsCount();
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -47,9 +70,11 @@ public interface GroupFindingsResponseOrBuilder extends
    *
    * repeated .google.cloud.securitycenter.v1p1beta1.GroupResult group_by_results = 1;
    */
-  java.util.List 
+  java.util.List
       getGroupByResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * Group results. There exists an element for each existing unique
    * combination of property/values. The element contains a count for the number
@@ -62,24 +87,32 @@ com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupByResults
       int index);
 
   /**
+   *
+   *
    * 
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used for executing the groupBy request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used for executing the groupBy request.
    * 
@@ -89,33 +122,41 @@ com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder getGroupByResults com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * The total number of results matching the query.
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ int getTotalSize(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java similarity index 64% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java index 1136a0b1e..742b6a425 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResult.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Result containing the properties and count of a groupBy request.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GroupResult} */ -public final class GroupResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GroupResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.GroupResult) GroupResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GroupResult.newBuilder() to construct. private GroupResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GroupResult() { - } + + private GroupResult() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GroupResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GroupResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,31 +69,34 @@ private GroupResult( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - properties_ = com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + properties_ = + com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + properties__ = + input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + properties_.getMutableMap().put(properties__.getKey(), properties__.getValue()); + break; } - com.google.protobuf.MapEntry - properties__ = input.readMessage( - PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - properties_.getMutableMap().put( - properties__.getKey(), properties__.getValue()); - break; - } - case 16: { - - count_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 16: + { + count_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,57 +104,60 @@ private GroupResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetProperties(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GroupResult.class, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GroupResult.class, + com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder.class); } public static final int PROPERTIES_FIELD_NUMBER = 1; + private static final class PropertiesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.Value> defaultEntry = + static final com.google.protobuf.MapEntry + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> properties_; + .newDefaultInstance( + com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); + } + + private com.google.protobuf.MapField properties_; + private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PropertiesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } @@ -144,28 +166,30 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -173,11 +197,12 @@ public java.util.Map getProperties( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -185,16 +210,18 @@ public java.util.Map getPropertiesM * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - public com.google.protobuf.Value getPropertiesOrDefault( - java.lang.String key, - com.google.protobuf.Value defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.protobuf.Value defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -202,10 +229,10 @@ public com.google.protobuf.Value getPropertiesOrDefault( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - - public com.google.protobuf.Value getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { @@ -217,11 +244,14 @@ public com.google.protobuf.Value getPropertiesOrThrow( public static final int COUNT_FIELD_NUMBER = 2; private long count_; /** + * + * *
    * Total count of resources for the given properties.
    * 
* * int64 count = 2; + * * @return The count. */ @java.lang.Override @@ -230,6 +260,7 @@ public long getCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -241,14 +272,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetProperties(), - PropertiesDefaultEntryHolder.defaultEntry, - 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 1); if (count_ != 0L) { output.writeInt64(2, count_); } @@ -261,19 +287,18 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetProperties().getMap().entrySet()) { - com.google.protobuf.MapEntry - properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, properties__); + for (java.util.Map.Entry entry : + internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry properties__ = + PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, properties__); } if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, count_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, count_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -283,17 +308,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.GroupResult)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.GroupResult other = (com.google.cloud.securitycenter.v1p1beta1.GroupResult) obj; + com.google.cloud.securitycenter.v1p1beta1.GroupResult other = + (com.google.cloud.securitycenter.v1p1beta1.GroupResult) obj; - if (!internalGetProperties().equals( - other.internalGetProperties())) return false; - if (getCount() - != other.getCount()) return false; + if (!internalGetProperties().equals(other.internalGetProperties())) return false; + if (getCount() != other.getCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -310,147 +334,154 @@ public int hashCode() { hash = (53 * hash) + internalGetProperties().hashCode(); } hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.GroupResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.GroupResult prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.GroupResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Result containing the properties and count of a groupBy request.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.GroupResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.GroupResult) com.google.cloud.securitycenter.v1p1beta1.GroupResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetProperties(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableProperties(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.GroupResult.class, com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.GroupResult.class, + com.google.cloud.securitycenter.v1p1beta1.GroupResult.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.GroupResult.newBuilder() @@ -458,16 +489,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +508,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor; } @java.lang.Override @@ -499,7 +529,8 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.GroupResult buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.GroupResult result = new com.google.cloud.securitycenter.v1p1beta1.GroupResult(this); + com.google.cloud.securitycenter.v1p1beta1.GroupResult result = + new com.google.cloud.securitycenter.v1p1beta1.GroupResult(this); int from_bitField0_ = bitField0_; result.properties_ = internalGetProperties(); result.properties_.makeImmutable(); @@ -512,38 +543,39 @@ public com.google.cloud.securitycenter.v1p1beta1.GroupResult buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.GroupResult) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GroupResult)other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.GroupResult) other); } else { super.mergeFrom(other); return this; @@ -551,9 +583,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.GroupResult other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.GroupResult.getDefaultInstance()) return this; - internalGetMutableProperties().mergeFrom( - other.internalGetProperties()); + if (other == com.google.cloud.securitycenter.v1p1beta1.GroupResult.getDefaultInstance()) + return this; + internalGetMutableProperties().mergeFrom(other.internalGetProperties()); if (other.getCount() != 0L) { setCount(other.getCount()); } @@ -576,7 +608,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.GroupResult) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.GroupResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -585,24 +618,27 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> properties_; + private com.google.protobuf.MapField properties_; + private com.google.protobuf.MapField - internalGetProperties() { + internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } + private com.google.protobuf.MapField - internalGetMutableProperties() { - onChanged();; + internalGetMutableProperties() { + onChanged(); + ; if (properties_ == null) { - properties_ = com.google.protobuf.MapField.newMapField( - PropertiesDefaultEntryHolder.defaultEntry); + properties_ = + com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); @@ -614,28 +650,30 @@ public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ - @java.lang.Override - public boolean containsProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetProperties().getMap().containsKey(key); } - /** - * Use {@link #getPropertiesMap()} instead. - */ + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
@@ -643,11 +681,12 @@ public java.util.Map getProperties( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
@@ -655,16 +694,18 @@ public java.util.Map getPropertiesM * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - public com.google.protobuf.Value getPropertiesOrDefault( - java.lang.String key, - com.google.protobuf.Value defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.protobuf.Value defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
@@ -672,10 +713,10 @@ public com.google.protobuf.Value getPropertiesOrDefault( * map<string, .google.protobuf.Value> properties = 1; */ @java.lang.Override - - public com.google.protobuf.Value getPropertiesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { @@ -685,74 +726,75 @@ public com.google.protobuf.Value getPropertiesOrThrow( } public Builder clearProperties() { - internalGetMutableProperties().getMutableMap() - .clear(); + internalGetMutableProperties().getMutableMap().clear(); return this; } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ - - public Builder removeProperties( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableProperties().getMutableMap() - .remove(key); + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableProperties().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableProperties() { + public java.util.Map getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ - public Builder putProperties( - java.lang.String key, - com.google.protobuf.Value value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putProperties(java.lang.String key, com.google.protobuf.Value value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableProperties().getMutableMap() - .put(key, value); + internalGetMutableProperties().getMutableMap().put(key, value); return this; } /** + * + * *
      * Properties matching the groupBy fields in the request.
      * 
* * map<string, .google.protobuf.Value> properties = 1; */ - public Builder putAllProperties( java.util.Map values) { - internalGetMutableProperties().getMutableMap() - .putAll(values); + internalGetMutableProperties().getMutableMap().putAll(values); return this; } - private long count_ ; + private long count_; /** + * + * *
      * Total count of resources for the given properties.
      * 
* * int64 count = 2; + * * @return The count. */ @java.lang.Override @@ -760,37 +802,43 @@ public long getCount() { return count_; } /** + * + * *
      * Total count of resources for the given properties.
      * 
* * int64 count = 2; + * * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(long value) { - + count_ = value; onChanged(); return this; } /** + * + * *
      * Total count of resources for the given properties.
      * 
* * int64 count = 2; + * * @return This builder for chaining. */ public Builder clearCount() { - + count_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -800,12 +848,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.GroupResult) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.GroupResult) private static final com.google.cloud.securitycenter.v1p1beta1.GroupResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.GroupResult(); } @@ -814,16 +862,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.GroupResult getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -838,6 +886,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.GroupResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResultOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResultOrBuilder.java similarity index 56% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResultOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResultOrBuilder.java index 9367fee6d..d84cc4f95 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResultOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/GroupResultOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface GroupResultOrBuilder extends +public interface GroupResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.GroupResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -16,30 +34,31 @@ public interface GroupResultOrBuilder extends */ int getPropertiesCount(); /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - boolean containsProperties( - java.lang.String key); - /** - * Use {@link #getPropertiesMap()} instead. - */ + boolean containsProperties(java.lang.String key); + /** Use {@link #getPropertiesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getProperties(); + java.util.Map getProperties(); /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - java.util.Map - getPropertiesMap(); + java.util.Map getPropertiesMap(); /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
@@ -48,27 +67,30 @@ boolean containsProperties( */ /* nullable */ -com.google.protobuf.Value getPropertiesOrDefault( + com.google.protobuf.Value getPropertiesOrDefault( java.lang.String key, /* nullable */ -com.google.protobuf.Value defaultValue); + com.google.protobuf.Value defaultValue); /** + * + * *
    * Properties matching the groupBy fields in the request.
    * 
* * map<string, .google.protobuf.Value> properties = 1; */ - - com.google.protobuf.Value getPropertiesOrThrow( - java.lang.String key); + com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key); /** + * + * *
    * Total count of resources for the given properties.
    * 
* * int64 count = 2; + * * @return The count. */ long getCount(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java similarity index 84% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java index 2b6f6a896..3463f41a0 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Request message for listing assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListAssetsRequest} */ -public final class ListAssetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAssetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) ListAssetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAssetsRequest.newBuilder() to construct. private ListAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAssetsRequest() { parent_ = ""; filter_ = ""; @@ -28,16 +46,15 @@ private ListAssetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAssetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListAssetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,81 +73,91 @@ private ListAssetsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); + orderBy_ = s; + break; } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 42: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (compareDuration_ != null) { - subBuilder = compareDuration_.toBuilder(); + case 42: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); + } + compareDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); + } + + break; } - compareDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compareDuration_); - compareDuration_ = subBuilder.buildPartial(); + case 58: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); + } + fieldMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); + } + + break; } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 58: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (fieldMask_ != null) { - subBuilder = fieldMask_.toBuilder(); + pageToken_ = s; + break; } - fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fieldMask_); - fieldMask_ = subBuilder.buildPartial(); + case 72: + { + pageSize_ = input.readInt32(); + break; } - - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 72: { - - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -138,36 +165,43 @@ private ListAssetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.class, com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.class, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -176,31 +210,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -211,6 +247,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -262,6 +300,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -270,14 +309,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -329,16 +369,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -349,6 +388,8 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 3; private volatile java.lang.Object orderBy_; /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -373,6 +414,7 @@ public java.lang.String getFilter() {
    * 
* * string order_by = 3; + * * @return The orderBy. */ @java.lang.Override @@ -381,14 +423,15 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -413,16 +456,15 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 3; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -433,6 +475,8 @@ public java.lang.String getOrderBy() { public static final int READ_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp readTime_; /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -441,6 +485,7 @@ public java.lang.String getOrderBy() {
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -448,6 +493,8 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -456,6 +503,7 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ @java.lang.Override @@ -463,6 +511,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -480,6 +530,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int COMPARE_DURATION_FIELD_NUMBER = 5;
   private com.google.protobuf.Duration compareDuration_;
   /**
+   *
+   *
    * 
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -504,6 +556,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ @java.lang.Override @@ -511,6 +564,8 @@ public boolean hasCompareDuration() { return compareDuration_ != null; } /** + * + * *
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -535,13 +590,18 @@ public boolean hasCompareDuration() {
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { - return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; } /** + * + * *
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -575,6 +635,8 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
   public static final int FIELD_MASK_FIELD_NUMBER = 7;
   private com.google.protobuf.FieldMask fieldMask_;
   /**
+   *
+   *
    * 
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -582,6 +644,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
    * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -589,6 +652,8 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** + * + * *
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -596,6 +661,7 @@ public boolean hasFieldMask() {
    * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return The fieldMask. */ @java.lang.Override @@ -603,6 +669,8 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** + * + * *
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -619,6 +687,8 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
   public static final int PAGE_TOKEN_FIELD_NUMBER = 8;
   private volatile java.lang.Object pageToken_;
   /**
+   *
+   *
    * 
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -626,6 +696,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
    * 
* * string page_token = 8; + * * @return The pageToken. */ @java.lang.Override @@ -634,14 +705,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -649,16 +721,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 8; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -669,12 +740,15 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 9; private int pageSize_; /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 9; + * * @return The pageSize. */ @java.lang.Override @@ -683,6 +757,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -694,8 +769,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -739,23 +813,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, orderBy_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); } if (compareDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCompareDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getFieldMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFieldMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -765,38 +835,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest other = (com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest other = + (com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - if (!getCompareDuration() - .equals(other.getCompareDuration())) return false; + if (!getCompareDuration().equals(other.getCompareDuration())) return false; } if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - if (!getFieldMask() - .equals(other.getFieldMask())) return false; + if (!getFieldMask().equals(other.getFieldMask())) return false; } - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -836,117 +899,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for listing assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListAssetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.class, com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.class, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.newBuilder() @@ -954,16 +1027,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -999,9 +1071,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor; } @java.lang.Override @@ -1020,7 +1092,8 @@ public com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest result = new com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest(this); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest result = + new com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.orderBy_ = orderBy_; @@ -1049,38 +1122,39 @@ public com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) other); } else { super.mergeFrom(other); return this; @@ -1088,7 +1162,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1136,7 +1211,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1148,20 +1224,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1170,22 +1250,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1193,60 +1276,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Name of the organization assets should belong to. Its format is
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1254,6 +1350,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1305,13 +1403,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1320,6 +1418,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1371,15 +1471,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1387,6 +1486,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1438,20 +1539,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1503,15 +1606,18 @@ public Builder setFilter(
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across assets.
      * The expression is a list of zero or more restrictions combined via logical
@@ -1563,16 +1669,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1580,6 +1686,8 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1604,13 +1712,13 @@ public Builder setFilterBytes(
      * 
* * string order_by = 3; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1619,6 +1727,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1643,15 +1753,14 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1659,6 +1768,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1683,20 +1794,22 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1721,15 +1834,18 @@ public Builder setOrderBy(
      * 
* * string order_by = 3; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1754,16 +1870,16 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 3; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; @@ -1771,8 +1887,13 @@ public Builder setOrderByBytes( private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1781,12 +1902,15 @@ public Builder setOrderByBytes(
      * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1795,6 +1919,7 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1805,6 +1930,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1828,6 +1955,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1837,8 +1966,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 4;
      */
-    public Builder setReadTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1849,6 +1977,8 @@ public Builder setReadTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1862,7 +1992,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -1874,6 +2004,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1895,6 +2027,8 @@ public Builder clearReadTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1905,11 +2039,13 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-      
+
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1923,11 +2059,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering assets. The filter is limited
      * to assets existing at the supplied time and their values are those at that
@@ -1938,14 +2075,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(),
-                getParentForChildren(),
-                isClean());
+        readTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(), getParentForChildren(), isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -1953,8 +2093,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private com.google.protobuf.Duration compareDuration_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> compareDurationBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        compareDurationBuilder_;
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -1979,12 +2124,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; } /** + * + * *
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2009,16 +2157,21 @@ public boolean hasCompareDuration() {
      * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { - return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; } else { return compareDurationBuilder_.getMessage(); } } /** + * + * *
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2058,6 +2211,8 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2083,8 +2238,7 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration compare_duration = 5;
      */
-    public Builder setCompareDuration(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) {
       if (compareDurationBuilder_ == null) {
         compareDuration_ = builderForValue.build();
         onChanged();
@@ -2095,6 +2249,8 @@ public Builder setCompareDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2124,7 +2280,9 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       if (compareDurationBuilder_ == null) {
         if (compareDuration_ != null) {
           compareDuration_ =
-            com.google.protobuf.Duration.newBuilder(compareDuration_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(compareDuration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           compareDuration_ = value;
         }
@@ -2136,6 +2294,8 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2173,6 +2333,8 @@ public Builder clearCompareDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2199,11 +2361,13 @@ public Builder clearCompareDuration() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
-      
+
       onChanged();
       return getCompareDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2233,11 +2397,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
       if (compareDurationBuilder_ != null) {
         return compareDurationBuilder_.getMessageOrBuilder();
       } else {
-        return compareDuration_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : compareDuration_;
+        return compareDuration_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : compareDuration_;
       }
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListAssetsResult's "state_change"
      * attribute is updated to indicate whether the asset was added, removed, or
@@ -2264,14 +2431,17 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getCompareDurationFieldBuilder() {
       if (compareDurationBuilder_ == null) {
-        compareDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getCompareDuration(),
-                getParentForChildren(),
-                isClean());
+        compareDurationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getCompareDuration(), getParentForChildren(), isClean());
         compareDuration_ = null;
       }
       return compareDurationBuilder_;
@@ -2279,8 +2449,13 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
 
     private com.google.protobuf.FieldMask fieldMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> fieldMaskBuilder_;
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
+        fieldMaskBuilder_;
     /**
+     *
+     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2288,12 +2463,15 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** + * + * *
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2301,6 +2479,7 @@ public boolean hasFieldMask() {
      * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -2311,6 +2490,8 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** + * + * *
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2333,6 +2514,8 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2341,8 +2524,7 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask field_mask = 7;
      */
-    public Builder setFieldMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (fieldMaskBuilder_ == null) {
         fieldMask_ = builderForValue.build();
         onChanged();
@@ -2353,6 +2535,8 @@ public Builder setFieldMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2365,7 +2549,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       if (fieldMaskBuilder_ == null) {
         if (fieldMask_ != null) {
           fieldMask_ =
-            com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
         } else {
           fieldMask_ = value;
         }
@@ -2377,6 +2561,8 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2397,6 +2583,8 @@ public Builder clearFieldMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2406,11 +2594,13 @@ public Builder clearFieldMask() {
      * .google.protobuf.FieldMask field_mask = 7;
      */
     public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() {
-      
+
       onChanged();
       return getFieldMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2423,11 +2613,12 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
       if (fieldMaskBuilder_ != null) {
         return fieldMaskBuilder_.getMessageOrBuilder();
       } else {
-        return fieldMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
+        return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
       }
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the ListAssetsResult fields to be listed in the
      * response.
@@ -2437,14 +2628,17 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * .google.protobuf.FieldMask field_mask = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getFieldMaskFieldBuilder() {
       if (fieldMaskBuilder_ == null) {
-        fieldMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getFieldMask(),
-                getParentForChildren(),
-                isClean());
+        fieldMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getFieldMask(), getParentForChildren(), isClean());
         fieldMask_ = null;
       }
       return fieldMaskBuilder_;
@@ -2452,6 +2646,8 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
 
     private java.lang.Object pageToken_ = "";
     /**
+     *
+     *
      * 
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2459,13 +2655,13 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * 
* * string page_token = 8; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2474,6 +2670,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2481,15 +2679,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 8; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2497,6 +2694,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2504,20 +2703,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 8; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2525,15 +2726,18 @@ public Builder setPageToken(
      * 
* * string page_token = 8; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListAssetsResponse`; indicates
      * that this is a continuation of a prior `ListAssets` call, and
@@ -2541,29 +2745,32 @@ public Builder clearPageToken() {
      * 
* * string page_token = 8; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; + * * @return The pageSize. */ @java.lang.Override @@ -2571,39 +2778,45 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2613,12 +2826,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) private static final com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest(); } @@ -2627,16 +2840,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2651,6 +2864,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java similarity index 92% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java index 77453a355..77cd76c82 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface ListAssetsRequestOrBuilder extends +public interface ListAssetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListAssetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Name of the organization assets should belong to. Its format is
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -83,10 +110,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Expression that defines the filter to apply across assets.
    * The expression is a list of zero or more restrictions combined via logical
@@ -138,12 +168,14 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -168,10 +200,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * string order_by = 3; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -196,12 +231,14 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * string order_by = 3; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -210,10 +247,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -222,10 +262,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used as a reference point when filtering assets. The filter is limited
    * to assets existing at the supplied time and their values are those at that
@@ -238,6 +281,8 @@ public interface ListAssetsRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -262,10 +307,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** + * + * *
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -290,10 +338,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** + * + * *
    * When compare_duration is set, the ListAssetsResult's "state_change"
    * attribute is updated to indicate whether the asset was added, removed, or
@@ -322,6 +373,8 @@ public interface ListAssetsRequestOrBuilder extends
   com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
 
   /**
+   *
+   *
    * 
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -329,10 +382,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** + * + * *
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -340,10 +396,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** + * + * *
    * A field mask to specify the ListAssetsResult fields to be listed in the
    * response.
@@ -355,6 +414,8 @@ public interface ListAssetsRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -362,10 +423,13 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * string page_token = 8; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `ListAssetsResponse`; indicates
    * that this is a continuation of a prior `ListAssets` call, and
@@ -373,18 +437,21 @@ public interface ListAssetsRequestOrBuilder extends
    * 
* * string page_token = 8; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 9; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java similarity index 63% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java index 326322b26..1409d9a20 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Response message for listing assets.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListAssetsResponse} */ -public final class ListAssetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAssetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) ListAssetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAssetsResponse.newBuilder() to construct. private ListAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAssetsResponse() { listAssetsResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListAssetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAssetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListAssetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,46 +72,56 @@ private ListAssetsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - listAssetsResults_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - listAssetsResults_.add( - input.readMessage(com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + listAssetsResults_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse + .ListAssetsResult>(); + mutable_bitField0_ |= 0x00000001; + } + listAssetsResults_.add( + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + .parser(), + extensionRegistry)); + break; } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 32: { + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - totalSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + case 32: + { + totalSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,8 +129,7 @@ private ListAssetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { listAssetsResults_ = java.util.Collections.unmodifiableList(listAssetsResults_); @@ -112,42 +138,54 @@ private ListAssetsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.class, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.class, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.Builder.class); } - public interface ListAssetsResultOrBuilder extends + public interface ListAssetsResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset asset = 1; + * * @return Whether the asset field is set. */ boolean hasAsset(); /** + * + * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset asset = 1; + * * @return The asset. */ com.google.cloud.securitycenter.v1p1beta1.Asset getAsset(); /** + * + * *
      * Asset matching the search request.
      * 
@@ -157,56 +195,69 @@ public interface ListAssetsResultOrBuilder extends com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder getAssetOrBuilder(); /** + * + * *
      * State change of the asset between the points in time.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * * @return The enum numeric value on the wire for stateChange. */ int getStateChangeValue(); /** + * + * *
      * State change of the asset between the points in time.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * * @return The stateChange. */ - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange getStateChange(); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange + getStateChange(); } /** + * + * *
    * Result containing the Asset and its State.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult} */ - public static final class ListAssetsResult extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ListAssetsResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) ListAssetsResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAssetsResult.newBuilder() to construct. private ListAssetsResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAssetsResult() { stateChange_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAssetsResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListAssetsResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -225,32 +276,37 @@ private ListAssetsResult( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1p1beta1.Asset.Builder subBuilder = null; - if (asset_ != null) { - subBuilder = asset_.toBuilder(); - } - asset_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Asset.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(asset_); - asset_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.securitycenter.v1p1beta1.Asset.Builder subBuilder = null; + if (asset_ != null) { + subBuilder = asset_.toBuilder(); + } + asset_ = + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.Asset.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(asset_); + asset_ = subBuilder.buildPartial(); + } + + break; } + case 16: + { + int rawValue = input.readEnum(); - break; - } - case 16: { - int rawValue = input.readEnum(); - - stateChange_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + stateChange_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -258,27 +314,32 @@ private ListAssetsResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.class, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.class, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder + .class); } /** + * + * *
      * The change in state of the asset.
      * When querying across two points in time this describes
@@ -287,11 +348,13 @@ private ListAssetsResult(
      * will be: UNUSED
      * 
* - * Protobuf enum {@code google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange} + * Protobuf enum {@code + * google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange} */ - public enum StateChange - implements com.google.protobuf.ProtocolMessageEnum { + public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * State change is unused, this is the canonical default for this enum.
        * 
@@ -300,6 +363,8 @@ public enum StateChange */ UNUSED(0), /** + * + * *
        * Asset was added between the points in time.
        * 
@@ -308,6 +373,8 @@ public enum StateChange */ ADDED(1), /** + * + * *
        * Asset was removed between the points in time.
        * 
@@ -316,6 +383,8 @@ public enum StateChange */ REMOVED(2), /** + * + * *
        * Asset was present at both point(s) in time.
        * 
@@ -327,6 +396,8 @@ public enum StateChange ; /** + * + * *
        * State change is unused, this is the canonical default for this enum.
        * 
@@ -335,6 +406,8 @@ public enum StateChange */ public static final int UNUSED_VALUE = 0; /** + * + * *
        * Asset was added between the points in time.
        * 
@@ -343,6 +416,8 @@ public enum StateChange */ public static final int ADDED_VALUE = 1; /** + * + * *
        * Asset was removed between the points in time.
        * 
@@ -351,6 +426,8 @@ public enum StateChange */ public static final int REMOVED_VALUE = 2; /** + * + * *
        * Asset was present at both point(s) in time.
        * 
@@ -359,7 +436,6 @@ public enum StateChange */ public static final int ACTIVE_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -384,50 +460,54 @@ public static StateChange valueOf(int value) { */ public static StateChange forNumber(int value) { switch (value) { - case 0: return UNUSED; - case 1: return ADDED; - case 2: return REMOVED; - case 3: return ACTIVE; - default: return null; + case 0: + return UNUSED; + case 1: + return ADDED; + case 2: + return REMOVED; + case 3: + return ACTIVE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - StateChange> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StateChange findValueByNumber(int number) { - return StateChange.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StateChange findValueByNumber(int number) { + return StateChange.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + .getDescriptor() + .getEnumTypes() + .get(0); } private static final StateChange[] VALUES = values(); - public static StateChange valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static StateChange valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -447,11 +527,14 @@ private StateChange(int value) { public static final int ASSET_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1p1beta1.Asset asset_; /** + * + * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset asset = 1; + * * @return Whether the asset field is set. */ @java.lang.Override @@ -459,18 +542,25 @@ public boolean hasAsset() { return asset_ != null; } /** + * + * *
      * Asset matching the search request.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Asset asset = 1; + * * @return The asset. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset getAsset() { - return asset_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.getDefaultInstance() : asset_; + return asset_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Asset.getDefaultInstance() + : asset_; } /** + * + * *
      * Asset matching the search request.
      * 
@@ -485,31 +575,51 @@ public com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder getAssetOrBuilde public static final int STATE_CHANGE_FIELD_NUMBER = 2; private int stateChange_; /** + * + * *
      * State change of the asset between the points in time.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * * @return The enum numeric value on the wire for stateChange. */ - @java.lang.Override public int getStateChangeValue() { + @java.lang.Override + public int getStateChangeValue() { return stateChange_; } /** + * + * *
      * State change of the asset between the points in time.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * * @return The stateChange. */ - @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange getStateChange() { + @java.lang.Override + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange + getStateChange() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange result = com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange.valueOf(stateChange_); - return result == null ? com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange + result = + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + .StateChange.valueOf(stateChange_); + return result == null + ? com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + .StateChange.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -521,12 +631,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (asset_ != null) { output.writeMessage(1, getAsset()); } - if (stateChange_ != com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange.UNUSED.getNumber()) { + if (stateChange_ + != com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + .StateChange.UNUSED + .getNumber()) { output.writeEnum(2, stateChange_); } unknownFields.writeTo(output); @@ -539,12 +651,13 @@ public int getSerializedSize() { size = 0; if (asset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAsset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAsset()); } - if (stateChange_ != com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange.UNUSED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, stateChange_); + if (stateChange_ + != com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + .StateChange.UNUSED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, stateChange_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -554,17 +667,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult)) { + if (!(obj + instanceof + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult other = (com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) obj; + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult other = + (com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) obj; if (hasAsset() != other.hasAsset()) return false; if (hasAsset()) { - if (!getAsset() - .equals(other.getAsset())) return false; + if (!getAsset().equals(other.getAsset())) return false; } if (stateChange_ != other.stateChange_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -589,88 +704,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -680,44 +808,51 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Result containing the Asset and its State.
      * 
* - * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult} + * Protobuf type {@code + * google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.class, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.class, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + .Builder.class); } - // Construct using com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -733,19 +868,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult build() { - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult result = buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -753,8 +891,10 @@ public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsRe } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult result = new com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult(this); + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult result = + new com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult(this); if (assetBuilder_ == null) { result.asset_ = asset_; } else { @@ -769,46 +909,56 @@ public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult)other); + if (other + instanceof + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) { + return mergeFrom( + (com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult other) { + if (other + == com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + .getDefaultInstance()) return this; if (other.hasAsset()) { mergeAsset(other.getAsset()); } @@ -830,11 +980,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult parsedMessage = null; + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -846,34 +999,47 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1p1beta1.Asset asset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Asset, com.google.cloud.securitycenter.v1p1beta1.Asset.Builder, com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder> assetBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Asset, + com.google.cloud.securitycenter.v1p1beta1.Asset.Builder, + com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder> + assetBuilder_; /** + * + * *
        * Asset matching the search request.
        * 
* * .google.cloud.securitycenter.v1p1beta1.Asset asset = 1; + * * @return Whether the asset field is set. */ public boolean hasAsset() { return assetBuilder_ != null || asset_ != null; } /** + * + * *
        * Asset matching the search request.
        * 
* * .google.cloud.securitycenter.v1p1beta1.Asset asset = 1; + * * @return The asset. */ public com.google.cloud.securitycenter.v1p1beta1.Asset getAsset() { if (assetBuilder_ == null) { - return asset_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.getDefaultInstance() : asset_; + return asset_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Asset.getDefaultInstance() + : asset_; } else { return assetBuilder_.getMessage(); } } /** + * + * *
        * Asset matching the search request.
        * 
@@ -894,6 +1060,8 @@ public Builder setAsset(com.google.cloud.securitycenter.v1p1beta1.Asset value) { return this; } /** + * + * *
        * Asset matching the search request.
        * 
@@ -912,6 +1080,8 @@ public Builder setAsset( return this; } /** + * + * *
        * Asset matching the search request.
        * 
@@ -922,7 +1092,9 @@ public Builder mergeAsset(com.google.cloud.securitycenter.v1p1beta1.Asset value) if (assetBuilder_ == null) { if (asset_ != null) { asset_ = - com.google.cloud.securitycenter.v1p1beta1.Asset.newBuilder(asset_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.Asset.newBuilder(asset_) + .mergeFrom(value) + .buildPartial(); } else { asset_ = value; } @@ -934,6 +1106,8 @@ public Builder mergeAsset(com.google.cloud.securitycenter.v1p1beta1.Asset value) return this; } /** + * + * *
        * Asset matching the search request.
        * 
@@ -952,6 +1126,8 @@ public Builder clearAsset() { return this; } /** + * + * *
        * Asset matching the search request.
        * 
@@ -959,11 +1135,13 @@ public Builder clearAsset() { * .google.cloud.securitycenter.v1p1beta1.Asset asset = 1; */ public com.google.cloud.securitycenter.v1p1beta1.Asset.Builder getAssetBuilder() { - + onChanged(); return getAssetFieldBuilder().getBuilder(); } /** + * + * *
        * Asset matching the search request.
        * 
@@ -974,11 +1152,14 @@ public com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder getAssetOrBuilde if (assetBuilder_ != null) { return assetBuilder_.getMessageOrBuilder(); } else { - return asset_ == null ? - com.google.cloud.securitycenter.v1p1beta1.Asset.getDefaultInstance() : asset_; + return asset_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Asset.getDefaultInstance() + : asset_; } } /** + * + * *
        * Asset matching the search request.
        * 
@@ -986,14 +1167,17 @@ public com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder getAssetOrBuilde * .google.cloud.securitycenter.v1p1beta1.Asset asset = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Asset, com.google.cloud.securitycenter.v1p1beta1.Asset.Builder, com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.Asset, + com.google.cloud.securitycenter.v1p1beta1.Asset.Builder, + com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder> getAssetFieldBuilder() { if (assetBuilder_ == null) { - assetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Asset, com.google.cloud.securitycenter.v1p1beta1.Asset.Builder, com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder>( - getAsset(), - getParentForChildren(), - isClean()); + assetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Asset, + com.google.cloud.securitycenter.v1p1beta1.Asset.Builder, + com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder>( + getAsset(), getParentForChildren(), isClean()); asset_ = null; } return assetBuilder_; @@ -1001,77 +1185,114 @@ public com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder getAssetOrBuilde private int stateChange_ = 0; /** + * + * *
        * State change of the asset between the points in time.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * * @return The enum numeric value on the wire for stateChange. */ - @java.lang.Override public int getStateChangeValue() { + @java.lang.Override + public int getStateChangeValue() { return stateChange_; } /** + * + * *
        * State change of the asset between the points in time.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * * @param value The enum numeric value on the wire for stateChange to set. * @return This builder for chaining. */ public Builder setStateChangeValue(int value) { - + stateChange_ = value; onChanged(); return this; } /** + * + * *
        * State change of the asset between the points in time.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * * @return The stateChange. */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange getStateChange() { + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + .StateChange + getStateChange() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange result = com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange.valueOf(stateChange_); - return result == null ? com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange + result = + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + .StateChange.valueOf(stateChange_); + return result == null + ? com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + .StateChange.UNRECOGNIZED + : result; } /** + * + * *
        * State change of the asset between the points in time.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * * @param value The stateChange to set. * @return This builder for chaining. */ - public Builder setStateChange(com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange value) { + public Builder setStateChange( + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange + value) { if (value == null) { throw new NullPointerException(); } - + stateChange_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * State change of the asset between the points in time.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.StateChange state_change = 2; + * + * * @return This builder for chaining. */ public Builder clearStateChange() { - + stateChange_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1084,30 +1305,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult) - private static final com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse + .ListAssetsResult + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult(); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1119,80 +1344,111 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int LIST_ASSETS_RESULTS_FIELD_NUMBER = 1; - private java.util.List listAssetsResults_; + private java.util.List< + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult> + listAssetsResults_; /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ @java.lang.Override - public java.util.List getListAssetsResultsList() { + public java.util.List< + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult> + getListAssetsResultsList() { return listAssetsResults_; } /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse + .ListAssetsResultOrBuilder> getListAssetsResultsOrBuilderList() { return listAssetsResults_; } /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ @java.lang.Override public int getListAssetsResultsCount() { return listAssetsResults_.size(); } /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult getListAssetsResults(int index) { + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + getListAssetsResults(int index) { return listAssetsResults_.get(index); } /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder + getListAssetsResultsOrBuilder(int index) { return listAssetsResults_.get(index); } public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -1200,11 +1456,14 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ @java.lang.Override @@ -1212,6 +1471,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used for executing the list request.
    * 
@@ -1226,12 +1487,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ @java.lang.Override @@ -1240,30 +1504,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1274,11 +1538,14 @@ public java.lang.String getNextPageToken() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_; /** + * + * *
    * The total number of assets matching the query.
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -1287,6 +1554,7 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1298,8 +1566,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < listAssetsResults_.size(); i++) { output.writeMessage(1, listAssetsResults_.get(i)); } @@ -1322,19 +1589,17 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < listAssetsResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, listAssetsResults_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, listAssetsResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1344,24 +1609,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse other = (com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) obj; + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse other = + (com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) obj; - if (!getListAssetsResultsList() - .equals(other.getListAssetsResultsList())) return false; + if (!getListAssetsResultsList().equals(other.getListAssetsResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (getTotalSize() - != other.getTotalSize()) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1391,117 +1653,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for listing assets.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListAssetsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.class, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.class, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.newBuilder() @@ -1509,17 +1781,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getListAssetsResultsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1543,13 +1815,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.getDefaultInstance(); } @@ -1564,7 +1837,8 @@ public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse result = new com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse(this); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse result = + new com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse(this); int from_bitField0_ = bitField0_; if (listAssetsResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1590,38 +1864,39 @@ public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse)other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) other); } else { super.mergeFrom(other); return this; @@ -1629,7 +1904,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.getDefaultInstance()) + return this; if (listAssetsResultsBuilder_ == null) { if (!other.listAssetsResults_.isEmpty()) { if (listAssetsResults_.isEmpty()) { @@ -1648,9 +1925,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListAssetsRes listAssetsResultsBuilder_ = null; listAssetsResults_ = other.listAssetsResults_; bitField0_ = (bitField0_ & ~0x00000001); - listAssetsResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getListAssetsResultsFieldBuilder() : null; + listAssetsResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getListAssetsResultsFieldBuilder() + : null; } else { listAssetsResultsBuilder_.addAllMessages(other.listAssetsResults_); } @@ -1685,7 +1963,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1694,28 +1973,43 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List listAssetsResults_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult> + listAssetsResults_ = java.util.Collections.emptyList(); + private void ensureListAssetsResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - listAssetsResults_ = new java.util.ArrayList(listAssetsResults_); + listAssetsResults_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult>( + listAssetsResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder> listAssetsResultsBuilder_; + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder> + listAssetsResultsBuilder_; /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public java.util.List getListAssetsResultsList() { + public java.util.List< + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult> + getListAssetsResultsList() { if (listAssetsResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(listAssetsResults_); } else { @@ -1723,11 +2017,15 @@ public java.util.List * Assets matching the list request. *
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public int getListAssetsResultsCount() { if (listAssetsResultsBuilder_ == null) { @@ -1737,13 +2035,18 @@ public int getListAssetsResultsCount() { } } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult getListAssetsResults(int index) { + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + getListAssetsResults(int index) { if (listAssetsResultsBuilder_ == null) { return listAssetsResults_.get(index); } else { @@ -1751,14 +2054,19 @@ public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsRe } } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder setListAssetsResults( - int index, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult value) { + int index, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult value) { if (listAssetsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1772,14 +2080,20 @@ public Builder setListAssetsResults( return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder setListAssetsResults( - int index, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder builderForValue) { + int index, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder + builderForValue) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); listAssetsResults_.set(index, builderForValue.build()); @@ -1790,13 +2104,18 @@ public Builder setListAssetsResults( return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public Builder addListAssetsResults(com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult value) { + public Builder addListAssetsResults( + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult value) { if (listAssetsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1810,14 +2129,19 @@ public Builder addListAssetsResults(com.google.cloud.securitycenter.v1p1beta1.Li return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder addListAssetsResults( - int index, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult value) { + int index, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult value) { if (listAssetsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1831,14 +2155,19 @@ public Builder addListAssetsResults( return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder addListAssetsResults( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder builderForValue) { + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder + builderForValue) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); listAssetsResults_.add(builderForValue.build()); @@ -1849,14 +2178,20 @@ public Builder addListAssetsResults( return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder addListAssetsResults( - int index, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder builderForValue) { + int index, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder + builderForValue) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); listAssetsResults_.add(index, builderForValue.build()); @@ -1867,18 +2202,24 @@ public Builder addListAssetsResults( return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder addAllListAssetsResults( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult> + values) { if (listAssetsResultsBuilder_ == null) { ensureListAssetsResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, listAssetsResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listAssetsResults_); onChanged(); } else { listAssetsResultsBuilder_.addAllMessages(values); @@ -1886,11 +2227,15 @@ public Builder addAllListAssetsResults( return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder clearListAssetsResults() { if (listAssetsResultsBuilder_ == null) { @@ -1903,11 +2248,15 @@ public Builder clearListAssetsResults() { return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ public Builder removeListAssetsResults(int index) { if (listAssetsResultsBuilder_ == null) { @@ -1920,39 +2269,55 @@ public Builder removeListAssetsResults(int index) { return this; } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder getListAssetsResultsBuilder( - int index) { + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder + getListAssetsResultsBuilder(int index) { return getListAssetsResultsFieldBuilder().getBuilder(index); } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder + getListAssetsResultsOrBuilder(int index) { if (listAssetsResultsBuilder_ == null) { - return listAssetsResults_.get(index); } else { + return listAssetsResults_.get(index); + } else { return listAssetsResultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public java.util.List - getListAssetsResultsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse + .ListAssetsResultOrBuilder> + getListAssetsResultsOrBuilderList() { if (listAssetsResultsBuilder_ != null) { return listAssetsResultsBuilder_.getMessageOrBuilderList(); } else { @@ -1960,45 +2325,72 @@ public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsRe } } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder addListAssetsResultsBuilder() { - return getListAssetsResultsFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.getDefaultInstance()); + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder + addListAssetsResultsBuilder() { + return getListAssetsResultsFieldBuilder() + .addBuilder( + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + .getDefaultInstance()); } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder addListAssetsResultsBuilder( - int index) { - return getListAssetsResultsFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.getDefaultInstance()); + public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder + addListAssetsResultsBuilder(int index) { + return getListAssetsResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + .getDefaultInstance()); } /** + * + * *
      * Assets matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - public java.util.List - getListAssetsResultsBuilderList() { + public java.util.List< + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder> + getListAssetsResultsBuilderList() { return getListAssetsResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder> getListAssetsResultsFieldBuilder() { if (listAssetsResultsBuilder_ == null) { - listAssetsResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult.Builder, com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder>( + listAssetsResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + .Builder, + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse + .ListAssetsResultOrBuilder>( listAssetsResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2010,24 +2402,33 @@ public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsRe private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -2038,6 +2439,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -2058,14 +2461,15 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -2076,6 +2480,8 @@ public Builder setReadTime( return this; } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -2086,7 +2492,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -2098,6 +2504,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -2116,6 +2524,8 @@ public Builder clearReadTime() { return this; } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -2123,11 +2533,13 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -2138,11 +2550,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -2150,14 +2563,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReadTime(), - getParentForChildren(), - isClean()); + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); readTime_ = null; } return readTimeBuilder_; @@ -2165,19 +2581,21 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -2186,21 +2604,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -2208,69 +2627,79 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_ ; + private int totalSize_; /** + * + * *
      * The total number of assets matching the query.
      * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -2278,37 +2707,43 @@ public int getTotalSize() { return totalSize_; } /** + * + * *
      * The total number of assets matching the query.
      * 
* * int32 total_size = 4; + * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** + * + * *
      * The total number of assets matching the query.
      * 
* * int32 total_size = 4; + * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2318,12 +2753,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) - private static final com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse(); } @@ -2332,16 +2768,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAssetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAssetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAssetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2356,6 +2792,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponseOrBuilder.java similarity index 55% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponseOrBuilder.java index e03b425ef..32908982a 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListAssetsResponseOrBuilder.java @@ -1,75 +1,123 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface ListAssetsResponseOrBuilder extends +public interface ListAssetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListAssetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - java.util.List + java.util.List getListAssetsResultsList(); /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult getListAssetsResults(int index); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult + getListAssetsResults(int index); /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ int getListAssetsResultsCount(); /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse + .ListAssetsResultOrBuilder> getListAssetsResultsOrBuilderList(); /** + * + * *
    * Assets matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResult list_assets_results = 1; + * */ - com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder getListAssetsResultsOrBuilder( - int index); + com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrBuilder + getListAssetsResultsOrBuilder(int index); /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used for executing the list request.
    * 
@@ -79,33 +127,41 @@ com.google.cloud.securitycenter.v1p1beta1.ListAssetsResponse.ListAssetsResultOrB com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * The total number of assets matching the query.
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ int getTotalSize(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java similarity index 83% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java index 00568ca0e..6617dbe52 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Request message for listing findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListFindingsRequest} */ -public final class ListFindingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) ListFindingsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingsRequest.newBuilder() to construct. private ListFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFindingsRequest() { parent_ = ""; filter_ = ""; @@ -28,16 +46,15 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,81 +73,91 @@ private ListFindingsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); + orderBy_ = s; + break; } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 42: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (compareDuration_ != null) { - subBuilder = compareDuration_.toBuilder(); + case 42: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (compareDuration_ != null) { + subBuilder = compareDuration_.toBuilder(); + } + compareDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compareDuration_); + compareDuration_ = subBuilder.buildPartial(); + } + + break; } - compareDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compareDuration_); - compareDuration_ = subBuilder.buildPartial(); + case 58: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); + } + fieldMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); + } + + break; } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 58: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (fieldMask_ != null) { - subBuilder = fieldMask_.toBuilder(); + pageToken_ = s; + break; } - fieldMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fieldMask_); - fieldMask_ = subBuilder.buildPartial(); + case 72: + { + pageSize_ = input.readInt32(); + break; } - - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 72: { - - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -138,29 +165,33 @@ private ListFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.class, com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.class, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id],
@@ -171,7 +202,10 @@ private ListFindingsRequest(
    * projects/{projects_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -180,14 +214,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id],
@@ -198,17 +233,18 @@ public java.lang.String getParent() {
    * projects/{projects_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -219,6 +255,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -260,6 +298,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -268,14 +307,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -317,16 +357,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -337,6 +376,8 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 3; private volatile java.lang.Object orderBy_; /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -358,6 +399,7 @@ public java.lang.String getFilter() {
    * 
* * string order_by = 3; + * * @return The orderBy. */ @java.lang.Override @@ -366,14 +408,15 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -395,16 +438,15 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 3; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -415,6 +457,8 @@ public java.lang.String getOrderBy() { public static final int READ_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp readTime_; /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -423,6 +467,7 @@ public java.lang.String getOrderBy() {
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -430,6 +475,8 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -438,6 +485,7 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ @java.lang.Override @@ -445,6 +493,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -462,6 +512,8 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
   public static final int COMPARE_DURATION_FIELD_NUMBER = 5;
   private com.google.protobuf.Duration compareDuration_;
   /**
+   *
+   *
    * 
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -492,6 +544,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ @java.lang.Override @@ -499,6 +552,8 @@ public boolean hasCompareDuration() { return compareDuration_ != null; } /** + * + * *
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -529,13 +584,18 @@ public boolean hasCompareDuration() {
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ @java.lang.Override public com.google.protobuf.Duration getCompareDuration() { - return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; } /** + * + * *
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -575,12 +635,15 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
   public static final int FIELD_MASK_FIELD_NUMBER = 7;
   private com.google.protobuf.FieldMask fieldMask_;
   /**
+   *
+   *
    * 
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return Whether the fieldMask field is set. */ @java.lang.Override @@ -588,12 +651,15 @@ public boolean hasFieldMask() { return fieldMask_ != null; } /** + * + * *
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return The fieldMask. */ @java.lang.Override @@ -601,6 +667,8 @@ public com.google.protobuf.FieldMask getFieldMask() { return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; } /** + * + * *
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
@@ -616,6 +684,8 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
   public static final int PAGE_TOKEN_FIELD_NUMBER = 8;
   private volatile java.lang.Object pageToken_;
   /**
+   *
+   *
    * 
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -623,6 +693,7 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
    * 
* * string page_token = 8; + * * @return The pageToken. */ @java.lang.Override @@ -631,14 +702,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -646,16 +718,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 8; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -666,12 +737,15 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 9; private int pageSize_; /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 9; + * * @return The pageSize. */ @java.lang.Override @@ -680,6 +754,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -691,8 +766,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -736,23 +810,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, orderBy_); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadTime()); } if (compareDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCompareDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCompareDuration()); } if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getFieldMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFieldMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -762,38 +832,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest other = (com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest other = + (com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - if (!getCompareDuration() - .equals(other.getCompareDuration())) return false; + if (!getCompareDuration().equals(other.getCompareDuration())) return false; } if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - if (!getFieldMask() - .equals(other.getFieldMask())) return false; + if (!getFieldMask().equals(other.getFieldMask())) return false; } - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -833,117 +896,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for listing findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListFindingsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.class, com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.class, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.newBuilder() @@ -951,16 +1024,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -996,13 +1068,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.getDefaultInstance(); } @@ -1017,7 +1090,8 @@ public com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest result = new com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest(this); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest result = + new com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.orderBy_ = orderBy_; @@ -1046,38 +1120,39 @@ public com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) other); } else { super.mergeFrom(other); return this; @@ -1085,7 +1160,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1133,7 +1210,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1145,6 +1224,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id],
@@ -1155,14 +1236,16 @@ public Builder mergeFrom(
      * projects/{projects_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1171,6 +1254,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id],
@@ -1181,16 +1266,17 @@ public java.lang.String getParent() {
      * projects/{projects_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1198,6 +1284,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id],
@@ -1208,21 +1296,25 @@ public java.lang.String getParent() {
      * projects/{projects_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id],
@@ -1233,16 +1325,21 @@ public Builder setParent(
      * projects/{projects_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Name of the source the findings belong to. Its format is
      * "organizations/[organization_id]/sources/[source_id],
@@ -1253,17 +1350,19 @@ public Builder clearParent() {
      * projects/{projects_id}/sources/-
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1271,6 +1370,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1312,13 +1413,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1327,6 +1428,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1368,15 +1471,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1384,6 +1486,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1425,20 +1529,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1480,15 +1586,18 @@ public Builder setFilter(
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Expression that defines the filter to apply across findings.
      * The expression is a list of one or more restrictions combined via logical
@@ -1530,16 +1639,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1547,6 +1656,8 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1568,13 +1679,13 @@ public Builder setFilterBytes(
      * 
* * string order_by = 3; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1583,6 +1694,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1604,15 +1717,14 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1620,6 +1732,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1641,20 +1755,22 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1676,15 +1792,18 @@ public Builder setOrderBy(
      * 
* * string order_by = 3; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Expression that defines what fields and order to use for sorting. The
      * string value should follow SQL syntax: comma separated list of fields. For
@@ -1706,16 +1825,16 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 3; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; @@ -1723,8 +1842,13 @@ public Builder setOrderByBytes( private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1733,12 +1857,15 @@ public Builder setOrderByBytes(
      * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1747,6 +1874,7 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1757,6 +1885,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1780,6 +1910,8 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1789,8 +1921,7 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp read_time = 4;
      */
-    public Builder setReadTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (readTimeBuilder_ == null) {
         readTime_ = builderForValue.build();
         onChanged();
@@ -1801,6 +1932,8 @@ public Builder setReadTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1814,7 +1947,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       if (readTimeBuilder_ == null) {
         if (readTime_ != null) {
           readTime_ =
-            com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial();
         } else {
           readTime_ = value;
         }
@@ -1826,6 +1959,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1847,6 +1982,8 @@ public Builder clearReadTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1857,11 +1994,13 @@ public Builder clearReadTime() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
-      
+
       onChanged();
       return getReadTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1875,11 +2014,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
       if (readTimeBuilder_ != null) {
         return readTimeBuilder_.getMessageOrBuilder();
       } else {
-        return readTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
+        return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Time used as a reference point when filtering findings. The filter is
      * limited to findings existing at the supplied time and their values are
@@ -1890,14 +2030,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * .google.protobuf.Timestamp read_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getReadTimeFieldBuilder() {
       if (readTimeBuilder_ == null) {
-        readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getReadTime(),
-                getParentForChildren(),
-                isClean());
+        readTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getReadTime(), getParentForChildren(), isClean());
         readTime_ = null;
       }
       return readTimeBuilder_;
@@ -1905,8 +2048,13 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
 
     private com.google.protobuf.Duration compareDuration_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> compareDurationBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        compareDurationBuilder_;
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -1937,12 +2085,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
      * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ public boolean hasCompareDuration() { return compareDurationBuilder_ != null || compareDuration_ != null; } /** + * + * *
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -1973,16 +2124,21 @@ public boolean hasCompareDuration() {
      * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ public com.google.protobuf.Duration getCompareDuration() { if (compareDurationBuilder_ == null) { - return compareDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : compareDuration_; + return compareDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : compareDuration_; } else { return compareDurationBuilder_.getMessage(); } } /** + * + * *
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2028,6 +2184,8 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2059,8 +2217,7 @@ public Builder setCompareDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration compare_duration = 5;
      */
-    public Builder setCompareDuration(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setCompareDuration(com.google.protobuf.Duration.Builder builderForValue) {
       if (compareDurationBuilder_ == null) {
         compareDuration_ = builderForValue.build();
         onChanged();
@@ -2071,6 +2228,8 @@ public Builder setCompareDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2106,7 +2265,9 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       if (compareDurationBuilder_ == null) {
         if (compareDuration_ != null) {
           compareDuration_ =
-            com.google.protobuf.Duration.newBuilder(compareDuration_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(compareDuration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           compareDuration_ = value;
         }
@@ -2118,6 +2279,8 @@ public Builder mergeCompareDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2161,6 +2324,8 @@ public Builder clearCompareDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2193,11 +2358,13 @@ public Builder clearCompareDuration() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     public com.google.protobuf.Duration.Builder getCompareDurationBuilder() {
-      
+
       onChanged();
       return getCompareDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2233,11 +2400,14 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
       if (compareDurationBuilder_ != null) {
         return compareDurationBuilder_.getMessageOrBuilder();
       } else {
-        return compareDuration_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : compareDuration_;
+        return compareDuration_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : compareDuration_;
       }
     }
     /**
+     *
+     *
      * 
      * When compare_duration is set, the ListFindingsResult's "state_change"
      * attribute is updated to indicate whether the finding had its state changed,
@@ -2270,14 +2440,17 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
      * .google.protobuf.Duration compare_duration = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getCompareDurationFieldBuilder() {
       if (compareDurationBuilder_ == null) {
-        compareDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getCompareDuration(),
-                getParentForChildren(),
-                isClean());
+        compareDurationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getCompareDuration(), getParentForChildren(), isClean());
         compareDuration_ = null;
       }
       return compareDurationBuilder_;
@@ -2285,26 +2458,35 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() {
 
     private com.google.protobuf.FieldMask fieldMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> fieldMaskBuilder_;
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
+        fieldMaskBuilder_;
     /**
+     *
+     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return fieldMaskBuilder_ != null || fieldMask_ != null; } /** + * + * *
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
      * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return The fieldMask. */ public com.google.protobuf.FieldMask getFieldMask() { @@ -2315,6 +2497,8 @@ public com.google.protobuf.FieldMask getFieldMask() { } } /** + * + * *
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2336,6 +2520,8 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2343,8 +2529,7 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask field_mask = 7;
      */
-    public Builder setFieldMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (fieldMaskBuilder_ == null) {
         fieldMask_ = builderForValue.build();
         onChanged();
@@ -2355,6 +2540,8 @@ public Builder setFieldMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2366,7 +2553,7 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       if (fieldMaskBuilder_ == null) {
         if (fieldMask_ != null) {
           fieldMask_ =
-            com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial();
         } else {
           fieldMask_ = value;
         }
@@ -2378,6 +2565,8 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2397,6 +2586,8 @@ public Builder clearFieldMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2405,11 +2596,13 @@ public Builder clearFieldMask() {
      * .google.protobuf.FieldMask field_mask = 7;
      */
     public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() {
-      
+
       onChanged();
       return getFieldMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2421,11 +2614,12 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
       if (fieldMaskBuilder_ != null) {
         return fieldMaskBuilder_.getMessageOrBuilder();
       } else {
-        return fieldMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
+        return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
       }
     }
     /**
+     *
+     *
      * 
      * A field mask to specify the Finding fields to be listed in the response.
      * An empty field mask will list all fields.
@@ -2434,14 +2628,17 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * .google.protobuf.FieldMask field_mask = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getFieldMaskFieldBuilder() {
       if (fieldMaskBuilder_ == null) {
-        fieldMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getFieldMask(),
-                getParentForChildren(),
-                isClean());
+        fieldMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getFieldMask(), getParentForChildren(), isClean());
         fieldMask_ = null;
       }
       return fieldMaskBuilder_;
@@ -2449,6 +2646,8 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
 
     private java.lang.Object pageToken_ = "";
     /**
+     *
+     *
      * 
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -2456,13 +2655,13 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
      * 
* * string page_token = 8; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -2471,6 +2670,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -2478,15 +2679,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 8; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -2494,6 +2694,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -2501,20 +2703,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 8; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -2522,15 +2726,18 @@ public Builder setPageToken(
      * 
* * string page_token = 8; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListFindingsResponse`; indicates
      * that this is a continuation of a prior `ListFindings` call, and
@@ -2538,29 +2745,32 @@ public Builder clearPageToken() {
      * 
* * string page_token = 8; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; + * * @return The pageSize. */ @java.lang.Override @@ -2568,39 +2778,45 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 9; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2610,12 +2826,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest(); } @@ -2624,16 +2841,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2648,6 +2865,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java similarity index 91% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java index 06c40f4dd..a715d53b6 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface ListFindingsRequestOrBuilder extends +public interface ListFindingsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListFindingsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id],
@@ -18,11 +36,16 @@ public interface ListFindingsRequestOrBuilder extends
    * projects/{projects_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Name of the source the findings belong to. Its format is
    * "organizations/[organization_id]/sources/[source_id],
@@ -33,13 +56,17 @@ public interface ListFindingsRequestOrBuilder extends
    * projects/{projects_id}/sources/-
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -81,10 +108,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Expression that defines the filter to apply across findings.
    * The expression is a list of one or more restrictions combined via logical
@@ -126,12 +156,14 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -153,10 +185,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string order_by = 3; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Expression that defines what fields and order to use for sorting. The
    * string value should follow SQL syntax: comma separated list of fields. For
@@ -178,12 +213,14 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string order_by = 3; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -192,10 +229,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -204,10 +244,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp read_time = 4; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used as a reference point when filtering findings. The filter is
    * limited to findings existing at the supplied time and their values are
@@ -220,6 +263,8 @@ public interface ListFindingsRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -250,10 +295,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return Whether the compareDuration field is set. */ boolean hasCompareDuration(); /** + * + * *
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -284,10 +332,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * .google.protobuf.Duration compare_duration = 5; + * * @return The compareDuration. */ com.google.protobuf.Duration getCompareDuration(); /** + * + * *
    * When compare_duration is set, the ListFindingsResult's "state_change"
    * attribute is updated to indicate whether the finding had its state changed,
@@ -322,26 +373,34 @@ public interface ListFindingsRequestOrBuilder extends
   com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder();
 
   /**
+   *
+   *
    * 
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return Whether the fieldMask field is set. */ boolean hasFieldMask(); /** + * + * *
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
    * 
* * .google.protobuf.FieldMask field_mask = 7; + * * @return The fieldMask. */ com.google.protobuf.FieldMask getFieldMask(); /** + * + * *
    * A field mask to specify the Finding fields to be listed in the response.
    * An empty field mask will list all fields.
@@ -352,6 +411,8 @@ public interface ListFindingsRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -359,10 +420,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string page_token = 8; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `ListFindingsResponse`; indicates
    * that this is a continuation of a prior `ListFindings` call, and
@@ -370,18 +434,21 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string page_token = 8; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 9; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java similarity index 66% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java index 90c0fac99..792441cf8 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Response message for listing findings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListFindingsResponse} */ -public final class ListFindingsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) ListFindingsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingsResponse.newBuilder() to construct. private ListFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFindingsResponse() { listFindingsResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,46 +72,56 @@ private ListFindingsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - listFindingsResults_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - listFindingsResults_.add( - input.readMessage(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.parser(), extensionRegistry)); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (readTime_ != null) { - subBuilder = readTime_.toBuilder(); - } - readTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readTime_); - readTime_ = subBuilder.buildPartial(); + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + listFindingsResults_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse + .ListFindingsResult>(); + mutable_bitField0_ |= 0x00000001; + } + listFindingsResults_.add( + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse + .ListFindingsResult.parser(), + extensionRegistry)); + break; } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (readTime_ != null) { + subBuilder = readTime_.toBuilder(); + } + readTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readTime_); + readTime_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 32: { + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - totalSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + case 32: + { + totalSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,8 +129,7 @@ private ListFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { listFindingsResults_ = java.util.Collections.unmodifiableList(listFindingsResults_); @@ -112,42 +138,54 @@ private ListFindingsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.class, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.class, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.Builder.class); } - public interface ListFindingsResultOrBuilder extends + public interface ListFindingsResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Finding matching the search request.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1; + * * @return Whether the finding field is set. */ boolean hasFinding(); /** + * + * *
      * Finding matching the search request.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1; + * * @return The finding. */ com.google.cloud.securitycenter.v1p1beta1.Finding getFinding(); /** + * + * *
      * Finding matching the search request.
      * 
@@ -157,83 +195,114 @@ public interface ListFindingsResultOrBuilder extends com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder(); /** + * + * *
      * State change of the finding between the points in time.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * * @return The enum numeric value on the wire for stateChange. */ int getStateChangeValue(); /** + * + * *
      * State change of the finding between the points in time.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * * @return The stateChange. */ - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange getStateChange(); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange + getStateChange(); /** + * + * *
      * Output only. Resource that is associated with this finding.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
      * Output only. Resource that is associated with this finding.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The resource. */ - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource getResource(); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource + getResource(); /** + * + * *
      * Output only. Resource that is associated with this finding.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder getResourceOrBuilder(); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .ResourceOrBuilder + getResourceOrBuilder(); } /** + * + * *
    * Result containing the Finding and its StateChange.
    * 
* - * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult} + * Protobuf type {@code + * google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult} */ - public static final class ListFindingsResult extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ListFindingsResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) ListFindingsResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingsResult.newBuilder() to construct. private ListFindingsResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFindingsResult() { stateChange_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFindingsResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -252,45 +321,57 @@ private ListFindingsResult( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1p1beta1.Finding.Builder subBuilder = null; - if (finding_ != null) { - subBuilder = finding_.toBuilder(); - } - finding_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Finding.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(finding_); - finding_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); + case 10: + { + com.google.cloud.securitycenter.v1p1beta1.Finding.Builder subBuilder = null; + if (finding_ != null) { + subBuilder = finding_.toBuilder(); + } + finding_ = + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.Finding.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finding_); + finding_ = subBuilder.buildPartial(); + } - stateChange_ = rawValue; - break; - } - case 26: { - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); + break; } - resource_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); + case 16: + { + int rawValue = input.readEnum(); + + stateChange_ = rawValue; + break; } + case 26: + { + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource.Builder + subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse + .ListFindingsResult.Resource.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -298,27 +379,33 @@ private ListFindingsResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.class, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .class, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Builder.class); } /** + * + * *
      * The change in state of the finding.
      * When querying across two points in time this describes
@@ -329,11 +416,13 @@ private ListFindingsResult(
      * supplied in the request the state change will be: UNUSED
      * 
* - * Protobuf enum {@code google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange} + * Protobuf enum {@code + * google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange} */ - public enum StateChange - implements com.google.protobuf.ProtocolMessageEnum { + public enum StateChange implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * State change is unused, this is the canonical default for this enum.
        * 
@@ -342,6 +431,8 @@ public enum StateChange */ UNUSED(0), /** + * + * *
        * The finding has changed state in some way between the points in time
        * and existed at both points.
@@ -351,6 +442,8 @@ public enum StateChange
        */
       CHANGED(1),
       /**
+       *
+       *
        * 
        * The finding has not changed state between the points in time and
        * existed at both points.
@@ -360,6 +453,8 @@ public enum StateChange
        */
       UNCHANGED(2),
       /**
+       *
+       *
        * 
        * The finding was created between the points in time.
        * 
@@ -368,6 +463,8 @@ public enum StateChange */ ADDED(3), /** + * + * *
        * The finding at timestamp does not match the filter specified, but it
        * did at timestamp - compare_duration.
@@ -380,6 +477,8 @@ public enum StateChange
       ;
 
       /**
+       *
+       *
        * 
        * State change is unused, this is the canonical default for this enum.
        * 
@@ -388,6 +487,8 @@ public enum StateChange */ public static final int UNUSED_VALUE = 0; /** + * + * *
        * The finding has changed state in some way between the points in time
        * and existed at both points.
@@ -397,6 +498,8 @@ public enum StateChange
        */
       public static final int CHANGED_VALUE = 1;
       /**
+       *
+       *
        * 
        * The finding has not changed state between the points in time and
        * existed at both points.
@@ -406,6 +509,8 @@ public enum StateChange
        */
       public static final int UNCHANGED_VALUE = 2;
       /**
+       *
+       *
        * 
        * The finding was created between the points in time.
        * 
@@ -414,6 +519,8 @@ public enum StateChange */ public static final int ADDED_VALUE = 3; /** + * + * *
        * The finding at timestamp does not match the filter specified, but it
        * did at timestamp - compare_duration.
@@ -423,7 +530,6 @@ public enum StateChange
        */
       public static final int REMOVED_VALUE = 4;
 
-
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -448,51 +554,56 @@ public static StateChange valueOf(int value) {
        */
       public static StateChange forNumber(int value) {
         switch (value) {
-          case 0: return UNUSED;
-          case 1: return CHANGED;
-          case 2: return UNCHANGED;
-          case 3: return ADDED;
-          case 4: return REMOVED;
-          default: return null;
+          case 0:
+            return UNUSED;
+          case 1:
+            return CHANGED;
+          case 2:
+            return UNCHANGED;
+          case 3:
+            return ADDED;
+          case 4:
+            return REMOVED;
+          default:
+            return null;
         }
       }
 
-      public static com.google.protobuf.Internal.EnumLiteMap
-          internalGetValueMap() {
+      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
         return internalValueMap;
       }
-      private static final com.google.protobuf.Internal.EnumLiteMap<
-          StateChange> internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public StateChange findValueByNumber(int number) {
-                return StateChange.forNumber(number);
-              }
-            };
 
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor
-          getValueDescriptor() {
+      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public StateChange findValueByNumber(int number) {
+              return StateChange.forNumber(number);
+            }
+          };
+
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-      public final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptorForType() {
+
+      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
         return getDescriptor();
       }
-      public static final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptor() {
-        return com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.getDescriptor().getEnumTypes().get(0);
+
+      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+        return com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult
+            .getDescriptor()
+            .getEnumTypes()
+            .get(0);
       }
 
       private static final StateChange[] VALUES = values();
 
-      public static StateChange valueOf(
-          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static StateChange valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException(
-            "EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -509,113 +620,141 @@ private StateChange(int value) {
       // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange)
     }
 
-    public interface ResourceOrBuilder extends
+    public interface ResourceOrBuilder
+        extends
         // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource)
         com.google.protobuf.MessageOrBuilder {
 
       /**
+       *
+       *
        * 
        * The full resource name of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
        * The full resource name of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
        * The full resource name of project that the resource belongs to.
        * 
* * string project_name = 2; + * * @return The projectName. */ java.lang.String getProjectName(); /** + * + * *
        * The full resource name of project that the resource belongs to.
        * 
* * string project_name = 2; + * * @return The bytes for projectName. */ - com.google.protobuf.ByteString - getProjectNameBytes(); + com.google.protobuf.ByteString getProjectNameBytes(); /** + * + * *
        * The human readable name of project that the resource belongs to.
        * 
* * string project_display_name = 3; + * * @return The projectDisplayName. */ java.lang.String getProjectDisplayName(); /** + * + * *
        * The human readable name of project that the resource belongs to.
        * 
* * string project_display_name = 3; + * * @return The bytes for projectDisplayName. */ - com.google.protobuf.ByteString - getProjectDisplayNameBytes(); + com.google.protobuf.ByteString getProjectDisplayNameBytes(); /** + * + * *
        * The full resource name of resource's parent.
        * 
* * string parent_name = 4; + * * @return The parentName. */ java.lang.String getParentName(); /** + * + * *
        * The full resource name of resource's parent.
        * 
* * string parent_name = 4; + * * @return The bytes for parentName. */ - com.google.protobuf.ByteString - getParentNameBytes(); + com.google.protobuf.ByteString getParentNameBytes(); /** + * + * *
        * The human readable name of resource's parent.
        * 
* * string parent_display_name = 5; + * * @return The parentDisplayName. */ java.lang.String getParentDisplayName(); /** + * + * *
        * The human readable name of resource's parent.
        * 
* * string parent_display_name = 5; + * * @return The bytes for parentDisplayName. */ - com.google.protobuf.ByteString - getParentDisplayNameBytes(); + com.google.protobuf.ByteString getParentDisplayNameBytes(); /** + * + * *
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -624,9 +763,10 @@ public interface ResourceOrBuilder extends
        *
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
-      java.util.List 
-          getFoldersList();
+      java.util.List getFoldersList();
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -637,6 +777,8 @@ public interface ResourceOrBuilder extends
        */
       com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index);
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -647,6 +789,8 @@ public interface ResourceOrBuilder extends
        */
       int getFoldersCount();
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -655,9 +799,11 @@ public interface ResourceOrBuilder extends
        *
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
-      java.util.List 
+      java.util.List
           getFoldersOrBuilderList();
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -666,26 +812,29 @@ public interface ResourceOrBuilder extends
        *
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
-      com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder(
-          int index);
+      com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder(int index);
     }
     /**
+     *
+     *
      * 
      * Information related to the Google Cloud resource that is
      * associated with this finding.
      * 
* - * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource} + * Protobuf type {@code + * google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource} */ - public static final class Resource extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Resource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource) ResourceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Resource() { name_ = ""; projectName_ = ""; @@ -697,16 +846,15 @@ private Resource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Resource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Resource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -726,52 +874,61 @@ private Resource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - projectName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + projectName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - projectDisplayName_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + projectDisplayName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - parentName_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + parentName_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - parentDisplayName_ = s; - break; - } - case 82: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - folders_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + parentDisplayName_ = s; + break; } - folders_.add( - input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Folder.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 82: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + folders_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + folders_.add( + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.Folder.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -779,8 +936,8 @@ private Resource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { folders_ = java.util.Collections.unmodifiableList(folders_); @@ -789,28 +946,36 @@ private Resource( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.class, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource.class, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
        * The full resource name of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -819,30 +984,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
        * The full resource name of the resource. See:
        * https://cloud.google.com/apis/design/resource_names#full_resource_name
        * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -853,11 +1018,14 @@ public java.lang.String getName() { public static final int PROJECT_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object projectName_; /** + * + * *
        * The full resource name of project that the resource belongs to.
        * 
* * string project_name = 2; + * * @return The projectName. */ @java.lang.Override @@ -866,29 +1034,29 @@ public java.lang.String getProjectName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectName_ = s; return s; } } /** + * + * *
        * The full resource name of project that the resource belongs to.
        * 
* * string project_name = 2; + * * @return The bytes for projectName. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectNameBytes() { + public com.google.protobuf.ByteString getProjectNameBytes() { java.lang.Object ref = projectName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectName_ = b; return b; } else { @@ -899,11 +1067,14 @@ public java.lang.String getProjectName() { public static final int PROJECT_DISPLAY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object projectDisplayName_; /** + * + * *
        * The human readable name of project that the resource belongs to.
        * 
* * string project_display_name = 3; + * * @return The projectDisplayName. */ @java.lang.Override @@ -912,29 +1083,29 @@ public java.lang.String getProjectDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectDisplayName_ = s; return s; } } /** + * + * *
        * The human readable name of project that the resource belongs to.
        * 
* * string project_display_name = 3; + * * @return The bytes for projectDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectDisplayNameBytes() { + public com.google.protobuf.ByteString getProjectDisplayNameBytes() { java.lang.Object ref = projectDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectDisplayName_ = b; return b; } else { @@ -945,11 +1116,14 @@ public java.lang.String getProjectDisplayName() { public static final int PARENT_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object parentName_; /** + * + * *
        * The full resource name of resource's parent.
        * 
* * string parent_name = 4; + * * @return The parentName. */ @java.lang.Override @@ -958,29 +1132,29 @@ public java.lang.String getParentName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentName_ = s; return s; } } /** + * + * *
        * The full resource name of resource's parent.
        * 
* * string parent_name = 4; + * * @return The bytes for parentName. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentNameBytes() { + public com.google.protobuf.ByteString getParentNameBytes() { java.lang.Object ref = parentName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentName_ = b; return b; } else { @@ -991,11 +1165,14 @@ public java.lang.String getParentName() { public static final int PARENT_DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object parentDisplayName_; /** + * + * *
        * The human readable name of resource's parent.
        * 
* * string parent_display_name = 5; + * * @return The parentDisplayName. */ @java.lang.Override @@ -1004,29 +1181,29 @@ public java.lang.String getParentDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDisplayName_ = s; return s; } } /** + * + * *
        * The human readable name of resource's parent.
        * 
* * string parent_display_name = 5; + * * @return The bytes for parentDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentDisplayNameBytes() { + public com.google.protobuf.ByteString getParentDisplayNameBytes() { java.lang.Object ref = parentDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentDisplayName_ = b; return b; } else { @@ -1037,6 +1214,8 @@ public java.lang.String getParentDisplayName() { public static final int FOLDERS_FIELD_NUMBER = 10; private java.util.List folders_; /** + * + * *
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -1050,6 +1229,8 @@ public java.util.List getFolde
         return folders_;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -1059,11 +1240,13 @@ public java.util.List getFolde
        * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
        */
       @java.lang.Override
-      public java.util.List 
+      public java.util.List
           getFoldersOrBuilderList() {
         return folders_;
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -1077,6 +1260,8 @@ public int getFoldersCount() {
         return folders_.size();
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -1090,6 +1275,8 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index) {
         return folders_.get(index);
       }
       /**
+       *
+       *
        * 
        * Contains a Folder message for each folder in the assets ancestry.
        * The first folder is the deepest nested folder, and the last folder is
@@ -1105,6 +1292,7 @@ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBui
       }
 
       private byte memoizedIsInitialized = -1;
+
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
@@ -1116,8 +1304,7 @@ public final boolean isInitialized() {
       }
 
       @java.lang.Override
-      public void writeTo(com.google.protobuf.CodedOutputStream output)
-                          throws java.io.IOException {
+      public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
         }
@@ -1161,8 +1348,7 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parentDisplayName_);
         }
         for (int i = 0; i < folders_.size(); i++) {
-          size += com.google.protobuf.CodedOutputStream
-            .computeMessageSize(10, folders_.get(i));
+          size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, folders_.get(i));
         }
         size += unknownFields.getSerializedSize();
         memoizedSize = size;
@@ -1172,25 +1358,26 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
-         return true;
+          return true;
         }
-        if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource)) {
+        if (!(obj
+            instanceof
+            com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult
+                .Resource)) {
           return super.equals(obj);
         }
-        com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource other = (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource) obj;
-
-        if (!getName()
-            .equals(other.getName())) return false;
-        if (!getProjectName()
-            .equals(other.getProjectName())) return false;
-        if (!getProjectDisplayName()
-            .equals(other.getProjectDisplayName())) return false;
-        if (!getParentName()
-            .equals(other.getParentName())) return false;
-        if (!getParentDisplayName()
-            .equals(other.getParentDisplayName())) return false;
-        if (!getFoldersList()
-            .equals(other.getFoldersList())) return false;
+        com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource
+            other =
+                (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult
+                        .Resource)
+                    obj;
+
+        if (!getName().equals(other.getName())) return false;
+        if (!getProjectName().equals(other.getProjectName())) return false;
+        if (!getProjectDisplayName().equals(other.getProjectDisplayName())) return false;
+        if (!getParentName().equals(other.getParentName())) return false;
+        if (!getParentDisplayName().equals(other.getParentDisplayName())) return false;
+        if (!getFoldersList().equals(other.getFoldersList())) return false;
         if (!unknownFields.equals(other.unknownFields)) return false;
         return true;
       }
@@ -1221,88 +1408,116 @@ public int hashCode() {
         return hash;
       }
 
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
-          java.nio.ByteBuffer data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
+              .ListFindingsResult.Resource
+          parseFrom(java.nio.ByteBuffer data)
+              throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
-          java.nio.ByteBuffer data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
+              .ListFindingsResult.Resource
+          parseFrom(
+              java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
-          com.google.protobuf.ByteString data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
+              .ListFindingsResult.Resource
+          parseFrom(com.google.protobuf.ByteString data)
+              throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
-          com.google.protobuf.ByteString data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
+              .ListFindingsResult.Resource
+          parseFrom(
+              com.google.protobuf.ByteString data,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(byte[] data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
+              .ListFindingsResult.Resource
+          parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
-          byte[] data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
+
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
+              .ListFindingsResult.Resource
+          parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(java.io.InputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input);
+
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
+              .ListFindingsResult.Resource
+          parseFrom(java.io.InputStream input) throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
-          java.io.InputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input, extensionRegistry);
+
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
+              .ListFindingsResult.Resource
+          parseFrom(
+              java.io.InputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+            PARSER, input, extensionRegistry);
       }
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseDelimitedFrom(java.io.InputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseDelimitedWithIOException(PARSER, input);
+
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
+              .ListFindingsResult.Resource
+          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseDelimitedFrom(
-          java.io.InputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
+              .ListFindingsResult.Resource
+          parseDelimitedFrom(
+              java.io.InputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+            PARSER, input, extensionRegistry);
       }
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
-          com.google.protobuf.CodedInputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input);
+
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
+              .ListFindingsResult.Resource
+          parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parseFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input, extensionRegistry);
+
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
+              .ListFindingsResult.Resource
+          parseFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+            PARSER, input, extensionRegistry);
       }
 
       @java.lang.Override
-      public Builder newBuilderForType() { return newBuilder(); }
+      public Builder newBuilderForType() {
+        return newBuilder();
+      }
+
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
-      public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource prototype) {
+
+      public static Builder newBuilder(
+          com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource
+              prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
+
       @java.lang.Override
       public Builder toBuilder() {
-        return this == DEFAULT_INSTANCE
-            ? new Builder() : new Builder().mergeFrom(this);
+        return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
 
       @java.lang.Override
@@ -1312,46 +1527,56 @@ protected Builder newBuilderForType(
         return builder;
       }
       /**
+       *
+       *
        * 
        * Information related to the Google Cloud resource that is
        * associated with this finding.
        * 
* - * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource} + * Protobuf type {@code + * google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource) - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .ResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.class, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource.class, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource.Builder.class); } - // Construct using com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFoldersFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1375,19 +1600,25 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource build() { - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource result = buildPartial(); + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource + build() { + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1395,8 +1626,13 @@ public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindin } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource result = new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource(this); + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource + buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource + result = + new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse + .ListFindingsResult.Resource(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.projectName_ = projectName_; @@ -1420,46 +1656,60 @@ public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindin public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource)other); + if (other + instanceof + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource) { + return mergeFrom( + (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource + other) { + if (other + == com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1498,9 +1748,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListFindingsR foldersBuilder_ = null; folders_ = other.folders_; bitField0_ = (bitField0_ & ~0x00000001); - foldersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFoldersFieldBuilder() : null; + foldersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFoldersFieldBuilder() + : null; } else { foldersBuilder_.addAllMessages(other.folders_); } @@ -1521,11 +1772,15 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource parsedMessage = null; + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1534,23 +1789,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
          * The full resource name of the resource. See:
          * https://cloud.google.com/apis/design/resource_names#full_resource_name
          * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1559,21 +1817,22 @@ public java.lang.String getName() { } } /** + * + * *
          * The full resource name of the resource. See:
          * https://cloud.google.com/apis/design/resource_names#full_resource_name
          * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1581,57 +1840,64 @@ public java.lang.String getName() { } } /** + * + * *
          * The full resource name of the resource. See:
          * https://cloud.google.com/apis/design/resource_names#full_resource_name
          * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
          * The full resource name of the resource. See:
          * https://cloud.google.com/apis/design/resource_names#full_resource_name
          * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
          * The full resource name of the resource. See:
          * https://cloud.google.com/apis/design/resource_names#full_resource_name
          * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1639,18 +1905,20 @@ public Builder setNameBytes( private java.lang.Object projectName_ = ""; /** + * + * *
          * The full resource name of project that the resource belongs to.
          * 
* * string project_name = 2; + * * @return The projectName. */ public java.lang.String getProjectName() { java.lang.Object ref = projectName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectName_ = s; return s; @@ -1659,20 +1927,21 @@ public java.lang.String getProjectName() { } } /** + * + * *
          * The full resource name of project that the resource belongs to.
          * 
* * string project_name = 2; + * * @return The bytes for projectName. */ - public com.google.protobuf.ByteString - getProjectNameBytes() { + public com.google.protobuf.ByteString getProjectNameBytes() { java.lang.Object ref = projectName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectName_ = b; return b; } else { @@ -1680,54 +1949,61 @@ public java.lang.String getProjectName() { } } /** + * + * *
          * The full resource name of project that the resource belongs to.
          * 
* * string project_name = 2; + * * @param value The projectName to set. * @return This builder for chaining. */ - public Builder setProjectName( - java.lang.String value) { + public Builder setProjectName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectName_ = value; onChanged(); return this; } /** + * + * *
          * The full resource name of project that the resource belongs to.
          * 
* * string project_name = 2; + * * @return This builder for chaining. */ public Builder clearProjectName() { - + projectName_ = getDefaultInstance().getProjectName(); onChanged(); return this; } /** + * + * *
          * The full resource name of project that the resource belongs to.
          * 
* * string project_name = 2; + * * @param value The bytes for projectName to set. * @return This builder for chaining. */ - public Builder setProjectNameBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectName_ = value; onChanged(); return this; @@ -1735,18 +2011,20 @@ public Builder setProjectNameBytes( private java.lang.Object projectDisplayName_ = ""; /** + * + * *
          * The human readable name of project that the resource belongs to.
          * 
* * string project_display_name = 3; + * * @return The projectDisplayName. */ public java.lang.String getProjectDisplayName() { java.lang.Object ref = projectDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectDisplayName_ = s; return s; @@ -1755,20 +2033,21 @@ public java.lang.String getProjectDisplayName() { } } /** + * + * *
          * The human readable name of project that the resource belongs to.
          * 
* * string project_display_name = 3; + * * @return The bytes for projectDisplayName. */ - public com.google.protobuf.ByteString - getProjectDisplayNameBytes() { + public com.google.protobuf.ByteString getProjectDisplayNameBytes() { java.lang.Object ref = projectDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectDisplayName_ = b; return b; } else { @@ -1776,54 +2055,61 @@ public java.lang.String getProjectDisplayName() { } } /** + * + * *
          * The human readable name of project that the resource belongs to.
          * 
* * string project_display_name = 3; + * * @param value The projectDisplayName to set. * @return This builder for chaining. */ - public Builder setProjectDisplayName( - java.lang.String value) { + public Builder setProjectDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectDisplayName_ = value; onChanged(); return this; } /** + * + * *
          * The human readable name of project that the resource belongs to.
          * 
* * string project_display_name = 3; + * * @return This builder for chaining. */ public Builder clearProjectDisplayName() { - + projectDisplayName_ = getDefaultInstance().getProjectDisplayName(); onChanged(); return this; } /** + * + * *
          * The human readable name of project that the resource belongs to.
          * 
* * string project_display_name = 3; + * * @param value The bytes for projectDisplayName to set. * @return This builder for chaining. */ - public Builder setProjectDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectDisplayName_ = value; onChanged(); return this; @@ -1831,18 +2117,20 @@ public Builder setProjectDisplayNameBytes( private java.lang.Object parentName_ = ""; /** + * + * *
          * The full resource name of resource's parent.
          * 
* * string parent_name = 4; + * * @return The parentName. */ public java.lang.String getParentName() { java.lang.Object ref = parentName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentName_ = s; return s; @@ -1851,20 +2139,21 @@ public java.lang.String getParentName() { } } /** + * + * *
          * The full resource name of resource's parent.
          * 
* * string parent_name = 4; + * * @return The bytes for parentName. */ - public com.google.protobuf.ByteString - getParentNameBytes() { + public com.google.protobuf.ByteString getParentNameBytes() { java.lang.Object ref = parentName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentName_ = b; return b; } else { @@ -1872,54 +2161,61 @@ public java.lang.String getParentName() { } } /** + * + * *
          * The full resource name of resource's parent.
          * 
* * string parent_name = 4; + * * @param value The parentName to set. * @return This builder for chaining. */ - public Builder setParentName( - java.lang.String value) { + public Builder setParentName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parentName_ = value; onChanged(); return this; } /** + * + * *
          * The full resource name of resource's parent.
          * 
* * string parent_name = 4; + * * @return This builder for chaining. */ public Builder clearParentName() { - + parentName_ = getDefaultInstance().getParentName(); onChanged(); return this; } /** + * + * *
          * The full resource name of resource's parent.
          * 
* * string parent_name = 4; + * * @param value The bytes for parentName to set. * @return This builder for chaining. */ - public Builder setParentNameBytes( - com.google.protobuf.ByteString value) { + public Builder setParentNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentName_ = value; onChanged(); return this; @@ -1927,18 +2223,20 @@ public Builder setParentNameBytes( private java.lang.Object parentDisplayName_ = ""; /** + * + * *
          * The human readable name of resource's parent.
          * 
* * string parent_display_name = 5; + * * @return The parentDisplayName. */ public java.lang.String getParentDisplayName() { java.lang.Object ref = parentDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDisplayName_ = s; return s; @@ -1947,20 +2245,21 @@ public java.lang.String getParentDisplayName() { } } /** + * + * *
          * The human readable name of resource's parent.
          * 
* * string parent_display_name = 5; + * * @return The bytes for parentDisplayName. */ - public com.google.protobuf.ByteString - getParentDisplayNameBytes() { + public com.google.protobuf.ByteString getParentDisplayNameBytes() { java.lang.Object ref = parentDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentDisplayName_ = b; return b; } else { @@ -1968,72 +2267,86 @@ public java.lang.String getParentDisplayName() { } } /** + * + * *
          * The human readable name of resource's parent.
          * 
* * string parent_display_name = 5; + * * @param value The parentDisplayName to set. * @return This builder for chaining. */ - public Builder setParentDisplayName( - java.lang.String value) { + public Builder setParentDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parentDisplayName_ = value; onChanged(); return this; } /** + * + * *
          * The human readable name of resource's parent.
          * 
* * string parent_display_name = 5; + * * @return This builder for chaining. */ public Builder clearParentDisplayName() { - + parentDisplayName_ = getDefaultInstance().getParentDisplayName(); onChanged(); return this; } /** + * + * *
          * The human readable name of resource's parent.
          * 
* * string parent_display_name = 5; + * * @param value The bytes for parentDisplayName to set. * @return This builder for chaining. */ - public Builder setParentDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setParentDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentDisplayName_ = value; onChanged(); return this; } private java.util.List folders_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - folders_ = new java.util.ArrayList(folders_); + folders_ = + new java.util.ArrayList(folders_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> foldersBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Folder, + com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, + com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> + foldersBuilder_; /** + * + * *
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2050,6 +2363,8 @@ public java.util.List getFolde
           }
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2066,6 +2381,8 @@ public int getFoldersCount() {
           }
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2082,6 +2399,8 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index) {
           }
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2105,6 +2424,8 @@ public Builder setFolders(
           return this;
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2125,6 +2446,8 @@ public Builder setFolders(
           return this;
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2147,6 +2470,8 @@ public Builder addFolders(com.google.cloud.securitycenter.v1p1beta1.Folder value
           return this;
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2170,6 +2495,8 @@ public Builder addFolders(
           return this;
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2190,6 +2517,8 @@ public Builder addFolders(
           return this;
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2210,6 +2539,8 @@ public Builder addFolders(
           return this;
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2222,8 +2553,7 @@ public Builder addAllFolders(
             java.lang.Iterable values) {
           if (foldersBuilder_ == null) {
             ensureFoldersIsMutable();
-            com.google.protobuf.AbstractMessageLite.Builder.addAll(
-                values, folders_);
+            com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_);
             onChanged();
           } else {
             foldersBuilder_.addAllMessages(values);
@@ -2231,6 +2561,8 @@ public Builder addAllFolders(
           return this;
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2250,6 +2582,8 @@ public Builder clearFolders() {
           return this;
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2269,6 +2603,8 @@ public Builder removeFolders(int index) {
           return this;
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2282,6 +2618,8 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder getFoldersBuilde
           return getFoldersFieldBuilder().getBuilder(index);
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2293,11 +2631,14 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder getFoldersBuilde
         public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder(
             int index) {
           if (foldersBuilder_ == null) {
-            return folders_.get(index);  } else {
+            return folders_.get(index);
+          } else {
             return foldersBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2306,8 +2647,8 @@ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBui
          *
          * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
          */
-        public java.util.List 
-             getFoldersOrBuilderList() {
+        public java.util.List
+            getFoldersOrBuilderList() {
           if (foldersBuilder_ != null) {
             return foldersBuilder_.getMessageOrBuilderList();
           } else {
@@ -2315,6 +2656,8 @@ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBui
           }
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2324,10 +2667,12 @@ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBui
          * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
          */
         public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilder() {
-          return getFoldersFieldBuilder().addBuilder(
-              com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance());
+          return getFoldersFieldBuilder()
+              .addBuilder(com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance());
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2338,10 +2683,13 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilde
          */
         public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilder(
             int index) {
-          return getFoldersFieldBuilder().addBuilder(
-              index, com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance());
+          return getFoldersFieldBuilder()
+              .addBuilder(
+                  index, com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance());
         }
         /**
+         *
+         *
          * 
          * Contains a Folder message for each folder in the assets ancestry.
          * The first folder is the deepest nested folder, and the last folder is
@@ -2350,24 +2698,28 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilde
          *
          * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10;
          */
-        public java.util.List 
-             getFoldersBuilderList() {
+        public java.util.List
+            getFoldersBuilderList() {
           return getFoldersFieldBuilder().getBuilderList();
         }
+
         private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> 
+                com.google.cloud.securitycenter.v1p1beta1.Folder,
+                com.google.cloud.securitycenter.v1p1beta1.Folder.Builder,
+                com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder>
             getFoldersFieldBuilder() {
           if (foldersBuilder_ == null) {
-            foldersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder>(
-                    folders_,
-                    ((bitField0_ & 0x00000001) != 0),
-                    getParentForChildren(),
-                    isClean());
+            foldersBuilder_ =
+                new com.google.protobuf.RepeatedFieldBuilderV3<
+                    com.google.cloud.securitycenter.v1p1beta1.Folder,
+                    com.google.cloud.securitycenter.v1p1beta1.Folder.Builder,
+                    com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder>(
+                    folders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
             folders_ = null;
           }
           return foldersBuilder_;
         }
+
         @java.lang.Override
         public final Builder setUnknownFields(
             final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -2380,30 +2732,36 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
 
-
         // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource)
       }
 
       // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource)
-      private static final com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource DEFAULT_INSTANCE;
+      private static final com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
+              .ListFindingsResult.Resource
+          DEFAULT_INSTANCE;
+
       static {
-        DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource();
+        DEFAULT_INSTANCE =
+            new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult
+                .Resource();
       }
 
-      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource getDefaultInstance() {
+      public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse
+              .ListFindingsResult.Resource
+          getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
 
-      private static final com.google.protobuf.Parser
-          PARSER = new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Resource parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Resource(input, extensionRegistry);
-        }
-      };
+      private static final com.google.protobuf.Parser PARSER =
+          new com.google.protobuf.AbstractParser() {
+            @java.lang.Override
+            public Resource parsePartialFrom(
+                com.google.protobuf.CodedInputStream input,
+                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+                throws com.google.protobuf.InvalidProtocolBufferException {
+              return new Resource(input, extensionRegistry);
+            }
+          };
 
       public static com.google.protobuf.Parser parser() {
         return PARSER;
@@ -2415,20 +2773,24 @@ public com.google.protobuf.Parser getParserForType() {
       }
 
       @java.lang.Override
-      public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource getDefaultInstanceForType() {
+      public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult
+              .Resource
+          getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
-
     }
 
     public static final int FINDING_FIELD_NUMBER = 1;
     private com.google.cloud.securitycenter.v1p1beta1.Finding finding_;
     /**
+     *
+     *
      * 
      * Finding matching the search request.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1; + * * @return Whether the finding field is set. */ @java.lang.Override @@ -2436,18 +2798,25 @@ public boolean hasFinding() { return finding_ != null; } /** + * + * *
      * Finding matching the search request.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1; + * * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { - return finding_ == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() + : finding_; } /** + * + * *
      * Finding matching the search request.
      * 
@@ -2462,38 +2831,65 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu public static final int STATE_CHANGE_FIELD_NUMBER = 2; private int stateChange_; /** + * + * *
      * State change of the finding between the points in time.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * * @return The enum numeric value on the wire for stateChange. */ - @java.lang.Override public int getStateChangeValue() { + @java.lang.Override + public int getStateChangeValue() { return stateChange_; } /** + * + * *
      * State change of the finding between the points in time.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * * @return The stateChange. */ - @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange getStateChange() { + @java.lang.Override + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .StateChange + getStateChange() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange result = com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange.valueOf(stateChange_); - return result == null ? com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange + result = + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .StateChange.valueOf(stateChange_); + return result == null + ? com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .StateChange.UNRECOGNIZED + : result; } public static final int RESOURCE_FIELD_NUMBER = 3; - private com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource_; + private com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource + resource_; /** + * + * *
      * Output only. Resource that is associated with this finding.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the resource field is set. */ @java.lang.Override @@ -2501,30 +2897,47 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
      * Output only. Resource that is associated with this finding.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The resource. */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource getResource() { - return resource_ == null ? com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.getDefaultInstance() : resource_; + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource + getResource() { + return resource_ == null + ? com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource.getDefaultInstance() + : resource_; } /** + * + * *
      * Output only. Resource that is associated with this finding.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder getResourceOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .ResourceOrBuilder + getResourceOrBuilder() { return getResource(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2536,12 +2949,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (finding_ != null) { output.writeMessage(1, getFinding()); } - if (stateChange_ != com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange.UNUSED.getNumber()) { + if (stateChange_ + != com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .StateChange.UNUSED + .getNumber()) { output.writeEnum(2, stateChange_); } if (resource_ != null) { @@ -2557,16 +2972,16 @@ public int getSerializedSize() { size = 0; if (finding_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getFinding()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFinding()); } - if (stateChange_ != com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange.UNUSED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, stateChange_); + if (stateChange_ + != com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .StateChange.UNUSED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, stateChange_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2576,23 +2991,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult)) { + if (!(obj + instanceof + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult other = (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) obj; + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult other = + (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) obj; if (hasFinding() != other.hasFinding()) return false; if (hasFinding()) { - if (!getFinding() - .equals(other.getFinding())) return false; + if (!getFinding().equals(other.getFinding())) return false; } if (stateChange_ != other.stateChange_) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2620,88 +3036,102 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2711,44 +3141,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Result containing the Finding and its StateChange.
      * 
* - * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult} + * Protobuf type {@code + * google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.class, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .class, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Builder.class); } - // Construct using com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2770,19 +3208,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult build() { - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult result = buildPartial(); + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + build() { + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2790,8 +3232,11 @@ public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindin } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult result = new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult(this); + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult result = + new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult( + this); if (findingBuilder_ == null) { result.finding_ = finding_; } else { @@ -2811,46 +3256,56 @@ public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindin public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult)other); + if (other + instanceof + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) { + return mergeFrom( + (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult other) { + if (other + == com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .getDefaultInstance()) return this; if (other.hasFinding()) { mergeFinding(other.getFinding()); } @@ -2875,11 +3330,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult parsedMessage = null; + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2891,34 +3349,47 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1p1beta1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> findingBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Finding, + com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, + com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> + findingBuilder_; /** + * + * *
        * Finding matching the search request.
        * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1; + * * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; } /** + * + * *
        * Finding matching the search request.
        * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1; + * * @return The finding. */ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { if (findingBuilder_ == null) { - return finding_ == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() + : finding_; } else { return findingBuilder_.getMessage(); } } /** + * + * *
        * Finding matching the search request.
        * 
@@ -2939,6 +3410,8 @@ public Builder setFinding(com.google.cloud.securitycenter.v1p1beta1.Finding valu return this; } /** + * + * *
        * Finding matching the search request.
        * 
@@ -2957,6 +3430,8 @@ public Builder setFinding( return this; } /** + * + * *
        * Finding matching the search request.
        * 
@@ -2967,7 +3442,9 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1p1beta1.Finding va if (findingBuilder_ == null) { if (finding_ != null) { finding_ = - com.google.cloud.securitycenter.v1p1beta1.Finding.newBuilder(finding_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.Finding.newBuilder(finding_) + .mergeFrom(value) + .buildPartial(); } else { finding_ = value; } @@ -2979,6 +3456,8 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1p1beta1.Finding va return this; } /** + * + * *
        * Finding matching the search request.
        * 
@@ -2997,6 +3476,8 @@ public Builder clearFinding() { return this; } /** + * + * *
        * Finding matching the search request.
        * 
@@ -3004,11 +3485,13 @@ public Builder clearFinding() { * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1; */ public com.google.cloud.securitycenter.v1p1beta1.Finding.Builder getFindingBuilder() { - + onChanged(); return getFindingFieldBuilder().getBuilder(); } /** + * + * *
        * Finding matching the search request.
        * 
@@ -3019,11 +3502,14 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu if (findingBuilder_ != null) { return findingBuilder_.getMessageOrBuilder(); } else { - return finding_ == null ? - com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() + : finding_; } } /** + * + * *
        * Finding matching the search request.
        * 
@@ -3031,14 +3517,17 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.Finding, + com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, + com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> getFindingFieldBuilder() { if (findingBuilder_ == null) { - findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder>( - getFinding(), - getParentForChildren(), - isClean()); + findingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Finding, + com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, + com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder>( + getFinding(), getParentForChildren(), isClean()); finding_ = null; } return findingBuilder_; @@ -3046,115 +3535,182 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu private int stateChange_ = 0; /** + * + * *
        * State change of the finding between the points in time.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * * @return The enum numeric value on the wire for stateChange. */ - @java.lang.Override public int getStateChangeValue() { + @java.lang.Override + public int getStateChangeValue() { return stateChange_; } /** + * + * *
        * State change of the finding between the points in time.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * * @param value The enum numeric value on the wire for stateChange to set. * @return This builder for chaining. */ public Builder setStateChangeValue(int value) { - + stateChange_ = value; onChanged(); return this; } /** + * + * *
        * State change of the finding between the points in time.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * * @return The stateChange. */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange getStateChange() { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .StateChange + getStateChange() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange result = com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange.valueOf(stateChange_); - return result == null ? com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .StateChange + result = + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .StateChange.valueOf(stateChange_); + return result == null + ? com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .StateChange.UNRECOGNIZED + : result; } /** + * + * *
        * State change of the finding between the points in time.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * * @param value The stateChange to set. * @return This builder for chaining. */ - public Builder setStateChange(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange value) { + public Builder setStateChange( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .StateChange + value) { if (value == null) { throw new NullPointerException(); } - + stateChange_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * State change of the finding between the points in time.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.StateChange state_change = 2; + * + * * @return This builder for chaining. */ public Builder clearStateChange() { - + stateChange_ = 0; onChanged(); return this; } - private com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource_; + private com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource + resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.Builder, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder> resourceBuilder_; + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource.Builder, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .ResourceOrBuilder> + resourceBuilder_; /** + * + * *
        * Output only. Resource that is associated with this finding.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
        * Output only. Resource that is associated with this finding.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The resource. */ - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource getResource() { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource + getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
        * Output only. Resource that is associated with this finding.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setResource(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource value) { + public Builder setResource( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource + value) { if (resourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3168,14 +3724,20 @@ public Builder setResource(com.google.cloud.securitycenter.v1p1beta1.ListFinding return this; } /** + * + * *
        * Output only. Resource that is associated with this finding.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setResource( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.Builder builderForValue) { + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource + .Builder + builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -3186,17 +3748,26 @@ public Builder setResource( return this; } /** + * + * *
        * Output only. Resource that is associated with this finding.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeResource(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource value) { + public Builder mergeResource( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource + value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -3208,11 +3779,15 @@ public Builder mergeResource(com.google.cloud.securitycenter.v1p1beta1.ListFindi return this; } /** + * + * *
        * Output only. Resource that is associated with this finding.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -3226,52 +3801,79 @@ public Builder clearResource() { return this; } /** + * + * *
        * Output only. Resource that is associated with this finding.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.Builder getResourceBuilder() { - + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource.Builder + getResourceBuilder() { + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
        * Output only. Resource that is associated with this finding.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder getResourceOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .ResourceOrBuilder + getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource.getDefaultInstance() + : resource_; } } /** + * + * *
        * Output only. Resource that is associated with this finding.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource resource = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.Builder, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource.Builder, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .ResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Resource.Builder, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.ResourceOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Resource.Builder, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .ResourceOrBuilder>(getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3284,30 +3886,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult) - private static final com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse + .ListFindingsResult + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult(); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3319,80 +3925,111 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int LIST_FINDINGS_RESULTS_FIELD_NUMBER = 1; - private java.util.List listFindingsResults_; + private java.util.List< + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult> + listFindingsResults_; /** + * + * *
    * Findings matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ @java.lang.Override - public java.util.List getListFindingsResultsList() { + public java.util.List< + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult> + getListFindingsResultsList() { return listFindingsResults_; } /** + * + * *
    * Findings matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse + .ListFindingsResultOrBuilder> getListFindingsResultsOrBuilderList() { return listFindingsResults_; } /** + * + * *
    * Findings matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ @java.lang.Override public int getListFindingsResultsCount() { return listFindingsResults_.size(); } /** + * + * *
    * Findings matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult getListFindingsResults(int index) { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + getListFindingsResults(int index) { return listFindingsResults_.get(index); } /** + * + * *
    * Findings matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResultOrBuilder getListFindingsResultsOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResultOrBuilder + getListFindingsResultsOrBuilder(int index) { return listFindingsResults_.get(index); } public static final int READ_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp readTime_; /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ @java.lang.Override @@ -3400,11 +4037,14 @@ public boolean hasReadTime() { return readTime_ != null; } /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ @java.lang.Override @@ -3412,6 +4052,8 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** + * + * *
    * Time used for executing the list request.
    * 
@@ -3426,12 +4068,15 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ @java.lang.Override @@ -3440,30 +4085,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -3474,11 +4119,14 @@ public java.lang.String getNextPageToken() { public static final int TOTAL_SIZE_FIELD_NUMBER = 4; private int totalSize_; /** + * + * *
    * The total number of findings matching the query.
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -3487,6 +4135,7 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3498,8 +4147,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < listFindingsResults_.size(); i++) { output.writeMessage(1, listFindingsResults_.get(i)); } @@ -3522,19 +4170,17 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < listFindingsResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, listFindingsResults_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, listFindingsResults_.get(i)); } if (readTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, totalSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3544,24 +4190,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse other = (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) obj; + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse other = + (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) obj; - if (!getListFindingsResultsList() - .equals(other.getListFindingsResultsList())) return false; + if (!getListFindingsResultsList().equals(other.getListFindingsResultsList())) return false; if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - if (!getReadTime() - .equals(other.getReadTime())) return false; + if (!getReadTime().equals(other.getReadTime())) return false; } - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (getTotalSize() - != other.getTotalSize()) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3591,117 +4234,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for listing findings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListFindingsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.class, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.class, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.newBuilder() @@ -3709,17 +4362,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getListFindingsResultsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -3743,13 +4396,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.getDefaultInstance(); } @@ -3764,7 +4418,8 @@ public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse result = new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse(this); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse result = + new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse(this); int from_bitField0_ = bitField0_; if (listFindingsResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -3790,38 +4445,39 @@ public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse)other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) other); } else { super.mergeFrom(other); return this; @@ -3829,7 +4485,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.getDefaultInstance()) + return this; if (listFindingsResultsBuilder_ == null) { if (!other.listFindingsResults_.isEmpty()) { if (listFindingsResults_.isEmpty()) { @@ -3848,9 +4506,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListFindingsR listFindingsResultsBuilder_ = null; listFindingsResults_ = other.listFindingsResults_; bitField0_ = (bitField0_ & ~0x00000001); - listFindingsResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getListFindingsResultsFieldBuilder() : null; + listFindingsResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getListFindingsResultsFieldBuilder() + : null; } else { listFindingsResultsBuilder_.addAllMessages(other.listFindingsResults_); } @@ -3885,7 +4544,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3894,28 +4555,45 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List listFindingsResults_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult> + listFindingsResults_ = java.util.Collections.emptyList(); + private void ensureListFindingsResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - listFindingsResults_ = new java.util.ArrayList(listFindingsResults_); + listFindingsResults_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult>( + listFindingsResults_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResultOrBuilder> listFindingsResultsBuilder_; + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Builder, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse + .ListFindingsResultOrBuilder> + listFindingsResultsBuilder_; /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - public java.util.List getListFindingsResultsList() { + public java.util.List< + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult> + getListFindingsResultsList() { if (listFindingsResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(listFindingsResults_); } else { @@ -3923,11 +4601,15 @@ public java.util.List * Findings matching the list request. *
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ public int getListFindingsResultsCount() { if (listFindingsResultsBuilder_ == null) { @@ -3937,13 +4619,18 @@ public int getListFindingsResultsCount() { } } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult getListFindingsResults(int index) { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + getListFindingsResults(int index) { if (listFindingsResultsBuilder_ == null) { return listFindingsResults_.get(index); } else { @@ -3951,14 +4638,19 @@ public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindin } } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ public Builder setListFindingsResults( - int index, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult value) { + int index, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult value) { if (listFindingsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3972,14 +4664,20 @@ public Builder setListFindingsResults( return this; } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ public Builder setListFindingsResults( - int index, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder builderForValue) { + int index, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder + builderForValue) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); listFindingsResults_.set(index, builderForValue.build()); @@ -3990,13 +4688,18 @@ public Builder setListFindingsResults( return this; } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - public Builder addListFindingsResults(com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult value) { + public Builder addListFindingsResults( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult value) { if (listFindingsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4010,14 +4713,19 @@ public Builder addListFindingsResults(com.google.cloud.securitycenter.v1p1beta1. return this; } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ public Builder addListFindingsResults( - int index, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult value) { + int index, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult value) { if (listFindingsResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4031,14 +4739,19 @@ public Builder addListFindingsResults( return this; } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ public Builder addListFindingsResults( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder builderForValue) { + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder + builderForValue) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); listFindingsResults_.add(builderForValue.build()); @@ -4049,14 +4762,20 @@ public Builder addListFindingsResults( return this; } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ public Builder addListFindingsResults( - int index, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder builderForValue) { + int index, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder + builderForValue) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); listFindingsResults_.add(index, builderForValue.build()); @@ -4067,18 +4786,25 @@ public Builder addListFindingsResults( return this; } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ public Builder addAllListFindingsResults( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse + .ListFindingsResult> + values) { if (listFindingsResultsBuilder_ == null) { ensureListFindingsResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, listFindingsResults_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listFindingsResults_); onChanged(); } else { listFindingsResultsBuilder_.addAllMessages(values); @@ -4086,11 +4812,15 @@ public Builder addAllListFindingsResults( return this; } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ public Builder clearListFindingsResults() { if (listFindingsResultsBuilder_ == null) { @@ -4103,11 +4833,15 @@ public Builder clearListFindingsResults() { return this; } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ public Builder removeListFindingsResults(int index) { if (listFindingsResultsBuilder_ == null) { @@ -4120,39 +4854,56 @@ public Builder removeListFindingsResults(int index) { return this; } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder getListFindingsResultsBuilder( - int index) { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder + getListFindingsResultsBuilder(int index) { return getListFindingsResultsFieldBuilder().getBuilder(index); } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResultOrBuilder getListFindingsResultsOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse + .ListFindingsResultOrBuilder + getListFindingsResultsOrBuilder(int index) { if (listFindingsResultsBuilder_ == null) { - return listFindingsResults_.get(index); } else { + return listFindingsResults_.get(index); + } else { return listFindingsResultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - public java.util.List - getListFindingsResultsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse + .ListFindingsResultOrBuilder> + getListFindingsResultsOrBuilderList() { if (listFindingsResultsBuilder_ != null) { return listFindingsResultsBuilder_.getMessageOrBuilderList(); } else { @@ -4160,45 +4911,75 @@ public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindin } } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder addListFindingsResultsBuilder() { - return getListFindingsResultsFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.getDefaultInstance()); + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder + addListFindingsResultsBuilder() { + return getListFindingsResultsFieldBuilder() + .addBuilder( + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .getDefaultInstance()); } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder addListFindingsResultsBuilder( - int index) { - return getListFindingsResultsFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.getDefaultInstance()); + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder + addListFindingsResultsBuilder(int index) { + return getListFindingsResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .getDefaultInstance()); } /** + * + * *
      * Findings matching the list request.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - public java.util.List - getListFindingsResultsBuilderList() { + public java.util.List< + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Builder> + getListFindingsResultsBuilderList() { return getListFindingsResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResultOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Builder, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse + .ListFindingsResultOrBuilder> getListFindingsResultsFieldBuilder() { if (listFindingsResultsBuilder_ == null) { - listFindingsResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult.Builder, com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResultOrBuilder>( + listFindingsResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + .Builder, + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse + .ListFindingsResultOrBuilder>( listFindingsResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -4210,24 +4991,33 @@ public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindin private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + readTimeBuilder_; /** + * + * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ public boolean hasReadTime() { return readTimeBuilder_ != null || readTime_ != null; } /** + * + * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -4238,6 +5028,8 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -4258,14 +5050,15 @@ public Builder setReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the list request.
      * 
* * .google.protobuf.Timestamp read_time = 2; */ - public Builder setReadTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (readTimeBuilder_ == null) { readTime_ = builderForValue.build(); onChanged(); @@ -4276,6 +5069,8 @@ public Builder setReadTime( return this; } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -4286,7 +5081,7 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { if (readTimeBuilder_ == null) { if (readTime_ != null) { readTime_ = - com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(readTime_).mergeFrom(value).buildPartial(); } else { readTime_ = value; } @@ -4298,6 +5093,8 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -4316,6 +5113,8 @@ public Builder clearReadTime() { return this; } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -4323,11 +5122,13 @@ public Builder clearReadTime() { * .google.protobuf.Timestamp read_time = 2; */ public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() { - + onChanged(); return getReadTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -4338,11 +5139,12 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { if (readTimeBuilder_ != null) { return readTimeBuilder_.getMessageOrBuilder(); } else { - return readTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; + return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } } /** + * + * *
      * Time used for executing the list request.
      * 
@@ -4350,14 +5152,17 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { * .google.protobuf.Timestamp read_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getReadTimeFieldBuilder() { if (readTimeBuilder_ == null) { - readTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReadTime(), - getParentForChildren(), - isClean()); + readTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReadTime(), getParentForChildren(), isClean()); readTime_ = null; } return readTimeBuilder_; @@ -4365,19 +5170,21 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -4386,21 +5193,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -4408,69 +5216,79 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 3; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private int totalSize_ ; + private int totalSize_; /** + * + * *
      * The total number of findings matching the query.
      * 
* * int32 total_size = 4; + * * @return The totalSize. */ @java.lang.Override @@ -4478,37 +5296,43 @@ public int getTotalSize() { return totalSize_; } /** + * + * *
      * The total number of findings matching the query.
      * 
* * int32 total_size = 4; + * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; onChanged(); return this; } /** + * + * *
      * The total number of findings matching the query.
      * 
* * int32 total_size = 4; + * * @return This builder for chaining. */ public Builder clearTotalSize() { - + totalSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4518,30 +5342,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) - private static final com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse(); } - public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4553,9 +5379,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponseOrBuilder.java similarity index 55% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponseOrBuilder.java index 16147aefe..ff89f0575 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListFindingsResponseOrBuilder.java @@ -1,75 +1,123 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface ListFindingsResponseOrBuilder extends +public interface ListFindingsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListFindingsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Findings matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - java.util.List + java.util.List getListFindingsResultsList(); /** + * + * *
    * Findings matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult getListFindingsResults(int index); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult + getListFindingsResults(int index); /** + * + * *
    * Findings matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ int getListFindingsResultsCount(); /** + * + * *
    * Findings matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse + .ListFindingsResultOrBuilder> getListFindingsResultsOrBuilderList(); /** + * + * *
    * Findings matching the list request.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResult list_findings_results = 1; + * */ - com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResultOrBuilder getListFindingsResultsOrBuilder( - int index); + com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResultOrBuilder + getListFindingsResultsOrBuilder(int index); /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return Whether the readTime field is set. */ boolean hasReadTime(); /** + * + * *
    * Time used for executing the list request.
    * 
* * .google.protobuf.Timestamp read_time = 2; + * * @return The readTime. */ com.google.protobuf.Timestamp getReadTime(); /** + * + * *
    * Time used for executing the list request.
    * 
@@ -79,33 +127,41 @@ com.google.cloud.securitycenter.v1p1beta1.ListFindingsResponse.ListFindingsResul com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 3; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * The total number of findings matching the query.
    * 
* * int32 total_size = 4; + * * @return The totalSize. */ int getTotalSize(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java similarity index 65% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java index 6aecfeda4..1d759551b 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Request message for listing notification configs.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest} */ -public final class ListNotificationConfigsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNotificationConfigsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) ListNotificationConfigsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNotificationConfigsRequest.newBuilder() to construct. - private ListNotificationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListNotificationConfigsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNotificationConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +45,15 @@ private ListNotificationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNotificationConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNotificationConfigsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +72,32 @@ private ListNotificationConfigsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +105,42 @@ private ListNotificationConfigsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.class, com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.class, + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the organization to list notification configs.
    * Its format is "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -122,30 +149,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Name of the organization to list notification configs.
    * Its format is "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -156,6 +185,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** + * + * *
    * The value returned by the last `ListNotificationConfigsResponse`; indicates
    * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -163,6 +194,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -171,14 +203,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value returned by the last `ListNotificationConfigsResponse`; indicates
    * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -186,16 +219,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -206,12 +238,15 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -220,6 +255,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -258,8 +293,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -269,19 +303,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest)) { + if (!(obj + instanceof com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest other = (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest other = + (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -305,134 +338,146 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for listing notification configs.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.class, com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.class, + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.Builder + .class); } - // Construct using com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,19 +491,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest build() { - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest result = buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -467,7 +515,8 @@ public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest result = new com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest(this); + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest result = + new com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -479,46 +528,52 @@ public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest)other); + if (other + instanceof com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) { + return mergeFrom( + (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest other) { + if (other + == com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -549,7 +604,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -561,19 +618,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the organization to list notification configs.
      * Its format is "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -582,21 +643,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization to list notification configs.
      * Its format is "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -604,57 +668,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization to list notification configs.
      * Its format is "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to list notification configs.
      * Its format is "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to list notification configs.
      * Its format is "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -662,6 +739,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last `ListNotificationConfigsResponse`; indicates
      * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -669,13 +748,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -684,6 +763,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListNotificationConfigsResponse`; indicates
      * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -691,15 +772,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -707,6 +787,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListNotificationConfigsResponse`; indicates
      * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -714,20 +796,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListNotificationConfigsResponse`; indicates
      * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -735,15 +819,18 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListNotificationConfigsResponse`; indicates
      * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -751,29 +838,32 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -781,39 +871,45 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -823,30 +919,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest(); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNotificationConfigsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNotificationConfigsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -858,9 +957,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequestOrBuilder.java index 0264a421e..a7852641f 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface ListNotificationConfigsRequestOrBuilder extends +public interface ListNotificationConfigsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the organization to list notification configs.
    * Its format is "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Name of the organization to list notification configs.
    * Its format is "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The value returned by the last `ListNotificationConfigsResponse`; indicates
    * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -37,10 +64,13 @@ public interface ListNotificationConfigsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `ListNotificationConfigsResponse`; indicates
    * that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -48,18 +78,21 @@ public interface ListNotificationConfigsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java similarity index 62% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java index d5a54da20..aa78cf644 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Response message for listing notification configs.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse} */ -public final class ListNotificationConfigsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNotificationConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) ListNotificationConfigsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNotificationConfigsResponse.newBuilder() to construct. - private ListNotificationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListNotificationConfigsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNotificationConfigsResponse() { notificationConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +45,15 @@ private ListNotificationConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNotificationConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListNotificationConfigsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +73,34 @@ private ListNotificationConfigsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - notificationConfigs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + notificationConfigs_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig>(); + mutable_bitField0_ |= 0x00000001; + } + notificationConfigs_.add( + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.parser(), + extensionRegistry)); + break; } - notificationConfigs_.add( - input.readMessage(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +108,7 @@ private ListNotificationConfigsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { notificationConfigs_ = java.util.Collections.unmodifiableList(notificationConfigs_); @@ -94,88 +117,119 @@ private ListNotificationConfigsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.class, com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.class, + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.Builder + .class); } public static final int NOTIFICATION_CONFIGS_FIELD_NUMBER = 1; - private java.util.List notificationConfigs_; + private java.util.List + notificationConfigs_; /** + * + * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ @java.lang.Override - public java.util.List getNotificationConfigsList() { + public java.util.List + getNotificationConfigsList() { return notificationConfigs_; } /** + * + * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> getNotificationConfigsOrBuilderList() { return notificationConfigs_; } /** + * + * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ @java.lang.Override public int getNotificationConfigsCount() { return notificationConfigs_.size(); } /** + * + * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfigs(int index) { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfigs( + int index) { return notificationConfigs_.get(index); } /** + * + * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder getNotificationConfigsOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder + getNotificationConfigsOrBuilder(int index) { return notificationConfigs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +238,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +270,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +282,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < notificationConfigs_.size(); i++) { output.writeMessage(1, notificationConfigs_.get(i)); } @@ -245,8 +299,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < notificationConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, notificationConfigs_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, notificationConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +313,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse)) { + if (!(obj + instanceof com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse other = (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) obj; + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse other = + (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) obj; - if (!getNotificationConfigsList() - .equals(other.getNotificationConfigsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getNotificationConfigsList().equals(other.getNotificationConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,135 +347,148 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for listing notification configs.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.class, com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.class, + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.Builder + .class); } - // Construct using com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getNotificationConfigsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,19 +504,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse build() { - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse result = buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -457,8 +527,10 @@ public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse result = new com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse(this); + public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse + buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse result = + new com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse(this); int from_bitField0_ = bitField0_; if (notificationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,46 +550,52 @@ public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse)other); + if (other + instanceof com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) { + return mergeFrom( + (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse other) { + if (other + == com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse + .getDefaultInstance()) return this; if (notificationConfigsBuilder_ == null) { if (!other.notificationConfigs_.isEmpty()) { if (notificationConfigs_.isEmpty()) { @@ -536,9 +614,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListNotificat notificationConfigsBuilder_ = null; notificationConfigs_ = other.notificationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - notificationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNotificationConfigsFieldBuilder() : null; + notificationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNotificationConfigsFieldBuilder() + : null; } else { notificationConfigsBuilder_.addAllMessages(other.notificationConfigs_); } @@ -563,11 +642,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parsedMessage = null; + com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,28 +658,40 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List notificationConfigs_ = - java.util.Collections.emptyList(); + private java.util.List + notificationConfigs_ = java.util.Collections.emptyList(); + private void ensureNotificationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - notificationConfigs_ = new java.util.ArrayList(notificationConfigs_); + notificationConfigs_ = + new java.util.ArrayList( + notificationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> notificationConfigsBuilder_; + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> + notificationConfigsBuilder_; /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ - public java.util.List getNotificationConfigsList() { + public java.util.List + getNotificationConfigsList() { if (notificationConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(notificationConfigs_); } else { @@ -605,11 +699,15 @@ public java.util.List * Notification configs belonging to the requested parent. *
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ public int getNotificationConfigsCount() { if (notificationConfigsBuilder_ == null) { @@ -619,13 +717,18 @@ public int getNotificationConfigsCount() { } } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfigs(int index) { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfigs( + int index) { if (notificationConfigsBuilder_ == null) { return notificationConfigs_.get(index); } else { @@ -633,11 +736,15 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificat } } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ public Builder setNotificationConfigs( int index, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { @@ -654,14 +761,19 @@ public Builder setNotificationConfigs( return this; } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ public Builder setNotificationConfigs( - int index, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder builderForValue) { + int index, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder builderForValue) { if (notificationConfigsBuilder_ == null) { ensureNotificationConfigsIsMutable(); notificationConfigs_.set(index, builderForValue.build()); @@ -672,13 +784,18 @@ public Builder setNotificationConfigs( return this; } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ - public Builder addNotificationConfigs(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { + public Builder addNotificationConfigs( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { if (notificationConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -692,11 +809,15 @@ public Builder addNotificationConfigs(com.google.cloud.securitycenter.v1p1beta1. return this; } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ public Builder addNotificationConfigs( int index, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { @@ -713,11 +834,15 @@ public Builder addNotificationConfigs( return this; } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ public Builder addNotificationConfigs( com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder builderForValue) { @@ -731,14 +856,19 @@ public Builder addNotificationConfigs( return this; } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ public Builder addNotificationConfigs( - int index, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder builderForValue) { + int index, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder builderForValue) { if (notificationConfigsBuilder_ == null) { ensureNotificationConfigsIsMutable(); notificationConfigs_.add(index, builderForValue.build()); @@ -749,18 +879,22 @@ public Builder addNotificationConfigs( return this; } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ public Builder addAllNotificationConfigs( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (notificationConfigsBuilder_ == null) { ensureNotificationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notificationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notificationConfigs_); onChanged(); } else { notificationConfigsBuilder_.addAllMessages(values); @@ -768,11 +902,15 @@ public Builder addAllNotificationConfigs( return this; } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ public Builder clearNotificationConfigs() { if (notificationConfigsBuilder_ == null) { @@ -785,11 +923,15 @@ public Builder clearNotificationConfigs() { return this; } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ public Builder removeNotificationConfigs(int index) { if (notificationConfigsBuilder_ == null) { @@ -802,39 +944,53 @@ public Builder removeNotificationConfigs(int index) { return this; } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder getNotificationConfigsBuilder( - int index) { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder + getNotificationConfigsBuilder(int index) { return getNotificationConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder getNotificationConfigsOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder + getNotificationConfigsOrBuilder(int index) { if (notificationConfigsBuilder_ == null) { - return notificationConfigs_.get(index); } else { + return notificationConfigs_.get(index); + } else { return notificationConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ - public java.util.List - getNotificationConfigsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> + getNotificationConfigsOrBuilderList() { if (notificationConfigsBuilder_ != null) { return notificationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -842,45 +998,67 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder get } } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder addNotificationConfigsBuilder() { - return getNotificationConfigsFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance()); + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder + addNotificationConfigsBuilder() { + return getNotificationConfigsFieldBuilder() + .addBuilder( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance()); } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder addNotificationConfigsBuilder( - int index) { - return getNotificationConfigsFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance()); + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder + addNotificationConfigsBuilder(int index) { + return getNotificationConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance()); } /** + * + * *
      * Notification configs belonging to the requested parent.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ - public java.util.List - getNotificationConfigsBuilderList() { + public java.util.List + getNotificationConfigsBuilderList() { return getNotificationConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> getNotificationConfigsFieldBuilder() { if (notificationConfigsBuilder_ == null) { - notificationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder>( + notificationConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder>( notificationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -892,19 +1070,21 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder addN private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1093,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1116,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,30 +1190,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) - private static final com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse(); } - public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNotificationConfigsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNotificationConfigsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,9 +1228,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponseOrBuilder.java similarity index 53% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponseOrBuilder.java index 161a07c01..f36db4e0f 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListNotificationConfigsResponseOrBuilder.java @@ -1,75 +1,116 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface ListNotificationConfigsResponseOrBuilder extends +public interface ListNotificationConfigsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ - java.util.List + java.util.List getNotificationConfigsList(); /** + * + * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfigs(int index); /** + * + * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ int getNotificationConfigsCount(); /** + * + * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ - java.util.List + java.util.List getNotificationConfigsOrBuilderList(); /** + * + * *
    * Notification configs belonging to the requested parent.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * + * repeated .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_configs = 1; + * */ - com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder getNotificationConfigsOrBuilder( - int index); + com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder + getNotificationConfigsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequest.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequest.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequest.java index 9ee5da266..88b0f009a 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Request message for listing sources.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListSourcesRequest} */ -public final class ListSourcesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSourcesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) ListSourcesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSourcesRequest.newBuilder() to construct. private ListSourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSourcesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListSourcesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSourcesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListSourcesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListSourcesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 56: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 56: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,36 +104,43 @@ private ListSourcesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.class, com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.class, + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,31 +149,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -158,6 +186,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** + * + * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -165,6 +195,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -173,14 +204,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -188,16 +220,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -208,12 +239,15 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 7; private int pageSize_; /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 7; + * * @return The pageSize. */ @java.lang.Override @@ -222,6 +256,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,8 +268,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -260,8 +294,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -271,19 +304,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest other = (com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest other = + (com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -307,117 +338,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for listing sources.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListSourcesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.class, com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.class, + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.newBuilder() @@ -425,16 +466,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,13 +488,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.getDefaultInstance(); } @@ -469,7 +510,8 @@ public com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest result = new com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest(this); + com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest result = + new com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -481,38 +523,39 @@ public com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) other); } else { super.mergeFrom(other); return this; @@ -520,7 +563,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -551,7 +596,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,20 +609,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -585,22 +635,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -608,60 +661,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the parent of sources to list. Its format should be
      * "organizations/[organization_id], folders/[folder_id], or
      * projects/[project_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -669,6 +735,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -676,13 +744,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -691,6 +759,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -698,15 +768,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -714,6 +783,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -721,20 +792,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -742,15 +815,18 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListSourcesResponse`; indicates
      * that this is a continuation of a prior `ListSources` call, and
@@ -758,29 +834,32 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; + * * @return The pageSize. */ @java.lang.Override @@ -788,39 +867,45 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of results to return in a single response. Default is
      * 10, minimum is 1, maximum is 1000.
      * 
* * int32 page_size = 7; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -830,12 +915,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest(); } @@ -844,16 +930,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSourcesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSourcesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSourcesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSourcesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -868,6 +954,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequestOrBuilder.java index 0a25bf18c..5cb9bce6f 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface ListSourcesRequestOrBuilder extends +public interface ListSourcesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListSourcesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Resource name of the parent of sources to list. Its format should be
    * "organizations/[organization_id], folders/[folder_id], or
    * projects/[project_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -39,10 +66,13 @@ public interface ListSourcesRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `ListSourcesResponse`; indicates
    * that this is a continuation of a prior `ListSources` call, and
@@ -50,18 +80,21 @@ public interface ListSourcesRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of results to return in a single response. Default is
    * 10, minimum is 1, maximum is 1000.
    * 
* * int32 page_size = 7; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponse.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponse.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponse.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponse.java index 8e3263d27..3d117a10a 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponse.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Response message for listing sources.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListSourcesResponse} */ -public final class ListSourcesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSourcesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) ListSourcesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSourcesResponse.newBuilder() to construct. private ListSourcesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSourcesResponse() { sources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListSourcesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSourcesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListSourcesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,33 @@ private ListSourcesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sources_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + sources_.add( + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.Source.parser(), + extensionRegistry)); + break; } - sources_.add( - input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Source.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +106,7 @@ private ListSourcesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { sources_ = java.util.Collections.unmodifiableList(sources_); @@ -94,22 +115,27 @@ private ListSourcesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.class, com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.class, + com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.Builder.class); } public static final int SOURCES_FIELD_NUMBER = 1; private java.util.List sources_; /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -121,6 +147,8 @@ public java.util.List getSourc return sources_; } /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -128,11 +156,13 @@ public java.util.List getSourc * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSourcesOrBuilderList() { return sources_; } /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -144,6 +174,8 @@ public int getSourcesCount() { return sources_.size(); } /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -155,6 +187,8 @@ public com.google.cloud.securitycenter.v1p1beta1.Source getSources(int index) { return sources_.get(index); } /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -162,20 +196,22 @@ public com.google.cloud.securitycenter.v1p1beta1.Source getSources(int index) { * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourcesOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourcesOrBuilder(int index) { return sources_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +220,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +252,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < sources_.size(); i++) { output.writeMessage(1, sources_.get(i)); } @@ -245,8 +281,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < sources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, sources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +294,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse other = (com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) obj; + com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse other = + (com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) obj; - if (!getSourcesList() - .equals(other.getSourcesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getSourcesList().equals(other.getSourcesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +327,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for listing sources.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.ListSourcesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.class, com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.class, + com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.newBuilder() @@ -411,17 +455,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSourcesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,13 +481,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.getDefaultInstance(); } @@ -458,7 +503,8 @@ public com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse result = new com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse(this); + com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse result = + new com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse(this); int from_bitField0_ = bitField0_; if (sourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +524,39 @@ public com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse)other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +564,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse.getDefaultInstance()) + return this; if (sourcesBuilder_ == null) { if (!other.sources_.isEmpty()) { if (sources_.isEmpty()) { @@ -536,9 +585,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.ListSourcesRe sourcesBuilder_ = null; sources_ = other.sources_; bitField0_ = (bitField0_ & ~0x00000001); - sourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSourcesFieldBuilder() : null; + sourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSourcesFieldBuilder() + : null; } else { sourcesBuilder_.addAllMessages(other.sources_); } @@ -567,7 +617,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +628,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List sources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - sources_ = new java.util.ArrayList(sources_); + sources_ = + new java.util.ArrayList(sources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Source, com.google.cloud.securitycenter.v1p1beta1.Source.Builder, com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> sourcesBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Source, + com.google.cloud.securitycenter.v1p1beta1.Source.Builder, + com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> + sourcesBuilder_; /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -605,6 +665,8 @@ public java.util.List getSourc } } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -619,6 +681,8 @@ public int getSourcesCount() { } } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -633,14 +697,15 @@ public com.google.cloud.securitycenter.v1p1beta1.Source getSources(int index) { } } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ - public Builder setSources( - int index, com.google.cloud.securitycenter.v1p1beta1.Source value) { + public Builder setSources(int index, com.google.cloud.securitycenter.v1p1beta1.Source value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +719,8 @@ public Builder setSources( return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -672,6 +739,8 @@ public Builder setSources( return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -692,14 +761,15 @@ public Builder addSources(com.google.cloud.securitycenter.v1p1beta1.Source value return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ - public Builder addSources( - int index, com.google.cloud.securitycenter.v1p1beta1.Source value) { + public Builder addSources(int index, com.google.cloud.securitycenter.v1p1beta1.Source value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,6 +783,8 @@ public Builder addSources( return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -731,6 +803,8 @@ public Builder addSources( return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -749,6 +823,8 @@ public Builder addSources( return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -759,8 +835,7 @@ public Builder addAllSources( java.lang.Iterable values) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sources_); onChanged(); } else { sourcesBuilder_.addAllMessages(values); @@ -768,6 +843,8 @@ public Builder addAllSources( return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -785,6 +862,8 @@ public Builder clearSources() { return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -802,17 +881,20 @@ public Builder removeSources(int index) { return this; } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.Source.Builder getSourcesBuilder( - int index) { + public com.google.cloud.securitycenter.v1p1beta1.Source.Builder getSourcesBuilder(int index) { return getSourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -822,19 +904,22 @@ public com.google.cloud.securitycenter.v1p1beta1.Source.Builder getSourcesBuilde public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourcesOrBuilder( int index) { if (sourcesBuilder_ == null) { - return sources_.get(index); } else { + return sources_.get(index); + } else { return sourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ - public java.util.List - getSourcesOrBuilderList() { + public java.util.List + getSourcesOrBuilderList() { if (sourcesBuilder_ != null) { return sourcesBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +927,8 @@ public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourcesOrBui } } /** + * + * *
      * Sources belonging to the requested parent.
      * 
@@ -849,42 +936,48 @@ public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourcesOrBui * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ public com.google.cloud.securitycenter.v1p1beta1.Source.Builder addSourcesBuilder() { - return getSourcesFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance()); + return getSourcesFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance()); } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ - public com.google.cloud.securitycenter.v1p1beta1.Source.Builder addSourcesBuilder( - int index) { - return getSourcesFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance()); + public com.google.cloud.securitycenter.v1p1beta1.Source.Builder addSourcesBuilder(int index) { + return getSourcesFieldBuilder() + .addBuilder(index, com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance()); } /** + * + * *
      * Sources belonging to the requested parent.
      * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ - public java.util.List - getSourcesBuilderList() { + public java.util.List + getSourcesBuilderList() { return getSourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Source, com.google.cloud.securitycenter.v1p1beta1.Source.Builder, com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.Source, + com.google.cloud.securitycenter.v1p1beta1.Source.Builder, + com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> getSourcesFieldBuilder() { if (sourcesBuilder_ == null) { - sourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Source, com.google.cloud.securitycenter.v1p1beta1.Source.Builder, com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder>( - sources_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + sourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Source, + com.google.cloud.securitycenter.v1p1beta1.Source.Builder, + com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder>( + sources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); sources_ = null; } return sourcesBuilder_; @@ -892,19 +985,21 @@ public com.google.cloud.securitycenter.v1p1beta1.Source.Builder addSourcesBuilde private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1008,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1031,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1105,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) - private static final com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse(); } @@ -1016,16 +1120,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSourcesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSourcesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSourcesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1144,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.ListSourcesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponseOrBuilder.java index 08eb9f982..592f0792c 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ListSourcesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface ListSourcesResponseOrBuilder extends +public interface ListSourcesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.ListSourcesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Sources belonging to the requested parent.
    * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ - java.util.List - getSourcesList(); + java.util.List getSourcesList(); /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -25,6 +44,8 @@ public interface ListSourcesResponseOrBuilder extends */ com.google.cloud.securitycenter.v1p1beta1.Source getSources(int index); /** + * + * *
    * Sources belonging to the requested parent.
    * 
@@ -33,43 +54,51 @@ public interface ListSourcesResponseOrBuilder extends */ int getSourcesCount(); /** + * + * *
    * Sources belonging to the requested parent.
    * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ - java.util.List + java.util.List getSourcesOrBuilderList(); /** + * + * *
    * Sources belonging to the requested parent.
    * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Source sources = 1; */ - com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourcesOrBuilder( - int index); + com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourcesOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java similarity index 69% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java index bedc48de8..310700ec1 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/notification_config.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Security Command Center notification configs.
  * A notification config is a Security Command Center resource that contains the
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.NotificationConfig}
  */
-public final class NotificationConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class NotificationConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.NotificationConfig)
     NotificationConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use NotificationConfig.newBuilder() to construct.
   private NotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private NotificationConfig() {
     name_ = "";
     description_ = "";
@@ -32,16 +50,15 @@ private NotificationConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new NotificationConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private NotificationConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,57 +77,72 @@ private NotificationConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          case 24: {
-            int rawValue = input.readEnum();
+              description_ = s;
+              break;
+            }
+          case 24:
+            {
+              int rawValue = input.readEnum();
 
-            eventType_ = rawValue;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              eventType_ = rawValue;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pubsubTopic_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+              pubsubTopic_ = s;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            serviceAccount_ = s;
-            break;
-          }
-          case 50: {
-            com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder subBuilder = null;
-            if (notifyConfigCase_ == 6) {
-              subBuilder = ((com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) notifyConfig_).toBuilder();
+              serviceAccount_ = s;
+              break;
             }
-            notifyConfig_ =
-                input.readMessage(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) notifyConfig_);
-              notifyConfig_ = subBuilder.buildPartial();
+          case 50:
+            {
+              com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder
+                  subBuilder = null;
+              if (notifyConfigCase_ == 6) {
+                subBuilder =
+                    ((com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig)
+                            notifyConfig_)
+                        .toBuilder();
+              }
+              notifyConfig_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig)
+                        notifyConfig_);
+                notifyConfig_ = subBuilder.buildPartial();
+              }
+              notifyConfigCase_ = 6;
+              break;
             }
-            notifyConfigCase_ = 6;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -118,36 +150,41 @@ private NotificationConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass
+        .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass
+        .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.class, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder.class);
+            com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.class,
+            com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The type of events.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType} */ - public enum EventType - implements com.google.protobuf.ProtocolMessageEnum { + public enum EventType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified event type.
      * 
@@ -156,6 +193,8 @@ public enum EventType */ EVENT_TYPE_UNSPECIFIED(0), /** + * + * *
      * Events for findings.
      * 
@@ -167,6 +206,8 @@ public enum EventType ; /** + * + * *
      * Unspecified event type.
      * 
@@ -175,6 +216,8 @@ public enum EventType */ public static final int EVENT_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Events for findings.
      * 
@@ -183,7 +226,6 @@ public enum EventType */ public static final int FINDING_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -208,48 +250,49 @@ public static EventType valueOf(int value) { */ public static EventType forNumber(int value) { switch (value) { - case 0: return EVENT_TYPE_UNSPECIFIED; - case 1: return FINDING; - default: return null; + case 0: + return EVENT_TYPE_UNSPECIFIED; + case 1: + return FINDING; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - EventType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EventType findValueByNumber(int number) { - return EventType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EventType findValueByNumber(int number) { + return EventType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDescriptor() + .getEnumTypes() + .get(0); } private static final EventType[] VALUES = values(); - public static EventType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static EventType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -266,11 +309,14 @@ private EventType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType) } - public interface StreamingConfigOrBuilder extends + public interface StreamingConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Expression that defines the filter to apply across create/update events
      * of assets or findings as specified by the event type. The expression is a
@@ -291,10 +337,13 @@ public interface StreamingConfigOrBuilder extends
      * 
* * string filter = 1; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
      * Expression that defines the filter to apply across create/update events
      * of assets or findings as specified by the event type. The expression is a
@@ -315,12 +364,14 @@ public interface StreamingConfigOrBuilder extends
      * 
* * string filter = 1; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } /** + * + * *
    * The config for streaming-based notifications, which send each event as soon
    * as it is detected.
@@ -328,31 +379,31 @@ public interface StreamingConfigOrBuilder extends
    *
    * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig}
    */
-  public static final class StreamingConfig extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class StreamingConfig extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig)
       StreamingConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use StreamingConfig.newBuilder() to construct.
     private StreamingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private StreamingConfig() {
       filter_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new StreamingConfig();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private StreamingConfig(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -371,19 +422,20 @@ private StreamingConfig(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              filter_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                filter_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -391,29 +443,34 @@ private StreamingConfig(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.class, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder.class);
+              com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.class,
+              com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder
+                  .class);
     }
 
     public static final int FILTER_FIELD_NUMBER = 1;
     private volatile java.lang.Object filter_;
     /**
+     *
+     *
      * 
      * Expression that defines the filter to apply across create/update events
      * of assets or findings as specified by the event type. The expression is a
@@ -434,6 +491,7 @@ private StreamingConfig(
      * 
* * string filter = 1; + * * @return The filter. */ @java.lang.Override @@ -442,14 +500,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
      * Expression that defines the filter to apply across create/update events
      * of assets or findings as specified by the event type. The expression is a
@@ -470,16 +529,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 1; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -488,6 +546,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -499,8 +558,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); } @@ -524,15 +582,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig)) { + if (!(obj + instanceof + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig other = (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) obj; + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig other = + (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) obj; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -551,88 +611,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -642,45 +715,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The config for streaming-based notifications, which send each event as soon
      * as it is detected.
      * 
* - * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig} + * Protobuf type {@code + * google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.class, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.class, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder + .class); } - // Construct using com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -690,19 +770,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig build() { - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig result = buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -710,8 +793,10 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingCon } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig result = new com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig(this); + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig result = + new com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig(this); result.filter_ = filter_; onBuilt(); return result; @@ -721,46 +806,55 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingCon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig)other); + if (other + instanceof + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) { + return mergeFrom( + (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig other) { + if (other + == com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + .getDefaultInstance()) return this; if (!other.getFilter().isEmpty()) { filter_ = other.filter_; onChanged(); @@ -780,11 +874,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parsedMessage = null; + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -796,6 +893,8 @@ public Builder mergeFrom( private java.lang.Object filter_ = ""; /** + * + * *
        * Expression that defines the filter to apply across create/update events
        * of assets or findings as specified by the event type. The expression is a
@@ -816,13 +915,13 @@ public Builder mergeFrom(
        * 
* * string filter = 1; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -831,6 +930,8 @@ public java.lang.String getFilter() { } } /** + * + * *
        * Expression that defines the filter to apply across create/update events
        * of assets or findings as specified by the event type. The expression is a
@@ -851,15 +952,14 @@ public java.lang.String getFilter() {
        * 
* * string filter = 1; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -867,6 +967,8 @@ public java.lang.String getFilter() { } } /** + * + * *
        * Expression that defines the filter to apply across create/update events
        * of assets or findings as specified by the event type. The expression is a
@@ -887,20 +989,22 @@ public java.lang.String getFilter() {
        * 
* * string filter = 1; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
        * Expression that defines the filter to apply across create/update events
        * of assets or findings as specified by the event type. The expression is a
@@ -921,15 +1025,18 @@ public Builder setFilter(
        * 
* * string filter = 1; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
        * Expression that defines the filter to apply across create/update events
        * of assets or findings as specified by the event type. The expression is a
@@ -950,20 +1057,21 @@ public Builder clearFilter() {
        * 
* * string filter = 1; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -976,30 +1084,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) - private static final com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.NotificationConfig + .StreamingConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig(); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1011,20 +1123,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int notifyConfigCase_ = 0; private java.lang.Object notifyConfig_; + public enum NotifyConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STREAMING_CONFIG(6), NOTIFYCONFIG_NOT_SET(0); private final int value; + private NotifyConfigCase(int value) { this.value = value; } @@ -1040,25 +1155,29 @@ public static NotifyConfigCase valueOf(int value) { public static NotifyConfigCase forNumber(int value) { switch (value) { - case 6: return STREAMING_CONFIG; - case 0: return NOTIFYCONFIG_NOT_SET; - default: return null; + case 6: + return STREAMING_CONFIG; + case 0: + return NOTIFYCONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public NotifyConfigCase - getNotifyConfigCase() { - return NotifyConfigCase.forNumber( - notifyConfigCase_); + public NotifyConfigCase getNotifyConfigCase() { + return NotifyConfigCase.forNumber(notifyConfigCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The relative resource name of this notification config. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1067,6 +1186,7 @@ public int getNumber() {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -1075,14 +1195,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The relative resource name of this notification config. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1091,16 +1212,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1111,11 +1231,14 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
    * The description of the notification config (max of 1024 characters).
    * 
* * string description = 2; + * * @return The description. */ @java.lang.Override @@ -1124,29 +1247,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * The description of the notification config (max of 1024 characters).
    * 
* * string description = 2; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1157,39 +1280,55 @@ public java.lang.String getDescription() { public static final int EVENT_TYPE_FIELD_NUMBER = 3; private int eventType_; /** + * + * *
    * The type of events the config is for, e.g. FINDING.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; + * + * * @return The enum numeric value on the wire for eventType. */ - @java.lang.Override public int getEventTypeValue() { + @java.lang.Override + public int getEventTypeValue() { return eventType_; } /** + * + * *
    * The type of events the config is for, e.g. FINDING.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; + * + * * @return The eventType. */ - @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType getEventType() { + @java.lang.Override + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType getEventType() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType result = com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType.valueOf(eventType_); - return result == null ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType result = + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType.valueOf(eventType_); + return result == null + ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType.UNRECOGNIZED + : result; } public static final int PUBSUB_TOPIC_FIELD_NUMBER = 4; private volatile java.lang.Object pubsubTopic_; /** + * + * *
    * The Pub/Sub topic to send notifications to. Its format is
    * "projects/[project_id]/topics/[topic]".
    * 
* * string pubsub_topic = 4 [(.google.api.resource_reference) = { ... } + * * @return The pubsubTopic. */ @java.lang.Override @@ -1198,30 +1337,30 @@ public java.lang.String getPubsubTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopic_ = s; return s; } } /** + * + * *
    * The Pub/Sub topic to send notifications to. Its format is
    * "projects/[project_id]/topics/[topic]".
    * 
* * string pubsub_topic = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for pubsubTopic. */ @java.lang.Override - public com.google.protobuf.ByteString - getPubsubTopicBytes() { + public com.google.protobuf.ByteString getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pubsubTopic_ = b; return b; } else { @@ -1232,12 +1371,15 @@ public java.lang.String getPubsubTopic() { public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 5; private volatile java.lang.Object serviceAccount_; /** + * + * *
    * Output only. The service account that needs "pubsub.topics.publish"
    * permission to publish to the Pub/Sub topic.
    * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccount. */ @java.lang.Override @@ -1246,30 +1388,30 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** + * + * *
    * Output only. The service account that needs "pubsub.topics.publish"
    * permission to publish to the Pub/Sub topic.
    * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -1279,11 +1421,16 @@ public java.lang.String getServiceAccount() { public static final int STREAMING_CONFIG_FIELD_NUMBER = 6; /** + * + * *
    * The config for triggering streaming-based notifications.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -1291,36 +1438,52 @@ public boolean hasStreamingConfig() { return notifyConfigCase_ == 6; } /** + * + * *
    * The config for triggering streaming-based notifications.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * * @return The streamingConfig. */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig getStreamingConfig() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + getStreamingConfig() { if (notifyConfigCase_ == 6) { - return (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) notifyConfig_; + return (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) + notifyConfig_; } - return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.getDefaultInstance(); + return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + .getDefaultInstance(); } /** + * + * *
    * The config for triggering streaming-based notifications.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder + getStreamingConfigOrBuilder() { if (notifyConfigCase_ == 6) { - return (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) notifyConfig_; + return (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) + notifyConfig_; } - return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.getDefaultInstance(); + return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1332,15 +1495,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } - if (eventType_ != com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType.EVENT_TYPE_UNSPECIFIED.getNumber()) { + if (eventType_ + != com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType + .EVENT_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, eventType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pubsubTopic_)) { @@ -1350,7 +1515,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceAccount_); } if (notifyConfigCase_ == 6) { - output.writeMessage(6, (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) notifyConfig_); + output.writeMessage( + 6, + (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) + notifyConfig_); } unknownFields.writeTo(output); } @@ -1367,9 +1535,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } - if (eventType_ != com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType.EVENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, eventType_); + if (eventType_ + != com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType + .EVENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, eventType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pubsubTopic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pubsubTopic_); @@ -1378,8 +1548,11 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceAccount_); } if (notifyConfigCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) notifyConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, + (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) + notifyConfig_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1389,27 +1562,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.NotificationConfig)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig other = (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig) obj; + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig other = + (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (eventType_ != other.eventType_) return false; - if (!getPubsubTopic() - .equals(other.getPubsubTopic())) return false; - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; + if (!getPubsubTopic().equals(other.getPubsubTopic())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (!getNotifyConfigCase().equals(other.getNotifyConfigCase())) return false; switch (notifyConfigCase_) { case 6: - if (!getStreamingConfig() - .equals(other.getStreamingConfig())) return false; + if (!getStreamingConfig().equals(other.getStreamingConfig())) return false; break; case 0: default: @@ -1449,96 +1618,104 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Security Command Center notification configs.
    * A notification config is a Security Command Center resource that contains the
@@ -1548,21 +1725,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.NotificationConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.NotificationConfig)
       com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.class, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder.class);
+              com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.class,
+              com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.newBuilder()
@@ -1570,16 +1749,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1599,13 +1777,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getDefaultInstanceForType() {
+    public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig
+        getDefaultInstanceForType() {
       return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance();
     }
 
@@ -1620,7 +1799,8 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig buildPartial() {
-      com.google.cloud.securitycenter.v1p1beta1.NotificationConfig result = new com.google.cloud.securitycenter.v1p1beta1.NotificationConfig(this);
+      com.google.cloud.securitycenter.v1p1beta1.NotificationConfig result =
+          new com.google.cloud.securitycenter.v1p1beta1.NotificationConfig(this);
       result.name_ = name_;
       result.description_ = description_;
       result.eventType_ = eventType_;
@@ -1642,38 +1822,39 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig buildPartial
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1p1beta1.NotificationConfig) {
-        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.NotificationConfig)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.NotificationConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1681,7 +1862,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig other) {
-      if (other == com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1702,13 +1885,15 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.NotificationC
         onChanged();
       }
       switch (other.getNotifyConfigCase()) {
-        case STREAMING_CONFIG: {
-          mergeStreamingConfig(other.getStreamingConfig());
-          break;
-        }
-        case NOTIFYCONFIG_NOT_SET: {
-          break;
-        }
+        case STREAMING_CONFIG:
+          {
+            mergeStreamingConfig(other.getStreamingConfig());
+            break;
+          }
+        case NOTIFYCONFIG_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1729,7 +1914,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1738,12 +1924,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int notifyConfigCase_ = 0;
     private java.lang.Object notifyConfig_;
-    public NotifyConfigCase
-        getNotifyConfigCase() {
-      return NotifyConfigCase.forNumber(
-          notifyConfigCase_);
+
+    public NotifyConfigCase getNotifyConfigCase() {
+      return NotifyConfigCase.forNumber(notifyConfigCase_);
     }
 
     public Builder clearNotifyConfig() {
@@ -1753,9 +1939,10 @@ public Builder clearNotifyConfig() {
       return this;
     }
 
-
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The relative resource name of this notification config. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1764,13 +1951,13 @@ public Builder clearNotifyConfig() {
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1779,6 +1966,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this notification config. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1787,15 +1976,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1803,6 +1991,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this notification config. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1811,20 +2001,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The relative resource name of this notification config. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1833,15 +2025,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The relative resource name of this notification config. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1850,16 +2045,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1867,18 +2062,20 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * The description of the notification config (max of 1024 characters).
      * 
* * string description = 2; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1887,20 +2084,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the notification config (max of 1024 characters).
      * 
* * string description = 2; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1908,54 +2106,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the notification config (max of 1024 characters).
      * 
* * string description = 2; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * The description of the notification config (max of 1024 characters).
      * 
* * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * The description of the notification config (max of 1024 characters).
      * 
* * string description = 2; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1963,73 +2168,99 @@ public Builder setDescriptionBytes( private int eventType_ = 0; /** + * + * *
      * The type of events the config is for, e.g. FINDING.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; + * + * * @return The enum numeric value on the wire for eventType. */ - @java.lang.Override public int getEventTypeValue() { + @java.lang.Override + public int getEventTypeValue() { return eventType_; } /** + * + * *
      * The type of events the config is for, e.g. FINDING.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; + * + * * @param value The enum numeric value on the wire for eventType to set. * @return This builder for chaining. */ public Builder setEventTypeValue(int value) { - + eventType_ = value; onChanged(); return this; } /** + * + * *
      * The type of events the config is for, e.g. FINDING.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; + * + * * @return The eventType. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType getEventType() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType result = com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType.valueOf(eventType_); - return result == null ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType result = + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType.valueOf( + eventType_); + return result == null + ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType.UNRECOGNIZED + : result; } /** + * + * *
      * The type of events the config is for, e.g. FINDING.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; + * + * * @param value The eventType to set. * @return This builder for chaining. */ - public Builder setEventType(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType value) { + public Builder setEventType( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType value) { if (value == null) { throw new NullPointerException(); } - + eventType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The type of events the config is for, e.g. FINDING.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; + * + * * @return This builder for chaining. */ public Builder clearEventType() { - + eventType_ = 0; onChanged(); return this; @@ -2037,19 +2268,21 @@ public Builder clearEventType() { private java.lang.Object pubsubTopic_ = ""; /** + * + * *
      * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* * string pubsub_topic = 4 [(.google.api.resource_reference) = { ... } + * * @return The pubsubTopic. */ public java.lang.String getPubsubTopic() { java.lang.Object ref = pubsubTopic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pubsubTopic_ = s; return s; @@ -2058,21 +2291,22 @@ public java.lang.String getPubsubTopic() { } } /** + * + * *
      * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* * string pubsub_topic = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for pubsubTopic. */ - public com.google.protobuf.ByteString - getPubsubTopicBytes() { + public com.google.protobuf.ByteString getPubsubTopicBytes() { java.lang.Object ref = pubsubTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pubsubTopic_ = b; return b; } else { @@ -2080,57 +2314,64 @@ public java.lang.String getPubsubTopic() { } } /** + * + * *
      * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* * string pubsub_topic = 4 [(.google.api.resource_reference) = { ... } + * * @param value The pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopic( - java.lang.String value) { + public Builder setPubsubTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pubsubTopic_ = value; onChanged(); return this; } /** + * + * *
      * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* * string pubsub_topic = 4 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearPubsubTopic() { - + pubsubTopic_ = getDefaultInstance().getPubsubTopic(); onChanged(); return this; } /** + * + * *
      * The Pub/Sub topic to send notifications to. Its format is
      * "projects/[project_id]/topics/[topic]".
      * 
* * string pubsub_topic = 4 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for pubsubTopic to set. * @return This builder for chaining. */ - public Builder setPubsubTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setPubsubTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pubsubTopic_ = value; onChanged(); return this; @@ -2138,19 +2379,21 @@ public Builder setPubsubTopicBytes( private java.lang.Object serviceAccount_ = ""; /** + * + * *
      * Output only. The service account that needs "pubsub.topics.publish"
      * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -2159,21 +2402,22 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * Output only. The service account that needs "pubsub.topics.publish"
      * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -2181,70 +2425,85 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * Output only. The service account that needs "pubsub.topics.publish"
      * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount( - java.lang.String value) { + public Builder setServiceAccount(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The service account that needs "pubsub.topics.publish"
      * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearServiceAccount() { - + serviceAccount_ = getDefaultInstance().getServiceAccount(); onChanged(); return this; } /** + * + * *
      * Output only. The service account that needs "pubsub.topics.publish"
      * permission to publish to the Pub/Sub topic.
      * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder> streamingConfigBuilder_; + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder> + streamingConfigBuilder_; /** + * + * *
      * The config for triggering streaming-based notifications.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -2252,35 +2511,49 @@ public boolean hasStreamingConfig() { return notifyConfigCase_ == 6; } /** + * + * *
      * The config for triggering streaming-based notifications.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * * @return The streamingConfig. */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig getStreamingConfig() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + getStreamingConfig() { if (streamingConfigBuilder_ == null) { if (notifyConfigCase_ == 6) { - return (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) notifyConfig_; + return (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) + notifyConfig_; } - return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.getDefaultInstance(); + return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + .getDefaultInstance(); } else { if (notifyConfigCase_ == 6) { return streamingConfigBuilder_.getMessage(); } - return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.getDefaultInstance(); + return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + .getDefaultInstance(); } } /** + * + * *
      * The config for triggering streaming-based notifications.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * */ - public Builder setStreamingConfig(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig value) { + public Builder setStreamingConfig( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig value) { if (streamingConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2294,14 +2567,19 @@ public Builder setStreamingConfig(com.google.cloud.securitycenter.v1p1beta1.Noti return this; } /** + * + * *
      * The config for triggering streaming-based notifications.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * */ public Builder setStreamingConfig( - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder builderForValue) { + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder + builderForValue) { if (streamingConfigBuilder_ == null) { notifyConfig_ = builderForValue.build(); onChanged(); @@ -2312,18 +2590,30 @@ public Builder setStreamingConfig( return this; } /** + * + * *
      * The config for triggering streaming-based notifications.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * */ - public Builder mergeStreamingConfig(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig value) { + public Builder mergeStreamingConfig( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig value) { if (streamingConfigBuilder_ == null) { - if (notifyConfigCase_ == 6 && - notifyConfig_ != com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.getDefaultInstance()) { - notifyConfig_ = com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.newBuilder((com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) notifyConfig_) - .mergeFrom(value).buildPartial(); + if (notifyConfigCase_ == 6 + && notifyConfig_ + != com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + .getDefaultInstance()) { + notifyConfig_ = + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + .newBuilder( + (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) + notifyConfig_) + .mergeFrom(value) + .buildPartial(); } else { notifyConfig_ = value; } @@ -2339,11 +2629,15 @@ public Builder mergeStreamingConfig(com.google.cloud.securitycenter.v1p1beta1.No return this; } /** + * + * *
      * The config for triggering streaming-based notifications.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * */ public Builder clearStreamingConfig() { if (streamingConfigBuilder_ == null) { @@ -2362,61 +2656,88 @@ public Builder clearStreamingConfig() { return this; } /** + * + * *
      * The config for triggering streaming-based notifications.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder getStreamingConfigBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder + getStreamingConfigBuilder() { return getStreamingConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The config for triggering streaming-based notifications.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder + getStreamingConfigOrBuilder() { if ((notifyConfigCase_ == 6) && (streamingConfigBuilder_ != null)) { return streamingConfigBuilder_.getMessageOrBuilder(); } else { if (notifyConfigCase_ == 6) { - return (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) notifyConfig_; + return (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) + notifyConfig_; } - return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.getDefaultInstance(); + return com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + .getDefaultInstance(); } } /** + * + * *
      * The config for triggering streaming-based notifications.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder> getStreamingConfigFieldBuilder() { if (streamingConfigBuilder_ == null) { if (!(notifyConfigCase_ == 6)) { - notifyConfig_ = com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.getDefaultInstance(); + notifyConfig_ = + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + .getDefaultInstance(); } - streamingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder>( - (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) notifyConfig_, + streamingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig + .Builder, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig + .StreamingConfigOrBuilder>( + (com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig) + notifyConfig_, getParentForChildren(), isClean()); notifyConfig_ = null; } notifyConfigCase_ = 6; - onChanged();; + onChanged(); + ; return streamingConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2426,12 +2747,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.NotificationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.NotificationConfig) - private static final com.google.cloud.securitycenter.v1p1beta1.NotificationConfig DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.NotificationConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.NotificationConfig(); } @@ -2440,16 +2762,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NotificationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NotificationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2464,6 +2786,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigName.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigName.java similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigName.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigName.java diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java index 2a24fe53a..7b2034f36 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/notification_config.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface NotificationConfigOrBuilder extends +public interface NotificationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.NotificationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The relative resource name of this notification config. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -16,10 +34,13 @@ public interface NotificationConfigOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The relative resource name of this notification config. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -28,120 +49,159 @@ public interface NotificationConfigOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The description of the notification config (max of 1024 characters).
    * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * The description of the notification config (max of 1024 characters).
    * 
* * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * The type of events the config is for, e.g. FINDING.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; + * + * * @return The enum numeric value on the wire for eventType. */ int getEventTypeValue(); /** + * + * *
    * The type of events the config is for, e.g. FINDING.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3; + * + * * @return The eventType. */ com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType getEventType(); /** + * + * *
    * The Pub/Sub topic to send notifications to. Its format is
    * "projects/[project_id]/topics/[topic]".
    * 
* * string pubsub_topic = 4 [(.google.api.resource_reference) = { ... } + * * @return The pubsubTopic. */ java.lang.String getPubsubTopic(); /** + * + * *
    * The Pub/Sub topic to send notifications to. Its format is
    * "projects/[project_id]/topics/[topic]".
    * 
* * string pubsub_topic = 4 [(.google.api.resource_reference) = { ... } + * * @return The bytes for pubsubTopic. */ - com.google.protobuf.ByteString - getPubsubTopicBytes(); + com.google.protobuf.ByteString getPubsubTopicBytes(); /** + * + * *
    * Output only. The service account that needs "pubsub.topics.publish"
    * permission to publish to the Pub/Sub topic.
    * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** + * + * *
    * Output only. The service account that needs "pubsub.topics.publish"
    * permission to publish to the Pub/Sub topic.
    * 
* * string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString - getServiceAccountBytes(); + com.google.protobuf.ByteString getServiceAccountBytes(); /** + * + * *
    * The config for triggering streaming-based notifications.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * * @return Whether the streamingConfig field is set. */ boolean hasStreamingConfig(); /** + * + * *
    * The config for triggering streaming-based notifications.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * * @return The streamingConfig. */ com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig getStreamingConfig(); /** + * + * *
    * The config for triggering streaming-based notifications.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; + * */ - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder(); + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfigOrBuilder + getStreamingConfigOrBuilder(); - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.NotifyConfigCase getNotifyConfigCase(); + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.NotifyConfigCase + getNotifyConfigCase(); } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOuterClass.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOuterClass.java new file mode 100644 index 000000000..287f1057c --- /dev/null +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationConfigOuterClass.java @@ -0,0 +1,122 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/notification_config.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class NotificationConfigOuterClass { + private NotificationConfigOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n?google/cloud/securitycenter/v1p1beta1/" + + "notification_config.proto\022%google.cloud." + + "securitycenter.v1p1beta1\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\032\034google/api/annotations.proto\"\266\004\n\022N" + + "otificationConfig\022\014\n\004name\030\001 \001(\t\022\023\n\013descr" + + "iption\030\002 \001(\t\022W\n\nevent_type\030\003 \001(\0162C.googl" + + "e.cloud.securitycenter.v1p1beta1.Notific" + + "ationConfig.EventType\0226\n\014pubsub_topic\030\004 " + + "\001(\tB \372A\035\n\033pubsub.googleapis.com/Topic\022\034\n" + + "\017service_account\030\005 \001(\tB\003\340A\003\022e\n\020streaming" + + "_config\030\006 \001(\0132I.google.cloud.securitycen" + + "ter.v1p1beta1.NotificationConfig.Streami" + + "ngConfigH\000\032!\n\017StreamingConfig\022\016\n\006filter\030" + + "\001 \001(\t\"4\n\tEventType\022\032\n\026EVENT_TYPE_UNSPECI" + + "FIED\020\000\022\013\n\007FINDING\020\001:}\352Az\n0securitycenter" + + ".googleapis.com/NotificationConfig\022Forga" + + "nizations/{organization}/notificationCon" + + "figs/{notification_config}B\017\n\rnotify_con" + + "figB\300\002\n)com.google.cloud.securitycenter." + + "v1p1beta1P\001ZSgoogle.golang.org/genproto/" + + "googleapis/cloud/securitycenter/v1p1beta" + + "1;securitycenter\252\002%Google.Cloud.Security" + + "Center.V1P1Beta1\312\002%Google\\Cloud\\Security" + + "Center\\V1p1beta1\352\002(Google::Cloud::Securi" + + "tyCenter::V1p1beta1\352A@\n\033pubsub.googleapi" + + "s.com/Topic\022!projects/{project}/topics/{" + + "topic}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor, + new java.lang.String[] { + "Name", + "Description", + "EventType", + "PubsubTopic", + "ServiceAccount", + "StreamingConfig", + "NotifyConfig", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationConfig_StreamingConfig_descriptor, + new java.lang.String[] { + "Filter", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java similarity index 71% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java index 8eb59834a..f958ed485 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessage.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/notification_message.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Security Command Center's Notification
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.NotificationMessage} */ -public final class NotificationMessage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NotificationMessage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.NotificationMessage) NotificationMessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NotificationMessage.newBuilder() to construct. private NotificationMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NotificationMessage() { notificationConfigName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NotificationMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private NotificationMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,46 +70,55 @@ private NotificationMessage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - notificationConfigName_ = s; - break; - } - case 18: { - com.google.cloud.securitycenter.v1p1beta1.Finding.Builder subBuilder = null; - if (eventCase_ == 2) { - subBuilder = ((com.google.cloud.securitycenter.v1p1beta1.Finding) event_).toBuilder(); - } - event_ = - input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Finding.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Finding) event_); - event_ = subBuilder.buildPartial(); + notificationConfigName_ = s; + break; } - eventCase_ = 2; - break; - } - case 26: { - com.google.cloud.securitycenter.v1p1beta1.Resource.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Resource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.securitycenter.v1p1beta1.Finding.Builder subBuilder = null; + if (eventCase_ == 2) { + subBuilder = + ((com.google.cloud.securitycenter.v1p1beta1.Finding) event_).toBuilder(); + } + event_ = + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.Finding.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Finding) event_); + event_ = subBuilder.buildPartial(); + } + eventCase_ = 2; + break; } + case 26: + { + com.google.cloud.securitycenter.v1p1beta1.Resource.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.Resource.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,34 +126,39 @@ private NotificationMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.class, com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.class, + com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.Builder.class); } private int eventCase_ = 0; private java.lang.Object event_; + public enum EventCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FINDING(2), EVENT_NOT_SET(0); private final int value; + private EventCase(int value) { this.value = value; } @@ -143,30 +174,35 @@ public static EventCase valueOf(int value) { public static EventCase forNumber(int value) { switch (value) { - case 2: return FINDING; - case 0: return EVENT_NOT_SET; - default: return null; + case 2: + return FINDING; + case 0: + return EVENT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public EventCase - getEventCase() { - return EventCase.forNumber( - eventCase_); + public EventCase getEventCase() { + return EventCase.forNumber(eventCase_); } public static final int NOTIFICATION_CONFIG_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object notificationConfigName_; /** + * + * *
    * Name of the notification config that generated current notification.
    * 
* * string notification_config_name = 1; + * * @return The notificationConfigName. */ @java.lang.Override @@ -175,29 +211,29 @@ public java.lang.String getNotificationConfigName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notificationConfigName_ = s; return s; } } /** + * + * *
    * Name of the notification config that generated current notification.
    * 
* * string notification_config_name = 1; + * * @return The bytes for notificationConfigName. */ @java.lang.Override - public com.google.protobuf.ByteString - getNotificationConfigNameBytes() { + public com.google.protobuf.ByteString getNotificationConfigNameBytes() { java.lang.Object ref = notificationConfigName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); notificationConfigName_ = b; return b; } else { @@ -207,12 +243,15 @@ public java.lang.String getNotificationConfigName() { public static final int FINDING_FIELD_NUMBER = 2; /** + * + * *
    * If it's a Finding based notification config, this field will be
    * populated.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 2; + * * @return Whether the finding field is set. */ @java.lang.Override @@ -220,22 +259,27 @@ public boolean hasFinding() { return eventCase_ == 2; } /** + * + * *
    * If it's a Finding based notification config, this field will be
    * populated.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 2; + * * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { if (eventCase_ == 2) { - return (com.google.cloud.securitycenter.v1p1beta1.Finding) event_; + return (com.google.cloud.securitycenter.v1p1beta1.Finding) event_; } return com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance(); } /** + * + * *
    * If it's a Finding based notification config, this field will be
    * populated.
@@ -246,7 +290,7 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() {
   @java.lang.Override
   public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder() {
     if (eventCase_ == 2) {
-       return (com.google.cloud.securitycenter.v1p1beta1.Finding) event_;
+      return (com.google.cloud.securitycenter.v1p1beta1.Finding) event_;
     }
     return com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance();
   }
@@ -254,11 +298,14 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu
   public static final int RESOURCE_FIELD_NUMBER = 3;
   private com.google.cloud.securitycenter.v1p1beta1.Resource resource_;
   /**
+   *
+   *
    * 
    * The Cloud resource tied to the notification.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + * * @return Whether the resource field is set. */ @java.lang.Override @@ -266,18 +313,25 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * The Cloud resource tied to the notification.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + * * @return The resource. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Resource getResource() { - return resource_ == null ? com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance() + : resource_; } /** + * + * *
    * The Cloud resource tied to the notification.
    * 
@@ -290,6 +344,7 @@ public com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder getResourceOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -301,8 +356,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notificationConfigName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, notificationConfigName_); } @@ -325,12 +379,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, notificationConfigName_); } if (eventCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.securitycenter.v1p1beta1.Finding) event_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.securitycenter.v1p1beta1.Finding) event_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -340,25 +394,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.NotificationMessage)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.NotificationMessage other = (com.google.cloud.securitycenter.v1p1beta1.NotificationMessage) obj; + com.google.cloud.securitycenter.v1p1beta1.NotificationMessage other = + (com.google.cloud.securitycenter.v1p1beta1.NotificationMessage) obj; - if (!getNotificationConfigName() - .equals(other.getNotificationConfigName())) return false; + if (!getNotificationConfigName().equals(other.getNotificationConfigName())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } if (!getEventCase().equals(other.getEventCase())) return false; switch (eventCase_) { case 2: - if (!getFinding() - .equals(other.getFinding())) return false; + if (!getFinding().equals(other.getFinding())) return false; break; case 0: default: @@ -394,117 +446,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.NotificationMessage prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.NotificationMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Security Command Center's Notification
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.NotificationMessage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.NotificationMessage) com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.class, com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.class, + com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.newBuilder() @@ -512,16 +574,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -539,13 +600,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationMessage getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationMessage + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.getDefaultInstance(); } @@ -560,7 +622,8 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationMessage build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationMessage buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.NotificationMessage result = new com.google.cloud.securitycenter.v1p1beta1.NotificationMessage(this); + com.google.cloud.securitycenter.v1p1beta1.NotificationMessage result = + new com.google.cloud.securitycenter.v1p1beta1.NotificationMessage(this); result.notificationConfigName_ = notificationConfigName_; if (eventCase_ == 2) { if (findingBuilder_ == null) { @@ -583,38 +646,39 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationMessage buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.NotificationMessage) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.NotificationMessage)other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.NotificationMessage) other); } else { super.mergeFrom(other); return this; @@ -622,7 +686,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.NotificationMessage other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.getDefaultInstance()) + return this; if (!other.getNotificationConfigName().isEmpty()) { notificationConfigName_ = other.notificationConfigName_; onChanged(); @@ -631,13 +697,15 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.NotificationM mergeResource(other.getResource()); } switch (other.getEventCase()) { - case FINDING: { - mergeFinding(other.getFinding()); - break; - } - case EVENT_NOT_SET: { - break; - } + case FINDING: + { + mergeFinding(other.getFinding()); + break; + } + case EVENT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -658,7 +726,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.NotificationMessage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.NotificationMessage) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -667,12 +737,12 @@ public Builder mergeFrom( } return this; } + private int eventCase_ = 0; private java.lang.Object event_; - public EventCase - getEventCase() { - return EventCase.forNumber( - eventCase_); + + public EventCase getEventCase() { + return EventCase.forNumber(eventCase_); } public Builder clearEvent() { @@ -682,21 +752,22 @@ public Builder clearEvent() { return this; } - private java.lang.Object notificationConfigName_ = ""; /** + * + * *
      * Name of the notification config that generated current notification.
      * 
* * string notification_config_name = 1; + * * @return The notificationConfigName. */ public java.lang.String getNotificationConfigName() { java.lang.Object ref = notificationConfigName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notificationConfigName_ = s; return s; @@ -705,20 +776,21 @@ public java.lang.String getNotificationConfigName() { } } /** + * + * *
      * Name of the notification config that generated current notification.
      * 
* * string notification_config_name = 1; + * * @return The bytes for notificationConfigName. */ - public com.google.protobuf.ByteString - getNotificationConfigNameBytes() { + public com.google.protobuf.ByteString getNotificationConfigNameBytes() { java.lang.Object ref = notificationConfigName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); notificationConfigName_ = b; return b; } else { @@ -726,68 +798,81 @@ public java.lang.String getNotificationConfigName() { } } /** + * + * *
      * Name of the notification config that generated current notification.
      * 
* * string notification_config_name = 1; + * * @param value The notificationConfigName to set. * @return This builder for chaining. */ - public Builder setNotificationConfigName( - java.lang.String value) { + public Builder setNotificationConfigName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + notificationConfigName_ = value; onChanged(); return this; } /** + * + * *
      * Name of the notification config that generated current notification.
      * 
* * string notification_config_name = 1; + * * @return This builder for chaining. */ public Builder clearNotificationConfigName() { - + notificationConfigName_ = getDefaultInstance().getNotificationConfigName(); onChanged(); return this; } /** + * + * *
      * Name of the notification config that generated current notification.
      * 
* * string notification_config_name = 1; + * * @param value The bytes for notificationConfigName to set. * @return This builder for chaining. */ - public Builder setNotificationConfigNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNotificationConfigNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + notificationConfigName_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> findingBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Finding, + com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, + com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> + findingBuilder_; /** + * + * *
      * If it's a Finding based notification config, this field will be
      * populated.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 2; + * * @return Whether the finding field is set. */ @java.lang.Override @@ -795,12 +880,15 @@ public boolean hasFinding() { return eventCase_ == 2; } /** + * + * *
      * If it's a Finding based notification config, this field will be
      * populated.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 2; + * * @return The finding. */ @java.lang.Override @@ -818,6 +906,8 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { } } /** + * + * *
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -839,6 +929,8 @@ public Builder setFinding(com.google.cloud.securitycenter.v1p1beta1.Finding valu
       return this;
     }
     /**
+     *
+     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -858,6 +950,8 @@ public Builder setFinding(
       return this;
     }
     /**
+     *
+     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -867,10 +961,13 @@ public Builder setFinding(
      */
     public Builder mergeFinding(com.google.cloud.securitycenter.v1p1beta1.Finding value) {
       if (findingBuilder_ == null) {
-        if (eventCase_ == 2 &&
-            event_ != com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance()) {
-          event_ = com.google.cloud.securitycenter.v1p1beta1.Finding.newBuilder((com.google.cloud.securitycenter.v1p1beta1.Finding) event_)
-              .mergeFrom(value).buildPartial();
+        if (eventCase_ == 2
+            && event_ != com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance()) {
+          event_ =
+              com.google.cloud.securitycenter.v1p1beta1.Finding.newBuilder(
+                      (com.google.cloud.securitycenter.v1p1beta1.Finding) event_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           event_ = value;
         }
@@ -886,6 +983,8 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1p1beta1.Finding va
       return this;
     }
     /**
+     *
+     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -910,6 +1009,8 @@ public Builder clearFinding() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -921,6 +1022,8 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding.Builder getFindingBuild
       return getFindingFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -940,6 +1043,8 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu
       }
     }
     /**
+     *
+     *
      * 
      * If it's a Finding based notification config, this field will be
      * populated.
@@ -948,54 +1053,73 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu
      * .google.cloud.securitycenter.v1p1beta1.Finding finding = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> 
+            com.google.cloud.securitycenter.v1p1beta1.Finding,
+            com.google.cloud.securitycenter.v1p1beta1.Finding.Builder,
+            com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder>
         getFindingFieldBuilder() {
       if (findingBuilder_ == null) {
         if (!(eventCase_ == 2)) {
           event_ = com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance();
         }
-        findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder>(
+        findingBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.securitycenter.v1p1beta1.Finding,
+                com.google.cloud.securitycenter.v1p1beta1.Finding.Builder,
+                com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder>(
                 (com.google.cloud.securitycenter.v1p1beta1.Finding) event_,
                 getParentForChildren(),
                 isClean());
         event_ = null;
       }
       eventCase_ = 2;
-      onChanged();;
+      onChanged();
+      ;
       return findingBuilder_;
     }
 
     private com.google.cloud.securitycenter.v1p1beta1.Resource resource_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.securitycenter.v1p1beta1.Resource, com.google.cloud.securitycenter.v1p1beta1.Resource.Builder, com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder> resourceBuilder_;
+            com.google.cloud.securitycenter.v1p1beta1.Resource,
+            com.google.cloud.securitycenter.v1p1beta1.Resource.Builder,
+            com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder>
+        resourceBuilder_;
     /**
+     *
+     *
      * 
      * The Cloud resource tied to the notification.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
      * The Cloud resource tied to the notification.
      * 
* * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + * * @return The resource. */ public com.google.cloud.securitycenter.v1p1beta1.Resource getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
      * The Cloud resource tied to the notification.
      * 
@@ -1016,6 +1140,8 @@ public Builder setResource(com.google.cloud.securitycenter.v1p1beta1.Resource va return this; } /** + * + * *
      * The Cloud resource tied to the notification.
      * 
@@ -1034,6 +1160,8 @@ public Builder setResource( return this; } /** + * + * *
      * The Cloud resource tied to the notification.
      * 
@@ -1044,7 +1172,9 @@ public Builder mergeResource(com.google.cloud.securitycenter.v1p1beta1.Resource if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.securitycenter.v1p1beta1.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.Resource.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -1056,6 +1186,8 @@ public Builder mergeResource(com.google.cloud.securitycenter.v1p1beta1.Resource return this; } /** + * + * *
      * The Cloud resource tied to the notification.
      * 
@@ -1074,6 +1206,8 @@ public Builder clearResource() { return this; } /** + * + * *
      * The Cloud resource tied to the notification.
      * 
@@ -1081,11 +1215,13 @@ public Builder clearResource() { * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; */ public com.google.cloud.securitycenter.v1p1beta1.Resource.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
      * The Cloud resource tied to the notification.
      * 
@@ -1096,11 +1232,14 @@ public com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder getResourceOr if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance() + : resource_; } } /** + * + * *
      * The Cloud resource tied to the notification.
      * 
@@ -1108,21 +1247,24 @@ public com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder getResourceOr * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Resource, com.google.cloud.securitycenter.v1p1beta1.Resource.Builder, com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.Resource, + com.google.cloud.securitycenter.v1p1beta1.Resource.Builder, + com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Resource, com.google.cloud.securitycenter.v1p1beta1.Resource.Builder, com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Resource, + com.google.cloud.securitycenter.v1p1beta1.Resource.Builder, + com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder>( + getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1132,12 +1274,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.NotificationMessage) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.NotificationMessage) - private static final com.google.cloud.securitycenter.v1p1beta1.NotificationMessage DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.NotificationMessage + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.NotificationMessage(); } @@ -1146,16 +1289,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.NotificationMessage getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NotificationMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NotificationMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1170,6 +1313,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.NotificationMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java index da337e78c..41bbd477f 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOrBuilder.java @@ -1,53 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/notification_message.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface NotificationMessageOrBuilder extends +public interface NotificationMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.NotificationMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Name of the notification config that generated current notification.
    * 
* * string notification_config_name = 1; + * * @return The notificationConfigName. */ java.lang.String getNotificationConfigName(); /** + * + * *
    * Name of the notification config that generated current notification.
    * 
* * string notification_config_name = 1; + * * @return The bytes for notificationConfigName. */ - com.google.protobuf.ByteString - getNotificationConfigNameBytes(); + com.google.protobuf.ByteString getNotificationConfigNameBytes(); /** + * + * *
    * If it's a Finding based notification config, this field will be
    * populated.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 2; + * * @return Whether the finding field is set. */ boolean hasFinding(); /** + * + * *
    * If it's a Finding based notification config, this field will be
    * populated.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Finding finding = 2; + * * @return The finding. */ com.google.cloud.securitycenter.v1p1beta1.Finding getFinding(); /** + * + * *
    * If it's a Finding based notification config, this field will be
    * populated.
@@ -58,24 +87,32 @@ public interface NotificationMessageOrBuilder extends
   com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder();
 
   /**
+   *
+   *
    * 
    * The Cloud resource tied to the notification.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
    * The Cloud resource tied to the notification.
    * 
* * .google.cloud.securitycenter.v1p1beta1.Resource resource = 3; + * * @return The resource. */ com.google.cloud.securitycenter.v1p1beta1.Resource getResource(); /** + * + * *
    * The Cloud resource tied to the notification.
    * 
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java new file mode 100644 index 000000000..27fae532c --- /dev/null +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/NotificationMessageOuterClass.java @@ -0,0 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/notification_message.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class NotificationMessageOuterClass { + private NotificationMessageOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n@google/cloud/securitycenter/v1p1beta1/" + + "notification_message.proto\022%google.cloud" + + ".securitycenter.v1p1beta1\0323google/cloud/" + + "securitycenter/v1p1beta1/finding.proto\0324" + + "google/cloud/securitycenter/v1p1beta1/re" + + "source.proto\032\034google/api/annotations.pro" + + "to\"\306\001\n\023NotificationMessage\022 \n\030notificati" + + "on_config_name\030\001 \001(\t\022A\n\007finding\030\002 \001(\0132.." + + "google.cloud.securitycenter.v1p1beta1.Fi" + + "ndingH\000\022A\n\010resource\030\003 \001(\0132/.google.cloud" + + ".securitycenter.v1p1beta1.ResourceB\007\n\005ev" + + "entB\375\001\n)com.google.cloud.securitycenter." + + "v1p1beta1P\001ZSgoogle.golang.org/genproto/" + + "googleapis/cloud/securitycenter/v1p1beta" + + "1;securitycenter\252\002%Google.Cloud.Security" + + "Center.V1P1Beta1\312\002%Google\\Cloud\\Security" + + "Center\\V1p1beta1\352\002(Google::Cloud::Securi" + + "tyCenter::V1p1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_NotificationMessage_descriptor, + new java.lang.String[] { + "NotificationConfigName", "Finding", "Resource", "Event", + }); + com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.ResourceProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationName.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationName.java similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationName.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationName.java diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java similarity index 65% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java index 2d36d44b3..a0d2ffc08 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettings.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/organization_settings.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * User specified settings that are attached to the Security Command
  * Center organization.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.OrganizationSettings}
  */
-public final class OrganizationSettings extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class OrganizationSettings extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.OrganizationSettings)
     OrganizationSettingsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use OrganizationSettings.newBuilder() to construct.
   private OrganizationSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private OrganizationSettings() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new OrganizationSettings();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private OrganizationSettings(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,37 +71,45 @@ private OrganizationSettings(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            enableAssetDiscovery_ = input.readBool();
-            break;
-          }
-          case 26: {
-            com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder subBuilder = null;
-            if (assetDiscoveryConfig_ != null) {
-              subBuilder = assetDiscoveryConfig_.toBuilder();
+              name_ = s;
+              break;
             }
-            assetDiscoveryConfig_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(assetDiscoveryConfig_);
-              assetDiscoveryConfig_ = subBuilder.buildPartial();
+          case 16:
+            {
+              enableAssetDiscovery_ = input.readBool();
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig
+                      .Builder
+                  subBuilder = null;
+              if (assetDiscoveryConfig_ != null) {
+                subBuilder = assetDiscoveryConfig_.toBuilder();
+              }
+              assetDiscoveryConfig_ =
+                  input.readMessage(
+                      com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings
+                          .AssetDiscoveryConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(assetDiscoveryConfig_);
+                assetDiscoveryConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,151 +117,190 @@ private OrganizationSettings(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass
+        .internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass
+        .internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.class, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder.class);
+            com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.class,
+            com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder.class);
   }
 
-  public interface AssetDiscoveryConfigOrBuilder extends
+  public interface AssetDiscoveryConfigOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @return A list containing the projectIds. */ - java.util.List - getProjectIdsList(); + java.util.List getProjectIdsList(); /** + * + * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @return The count of projectIds. */ int getProjectIdsCount(); /** + * + * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @param index The index of the element to return. * @return The projectIds at the given index. */ java.lang.String getProjectIds(int index); /** + * + * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @param index The index of the value to return. * @return The bytes of the projectIds at the given index. */ - com.google.protobuf.ByteString - getProjectIdsBytes(int index); + com.google.protobuf.ByteString getProjectIdsBytes(int index); /** + * + * *
      * The mode to use for filtering asset discovery.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return The enum numeric value on the wire for inclusionMode. */ int getInclusionModeValue(); /** + * + * *
      * The mode to use for filtering asset discovery.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return The inclusionMode. */ - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode(); + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode + getInclusionMode(); /** + * + * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; + * * @return A list containing the folderIds. */ - java.util.List - getFolderIdsList(); + java.util.List getFolderIdsList(); /** + * + * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; + * * @return The count of folderIds. */ int getFolderIdsCount(); /** + * + * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; + * * @param index The index of the element to return. * @return The folderIds at the given index. */ java.lang.String getFolderIds(int index); /** + * + * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; + * * @param index The index of the value to return. * @return The bytes of the folderIds at the given index. */ - com.google.protobuf.ByteString - getFolderIdsBytes(int index); + com.google.protobuf.ByteString getFolderIdsBytes(int index); } /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* - * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig} + * Protobuf type {@code + * google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig} */ - public static final class AssetDiscoveryConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AssetDiscoveryConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) AssetDiscoveryConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AssetDiscoveryConfig.newBuilder() to construct. private AssetDiscoveryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AssetDiscoveryConfig() { projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; inclusionMode_ = 0; @@ -245,16 +309,15 @@ private AssetDiscoveryConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AssetDiscoveryConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AssetDiscoveryConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -274,37 +337,40 @@ private AssetDiscoveryConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - projectIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + projectIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + projectIds_.add(s); + break; } - projectIds_.add(s); - break; - } - case 16: { - int rawValue = input.readEnum(); + case 16: + { + int rawValue = input.readEnum(); - inclusionMode_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - folderIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + inclusionMode_ = rawValue; + break; } - folderIds_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + folderIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + folderIds_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -312,8 +378,7 @@ private AssetDiscoveryConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { projectIds_ = projectIds_.getUnmodifiableView(); @@ -325,20 +390,27 @@ private AssetDiscoveryConfig( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.class, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .class, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .Builder.class); } /** + * + * *
      * The mode of inclusion when running Asset Discovery.
      * Asset discovery can be limited by explicitly identifying projects to be
@@ -350,11 +422,13 @@ private AssetDiscoveryConfig(
      * discovery.
      * 
* - * Protobuf enum {@code google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode} + * Protobuf enum {@code + * google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode} */ - public enum InclusionMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum InclusionMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unspecified. Setting the mode with this value will disable
        * inclusion/exclusion filtering for Asset Discovery.
@@ -364,6 +438,8 @@ public enum InclusionMode
        */
       INCLUSION_MODE_UNSPECIFIED(0),
       /**
+       *
+       *
        * 
        * Asset Discovery will capture only the resources within the projects
        * specified. All other resources will be ignored.
@@ -373,6 +449,8 @@ public enum InclusionMode
        */
       INCLUDE_ONLY(1),
       /**
+       *
+       *
        * 
        * Asset Discovery will ignore all resources under the projects specified.
        * All other resources will be retrieved.
@@ -385,6 +463,8 @@ public enum InclusionMode
       ;
 
       /**
+       *
+       *
        * 
        * Unspecified. Setting the mode with this value will disable
        * inclusion/exclusion filtering for Asset Discovery.
@@ -394,6 +474,8 @@ public enum InclusionMode
        */
       public static final int INCLUSION_MODE_UNSPECIFIED_VALUE = 0;
       /**
+       *
+       *
        * 
        * Asset Discovery will capture only the resources within the projects
        * specified. All other resources will be ignored.
@@ -403,6 +485,8 @@ public enum InclusionMode
        */
       public static final int INCLUDE_ONLY_VALUE = 1;
       /**
+       *
+       *
        * 
        * Asset Discovery will ignore all resources under the projects specified.
        * All other resources will be retrieved.
@@ -412,7 +496,6 @@ public enum InclusionMode
        */
       public static final int EXCLUDE_VALUE = 2;
 
-
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -437,40 +520,46 @@ public static InclusionMode valueOf(int value) {
        */
       public static InclusionMode forNumber(int value) {
         switch (value) {
-          case 0: return INCLUSION_MODE_UNSPECIFIED;
-          case 1: return INCLUDE_ONLY;
-          case 2: return EXCLUDE;
-          default: return null;
+          case 0:
+            return INCLUSION_MODE_UNSPECIFIED;
+          case 1:
+            return INCLUDE_ONLY;
+          case 2:
+            return EXCLUDE;
+          default:
+            return null;
         }
       }
 
-      public static com.google.protobuf.Internal.EnumLiteMap
-          internalGetValueMap() {
+      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
         return internalValueMap;
       }
-      private static final com.google.protobuf.Internal.EnumLiteMap<
-          InclusionMode> internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public InclusionMode findValueByNumber(int number) {
-                return InclusionMode.forNumber(number);
-              }
-            };
 
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor
-          getValueDescriptor() {
+      private static final com.google.protobuf.Internal.EnumLiteMap
+          internalValueMap =
+              new com.google.protobuf.Internal.EnumLiteMap() {
+                public InclusionMode findValueByNumber(int number) {
+                  return InclusionMode.forNumber(number);
+                }
+              };
+
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-      public final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptorForType() {
+
+      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
         return getDescriptor();
       }
-      public static final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptor() {
-        return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.getDescriptor().getEnumTypes().get(0);
+
+      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+        return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig
+            .getDescriptor()
+            .getEnumTypes()
+            .get(0);
       }
 
       private static final InclusionMode[] VALUES = values();
@@ -478,8 +567,7 @@ public InclusionMode findValueByNumber(int number) {
       public static InclusionMode valueOf(
           com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException(
-            "EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -499,34 +587,42 @@ private InclusionMode(int value) {
     public static final int PROJECT_IDS_FIELD_NUMBER = 1;
     private com.google.protobuf.LazyStringList projectIds_;
     /**
+     *
+     *
      * 
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @return A list containing the projectIds. */ - public com.google.protobuf.ProtocolStringList - getProjectIdsList() { + public com.google.protobuf.ProtocolStringList getProjectIdsList() { return projectIds_; } /** + * + * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @return The count of projectIds. */ public int getProjectIdsCount() { return projectIds_.size(); } /** + * + * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @param index The index of the element to return. * @return The projectIds at the given index. */ @@ -534,80 +630,111 @@ public java.lang.String getProjectIds(int index) { return projectIds_.get(index); } /** + * + * *
      * The project ids to use for filtering asset discovery.
      * 
* * repeated string project_ids = 1; + * * @param index The index of the value to return. * @return The bytes of the projectIds at the given index. */ - public com.google.protobuf.ByteString - getProjectIdsBytes(int index) { + public com.google.protobuf.ByteString getProjectIdsBytes(int index) { return projectIds_.getByteString(index); } public static final int INCLUSION_MODE_FIELD_NUMBER = 2; private int inclusionMode_; /** + * + * *
      * The mode to use for filtering asset discovery.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return The enum numeric value on the wire for inclusionMode. */ - @java.lang.Override public int getInclusionModeValue() { + @java.lang.Override + public int getInclusionModeValue() { return inclusionMode_; } /** + * + * *
      * The mode to use for filtering asset discovery.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return The inclusionMode. */ - @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode() { + @java.lang.Override + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode + getInclusionMode() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode result = com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.valueOf(inclusionMode_); - return result == null ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode + result = + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.valueOf(inclusionMode_); + return result == null + ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.UNRECOGNIZED + : result; } public static final int FOLDER_IDS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList folderIds_; /** + * + * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; + * * @return A list containing the folderIds. */ - public com.google.protobuf.ProtocolStringList - getFolderIdsList() { + public com.google.protobuf.ProtocolStringList getFolderIdsList() { return folderIds_; } /** + * + * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; + * * @return The count of folderIds. */ public int getFolderIdsCount() { return folderIds_.size(); } /** + * + * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; + * * @param index The index of the element to return. * @return The folderIds at the given index. */ @@ -615,21 +742,24 @@ public java.lang.String getFolderIds(int index) { return folderIds_.get(index); } /** + * + * *
      * The folder ids to use for filtering asset discovery.
      * It consists of only digits, e.g., 756619654966.
      * 
* * repeated string folder_ids = 3; + * * @param index The index of the value to return. * @return The bytes of the folderIds at the given index. */ - public com.google.protobuf.ByteString - getFolderIdsBytes(int index) { + public com.google.protobuf.ByteString getFolderIdsBytes(int index) { return folderIds_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -641,12 +771,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < projectIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectIds_.getRaw(i)); } - if (inclusionMode_ != com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.INCLUSION_MODE_UNSPECIFIED.getNumber()) { + if (inclusionMode_ + != com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.INCLUSION_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, inclusionMode_); } for (int i = 0; i < folderIds_.size(); i++) { @@ -669,9 +801,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getProjectIdsList().size(); } - if (inclusionMode_ != com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.INCLUSION_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, inclusionMode_); + if (inclusionMode_ + != com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.INCLUSION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, inclusionMode_); } { int dataSize = 0; @@ -689,18 +823,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig)) { + if (!(obj + instanceof + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig other = (com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) obj; + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig other = + (com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) obj; - if (!getProjectIdsList() - .equals(other.getProjectIdsList())) return false; + if (!getProjectIdsList().equals(other.getProjectIdsList())) return false; if (inclusionMode_ != other.inclusionMode_) return false; - if (!getFolderIdsList() - .equals(other.getFolderIdsList())) return false; + if (!getFolderIdsList().equals(other.getFolderIdsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -727,88 +862,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .AssetDiscoveryConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .AssetDiscoveryConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .AssetDiscoveryConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .AssetDiscoveryConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .AssetDiscoveryConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .AssetDiscoveryConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .AssetDiscoveryConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .AssetDiscoveryConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .AssetDiscoveryConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .AssetDiscoveryConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .AssetDiscoveryConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .AssetDiscoveryConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -818,44 +979,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig} + * Protobuf type {@code + * google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .AssetDiscoveryConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.class, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .class, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .Builder.class); } - // Construct using com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -869,19 +1039,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig build() { - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig result = buildPartial(); + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + build() { + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -889,8 +1063,11 @@ public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDisco } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig result = new com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig(this); + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig result = + new com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig( + this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { projectIds_ = projectIds_.getUnmodifiableView(); @@ -911,46 +1088,57 @@ public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDisco public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig)other); + if (other + instanceof + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) { + return mergeFrom( + (com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + other) { + if (other + == com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .getDefaultInstance()) return this; if (!other.projectIds_.isEmpty()) { if (projectIds_.isEmpty()) { projectIds_ = other.projectIds_; @@ -989,11 +1177,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig parsedMessage = null; + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1002,44 +1193,55 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList projectIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList projectIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureProjectIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { projectIds_ = new com.google.protobuf.LazyStringArrayList(projectIds_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @return A list containing the projectIds. */ - public com.google.protobuf.ProtocolStringList - getProjectIdsList() { + public com.google.protobuf.ProtocolStringList getProjectIdsList() { return projectIds_.getUnmodifiableView(); } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @return The count of projectIds. */ public int getProjectIdsCount() { return projectIds_.size(); } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @param index The index of the element to return. * @return The projectIds at the given index. */ @@ -1047,80 +1249,90 @@ public java.lang.String getProjectIds(int index) { return projectIds_.get(index); } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @param index The index of the value to return. * @return The bytes of the projectIds at the given index. */ - public com.google.protobuf.ByteString - getProjectIdsBytes(int index) { + public com.google.protobuf.ByteString getProjectIdsBytes(int index) { return projectIds_.getByteString(index); } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @param index The index to set the value at. * @param value The projectIds to set. * @return This builder for chaining. */ - public Builder setProjectIds( - int index, java.lang.String value) { + public Builder setProjectIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProjectIdsIsMutable(); + throw new NullPointerException(); + } + ensureProjectIdsIsMutable(); projectIds_.set(index, value); onChanged(); return this; } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @param value The projectIds to add. * @return This builder for chaining. */ - public Builder addProjectIds( - java.lang.String value) { + public Builder addProjectIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureProjectIdsIsMutable(); + throw new NullPointerException(); + } + ensureProjectIdsIsMutable(); projectIds_.add(value); onChanged(); return this; } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @param values The projectIds to add. * @return This builder for chaining. */ - public Builder addAllProjectIds( - java.lang.Iterable values) { + public Builder addAllProjectIds(java.lang.Iterable values) { ensureProjectIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, projectIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projectIds_); onChanged(); return this; } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @return This builder for chaining. */ public Builder clearProjectIds() { @@ -1130,20 +1342,22 @@ public Builder clearProjectIds() { return this; } /** + * + * *
        * The project ids to use for filtering asset discovery.
        * 
* * repeated string project_ids = 1; + * * @param value The bytes of the projectIds to add. * @return This builder for chaining. */ - public Builder addProjectIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addProjectIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureProjectIdsIsMutable(); projectIds_.add(value); onChanged(); @@ -1152,117 +1366,165 @@ public Builder addProjectIdsBytes( private int inclusionMode_ = 0; /** + * + * *
        * The mode to use for filtering asset discovery.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return The enum numeric value on the wire for inclusionMode. */ - @java.lang.Override public int getInclusionModeValue() { + @java.lang.Override + public int getInclusionModeValue() { return inclusionMode_; } /** + * + * *
        * The mode to use for filtering asset discovery.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @param value The enum numeric value on the wire for inclusionMode to set. * @return This builder for chaining. */ public Builder setInclusionModeValue(int value) { - + inclusionMode_ = value; onChanged(); return this; } /** + * + * *
        * The mode to use for filtering asset discovery.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return The inclusionMode. */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode getInclusionMode() { + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode + getInclusionMode() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode result = com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.valueOf(inclusionMode_); - return result == null ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode + result = + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.valueOf(inclusionMode_); + return result == null + ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode.UNRECOGNIZED + : result; } /** + * + * *
        * The mode to use for filtering asset discovery.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @param value The inclusionMode to set. * @return This builder for chaining. */ - public Builder setInclusionMode(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode value) { + public Builder setInclusionMode( + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .InclusionMode + value) { if (value == null) { throw new NullPointerException(); } - + inclusionMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * The mode to use for filtering asset discovery.
        * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.InclusionMode inclusion_mode = 2; + * + * * @return This builder for chaining. */ public Builder clearInclusionMode() { - + inclusionMode_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList folderIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList folderIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureFolderIdsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { folderIds_ = new com.google.protobuf.LazyStringArrayList(folderIds_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; + * * @return A list containing the folderIds. */ - public com.google.protobuf.ProtocolStringList - getFolderIdsList() { + public com.google.protobuf.ProtocolStringList getFolderIdsList() { return folderIds_.getUnmodifiableView(); } /** + * + * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; + * * @return The count of folderIds. */ public int getFolderIdsCount() { return folderIds_.size(); } /** + * + * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; + * * @param index The index of the element to return. * @return The folderIds at the given index. */ @@ -1270,85 +1532,95 @@ public java.lang.String getFolderIds(int index) { return folderIds_.get(index); } /** + * + * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; + * * @param index The index of the value to return. * @return The bytes of the folderIds at the given index. */ - public com.google.protobuf.ByteString - getFolderIdsBytes(int index) { + public com.google.protobuf.ByteString getFolderIdsBytes(int index) { return folderIds_.getByteString(index); } /** + * + * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; + * * @param index The index to set the value at. * @param value The folderIds to set. * @return This builder for chaining. */ - public Builder setFolderIds( - int index, java.lang.String value) { + public Builder setFolderIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFolderIdsIsMutable(); + throw new NullPointerException(); + } + ensureFolderIdsIsMutable(); folderIds_.set(index, value); onChanged(); return this; } /** + * + * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; + * * @param value The folderIds to add. * @return This builder for chaining. */ - public Builder addFolderIds( - java.lang.String value) { + public Builder addFolderIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFolderIdsIsMutable(); + throw new NullPointerException(); + } + ensureFolderIdsIsMutable(); folderIds_.add(value); onChanged(); return this; } /** + * + * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; + * * @param values The folderIds to add. * @return This builder for chaining. */ - public Builder addAllFolderIds( - java.lang.Iterable values) { + public Builder addAllFolderIds(java.lang.Iterable values) { ensureFolderIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, folderIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folderIds_); onChanged(); return this; } /** + * + * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; + * * @return This builder for chaining. */ public Builder clearFolderIds() { @@ -1358,26 +1630,29 @@ public Builder clearFolderIds() { return this; } /** + * + * *
        * The folder ids to use for filtering asset discovery.
        * It consists of only digits, e.g., 756619654966.
        * 
* * repeated string folder_ids = 3; + * * @param value The bytes of the folderIds to add. * @return This builder for chaining. */ - public Builder addFolderIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addFolderIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFolderIdsIsMutable(); folderIds_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1390,30 +1665,35 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig) - private static final com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .AssetDiscoveryConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig(); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .AssetDiscoveryConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AssetDiscoveryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AssetDiscoveryConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetDiscoveryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AssetDiscoveryConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1425,15 +1705,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1442,6 +1724,7 @@ public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDisco
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -1450,14 +1733,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1466,16 +1750,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1486,6 +1769,8 @@ public java.lang.String getName() { public static final int ENABLE_ASSET_DISCOVERY_FIELD_NUMBER = 2; private boolean enableAssetDiscovery_; /** + * + * *
    * A flag that indicates if Asset Discovery should be enabled. If the flag is
    * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -1494,6 +1779,7 @@ public java.lang.String getName() {
    * 
* * bool enable_asset_discovery = 2; + * * @return The enableAssetDiscovery. */ @java.lang.Override @@ -1502,13 +1788,19 @@ public boolean getEnableAssetDiscovery() { } public static final int ASSET_DISCOVERY_CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig assetDiscoveryConfig_; + private com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + assetDiscoveryConfig_; /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * * @return Whether the assetDiscoveryConfig field is set. */ @java.lang.Override @@ -1516,30 +1808,46 @@ public boolean hasAssetDiscoveryConfig() { return assetDiscoveryConfig_ != null; } /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * * @return The assetDiscoveryConfig. */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig() { - return assetDiscoveryConfig_ == null ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance() : assetDiscoveryConfig_; + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + getAssetDiscoveryConfig() { + return assetDiscoveryConfig_ == null + ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .getDefaultInstance() + : assetDiscoveryConfig_; } /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .AssetDiscoveryConfigOrBuilder + getAssetDiscoveryConfigOrBuilder() { return getAssetDiscoveryConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1551,8 +1859,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1575,12 +1882,11 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (enableAssetDiscovery_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enableAssetDiscovery_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableAssetDiscovery_); } if (assetDiscoveryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAssetDiscoveryConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAssetDiscoveryConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1590,21 +1896,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings other = (com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings) obj; + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings other = + (com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings) obj; - if (!getName() - .equals(other.getName())) return false; - if (getEnableAssetDiscovery() - != other.getEnableAssetDiscovery()) return false; + if (!getName().equals(other.getName())) return false; + if (getEnableAssetDiscovery() != other.getEnableAssetDiscovery()) return false; if (hasAssetDiscoveryConfig() != other.hasAssetDiscoveryConfig()) return false; if (hasAssetDiscoveryConfig()) { - if (!getAssetDiscoveryConfig() - .equals(other.getAssetDiscoveryConfig())) return false; + if (!getAssetDiscoveryConfig().equals(other.getAssetDiscoveryConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1620,8 +1924,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ENABLE_ASSET_DISCOVERY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableAssetDiscovery()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAssetDiscovery()); if (hasAssetDiscoveryConfig()) { hash = (37 * hash) + ASSET_DISCOVERY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAssetDiscoveryConfig().hashCode(); @@ -1632,96 +1935,104 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * User specified settings that are attached to the Security Command
    * Center organization.
@@ -1729,21 +2040,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.OrganizationSettings}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.OrganizationSettings)
       com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.class, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder.class);
+              com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.class,
+              com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.newBuilder()
@@ -1751,16 +2064,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1778,13 +2090,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getDefaultInstanceForType() {
+    public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings
+        getDefaultInstanceForType() {
       return com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance();
     }
 
@@ -1799,7 +2112,8 @@ public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings buildPartial() {
-      com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings result = new com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings(this);
+      com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings result =
+          new com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings(this);
       result.name_ = name_;
       result.enableAssetDiscovery_ = enableAssetDiscovery_;
       if (assetDiscoveryConfigBuilder_ == null) {
@@ -1815,38 +2129,39 @@ public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings buildParti
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings) {
-        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1854,7 +2169,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings other) {
-      if (other == com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1884,7 +2201,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1896,6 +2215,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1904,13 +2225,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1919,6 +2240,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1927,15 +2250,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1943,6 +2265,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1951,20 +2275,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1973,15 +2299,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The relative resource name of the settings. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -1990,23 +2319,25 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private boolean enableAssetDiscovery_ ; + private boolean enableAssetDiscovery_; /** + * + * *
      * A flag that indicates if Asset Discovery should be enabled. If the flag is
      * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -2015,6 +2346,7 @@ public Builder setNameBytes(
      * 
* * bool enable_asset_discovery = 2; + * * @return The enableAssetDiscovery. */ @java.lang.Override @@ -2022,6 +2354,8 @@ public boolean getEnableAssetDiscovery() { return enableAssetDiscovery_; } /** + * + * *
      * A flag that indicates if Asset Discovery should be enabled. If the flag is
      * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -2030,16 +2364,19 @@ public boolean getEnableAssetDiscovery() {
      * 
* * bool enable_asset_discovery = 2; + * * @param value The enableAssetDiscovery to set. * @return This builder for chaining. */ public Builder setEnableAssetDiscovery(boolean value) { - + enableAssetDiscovery_ = value; onChanged(); return this; } /** + * + * *
      * A flag that indicates if Asset Discovery should be enabled. If the flag is
      * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -2048,52 +2385,78 @@ public Builder setEnableAssetDiscovery(boolean value) {
      * 
* * bool enable_asset_discovery = 2; + * * @return This builder for chaining. */ public Builder clearEnableAssetDiscovery() { - + enableAssetDiscovery_ = false; onChanged(); return this; } - private com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig assetDiscoveryConfig_; + private com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + assetDiscoveryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder> assetDiscoveryConfigBuilder_; + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .Builder, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .AssetDiscoveryConfigOrBuilder> + assetDiscoveryConfigBuilder_; /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * * @return Whether the assetDiscoveryConfig field is set. */ public boolean hasAssetDiscoveryConfig() { return assetDiscoveryConfigBuilder_ != null || assetDiscoveryConfig_ != null; } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * * @return The assetDiscoveryConfig. */ - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig() { + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + getAssetDiscoveryConfig() { if (assetDiscoveryConfigBuilder_ == null) { - return assetDiscoveryConfig_ == null ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance() : assetDiscoveryConfig_; + return assetDiscoveryConfig_ == null + ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .getDefaultInstance() + : assetDiscoveryConfig_; } else { return assetDiscoveryConfigBuilder_.getMessage(); } } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ - public Builder setAssetDiscoveryConfig(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig value) { + public Builder setAssetDiscoveryConfig( + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig value) { if (assetDiscoveryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2107,14 +2470,19 @@ public Builder setAssetDiscoveryConfig(com.google.cloud.securitycenter.v1p1beta1 return this; } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ public Builder setAssetDiscoveryConfig( - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder builderForValue) { + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder + builderForValue) { if (assetDiscoveryConfigBuilder_ == null) { assetDiscoveryConfig_ = builderForValue.build(); onChanged(); @@ -2125,17 +2493,25 @@ public Builder setAssetDiscoveryConfig( return this; } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ - public Builder mergeAssetDiscoveryConfig(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig value) { + public Builder mergeAssetDiscoveryConfig( + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig value) { if (assetDiscoveryConfigBuilder_ == null) { if (assetDiscoveryConfig_ != null) { assetDiscoveryConfig_ = - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.newBuilder(assetDiscoveryConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .newBuilder(assetDiscoveryConfig_) + .mergeFrom(value) + .buildPartial(); } else { assetDiscoveryConfig_ = value; } @@ -2147,11 +2523,15 @@ public Builder mergeAssetDiscoveryConfig(com.google.cloud.securitycenter.v1p1bet return this; } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ public Builder clearAssetDiscoveryConfig() { if (assetDiscoveryConfigBuilder_ == null) { @@ -2165,55 +2545,80 @@ public Builder clearAssetDiscoveryConfig() { return this; } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder getAssetDiscoveryConfigBuilder() { - + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .Builder + getAssetDiscoveryConfigBuilder() { + onChanged(); return getAssetDiscoveryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .AssetDiscoveryConfigOrBuilder + getAssetDiscoveryConfigOrBuilder() { if (assetDiscoveryConfigBuilder_ != null) { return assetDiscoveryConfigBuilder_.getMessageOrBuilder(); } else { - return assetDiscoveryConfig_ == null ? - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.getDefaultInstance() : assetDiscoveryConfig_; + return assetDiscoveryConfig_ == null + ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .getDefaultInstance() + : assetDiscoveryConfig_; } } /** + * + * *
      * The configuration used for Asset Discovery runs.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .Builder, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .AssetDiscoveryConfigOrBuilder> getAssetDiscoveryConfigFieldBuilder() { if (assetDiscoveryConfigBuilder_ == null) { - assetDiscoveryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder>( - getAssetDiscoveryConfig(), - getParentForChildren(), - isClean()); + assetDiscoveryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + .Builder, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + .AssetDiscoveryConfigOrBuilder>( + getAssetDiscoveryConfig(), getParentForChildren(), isClean()); assetDiscoveryConfig_ = null; } return assetDiscoveryConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2223,30 +2628,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.OrganizationSettings) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.OrganizationSettings) - private static final com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings(); } - public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrganizationSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OrganizationSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrganizationSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OrganizationSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2258,9 +2665,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsName.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsName.java similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsName.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsName.java diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOrBuilder.java similarity index 59% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOrBuilder.java index 096d23984..048841271 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/organization_settings.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface OrganizationSettingsOrBuilder extends +public interface OrganizationSettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.OrganizationSettings) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -16,10 +34,13 @@ public interface OrganizationSettingsOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The relative resource name of the settings. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -28,12 +49,14 @@ public interface OrganizationSettingsOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A flag that indicates if Asset Discovery should be enabled. If the flag is
    * set to `true`, then discovery of assets will occur. If it is set to `false,
@@ -42,34 +65,51 @@ public interface OrganizationSettingsOrBuilder extends
    * 
* * bool enable_asset_discovery = 2; + * * @return The enableAssetDiscovery. */ boolean getEnableAssetDiscovery(); /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * * @return Whether the assetDiscoveryConfig field is set. */ boolean hasAssetDiscoveryConfig(); /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * * @return The assetDiscoveryConfig. */ - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig(); + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig + getAssetDiscoveryConfig(); /** + * + * *
    * The configuration used for Asset Discovery runs.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3; + * */ - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder(); + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.AssetDiscoveryConfigOrBuilder + getAssetDiscoveryConfigOrBuilder(); } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOuterClass.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOuterClass.java new file mode 100644 index 000000000..3d94bf261 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/OrganizationSettingsOuterClass.java @@ -0,0 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/organization_settings.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class OrganizationSettingsOuterClass { + private OrganizationSettingsOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nAgoogle/cloud/securitycenter/v1p1beta1/" + + "organization_settings.proto\022%google.clou" + + "d.securitycenter.v1p1beta1\032\031google/api/r" + + "esource.proto\032\034google/api/annotations.pr" + + "oto\"\254\004\n\024OrganizationSettings\022\014\n\004name\030\001 \001" + + "(\t\022\036\n\026enable_asset_discovery\030\002 \001(\010\022p\n\026as" + + "set_discovery_config\030\003 \001(\0132P.google.clou" + + "d.securitycenter.v1p1beta1.OrganizationS" + + "ettings.AssetDiscoveryConfig\032\207\002\n\024AssetDi" + + "scoveryConfig\022\023\n\013project_ids\030\001 \003(\t\022v\n\016in" + + "clusion_mode\030\002 \001(\0162^.google.cloud.securi" + + "tycenter.v1p1beta1.OrganizationSettings." + + "AssetDiscoveryConfig.InclusionMode\022\022\n\nfo" + + "lder_ids\030\003 \003(\t\"N\n\rInclusionMode\022\036\n\032INCLU" + + "SION_MODE_UNSPECIFIED\020\000\022\020\n\014INCLUDE_ONLY\020" + + "\001\022\013\n\007EXCLUDE\020\002:j\352Ag\n2securitycenter.goog" + + "leapis.com/OrganizationSettings\0221organiz" + + "ations/{organization}/organizationSettin" + + "gsB\375\001\n)com.google.cloud.securitycenter.v" + + "1p1beta1P\001ZSgoogle.golang.org/genproto/g" + + "oogleapis/cloud/securitycenter/v1p1beta1" + + ";securitycenter\252\002%Google.Cloud.SecurityC" + + "enter.V1P1Beta1\312\002%Google\\Cloud\\SecurityC" + + "enter\\V1p1beta1\352\002(Google::Cloud::Securit" + + "yCenter::V1p1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor, + new java.lang.String[] { + "Name", "EnableAssetDiscovery", "AssetDiscoveryConfig", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_OrganizationSettings_AssetDiscoveryConfig_descriptor, + new java.lang.String[] { + "ProjectIds", "InclusionMode", "FolderIds", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ProjectName.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ProjectName.java similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ProjectName.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ProjectName.java diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Resource.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Resource.java similarity index 71% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Resource.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Resource.java index c744b467a..74016dfe1 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Resource.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Resource.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/resource.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Information related to the Google Cloud resource.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Resource} */ -public final class Resource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Resource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.Resource) ResourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Resource() { name_ = ""; project_ = ""; @@ -30,16 +48,15 @@ private Resource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Resource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Resource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,52 +76,61 @@ private Resource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - project_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + project_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - projectDisplayName_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + projectDisplayName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - parentDisplayName_ = s; - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - folders_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + parentDisplayName_ = s; + break; } - folders_.add( - input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Folder.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 58: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + folders_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + folders_.add( + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.Folder.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,8 +138,7 @@ private Resource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { folders_ = java.util.Collections.unmodifiableList(folders_); @@ -122,28 +147,34 @@ private Resource( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.ResourceProto.internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.ResourceProto + .internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.ResourceProto.internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.ResourceProto + .internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.Resource.class, com.google.cloud.securitycenter.v1p1beta1.Resource.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.Resource.class, + com.google.cloud.securitycenter.v1p1beta1.Resource.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The full resource name of the resource. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -152,30 +183,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The full resource name of the resource. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -186,11 +217,14 @@ public java.lang.String getName() { public static final int PROJECT_FIELD_NUMBER = 2; private volatile java.lang.Object project_; /** + * + * *
    * The full resource name of project that the resource belongs to.
    * 
* * string project = 2; + * * @return The project. */ @java.lang.Override @@ -199,29 +233,29 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** + * + * *
    * The full resource name of project that the resource belongs to.
    * 
* * string project = 2; + * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -232,11 +266,14 @@ public java.lang.String getProject() { public static final int PROJECT_DISPLAY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object projectDisplayName_; /** + * + * *
    * The human readable name of project that the resource belongs to.
    * 
* * string project_display_name = 3; + * * @return The projectDisplayName. */ @java.lang.Override @@ -245,29 +282,29 @@ public java.lang.String getProjectDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectDisplayName_ = s; return s; } } /** + * + * *
    * The human readable name of project that the resource belongs to.
    * 
* * string project_display_name = 3; + * * @return The bytes for projectDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectDisplayNameBytes() { + public com.google.protobuf.ByteString getProjectDisplayNameBytes() { java.lang.Object ref = projectDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectDisplayName_ = b; return b; } else { @@ -278,11 +315,14 @@ public java.lang.String getProjectDisplayName() { public static final int PARENT_FIELD_NUMBER = 4; private volatile java.lang.Object parent_; /** + * + * *
    * The full resource name of resource's parent.
    * 
* * string parent = 4; + * * @return The parent. */ @java.lang.Override @@ -291,29 +331,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * The full resource name of resource's parent.
    * 
* * string parent = 4; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -324,11 +364,14 @@ public java.lang.String getParent() { public static final int PARENT_DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object parentDisplayName_; /** + * + * *
    * The human readable name of resource's parent.
    * 
* * string parent_display_name = 5; + * * @return The parentDisplayName. */ @java.lang.Override @@ -337,29 +380,29 @@ public java.lang.String getParentDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDisplayName_ = s; return s; } } /** + * + * *
    * The human readable name of resource's parent.
    * 
* * string parent_display_name = 5; + * * @return The bytes for parentDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentDisplayNameBytes() { + public com.google.protobuf.ByteString getParentDisplayNameBytes() { java.lang.Object ref = parentDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentDisplayName_ = b; return b; } else { @@ -370,74 +413,94 @@ public java.lang.String getParentDisplayName() { public static final int FOLDERS_FIELD_NUMBER = 7; private java.util.List folders_; /** + * + * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getFoldersList() { return folders_; } /** + * + * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getFoldersOrBuilderList() { return folders_; } /** + * + * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getFoldersCount() { return folders_.size(); } /** + * + * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index) { return folders_.get(index); } /** + * + * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder( - int index) { + public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder(int index) { return folders_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -449,8 +512,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -494,8 +556,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parentDisplayName_); } for (int i = 0; i < folders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, folders_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, folders_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -505,25 +566,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.Resource)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.Resource other = (com.google.cloud.securitycenter.v1p1beta1.Resource) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getProject() - .equals(other.getProject())) return false; - if (!getProjectDisplayName() - .equals(other.getProjectDisplayName())) return false; - if (!getParent() - .equals(other.getParent())) return false; - if (!getParentDisplayName() - .equals(other.getParentDisplayName())) return false; - if (!getFoldersList() - .equals(other.getFoldersList())) return false; + com.google.cloud.securitycenter.v1p1beta1.Resource other = + (com.google.cloud.securitycenter.v1p1beta1.Resource) obj; + + if (!getName().equals(other.getName())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getProjectDisplayName().equals(other.getProjectDisplayName())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getParentDisplayName().equals(other.getParentDisplayName())) return false; + if (!getFoldersList().equals(other.getFoldersList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -555,117 +611,126 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Resource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.Resource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.Resource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information related to the Google Cloud resource.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Resource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.Resource) com.google.cloud.securitycenter.v1p1beta1.ResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.ResourceProto.internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.ResourceProto + .internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.ResourceProto.internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.ResourceProto + .internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.Resource.class, com.google.cloud.securitycenter.v1p1beta1.Resource.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.Resource.class, + com.google.cloud.securitycenter.v1p1beta1.Resource.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.Resource.newBuilder() @@ -673,17 +738,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFoldersFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -707,9 +772,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.ResourceProto.internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.ResourceProto + .internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor; } @java.lang.Override @@ -728,7 +793,8 @@ public com.google.cloud.securitycenter.v1p1beta1.Resource build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Resource buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.Resource result = new com.google.cloud.securitycenter.v1p1beta1.Resource(this); + com.google.cloud.securitycenter.v1p1beta1.Resource result = + new com.google.cloud.securitycenter.v1p1beta1.Resource(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.project_ = project_; @@ -752,38 +818,39 @@ public com.google.cloud.securitycenter.v1p1beta1.Resource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.Resource) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Resource)other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Resource) other); } else { super.mergeFrom(other); return this; @@ -791,7 +858,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Resource other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance()) return this; + if (other == com.google.cloud.securitycenter.v1p1beta1.Resource.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -830,9 +898,10 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Resource othe foldersBuilder_ = null; folders_ = other.folders_; bitField0_ = (bitField0_ & ~0x00000001); - foldersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFoldersFieldBuilder() : null; + foldersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFoldersFieldBuilder() + : null; } else { foldersBuilder_.addAllMessages(other.folders_); } @@ -857,7 +926,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.Resource) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.Resource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -866,23 +936,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The full resource name of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -891,21 +964,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The full resource name of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -913,57 +987,64 @@ public java.lang.String getName() { } } /** + * + * *
      * The full resource name of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The full resource name of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The full resource name of the resource. See:
      * https://cloud.google.com/apis/design/resource_names#full_resource_name
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -971,18 +1052,20 @@ public Builder setNameBytes( private java.lang.Object project_ = ""; /** + * + * *
      * The full resource name of project that the resource belongs to.
      * 
* * string project = 2; + * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -991,20 +1074,21 @@ public java.lang.String getProject() { } } /** + * + * *
      * The full resource name of project that the resource belongs to.
      * 
* * string project = 2; + * * @return The bytes for project. */ - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -1012,54 +1096,61 @@ public java.lang.String getProject() { } } /** + * + * *
      * The full resource name of project that the resource belongs to.
      * 
* * string project = 2; + * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject( - java.lang.String value) { + public Builder setProject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** + * + * *
      * The full resource name of project that the resource belongs to.
      * 
* * string project = 2; + * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** + * + * *
      * The full resource name of project that the resource belongs to.
      * 
* * string project = 2; + * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; @@ -1067,18 +1158,20 @@ public Builder setProjectBytes( private java.lang.Object projectDisplayName_ = ""; /** + * + * *
      * The human readable name of project that the resource belongs to.
      * 
* * string project_display_name = 3; + * * @return The projectDisplayName. */ public java.lang.String getProjectDisplayName() { java.lang.Object ref = projectDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectDisplayName_ = s; return s; @@ -1087,20 +1180,21 @@ public java.lang.String getProjectDisplayName() { } } /** + * + * *
      * The human readable name of project that the resource belongs to.
      * 
* * string project_display_name = 3; + * * @return The bytes for projectDisplayName. */ - public com.google.protobuf.ByteString - getProjectDisplayNameBytes() { + public com.google.protobuf.ByteString getProjectDisplayNameBytes() { java.lang.Object ref = projectDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectDisplayName_ = b; return b; } else { @@ -1108,54 +1202,61 @@ public java.lang.String getProjectDisplayName() { } } /** + * + * *
      * The human readable name of project that the resource belongs to.
      * 
* * string project_display_name = 3; + * * @param value The projectDisplayName to set. * @return This builder for chaining. */ - public Builder setProjectDisplayName( - java.lang.String value) { + public Builder setProjectDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectDisplayName_ = value; onChanged(); return this; } /** + * + * *
      * The human readable name of project that the resource belongs to.
      * 
* * string project_display_name = 3; + * * @return This builder for chaining. */ public Builder clearProjectDisplayName() { - + projectDisplayName_ = getDefaultInstance().getProjectDisplayName(); onChanged(); return this; } /** + * + * *
      * The human readable name of project that the resource belongs to.
      * 
* * string project_display_name = 3; + * * @param value The bytes for projectDisplayName to set. * @return This builder for chaining. */ - public Builder setProjectDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectDisplayName_ = value; onChanged(); return this; @@ -1163,18 +1264,20 @@ public Builder setProjectDisplayNameBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * The full resource name of resource's parent.
      * 
* * string parent = 4; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1183,20 +1286,21 @@ public java.lang.String getParent() { } } /** + * + * *
      * The full resource name of resource's parent.
      * 
* * string parent = 4; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1204,54 +1308,61 @@ public java.lang.String getParent() { } } /** + * + * *
      * The full resource name of resource's parent.
      * 
* * string parent = 4; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * The full resource name of resource's parent.
      * 
* * string parent = 4; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * The full resource name of resource's parent.
      * 
* * string parent = 4; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1259,18 +1370,20 @@ public Builder setParentBytes( private java.lang.Object parentDisplayName_ = ""; /** + * + * *
      * The human readable name of resource's parent.
      * 
* * string parent_display_name = 5; + * * @return The parentDisplayName. */ public java.lang.String getParentDisplayName() { java.lang.Object ref = parentDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentDisplayName_ = s; return s; @@ -1279,20 +1392,21 @@ public java.lang.String getParentDisplayName() { } } /** + * + * *
      * The human readable name of resource's parent.
      * 
* * string parent_display_name = 5; + * * @return The bytes for parentDisplayName. */ - public com.google.protobuf.ByteString - getParentDisplayNameBytes() { + public com.google.protobuf.ByteString getParentDisplayNameBytes() { java.lang.Object ref = parentDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parentDisplayName_ = b; return b; } else { @@ -1300,79 +1414,95 @@ public java.lang.String getParentDisplayName() { } } /** + * + * *
      * The human readable name of resource's parent.
      * 
* * string parent_display_name = 5; + * * @param value The parentDisplayName to set. * @return This builder for chaining. */ - public Builder setParentDisplayName( - java.lang.String value) { + public Builder setParentDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parentDisplayName_ = value; onChanged(); return this; } /** + * + * *
      * The human readable name of resource's parent.
      * 
* * string parent_display_name = 5; + * * @return This builder for chaining. */ public Builder clearParentDisplayName() { - + parentDisplayName_ = getDefaultInstance().getParentDisplayName(); onChanged(); return this; } /** + * + * *
      * The human readable name of resource's parent.
      * 
* * string parent_display_name = 5; + * * @param value The bytes for parentDisplayName to set. * @return This builder for chaining. */ - public Builder setParentDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setParentDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentDisplayName_ = value; onChanged(); return this; } private java.util.List folders_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - folders_ = new java.util.ArrayList(folders_); + folders_ = + new java.util.ArrayList(folders_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> foldersBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Folder, + com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, + com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> + foldersBuilder_; /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getFoldersList() { if (foldersBuilder_ == null) { @@ -1382,13 +1512,17 @@ public java.util.List getFolde } } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getFoldersCount() { if (foldersBuilder_ == null) { @@ -1398,13 +1532,17 @@ public int getFoldersCount() { } } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index) { if (foldersBuilder_ == null) { @@ -1414,16 +1552,19 @@ public com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index) { } } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setFolders( - int index, com.google.cloud.securitycenter.v1p1beta1.Folder value) { + public Builder setFolders(int index, com.google.cloud.securitycenter.v1p1beta1.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1437,13 +1578,17 @@ public Builder setFolders( return this; } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setFolders( int index, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder builderForValue) { @@ -1457,13 +1602,17 @@ public Builder setFolders( return this; } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addFolders(com.google.cloud.securitycenter.v1p1beta1.Folder value) { if (foldersBuilder_ == null) { @@ -1479,16 +1628,19 @@ public Builder addFolders(com.google.cloud.securitycenter.v1p1beta1.Folder value return this; } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addFolders( - int index, com.google.cloud.securitycenter.v1p1beta1.Folder value) { + public Builder addFolders(int index, com.google.cloud.securitycenter.v1p1beta1.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1502,13 +1654,17 @@ public Builder addFolders( return this; } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addFolders( com.google.cloud.securitycenter.v1p1beta1.Folder.Builder builderForValue) { @@ -1522,13 +1678,17 @@ public Builder addFolders( return this; } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addFolders( int index, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder builderForValue) { @@ -1542,20 +1702,23 @@ public Builder addFolders( return this; } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllFolders( java.lang.Iterable values) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, folders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_); onChanged(); } else { foldersBuilder_.addAllMessages(values); @@ -1563,13 +1726,17 @@ public Builder addAllFolders( return this; } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearFolders() { if (foldersBuilder_ == null) { @@ -1582,13 +1749,17 @@ public Builder clearFolders() { return this; } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeFolders(int index) { if (foldersBuilder_ == null) { @@ -1601,45 +1772,57 @@ public Builder removeFolders(int index) { return this; } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder getFoldersBuilder( - int index) { + public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder getFoldersBuilder(int index) { return getFoldersFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder( int index) { if (foldersBuilder_ == null) { - return folders_.get(index); } else { + return folders_.get(index); + } else { return foldersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getFoldersOrBuilderList() { + public java.util.List + getFoldersOrBuilderList() { if (foldersBuilder_ != null) { return foldersBuilder_.getMessageOrBuilderList(); } else { @@ -1647,62 +1830,76 @@ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBui } } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilder() { - return getFoldersFieldBuilder().addBuilder( - com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance()); + return getFoldersFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance()); } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilder( - int index) { - return getFoldersFieldBuilder().addBuilder( - index, com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance()); + public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilder(int index) { + return getFoldersFieldBuilder() + .addBuilder(index, com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance()); } /** + * + * *
      * Output only. Contains a Folder message for each folder in the assets ancestry.
      * The first folder is the deepest nested folder, and the last folder is the
      * folder directly under the Organization.
      * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getFoldersBuilderList() { + public java.util.List + getFoldersBuilderList() { return getFoldersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.Folder, + com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, + com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> getFoldersFieldBuilder() { if (foldersBuilder_ == null) { - foldersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder>( - folders_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + foldersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Folder, + com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, + com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder>( + folders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); folders_ = null; } return foldersBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1712,12 +1909,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.Resource) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.Resource) private static final com.google.cloud.securitycenter.v1p1beta1.Resource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.Resource(); } @@ -1726,16 +1923,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.Resource getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Resource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Resource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Resource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Resource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1750,6 +1947,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.Resource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceOrBuilder.java similarity index 67% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceOrBuilder.java index 852c44825..d12c3bf18 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceOrBuilder.java @@ -1,165 +1,224 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/resource.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface ResourceOrBuilder extends +public interface ResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.Resource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The full resource name of the resource. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The full resource name of the resource. See:
    * https://cloud.google.com/apis/design/resource_names#full_resource_name
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The full resource name of project that the resource belongs to.
    * 
* * string project = 2; + * * @return The project. */ java.lang.String getProject(); /** + * + * *
    * The full resource name of project that the resource belongs to.
    * 
* * string project = 2; + * * @return The bytes for project. */ - com.google.protobuf.ByteString - getProjectBytes(); + com.google.protobuf.ByteString getProjectBytes(); /** + * + * *
    * The human readable name of project that the resource belongs to.
    * 
* * string project_display_name = 3; + * * @return The projectDisplayName. */ java.lang.String getProjectDisplayName(); /** + * + * *
    * The human readable name of project that the resource belongs to.
    * 
* * string project_display_name = 3; + * * @return The bytes for projectDisplayName. */ - com.google.protobuf.ByteString - getProjectDisplayNameBytes(); + com.google.protobuf.ByteString getProjectDisplayNameBytes(); /** + * + * *
    * The full resource name of resource's parent.
    * 
* * string parent = 4; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * The full resource name of resource's parent.
    * 
* * string parent = 4; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The human readable name of resource's parent.
    * 
* * string parent_display_name = 5; + * * @return The parentDisplayName. */ java.lang.String getParentDisplayName(); /** + * + * *
    * The human readable name of resource's parent.
    * 
* * string parent_display_name = 5; + * * @return The bytes for parentDisplayName. */ - com.google.protobuf.ByteString - getParentDisplayNameBytes(); + com.google.protobuf.ByteString getParentDisplayNameBytes(); /** + * + * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getFoldersList(); + java.util.List getFoldersList(); /** + * + * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index); /** + * + * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getFoldersCount(); /** + * + * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getFoldersOrBuilderList(); /** + * + * *
    * Output only. Contains a Folder message for each folder in the assets ancestry.
    * The first folder is the deepest nested folder, and the last folder is the
    * folder directly under the Organization.
    * 
* - * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder( - int index); + com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder(int index); } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java new file mode 100644 index 000000000..5260cea0f --- /dev/null +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/ResourceProto.java @@ -0,0 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/resource.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class ResourceProto { + private ResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/securitycenter/v1p1beta1/" + + "resource.proto\022%google.cloud.securitycen" + + "ter.v1p1beta1\032\037google/api/field_behavior" + + ".proto\0322google/cloud/securitycenter/v1p1" + + "beta1/folder.proto\032\034google/api/annotatio" + + "ns.proto\"\271\001\n\010Resource\022\014\n\004name\030\001 \001(\t\022\017\n\007p" + + "roject\030\002 \001(\t\022\034\n\024project_display_name\030\003 \001" + + "(\t\022\016\n\006parent\030\004 \001(\t\022\033\n\023parent_display_nam" + + "e\030\005 \001(\t\022C\n\007folders\030\007 \003(\0132-.google.cloud." + + "securitycenter.v1p1beta1.FolderB\003\340A\003B\214\002\n" + + ")com.google.cloud.securitycenter.v1p1bet" + + "a1B\rResourceProtoP\001ZSgoogle.golang.org/g" + + "enproto/googleapis/cloud/securitycenter/" + + "v1p1beta1;securitycenter\252\002%Google.Cloud." + + "SecurityCenter.V1P1Beta1\312\002%Google\\Cloud\\" + + "SecurityCenter\\V1p1beta1\352\002(Google::Cloud" + + "::SecurityCenter::V1p1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_Resource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_Resource_descriptor, + new java.lang.String[] { + "Name", "Project", "ProjectDisplayName", "Parent", "ParentDisplayName", "Folders", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java similarity index 63% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java index 9a3cd9bd5..390343fec 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Request message for running asset discovery for an organization.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest} */ -public final class RunAssetDiscoveryRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RunAssetDiscoveryRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) RunAssetDiscoveryRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RunAssetDiscoveryRequest.newBuilder() to construct. private RunAssetDiscoveryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RunAssetDiscoveryRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RunAssetDiscoveryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RunAssetDiscoveryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private RunAssetDiscoveryRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private RunAssetDiscoveryRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.class, com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.class, + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the organization to run asset discovery for. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Name of the organization to run asset discovery for. Its format is
    * "organizations/[organization_id]".
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest other = (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest other = + (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,134 +233,145 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for running asset discovery for an organization.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.class, com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.class, + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.Builder.class); } - // Construct using com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,14 +381,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest + .getDefaultInstance(); } @java.lang.Override @@ -364,7 +404,8 @@ public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest build( @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest result = new com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest(this); + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest result = + new com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -374,46 +415,51 @@ public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest)other); + return mergeFrom( + (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest other) { + if (other + == com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -437,7 +483,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +497,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -470,21 +522,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -492,64 +547,77 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Name of the organization to run asset discovery for. Its format is
      * "organizations/[organization_id]".
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +627,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest(); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunAssetDiscoveryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunAssetDiscoveryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunAssetDiscoveryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunAssetDiscoveryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +664,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequestOrBuilder.java new file mode 100644 index 000000000..d772aa0f6 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public interface RunAssetDiscoveryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the organization to run asset discovery for. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Name of the organization to run asset discovery for. Its format is
+   * "organizations/[organization_id]".
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java similarity index 67% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java index 0e7d169cb..7d6255b89 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponse.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Response of asset discovery run
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse} */ -public final class RunAssetDiscoveryResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RunAssetDiscoveryResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) RunAssetDiscoveryResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RunAssetDiscoveryResponse.newBuilder() to construct. private RunAssetDiscoveryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RunAssetDiscoveryResponse() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RunAssetDiscoveryResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RunAssetDiscoveryResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,35 @@ private RunAssetDiscoveryResponse( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (duration_ != null) { - subBuilder = duration_.toBuilder(); - } - duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(duration_); - duration_ = subBuilder.buildPartial(); + state_ = rawValue; + break; } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,36 +106,41 @@ private RunAssetDiscoveryResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.class, com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.class, + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.Builder.class); } /** + * + * *
    * The state of an asset discovery run.
    * 
* * Protobuf enum {@code google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Asset discovery run state was unspecified.
      * 
@@ -124,6 +149,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Asset discovery run completed successfully.
      * 
@@ -132,6 +159,8 @@ public enum State */ COMPLETED(1), /** + * + * *
      * Asset discovery run was cancelled with tasks still pending, as another
      * run for the same organization was started with a higher priority.
@@ -141,6 +170,8 @@ public enum State
      */
     SUPERSEDED(2),
     /**
+     *
+     *
      * 
      * Asset discovery run was killed and terminated.
      * 
@@ -152,6 +183,8 @@ public enum State ; /** + * + * *
      * Asset discovery run state was unspecified.
      * 
@@ -160,6 +193,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Asset discovery run completed successfully.
      * 
@@ -168,6 +203,8 @@ public enum State */ public static final int COMPLETED_VALUE = 1; /** + * + * *
      * Asset discovery run was cancelled with tasks still pending, as another
      * run for the same organization was started with a higher priority.
@@ -177,6 +214,8 @@ public enum State
      */
     public static final int SUPERSEDED_VALUE = 2;
     /**
+     *
+     *
      * 
      * Asset discovery run was killed and terminated.
      * 
@@ -185,7 +224,6 @@ public enum State */ public static final int TERMINATED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -210,50 +248,53 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return COMPLETED; - case 2: return SUPERSEDED; - case 3: return TERMINATED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return COMPLETED; + case 2: + return SUPERSEDED; + case 3: + return TERMINATED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -273,38 +314,52 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** + * + * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State getState() { + @java.lang.Override + public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State result = com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State.valueOf(state_); - return result == null ? com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State result = + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State.valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State.UNRECOGNIZED + : result; } public static final int DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration duration_; /** + * + * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ @java.lang.Override @@ -312,11 +367,14 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ @java.lang.Override @@ -324,6 +382,8 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** + * + * *
    * The duration between asset discovery run start and end
    * 
@@ -336,6 +396,7 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,9 +408,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State + .STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, state_); } if (duration_ != null) { @@ -364,13 +427,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State + .STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -380,18 +444,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse other = (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) obj; + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse other = + (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) obj; if (state_ != other.state_) return false; if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) return false; + if (!getDuration().equals(other.getDuration())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -416,134 +480,145 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response of asset discovery run
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.class, com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.class, + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.Builder.class); } - // Construct using com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -559,14 +634,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse + .getDefaultInstance(); } @java.lang.Override @@ -580,7 +657,8 @@ public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse build @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse result = new com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse(this); + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse result = + new com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse(this); result.state_ = state_; if (durationBuilder_ == null) { result.duration_ = duration_; @@ -595,46 +673,51 @@ public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse)other); + return mergeFrom( + (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse other) { + if (other + == com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse + .getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -660,7 +743,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,73 +757,98 @@ public Builder mergeFrom( private int state_ = 0; /** + * + * *
      * The state of an asset discovery run.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; + * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of an asset discovery run.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; + * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * The state of an asset discovery run.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; + * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State result = com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State.valueOf(state_); - return result == null ? com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State result = + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State.valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of an asset discovery run.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; + * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; + * + * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State value) { + public Builder setState( + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of an asset discovery run.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; + * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -746,24 +856,33 @@ public Builder clearState() { private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + durationBuilder_; /** + * + * *
      * The duration between asset discovery run start and end
      * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ public boolean hasDuration() { return durationBuilder_ != null || duration_ != null; } /** + * + * *
      * The duration between asset discovery run start and end
      * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -774,6 +893,8 @@ public com.google.protobuf.Duration getDuration() { } } /** + * + * *
      * The duration between asset discovery run start and end
      * 
@@ -794,14 +915,15 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * The duration between asset discovery run start and end
      * 
* * .google.protobuf.Duration duration = 2; */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); onChanged(); @@ -812,6 +934,8 @@ public Builder setDuration( return this; } /** + * + * *
      * The duration between asset discovery run start and end
      * 
@@ -822,7 +946,7 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (duration_ != null) { duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); } else { duration_ = value; } @@ -834,6 +958,8 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * The duration between asset discovery run start and end
      * 
@@ -852,6 +978,8 @@ public Builder clearDuration() { return this; } /** + * + * *
      * The duration between asset discovery run start and end
      * 
@@ -859,11 +987,13 @@ public Builder clearDuration() { * .google.protobuf.Duration duration = 2; */ public com.google.protobuf.Duration.Builder getDurationBuilder() { - + onChanged(); return getDurationFieldBuilder().getBuilder(); } /** + * + * *
      * The duration between asset discovery run start and end
      * 
@@ -874,11 +1004,12 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** + * + * *
      * The duration between asset discovery run start and end
      * 
@@ -886,21 +1017,24 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { * .google.protobuf.Duration duration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); + durationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -910,30 +1044,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) - private static final com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse(); } - public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunAssetDiscoveryResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunAssetDiscoveryResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunAssetDiscoveryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunAssetDiscoveryResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -945,9 +1081,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOrBuilder.java index 16c9ca8cf..a84fd27d8 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOrBuilder.java @@ -1,50 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface RunAssetDiscoveryResponseOrBuilder extends +public interface RunAssetDiscoveryResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of an asset discovery run.
    * 
* * .google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State state = 1; + * * @return The state. */ com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse.State getState(); /** + * + * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
    * The duration between asset discovery run start and end
    * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** + * + * *
    * The duration between asset discovery run start and end
    * 
diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOuterClass.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOuterClass.java new file mode 100644 index 000000000..42bc686b7 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/RunAssetDiscoveryResponseOuterClass.java @@ -0,0 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class RunAssetDiscoveryResponseOuterClass { + private RunAssetDiscoveryResponseOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nHgoogle/cloud/securitycenter/v1p1beta1/" + + "run_asset_discovery_response.proto\022%goog" + + "le.cloud.securitycenter.v1p1beta1\032\036googl" + + "e/protobuf/duration.proto\032\034google/api/an" + + "notations.proto\"\356\001\n\031RunAssetDiscoveryRes" + + "ponse\022U\n\005state\030\001 \001(\0162F.google.cloud.secu" + + "ritycenter.v1p1beta1.RunAssetDiscoveryRe" + + "sponse.State\022+\n\010duration\030\002 \001(\0132\031.google." + + "protobuf.Duration\"M\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\r\n\tCOMPLETED\020\001\022\016\n\nSUPERSEDED\020\002" + + "\022\016\n\nTERMINATED\020\003B\375\001\n)com.google.cloud.se" + + "curitycenter.v1p1beta1P\001ZSgoogle.golang." + + "org/genproto/googleapis/cloud/securityce" + + "nter/v1p1beta1;securitycenter\252\002%Google.C" + + "loud.SecurityCenter.V1P1Beta1\312\002%Google\\C" + + "loud\\SecurityCenter\\V1p1beta1\352\002(Google::" + + "Cloud::SecurityCenter::V1p1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryResponse_descriptor, + new java.lang.String[] { + "State", "Duration", + }); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java similarity index 72% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java index ab51460fb..9c78f802d 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarks.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/security_marks.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * User specified security marks that are attached to the parent Security
  * Command Center resource. Security marks are scoped within a Security Command
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.SecurityMarks}
  */
-public final class SecurityMarks extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SecurityMarks extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.SecurityMarks)
     SecurityMarksOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SecurityMarks.newBuilder() to construct.
   private SecurityMarks(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SecurityMarks() {
     name_ = "";
     canonicalName_ = "";
@@ -29,16 +47,15 @@ private SecurityMarks() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SecurityMarks();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SecurityMarks(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,38 +75,40 @@ private SecurityMarks(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              marks_ = com.google.protobuf.MapField.newMapField(
-                  MarksDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              name_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            marks__ = input.readMessage(
-                MarksDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            marks_.getMutableMap().put(
-                marks__.getKey(), marks__.getValue());
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                marks_ =
+                    com.google.protobuf.MapField.newMapField(MarksDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry marks__ =
+                  input.readMessage(
+                      MarksDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              marks_.getMutableMap().put(marks__.getKey(), marks__.getValue());
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            canonicalName_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              canonicalName_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -97,41 +116,44 @@ private SecurityMarks(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass
+        .internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 2:
         return internalGetMarks();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass
+        .internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.class, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder.class);
+            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.class,
+            com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -141,6 +163,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -149,14 +172,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -166,16 +190,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -184,24 +207,23 @@ public java.lang.String getName() { } public static final int MARKS_FIELD_NUMBER = 2; + private static final class MarksDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass + .internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> marks_; - private com.google.protobuf.MapField - internalGetMarks() { + + private com.google.protobuf.MapField marks_; + + private com.google.protobuf.MapField internalGetMarks() { if (marks_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MarksDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MarksDefaultEntryHolder.defaultEntry); } return marks_; } @@ -210,6 +232,8 @@ public int getMarksCount() { return internalGetMarks().getMap().size(); } /** + * + * *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -222,22 +246,22 @@ public int getMarksCount() {
    *
    * map<string, string> marks = 2;
    */
-
   @java.lang.Override
-  public boolean containsMarks(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsMarks(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetMarks().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getMarksMap()} instead.
-   */
+  /** Use {@link #getMarksMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMarks() {
     return getMarksMap();
   }
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -251,11 +275,12 @@ public java.util.Map getMarks() {
    * map<string, string> marks = 2;
    */
   @java.lang.Override
-
   public java.util.Map getMarksMap() {
     return internalGetMarks().getMap();
   }
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -269,16 +294,16 @@ public java.util.Map getMarksMap() {
    * map<string, string> marks = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getMarksOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMarks().getMap();
+  public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetMarks().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -292,12 +317,11 @@ public java.lang.String getMarksOrDefault(
    * map<string, string> marks = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getMarksOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMarks().getMap();
+  public java.lang.String getMarksOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetMarks().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -307,6 +331,8 @@ public java.lang.String getMarksOrThrow(
   public static final int CANONICAL_NAME_FIELD_NUMBER = 3;
   private volatile java.lang.Object canonicalName_;
   /**
+   *
+   *
    * 
    * The canonical name of the marks.
    * Examples:
@@ -319,6 +345,7 @@ public java.lang.String getMarksOrThrow(
    * 
* * string canonical_name = 3; + * * @return The canonicalName. */ @java.lang.Override @@ -327,14 +354,15 @@ public java.lang.String getCanonicalName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; } } /** + * + * *
    * The canonical name of the marks.
    * Examples:
@@ -347,16 +375,15 @@ public java.lang.String getCanonicalName() {
    * 
* * string canonical_name = 3; + * * @return The bytes for canonicalName. */ @java.lang.Override - public com.google.protobuf.ByteString - getCanonicalNameBytes() { + public com.google.protobuf.ByteString getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -365,6 +392,7 @@ public java.lang.String getCanonicalName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -376,17 +404,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMarks(), - MarksDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMarks(), MarksDefaultEntryHolder.defaultEntry, 2); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, canonicalName_); } @@ -402,15 +425,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - for (java.util.Map.Entry entry - : internalGetMarks().getMap().entrySet()) { - com.google.protobuf.MapEntry - marks__ = MarksDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, marks__); + for (java.util.Map.Entry entry : + internalGetMarks().getMap().entrySet()) { + com.google.protobuf.MapEntry marks__ = + MarksDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, marks__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, canonicalName_); @@ -423,19 +446,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.SecurityMarks)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks other = (com.google.cloud.securitycenter.v1p1beta1.SecurityMarks) obj; + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks other = + (com.google.cloud.securitycenter.v1p1beta1.SecurityMarks) obj; - if (!getName() - .equals(other.getName())) return false; - if (!internalGetMarks().equals( - other.internalGetMarks())) return false; - if (!getCanonicalName() - .equals(other.getCanonicalName())) return false; + if (!getName().equals(other.getName())) return false; + if (!internalGetMarks().equals(other.internalGetMarks())) return false; + if (!getCanonicalName().equals(other.getCanonicalName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -461,96 +482,104 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * User specified security marks that are attached to the parent Security
    * Command Center resource. Security marks are scoped within a Security Command
@@ -560,43 +589,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.SecurityMarks}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.SecurityMarks)
       com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 2:
           return internalGetMarks();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 2:
           return internalGetMutableMarks();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.class, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder.class);
+              com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.class,
+              com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.newBuilder()
@@ -604,16 +633,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -626,9 +654,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor;
     }
 
     @java.lang.Override
@@ -647,7 +675,8 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks buildPartial() {
-      com.google.cloud.securitycenter.v1p1beta1.SecurityMarks result = new com.google.cloud.securitycenter.v1p1beta1.SecurityMarks(this);
+      com.google.cloud.securitycenter.v1p1beta1.SecurityMarks result =
+          new com.google.cloud.securitycenter.v1p1beta1.SecurityMarks(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.marks_ = internalGetMarks();
@@ -661,38 +690,39 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1p1beta1.SecurityMarks) {
-        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.SecurityMarks)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.SecurityMarks) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -700,13 +730,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks other) {
-      if (other == com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance()) return this;
+      if (other == com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
       }
-      internalGetMutableMarks().mergeFrom(
-          other.internalGetMarks());
+      internalGetMutableMarks().mergeFrom(other.internalGetMarks());
       if (!other.getCanonicalName().isEmpty()) {
         canonicalName_ = other.canonicalName_;
         onChanged();
@@ -730,7 +760,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.SecurityMarks) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.securitycenter.v1p1beta1.SecurityMarks) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -739,10 +770,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -752,13 +786,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -767,6 +801,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -776,15 +812,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -792,6 +827,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -801,20 +838,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -824,15 +863,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The relative resource name of the SecurityMarks. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -842,37 +884,36 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> marks_; - private com.google.protobuf.MapField - internalGetMarks() { + private com.google.protobuf.MapField marks_; + + private com.google.protobuf.MapField internalGetMarks() { if (marks_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MarksDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MarksDefaultEntryHolder.defaultEntry); } return marks_; } + private com.google.protobuf.MapField - internalGetMutableMarks() { - onChanged();; + internalGetMutableMarks() { + onChanged(); + ; if (marks_ == null) { - marks_ = com.google.protobuf.MapField.newMapField( - MarksDefaultEntryHolder.defaultEntry); + marks_ = com.google.protobuf.MapField.newMapField(MarksDefaultEntryHolder.defaultEntry); } if (!marks_.isMutable()) { marks_ = marks_.copy(); @@ -884,6 +925,8 @@ public int getMarksCount() { return internalGetMarks().getMap().size(); } /** + * + * *
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -896,22 +939,22 @@ public int getMarksCount() {
      *
      * map<string, string> marks = 2;
      */
-
     @java.lang.Override
-    public boolean containsMarks(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsMarks(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetMarks().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getMarksMap()} instead.
-     */
+    /** Use {@link #getMarksMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMarks() {
       return getMarksMap();
     }
     /**
+     *
+     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -925,11 +968,12 @@ public java.util.Map getMarks() {
      * map<string, string> marks = 2;
      */
     @java.lang.Override
-
     public java.util.Map getMarksMap() {
       return internalGetMarks().getMap();
     }
     /**
+     *
+     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -943,16 +987,16 @@ public java.util.Map getMarksMap() {
      * map<string, string> marks = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getMarksOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetMarks().getMap();
+    public java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetMarks().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -966,12 +1010,11 @@ public java.lang.String getMarksOrDefault(
      * map<string, string> marks = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getMarksOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetMarks().getMap();
+    public java.lang.String getMarksOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetMarks().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -979,11 +1022,12 @@ public java.lang.String getMarksOrThrow(
     }
 
     public Builder clearMarks() {
-      internalGetMutableMarks().getMutableMap()
-          .clear();
+      internalGetMutableMarks().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -996,23 +1040,21 @@ public Builder clearMarks() {
      *
      * map<string, string> marks = 2;
      */
-
-    public Builder removeMarks(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableMarks().getMutableMap()
-          .remove(key);
+    public Builder removeMarks(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableMarks().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableMarks() {
+    public java.util.Map getMutableMarks() {
       return internalGetMutableMarks().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -1025,19 +1067,20 @@ public Builder removeMarks(
      *
      * map<string, string> marks = 2;
      */
-    public Builder putMarks(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putMarks(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableMarks().getMutableMap()
-          .put(key, value);
+      internalGetMutableMarks().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Mutable user specified security marks belonging to the parent resource.
      * Constraints are as follows:
@@ -1050,16 +1093,15 @@ public Builder putMarks(
      *
      * map<string, string> marks = 2;
      */
-
-    public Builder putAllMarks(
-        java.util.Map values) {
-      internalGetMutableMarks().getMutableMap()
-          .putAll(values);
+    public Builder putAllMarks(java.util.Map values) {
+      internalGetMutableMarks().getMutableMap().putAll(values);
       return this;
     }
 
     private java.lang.Object canonicalName_ = "";
     /**
+     *
+     *
      * 
      * The canonical name of the marks.
      * Examples:
@@ -1072,13 +1114,13 @@ public Builder putAllMarks(
      * 
* * string canonical_name = 3; + * * @return The canonicalName. */ public java.lang.String getCanonicalName() { java.lang.Object ref = canonicalName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; @@ -1087,6 +1129,8 @@ public java.lang.String getCanonicalName() { } } /** + * + * *
      * The canonical name of the marks.
      * Examples:
@@ -1099,15 +1143,14 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 3; + * * @return The bytes for canonicalName. */ - public com.google.protobuf.ByteString - getCanonicalNameBytes() { + public com.google.protobuf.ByteString getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -1115,6 +1158,8 @@ public java.lang.String getCanonicalName() { } } /** + * + * *
      * The canonical name of the marks.
      * Examples:
@@ -1127,20 +1172,22 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 3; + * * @param value The canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalName( - java.lang.String value) { + public Builder setCanonicalName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + canonicalName_ = value; onChanged(); return this; } /** + * + * *
      * The canonical name of the marks.
      * Examples:
@@ -1153,15 +1200,18 @@ public Builder setCanonicalName(
      * 
* * string canonical_name = 3; + * * @return This builder for chaining. */ public Builder clearCanonicalName() { - + canonicalName_ = getDefaultInstance().getCanonicalName(); onChanged(); return this; } /** + * + * *
      * The canonical name of the marks.
      * Examples:
@@ -1174,23 +1224,23 @@ public Builder clearCanonicalName() {
      * 
* * string canonical_name = 3; + * * @param value The bytes for canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalNameBytes( - com.google.protobuf.ByteString value) { + public Builder setCanonicalNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1200,12 +1250,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.SecurityMarks) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.SecurityMarks) private static final com.google.cloud.securitycenter.v1p1beta1.SecurityMarks DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.SecurityMarks(); } @@ -1214,16 +1264,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecurityMarks parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecurityMarks(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityMarks parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecurityMarks(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1238,6 +1288,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOrBuilder.java similarity index 81% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOrBuilder.java index be3679c8a..d7d365246 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/security_marks.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface SecurityMarksOrBuilder extends +public interface SecurityMarksOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.SecurityMarks) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -17,10 +35,13 @@ public interface SecurityMarksOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The relative resource name of the SecurityMarks. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -30,12 +51,14 @@ public interface SecurityMarksOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -50,6 +73,8 @@ public interface SecurityMarksOrBuilder extends
    */
   int getMarksCount();
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -62,15 +87,13 @@ public interface SecurityMarksOrBuilder extends
    *
    * map<string, string> marks = 2;
    */
-  boolean containsMarks(
-      java.lang.String key);
-  /**
-   * Use {@link #getMarksMap()} instead.
-   */
+  boolean containsMarks(java.lang.String key);
+  /** Use {@link #getMarksMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getMarks();
+  java.util.Map getMarks();
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -83,9 +106,10 @@ boolean containsMarks(
    *
    * map<string, string> marks = 2;
    */
-  java.util.Map
-  getMarksMap();
+  java.util.Map getMarksMap();
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -100,11 +124,13 @@ boolean containsMarks(
    */
 
   /* nullable */
-java.lang.String getMarksOrDefault(
+  java.lang.String getMarksOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Mutable user specified security marks belonging to the parent resource.
    * Constraints are as follows:
@@ -117,11 +143,11 @@ java.lang.String getMarksOrDefault(
    *
    * map<string, string> marks = 2;
    */
-
-  java.lang.String getMarksOrThrow(
-      java.lang.String key);
+  java.lang.String getMarksOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * The canonical name of the marks.
    * Examples:
@@ -134,10 +160,13 @@ java.lang.String getMarksOrThrow(
    * 
* * string canonical_name = 3; + * * @return The canonicalName. */ java.lang.String getCanonicalName(); /** + * + * *
    * The canonical name of the marks.
    * Examples:
@@ -150,8 +179,8 @@ java.lang.String getMarksOrThrow(
    * 
* * string canonical_name = 3; + * * @return The bytes for canonicalName. */ - com.google.protobuf.ByteString - getCanonicalNameBytes(); + com.google.protobuf.ByteString getCanonicalNameBytes(); } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOuterClass.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOuterClass.java new file mode 100644 index 000000000..a1a0033fb --- /dev/null +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecurityMarksOuterClass.java @@ -0,0 +1,109 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/security_marks.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class SecurityMarksOuterClass { + private SecurityMarksOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n:google/cloud/securitycenter/v1p1beta1/" + + "security_marks.proto\022%google.cloud.secur" + + "itycenter.v1p1beta1\032\031google/api/resource" + + ".proto\032\034google/api/annotations.proto\"\334\004\n" + + "\rSecurityMarks\022\014\n\004name\030\001 \001(\t\022N\n\005marks\030\002 " + + "\003(\0132?.google.cloud.securitycenter.v1p1be" + + "ta1.SecurityMarks.MarksEntry\022\026\n\016canonica" + + "l_name\030\003 \001(\t\032,\n\nMarksEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001:\246\003\352A\242\003\n+securitycente" + + "r.googleapis.com/SecurityMarks\0229organiza" + + "tions/{organization}/assets/{asset}/secu" + + "rityMarks\022Norganizations/{organization}/" + + "sources/{source}/findings/{finding}/secu" + + "rityMarks\022-folders/{folder}/assets/{asse" + + "t}/securityMarks\022/projects/{project}/ass" + + "ets/{asset}/securityMarks\022Bfolders/{fold" + + "er}/sources/{source}/findings/{finding}/" + + "securityMarks\022Dprojects/{project}/source" + + "s/{source}/findings/{finding}/securityMa" + + "rksB\375\001\n)com.google.cloud.securitycenter." + + "v1p1beta1P\001ZSgoogle.golang.org/genproto/" + + "googleapis/cloud/securitycenter/v1p1beta" + + "1;securitycenter\252\002%Google.Cloud.Security" + + "Center.V1P1Beta1\312\002%Google\\Cloud\\Security" + + "Center\\V1p1beta1\352\002(Google::Cloud::Securi" + + "tyCenter::V1p1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor, + new java.lang.String[] { + "Name", "Marks", "CanonicalName", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_SecurityMarks_MarksEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecuritycenterService.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecuritycenterService.java new file mode 100644 index 000000000..ef447d6d5 --- /dev/null +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SecuritycenterService.java @@ -0,0 +1,845 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class SecuritycenterService { + private SecuritycenterService() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nBgoogle/cloud/securitycenter/v1p1beta1/" + + "securitycenter_service.proto\022%google.clo" + + "ud.securitycenter.v1p1beta1\032@google/clou" + + "d/securitycenter/v1p1beta1/notification_" + + "message.proto\032Hgoogle/cloud/securitycent" + + "er/v1p1beta1/run_asset_discovery_respons" + + "e.proto\032\034google/api/annotations.proto\032\027g" + + "oogle/api/client.proto\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\0321google/cloud/securitycenter/v1p1beta" + + "1/asset.proto\0323google/cloud/securitycent" + + "er/v1p1beta1/finding.proto\0322google/cloud" + + "/securitycenter/v1p1beta1/folder.proto\032?" + + "google/cloud/securitycenter/v1p1beta1/no" + + "tification_config.proto\032Agoogle/cloud/se" + + "curitycenter/v1p1beta1/organization_sett" + + "ings.proto\032:google/cloud/securitycenter/" + + "v1p1beta1/security_marks.proto\0322google/c" + + "loud/securitycenter/v1p1beta1/source.pro" + + "to\032\036google/iam/v1/iam_policy.proto\032\032goog" + + "le/iam/v1/policy.proto\032#google/longrunni" + + "ng/operations.proto\032\036google/protobuf/dur" + + "ation.proto\032\033google/protobuf/empty.proto" + + "\032 google/protobuf/field_mask.proto\032\034goog" + + "le/protobuf/struct.proto\032\037google/protobu" + + "f/timestamp.proto\"\263\001\n\024CreateFindingReque" + + "st\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$securitycent" + + "er.googleapis.com/Source\022\027\n\nfinding_id\030\002" + + " \001(\tB\003\340A\002\022D\n\007finding\030\003 \001(\0132..google.clou" + + "d.securitycenter.v1p1beta1.FindingB\003\340A\002\"" + + "\340\001\n\037CreateNotificationConfigRequest\022H\n\006p" + + "arent\030\001 \001(\tB8\340A\002\372A2\n0cloudresourcemanage" + + "r.googleapis.com/Organization\022\026\n\tconfig_" + + "id\030\002 \001(\tB\003\340A\002\022[\n\023notification_config\030\003 \001" + + "(\01329.google.cloud.securitycenter.v1p1bet" + + "a1.NotificationConfigB\003\340A\002\"\243\001\n\023CreateSou" + + "rceRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0clou" + + "dresourcemanager.googleapis.com/Organiza" + + "tion\022B\n\006source\030\002 \001(\0132-.google.cloud.secu" + + "ritycenter.v1p1beta1.SourceB\003\340A\002\"i\n\037Dele" + + "teNotificationConfigRequest\022F\n\004name\030\001 \001(" + + "\tB8\340A\002\372A2\n0securitycenter.googleapis.com" + + "/NotificationConfig\"f\n\034GetNotificationCo" + + "nfigRequest\022F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0secur" + + "itycenter.googleapis.com/NotificationCon" + + "fig\"j\n\036GetOrganizationSettingsRequest\022H\n" + + "\004name\030\001 \001(\tB:\340A\002\372A4\n2securitycenter.goog" + + "leapis.com/OrganizationSettings\"N\n\020GetSo" + + "urceRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$secur" + + "itycenter.googleapis.com/Source\"\203\002\n\022Grou" + + "pAssetsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#" + + "securitycenter.googleapis.com/Asset\022\016\n\006f" + + "ilter\030\002 \001(\t\022\025\n\010group_by\030\003 \001(\tB\003\340A\002\0223\n\020co" + + "mpare_duration\030\004 \001(\0132\031.google.protobuf.D" + + "uration\022-\n\tread_time\030\005 \001(\0132\032.google.prot" + + "obuf.Timestamp\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpa" + + "ge_size\030\010 \001(\005\"\277\001\n\023GroupAssetsResponse\022L\n" + + "\020group_by_results\030\001 \003(\01322.google.cloud.s" + + "ecuritycenter.v1p1beta1.GroupResult\022-\n\tr" + + "ead_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_siz" + + "e\030\004 \001(\005\"\206\002\n\024GroupFindingsRequest\022<\n\006pare" + + "nt\030\001 \001(\tB,\340A\002\372A&\n$securitycenter.googlea" + + "pis.com/Source\022\016\n\006filter\030\002 \001(\t\022\025\n\010group_" + + "by\030\003 \001(\tB\003\340A\002\022-\n\tread_time\030\004 \001(\0132\032.googl" + + "e.protobuf.Timestamp\0223\n\020compare_duration" + + "\030\005 \001(\0132\031.google.protobuf.Duration\022\022\n\npag" + + "e_token\030\007 \001(\t\022\021\n\tpage_size\030\010 \001(\005\"\301\001\n\025Gro" + + "upFindingsResponse\022L\n\020group_by_results\030\001" + + " \003(\01322.google.cloud.securitycenter.v1p1b" + + "eta1.GroupResult\022-\n\tread_time\030\002 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022\027\n\017next_page_tok" + + "en\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\277\001\n\013GroupRe" + + "sult\022V\n\nproperties\030\001 \003(\0132B.google.cloud." + + "securitycenter.v1p1beta1.GroupResult.Pro" + + "pertiesEntry\022\r\n\005count\030\002 \001(\003\032I\n\017Propertie" + + "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo" + + "gle.protobuf.Value:\0028\001\"\221\001\n\036ListNotificat" + + "ionConfigsRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A" + + "2\n0cloudresourcemanager.googleapis.com/O" + + "rganization\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_" + + "size\030\003 \001(\005\"\223\001\n\037ListNotificationConfigsRe" + + "sponse\022W\n\024notification_configs\030\001 \003(\01329.g" + + "oogle.cloud.securitycenter.v1p1beta1.Not" + + "ificationConfig\022\027\n\017next_page_token\030\002 \001(\t" + + "\"y\n\022ListSourcesRequest\022<\n\006parent\030\001 \001(\tB," + + "\340A\002\372A&\022$securitycenter.googleapis.com/So" + + "urce\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\007 " + + "\001(\005\"n\n\023ListSourcesResponse\022>\n\007sources\030\001 " + + "\003(\0132-.google.cloud.securitycenter.v1p1be" + + "ta1.Source\022\027\n\017next_page_token\030\002 \001(\t\"\255\002\n\021" + + "ListAssetsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A" + + "%\022#securitycenter.googleapis.com/Asset\022\016" + + "\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\tread" + + "_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022" + + "3\n\020compare_duration\030\005 \001(\0132\031.google.proto" + + "buf.Duration\022.\n\nfield_mask\030\007 \001(\0132\032.googl" + + "e.protobuf.FieldMask\022\022\n\npage_token\030\010 \001(\t" + + "\022\021\n\tpage_size\030\t \001(\005\"\330\003\n\022ListAssetsRespon" + + "se\022g\n\023list_assets_results\030\001 \003(\0132J.google" + + ".cloud.securitycenter.v1p1beta1.ListAsse" + + "tsResponse.ListAssetsResult\022-\n\tread_time" + + "\030\002 \001(\0132\032.google.protobuf.Timestamp\022\027\n\017ne" + + "xt_page_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\032" + + "\374\001\n\020ListAssetsResult\022;\n\005asset\030\001 \001(\0132,.go" + + "ogle.cloud.securitycenter.v1p1beta1.Asse" + + "t\022l\n\014state_change\030\002 \001(\0162V.google.cloud.s" + + "ecuritycenter.v1p1beta1.ListAssetsRespon" + + "se.ListAssetsResult.StateChange\"=\n\013State" + + "Change\022\n\n\006UNUSED\020\000\022\t\n\005ADDED\020\001\022\013\n\007REMOVED" + + "\020\002\022\n\n\006ACTIVE\020\003\"\260\002\n\023ListFindingsRequest\022<" + + "\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$securitycenter.g" + + "oogleapis.com/Source\022\016\n\006filter\030\002 \001(\t\022\020\n\010" + + "order_by\030\003 \001(\t\022-\n\tread_time\030\004 \001(\0132\032.goog" + + "le.protobuf.Timestamp\0223\n\020compare_duratio" + + "n\030\005 \001(\0132\031.google.protobuf.Duration\022.\n\nfi" + + "eld_mask\030\007 \001(\0132\032.google.protobuf.FieldMa" + + "sk\022\022\n\npage_token\030\010 \001(\t\022\021\n\tpage_size\030\t \001(" + + "\005\"\253\006\n\024ListFindingsResponse\022m\n\025list_findi" + + "ngs_results\030\001 \003(\0132N.google.cloud.securit" + + "ycenter.v1p1beta1.ListFindingsResponse.L" + + "istFindingsResult\022-\n\tread_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022\027\n\017next_page_to" + + "ken\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\032\307\004\n\022ListFi" + + "ndingsResult\022?\n\007finding\030\001 \001(\0132..google.c" + + "loud.securitycenter.v1p1beta1.Finding\022p\n" + + "\014state_change\030\002 \001(\0162Z.google.cloud.secur" + + "itycenter.v1p1beta1.ListFindingsResponse" + + ".ListFindingsResult.StateChange\022n\n\010resou" + + "rce\030\003 \001(\0132W.google.cloud.securitycenter." + + "v1p1beta1.ListFindingsResponse.ListFindi" + + "ngsResult.ResourceB\003\340A\003\032\276\001\n\010Resource\022\014\n\004" + + "name\030\001 \001(\t\022\024\n\014project_name\030\002 \001(\t\022\034\n\024proj" + + "ect_display_name\030\003 \001(\t\022\023\n\013parent_name\030\004 " + + "\001(\t\022\033\n\023parent_display_name\030\005 \001(\t\022>\n\007fold" + + "ers\030\n \003(\0132-.google.cloud.securitycenter." + + "v1p1beta1.Folder\"M\n\013StateChange\022\n\n\006UNUSE" + + "D\020\000\022\013\n\007CHANGED\020\001\022\r\n\tUNCHANGED\020\002\022\t\n\005ADDED" + + "\020\003\022\013\n\007REMOVED\020\004\"\324\001\n\026SetFindingStateReque" + + "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%securitycenter" + + ".googleapis.com/Finding\022H\n\005state\030\002 \001(\01624" + + ".google.cloud.securitycenter.v1p1beta1.F" + + "inding.StateB\003\340A\002\0223\n\nstart_time\030\003 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\002\"d\n\030RunAss" + + "etDiscoveryRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372" + + "A2\n0cloudresourcemanager.googleapis.com/" + + "Organization\"\215\001\n\024UpdateFindingRequest\022D\n" + + "\007finding\030\001 \001(\0132..google.cloud.securityce" + + "nter.v1p1beta1.FindingB\003\340A\002\022/\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"\257\001\n" + + "\037UpdateNotificationConfigRequest\022[\n\023noti" + + "fication_config\030\001 \001(\01329.google.cloud.sec" + + "uritycenter.v1p1beta1.NotificationConfig" + + "B\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMask\"\265\001\n!UpdateOrganizationSet" + + "tingsRequest\022_\n\025organization_settings\030\001 " + + "\001(\0132;.google.cloud.securitycenter.v1p1be" + + "ta1.OrganizationSettingsB\003\340A\002\022/\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\212" + + "\001\n\023UpdateSourceRequest\022B\n\006source\030\001 \001(\0132-" + + ".google.cloud.securitycenter.v1p1beta1.S" + + "ourceB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google" + + ".protobuf.FieldMask\"\320\001\n\032UpdateSecurityMa" + + "rksRequest\022Q\n\016security_marks\030\001 \001(\01324.goo" + + "gle.cloud.securitycenter.v1p1beta1.Secur" + + "ityMarksB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.goo" + + "gle.protobuf.FieldMask\022.\n\nstart_time\030\003 \001" + + "(\0132\032.google.protobuf.Timestamp2\3703\n\016Secur" + + "ityCenter\022\306\001\n\014CreateSource\022:.google.clou" + + "d.securitycenter.v1p1beta1.CreateSourceR" + + "equest\032-.google.cloud.securitycenter.v1p" + + "1beta1.Source\"K\202\323\344\223\0025\"+/v1p1beta1/{paren" + + "t=organizations/*}/sources:\006source\332A\rpar" + + "ent,source\022\375\001\n\rCreateFinding\022;.google.cl" + + "oud.securitycenter.v1p1beta1.CreateFindi" + + "ngRequest\032..google.cloud.securitycenter." + + "v1p1beta1.Finding\"\177\202\323\344\223\002A\"6/v1p1beta1/{p" + + "arent=organizations/*/sources/*}/finding" + + "s:\007finding\332A\031parent,finding_id,finding\332A" + + "\031parent,finding,finding_id\022\270\002\n\030CreateNot" + + "ificationConfig\022F.google.cloud.securityc" + + "enter.v1p1beta1.CreateNotificationConfig" + + "Request\0329.google.cloud.securitycenter.v1" + + "p1beta1.NotificationConfig\"\230\001\202\323\344\223\002N\"7/v1" + + "p1beta1/{parent=organizations/*}/notific" + + "ationConfigs:\023notification_config\332A$pare" + + "nt,config_id,notification_config\332A\032paren" + + "t,notification_config\022\302\001\n\030DeleteNotifica" + + "tionConfig\022F.google.cloud.securitycenter" + + ".v1p1beta1.DeleteNotificationConfigReque" + + "st\032\026.google.protobuf.Empty\"F\202\323\344\223\0029*7/v1p" + + "1beta1/{name=organizations/*/notificatio" + + "nConfigs/*}\332A\004name\022\235\001\n\014GetIamPolicy\022\".go" + + "ogle.iam.v1.GetIamPolicyRequest\032\025.google" + + ".iam.v1.Policy\"R\202\323\344\223\002A\"\"9/v1p1beta1/{name=folders/*/source" + + "s/*/findings/*}:setState:\001*Z?\":/v1p1beta" + + "1/{name=projects/*/sources/*/findings/*}" + + ":setState:\001*\332A\025name,state,start_time\022\244\001\n" + + "\014SetIamPolicy\022\".google.iam.v1.SetIamPoli" + + "cyRequest\032\025.google.iam.v1.Policy\"Y\202\323\344\223\002A" + + "\"/v1p1bet" + + "a1/{finding.name=organizations/*/sources" + + "/*/findings/*}:\007findingZC28/v1p1beta1/{f" + + "inding.name=folders/*/sources/*/findings" + + "/*}:\007findingZD29/v1p1beta1/{finding.name" + + "=projects/*/sources/*/findings/*}:\007findi" + + "ng\332A\007finding\332A\023finding,update_mask\022\300\002\n\030U" + + "pdateNotificationConfig\022F.google.cloud.s" + + "ecuritycenter.v1p1beta1.UpdateNotificati" + + "onConfigRequest\0329.google.cloud.securityc" + + "enter.v1p1beta1.NotificationConfig\"\240\001\202\323\344" + + "\223\002b2K/v1p1beta1/{notification_config.nam" + + "e=organizations/*/notificationConfigs/*}" + + ":\023notification_config\332A\023notification_con" + + "fig\332A\037notification_config,update_mask\022\251\002" + + "\n\032UpdateOrganizationSettings\022H.google.cl" + + "oud.securitycenter.v1p1beta1.UpdateOrgan" + + "izationSettingsRequest\032;.google.cloud.se" + + "curitycenter.v1p1beta1.OrganizationSetti" + + "ngs\"\203\001\202\323\344\223\002e2L/v1p1beta1/{organization_s" + + "ettings.name=organizations/*/organizatio" + + "nSettings}:\025organization_settings\332A\025orga" + + "nization_settings\022\333\001\n\014UpdateSource\022:.goo" + + "gle.cloud.securitycenter.v1p1beta1.Updat" + + "eSourceRequest\032-.google.cloud.securityce" + + "nter.v1p1beta1.Source\"`\202\323\344\223\002<22/v1p1beta" + + "1/{source.name=organizations/*/sources/*" + + "}:\006source\332A\006source\332A\022source,update_mask\022" + + "\364\005\n\023UpdateSecurityMarks\022A.google.cloud.s" + + "ecuritycenter.v1p1beta1.UpdateSecurityMa" + + "rksRequest\0324.google.cloud.securitycenter" + + ".v1p1beta1.SecurityMarks\"\343\004\202\323\344\223\002\256\0042G/v1p" + + "1beta1/{security_marks.name=organization" + + "s/*/assets/*/securityMarks}:\016security_ma" + + "rksZS2A/v1p1beta1/{security_marks.name=f" + + "olders/*/assets/*/securityMarks}:\016securi" + + "ty_marksZT2B/v1p1beta1/{security_marks.n" + + "ame=projects/*/assets/*/securityMarks}:\016" + + "security_marksZe2S/v1p1beta1/{security_m" + + "arks.name=organizations/*/sources/*/find" + + "ings/*/securityMarks}:\016security_marksZ_2" + + "M/v1p1beta1/{security_marks.name=folders" + + "/*/sources/*/findings/*/securityMarks}:\016" + + "security_marksZ`2N/v1p1beta1/{security_m" + + "arks.name=projects/*/sources/*/findings/" + + "*/securityMarks}:\016security_marks\332A\016secur" + + "ity_marks\332A\032security_marks,update_mask\032Q" + + "\312A\035securitycenter.googleapis.com\322A.https" + + "://www.googleapis.com/auth/cloud-platfor" + + "mB\375\001\n)com.google.cloud.securitycenter.v1" + + "p1beta1P\001ZSgoogle.golang.org/genproto/go" + + "ogleapis/cloud/securitycenter/v1p1beta1;" + + "securitycenter\252\002%Google.Cloud.SecurityCe" + + "nter.V1P1Beta1\312\002%Google\\Cloud\\SecurityCe" + + "nter\\V1p1beta1\352\002(Google::Cloud::Security" + + "Center::V1p1beta1P\000P\001b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass + .getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass + .getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass + .getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass + .getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_CreateFindingRequest_descriptor, + new java.lang.String[] { + "Parent", "FindingId", "Finding", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_CreateNotificationConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "ConfigId", "NotificationConfig", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_CreateSourceRequest_descriptor, + new java.lang.String[] { + "Parent", "Source", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_DeleteNotificationConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_GetNotificationConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_GetOrganizationSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_GetSourceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "GroupBy", "CompareDuration", "ReadTime", "PageToken", "PageSize", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_GroupAssetsResponse_descriptor, + new java.lang.String[] { + "GroupByResults", "ReadTime", "NextPageToken", "TotalSize", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "GroupBy", "ReadTime", "CompareDuration", "PageToken", "PageSize", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_GroupFindingsResponse_descriptor, + new java.lang.String[] { + "GroupByResults", "ReadTime", "NextPageToken", "TotalSize", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor, + new java.lang.String[] { + "Properties", "Count", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_GroupResult_PropertiesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListNotificationConfigsResponse_descriptor, + new java.lang.String[] { + "NotificationConfigs", "NextPageToken", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListSourcesResponse_descriptor, + new java.lang.String[] { + "Sources", "NextPageToken", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsRequest_descriptor, + new java.lang.String[] { + "Parent", + "Filter", + "OrderBy", + "ReadTime", + "CompareDuration", + "FieldMask", + "PageToken", + "PageSize", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor, + new java.lang.String[] { + "ListAssetsResults", "ReadTime", "NextPageToken", "TotalSize", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListAssetsResponse_ListAssetsResult_descriptor, + new java.lang.String[] { + "Asset", "StateChange", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsRequest_descriptor, + new java.lang.String[] { + "Parent", + "Filter", + "OrderBy", + "ReadTime", + "CompareDuration", + "FieldMask", + "PageToken", + "PageSize", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor, + new java.lang.String[] { + "ListFindingsResults", "ReadTime", "NextPageToken", "TotalSize", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor, + new java.lang.String[] { + "Finding", "StateChange", "Resource", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor = + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_ListFindingsResponse_ListFindingsResult_Resource_descriptor, + new java.lang.String[] { + "Name", + "ProjectName", + "ProjectDisplayName", + "ParentName", + "ParentDisplayName", + "Folders", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor, + new java.lang.String[] { + "Name", "State", "StartTime", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_RunAssetDiscoveryRequest_descriptor, + new java.lang.String[] { + "Parent", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor, + new java.lang.String[] { + "Finding", "UpdateMask", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor, + new java.lang.String[] { + "NotificationConfig", "UpdateMask", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor, + new java.lang.String[] { + "OrganizationSettings", "UpdateMask", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor, + new java.lang.String[] { + "Source", "UpdateMask", + }); + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor, + new java.lang.String[] { + "SecurityMarks", "UpdateMask", "StartTime", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.cloud.securitycenter.v1p1beta1.NotificationMessageOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponseOuterClass.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.FindingOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.FolderProto.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequest.java similarity index 65% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequest.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequest.java index 4ebf2246d..6d55b2a19 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Request message for updating a finding's state.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest} */ -public final class SetFindingStateRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SetFindingStateRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) SetFindingStateRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SetFindingStateRequest.newBuilder() to construct. private SetFindingStateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SetFindingStateRequest() { name_ = ""; state_ = 0; @@ -26,16 +44,15 @@ private SetFindingStateRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SetFindingStateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SetFindingStateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,42 @@ private SetFindingStateRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - state_ = rawValue; - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); + name_ = s; + break; } - startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); + case 16: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,29 +114,33 @@ private SetFindingStateRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.class, com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.class, + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -123,7 +148,10 @@ private SetFindingStateRequest(
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -132,14 +160,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -147,17 +176,18 @@ public java.lang.String getName() {
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -168,38 +198,57 @@ public java.lang.String getName() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** + * + * *
    * Required. The desired State of the finding.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Required. The desired State of the finding.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() { + @java.lang.Override + public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.Finding.State result = com.google.cloud.securitycenter.v1p1beta1.Finding.State.valueOf(state_); - return result == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.State.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1p1beta1.Finding.State result = + com.google.cloud.securitycenter.v1p1beta1.Finding.State.valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1p1beta1.Finding.State.UNRECOGNIZED + : result; } public static final int START_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -207,11 +256,15 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The startTime. */ @java.lang.Override @@ -219,11 +272,14 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -231,6 +287,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,12 +299,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (state_ != com.google.cloud.securitycenter.v1p1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.securitycenter.v1p1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } if (startTime_ != null) { @@ -265,13 +322,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (state_ != com.google.cloud.securitycenter.v1p1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); + if (state_ + != com.google.cloud.securitycenter.v1p1beta1.Finding.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -281,20 +337,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest other = (com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) obj; + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest other = + (com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (state_ != other.state_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -321,117 +376,127 @@ public int hashCode() { } public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for updating a finding's state.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.class, com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.class, + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.newBuilder() @@ -439,16 +504,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -466,13 +530,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_SetFindingStateRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.getDefaultInstance(); } @@ -487,7 +552,8 @@ public com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest build() @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest result = new com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest(this); + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest result = + new com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest(this); result.name_ = name_; result.state_ = state_; if (startTimeBuilder_ == null) { @@ -503,46 +569,50 @@ public com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest other) { + if (other + == com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -572,7 +642,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -584,6 +656,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -591,14 +665,16 @@ public Builder mergeFrom(
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -607,6 +683,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -614,16 +692,17 @@ public java.lang.String getName() {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -631,6 +710,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -638,21 +719,25 @@ public java.lang.String getName() {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -660,16 +745,21 @@ public Builder setName(
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The relative resource name of the finding. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -677,17 +767,19 @@ public Builder clearName() {
      * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -695,51 +787,75 @@ public Builder setNameBytes( private int state_ = 0; /** + * + * *
      * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.securitycenter.v1p1beta1.Finding.State result = com.google.cloud.securitycenter.v1p1beta1.Finding.State.valueOf(state_); - return result == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.State.UNRECOGNIZED : result; + com.google.cloud.securitycenter.v1p1beta1.Finding.State result = + com.google.cloud.securitycenter.v1p1beta1.Finding.State.valueOf(state_); + return result == null + ? com.google.cloud.securitycenter.v1p1beta1.Finding.State.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -747,21 +863,26 @@ public Builder setState(com.google.cloud.securitycenter.v1p1beta1.Finding.State if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The desired State of the finding.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -769,24 +890,35 @@ public Builder clearState() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -797,11 +929,14 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -817,14 +952,16 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -835,17 +972,20 @@ public Builder setStartTime( return this; } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -857,11 +997,14 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -875,55 +1018,66 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * Required. The time at which the updated state takes effect.
      * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -933,30 +1087,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) - private static final com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest DEFAULT_INSTANCE; + private static final com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest(); } - public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest getDefaultInstance() { + public static com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetFindingStateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetFindingStateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetFindingStateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetFindingStateRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -968,9 +1124,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequestOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequestOrBuilder.java index 9b04df1ff..6866d87d0 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequestOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SetFindingStateRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface SetFindingStateRequestOrBuilder extends +public interface SetFindingStateRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -15,11 +33,16 @@ public interface SetFindingStateRequestOrBuilder extends
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The relative resource name of the finding. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -27,55 +50,78 @@ public interface SetFindingStateRequestOrBuilder extends
    * "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The desired State of the finding.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Required. The desired State of the finding.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The state. */ com.google.cloud.securitycenter.v1p1beta1.Finding.State getState(); /** + * + * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Required. The time at which the updated state takes effect.
    * 
* - * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java similarity index 76% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java index 2766bbd89..dd86e993b 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/Source.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/source.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Security Command Center finding source. A finding source
  * is an entity or a mechanism that can produce a finding. A source is like a
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Source}
  */
-public final class Source extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Source extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.Source)
     SourceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Source.newBuilder() to construct.
   private Source(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Source() {
     name_ = "";
     displayName_ = "";
@@ -30,16 +48,15 @@ private Source() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Source();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Source(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,37 +75,41 @@ private Source(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              displayName_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          case 114: {
-            java.lang.String s = input.readStringRequireUtf8();
+              description_ = s;
+              break;
+            }
+          case 114:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            canonicalName_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              canonicalName_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -96,29 +117,33 @@ private Source(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass
+        .internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Source_fieldAccessorTable
+    return com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass
+        .internal_static_google_cloud_securitycenter_v1p1beta1_Source_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.securitycenter.v1p1beta1.Source.class, com.google.cloud.securitycenter.v1p1beta1.Source.Builder.class);
+            com.google.cloud.securitycenter.v1p1beta1.Source.class,
+            com.google.cloud.securitycenter.v1p1beta1.Source.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -127,6 +152,7 @@ private Source(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -135,14 +161,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -151,16 +178,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -171,6 +197,8 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -180,6 +208,7 @@ public java.lang.String getName() {
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -188,14 +217,15 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -205,16 +235,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -225,6 +254,8 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -236,6 +267,7 @@ public java.lang.String getDisplayName() {
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -244,14 +276,15 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -263,16 +296,15 @@ public java.lang.String getDescription() {
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -283,6 +315,8 @@ public java.lang.String getDescription() { public static final int CANONICAL_NAME_FIELD_NUMBER = 14; private volatile java.lang.Object canonicalName_; /** + * + * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}",
@@ -293,6 +327,7 @@ public java.lang.String getDescription() {
    * 
* * string canonical_name = 14; + * * @return The canonicalName. */ @java.lang.Override @@ -301,14 +336,15 @@ public java.lang.String getCanonicalName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; } } /** + * + * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}",
@@ -319,16 +355,15 @@ public java.lang.String getCanonicalName() {
    * 
* * string canonical_name = 14; + * * @return The bytes for canonicalName. */ @java.lang.Override - public com.google.protobuf.ByteString - getCanonicalNameBytes() { + public com.google.protobuf.ByteString getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -337,6 +372,7 @@ public java.lang.String getCanonicalName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -348,8 +384,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -391,21 +426,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.Source)) { return super.equals(obj); } - com.google.cloud.securitycenter.v1p1beta1.Source other = (com.google.cloud.securitycenter.v1p1beta1.Source) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getCanonicalName() - .equals(other.getCanonicalName())) return false; + com.google.cloud.securitycenter.v1p1beta1.Source other = + (com.google.cloud.securitycenter.v1p1beta1.Source) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getCanonicalName().equals(other.getCanonicalName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -430,97 +462,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.securitycenter.v1p1beta1.Source parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.securitycenter.v1p1beta1.Source parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.Source parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.securitycenter.v1p1beta1.Source parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.Source prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Security Command Center finding source. A finding source
    * is an entity or a mechanism that can produce a finding. A source is like a
@@ -529,21 +568,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Source}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.Source)
       com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Source_fieldAccessorTable
+      return com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_Source_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.securitycenter.v1p1beta1.Source.class, com.google.cloud.securitycenter.v1p1beta1.Source.Builder.class);
+              com.google.cloud.securitycenter.v1p1beta1.Source.class,
+              com.google.cloud.securitycenter.v1p1beta1.Source.Builder.class);
     }
 
     // Construct using com.google.cloud.securitycenter.v1p1beta1.Source.newBuilder()
@@ -551,16 +592,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -576,9 +616,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass.internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.securitycenter.v1p1beta1.SourceOuterClass
+          .internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor;
     }
 
     @java.lang.Override
@@ -597,7 +637,8 @@ public com.google.cloud.securitycenter.v1p1beta1.Source build() {
 
     @java.lang.Override
     public com.google.cloud.securitycenter.v1p1beta1.Source buildPartial() {
-      com.google.cloud.securitycenter.v1p1beta1.Source result = new com.google.cloud.securitycenter.v1p1beta1.Source(this);
+      com.google.cloud.securitycenter.v1p1beta1.Source result =
+          new com.google.cloud.securitycenter.v1p1beta1.Source(this);
       result.name_ = name_;
       result.displayName_ = displayName_;
       result.description_ = description_;
@@ -610,38 +651,39 @@ public com.google.cloud.securitycenter.v1p1beta1.Source buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.securitycenter.v1p1beta1.Source) {
-        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Source)other);
+        return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Source) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -649,7 +691,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Source other) {
-      if (other == com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance()) return this;
+      if (other == com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -697,6 +740,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -705,13 +750,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -720,6 +765,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -728,15 +775,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -744,6 +790,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -752,20 +800,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -774,15 +824,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The relative resource name of this source. See:
      * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -791,16 +844,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -808,6 +861,8 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -817,13 +872,13 @@ public Builder setNameBytes(
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -832,6 +887,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -841,15 +898,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -857,6 +913,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -866,20 +924,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -889,15 +949,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * The source's display name.
      * A source's display name must be unique amongst its siblings, for example,
@@ -907,16 +970,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -924,6 +987,8 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -935,13 +1000,13 @@ public Builder setDisplayNameBytes(
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -950,6 +1015,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -961,15 +1028,14 @@ public java.lang.String getDescription() {
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -977,6 +1043,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -988,20 +1056,22 @@ public java.lang.String getDescription() {
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -1013,15 +1083,18 @@ public Builder setDescription(
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * The description of the source (max of 1024 characters).
      * Example:
@@ -1033,16 +1106,16 @@ public Builder clearDescription() {
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1050,6 +1123,8 @@ public Builder setDescriptionBytes( private java.lang.Object canonicalName_ = ""; /** + * + * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}",
@@ -1060,13 +1135,13 @@ public Builder setDescriptionBytes(
      * 
* * string canonical_name = 14; + * * @return The canonicalName. */ public java.lang.String getCanonicalName() { java.lang.Object ref = canonicalName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; @@ -1075,6 +1150,8 @@ public java.lang.String getCanonicalName() { } } /** + * + * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}",
@@ -1085,15 +1162,14 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 14; + * * @return The bytes for canonicalName. */ - public com.google.protobuf.ByteString - getCanonicalNameBytes() { + public com.google.protobuf.ByteString getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalName_ = b; return b; } else { @@ -1101,6 +1177,8 @@ public java.lang.String getCanonicalName() { } } /** + * + * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}",
@@ -1111,20 +1189,22 @@ public java.lang.String getCanonicalName() {
      * 
* * string canonical_name = 14; + * * @param value The canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalName( - java.lang.String value) { + public Builder setCanonicalName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + canonicalName_ = value; onChanged(); return this; } /** + * + * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}",
@@ -1135,15 +1215,18 @@ public Builder setCanonicalName(
      * 
* * string canonical_name = 14; + * * @return This builder for chaining. */ public Builder clearCanonicalName() { - + canonicalName_ = getDefaultInstance().getCanonicalName(); onChanged(); return this; } /** + * + * *
      * The canonical name of the finding. It's either
      * "organizations/{organization_id}/sources/{source_id}",
@@ -1154,23 +1237,23 @@ public Builder clearCanonicalName() {
      * 
* * string canonical_name = 14; + * * @param value The bytes for canonicalName to set. * @return This builder for chaining. */ - public Builder setCanonicalNameBytes( - com.google.protobuf.ByteString value) { + public Builder setCanonicalNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1180,12 +1263,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.Source) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.Source) private static final com.google.cloud.securitycenter.v1p1beta1.Source DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.Source(); } @@ -1194,16 +1277,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.Source getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Source parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Source(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Source parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Source(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1218,6 +1301,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.securitycenter.v1p1beta1.Source getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceName.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceName.java similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceName.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceName.java diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java similarity index 79% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java index a67dfe453..033f30839 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/source.proto package com.google.cloud.securitycenter.v1p1beta1; -public interface SourceOrBuilder extends +public interface SourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.Source) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -16,10 +34,13 @@ public interface SourceOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The relative resource name of this source. See:
    * https://cloud.google.com/apis/design/resource_names#relative_resource_name
@@ -28,12 +49,14 @@ public interface SourceOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -43,10 +66,13 @@ public interface SourceOrBuilder extends
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The source's display name.
    * A source's display name must be unique amongst its siblings, for example,
@@ -56,12 +82,14 @@ public interface SourceOrBuilder extends
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -73,10 +101,13 @@ public interface SourceOrBuilder extends
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * The description of the source (max of 1024 characters).
    * Example:
@@ -88,12 +119,14 @@ public interface SourceOrBuilder extends
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}",
@@ -104,10 +137,13 @@ public interface SourceOrBuilder extends
    * 
* * string canonical_name = 14; + * * @return The canonicalName. */ java.lang.String getCanonicalName(); /** + * + * *
    * The canonical name of the finding. It's either
    * "organizations/{organization_id}/sources/{source_id}",
@@ -118,8 +154,8 @@ public interface SourceOrBuilder extends
    * 
* * string canonical_name = 14; + * * @return The bytes for canonicalName. */ - com.google.protobuf.ByteString - getCanonicalNameBytes(); + com.google.protobuf.ByteString getCanonicalNameBytes(); } diff --git a/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOuterClass.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOuterClass.java new file mode 100644 index 000000000..0f1b1786b --- /dev/null +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/SourceOuterClass.java @@ -0,0 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1p1beta1/source.proto + +package com.google.cloud.securitycenter.v1p1beta1; + +public final class SourceOuterClass { + private SourceOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1p1beta1_Source_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/securitycenter/v1p1beta1/" + + "source.proto\022%google.cloud.securitycente" + + "r.v1p1beta1\032\031google/api/resource.proto\032\034" + + "google/api/annotations.proto\"\375\001\n\006Source\022" + + "\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013d" + + "escription\030\003 \001(\t\022\026\n\016canonical_name\030\016 \001(\t" + + ":\241\001\352A\235\001\n$securitycenter.googleapis.com/S" + + "ource\022-organizations/{organization}/sour" + + "ces/{source}\022!folders/{folder}/sources/{" + + "source}\022#projects/{project}/sources/{sou" + + "rce}B\375\001\n)com.google.cloud.securitycenter" + + ".v1p1beta1P\001ZSgoogle.golang.org/genproto" + + "/googleapis/cloud/securitycenter/v1p1bet" + + "a1;securitycenter\252\002%Google.Cloud.Securit" + + "yCenter.V1P1Beta1\312\002%Google\\Cloud\\Securit" + + "yCenter\\V1p1beta1\352\002(Google::Cloud::Secur" + + "ityCenter::V1p1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1p1beta1_Source_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1p1beta1_Source_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Description", "CanonicalName", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java similarity index 71% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java index d13ec035c..3e79c75a3 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java +++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto package com.google.cloud.securitycenter.v1p1beta1; /** + * + * *
  * Request message for updating or creating a finding.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest} */ -public final class UpdateFindingRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateFindingRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest) UpdateFindingRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateFindingRequest.newBuilder() to construct. private UpdateFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateFindingRequest() { - } + + private UpdateFindingRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,45 @@ private UpdateFindingRequest( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1p1beta1.Finding.Builder subBuilder = null; - if (finding_ != null) { - subBuilder = finding_.toBuilder(); - } - finding_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Finding.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(finding_); - finding_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.securitycenter.v1p1beta1.Finding.Builder subBuilder = null; + if (finding_ != null) { + subBuilder = finding_.toBuilder(); + } + finding_ = + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.Finding.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finding_); + finding_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +114,33 @@ private UpdateFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.class, com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.class, + com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.Builder.class); } public static final int FINDING_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1p1beta1.Finding finding_; /** + * + * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -123,7 +149,10 @@ private UpdateFindingRequest(
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the finding field is set. */ @java.lang.Override @@ -131,6 +160,8 @@ public boolean hasFinding() { return finding_ != null; } /** + * + * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -139,14 +170,21 @@ public boolean hasFinding() {
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The finding. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { - return finding_ == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() + : finding_; } /** + * + * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -155,7 +193,9 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() {
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder() { @@ -165,6 +205,8 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -175,6 +217,7 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -182,6 +225,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -192,6 +237,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -199,6 +245,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -216,6 +264,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -227,8 +276,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (finding_ != null) {
       output.writeMessage(1, getFinding());
     }
@@ -245,12 +293,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (finding_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getFinding());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFinding());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -260,22 +306,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest other = (com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest) obj;
+    com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest other =
+        (com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest) obj;
 
     if (hasFinding() != other.hasFinding()) return false;
     if (hasFinding()) {
-      if (!getFinding()
-          .equals(other.getFinding())) return false;
+      if (!getFinding().equals(other.getFinding())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -302,117 +347,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for updating or creating a finding.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest) com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.class, com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.class, + com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.newBuilder() @@ -420,16 +475,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -449,13 +503,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateFindingRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.getDefaultInstance(); } @@ -470,7 +525,8 @@ public com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest result = new com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest(this); + com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest result = + new com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest(this); if (findingBuilder_ == null) { result.finding_ = finding_; } else { @@ -489,38 +545,39 @@ public com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest) other); } else { super.mergeFrom(other); return this; @@ -528,7 +585,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.getDefaultInstance()) + return this; if (other.hasFinding()) { mergeFinding(other.getFinding()); } @@ -554,7 +613,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -566,8 +627,13 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1p1beta1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> findingBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Finding, + com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, + com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> + findingBuilder_; /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -576,13 +642,18 @@ public Builder mergeFrom(
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the finding field is set. */ public boolean hasFinding() { return findingBuilder_ != null || finding_ != null; } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -591,17 +662,24 @@ public boolean hasFinding() {
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The finding. */ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() { if (findingBuilder_ == null) { - return finding_ == null ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() + : finding_; } else { return findingBuilder_.getMessage(); } } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -610,7 +688,9 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding getFinding() {
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFinding(com.google.cloud.securitycenter.v1p1beta1.Finding value) { if (findingBuilder_ == null) { @@ -626,6 +706,8 @@ public Builder setFinding(com.google.cloud.securitycenter.v1p1beta1.Finding valu return this; } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -634,7 +716,9 @@ public Builder setFinding(com.google.cloud.securitycenter.v1p1beta1.Finding valu
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFinding( com.google.cloud.securitycenter.v1p1beta1.Finding.Builder builderForValue) { @@ -648,6 +732,8 @@ public Builder setFinding( return this; } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -656,13 +742,17 @@ public Builder setFinding(
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFinding(com.google.cloud.securitycenter.v1p1beta1.Finding value) { if (findingBuilder_ == null) { if (finding_ != null) { finding_ = - com.google.cloud.securitycenter.v1p1beta1.Finding.newBuilder(finding_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.Finding.newBuilder(finding_) + .mergeFrom(value) + .buildPartial(); } else { finding_ = value; } @@ -674,6 +764,8 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1p1beta1.Finding va return this; } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -682,7 +774,9 @@ public Builder mergeFinding(com.google.cloud.securitycenter.v1p1beta1.Finding va
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFinding() { if (findingBuilder_ == null) { @@ -696,6 +790,8 @@ public Builder clearFinding() { return this; } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -704,14 +800,18 @@ public Builder clearFinding() {
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1p1beta1.Finding.Builder getFindingBuilder() { - + onChanged(); return getFindingFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -720,17 +820,22 @@ public com.google.cloud.securitycenter.v1p1beta1.Finding.Builder getFindingBuild
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder() { if (findingBuilder_ != null) { return findingBuilder_.getMessageOrBuilder(); } else { - return finding_ == null ? - com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() : finding_; + return finding_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Finding.getDefaultInstance() + : finding_; } } /** + * + * *
      * Required. The finding resource to update or create if it does not already exist.
      * parent, security_marks, and update_time will be ignored.
@@ -739,17 +844,22 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu
      * characters in length.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.Finding, + com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, + com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder> getFindingFieldBuilder() { if (findingBuilder_ == null) { - findingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Finding, com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder>( - getFinding(), - getParentForChildren(), - isClean()); + findingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Finding, + com.google.cloud.securitycenter.v1p1beta1.Finding.Builder, + com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder>( + getFinding(), getParentForChildren(), isClean()); finding_ = null; } return findingBuilder_; @@ -757,8 +867,13 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -769,12 +884,15 @@ public com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBu
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -785,16 +903,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -820,6 +943,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -831,8 +956,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -843,6 +967,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -858,7 +984,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -870,6 +996,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -893,6 +1021,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -905,11 +1035,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -925,11 +1057,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the finding resource. This field should
      * not be specified when creating a finding.
@@ -942,21 +1077,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -966,30 +1104,32 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest)
-  private static final com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest();
   }
 
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest getDefaultInstance() {
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateFindingRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateFindingRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateFindingRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateFindingRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1001,9 +1141,8 @@ public com.google.protobuf.Parser getParserForType() {
   }
 
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest getDefaultInstanceForType() {
+  public com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequestOrBuilder.java
similarity index 74%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequestOrBuilder.java
rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequestOrBuilder.java
index 2ee39ff1e..0a1be18fa 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateFindingRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1p1beta1;
 
-public interface UpdateFindingRequestOrBuilder extends
+public interface UpdateFindingRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -16,11 +34,16 @@ public interface UpdateFindingRequestOrBuilder extends
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the finding field is set. */ boolean hasFinding(); /** + * + * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -29,11 +52,16 @@ public interface UpdateFindingRequestOrBuilder extends
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The finding. */ com.google.cloud.securitycenter.v1p1beta1.Finding getFinding(); /** + * + * *
    * Required. The finding resource to update or create if it does not already exist.
    * parent, security_marks, and update_time will be ignored.
@@ -42,11 +70,15 @@ public interface UpdateFindingRequestOrBuilder extends
    * characters in length.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1p1beta1.FindingOrBuilder getFindingOrBuilder(); /** + * + * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -57,10 +89,13 @@ public interface UpdateFindingRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
@@ -71,10 +106,13 @@ public interface UpdateFindingRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the finding resource. This field should
    * not be specified when creating a finding.
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java
similarity index 62%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java
rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java
index ac59fae40..996d643f1 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequest.java
@@ -1,39 +1,56 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1p1beta1;
 
 /**
+ *
+ *
  * 
  * Request message for updating a notification config.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest} */ -public final class UpdateNotificationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) UpdateNotificationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateNotificationConfigRequest.newBuilder() to construct. - private UpdateNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateNotificationConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateNotificationConfigRequest() { - } + + private UpdateNotificationConfigRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateNotificationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateNotificationConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +69,46 @@ private UpdateNotificationConfigRequest( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder subBuilder = null; - if (notificationConfig_ != null) { - subBuilder = notificationConfig_.toBuilder(); - } - notificationConfig_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(notificationConfig_); - notificationConfig_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder subBuilder = + null; + if (notificationConfig_ != null) { + subBuilder = notificationConfig_.toBuilder(); + } + notificationConfig_ = + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(notificationConfig_); + notificationConfig_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +116,42 @@ private UpdateNotificationConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.class, com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.class, + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.Builder + .class); } public static final int NOTIFICATION_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1p1beta1.NotificationConfig notificationConfig_; /** + * + * *
    * Required. The notification config to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the notificationConfig field is set. */ @java.lang.Override @@ -127,38 +159,53 @@ public boolean hasNotificationConfig() { return notificationConfig_ != null; } /** + * + * *
    * Required. The notification config to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationConfig. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig() { - return notificationConfig_ == null ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() : notificationConfig_; + return notificationConfig_ == null + ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() + : notificationConfig_; } /** + * + * *
    * Required. The notification config to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder + getNotificationConfigOrBuilder() { return getNotificationConfig(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -166,12 +213,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -179,6 +229,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
@@ -192,6 +244,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -203,8 +256,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (notificationConfig_ != null) {
       output.writeMessage(1, getNotificationConfig());
     }
@@ -221,12 +273,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (notificationConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getNotificationConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNotificationConfig());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -236,22 +286,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest)) {
+    if (!(obj
+        instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest other = (com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) obj;
+    com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest other =
+        (com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) obj;
 
     if (hasNotificationConfig() != other.hasNotificationConfig()) return false;
     if (hasNotificationConfig()) {
-      if (!getNotificationConfig()
-          .equals(other.getNotificationConfig())) return false;
+      if (!getNotificationConfig().equals(other.getNotificationConfig())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -278,134 +328,146 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest
+      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest
+      parseDelimitedFrom(
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for updating a notification config.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.class, com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.class, + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.Builder + .class); } - // Construct using com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,19 +487,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateNotificationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest build() { - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest result = buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -445,8 +510,10 @@ public com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest result = new com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest(this); + public com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest + buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest result = + new com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest(this); if (notificationConfigBuilder_ == null) { result.notificationConfig_ = notificationConfig_; } else { @@ -465,46 +532,52 @@ public com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest)other); + if (other + instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) { + return mergeFrom( + (com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest other) { + if (other + == com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest + .getDefaultInstance()) return this; if (other.hasNotificationConfig()) { mergeNotificationConfig(other.getNotificationConfig()); } @@ -526,11 +599,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parsedMessage = null; + com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -542,41 +618,61 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1p1beta1.NotificationConfig notificationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> notificationConfigBuilder_; + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> + notificationConfigBuilder_; /** + * + * *
      * Required. The notification config to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the notificationConfig field is set. */ public boolean hasNotificationConfig() { return notificationConfigBuilder_ != null || notificationConfig_ != null; } /** + * + * *
      * Required. The notification config to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationConfig. */ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig() { if (notificationConfigBuilder_ == null) { - return notificationConfig_ == null ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() : notificationConfig_; + return notificationConfig_ == null + ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() + : notificationConfig_; } else { return notificationConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The notification config to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { + public Builder setNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { if (notificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -590,11 +686,15 @@ public Builder setNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.N return this; } /** + * + * *
      * Required. The notification config to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNotificationConfig( com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder builderForValue) { @@ -608,17 +708,25 @@ public Builder setNotificationConfig( return this; } /** + * + * *
      * Required. The notification config to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeNotificationConfig(com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { + public Builder mergeNotificationConfig( + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig value) { if (notificationConfigBuilder_ == null) { if (notificationConfig_ != null) { notificationConfig_ = - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.newBuilder(notificationConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.newBuilder( + notificationConfig_) + .mergeFrom(value) + .buildPartial(); } else { notificationConfig_ = value; } @@ -630,11 +738,15 @@ public Builder mergeNotificationConfig(com.google.cloud.securitycenter.v1p1beta1 return this; } /** + * + * *
      * Required. The notification config to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNotificationConfig() { if (notificationConfigBuilder_ == null) { @@ -648,48 +760,66 @@ public Builder clearNotificationConfig() { return this; } /** + * + * *
      * Required. The notification config to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder getNotificationConfigBuilder() { - + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder + getNotificationConfigBuilder() { + onChanged(); return getNotificationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The notification config to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder + getNotificationConfigOrBuilder() { if (notificationConfigBuilder_ != null) { return notificationConfigBuilder_.getMessageOrBuilder(); } else { - return notificationConfig_ == null ? - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() : notificationConfig_; + return notificationConfig_ == null + ? com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.getDefaultInstance() + : notificationConfig_; } } /** + * + * *
      * Required. The notification config to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder> getNotificationConfigFieldBuilder() { if (notificationConfigBuilder_ == null) { - notificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder>( - getNotificationConfig(), - getParentForChildren(), - isClean()); + notificationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfig.Builder, + com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder>( + getNotificationConfig(), getParentForChildren(), isClean()); notificationConfig_ = null; } return notificationConfigBuilder_; @@ -697,36 +827,49 @@ public com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder get private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -748,6 +891,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -755,8 +900,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -767,6 +911,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -778,7 +924,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -790,6 +936,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -809,6 +957,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -817,11 +967,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -833,11 +985,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the notification config.
      * If empty all mutable fields will be updated.
@@ -846,21 +1001,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -870,30 +1028,33 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest)
-  private static final com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest
+      DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest();
+    DEFAULT_INSTANCE =
+        new com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest();
   }
 
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest getDefaultInstance() {
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateNotificationConfigRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateNotificationConfigRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateNotificationConfigRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateNotificationConfigRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -905,9 +1066,8 @@ public com.google.protobuf.Parser getParserForT
   }
 
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest getDefaultInstanceForType() {
+  public com.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequestOrBuilder.java
similarity index 58%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequestOrBuilder.java
rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequestOrBuilder.java
index aa07bb40d..43f0016eb 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateNotificationConfigRequestOrBuilder.java
@@ -1,60 +1,99 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1p1beta1;
 
-public interface UpdateNotificationConfigRequestOrBuilder extends
+public interface UpdateNotificationConfigRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The notification config to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the notificationConfig field is set. */ boolean hasNotificationConfig(); /** + * + * *
    * Required. The notification config to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationConfig. */ com.google.cloud.securitycenter.v1p1beta1.NotificationConfig getNotificationConfig(); /** + * + * *
    * Required. The notification config to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder getNotificationConfigOrBuilder(); + com.google.cloud.securitycenter.v1p1beta1.NotificationConfigOrBuilder + getNotificationConfigOrBuilder(); /** + * + * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the notification config.
    * If empty all mutable fields will be updated.
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java
similarity index 59%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java
rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java
index bab359e66..a14666de4 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequest.java
@@ -1,39 +1,56 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1p1beta1;
 
 /**
+ *
+ *
  * 
  * Request message for updating an organization's settings.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest} */ -public final class UpdateOrganizationSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateOrganizationSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) UpdateOrganizationSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateOrganizationSettingsRequest.newBuilder() to construct. - private UpdateOrganizationSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateOrganizationSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateOrganizationSettingsRequest() { - } + + private UpdateOrganizationSettingsRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateOrganizationSettingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateOrganizationSettingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +69,46 @@ private UpdateOrganizationSettingsRequest( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder subBuilder = null; - if (organizationSettings_ != null) { - subBuilder = organizationSettings_.toBuilder(); - } - organizationSettings_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(organizationSettings_); - organizationSettings_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder subBuilder = + null; + if (organizationSettings_ != null) { + subBuilder = organizationSettings_.toBuilder(); + } + organizationSettings_ = + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(organizationSettings_); + organizationSettings_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +116,42 @@ private UpdateOrganizationSettingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.class, + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.Builder + .class); } public static final int ORGANIZATION_SETTINGS_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings organizationSettings_; /** + * + * *
    * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the organizationSettings field is set. */ @java.lang.Override @@ -127,38 +159,53 @@ public boolean hasOrganizationSettings() { return organizationSettings_ != null; } /** + * + * *
    * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The organizationSettings. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getOrganizationSettings() { - return organizationSettings_ == null ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance() : organizationSettings_; + return organizationSettings_ == null + ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance() + : organizationSettings_; } /** + * + * *
    * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder + getOrganizationSettingsOrBuilder() { return getOrganizationSettings(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -166,12 +213,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -179,6 +229,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
@@ -192,6 +244,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -203,8 +256,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (organizationSettings_ != null) {
       output.writeMessage(1, getOrganizationSettings());
     }
@@ -221,12 +273,11 @@ public int getSerializedSize() {
 
     size = 0;
     if (organizationSettings_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getOrganizationSettings());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOrganizationSettings());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -236,22 +287,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest)) {
+    if (!(obj
+        instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest other = (com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) obj;
+    com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest other =
+        (com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) obj;
 
     if (hasOrganizationSettings() != other.hasOrganizationSettings()) return false;
     if (hasOrganizationSettings()) {
-      if (!getOrganizationSettings()
-          .equals(other.getOrganizationSettings())) return false;
+      if (!getOrganizationSettings().equals(other.getOrganizationSettings())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -277,135 +328,152 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
+      parseFrom(java.nio.ByteBuffer data)
+          throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
+      parseFrom(
+          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseFrom(
-      com.google.protobuf.ByteString data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
+      parseFrom(com.google.protobuf.ByteString data)
+          throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseFrom(
-      com.google.protobuf.ByteString data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
+      parseFrom(
+          com.google.protobuf.ByteString data,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
+      parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
+      parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
+      parseFrom(java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
+      parseFrom(
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
+      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
+      parseDelimitedFrom(
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
+      parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parseFrom(
-      com.google.protobuf.CodedInputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
+      parseFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for updating an organization's settings.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.class, com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.class, + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.Builder + .class); } - // Construct using com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,19 +493,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateOrganizationSettingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest build() { - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest result = buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -445,8 +516,10 @@ public com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsReque } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest result = new com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest(this); + public com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest + buildPartial() { + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest result = + new com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest(this); if (organizationSettingsBuilder_ == null) { result.organizationSettings_ = organizationSettings_; } else { @@ -465,46 +538,52 @@ public com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsReque public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest)other); + if (other + instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) { + return mergeFrom( + (com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest other) { + if (other + == com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest + .getDefaultInstance()) return this; if (other.hasOrganizationSettings()) { mergeOrganizationSettings(other.getOrganizationSettings()); } @@ -526,11 +605,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parsedMessage = null; + com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -542,41 +624,62 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings organizationSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder> organizationSettingsBuilder_; + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder> + organizationSettingsBuilder_; /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the organizationSettings field is set. */ public boolean hasOrganizationSettings() { return organizationSettingsBuilder_ != null || organizationSettings_ != null; } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The organizationSettings. */ - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getOrganizationSettings() { + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings + getOrganizationSettings() { if (organizationSettingsBuilder_ == null) { - return organizationSettings_ == null ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance() : organizationSettings_; + return organizationSettings_ == null + ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance() + : organizationSettings_; } else { return organizationSettingsBuilder_.getMessage(); } } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setOrganizationSettings(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings value) { + public Builder setOrganizationSettings( + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings value) { if (organizationSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -590,11 +693,15 @@ public Builder setOrganizationSettings(com.google.cloud.securitycenter.v1p1beta1 return this; } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOrganizationSettings( com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder builderForValue) { @@ -608,17 +715,25 @@ public Builder setOrganizationSettings( return this; } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeOrganizationSettings(com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings value) { + public Builder mergeOrganizationSettings( + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings value) { if (organizationSettingsBuilder_ == null) { if (organizationSettings_ != null) { organizationSettings_ = - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.newBuilder(organizationSettings_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.newBuilder( + organizationSettings_) + .mergeFrom(value) + .buildPartial(); } else { organizationSettings_ = value; } @@ -630,11 +745,15 @@ public Builder mergeOrganizationSettings(com.google.cloud.securitycenter.v1p1bet return this; } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOrganizationSettings() { if (organizationSettingsBuilder_ == null) { @@ -648,48 +767,66 @@ public Builder clearOrganizationSettings() { return this; } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder getOrganizationSettingsBuilder() { - + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder + getOrganizationSettingsBuilder() { + onChanged(); return getOrganizationSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder + getOrganizationSettingsOrBuilder() { if (organizationSettingsBuilder_ != null) { return organizationSettingsBuilder_.getMessageOrBuilder(); } else { - return organizationSettings_ == null ? - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance() : organizationSettings_; + return organizationSettings_ == null + ? com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.getDefaultInstance() + : organizationSettings_; } } /** + * + * *
      * Required. The organization settings resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder> getOrganizationSettingsFieldBuilder() { if (organizationSettingsBuilder_ == null) { - organizationSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder, com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder>( - getOrganizationSettings(), - getParentForChildren(), - isClean()); + organizationSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings.Builder, + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder>( + getOrganizationSettings(), getParentForChildren(), isClean()); organizationSettings_ = null; } return organizationSettingsBuilder_; @@ -697,36 +834,49 @@ public com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder g private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -748,6 +898,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -755,8 +907,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -767,6 +918,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -778,7 +931,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -790,6 +943,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -809,6 +964,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -817,11 +974,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -833,11 +992,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the settings resource.
      * If empty all mutable fields will be updated.
@@ -846,21 +1008,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -870,30 +1035,33 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest)
-  private static final com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
+      DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest();
+    DEFAULT_INSTANCE =
+        new com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest();
   }
 
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest getDefaultInstance() {
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateOrganizationSettingsRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateOrganizationSettingsRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateOrganizationSettingsRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateOrganizationSettingsRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -905,9 +1073,8 @@ public com.google.protobuf.Parser getParserFo
   }
 
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest getDefaultInstanceForType() {
+  public com.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequestOrBuilder.java
similarity index 58%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequestOrBuilder.java
rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequestOrBuilder.java
index e2a402a6c..5d3c5e3c6 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateOrganizationSettingsRequestOrBuilder.java
@@ -1,60 +1,99 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1p1beta1;
 
-public interface UpdateOrganizationSettingsRequestOrBuilder extends
+public interface UpdateOrganizationSettingsRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the organizationSettings field is set. */ boolean hasOrganizationSettings(); /** + * + * *
    * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The organizationSettings. */ com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings getOrganizationSettings(); /** + * + * *
    * Required. The organization settings resource to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.OrganizationSettings organization_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder getOrganizationSettingsOrBuilder(); + com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsOrBuilder + getOrganizationSettingsOrBuilder(); /** + * + * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the settings resource.
    * If empty all mutable fields will be updated.
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java
similarity index 68%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java
rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java
index 89c1c4188..67c65bc21 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequest.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1p1beta1;
 
 /**
+ *
+ *
  * 
  * Request message for updating a SecurityMarks resource.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest} */ -public final class UpdateSecurityMarksRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateSecurityMarksRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest) UpdateSecurityMarksRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateSecurityMarksRequest.newBuilder() to construct. private UpdateSecurityMarksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateSecurityMarksRequest() { - } + + private UpdateSecurityMarksRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateSecurityMarksRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateSecurityMarksRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,52 +68,60 @@ private UpdateSecurityMarksRequest( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder subBuilder = null; - if (securityMarks_ != null) { - subBuilder = securityMarks_.toBuilder(); - } - securityMarks_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(securityMarks_); - securityMarks_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder subBuilder = null; + if (securityMarks_ != null) { + subBuilder = securityMarks_.toBuilder(); + } + securityMarks_ = + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(securityMarks_); + securityMarks_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,34 +129,41 @@ private UpdateSecurityMarksRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.class, com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.class, + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.Builder.class); } public static final int SECURITY_MARKS_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1p1beta1.SecurityMarks securityMarks_; /** + * + * *
    * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the securityMarks field is set. */ @java.lang.Override @@ -140,32 +171,46 @@ public boolean hasSecurityMarks() { return securityMarks_ != null; } /** + * + * *
    * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The securityMarks. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks() { - return securityMarks_ == null ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() + : securityMarks_; } /** + * + * *
    * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder + getSecurityMarksOrBuilder() { return getSecurityMarks(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -174,6 +219,7 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecur
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -181,6 +227,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -189,6 +237,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -196,6 +245,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -213,6 +264,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int START_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Timestamp startTime_;
   /**
+   *
+   *
    * 
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
@@ -220,6 +273,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -227,6 +281,8 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
@@ -234,6 +290,7 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return The startTime. */ @java.lang.Override @@ -241,6 +298,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
@@ -255,6 +314,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -266,8 +326,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (securityMarks_ != null) {
       output.writeMessage(1, getSecurityMarks());
     }
@@ -287,16 +346,13 @@ public int getSerializedSize() {
 
     size = 0;
     if (securityMarks_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getSecurityMarks());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSecurityMarks());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     if (startTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getStartTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -306,27 +362,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest other = (com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest) obj;
+    com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest other =
+        (com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest) obj;
 
     if (hasSecurityMarks() != other.hasSecurityMarks()) return false;
     if (hasSecurityMarks()) {
-      if (!getSecurityMarks()
-          .equals(other.getSecurityMarks())) return false;
+      if (!getSecurityMarks().equals(other.getSecurityMarks())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (hasStartTime() != other.hasStartTime()) return false;
     if (hasStartTime()) {
-      if (!getStartTime()
-          .equals(other.getStartTime())) return false;
+      if (!getStartTime().equals(other.getStartTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -357,134 +411,145 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest
+      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest
+      parseDelimitedFrom(
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for updating a SecurityMarks resource.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest) com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.class, com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.class, + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.Builder.class); } - // Construct using com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.newBuilder() + // Construct using + // com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -510,14 +575,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSecurityMarksRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.getDefaultInstance(); + public com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest + .getDefaultInstance(); } @java.lang.Override @@ -531,7 +598,8 @@ public com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest buil @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest result = new com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest(this); + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest result = + new com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest(this); if (securityMarksBuilder_ == null) { result.securityMarks_ = securityMarks_; } else { @@ -555,46 +623,51 @@ public com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest buil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest)other); + return mergeFrom( + (com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest other) { + if (other + == com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest + .getDefaultInstance()) return this; if (other.hasSecurityMarks()) { mergeSecurityMarks(other.getSecurityMarks()); } @@ -623,7 +696,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -635,39 +710,58 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1p1beta1.SecurityMarks securityMarks_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder> securityMarksBuilder_; + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder> + securityMarksBuilder_; /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return securityMarksBuilder_ != null || securityMarks_ != null; } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The securityMarks. */ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { - return securityMarks_ == null ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() + : securityMarks_; } else { return securityMarksBuilder_.getMessage(); } } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { @@ -683,11 +777,15 @@ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.Securi return this; } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSecurityMarks( com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder builderForValue) { @@ -701,17 +799,24 @@ public Builder setSecurityMarks( return this; } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks value) { + public Builder mergeSecurityMarks( + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { if (securityMarks_ != null) { securityMarks_ = - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.newBuilder(securityMarks_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.newBuilder(securityMarks_) + .mergeFrom(value) + .buildPartial(); } else { securityMarks_ = value; } @@ -723,11 +828,15 @@ public Builder mergeSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.Secu return this; } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSecurityMarks() { if (securityMarksBuilder_ == null) { @@ -741,48 +850,66 @@ public Builder clearSecurityMarks() { return this; } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder getSecurityMarksBuilder() { - + public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder + getSecurityMarksBuilder() { + onChanged(); return getSecurityMarksFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { + public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder + getSecurityMarksOrBuilder() { if (securityMarksBuilder_ != null) { return securityMarksBuilder_.getMessageOrBuilder(); } else { - return securityMarks_ == null ? - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; + return securityMarks_ == null + ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() + : securityMarks_; } } /** + * + * *
      * Required. The security marks resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder> getSecurityMarksFieldBuilder() { if (securityMarksBuilder_ == null) { - securityMarksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder>( - getSecurityMarks(), - getParentForChildren(), - isClean()); + securityMarksBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, + com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, + com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder>( + getSecurityMarks(), getParentForChildren(), isClean()); securityMarks_ = null; } return securityMarksBuilder_; @@ -790,8 +917,13 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecur private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -800,12 +932,15 @@ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecur
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -814,16 +949,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -847,6 +987,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -856,8 +998,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -868,6 +1009,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -881,7 +1024,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -893,6 +1036,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -914,6 +1059,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -924,11 +1071,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -942,11 +1091,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the security marks resource.
      * The field mask must not contain duplicate fields.
@@ -957,14 +1109,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
@@ -972,8 +1127,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
 
     private com.google.protobuf.Timestamp startTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        startTimeBuilder_;
     /**
+     *
+     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -981,12 +1141,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -994,6 +1157,7 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1004,6 +1168,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1026,6 +1192,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1034,8 +1202,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp start_time = 3;
      */
-    public Builder setStartTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
         onChanged();
@@ -1046,6 +1213,8 @@ public Builder setStartTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1058,7 +1227,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       if (startTimeBuilder_ == null) {
         if (startTime_ != null) {
           startTime_ =
-            com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
         } else {
           startTime_ = value;
         }
@@ -1070,6 +1239,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1090,6 +1261,8 @@ public Builder clearStartTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1099,11 +1272,13 @@ public Builder clearStartTime() {
      * .google.protobuf.Timestamp start_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
-      
+
       onChanged();
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1116,11 +1291,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
       if (startTimeBuilder_ != null) {
         return startTimeBuilder_.getMessageOrBuilder();
       } else {
-        return startTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time at which the updated SecurityMarks take effect.
      * If not set uses current server time.  Updates will be applied to the
@@ -1130,21 +1306,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * .google.protobuf.Timestamp start_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getStartTimeFieldBuilder() {
       if (startTimeBuilder_ == null) {
-        startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getStartTime(),
-                getParentForChildren(),
-                isClean());
+        startTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getStartTime(), getParentForChildren(), isClean());
         startTime_ = null;
       }
       return startTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1154,30 +1333,32 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest)
-  private static final com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest();
   }
 
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest getDefaultInstance() {
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateSecurityMarksRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateSecurityMarksRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateSecurityMarksRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateSecurityMarksRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1189,9 +1370,8 @@ public com.google.protobuf.Parser getParserForType()
   }
 
   @java.lang.Override
-  public com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest getDefaultInstanceForType() {
+  public com.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequestOrBuilder.java
similarity index 73%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequestOrBuilder.java
rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequestOrBuilder.java
index d9e67fdb0..e2a432975 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSecurityMarksRequestOrBuilder.java
@@ -1,40 +1,72 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1p1beta1;
 
-public interface UpdateSecurityMarksRequestOrBuilder extends
+public interface UpdateSecurityMarksRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the securityMarks field is set. */ boolean hasSecurityMarks(); /** + * + * *
    * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The securityMarks. */ com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks(); /** + * + * *
    * Required. The security marks resource to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder(); /** + * + * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -43,10 +75,13 @@ public interface UpdateSecurityMarksRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -55,10 +90,13 @@ public interface UpdateSecurityMarksRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the security marks resource.
    * The field mask must not contain duplicate fields.
@@ -71,6 +109,8 @@ public interface UpdateSecurityMarksRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
@@ -78,10 +118,13 @@ public interface UpdateSecurityMarksRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
@@ -89,10 +132,13 @@ public interface UpdateSecurityMarksRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp start_time = 3; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * The time at which the updated SecurityMarks take effect.
    * If not set uses current server time.  Updates will be applied to the
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java
similarity index 66%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java
rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java
index 5b6342e92..61a252d1b 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequest.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1p1beta1;
 
 /**
+ *
+ *
  * 
  * Request message for updating a source.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest} */ -public final class UpdateSourceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateSourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest) UpdateSourceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateSourceRequest.newBuilder() to construct. private UpdateSourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateSourceRequest() { - } + + private UpdateSourceRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateSourceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateSourceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateSourceRequest( case 0: done = true; break; - case 10: { - com.google.cloud.securitycenter.v1p1beta1.Source.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); - } - source_ = input.readMessage(com.google.cloud.securitycenter.v1p1beta1.Source.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.securitycenter.v1p1beta1.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.securitycenter.v1p1beta1.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +113,41 @@ private UpdateSourceRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.class, com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.class, + com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.Builder.class); } public static final int SOURCE_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1p1beta1.Source source_; /** + * + * *
    * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the source field is set. */ @java.lang.Override @@ -127,23 +155,34 @@ public boolean hasSource() { return source_ != null; } /** + * + * *
    * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The source. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Source getSource() { - return source_ == null ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() + : source_; } /** + * + * *
    * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuilder() { @@ -153,12 +192,15 @@ public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuil public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -166,12 +208,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -179,6 +224,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
@@ -192,6 +239,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -203,8 +251,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (source_ != null) {
       output.writeMessage(1, getSource());
     }
@@ -221,12 +268,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (source_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getSource());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSource());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -236,22 +281,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest other = (com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest) obj;
+    com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest other =
+        (com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest) obj;
 
     if (hasSource() != other.hasSource()) return false;
     if (hasSource()) {
-      if (!getSource()
-          .equals(other.getSource())) return false;
+      if (!getSource().equals(other.getSource())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -278,117 +322,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for updating a source.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest) com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_fieldAccessorTable + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.class, com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.Builder.class); + com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.class, + com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.newBuilder() @@ -396,16 +450,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,13 +478,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService.internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1p1beta1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1p1beta1_UpdateSourceRequest_descriptor; } @java.lang.Override - public com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest getDefaultInstanceForType() { + public com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest + getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.getDefaultInstance(); } @@ -446,7 +500,8 @@ public com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest build() { @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest buildPartial() { - com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest result = new com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest(this); + com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest result = + new com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest(this); if (sourceBuilder_ == null) { result.source_ = source_; } else { @@ -465,38 +520,39 @@ public com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest) { - return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest)other); + return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest) other); } else { super.mergeFrom(other); return this; @@ -504,7 +560,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest other) { - if (other == com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest.getDefaultInstance()) + return this; if (other.hasSource()) { mergeSource(other.getSource()); } @@ -530,7 +588,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -542,39 +602,58 @@ public Builder mergeFrom( private com.google.cloud.securitycenter.v1p1beta1.Source source_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Source, com.google.cloud.securitycenter.v1p1beta1.Source.Builder, com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> sourceBuilder_; + com.google.cloud.securitycenter.v1p1beta1.Source, + com.google.cloud.securitycenter.v1p1beta1.Source.Builder, + com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> + sourceBuilder_; /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The source. */ public com.google.cloud.securitycenter.v1p1beta1.Source getSource() { if (sourceBuilder_ == null) { - return source_ == null ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() + : source_; } else { return sourceBuilder_.getMessage(); } } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSource(com.google.cloud.securitycenter.v1p1beta1.Source value) { if (sourceBuilder_ == null) { @@ -590,11 +669,15 @@ public Builder setSource(com.google.cloud.securitycenter.v1p1beta1.Source value) return this; } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSource( com.google.cloud.securitycenter.v1p1beta1.Source.Builder builderForValue) { @@ -608,17 +691,23 @@ public Builder setSource( return this; } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSource(com.google.cloud.securitycenter.v1p1beta1.Source value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = - com.google.cloud.securitycenter.v1p1beta1.Source.newBuilder(source_).mergeFrom(value).buildPartial(); + com.google.cloud.securitycenter.v1p1beta1.Source.newBuilder(source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -630,11 +719,15 @@ public Builder mergeSource(com.google.cloud.securitycenter.v1p1beta1.Source valu return this; } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSource() { if (sourceBuilder_ == null) { @@ -648,48 +741,64 @@ public Builder clearSource() { return this; } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1p1beta1.Source.Builder getSourceBuilder() { - + onChanged(); return getSourceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { - return source_ == null ? - com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() : source_; + return source_ == null + ? com.google.cloud.securitycenter.v1p1beta1.Source.getDefaultInstance() + : source_; } } /** + * + * *
      * Required. The source resource to update.
      * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Source, com.google.cloud.securitycenter.v1p1beta1.Source.Builder, com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> + com.google.cloud.securitycenter.v1p1beta1.Source, + com.google.cloud.securitycenter.v1p1beta1.Source.Builder, + com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { - sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.securitycenter.v1p1beta1.Source, com.google.cloud.securitycenter.v1p1beta1.Source.Builder, com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder>( - getSource(), - getParentForChildren(), - isClean()); + sourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1p1beta1.Source, + com.google.cloud.securitycenter.v1p1beta1.Source.Builder, + com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder>( + getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; @@ -697,36 +806,49 @@ public com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuil private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -748,6 +870,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -755,8 +879,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -767,6 +890,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -778,7 +903,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -790,6 +915,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -809,6 +936,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -817,11 +946,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -833,11 +964,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The FieldMask to use when updating the source resource.
      * If empty all mutable fields will be updated.
@@ -846,21 +980,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -870,12 +1007,13 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest)
-  private static final com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest();
   }
@@ -884,16 +1022,16 @@ public static com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest getD
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateSourceRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateSourceRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateSourceRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateSourceRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -908,6 +1046,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequestOrBuilder.java b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequestOrBuilder.java
similarity index 60%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequestOrBuilder.java
rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequestOrBuilder.java
index 61e2653d9..16f58a217 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequestOrBuilder.java
+++ b/proto-google-cloud-securitycenter-v1p1beta1/src/main/java/com/google/cloud/securitycenter/v1p1beta1/UpdateSourceRequestOrBuilder.java
@@ -1,60 +1,98 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
 
 package com.google.cloud.securitycenter.v1p1beta1;
 
-public interface UpdateSourceRequestOrBuilder extends
+public interface UpdateSourceRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the source field is set. */ boolean hasSource(); /** + * + * *
    * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The source. */ com.google.cloud.securitycenter.v1p1beta1.Source getSource(); /** + * + * *
    * Required. The source resource to update.
    * 
* - * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.securitycenter.v1p1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.securitycenter.v1p1beta1.SourceOrBuilder getSourceOrBuilder(); /** + * + * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The FieldMask to use when updating the source resource.
    * If empty all mutable fields will be updated.
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/asset.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/asset.proto
similarity index 100%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/asset.proto
rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/asset.proto
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/finding.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/finding.proto
similarity index 100%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/finding.proto
rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/finding.proto
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/folder.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/folder.proto
similarity index 100%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/folder.proto
rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/folder.proto
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_config.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_config.proto
similarity index 100%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_config.proto
rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_config.proto
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_message.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_message.proto
similarity index 100%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_message.proto
rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/notification_message.proto
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/organization_settings.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/organization_settings.proto
similarity index 100%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/organization_settings.proto
rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/organization_settings.proto
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/resource.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/resource.proto
similarity index 100%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/resource.proto
rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/resource.proto
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto
similarity index 100%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto
rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/security_marks.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/security_marks.proto
similarity index 100%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/security_marks.proto
rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/security_marks.proto
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
similarity index 100%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/source.proto b/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/source.proto
similarity index 100%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/source.proto
rename to proto-google-cloud-securitycenter-v1p1beta1/src/main/proto/google/cloud/securitycenter/v1p1beta1/source.proto
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/AsyncBulkMuteFindings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/AsyncBulkMuteFindings.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/AsyncBulkMuteFindings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/AsyncBulkMuteFindings.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/AsyncBulkMuteFindingsLRO.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/AsyncBulkMuteFindingsLRO.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/AsyncBulkMuteFindingsLRO.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/AsyncBulkMuteFindingsLRO.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindings.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindings.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindingsResourcename.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindingsResourcename.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindingsResourcename.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindingsResourcename.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindingsString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindingsString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindingsString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/bulkmutefindings/SyncBulkMuteFindingsString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetEndpoint.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/AsyncCreateBigQueryExport.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/AsyncCreateBigQueryExport.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/AsyncCreateBigQueryExport.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/AsyncCreateBigQueryExport.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExport.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExport.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExport.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExport.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportFoldernameBigqueryexportString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportFoldernameBigqueryexportString.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportFoldernameBigqueryexportString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportFoldernameBigqueryexportString.java
index f30a70db0..bc4fae80a 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportFoldernameBigqueryexportString.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportFoldernameBigqueryexportString.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_createbigqueryexport_foldernamebigqueryexportstring_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_createbigqueryexport_foldernamebigqueryexportstring_sync]
 import com.google.cloud.securitycenter.v1.BigQueryExport;
 import com.google.cloud.securitycenter.v1.FolderName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
@@ -39,4 +40,5 @@ public static void syncCreateBigQueryExportFoldernameBigqueryexportString() thro
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_createbigqueryexport_foldernamebigqueryexportstring_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_createbigqueryexport_foldernamebigqueryexportstring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportOrganizationnameBigqueryexportString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportOrganizationnameBigqueryexportString.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportOrganizationnameBigqueryexportString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportOrganizationnameBigqueryexportString.java
index 22ebe1bb0..7bcfcc479 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportOrganizationnameBigqueryexportString.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportOrganizationnameBigqueryexportString.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_createbigqueryexport_organizationnamebigqueryexportstring_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_createbigqueryexport_organizationnamebigqueryexportstring_sync]
 import com.google.cloud.securitycenter.v1.BigQueryExport;
 import com.google.cloud.securitycenter.v1.OrganizationName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
@@ -40,4 +41,5 @@ public static void syncCreateBigQueryExportOrganizationnameBigqueryexportString(
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_createbigqueryexport_organizationnamebigqueryexportstring_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_createbigqueryexport_organizationnamebigqueryexportstring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportProjectnameBigqueryexportString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportProjectnameBigqueryexportString.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportProjectnameBigqueryexportString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportProjectnameBigqueryexportString.java
index 6488ecab7..5a90a8e10 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportProjectnameBigqueryexportString.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportProjectnameBigqueryexportString.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_createbigqueryexport_projectnamebigqueryexportstring_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_createbigqueryexport_projectnamebigqueryexportstring_sync]
 import com.google.cloud.securitycenter.v1.BigQueryExport;
 import com.google.cloud.securitycenter.v1.ProjectName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
@@ -39,4 +40,5 @@ public static void syncCreateBigQueryExportProjectnameBigqueryexportString() thr
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_createbigqueryexport_projectnamebigqueryexportstring_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_createbigqueryexport_projectnamebigqueryexportstring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportStringBigqueryexportString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportStringBigqueryexportString.java
similarity index 88%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportStringBigqueryexportString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportStringBigqueryexportString.java
index ea7afc7e4..41eeda70c 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportStringBigqueryexportString.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createbigqueryexport/SyncCreateBigQueryExportStringBigqueryexportString.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_createbigqueryexport_stringbigqueryexportstring_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_createbigqueryexport_stringbigqueryexportstring_sync]
 import com.google.cloud.securitycenter.v1.BigQueryExport;
 import com.google.cloud.securitycenter.v1.OrganizationName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
@@ -39,4 +40,5 @@ public static void syncCreateBigQueryExportStringBigqueryexportString() throws E
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_createbigqueryexport_stringbigqueryexportstring_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_createbigqueryexport_stringbigqueryexportstring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/AsyncCreateFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/AsyncCreateFinding.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/AsyncCreateFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/AsyncCreateFinding.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFinding.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFinding.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java
similarity index 94%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java
index 68f11acc8..3ccbcb371 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_createfinding_sourcenamestringfinding_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_createfinding_sourcenamestringfinding_sync]
 import com.google.cloud.securitycenter.v1.Finding;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
 import com.google.cloud.securitycenter.v1.SourceName;
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/AsyncCreateMuteConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/AsyncCreateMuteConfig.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/AsyncCreateMuteConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/AsyncCreateMuteConfig.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfig.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfig.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfig.java
similarity index 93%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfig.java
index 28ed3bb0f..5bf575cdb 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfig.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfig.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_createmuteconfig_foldernamemuteconfig_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_createmuteconfig_foldernamemuteconfig_sync]
 import com.google.cloud.securitycenter.v1.FolderName;
 import com.google.cloud.securitycenter.v1.MuteConfig;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfigString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfigString.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfigString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfigString.java
index 514cd1d91..42d370455 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfigString.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigFoldernameMuteconfigString.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_createmuteconfig_foldernamemuteconfigstring_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_createmuteconfig_foldernamemuteconfigstring_sync]
 import com.google.cloud.securitycenter.v1.FolderName;
 import com.google.cloud.securitycenter.v1.MuteConfig;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
@@ -38,4 +39,5 @@ public static void syncCreateMuteConfigFoldernameMuteconfigString() throws Excep
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_createmuteconfig_foldernamemuteconfigstring_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_createmuteconfig_foldernamemuteconfigstring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfig.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfig.java
index 89c4e8b64..4ec394be5 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfig.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfig.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_createmuteconfig_organizationnamemuteconfig_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_createmuteconfig_organizationnamemuteconfig_sync]
 import com.google.cloud.securitycenter.v1.MuteConfig;
 import com.google.cloud.securitycenter.v1.OrganizationName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
@@ -37,4 +38,5 @@ public static void syncCreateMuteConfigOrganizationnameMuteconfig() throws Excep
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_createmuteconfig_organizationnamemuteconfig_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_createmuteconfig_organizationnamemuteconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfigString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfigString.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfigString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfigString.java
index 5148cacc0..d356cce1f 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfigString.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigOrganizationnameMuteconfigString.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_createmuteconfig_organizationnamemuteconfigstring_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_createmuteconfig_organizationnamemuteconfigstring_sync]
 import com.google.cloud.securitycenter.v1.MuteConfig;
 import com.google.cloud.securitycenter.v1.OrganizationName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
@@ -38,4 +39,5 @@ public static void syncCreateMuteConfigOrganizationnameMuteconfigString() throws
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_createmuteconfig_organizationnamemuteconfigstring_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_createmuteconfig_organizationnamemuteconfigstring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfig.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfig.java
index ca1ba18a6..e0b21878f 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfig.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfig.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_createmuteconfig_projectnamemuteconfig_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_createmuteconfig_projectnamemuteconfig_sync]
 import com.google.cloud.securitycenter.v1.MuteConfig;
 import com.google.cloud.securitycenter.v1.ProjectName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
@@ -37,4 +38,5 @@ public static void syncCreateMuteConfigProjectnameMuteconfig() throws Exception
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_createmuteconfig_projectnamemuteconfig_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_createmuteconfig_projectnamemuteconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfigString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfigString.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfigString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfigString.java
index ec328ffad..a2c630aec 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfigString.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigProjectnameMuteconfigString.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_createmuteconfig_projectnamemuteconfigstring_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_createmuteconfig_projectnamemuteconfigstring_sync]
 import com.google.cloud.securitycenter.v1.MuteConfig;
 import com.google.cloud.securitycenter.v1.ProjectName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
@@ -38,4 +39,5 @@ public static void syncCreateMuteConfigProjectnameMuteconfigString() throws Exce
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_createmuteconfig_projectnamemuteconfigstring_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_createmuteconfig_projectnamemuteconfigstring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigStringMuteconfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigStringMuteconfig.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigStringMuteconfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigStringMuteconfig.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigStringMuteconfigString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigStringMuteconfigString.java
similarity index 88%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigStringMuteconfigString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigStringMuteconfigString.java
index dcc0b2caf..108448636 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigStringMuteconfigString.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createmuteconfig/SyncCreateMuteConfigStringMuteconfigString.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_createmuteconfig_stringmuteconfigstring_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_createmuteconfig_stringmuteconfigstring_sync]
 import com.google.cloud.securitycenter.v1.MuteConfig;
 import com.google.cloud.securitycenter.v1.OrganizationName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
@@ -38,4 +39,5 @@ public static void syncCreateMuteConfigStringMuteconfigString() throws Exception
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_createmuteconfig_stringmuteconfigstring_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_createmuteconfig_stringmuteconfigstring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/AsyncCreateNotificationConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/AsyncCreateNotificationConfig.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/AsyncCreateNotificationConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/AsyncCreateNotificationConfig.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfig.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfig.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java
similarity index 86%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java
index edcb7cdfb..740d4fd74 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_createnotificationconfig_organizationnamenotificationconfig_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_createnotificationconfig_organizationnamenotificationconfig_sync]
 import com.google.cloud.securitycenter.v1.NotificationConfig;
 import com.google.cloud.securitycenter.v1.OrganizationName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
@@ -39,4 +40,5 @@ public static void syncCreateNotificationConfigOrganizationnameNotificationconfi
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_createnotificationconfig_organizationnamenotificationconfig_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_createnotificationconfig_organizationnamenotificationconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java
similarity index 86%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java
index bd283204e..0a417a6b1 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_createnotificationconfig_organizationnamestringnotificationconfig_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_createnotificationconfig_organizationnamestringnotificationconfig_sync]
 import com.google.cloud.securitycenter.v1.NotificationConfig;
 import com.google.cloud.securitycenter.v1.OrganizationName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
@@ -40,4 +41,5 @@ public static void syncCreateNotificationConfigOrganizationnameStringNotificatio
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_createnotificationconfig_organizationnamestringnotificationconfig_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_createnotificationconfig_organizationnamestringnotificationconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java
index 44f21752a..b0b7edd96 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_createnotificationconfig_stringnotificationconfig_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_createnotificationconfig_stringnotificationconfig_sync]
 import com.google.cloud.securitycenter.v1.NotificationConfig;
 import com.google.cloud.securitycenter.v1.OrganizationName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
@@ -38,4 +39,5 @@ public static void syncCreateNotificationConfigStringNotificationconfig() throws
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_createnotificationconfig_stringnotificationconfig_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_createnotificationconfig_stringnotificationconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java
index 8e27ff79f..e61dd79f5 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_createnotificationconfig_stringstringnotificationconfig_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_createnotificationconfig_stringstringnotificationconfig_sync]
 import com.google.cloud.securitycenter.v1.NotificationConfig;
 import com.google.cloud.securitycenter.v1.OrganizationName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
@@ -39,4 +40,5 @@ public static void syncCreateNotificationConfigStringStringNotificationconfig()
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_createnotificationconfig_stringstringnotificationconfig_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_createnotificationconfig_stringstringnotificationconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/AsyncCreateSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/AsyncCreateSource.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/AsyncCreateSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/AsyncCreateSource.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSource.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSource.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSourceStringSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSourceStringSource.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSourceStringSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/createsource/SyncCreateSourceStringSource.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/AsyncDeleteBigQueryExport.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/AsyncDeleteBigQueryExport.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/AsyncDeleteBigQueryExport.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/AsyncDeleteBigQueryExport.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExport.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExport.java
similarity index 98%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExport.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExport.java
index 8cc22eda3..57d747c2a 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExport.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExport.java
@@ -20,7 +20,6 @@
 import com.google.cloud.securitycenter.v1.BigQueryExportName;
 import com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
-import com.google.protobuf.Empty;
 
 public class SyncDeleteBigQueryExport {
 
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportBigqueryexportname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportBigqueryexportname.java
similarity index 85%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportBigqueryexportname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportBigqueryexportname.java
index 52fcdd720..97db22db8 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportBigqueryexportname.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportBigqueryexportname.java
@@ -16,10 +16,10 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_deletebigqueryexport_bigqueryexportname_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_deletebigqueryexport_bigqueryexportname_sync]
 import com.google.cloud.securitycenter.v1.BigQueryExportName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
-import com.google.protobuf.Empty;
 
 public class SyncDeleteBigQueryExportBigqueryexportname {
 
@@ -37,4 +37,5 @@ public static void syncDeleteBigQueryExportBigqueryexportname() throws Exception
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_deletebigqueryexport_bigqueryexportname_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_deletebigqueryexport_bigqueryexportname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportString.java
similarity index 97%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportString.java
index e45486337..c4d0b3bb2 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportString.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletebigqueryexport/SyncDeleteBigQueryExportString.java
@@ -19,7 +19,6 @@
 // [START securitycenter_v1_generated_securitycenterclient_deletebigqueryexport_string_sync]
 import com.google.cloud.securitycenter.v1.BigQueryExportName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
-import com.google.protobuf.Empty;
 
 public class SyncDeleteBigQueryExportString {
 
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/AsyncDeleteMuteConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/AsyncDeleteMuteConfig.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/AsyncDeleteMuteConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/AsyncDeleteMuteConfig.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfig.java
similarity index 98%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfig.java
index bb4c5559e..d113ab803 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfig.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfig.java
@@ -20,7 +20,6 @@
 import com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest;
 import com.google.cloud.securitycenter.v1.MuteConfigName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
-import com.google.protobuf.Empty;
 
 public class SyncDeleteMuteConfig {
 
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigMuteconfigname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigMuteconfigname.java
similarity index 97%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigMuteconfigname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigMuteconfigname.java
index 2e5c46b8d..70f2d84cf 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigMuteconfigname.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigMuteconfigname.java
@@ -19,7 +19,6 @@
 // [START securitycenter_v1_generated_securitycenterclient_deletemuteconfig_muteconfigname_sync]
 import com.google.cloud.securitycenter.v1.MuteConfigName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
-import com.google.protobuf.Empty;
 
 public class SyncDeleteMuteConfigMuteconfigname {
 
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigString.java
similarity index 97%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigString.java
index c61122977..696cc9f15 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigString.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletemuteconfig/SyncDeleteMuteConfigString.java
@@ -19,7 +19,6 @@
 // [START securitycenter_v1_generated_securitycenterclient_deletemuteconfig_string_sync]
 import com.google.cloud.securitycenter.v1.MuteConfigName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
-import com.google.protobuf.Empty;
 
 public class SyncDeleteMuteConfigString {
 
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/AsyncDeleteNotificationConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/AsyncDeleteNotificationConfig.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/AsyncDeleteNotificationConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/AsyncDeleteNotificationConfig.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java
similarity index 98%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java
index 91b0cd3f4..5ae3b4ac1 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java
@@ -20,7 +20,6 @@
 import com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest;
 import com.google.cloud.securitycenter.v1.NotificationConfigName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
-import com.google.protobuf.Empty;
 
 public class SyncDeleteNotificationConfig {
 
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java
similarity index 85%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java
index cc1c094c6..68a3ed59c 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java
@@ -16,10 +16,10 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_deletenotificationconfig_notificationconfigname_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_deletenotificationconfig_notificationconfigname_sync]
 import com.google.cloud.securitycenter.v1.NotificationConfigName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
-import com.google.protobuf.Empty;
 
 public class SyncDeleteNotificationConfigNotificationconfigname {
 
@@ -37,4 +37,5 @@ public static void syncDeleteNotificationConfigNotificationconfigname() throws E
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_deletenotificationconfig_notificationconfigname_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_deletenotificationconfig_notificationconfigname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java
similarity index 97%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java
index 55d9040a3..558127335 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java
@@ -19,7 +19,6 @@
 // [START securitycenter_v1_generated_securitycenterclient_deletenotificationconfig_string_sync]
 import com.google.cloud.securitycenter.v1.NotificationConfigName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
-import com.google.protobuf.Empty;
 
 public class SyncDeleteNotificationConfigString {
 
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/AsyncGetBigQueryExport.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/AsyncGetBigQueryExport.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/AsyncGetBigQueryExport.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/AsyncGetBigQueryExport.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExport.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExport.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExport.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExport.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExportBigqueryexportname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExportBigqueryexportname.java
similarity index 93%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExportBigqueryexportname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExportBigqueryexportname.java
index 7dd4b0b6b..581321663 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExportBigqueryexportname.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExportBigqueryexportname.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_getbigqueryexport_bigqueryexportname_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_getbigqueryexport_bigqueryexportname_sync]
 import com.google.cloud.securitycenter.v1.BigQueryExport;
 import com.google.cloud.securitycenter.v1.BigQueryExportName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExportString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExportString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExportString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getbigqueryexport/SyncGetBigQueryExportString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/AsyncGetMuteConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/AsyncGetMuteConfig.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/AsyncGetMuteConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/AsyncGetMuteConfig.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfig.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfig.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfigMuteconfigname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfigMuteconfigname.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfigMuteconfigname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfigMuteconfigname.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfigString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfigString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfigString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getmuteconfig/SyncGetMuteConfigString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/AsyncGetNotificationConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/AsyncGetNotificationConfig.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/AsyncGetNotificationConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/AsyncGetNotificationConfig.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfig.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfig.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java
index 507e2bad8..df33988ec 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_getnotificationconfig_notificationconfigname_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_getnotificationconfig_notificationconfigname_sync]
 import com.google.cloud.securitycenter.v1.NotificationConfig;
 import com.google.cloud.securitycenter.v1.NotificationConfigName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
@@ -37,4 +38,5 @@ public static void syncGetNotificationConfigNotificationconfigname() throws Exce
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_getnotificationconfig_notificationconfigname_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_getnotificationconfig_notificationconfigname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java
index dc5076afa..9c39a29ca 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_getorganizationsettings_organizationsettingsname_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_getorganizationsettings_organizationsettingsname_sync]
 import com.google.cloud.securitycenter.v1.OrganizationSettings;
 import com.google.cloud.securitycenter.v1.OrganizationSettingsName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
@@ -36,4 +37,5 @@ public static void syncGetOrganizationSettingsOrganizationsettingsname() throws
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_getorganizationsettings_organizationsettingsname_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_getorganizationsettings_organizationsettingsname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/AsyncGetSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/AsyncGetSource.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/AsyncGetSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/AsyncGetSource.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSource.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSource.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSourceSourcename.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSourceSourcename.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSourceSourcename.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSourceSourcename.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSourceString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSourceString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSourceString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/getsource/SyncGetSourceString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/AsyncGroupAssets.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/AsyncGroupAssets.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/AsyncGroupAssets.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/AsyncGroupAssets.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/SyncGroupAssets.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/SyncGroupAssets.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/SyncGroupAssets.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupassets/SyncGroupAssets.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/AsyncGroupFindings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/AsyncGroupFindings.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/AsyncGroupFindings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/AsyncGroupFindings.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindings.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindings.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/AsyncListAssets.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/AsyncListAssets.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/AsyncListAssets.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/AsyncListAssets.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/AsyncListAssetsPaged.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/AsyncListAssetsPaged.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/AsyncListAssetsPaged.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/AsyncListAssetsPaged.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/SyncListAssets.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/SyncListAssets.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/SyncListAssets.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listassets/SyncListAssets.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/AsyncListBigQueryExports.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/AsyncListBigQueryExports.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/AsyncListBigQueryExports.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/AsyncListBigQueryExports.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/AsyncListBigQueryExportsPaged.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/AsyncListBigQueryExportsPaged.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/AsyncListBigQueryExportsPaged.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/AsyncListBigQueryExportsPaged.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExports.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExports.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExports.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExports.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsFoldername.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsFoldername.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsFoldername.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsFoldername.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsOrganizationname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsOrganizationname.java
similarity index 94%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsOrganizationname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsOrganizationname.java
index 470fbb52b..bde031083 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsOrganizationname.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsOrganizationname.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_listbigqueryexports_organizationname_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_listbigqueryexports_organizationname_sync]
 import com.google.cloud.securitycenter.v1.BigQueryExport;
 import com.google.cloud.securitycenter.v1.OrganizationName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsProjectname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsProjectname.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsProjectname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsProjectname.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listbigqueryexports/SyncListBigQueryExportsString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/AsyncListFindings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/AsyncListFindings.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/AsyncListFindings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/AsyncListFindings.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/AsyncListFindingsPaged.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/AsyncListFindingsPaged.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/AsyncListFindingsPaged.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/AsyncListFindingsPaged.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/SyncListFindings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/SyncListFindings.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/SyncListFindings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listfindings/SyncListFindings.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/AsyncListMuteConfigs.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/AsyncListMuteConfigs.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/AsyncListMuteConfigs.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/AsyncListMuteConfigs.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/AsyncListMuteConfigsPaged.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/AsyncListMuteConfigsPaged.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/AsyncListMuteConfigsPaged.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/AsyncListMuteConfigsPaged.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigs.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigs.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigs.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigs.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsFoldername.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsFoldername.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsFoldername.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsFoldername.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsOrganizationname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsOrganizationname.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsOrganizationname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsOrganizationname.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsProjectname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsProjectname.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsProjectname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsProjectname.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listmuteconfigs/SyncListMuteConfigsString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigs.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigs.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigs.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigs.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigsPaged.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigsPaged.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigsPaged.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigsPaged.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigs.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigs.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigs.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigs.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java
index b33eb99a6..cf43901f3 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_listnotificationconfigs_organizationname_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_listnotificationconfigs_organizationname_sync]
 import com.google.cloud.securitycenter.v1.NotificationConfig;
 import com.google.cloud.securitycenter.v1.OrganizationName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
@@ -39,4 +40,5 @@ public static void syncListNotificationConfigsOrganizationname() throws Exceptio
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_listnotificationconfigs_organizationname_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_listnotificationconfigs_organizationname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/AsyncListSources.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/AsyncListSources.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/AsyncListSources.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/AsyncListSources.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/AsyncListSourcesPaged.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/AsyncListSourcesPaged.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/AsyncListSourcesPaged.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/AsyncListSourcesPaged.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSources.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSources.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSources.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSources.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesFoldername.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesFoldername.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesFoldername.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesFoldername.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesProjectname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesProjectname.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesProjectname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesProjectname.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/listsources/SyncListSourcesString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/AsyncSetFindingState.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/AsyncSetFindingState.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/AsyncSetFindingState.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/AsyncSetFindingState.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingState.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingState.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingState.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingState.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java
similarity index 88%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java
index 1557c8549..f2ec41b06 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_setfindingstate_findingnamefindingstatetimestamp_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_setfindingstate_findingnamefindingstatetimestamp_sync]
 import com.google.cloud.securitycenter.v1.Finding;
 import com.google.cloud.securitycenter.v1.FindingName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
@@ -40,4 +41,5 @@ public static void syncSetFindingStateFindingnameFindingstateTimestamp() throws
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_setfindingstate_findingnamefindingstatetimestamp_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_setfindingstate_findingnamefindingstatetimestamp_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java
similarity index 88%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java
index 424140bf6..0806a5847 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_setfindingstate_stringfindingstatetimestamp_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_setfindingstate_stringfindingstatetimestamp_sync]
 import com.google.cloud.securitycenter.v1.Finding;
 import com.google.cloud.securitycenter.v1.FindingName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
@@ -41,4 +42,5 @@ public static void syncSetFindingStateStringFindingstateTimestamp() throws Excep
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_setfindingstate_stringfindingstatetimestamp_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_setfindingstate_stringfindingstatetimestamp_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/AsyncSetMute.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/AsyncSetMute.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/AsyncSetMute.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/AsyncSetMute.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMute.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMute.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMute.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMute.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMuteFindingnameFindingmute.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMuteFindingnameFindingmute.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMuteFindingnameFindingmute.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMuteFindingnameFindingmute.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMuteStringFindingmute.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMuteStringFindingmute.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMuteStringFindingmute.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/setmute/SyncSetMuteStringFindingmute.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
similarity index 88%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
index 6099c89e4..6a17a31cf 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_testiampermissions_resourcenameliststring_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_testiampermissions_resourcenameliststring_sync]
 import com.google.api.resourcenames.ResourceName;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
 import com.google.cloud.securitycenter.v1.SourceName;
@@ -41,4 +42,5 @@ public static void syncTestIamPermissionsResourcenameListstring() throws Excepti
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_testiampermissions_resourcenameliststring_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_testiampermissions_resourcenameliststring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/AsyncUpdateBigQueryExport.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/AsyncUpdateBigQueryExport.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/AsyncUpdateBigQueryExport.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/AsyncUpdateBigQueryExport.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/SyncUpdateBigQueryExport.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/SyncUpdateBigQueryExport.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/SyncUpdateBigQueryExport.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/SyncUpdateBigQueryExport.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/SyncUpdateBigQueryExportBigqueryexportFieldmask.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/SyncUpdateBigQueryExportBigqueryexportFieldmask.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/SyncUpdateBigQueryExportBigqueryexportFieldmask.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/SyncUpdateBigQueryExportBigqueryexportFieldmask.java
index 4ee5fb78c..76a9a6a3c 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/SyncUpdateBigQueryExportBigqueryexportFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatebigqueryexport/SyncUpdateBigQueryExportBigqueryexportFieldmask.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_updatebigqueryexport_bigqueryexportfieldmask_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_updatebigqueryexport_bigqueryexportfieldmask_sync]
 import com.google.cloud.securitycenter.v1.BigQueryExport;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
 import com.google.protobuf.FieldMask;
@@ -38,4 +39,5 @@ public static void syncUpdateBigQueryExportBigqueryexportFieldmask() throws Exce
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_updatebigqueryexport_bigqueryexportfieldmask_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_updatebigqueryexport_bigqueryexportfieldmask_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/AsyncUpdateExternalSystem.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/AsyncUpdateExternalSystem.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/AsyncUpdateExternalSystem.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/AsyncUpdateExternalSystem.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/SyncUpdateExternalSystem.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/SyncUpdateExternalSystem.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/SyncUpdateExternalSystem.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/SyncUpdateExternalSystem.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/SyncUpdateExternalSystemExternalsystemFieldmask.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/SyncUpdateExternalSystemExternalsystemFieldmask.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/SyncUpdateExternalSystemExternalsystemFieldmask.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/SyncUpdateExternalSystemExternalsystemFieldmask.java
index 3c0041128..fadff9485 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/SyncUpdateExternalSystemExternalsystemFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateexternalsystem/SyncUpdateExternalSystemExternalsystemFieldmask.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_updateexternalsystem_externalsystemfieldmask_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_updateexternalsystem_externalsystemfieldmask_sync]
 import com.google.cloud.securitycenter.v1.ExternalSystem;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
 import com.google.protobuf.FieldMask;
@@ -38,4 +39,5 @@ public static void syncUpdateExternalSystemExternalsystemFieldmask() throws Exce
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_updateexternalsystem_externalsystemfieldmask_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_updateexternalsystem_externalsystemfieldmask_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/AsyncUpdateFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/AsyncUpdateFinding.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/AsyncUpdateFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/AsyncUpdateFinding.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/SyncUpdateFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/SyncUpdateFinding.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/SyncUpdateFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/SyncUpdateFinding.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/AsyncUpdateMuteConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/AsyncUpdateMuteConfig.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/AsyncUpdateMuteConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/AsyncUpdateMuteConfig.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/SyncUpdateMuteConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/SyncUpdateMuteConfig.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/SyncUpdateMuteConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/SyncUpdateMuteConfig.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/SyncUpdateMuteConfigMuteconfigFieldmask.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/SyncUpdateMuteConfigMuteconfigFieldmask.java
similarity index 93%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/SyncUpdateMuteConfigMuteconfigFieldmask.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/SyncUpdateMuteConfigMuteconfigFieldmask.java
index 112f89bb7..5785cba34 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/SyncUpdateMuteConfigMuteconfigFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatemuteconfig/SyncUpdateMuteConfigMuteconfigFieldmask.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_updatemuteconfig_muteconfigfieldmask_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_updatemuteconfig_muteconfigfieldmask_sync]
 import com.google.cloud.securitycenter.v1.MuteConfig;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
 import com.google.protobuf.FieldMask;
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/AsyncUpdateNotificationConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/AsyncUpdateNotificationConfig.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/AsyncUpdateNotificationConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/AsyncUpdateNotificationConfig.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfig.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfig.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java
index 6b31ecd76..0cb2aaf39 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_updatenotificationconfig_notificationconfig_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_updatenotificationconfig_notificationconfig_sync]
 import com.google.cloud.securitycenter.v1.NotificationConfig;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
 
@@ -36,4 +37,5 @@ public static void syncUpdateNotificationConfigNotificationconfig() throws Excep
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_updatenotificationconfig_notificationconfig_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_updatenotificationconfig_notificationconfig_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java
index 72ec82a7d..973bd8c41 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_updatenotificationconfig_notificationconfigfieldmask_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_updatenotificationconfig_notificationconfigfieldmask_sync]
 import com.google.cloud.securitycenter.v1.NotificationConfig;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
 import com.google.protobuf.FieldMask;
@@ -38,4 +39,5 @@ public static void syncUpdateNotificationConfigNotificationconfigFieldmask() thr
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_updatenotificationconfig_notificationconfigfieldmask_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_updatenotificationconfig_notificationconfigfieldmask_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java
similarity index 86%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java
index 59b7db298..33aa01e17 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1.samples;
 
-// [START securitycenter_v1_generated_securitycenterclient_updateorganizationsettings_organizationsettings_sync]
+// [START
+// securitycenter_v1_generated_securitycenterclient_updateorganizationsettings_organizationsettings_sync]
 import com.google.cloud.securitycenter.v1.OrganizationSettings;
 import com.google.cloud.securitycenter.v1.SecurityCenterClient;
 
@@ -36,4 +37,5 @@ public static void syncUpdateOrganizationSettingsOrganizationsettings() throws E
     }
   }
 }
-// [END securitycenter_v1_generated_securitycenterclient_updateorganizationsettings_organizationsettings_sync]
+// [END
+// securitycenter_v1_generated_securitycenterclient_updateorganizationsettings_organizationsettings_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/AsyncUpdateSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/AsyncUpdateSource.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/AsyncUpdateSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/AsyncUpdateSource.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/SyncUpdateSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/SyncUpdateSource.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/SyncUpdateSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/SyncUpdateSource.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/SyncUpdateSourceSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/SyncUpdateSourceSource.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/SyncUpdateSourceSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenterclient/updatesource/SyncUpdateSourceSource.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycentersettings/createsource/SyncCreateSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycentersettings/createsource/SyncCreateSource.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycentersettings/createsource/SyncCreateSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycentersettings/createsource/SyncCreateSource.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/securitycenter/v1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetEndpoint.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/AsyncCreateFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/AsyncCreateFinding.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/AsyncCreateFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/AsyncCreateFinding.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFinding.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFinding.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java
similarity index 87%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java
index d998974d4..5dd4573d6 100644
--- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1beta1.samples;
 
-// [START securitycenter_v1beta1_generated_securitycenterclient_createfinding_sourcenamestringfinding_sync]
+// [START
+// securitycenter_v1beta1_generated_securitycenterclient_createfinding_sourcenamestringfinding_sync]
 import com.google.cloud.securitycenter.v1beta1.Finding;
 import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient;
 import com.google.cloud.securitycenter.v1beta1.SourceName;
@@ -38,4 +39,5 @@ public static void syncCreateFindingSourcenameStringFinding() throws Exception {
     }
   }
 }
-// [END securitycenter_v1beta1_generated_securitycenterclient_createfinding_sourcenamestringfinding_sync]
+// [END
+// securitycenter_v1beta1_generated_securitycenterclient_createfinding_sourcenamestringfinding_sync]
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java
similarity index 88%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java
index e0dfe8c53..e6f1aa3f3 100644
--- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1beta1.samples;
 
-// [START securitycenter_v1beta1_generated_securitycenterclient_createfinding_stringstringfinding_sync]
+// [START
+// securitycenter_v1beta1_generated_securitycenterclient_createfinding_stringstringfinding_sync]
 import com.google.cloud.securitycenter.v1beta1.Finding;
 import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient;
 import com.google.cloud.securitycenter.v1beta1.SourceName;
@@ -38,4 +39,5 @@ public static void syncCreateFindingStringStringFinding() throws Exception {
     }
   }
 }
-// [END securitycenter_v1beta1_generated_securitycenterclient_createfinding_stringstringfinding_sync]
+// [END
+// securitycenter_v1beta1_generated_securitycenterclient_createfinding_stringstringfinding_sync]
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/AsyncCreateSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/AsyncCreateSource.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/AsyncCreateSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/AsyncCreateSource.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSource.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSource.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java
similarity index 87%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java
index 20c0ebe90..c03d770be 100644
--- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1beta1.samples;
 
-// [START securitycenter_v1beta1_generated_securitycenterclient_createsource_organizationnamesource_sync]
+// [START
+// securitycenter_v1beta1_generated_securitycenterclient_createsource_organizationnamesource_sync]
 import com.google.cloud.securitycenter.v1beta1.OrganizationName;
 import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient;
 import com.google.cloud.securitycenter.v1beta1.Source;
@@ -37,4 +38,5 @@ public static void syncCreateSourceOrganizationnameSource() throws Exception {
     }
   }
 }
-// [END securitycenter_v1beta1_generated_securitycenterclient_createsource_organizationnamesource_sync]
+// [END
+// securitycenter_v1beta1_generated_securitycenterclient_createsource_organizationnamesource_sync]
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSourceStringSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSourceStringSource.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSourceStringSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/createsource/SyncCreateSourceStringSource.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java
similarity index 86%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java
index 818fdd430..3a9f4b424 100644
--- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1beta1.samples;
 
-// [START securitycenter_v1beta1_generated_securitycenterclient_getorganizationsettings_organizationsettingsname_sync]
+// [START
+// securitycenter_v1beta1_generated_securitycenterclient_getorganizationsettings_organizationsettingsname_sync]
 import com.google.cloud.securitycenter.v1beta1.OrganizationSettings;
 import com.google.cloud.securitycenter.v1beta1.OrganizationSettingsName;
 import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient;
@@ -36,4 +37,5 @@ public static void syncGetOrganizationSettingsOrganizationsettingsname() throws
     }
   }
 }
-// [END securitycenter_v1beta1_generated_securitycenterclient_getorganizationsettings_organizationsettingsname_sync]
+// [END
+// securitycenter_v1beta1_generated_securitycenterclient_getorganizationsettings_organizationsettingsname_sync]
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/AsyncGetSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/AsyncGetSource.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/AsyncGetSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/AsyncGetSource.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSource.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSource.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSourceSourcename.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSourceSourcename.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSourceSourcename.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSourceSourcename.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSourceString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSourceString.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSourceString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/getsource/SyncGetSourceString.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/AsyncGroupAssets.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/AsyncGroupAssets.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/AsyncGroupAssets.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/AsyncGroupAssets.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/SyncGroupAssets.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/SyncGroupAssets.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/SyncGroupAssets.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupassets/SyncGroupAssets.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/AsyncGroupFindings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/AsyncGroupFindings.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/AsyncGroupFindings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/AsyncGroupFindings.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindings.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindings.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/AsyncListAssets.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/AsyncListAssets.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/AsyncListAssets.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/AsyncListAssets.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/AsyncListAssetsPaged.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/AsyncListAssetsPaged.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/AsyncListAssetsPaged.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/AsyncListAssetsPaged.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/SyncListAssets.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/SyncListAssets.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/SyncListAssets.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listassets/SyncListAssets.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/AsyncListFindings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/AsyncListFindings.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/AsyncListFindings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/AsyncListFindings.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/AsyncListFindingsPaged.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/AsyncListFindingsPaged.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/AsyncListFindingsPaged.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/AsyncListFindingsPaged.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/SyncListFindings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/SyncListFindings.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/SyncListFindings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listfindings/SyncListFindings.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/AsyncListSources.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/AsyncListSources.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/AsyncListSources.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/AsyncListSources.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/AsyncListSourcesPaged.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/AsyncListSourcesPaged.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/AsyncListSourcesPaged.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/AsyncListSourcesPaged.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSources.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSources.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSources.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSources.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSourcesString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSourcesString.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSourcesString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/listsources/SyncListSourcesString.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java
similarity index 98%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java
index be67bdf6b..94a1e5eac 100644
--- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java
@@ -20,7 +20,6 @@
 import com.google.cloud.securitycenter.v1beta1.OrganizationName;
 import com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest;
 import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient;
-import com.google.protobuf.Empty;
 
 public class SyncRunAssetDiscovery {
 
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java
similarity index 85%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java
index 43c993e74..c901b7d3e 100644
--- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java
@@ -16,10 +16,10 @@
 
 package com.google.cloud.securitycenter.v1beta1.samples;
 
-// [START securitycenter_v1beta1_generated_securitycenterclient_runassetdiscovery_organizationname_sync]
+// [START
+// securitycenter_v1beta1_generated_securitycenterclient_runassetdiscovery_organizationname_sync]
 import com.google.cloud.securitycenter.v1beta1.OrganizationName;
 import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient;
-import com.google.protobuf.Empty;
 
 public class SyncRunAssetDiscoveryOrganizationname {
 
@@ -36,4 +36,5 @@ public static void syncRunAssetDiscoveryOrganizationname() throws Exception {
     }
   }
 }
-// [END securitycenter_v1beta1_generated_securitycenterclient_runassetdiscovery_organizationname_sync]
+// [END
+// securitycenter_v1beta1_generated_securitycenterclient_runassetdiscovery_organizationname_sync]
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java
similarity index 97%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java
index 1f7094c34..ac3237946 100644
--- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java
@@ -19,7 +19,6 @@
 // [START securitycenter_v1beta1_generated_securitycenterclient_runassetdiscovery_string_sync]
 import com.google.cloud.securitycenter.v1beta1.OrganizationName;
 import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient;
-import com.google.protobuf.Empty;
 
 public class SyncRunAssetDiscoveryString {
 
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/AsyncSetFindingState.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/AsyncSetFindingState.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/AsyncSetFindingState.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/AsyncSetFindingState.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingState.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingState.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingState.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingState.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java
similarity index 87%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java
index e809b3853..d0263de86 100644
--- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1beta1.samples;
 
-// [START securitycenter_v1beta1_generated_securitycenterclient_setfindingstate_findingnamefindingstatetimestamp_sync]
+// [START
+// securitycenter_v1beta1_generated_securitycenterclient_setfindingstate_findingnamefindingstatetimestamp_sync]
 import com.google.cloud.securitycenter.v1beta1.Finding;
 import com.google.cloud.securitycenter.v1beta1.FindingName;
 import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient;
@@ -39,4 +40,5 @@ public static void syncSetFindingStateFindingnameFindingstateTimestamp() throws
     }
   }
 }
-// [END securitycenter_v1beta1_generated_securitycenterclient_setfindingstate_findingnamefindingstatetimestamp_sync]
+// [END
+// securitycenter_v1beta1_generated_securitycenterclient_setfindingstate_findingnamefindingstatetimestamp_sync]
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java
similarity index 87%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java
index 3f7313341..0f8a9edca 100644
--- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1beta1.samples;
 
-// [START securitycenter_v1beta1_generated_securitycenterclient_setfindingstate_stringfindingstatetimestamp_sync]
+// [START
+// securitycenter_v1beta1_generated_securitycenterclient_setfindingstate_stringfindingstatetimestamp_sync]
 import com.google.cloud.securitycenter.v1beta1.Finding;
 import com.google.cloud.securitycenter.v1beta1.FindingName;
 import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient;
@@ -39,4 +40,5 @@ public static void syncSetFindingStateStringFindingstateTimestamp() throws Excep
     }
   }
 }
-// [END securitycenter_v1beta1_generated_securitycenterclient_setfindingstate_stringfindingstatetimestamp_sync]
+// [END
+// securitycenter_v1beta1_generated_securitycenterclient_setfindingstate_stringfindingstatetimestamp_sync]
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
similarity index 94%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
index 5ca6e1536..4de4391ba 100644
--- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1beta1.samples;
 
-// [START securitycenter_v1beta1_generated_securitycenterclient_setiampolicy_resourcenamepolicy_sync]
+// [START
+// securitycenter_v1beta1_generated_securitycenterclient_setiampolicy_resourcenamepolicy_sync]
 import com.google.api.resourcenames.ResourceName;
 import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient;
 import com.google.cloud.securitycenter.v1beta1.SourceName;
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
similarity index 88%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
index cece044b7..c70ce141f 100644
--- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1beta1.samples;
 
-// [START securitycenter_v1beta1_generated_securitycenterclient_testiampermissions_resourcenameliststring_sync]
+// [START
+// securitycenter_v1beta1_generated_securitycenterclient_testiampermissions_resourcenameliststring_sync]
 import com.google.api.resourcenames.ResourceName;
 import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient;
 import com.google.cloud.securitycenter.v1beta1.SourceName;
@@ -41,4 +42,5 @@ public static void syncTestIamPermissionsResourcenameListstring() throws Excepti
     }
   }
 }
-// [END securitycenter_v1beta1_generated_securitycenterclient_testiampermissions_resourcenameliststring_sync]
+// [END
+// securitycenter_v1beta1_generated_securitycenterclient_testiampermissions_resourcenameliststring_sync]
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
similarity index 88%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
index 8ba110764..a1acd91ac 100644
--- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1beta1.samples;
 
-// [START securitycenter_v1beta1_generated_securitycenterclient_testiampermissions_stringliststring_sync]
+// [START
+// securitycenter_v1beta1_generated_securitycenterclient_testiampermissions_stringliststring_sync]
 import com.google.cloud.securitycenter.v1beta1.OrganizationName;
 import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient;
 import com.google.iam.v1.TestIamPermissionsResponse;
@@ -40,4 +41,5 @@ public static void syncTestIamPermissionsStringListstring() throws Exception {
     }
   }
 }
-// [END securitycenter_v1beta1_generated_securitycenterclient_testiampermissions_stringliststring_sync]
+// [END
+// securitycenter_v1beta1_generated_securitycenterclient_testiampermissions_stringliststring_sync]
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/AsyncUpdateFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/AsyncUpdateFinding.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/AsyncUpdateFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/AsyncUpdateFinding.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/SyncUpdateFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/SyncUpdateFinding.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/SyncUpdateFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/SyncUpdateFinding.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java
similarity index 86%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java
index 9c8af6b38..ff15726c8 100644
--- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1beta1.samples;
 
-// [START securitycenter_v1beta1_generated_securitycenterclient_updateorganizationsettings_organizationsettings_sync]
+// [START
+// securitycenter_v1beta1_generated_securitycenterclient_updateorganizationsettings_organizationsettings_sync]
 import com.google.cloud.securitycenter.v1beta1.OrganizationSettings;
 import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient;
 
@@ -36,4 +37,5 @@ public static void syncUpdateOrganizationSettingsOrganizationsettings() throws E
     }
   }
 }
-// [END securitycenter_v1beta1_generated_securitycenterclient_updateorganizationsettings_organizationsettings_sync]
+// [END
+// securitycenter_v1beta1_generated_securitycenterclient_updateorganizationsettings_organizationsettings_sync]
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java
similarity index 87%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java
index e4e31da05..99ebabb96 100644
--- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1beta1.samples;
 
-// [START securitycenter_v1beta1_generated_securitycenterclient_updatesecuritymarks_securitymarks_sync]
+// [START
+// securitycenter_v1beta1_generated_securitycenterclient_updatesecuritymarks_securitymarks_sync]
 import com.google.cloud.securitycenter.v1beta1.SecurityCenterClient;
 import com.google.cloud.securitycenter.v1beta1.SecurityMarks;
 
@@ -35,4 +36,5 @@ public static void syncUpdateSecurityMarksSecuritymarks() throws Exception {
     }
   }
 }
-// [END securitycenter_v1beta1_generated_securitycenterclient_updatesecuritymarks_securitymarks_sync]
+// [END
+// securitycenter_v1beta1_generated_securitycenterclient_updatesecuritymarks_securitymarks_sync]
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/AsyncUpdateSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/AsyncUpdateSource.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/AsyncUpdateSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/AsyncUpdateSource.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/SyncUpdateSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/SyncUpdateSource.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/SyncUpdateSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/SyncUpdateSource.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/SyncUpdateSourceSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/SyncUpdateSourceSource.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/SyncUpdateSourceSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycenterclient/updatesource/SyncUpdateSourceSource.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycentersettings/createsource/SyncCreateSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycentersettings/createsource/SyncCreateSource.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycentersettings/createsource/SyncCreateSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/securitycentersettings/createsource/SyncCreateSource.java
diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java
similarity index 100%
rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1beta1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java
similarity index 94%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java
index b9239f558..13dfcbbc9 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_create_setcredentialsprovider_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterSettings;
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java
similarity index 93%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java
index 14c0d53f4..e93445c8f 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetCredentialsProvider1.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_create_setcredentialsprovider1_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_create_setcredentialsprovider1_sync]
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterSettings;
 
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetEndpoint.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/AsyncCreateFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/AsyncCreateFinding.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/AsyncCreateFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/AsyncCreateFinding.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFinding.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFinding.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameFindingString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameFindingString.java
similarity index 87%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameFindingString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameFindingString.java
index e2baf3651..49de1ef51 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameFindingString.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameFindingString.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_sourcenamefindingstring_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_sourcenamefindingstring_sync]
 import com.google.cloud.securitycenter.v1p1beta1.Finding;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
 import com.google.cloud.securitycenter.v1p1beta1.SourceName;
@@ -38,4 +39,5 @@ public static void syncCreateFindingSourcenameFindingString() throws Exception {
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_sourcenamefindingstring_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_sourcenamefindingstring_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java
similarity index 87%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java
index b228feae3..60c465bda 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingSourcenameStringFinding.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_sourcenamestringfinding_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_sourcenamestringfinding_sync]
 import com.google.cloud.securitycenter.v1p1beta1.Finding;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
 import com.google.cloud.securitycenter.v1p1beta1.SourceName;
@@ -38,4 +39,5 @@ public static void syncCreateFindingSourcenameStringFinding() throws Exception {
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_sourcenamestringfinding_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_sourcenamestringfinding_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringFindingString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringFindingString.java
similarity index 88%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringFindingString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringFindingString.java
index b7d696af6..5fea789c5 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringFindingString.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringFindingString.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_stringfindingstring_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_stringfindingstring_sync]
 import com.google.cloud.securitycenter.v1p1beta1.Finding;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
 import com.google.cloud.securitycenter.v1p1beta1.SourceName;
@@ -38,4 +39,5 @@ public static void syncCreateFindingStringFindingString() throws Exception {
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_stringfindingstring_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_stringfindingstring_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java
similarity index 88%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java
index 799dc6a97..5b0514bf1 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createfinding/SyncCreateFindingStringStringFinding.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_stringstringfinding_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_stringstringfinding_sync]
 import com.google.cloud.securitycenter.v1p1beta1.Finding;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
 import com.google.cloud.securitycenter.v1p1beta1.SourceName;
@@ -38,4 +39,5 @@ public static void syncCreateFindingStringStringFinding() throws Exception {
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_stringstringfinding_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_createfinding_stringstringfinding_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/AsyncCreateNotificationConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/AsyncCreateNotificationConfig.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/AsyncCreateNotificationConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/AsyncCreateNotificationConfig.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfig.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfig.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java
similarity index 86%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java
index 4c8536f71..0eb79abbc 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameNotificationconfig.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_organizationnamenotificationconfig_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_organizationnamenotificationconfig_sync]
 import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
 import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
@@ -39,4 +40,5 @@ public static void syncCreateNotificationConfigOrganizationnameNotificationconfi
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_organizationnamenotificationconfig_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_organizationnamenotificationconfig_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java
similarity index 86%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java
index 79c228b5f..9ef72a00d 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigOrganizationnameStringNotificationconfig.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_organizationnamestringnotificationconfig_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_organizationnamestringnotificationconfig_sync]
 import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
 import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
@@ -40,4 +41,5 @@ public static void syncCreateNotificationConfigOrganizationnameStringNotificatio
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_organizationnamestringnotificationconfig_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_organizationnamestringnotificationconfig_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java
similarity index 87%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java
index 5562a91a3..a69459f6d 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringNotificationconfig.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_stringnotificationconfig_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_stringnotificationconfig_sync]
 import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
 import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
@@ -38,4 +39,5 @@ public static void syncCreateNotificationConfigStringNotificationconfig() throws
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_stringnotificationconfig_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_stringnotificationconfig_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java
similarity index 87%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java
index cb1ca7e72..ae8b4d06f 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createnotificationconfig/SyncCreateNotificationConfigStringStringNotificationconfig.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_stringstringnotificationconfig_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_stringstringnotificationconfig_sync]
 import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
 import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
@@ -39,4 +40,5 @@ public static void syncCreateNotificationConfigStringStringNotificationconfig()
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_stringstringnotificationconfig_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_createnotificationconfig_stringstringnotificationconfig_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/AsyncCreateSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/AsyncCreateSource.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/AsyncCreateSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/AsyncCreateSource.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSource.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSource.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java
similarity index 87%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java
index 98bad43dd..9e84f8661 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSourceOrganizationnameSource.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_createsource_organizationnamesource_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_createsource_organizationnamesource_sync]
 import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
 import com.google.cloud.securitycenter.v1p1beta1.Source;
@@ -37,4 +38,5 @@ public static void syncCreateSourceOrganizationnameSource() throws Exception {
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_createsource_organizationnamesource_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_createsource_organizationnamesource_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSourceStringSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSourceStringSource.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSourceStringSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/createsource/SyncCreateSourceStringSource.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/AsyncDeleteNotificationConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/AsyncDeleteNotificationConfig.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/AsyncDeleteNotificationConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/AsyncDeleteNotificationConfig.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java
similarity index 98%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java
index 5f125933f..21b21b1c2 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfig.java
@@ -20,7 +20,6 @@
 import com.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest;
 import com.google.cloud.securitycenter.v1p1beta1.NotificationConfigName;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
-import com.google.protobuf.Empty;
 
 public class SyncDeleteNotificationConfig {
 
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java
similarity index 84%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java
index c00e150dc..bfb22fe89 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigNotificationconfigname.java
@@ -16,10 +16,10 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_deletenotificationconfig_notificationconfigname_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_deletenotificationconfig_notificationconfigname_sync]
 import com.google.cloud.securitycenter.v1p1beta1.NotificationConfigName;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
-import com.google.protobuf.Empty;
 
 public class SyncDeleteNotificationConfigNotificationconfigname {
 
@@ -37,4 +37,5 @@ public static void syncDeleteNotificationConfigNotificationconfigname() throws E
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_deletenotificationconfig_notificationconfigname_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_deletenotificationconfig_notificationconfigname_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java
similarity index 85%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java
index 3b3e947b8..6c02d1b04 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/deletenotificationconfig/SyncDeleteNotificationConfigString.java
@@ -16,10 +16,10 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_deletenotificationconfig_string_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_deletenotificationconfig_string_sync]
 import com.google.cloud.securitycenter.v1p1beta1.NotificationConfigName;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
-import com.google.protobuf.Empty;
 
 public class SyncDeleteNotificationConfigString {
 
@@ -36,4 +36,5 @@ public static void syncDeleteNotificationConfigString() throws Exception {
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_deletenotificationconfig_string_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_deletenotificationconfig_string_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/AsyncGetIamPolicy.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicy.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyResourcename.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getiampolicy/SyncGetIamPolicyString.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/AsyncGetNotificationConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/AsyncGetNotificationConfig.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/AsyncGetNotificationConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/AsyncGetNotificationConfig.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfig.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfig.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java
similarity index 87%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java
index c8b494003..3bd18a811 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigNotificationconfigname.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_getnotificationconfig_notificationconfigname_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_getnotificationconfig_notificationconfigname_sync]
 import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
 import com.google.cloud.securitycenter.v1p1beta1.NotificationConfigName;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
@@ -37,4 +38,5 @@ public static void syncGetNotificationConfigNotificationconfigname() throws Exce
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_getnotificationconfig_notificationconfigname_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_getnotificationconfig_notificationconfigname_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigString.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getnotificationconfig/SyncGetNotificationConfigString.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/AsyncGetOrganizationSettings.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettings.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java
similarity index 86%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java
index 55d0d4717..b415431dc 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsOrganizationsettingsname.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_getorganizationsettings_organizationsettingsname_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_getorganizationsettings_organizationsettingsname_sync]
 import com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings;
 import com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsName;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
@@ -36,4 +37,5 @@ public static void syncGetOrganizationSettingsOrganizationsettingsname() throws
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_getorganizationsettings_organizationsettingsname_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_getorganizationsettings_organizationsettingsname_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java
similarity index 93%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java
index 663444438..7d586d17d 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getorganizationsettings/SyncGetOrganizationSettingsString.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_getorganizationsettings_string_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_getorganizationsettings_string_sync]
 import com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings;
 import com.google.cloud.securitycenter.v1p1beta1.OrganizationSettingsName;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/AsyncGetSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/AsyncGetSource.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/AsyncGetSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/AsyncGetSource.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSource.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSource.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSourceSourcename.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSourceSourcename.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSourceSourcename.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSourceSourcename.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSourceString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSourceString.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSourceString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/getsource/SyncGetSourceString.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/AsyncGroupAssets.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/AsyncGroupAssets.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/AsyncGroupAssets.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/AsyncGroupAssets.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/AsyncGroupAssetsPaged.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/SyncGroupAssets.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/SyncGroupAssets.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/SyncGroupAssets.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupassets/SyncGroupAssets.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/AsyncGroupFindings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/AsyncGroupFindings.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/AsyncGroupFindings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/AsyncGroupFindings.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/AsyncGroupFindingsPaged.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindings.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindings.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java
similarity index 94%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java
index 1c7f66d01..e8b75597f 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindingsSourcenameString.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_groupfindings_sourcenamestring_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_groupfindings_sourcenamestring_sync]
 import com.google.cloud.securitycenter.v1p1beta1.GroupResult;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
 import com.google.cloud.securitycenter.v1p1beta1.SourceName;
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/groupfindings/SyncGroupFindingsStringString.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/AsyncListAssets.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/AsyncListAssets.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/AsyncListAssets.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/AsyncListAssets.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/AsyncListAssetsPaged.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/AsyncListAssetsPaged.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/AsyncListAssetsPaged.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/AsyncListAssetsPaged.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssets.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssets.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssets.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssets.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsFoldername.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsFoldername.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsFoldername.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsFoldername.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsOrganizationname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsOrganizationname.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsOrganizationname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsOrganizationname.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsProjectname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsProjectname.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsProjectname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsProjectname.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsString.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listassets/SyncListAssetsString.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/AsyncListFindings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/AsyncListFindings.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/AsyncListFindings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/AsyncListFindings.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/AsyncListFindingsPaged.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/AsyncListFindingsPaged.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/AsyncListFindingsPaged.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/AsyncListFindingsPaged.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindings.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindings.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindingsSourcename.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindingsSourcename.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindingsSourcename.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindingsSourcename.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindingsString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindingsString.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindingsString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listfindings/SyncListFindingsString.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigs.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigs.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigs.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigs.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigsPaged.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigsPaged.java
similarity index 95%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigsPaged.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigsPaged.java
index 61c649ccf..8e6b57ffb 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigsPaged.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/AsyncListNotificationConfigsPaged.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_listnotificationconfigs_paged_async]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_listnotificationconfigs_paged_async]
 import com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest;
 import com.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse;
 import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigs.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigs.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigs.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigs.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java
similarity index 87%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java
index bc8d18cb4..04692a049 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsOrganizationname.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_listnotificationconfigs_organizationname_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_listnotificationconfigs_organizationname_sync]
 import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
 import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
@@ -39,4 +40,5 @@ public static void syncListNotificationConfigsOrganizationname() throws Exceptio
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_listnotificationconfigs_organizationname_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_listnotificationconfigs_organizationname_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsString.java
similarity index 94%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsString.java
index b5aae5797..21ddff0ae 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsString.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listnotificationconfigs/SyncListNotificationConfigsString.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_listnotificationconfigs_string_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_listnotificationconfigs_string_sync]
 import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
 import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/AsyncListSources.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/AsyncListSources.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/AsyncListSources.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/AsyncListSources.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/AsyncListSourcesPaged.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/AsyncListSourcesPaged.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/AsyncListSourcesPaged.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/AsyncListSourcesPaged.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSources.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSources.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSources.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSources.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesFoldername.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesFoldername.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesFoldername.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesFoldername.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesOrganizationname.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesProjectname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesProjectname.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesProjectname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesProjectname.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesString.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/listsources/SyncListSourcesString.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscovery.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/AsyncRunAssetDiscoveryLRO.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscovery.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java
similarity index 87%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java
index 4bd79677c..e2ec9e542 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryOrganizationname.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_runassetdiscovery_organizationname_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_runassetdiscovery_organizationname_sync]
 import com.google.cloud.securitycenter.v1p1beta1.OrganizationName;
 import com.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
@@ -37,4 +38,5 @@ public static void syncRunAssetDiscoveryOrganizationname() throws Exception {
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_runassetdiscovery_organizationname_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_runassetdiscovery_organizationname_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/runassetdiscovery/SyncRunAssetDiscoveryString.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/AsyncSetFindingState.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/AsyncSetFindingState.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/AsyncSetFindingState.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/AsyncSetFindingState.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingState.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingState.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingState.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingState.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java
similarity index 87%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java
index b9659db7b..ad916001a 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateFindingnameFindingstateTimestamp.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_setfindingstate_findingnamefindingstatetimestamp_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_setfindingstate_findingnamefindingstatetimestamp_sync]
 import com.google.cloud.securitycenter.v1p1beta1.Finding;
 import com.google.cloud.securitycenter.v1p1beta1.FindingName;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
@@ -40,4 +41,5 @@ public static void syncSetFindingStateFindingnameFindingstateTimestamp() throws
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_setfindingstate_findingnamefindingstatetimestamp_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_setfindingstate_findingnamefindingstatetimestamp_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java
similarity index 88%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java
index 30d152846..bce09b4cf 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setfindingstate/SyncSetFindingStateStringFindingstateTimestamp.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_setfindingstate_stringfindingstatetimestamp_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_setfindingstate_stringfindingstatetimestamp_sync]
 import com.google.cloud.securitycenter.v1p1beta1.Finding;
 import com.google.cloud.securitycenter.v1p1beta1.FindingName;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
@@ -41,4 +42,5 @@ public static void syncSetFindingStateStringFindingstateTimestamp() throws Excep
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_setfindingstate_stringfindingstatetimestamp_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_setfindingstate_stringfindingstatetimestamp_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/AsyncSetIamPolicy.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicy.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
similarity index 88%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
index 3e4e77396..efbedcb47 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_setiampolicy_resourcenamepolicy_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_setiampolicy_resourcenamepolicy_sync]
 import com.google.api.resourcenames.ResourceName;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
 import com.google.cloud.securitycenter.v1p1beta1.SourceName;
@@ -38,4 +39,5 @@ public static void syncSetIamPolicyResourcenamePolicy() throws Exception {
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_setiampolicy_resourcenamepolicy_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_setiampolicy_resourcenamepolicy_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/AsyncTestIamPermissions.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissions.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
similarity index 88%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
index 82245e7c4..6890b1b0a 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_testiampermissions_resourcenameliststring_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_testiampermissions_resourcenameliststring_sync]
 import com.google.api.resourcenames.ResourceName;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
 import com.google.cloud.securitycenter.v1p1beta1.SourceName;
@@ -41,4 +42,5 @@ public static void syncTestIamPermissionsResourcenameListstring() throws Excepti
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_testiampermissions_resourcenameliststring_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_testiampermissions_resourcenameliststring_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
similarity index 88%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
index ab8500175..f963b1909 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_testiampermissions_stringliststring_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_testiampermissions_stringliststring_sync]
 import com.google.cloud.securitycenter.v1p1beta1.FolderName;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
 import com.google.iam.v1.TestIamPermissionsResponse;
@@ -40,4 +41,5 @@ public static void syncTestIamPermissionsStringListstring() throws Exception {
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_testiampermissions_stringliststring_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_testiampermissions_stringliststring_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/AsyncUpdateFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/AsyncUpdateFinding.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/AsyncUpdateFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/AsyncUpdateFinding.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFinding.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFinding.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFinding.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFindingFieldmask.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFindingFieldmask.java
similarity index 93%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFindingFieldmask.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFindingFieldmask.java
index 0178689cb..736120297 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFindingFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatefinding/SyncUpdateFindingFindingFieldmask.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatefinding_findingfieldmask_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_updatefinding_findingfieldmask_sync]
 import com.google.cloud.securitycenter.v1p1beta1.Finding;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
 import com.google.protobuf.FieldMask;
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/AsyncUpdateNotificationConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/AsyncUpdateNotificationConfig.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/AsyncUpdateNotificationConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/AsyncUpdateNotificationConfig.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfig.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfig.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java
similarity index 86%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java
index 89c12fa15..ca0ae3de7 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfig.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatenotificationconfig_notificationconfig_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_updatenotificationconfig_notificationconfig_sync]
 import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
 
@@ -36,4 +37,5 @@ public static void syncUpdateNotificationConfigNotificationconfig() throws Excep
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_updatenotificationconfig_notificationconfig_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_updatenotificationconfig_notificationconfig_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java
similarity index 86%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java
index 60be3cfb5..e6349b9c7 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatenotificationconfig/SyncUpdateNotificationConfigNotificationconfigFieldmask.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatenotificationconfig_notificationconfigfieldmask_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_updatenotificationconfig_notificationconfigfieldmask_sync]
 import com.google.cloud.securitycenter.v1p1beta1.NotificationConfig;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
 import com.google.protobuf.FieldMask;
@@ -38,4 +39,5 @@ public static void syncUpdateNotificationConfigNotificationconfigFieldmask() thr
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_updatenotificationconfig_notificationconfigfieldmask_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_updatenotificationconfig_notificationconfigfieldmask_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/AsyncUpdateOrganizationSettings.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettings.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java
similarity index 86%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java
index 95167830e..a396ceb87 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updateorganizationsettings/SyncUpdateOrganizationSettingsOrganizationsettings.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_updateorganizationsettings_organizationsettings_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_updateorganizationsettings_organizationsettings_sync]
 import com.google.cloud.securitycenter.v1p1beta1.OrganizationSettings;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
 
@@ -36,4 +37,5 @@ public static void syncUpdateOrganizationSettingsOrganizationsettings() throws E
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_updateorganizationsettings_organizationsettings_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_updateorganizationsettings_organizationsettings_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/AsyncUpdateSecurityMarks.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarks.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java
similarity index 86%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java
index 3ad3e87ac..f030c83f4 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarks.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatesecuritymarks_securitymarks_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_updatesecuritymarks_securitymarks_sync]
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityMarks;
 
@@ -35,4 +36,5 @@ public static void syncUpdateSecurityMarksSecuritymarks() throws Exception {
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_updatesecuritymarks_securitymarks_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_updatesecuritymarks_securitymarks_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarksFieldmask.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarksFieldmask.java
similarity index 87%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarksFieldmask.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarksFieldmask.java
index 4958aa18a..1e3e62e71 100644
--- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarksFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesecuritymarks/SyncUpdateSecurityMarksSecuritymarksFieldmask.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.securitycenter.v1p1beta1.samples;
 
-// [START securitycenter_v1p1beta1_generated_securitycenterclient_updatesecuritymarks_securitymarksfieldmask_sync]
+// [START
+// securitycenter_v1p1beta1_generated_securitycenterclient_updatesecuritymarks_securitymarksfieldmask_sync]
 import com.google.cloud.securitycenter.v1p1beta1.SecurityCenterClient;
 import com.google.cloud.securitycenter.v1p1beta1.SecurityMarks;
 import com.google.protobuf.FieldMask;
@@ -37,4 +38,5 @@ public static void syncUpdateSecurityMarksSecuritymarksFieldmask() throws Except
     }
   }
 }
-// [END securitycenter_v1p1beta1_generated_securitycenterclient_updatesecuritymarks_securitymarksfieldmask_sync]
+// [END
+// securitycenter_v1p1beta1_generated_securitycenterclient_updatesecuritymarks_securitymarksfieldmask_sync]
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/AsyncUpdateSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/AsyncUpdateSource.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/AsyncUpdateSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/AsyncUpdateSource.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSource.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSource.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSourceSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSourceSource.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSourceSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSourceSource.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSourceSourceFieldmask.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSourceSourceFieldmask.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSourceSourceFieldmask.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycenterclient/updatesource/SyncUpdateSourceSourceFieldmask.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycentersettings/createsource/SyncCreateSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycentersettings/createsource/SyncCreateSource.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycentersettings/createsource/SyncCreateSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/securitycentersettings/createsource/SyncCreateSource.java
diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java b/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java
similarity index 100%
rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java
rename to samples/snippets/generated/com/google/cloud/securitycenter/v1p1beta1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java

From 70ec1a4c481ad2b7281a90702f9d2c74f7d06019 Mon Sep 17 00:00:00 2001
From: Tomo Suzuki 
Date: Thu, 23 Jun 2022 20:59:31 +0000
Subject: [PATCH 3/3] deps: adding gax-httpjson

---
 google-cloud-securitycenter/pom.xml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/google-cloud-securitycenter/pom.xml b/google-cloud-securitycenter/pom.xml
index 8e08451c8..45ff0a91a 100644
--- a/google-cloud-securitycenter/pom.xml
+++ b/google-cloud-securitycenter/pom.xml
@@ -66,6 +66,10 @@
       com.google.api
       gax-grpc
     
+    
+      com.google.api
+      gax-httpjson
+    
     
       org.threeten
       threetenbp
@@ -98,12 +102,24 @@
       test
     
     
+    
+      com.google.api
+      gax
+      testlib
+      test
+    
     
       com.google.api
       gax-grpc
       testlib
       test
     
+    
+      com.google.api
+      gax-httpjson
+      testlib
+      test
+